[issue14635] telnetlib uses select instead of poll - limited to FD_SETSIZE fds

2012-07-15 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue14790] use packaging in setup.py

2012-07-15 Thread Martin v . Löwis
Martin v. Löwis added the comment: At the moment, it seems that this just won't happen. If a new attempt is made to integrate packaging with Python, this may or may not become an issue (e.g. whoever is doing the integration the next time might adapt setup.py from the beginning). So closing t

[issue14635] telnetlib uses select instead of poll - limited to FD_SETSIZE fds

2012-07-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset de229dde486b by Gregory P. Smith in branch '3.2': Fixes Issue #14635: telnetlib will use poll() rather than select() when possible http://hg.python.org/cpython/rev/de229dde486b New changeset 558e5ed678c3 by Gregory P. Smith in branch 'default': Fix

[issue15337] The cmd module incorrectly lists "help" as an undocumented command

2012-07-15 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- versions: -Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue15317] Source installation sets incorrect permissions for Grammar3.2.3.final.0.pickle

2012-07-15 Thread Tomi Pieviläinen
Tomi Pieviläinen added the comment: On Sat, Jul 14, 2012 at 12:44:46PM +, Éric Araujo wrote: > > Éric Araujo added the comment: > > How did you configure and build? If you ran make as root it may explain this. Indeed I did do it as root for all steps. The umask for root was 022, however

[issue7171] Add inet_ntop and inet_pton support for Windows

2012-07-15 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: Implementation of inet_pton and inet_ntop by WSAAddressToStringA and WSAStringToAddressA for Windows. Conversion of IPv6 address might fail if IPv6 is not installed. Tested on Windows XP SP3 and Windows7. -- keywords: +patch nosy: +ishimoto Added fil

[issue15352] importlib.h should be regenerated when the marshaling code changes

