Message158641
| Author |
eric.araujo |
| Recipients |
docs@python, eric.araujo |
| Date |
2012年04月18日.17:12:36 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1334769157.78.0.557014485739.issue14616@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The warning at http://docs.python.org/library/subprocess#frequently-used-arguments should IMO recommend using shlex.quote. Even if it strongly advises against using shell=True, there are people who need or want to use it, so let’s give them a pointer to the quote function.
For older versions, I think we should talk about pipes.quote; even if it’s not documented in library/pipes, it is there, it is known and it is used, so I see no harm in mentioning it (with due mention that it’s only semi-official and that it becomes public in 3.3). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年04月18日 17:12:37 | eric.araujo | set | recipients:
+ eric.araujo, docs@python |
| 2012年04月18日 17:12:37 | eric.araujo | set | messageid: <1334769157.78.0.557014485739.issue14616@psf.upfronthosting.co.za> |
| 2012年04月18日 17:12:37 | eric.araujo | link | issue14616 messages |
| 2012年04月18日 17:12:36 | eric.araujo | create |
|