Message118411
| Author |
hfuru |
| Recipients |
hfuru |
| Date |
2010年10月12日.11:24:19 |
| SpamBayes Score |
2.4232118e-05 |
| Marked as misclassified |
No |
| Message-id |
<1286882661.81.0.431457664283.issue10070@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
It would be nice with some official way to tell 2to3, "Leave
this code chunk alone. This is 2.* code, that is 3.* code":
try: # Python 2.6
from urlparse import urlparse, urlunparse
except ImportError: # Python 3
from urllib.parse import urlparse, urlunparse
Could 2to3 without -p notice more cases of print(single argument),
to avoid slapping another () around them? For example:
print(2*3)
print(", ".join(dir)) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年10月12日 11:24:21 | hfuru | set | recipients:
+ hfuru |
| 2010年10月12日 11:24:21 | hfuru | set | messageid: <1286882661.81.0.431457664283.issue10070@psf.upfronthosting.co.za> |
| 2010年10月12日 11:24:20 | hfuru | link | issue10070 messages |
| 2010年10月12日 11:24:19 | hfuru | create |
|