2012-07-15 Thread Meador Inge
Meador Inge added the comment: Hmmm, I guess the idempotency issue is no worse than it already is -- the same thing can still happen with trivial changes to the other prerequisites for importlib.h. Consider this small example (you might have to run sample program multiple times to see a diffe

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2012-07-15 Thread David Lam
David Lam added the comment: hi hi, found this bug after clicking the "Easy issues" link i basically just took Ray's hint to look at the __reduce__ method, and applied it to the __repr__ method in this patch also updated is the test_repr() unittest -- keywords: +patch nosy: +dlam Ad

[issue14635] telnetlib uses select instead of poll - limited to FD_SETSIZE fds

2012-07-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset c53e3aacb816 by Gregory P. Smith in branch '2.7': Fixes Issue #14635: telnetlib will use poll() rather than select() when possible http://hg.python.org/cpython/rev/c53e3aacb816 -- nosy: +python-dev ___ P

[issue14635] telnetlib uses select instead of poll - limited to FD_SETSIZE fds

2012-07-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: looking at this now. 2.7 commit first; then i'll forward port to 3.2/3.3. -- assignee: jackdied -> gregory.p.smith ___ Python tracker ___ __

[issue15233] atexit: guarantee order of execution of registered functions?

2012-07-15 Thread Larry Hastings
Larry Hastings added the comment: I have been meditating on this, and I'm not sure we should change 2.7. 3.2 might be okay. The thing is, I fear we're not just talking about CPython implementation details, we're talking about the Python Standard Library. The existing documentation clearly

[issue13590] extension module builds fail with python.org OS X installers on OS X 10.7 and 10.6 with Xcode 4.2

2012-07-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6a1e983647bd by Ned Deily in branch 'default': Issue #13590: Improve support for OS X Xcode 4: http://hg.python.org/cpython/rev/6a1e983647bd -- ___ Python tracker ___

[issue15342] os.path.join behavior

2012-07-15 Thread Yongzhi Pan
Yongzhi Pan added the comment: I suggest append "An empty last part will result in a path that ends with a separator" or something similar to the docstring, though it is already in the HTML documentation. Suppose someone does this like me: In [10]: join('a', sep) Out[10]: '/' He must be su

[issue15359] Sockets support for CAN_BCM

2012-07-15 Thread Brian Thorne
Brian Thorne added the comment: Once I've got more complete examples, I can update the patch to include a testcase. -- ___ Python tracker ___ __

[issue14988] _elementtree: Raise ImportError when importing of pyexpat fails

2012-07-15 Thread Benjamin Peterson
Benjamin Peterson added the comment: IMHO, it can be fixed as people were relying on the old behavior. -- ___ Python tracker ___ ___

[issue15356] '\xa0' isspace returns true while compiling python on solaris 10 by users using gcc 3.4.6

2012-07-15 Thread zoupl
zoupl added the comment: I have just tried on solaris. I will try the solution of issue 1571184, thanks a lot. -- ___ Python tracker ___ ___

[issue6804] IDLE: Detect Python files even if name doesn't end in .py

2012-07-15 Thread Roger Serwy
Roger Serwy added the comment: This is related to issue6858. I assume that the point of this issue is to enable syntax highlighting by relying on the Windows registry? -- nosy: +serwy ___ Python tracker __

[issue15151] Documentation for Signature, Parameter and signature in inspect module

2012-07-15 Thread Larry Hastings
Larry Hastings added the comment: Is anyone working on this? I could possibly take a stab at it tonight, if I get the evening to myself. -- ___ Python tracker ___

[issue6171] IDLE - Class Browser selection in Ubuntu

2012-07-15 Thread Roger Serwy
Changes by Roger Serwy : -- nosy: +serwy title: Class Browser selection in Ubuntu -> IDLE - Class Browser selection in Ubuntu ___ Python tracker ___ _

[issue7957] Tutorial issue regarding the sys module

2012-07-15 Thread Roger Serwy
Roger Serwy added the comment: IDLE supporting sys.ps1 and sys.ps2 is discussed in issue13657. I am closing this issue in favor of that one. -- nosy: +serwy resolution: -> duplicate status: open -> closed superseder: -> IDLE doesn't support sys.ps1 and sys.ps2. _

[issue4640] optparse doesn’t disallow adding one-dash long options (“-option”)

2012-07-15 Thread R. David Murray
R. David Murray added the comment: Re-reading the issue I think the OP was not trying to define '-debug', but was indeed reporting the behavior when -debug was passed to the parser. I've committed your tests (thanks). So we now have tests for both cases, and this issue can be closed as inv

[issue4640] optparse doesn’t disallow adding one-dash long options (“-option”)

2012-07-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 844bb753570f by R David Murray in branch 'default': #4640: Add optparse tests for '-xxx' invalid when defining options. http://hg.python.org/cpython/rev/844bb753570f -- nosy: +python-dev ___ Python track

[issue15363] Idle/tkinter ~x.py 'save as' fails. closes idle

2012-07-15 Thread Roger Serwy
Roger Serwy added the comment: IDLE silently closing is due to issue13582. On Linux (Ubuntu 11.04, Tk8.5) I can not specify "~template.py" for a filename for opening or saving a file. Clicking on either open or save produces no action. However, I can specify "~/template.py". On Win7 I see th

[issue15202] followlinks/follow_symlinks/symlinks flags unification

2012-07-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset e26113f17309 by Larry Hastings in branch 'default': Issue #15202: Additional documentation fixes inadvertently omitted http://hg.python.org/cpython/rev/e26113f17309 -- ___ Python tracker

[issue15202] followlinks/follow_symlinks/symlinks flags unification

2012-07-15 Thread Larry Hastings
Larry Hastings added the comment: Sorry; the patch didn't apply cleanly, and it looks like I bungled doing it manually. Fixing now. -- ___ Python tracker ___ _

[issue15363] Idle/tkinter ~x.py 'save as' fails. closes idle

2012-07-15 Thread Terry J. Reedy
New submission from Terry J. Reedy : I have (had ;-) a project file ~template.py with common boilerplate. To start a new project file, I want to open the above and save as xyz.py. I can edit and 'save' the template to update it just fine. But trying to do a 'save as' to a new name, in Idle edit

[issue15320] thread-safety issue in regrtest.main()

2012-07-15 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks a lot for the feedback. The thinking was to use a stand-alone (even testable) construct with dependencies made explicit. For example, it wasn't obvious that the current iterator depended on forever, or whether the args_tuple parameter was a necessary

[issue12978] Figure out extended attributes on BSDs

2012-07-15 Thread koobs
koobs added the comment: FreeBSD (at least on 7.x, 8.x and 9.x) has the following syscalls available in its API: extattr_{get,set,list,delete}_{fd,file,link} And also has: EXTATTR_MAXNAMELEN http://www.freebsd.org/cgi/man.cgi?query=extattr&sektion=2&manpath=FreeBSD+9.0-RELEASE -- no

[issue15362] pyport.h includes antiquated UTF handling for FreeBSD

2012-07-15 Thread John Schneider
New submission from John Schneider : Revision 36793 introduced a libc wrapper for FreeBSD 5.x which addressed some UTF issues. Unfortunately, this causes C compilation errors for certain ports. Also reference issues 10910, 1455641 This change is no longer applicable for FreeBSD 9. I'm not sur

[issue15361] venv's Activate.ps1 causes broken prompt with powershell

2012-07-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0b4d0c2173ad by Vinay Sajip in branch 'default': Closes #15361: Corrected venv prompt in PowerShell activation script. http://hg.python.org/cpython/rev/0b4d0c2173ad -- nosy: +python-dev resolution: -> fixed stage: patch review -> committed

[issue15202] followlinks/follow_symlinks/symlinks flags unification

2012-07-15 Thread Éric Araujo
Éric Araujo added the comment: There are versionadded notes in the doc that still use the old names (e.g. symlinks for shutil.copyfile). -- nosy: +eric.araujo ___ Python tracker __

[issue9374] urlparse should parse query and fragment for arbitrary schemes

2012-07-15 Thread Éric Araujo
Éric Araujo added the comment: Better link: https://github.com/pypa/pip/issues/552 -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue9374] urlparse should parse query and fragment for arbitrary schemes

2012-07-15 Thread Éric Araujo
Éric Araujo added the comment: Removing the module attributes causes third-party code to break. See one example here: http://lists.idyll.org/pipermail/testing-in-python/2012-July/005082.html -- status: closed -> open ___ Python tracker

[issue15361] venv's Activate.ps1 causes broken prompt with powershell

2012-07-15 Thread Richard Oudkerk
New submission from Richard Oudkerk : If I create a venv on Windows called "py3" then py3/Scripts/Activate.ps1 defines the prompt to be function prompt { Write-Host -NoNewline -ForegroundColor Green [(py3) ] _OLD_VIRTUAL_PROMPT } However this prompt function does not wo

[issue15352] importlib.h should be regenerated when the marshaling code changes

2012-07-15 Thread Meador Inge
Meador Inge added the comment: Eric, that is a good point, but if someone forgets (like I did) or just hasn't gotten around to bumping the number yet, then the build breaks because the interpreter crashes. I think we should always try to avoid building an interpreter that is in an inconsiste

[issue14988] _elementtree: Raise ImportError when importing of pyexpat fails

2012-07-15 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: IMHO wrong exception could be treated as a bug, which could be fixed in 3.2 and 3.3. Benjamin Peterson and Georg Brandl: What do you think? > P.S. is there any way to create a test for it? You can set sys.modules["pyexpat"]=None and test

[issue15202] followlinks/follow_symlinks/symlinks flags unification

2012-07-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 758a9023d836 by Larry Hastings in branch 'default': Issue #15202: Consistently use the name "follow_symlinks" for http://hg.python.org/cpython/rev/758a9023d836 -- nosy: +python-dev ___ Python tracker

[issue8229] Interpreter crash on application shutdown

2012-07-15 Thread Roger Serwy
Roger Serwy added the comment: tb220, is this still a bug? Python 2.6 is now in security-fix-only mode. -- nosy: +serwy status: open -> pending ___ Python tracker ___ ___

[issue15358] Test pkgutil.walk_packages in test_pkgutil instead of test_runpy

2012-07-15 Thread Chris Jerdonek
Chris Jerdonek added the comment: Such helper functionality could also be used in the tests of unittest.TestLoader.loadTestsFromName(). See, for example, the tests proposed for issue 7559. -- ___ Python tracker

[issue15297] pkgutil.iter_importers() includes an ImpImporter

2012-07-15 Thread Chris Jerdonek
Chris Jerdonek added the comment: Closing as this is no longer an issue after Nick's pkgutil changes documented in issue 15343. -- status: open -> closed ___ Python tracker ___

[issue15360] Behavior of assigning to __dict__ is not documented

2012-07-15 Thread Davide Rizzo
New submission from Davide Rizzo : The documentation (at least the obvious places, see Doc/reference/datamodel.rst) says classes and class instances have the '__dict__' attribute, but nothing is said about what happens when assigning to it (like obj.__dict__ = something). As far as I understa

[issue15358] Test pkgutil.walk_packages in test_pkgutil instead of test_runpy

2012-07-15 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- nosy: +cjerdonek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue14787] pkgutil.walk_packages returns extra modules

