Message120346
| Author |
t.steinruecken |
| Recipients |
t.steinruecken |
| Date |
2010年11月03日.21:28:55 |
| SpamBayes Score |
1.1757967e-10 |
| Marked as misclassified |
No |
| Message-id |
<1288819738.25.0.351027689616.issue10301@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Using a ZipFile as a "with"-context dosnt work
(Im using the standard Ubuntu version of Python3.1)
Python 3.1.2 (r312:79147, Apr 15 2010, 15:35:48)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from zipfile import ZipFile
>>> with ZipFile("test.zip","w") as z:
... z.close()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'ZipFile' object has no attribute '__exit__'
>>> |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年11月03日 21:28:58 | t.steinruecken | set | recipients:
+ t.steinruecken |
| 2010年11月03日 21:28:58 | t.steinruecken | set | messageid: <1288819738.25.0.351027689616.issue10301@psf.upfronthosting.co.za> |
| 2010年11月03日 21:28:56 | t.steinruecken | link | issue10301 messages |
| 2010年11月03日 21:28:55 | t.steinruecken | create |
|