homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients alex, cvrebert, eric.araujo, ncoghlan, pitrou
Date 2011年10月28日.12:28:12
SpamBayes Score 4.880323e-07
Marked as misclassified No
Message-id <1319804895.08.0.271643141584.issue13238@psf.upfronthosting.co.za>
In-reply-to
Content
I realised I could use the convert_field() option in the custom formatter to choose between several interpolation quoting options:
 default - str + shutil.quote_ascii_whitespace
 !q - str + shlex.quote
 !u - unquoted (i.e. no conversion, str.format default behaviour)
 !s - str (as usual)
 !r - repr (as usual)
The most recent commit also exposes public APIs for the formatting aspects (shutil.quote_ascii_whitespace, shutil.shell_format, shutil.shell_format_map)
History
Date User Action Args
2011年10月28日 12:28:15ncoghlansetrecipients: + ncoghlan, pitrou, eric.araujo, alex, cvrebert
2011年10月28日 12:28:15ncoghlansetmessageid: <1319804895.08.0.271643141584.issue13238@psf.upfronthosting.co.za>
2011年10月28日 12:28:14ncoghlanlinkissue13238 messages
2011年10月28日 12:28:14ncoghlancreate

AltStyle によって変換されたページ (->オリジナル) /