2012-07-15 Thread Chris Jerdonek
Chris Jerdonek added the comment: For the record, this issue is still present after Nick's pkgutil changes documented in issue 15343 (not that I expected it to be resolved since this issue is a bit different). -- ___ Python tracker

[issue15233] atexit: guarantee order of execution of registered functions?

2012-07-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Shall I also backport to 2.7 and 3.2 as the issue suggests? If the tests are there, yes! -- ___ Python tracker ___ _

[issue15202] followlinks/follow_symlinks/symlinks flags unification

2012-07-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The .4 patches both LGTM, please commit! You're the one with commit rights here ;) -- ___ Python tracker ___ ___

[issue15351] Add to unittest.TestCase support for using context managers

2012-07-15 Thread Michael Foord
Michael Foord added the comment: A method on TestCase that *just* executes the test method - allowing for overriding in subclasses - is an interesting idea. Including setUp and tearDown would be harder because TestCase necessarily does a bunch of bookkeeping between each of these steps.

[issue15349] SyntaxError b0rked grammar

2012-07-15 Thread Roger Serwy
Roger Serwy added the comment: Thank you for the bug report, Ztatik. Since 2.6 is now in security-fix-only mode, this issue will not be fixed. See http://www.python.org/getit/releases/2.6.8/ This grammar issue was fixed in 2.7 with revision 386922b629c3, but was not applied to the 2.6 series

