[Python-Dev] transitioning from % to {} formatting (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Thu Oct 1 02:47:09 CEST 2009
- Previous message: [Python-Dev] transitioning from % to {} formatting
- Next message: [Python-Dev] transitioning from % to {} formatting
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Vinay Sajip <vinay_sajip yahoo.co.uk> writes:
Does it seems too onerous to expect people to pass an additional "useformat" keyword argument with every logging call to indicate how to interpret the message format string? Or does the PercentMessage/BraceMessage type approach have any mileage? What do y'all think?
What about the proposal I made earlier? (support for giving a callable, so that you pass the "{foobar}".format method when you want new-style formatting)
- Previous message: [Python-Dev] transitioning from % to {} formatting
- Next message: [Python-Dev] transitioning from % to {} formatting
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]