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.
Created on 2014年11月08日 11:17 by Edward.K..Ream, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Messages (4) | |||
|---|---|---|---|
| msg230844 - (view) | Author: Edward K. Ream (Edward.K..Ream) | Date: 2014年11月08日 11:17 | |
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 ;-) |
|||
| msg230847 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2014年11月08日 12:03 | |
In any case XMLGenerator is not usable if the "out" keyword argument is not given and sys.stdout is None. Just the exception will be raised later. I consider early failure as a feature, not a bug. |
|||
| msg230852 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2014年11月08日 12:41 | |
Agreed. I was going to ask what it was that 3.2 did that was useful. |
|||
| msg230854 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2014年11月08日 12:56 | |
FYI the code was changed in issue1470548. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:09 | admin | set | github: 67008 |
| 2015年02月10日 08:45:41 | serhiy.storchaka | set | status: pending -> closed resolution: not a bug |
| 2014年11月27日 19:46:14 | serhiy.storchaka | set | status: open -> pending |
| 2014年11月08日 12:56:14 | serhiy.storchaka | set | messages: + msg230854 |
| 2014年11月08日 12:41:48 | r.david.murray | set | nosy:
+ r.david.murray messages: + msg230852 |
| 2014年11月08日 12:03:01 | serhiy.storchaka | set | nosy:
+ serhiy.storchaka messages: + msg230847 |
| 2014年11月08日 11:17:10 | Edward.K..Ream | create | |