[issue15356] '\xa0' isspace returns true while compiling python on solaris 10 by users using gcc 3.4.6

2012-07-15 Thread R. David Murray
R. David Murray added the comment: Ah. I have no idea. I did a search and could not find an issue about it being fixed...that doesn't mean there wasn't one, though. Does the problem occur *only* solaris? Because if it isn't solaris specific it might be this one: issue 1571184. --

[issue15307] Patch for --symlink support in pyvenv with framework python

2012-07-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset f954ee489896 by Vinay Sajip in branch 'default': Issue #15307: Skipped test_venv:test_prefixes when run from a venv. http://hg.python.org/cpython/rev/f954ee489896 -- nosy: +python-dev ___ Python tracker

[issue15180] Cryptic traceback from os.path.join when mixing str & bytes

2012-07-15 Thread Hynek Schlawack
Hynek Schlawack added the comment: Fixed for 3.2 & default. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue15180] Cryptic traceback from os.path.join when mixing str & bytes

2012-07-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset cf1ac0c9e753 by Hynek Schlawack in branch '3.2': #15180: Clarify posixpath.join() error message when mixing str & bytes http://hg.python.org/cpython/rev/cf1ac0c9e753 New changeset 1462b963e5ce by Hynek Schlawack in branch 'default': #15180: Clarify

