There's even an example of the same exact sort of thing I removed because Twisted was giving me errors for my log string
runciter
ElementAlchemist: seems like a bug
ElementAlchemist: but in the docs
ElementAlchemist: new-style formatting doesn't support function invocation
ElementAlchemist: however, f-strings do
ElementAlchemist: that might be the root of the confusion
even more confusing, the logger _does_ allow function invocation, but not method invocation
ElementAlchemist
I get .format(); my issue is specifically with logger
runciter
ElementAlchemist: given that this works: logger.info("{call()}", call=someFunc), but this doesn't: logger.info("obj.call()", obj=someObj)
ElementAlchemist
It lets you do {function()} but not {thing.method()}, so I just wanted to figure out whether what the docs say (that {thing.method()} is OK) was intended or if the code is what we're going for so I know what to call a bug :)
runciter
ElementAlchemist: i think this is a bug in the logger
ElementAlchemist
That said, I've apparently been too lazy to do something about reporting it for over a year until now
runciter
thanks for bringing it up now
ElementAlchemist
OK, I'll write it against the code
Thanks!
runciter
ElementAlchemist: thank you!
kenaan
new logger defect https://tm.tl/#9347 by ElementalAlchemist: twisted.logger doesn't execute methods despite documentation
ElementAlchemist
Issue created
runciter
this is going to be an unpleasant ticket
ElementAlchemist
Did I miss something I should put in?
Or did I just unrelatedly make everyone sad? :(
runciter
ElementAlchemist: my issue is with the state of string formatting in python :)
ElementAlchemist
Oh
Fair.
njs
runciter: can't you just use str.format instead of converting things to % formatting internally? is the problem that you want to maintain compatibility with... py25, or what?
or am I misreading what's goin gon?
oh no, I see, there'es some random % formatting in the middle of that, but the problem is that str.format doesn't support method calls
that's too bad
daMaestro has quit
foom has quit
runciter
njs: that' sit
njs: format doesn't support invocation of any kind
runciter: it's a comment from raymond saying "we don't want to make the format language support 'everything'" (so instead it supports a random collection of things)
runciter
awesome
tos9: and f-strings support a superset of that random collection