Message146609
Yeah, I was thinking about this a bit more and realised that I'd rejected the "quote everything by default" approach before I had the idea of providing a custom conversion specifier to disable the implicit string conversion and quoting.
So perhaps a better alternative would be:
default - str + shlex.quote
!u - unquoted (i.e. normal str.format default behaviour)
When you have a concise way to explicitly bypass it, making the default behaviour as safe as possible seems like a good way to go. |
|
Date |
User |
Action |
Args |
2011-10-29 14:11:02 | ncoghlan | set | recipients:
+ ncoghlan, pitrou, eric.araujo, alex, cvrebert |
2011-10-29 14:11:02 | ncoghlan | set | messageid: <1319897462.28.0.370761583004.issue13238@psf.upfronthosting.co.za> |
2011-10-29 14:11:01 | ncoghlan | link | issue13238 messages |
2011-10-29 14:11:01 | ncoghlan | create | |
|