[issue15356] '\xa0' isspace returns true while compiling python on solaris 10 by users using gcc 3.4.6

2012-07-15 Thread zoupl
zoupl added the comment: No, i mean it works ok on version 2.7. However, what I want to know is the way that works in version2.7, because I want to try to fix it in version 2.6. -- ___ Python tracker

[issue15359] Sockets support for CAN_BCM

2012-07-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +neologix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue15359] Sockets support for CAN_BCM

2012-07-15 Thread Brian Thorne
New submission from Brian Thorne : In addition to CAN_RAW introduced in Python 3.3, it would be really useful to expose the CAN_BCM protocol. Effectively it hands off as much to the kernel as possible which gives Python programs the ability to send and receive many periodic messages with litt

[issue15356] '\xa0' isspace returns true while compiling python on solaris 10 by users using gcc 3.4.6

2012-07-15 Thread R. David Murray
R. David Murray added the comment: I'm sorry, It looks like you said it was working as you expected in 2.7, and you marked it for version 2.6. So what is the bug that you see in 2.7? -- ___ Python tracker __

[issue15357] Deprecate redundant pieces of pkgutil

2012-07-15 Thread Nick Coghlan
Nick Coghlan added the comment: I'm pretty sure I got them all while fixing #15343 -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker _

[issue15343] "pydoc -w " writes out page with empty "Package Contents" section

2012-07-15 Thread Nick Coghlan
Nick Coghlan added the comment: And a manual check confirms the higher level issue is also fixed. (I believe there's already a meta issue somewhere about the lack of automated tests for pydoc's emitted HTML) -- resolution: -> fixed status: open -> closed

[issue15343] "pydoc -w " writes out page with empty "Package Contents" section

2012-07-15 Thread Nick Coghlan
Nick Coghlan added the comment: Main change in that last commit is really the one to make pydoc ignore just about *any* exception from get_source(). This should make it more robust against buggy loaders, too. -- ___ Python tracker

[issue9319] imp.find_module('test/badsyntax_pep3120') causes segfault

2012-07-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset ce0687a8383b by Nick Coghlan in branch 'default': Issue #9319: Remove the workaround for this since fixed problem from pydoc http://hg.python.org/cpython/rev/ce0687a8383b -- ___ Python tracker

[issue15343] "pydoc -w " writes out page with empty "Package Contents" section

2012-07-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7d202353a728 by Nick Coghlan in branch 'default': Issue #15343: A lot more than just unicode decoding can go wrong when retrieving a source file http://hg.python.org/cpython/rev/7d202353a728 -- ___ Pyth

[issue15343] "pydoc -w " writes out page with empty "Package Contents" section

2012-07-15 Thread Nick Coghlan
Nick Coghlan added the comment: Fixing this has uncovered another issue: the old import emulation in PEP 302 ignored encoding cookies, thus merrily decoding everything as utf-8 in "get_source()". importlib is smarter about this, which means the pydoc tests started failing as they tried to loa

[issue15358] Test pkgutil.walk_packages in test_pkgutil instead of test_runpy

2012-07-15 Thread Nick Coghlan
Changes by Nick Coghlan : -- priority: low -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue15358] Test pkgutil.walk_packages in test_pkgutil instead of test_runpy

2012-07-15 Thread Nick Coghlan
Nick Coghlan added the comment: Also, a second test case should be added to cover the zipimporter.zipimporter component. -- ___ Python tracker ___ _

