Message230844
| Author |
Edward.K..Ream |
| Recipients |
Edward.K..Ream |
| Date |
2014年11月08日.11:17:09 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1415445430.26.0.203405541468.issue22819@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
In Python3.2 xml.sax.saxutils.XMLGenerator.__init__ succeeds if the "out" keyword argument is not given and sys.stdout is None, which will typically be the case when using pythonw.exe.
Alas, on Python3.4, the ctor throws an exception in this case.
This is a major compatibility issue, and is completely unnecessary: the ctor should work as before. An easy fix: allocate a file-like object as the out stream, or just do what is done in Python 3.2 ;-) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2014年11月08日 11:17:10 | Edward.K..Ream | set | recipients:
+ Edward.K..Ream |
| 2014年11月08日 11:17:10 | Edward.K..Ream | set | messageid: <1415445430.26.0.203405541468.issue22819@psf.upfronthosting.co.za> |
| 2014年11月08日 11:17:10 | Edward.K..Ream | link | issue22819 messages |
| 2014年11月08日 11:17:09 | Edward.K..Ream | create |
|