[issue15343] "pydoc -w " writes out page with empty "Package Contents" section

2012-07-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9101eab6178c by Nick Coghlan in branch 'default': Issue #15343: Handle importlib.machinery.FileFinder instances in pkgutil.walk_packages (et al) http://hg.python.org/cpython/rev/9101eab6178c -- ___ Pyth

[issue11322] encoding package's normalize_encoding() function is too slow

2012-07-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > I don't know who changed the encoding's package normalize_encoding() function > (wasn't me), but it's a really slow implementation. See changeset 54ef645d08e4. -- nosy: +storchaka ___ Python tracker

[issue15358] Test pkgutil.walk_packages in test_pkgutil instead of test_runpy

2012-07-15 Thread Nick Coghlan
Changes by Nick Coghlan : -- dependencies: +"pydoc -w " writes out page with empty "Package Contents" section ___ Python tracker ___

[issue15358] Test pkgutil.walk_packages in test_pkgutil instead of test_runpy

2012-07-15 Thread Nick Coghlan
New submission from Nick Coghlan : Created to record the egregious hack of relying on the test_runpy infrastructure in order to test pkgutil.walk_packages. It gets the job done, but is a really messy way of going about it. Worth cleaning up by factoring the support code out to a helper module

[issue15272] pkgutil.find_loader accepts invalid module names

2012-07-15 Thread Nick Coghlan
Nick Coghlan added the comment: OK, this one is trickier than I thought - the exact behaviour depends on how you traverse the code, and I believe a PEP 302 importer is technically allowed to accept "/" in module names. (Unless there's a module names "must be valid identifiers" in there somewh

[issue15272] pkgutil.find_loader accepts invalid module names

2012-07-15 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: -> ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue15314] Use importlib instead of pkgutil in runpy

2012-07-15 Thread Nick Coghlan
Nick Coghlan added the comment: OK, I think runpy and __main__.__loader__ are all sorted now. The relevant runpy and command line script tests all check for the expected values, and I added a couple of new tests to cover the "-c" and "reading from stdin" cases. -- resolution: -> fixe

[issue15314] Use importlib instead of pkgutil in runpy

2012-07-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3987667bf98f by Nick Coghlan in branch 'default': Take the first step in resolving the messy pkgutil vs importlib edge cases by basing pkgutil explicitly on importlib, deprecating its internal import emulation and setting __main__.__loader__ corre

[issue15343] "pydoc -w " writes out page with empty "Package Contents" section

2012-07-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3987667bf98f by Nick Coghlan in branch 'default': Take the first step in resolving the messy pkgutil vs importlib edge cases by basing pkgutil explicitly on importlib, deprecating its internal import emulation and setting __main__.__loader__ corre

[issue15357] Deprecate redundant pieces of pkgutil

2012-07-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3987667bf98f by Nick Coghlan in branch 'default': Take the first step in resolving the messy pkgutil vs importlib edge cases by basing pkgutil explicitly on importlib, deprecating its internal import emulation and setting __main__.__loader__ corre

[issue4997] xml.sax.saxutils.XMLGenerator should write to io.RawIOBase.

2012-07-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This issue will be fixed by patch for issue1470548. -- nosy: +storchaka ___ Python tracker ___ ___

[issue1470548] Bugfix for #1470540 (XMLGenerator cannot output UTF-16)

2012-07-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is updated patch with more careful handling of closing (as for issue1767933) and added comments. -- nosy: +eli.bendersky Added file: http://bugs.python.org/file26385/XMLGenerator-3.patch ___ Python tracker <

[issue1767933] Badly formed XML using etree and utf-16

2012-07-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you, Eli. However changes to tostring() and tostringlist() break the invariant b"".join(tostringlist(element, 'utf-16')) == tostring(element, 'utf-16'). You should add followed methods to DataStream: def seekable(self): return Tru