[issue15381] Optimize BytesIO to so less reallocations when written, similarly to StringIO

2012-07-18 Thread Eli Bendersky
Eli Bendersky added the comment: I'd like to take a shot at this, if Antoine doesn't mind. I'll prepare a patch for bytesio.c Question: what set of benchmarks would it be good to run to make sure this doesn't degrade the performance of BytesIO in various cases?

[issue15381] Optimize BytesIO to so less reallocations when written, similarly to StringIO

2012-07-19 Thread Eli Bendersky
Changes by Eli Bendersky : -- assignee: eli.bendersky -> ___ Python tracker <http://bugs.python.org/issue15381> ___ ___ Python-bugs-list mailing list Unsubscri

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

2012-07-19 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: -eli.bendersky ___ Python tracker <http://bugs.python.org/issue1470548> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7214] TreeBuilder.end(tag) differs between cElementTree and ElementTree

2012-07-21 Thread Eli Bendersky
Eli Bendersky added the comment: Even if this is a problem at all, it's certainly not something that must be fixed by 3.3 -- versions: +Python 3.4 -Python 3.3 ___ Python tracker <http://bugs.python.org/i

[issue15269] Document dircmp.left and dircmp.right

2012-07-24 Thread Eli Bendersky
Eli Bendersky added the comment: Yes, code samples would help clarifying the rationale for this request -- nosy: +eli.bendersky versions: +Python 3.4 -Python 3.3 ___ Python tracker <http://bugs.python.org/issue15

[issue15442] Expand the list of default dirs filecmp.dircmp ignores

2012-07-24 Thread Eli Bendersky
New submission from Eli Bendersky : The default ignore list of filecmp.dircmp is ['RCS', 'CVS', 'tags']. This predates even Subversion! I suggest to freshen up this module to also ignore the dirs for SVN, Mercurial, Git and Bazaar. [this is a new f

[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py

2012-07-24 Thread Eli Bendersky
Eli Bendersky added the comment: The patch looks reasonable to me. Martin/Éric - any objections to committing? -- nosy: +eli.bendersky ___ Python tracker <http://bugs.python.org/issue15

[issue15321] bdist_wininst installers may terminate with "close failed in file object destructor:\nsys.excepthook is missing\nlost sys.stderr"

2012-07-24 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: -eli.bendersky ___ Python tracker <http://bugs.python.org/issue15321> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15321] bdist_wininst installers may terminate with "close failed in file object destructor:\nsys.excepthook is missing\nlost sys.stderr"

2012-07-24 Thread Eli Bendersky
Eli Bendersky added the comment: Sorry about the commit message. Ignore it, I got the issue number wrong :) -- nosy: +eli.bendersky ___ Python tracker <http://bugs.python.org/issue15

[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py

2012-07-24 Thread Eli Bendersky
Eli Bendersky added the comment: Committed in f315cfa22630 -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue15269] Document dircmp.left and dircmp.right

2012-07-24 Thread Eli Bendersky
Eli Bendersky added the comment: Makes sense. I agree that publicly exposing the left/right attributes makes sense. But let's do it properly: 1. Add an example to the documentation 2. Add some tests to Lib/test/test_filecmp.py that verify these attributes behave as expected In additi

[issue15269] Document dircmp.left and dircmp.right

2012-07-25 Thread Eli Bendersky
Eli Bendersky added the comment: I think it can go into 3.3 but only if it gets reviewed by another core dev (we're in release candidate stage now). Senthil - can you review the patch together with me? As for customizing the stream, yes, go ahead and open a new issue for it, and a

[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py

2012-07-26 Thread Eli Bendersky
Eli Bendersky added the comment: Éric - what is missing? -- ___ Python tracker <http://bugs.python.org/issue15231> ___ ___ Python-bugs-list mailing list Unsub

[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py

2012-07-27 Thread Eli Bendersky
Eli Bendersky added the comment: Feel free to change it, I don't mind. I think the intention is clear anyway. -- ___ Python tracker <http://bugs.python.org/is

[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py

2012-07-30 Thread Eli Bendersky
Eli Bendersky added the comment: I've committed a rephrase [the Misc/NEWS entry is IMHO unnecessary for tiny documentation clarifications]. Since there's no distutils2/packaging in 3.3 at the moment, I think we're done. Éric - would you like to keep this issue alive to rememb

[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py

2012-07-30 Thread Eli Bendersky
Eli Bendersky added the comment: Yes, if the new phrasing looks OK I will backport to 3.2 & 2.7 -- ___ Python tracker <http://bugs.python.org/issue15231> ___

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-31 Thread Eli Bendersky
Eli Bendersky added the comment: I'm looking at the docs. Started with the HOWTO (Doc/howto/ipaddress.rst) This example: >>> net4 = ipaddress.ip_network('192.0.2.0/24') >>> for x in net4.iterhosts(): print(x) Seems to be wrong: ... Traceback (most rec

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-31 Thread Eli Bendersky
Eli Bendersky added the comment: P.S. I intend to prepare patch(es) eventually, but I will document the problems I find here, in case anyone is interested to discuss. -- ___ Python tracker <http://bugs.python.org/issue14

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-31 Thread Eli Bendersky
Eli Bendersky added the comment: Ah, probably hosts() replaced iterhosts() -- ___ Python tracker <http://bugs.python.org/issue14814> ___ ___ Python-bugs-list m

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-31 Thread Eli Bendersky
Eli Bendersky added the comment: Attaching a patch for the howto -- Added file: http://bugs.python.org/file26612/ipaddr_howto.1.patch ___ Python tracker <http://bugs.python.org/issue14

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-31 Thread Eli Bendersky
Eli Bendersky added the comment: FWIW I would prefer this HOWTO to be part of the document itself. Splitting a document to two parts and keeping them separated is problematic exactly for the same reasons as external documentation in general - it can be forgotten when things get updated

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-31 Thread Eli Bendersky
Eli Bendersky added the comment: The docs don't mention that addresses can also be packed in bytes -- ___ Python tracker <http://bugs.python.org/is

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-31 Thread Eli Bendersky
Eli Bendersky added the comment: I disagree about the HOWTO vs. doc thing, but I don't see it as a major issue so I won't dwell on it. I'm now in the process of throwing together a patch for the reference doc - also bundling the address objects together, the network object

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-31 Thread Eli Bendersky
Eli Bendersky added the comment: Alright, attaching an attempt at improving the reference docs. This only handles the address objects for now: 1. Grouping address objects together, network objects together, interface objects together 2. Explain that everything IPv4Address exposes is also

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-31 Thread Eli Bendersky
Eli Bendersky added the comment: Thanks Nick. I've addressed your review comments and will be pushing the doc update. -- ___ Python tracker <http://bugs.python.org/is

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-31 Thread Eli Bendersky
Eli Bendersky added the comment: By the way, Nick, was not this module intended to be introduced as provisional in 3.3? At least PEP 411 lists it as one of the candidates. -- ___ Python tracker <http://bugs.python.org/issue14

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-31 Thread Eli Bendersky
Eli Bendersky added the comment: Attaching part 1 of the patch for documenting the network objects. Contains general introduction, detailed documentation of constructors and all attributes. Left to document: methods, operations (like iterating, "in", comparison operators) --

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-31 Thread Eli Bendersky
Eli Bendersky added the comment: Attaching an updated patch that completes the documentation of network objects (attributes, methods and operations). Additionally, inserted the "provisional package" note and a "new in 3.3" notice. -- Added file: http://bugs.

[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py

2012-08-01 Thread Eli Bendersky
Eli Bendersky added the comment: Backported in 014b36383a54 and 29bdbcadf299 -- ___ Python tracker <http://bugs.python.org/issue15231> ___ ___ Python-bugs-list m

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-08-05 Thread Eli Bendersky
Eli Bendersky added the comment: Nick, your commit incorporates my latest patch (ipaddr_refdoc_network.2.patch), right? -- ___ Python tracker <http://bugs.python.org/issue14

[issue15572] Python2 documentation of the file() built-in function

2012-08-07 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: +eli.bendersky ___ Python tracker <http://bugs.python.org/issue15572> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15586] Provide some examples for usage of ElementTree methods/attributes

2012-08-08 Thread Eli Bendersky
Eli Bendersky added the comment: Please note that the documentation of ET has been significantly improved in 3.3, with added examples, etc. You can start by backporting whatever is relevant to earlier versions (2.7/3.2) - do not add new documentation contents to 2.7/3.2 before the changes

[issue15586] Provide some examples for usage of ElementTree methods/attributes

2012-08-08 Thread Eli Bendersky
Changes by Eli Bendersky : -- versions: +Python 2.7, Python 3.3, Python 3.4 ___ Python tracker <http://bugs.python.org/issue15586> ___ ___ Python-bugs-list mailin

[issue15586] Provide some examples for usage of ElementTree methods/attributes

2012-08-09 Thread Eli Bendersky
Eli Bendersky added the comment: I provided some comments on your patch in the code-review tool. Thanks for the contribution, Daniel. It's fine to first apply these changes to 3.3 and then backport to 2.7 (I don't think 3.2 is necessary because most users use the online d

[issue15586] Provide some examples for usage of ElementTree methods/attributes

2012-08-09 Thread Eli Bendersky
Changes by Eli Bendersky : -- versions: +Python 2.7 ___ Python tracker <http://bugs.python.org/issue15586> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15586] Provide some examples for usage of ElementTree methods/attributes

2012-08-09 Thread Eli Bendersky
Eli Bendersky added the comment: Sarbjit, if you look at the docs of 3.3, I think most of what you're asking for is there (especially once you count Daniel's commit). What else is missing in your opinion? -- ___ Python trac

[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py

2012-08-09 Thread Eli Bendersky
Eli Bendersky added the comment: My job is done here. Éric - assigning to you for distutils2, once it becomes relevant. -- assignee: docs@python -> eric.araujo ___ Python tracker <http://bugs.python.org/issu

[issue15231] update PyPI upload doc to say --no-raw passed to rst2html.py

2012-08-09 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: -eli.bendersky ___ Python tracker <http://bugs.python.org/issue15231> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15586] Provide some examples for usage of ElementTree methods/attributes

2012-08-09 Thread Eli Bendersky
Eli Bendersky added the comment: Sarbjit: first of all, look at the up-to-date documentation for 3.3 (it's available online at http://docs.python.org/dev/ Then, on a checkout of the 3.3 code (default branch) you can apply Daniel's patch (it's in the "Files" section i

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-08-09 Thread Eli Bendersky
Eli Bendersky added the comment: Here's a patch adding documentation to the *Interface classes. I must say I'm not very psyched about the with_* methods. Their outputs are inconsistent, unlike in *Network, where all return strings. --

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-08-09 Thread Eli Bendersky
Changes by Eli Bendersky : Added file: http://bugs.python.org/file26736/ipaddr_refdoc_interface.1.patch ___ Python tracker <http://bugs.python.org/issue14814> ___ ___

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-08-09 Thread Eli Bendersky
Eli Bendersky added the comment: pmoody - you mean IPv?Interface, right? The network classes consistently return strings in with_* methods -- ___ Python tracker <http://bugs.python.org/issue14

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-08-09 Thread Eli Bendersky
Eli Bendersky added the comment: Attaching a new patch that fixes the with_* methods to be more consistent, and the relevant tests too. The doc is now consistent as well. For some reason IPv6Interface.with_netmask also returned the prefixlen representation. The test justified it by quoting

[issue15619] set.pop() documentation is confusing

2012-08-10 Thread Eli Bendersky
Eli Bendersky added the comment: I agree with Georg. As far as I understand the word "arbitrary" - it describes the situation exactly. -- nosy: +eli.bendersky ___ Python tracker <http://bugs.python.o

[issue15586] Provide some examples for usage of ElementTree methods/attributes

2012-08-13 Thread Eli Bendersky
Eli Bendersky added the comment: I committed your patch to default (3.3) with some minor fixes. Please go over them as you will need to apply them to the 2.7 patch. I've reviewed the 2.7 patch as well - it's an initial review. Did you execute all the code sampl

[issue15586] Provide some examples for usage of ElementTree methods/attributes

2012-08-15 Thread Eli Bendersky
Eli Bendersky added the comment: Daniel, this looks good except that the section numbering is different from 3.3 where the object/function reference sections were nested under "Reference". Could you fix your patch to align the 2.7 doc to this structure? P.S. Éric's comment

[issue15656] "Extending Python with C" page needs update for 3.x

2012-08-15 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: +eli.bendersky ___ Python tracker <http://bugs.python.org/issue15656> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15656] "Extending Python with C" page needs update for 3.x

2012-08-15 Thread Eli Bendersky
Eli Bendersky added the comment: Fixed, thanks for the report. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue15629] Run doctests in Doc/*.rst as part of regrtest

2012-08-15 Thread Eli Bendersky
Eli Bendersky added the comment: I think implementing this is very important, and +1 to Georg's suggestion, because no one is suddenly going to convert KLOCs of code samples to be testable (many code samples are partial, and will need to be completed in one way or another to be act

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-08-19 Thread Eli Bendersky
Eli Bendersky added the comment: I'm just waiting for a review. If Nick has no time for that, perhaps I can commit anyway since this is just adding documentation. -- ___ Python tracker <http://bugs.python.org/is

[issue15811] ElementTree.write() raises TypeError when xml_declaration = True and encoding is a unicode string

2012-08-29 Thread Eli Bendersky
Eli Bendersky added the comment: Thanks for the patch, David. Alas, due to personal reasons I will not be able to work on core Python in the next 2-3 months. I may throw in a review here and there, but that's not a promise ;-) -- ___ P

[issue16089] _elementtree causes segfault in GC

2012-09-30 Thread Eli Bendersky
Eli Bendersky added the comment: I'm currently somewhat "offline" for a while (cross-continental move), but I'll do my best to try to recreate my setup to test this problem and the proposed solution. -- ___ Python tracker <

[issue16089] _elementtree causes segfault in GC

2012-10-01 Thread Eli Bendersky
Eli Bendersky added the comment: Thank you, Antoine, for looking into this. I wish I could participate in a meaningful way, but alas it will be days or weeks before I can recreate a suitable setup to get back hacking on Python. -- ___ Python

[issue16089] _elementtree.TreeBuilder broken with a non-C-deriving element_factory

2012-10-04 Thread Eli Bendersky
Eli Bendersky added the comment: Antoine, Thanks! You said : > the coding style there is quite old It would be great if you could elaborate, however briefly, if there's anything else besides your fixes that is old and should be modernized. I will admit to writing some of that c

[issue16089] _elementtree.TreeBuilder broken with a non-C-deriving element_factory

2012-10-04 Thread Eli Bendersky
Eli Bendersky added the comment: Ah, OK. I was actually putting off refactorings in that code to after refactoring the test suite. The latter is in progress, it was paused by my vacation but I do plan to resume it eventually. Once the test suite is sufficiently humane (esp. moves off doctest

[issue16076] xml.etree.ElementTree.Element is no longer pickleable

2012-10-07 Thread Eli Bendersky
Eli Bendersky added the comment: Will look into it, thanks for the report. -- ___ Python tracker <http://bugs.python.org/issue16076> ___ ___ Python-bugs-list m

[issue12322] ElementPath 1.3 expressions documentation

2012-10-07 Thread Eli Bendersky
Eli Bendersky added the comment: Thanks for the report, Patrick. Yes, documenting this limitation would make sense. Have you tested to see how it behaves? Anyhow, a patch would be welcome ;-) -- stage: -> needs patch ___ Python tracker &l

[issue16082] xml.etree.ElementTree.tostringlist does not conform to its documentation

2012-10-07 Thread Eli Bendersky
Eli Bendersky added the comment: Thanks for the report. I'll take a look. Patches always welcome :) -- stage: -> patch review title: xml.etree.ElementTree.tostringlist does conform to it's documentation -> xml.etree.ElementTree.tostringlist does not conform to i

[issue15888] ipaddress doctest examples have some errors

2012-10-07 Thread Eli Bendersky
Eli Bendersky added the comment: Thanks, Chris. I'll take a look -- ___ Python tracker <http://bugs.python.org/issue15888> ___ ___ Python-bugs-list m

[issue15888] ipaddress doctest examples have some errors

2012-10-07 Thread Eli Bendersky
Eli Bendersky added the comment: Pushed to 3.3 and 3.4 Thanks for the report and patch -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue12322] ElementPath 1.3 expressions documentation

2012-10-09 Thread Eli Bendersky
Eli Bendersky added the comment: Changes pushed. Thanks for the report and patches. Mike - a note for the future: when you create an updated patch, create it anew vs. a clean repo. Don't "compound" patches. -- resolution: -> fixed stage: needs patch -> committed/

[issue16082] xml.etree.ElementTree.tostringlist does not conform to its documentation

2012-10-09 Thread Eli Bendersky
Eli Bendersky added the comment: Einar, TypeError is raised because tostring/tostringlist return bytes with the default encoding, and you can't join bytes on "" (which is unicode). -- ___ Python tracker <http://bugs.pyt

[issue16044] xml.etree.ElementTree.Element: append method iterator param is broken

2012-10-14 Thread Eli Bendersky
Eli Bendersky added the comment: Closing, since this isn't a bug and append's behavior is properly documented. Regarding the error message, yes it could probably be better but you would need to enable input validation for that. Since Python is duck typed, often when argumen

[issue15381] Optimize BytesIO to do less reallocations when written, similarly to StringIO

2012-10-14 Thread Eli Bendersky
Changes by Eli Bendersky : -- title: Optimize BytesIO to so less reallocations when written, similarly to StringIO -> Optimize BytesIO to do less reallocations when written, similarly to StringIO ___ Python tracker <http://bugs.pyth

[issue12321] documentation of ElementTree.find

2012-10-14 Thread Eli Bendersky
Changes by Eli Bendersky : Removed file: http://bugs.python.org/file22406/unnamed ___ Python tracker <http://bugs.python.org/issue12321> ___ ___ Python-bugs-list mailin

[issue12321] documentation of ElementTree.find

2012-10-14 Thread Eli Bendersky
Changes by Eli Bendersky : -- versions: +Python 3.4 ___ Python tracker <http://bugs.python.org/issue12321> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12321] documentation of ElementTree.find

2012-10-14 Thread Eli Bendersky
Eli Bendersky added the comment: I think this may be intentional. Absolute searches on a ElementTree are discouraged with a warning: def find(self, path, namespaces=None): # assert self._root is not None if path[:1] == "/": path =

[issue15442] Expand the list of default dirs filecmp.dircmp ignores

2012-10-14 Thread Eli Bendersky
Eli Bendersky added the comment: moijes12, why are the added names "raw" ? -- ___ Python tracker <http://bugs.python.org/issue15442> ___ ___ Python-b

[issue15442] Expand the list of default dirs filecmp.dircmp ignores

2012-10-15 Thread Eli Bendersky
Eli Bendersky added the comment: I tend to agree with Éric here. moijes12, would you like to send an updated patch without the raw literals, and with added tests for the new/changed functionality? -- ___ Python tracker <http://bugs.python.

[issue15586] Provide some examples for usage of ElementTree methods/attributes

2012-10-15 Thread Eli Bendersky
Changes by Eli Bendersky : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue15811] ElementTree.write() raises TypeError when xml_declaration = True and encoding is a unicode string

2012-10-15 Thread Eli Bendersky
Eli Bendersky added the comment: Finally found time to look at this, sorry for the delay. I agree with Amaury, and don't think any change is necessary in 2.7, the behavior there is quite consistent with what was usually done in 2.x. For porting or keeping the code 2/3 compatible, Ama

[issue15518] Provide test coverage for filecmp.dircmp.report methods.

2012-10-15 Thread Eli Bendersky
Eli Bendersky added the comment: Moving to 3.4 In 3.3 we won't add functionality to filecmp, but in 3.4 we will, so the new tests should go there. -- nosy: +eli.bendersky versions: +Python 3.4 -Python 3.3 ___ Python tracker <http://bugs.py

[issue15518] Provide test coverage for filecmp.dircmp.report methods.

2012-10-15 Thread Eli Bendersky
Eli Bendersky added the comment: Chris Calloway, let's move this forward. I want to see more tests for filecmp ASAP. Please address Chris Jerdonek's points in a new patch made vs. fresh default branch (3.4), at this point "cd"ing (before the test_cwd thing is done

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

2012-10-15 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: +eli.bendersky ___ Python tracker <http://bugs.python.org/issue15351> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14332] Better explain "junk" concept in difflib doc

2014-03-19 Thread Eli Bendersky
Eli Bendersky added the comment: Revised patch LGTM. -- ___ Python tracker <http://bugs.python.org/issue14332> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19655] Replace the ASDL parser carried with CPython

2014-03-30 Thread Eli Bendersky
Eli Bendersky added the comment: There were no serious objections bar the pre-release timing. Now that we're safely in 3.5 territory, can I go ahead and create a patch? Note that for purposes of review, the Github project linked in the original message is more convenient,

[issue19655] Replace the ASDL parser carried with CPython

2014-03-31 Thread Eli Bendersky
Eli Bendersky added the comment: Attaching patch that implements this. To make it easier, the patch only replaces the ASDL parser - not touching anything else and leaving the output intact. With this patch applied, when the Makefile is rerun it regenerates the actual AST code in: Include

[issue20375] ElementTree: Document handling processing instructions

2014-03-31 Thread Eli Bendersky
Eli Bendersky added the comment: The patch appears to contain code (tests) along with the documentation. Is this intended? This issue is not tagged properly if it is. I'd suggest to split them to separate patches. -- versions: +Python 3.5 -Python 2.7, Python 3.3, Pytho

[issue21028] ElementTree objects should support all the same methods as Element objects

2014-03-31 Thread Eli Bendersky
Eli Bendersky added the comment: Raymond, you are right that the APIs presented by Element and ElementTree are somewhat different. As Stefan mentioned, they were really meant to represent different things, but with time some "convenience" features crept in and made the differenc

[issue20375] ElementTree: Document handling processing instructions

2014-04-02 Thread Eli Bendersky
Eli Bendersky added the comment: I left some comments in Rietveld. There shouldn't be a problem getting these into 3.4 too - doc changes are usually excempt from most restrictions. -- ___ Python tracker <http://bugs.python.org/is

[issue21028] ElementTree objects should support all the same methods as Element objects

2014-04-02 Thread Eli Bendersky
Eli Bendersky added the comment: > Do you have concrete suggestions? Make the tree iterable? > > Add all element methods to the tree, implicitly forwarding to the root? > > Yes, that is the feature request. Add all the element methods to the > elementtree object. > >

[issue20375] ElementTree: Document handling processing instructions

2014-04-03 Thread Eli Bendersky
Eli Bendersky added the comment: Thanks. Doc patch committed with some slight rewording. Would you like to prepare a separate patch for the tests, default branch only this time? -- versions: -Python 3.4 ___ Python tracker <http://bugs.python.

[issue19655] Replace the ASDL parser carried with CPython

2014-04-03 Thread Eli Bendersky
Eli Bendersky added the comment: Since there has mostly been support for this, I'll wait a couple more days and commit it unless someones objects or asks for more time for review. -- ___ Python tracker <http://bugs.python.org/is

[issue20375] ElementTree: Document handling processing instructions

2014-04-03 Thread Eli Bendersky
Eli Bendersky added the comment: On Thu, Apr 3, 2014 at 1:19 PM, Nikolaus Rath wrote: > > Nikolaus Rath added the comment: > > Thanks for the commit! > > My intention is to fix the behavior itself for 3.5 (see issue 9521), so I > think adding testcases for the old behavior

[issue19655] Replace the ASDL parser carried with CPython

2014-04-04 Thread Eli Bendersky
Eli Bendersky added the comment: On Fri, Apr 4, 2014 at 6:10 AM, Serhiy Storchaka wrote: > > Serhiy Storchaka added the comment: > > Now make fails when system Python is older than 3.4. > > This is why the .h & .c files are checked in - someone just building Python doesn&#

[issue19655] Replace the ASDL parser carried with CPython

2014-04-05 Thread Eli Bendersky
Eli Bendersky added the comment: Nick, it shouldn't be hard to drop to 3.3, but I'm curious why would the 3.4 requirement break Fedora, or anything for that matter? Does Fedora regenerate the C implementation of the AST for some reason on every build? AFAIU, building Python from s

[issue19655] Replace the ASDL parser carried with CPython

2014-04-05 Thread Eli Bendersky
Eli Bendersky added the comment: Updated patch attached: 1. Python 3.3+ supported (I suspect 3.2 will work too) 2. Incorporated Serhiy's suggestions (thanks for the review!) -- Added file: http://bugs.python.org/file34742/new-asdl-parser.issue19655.2.

[issue21403] cElementTree's Element creation handles attrib argument different from ET

2014-05-01 Thread Eli Bendersky
Eli Bendersky added the comment: > Note that this has been fixed in Py3 already (Py3.3, I guess). The only > question is whether the behaviour will be changed in Py2.7. > I don't think this issue is acute enough to warrant fixes in 2.7; however, a documentation patch wo

[issue19655] Replace the ASDL parser carried with CPython

2014-05-09 Thread Eli Bendersky
Changes by Eli Bendersky : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue19655] Replace the ASDL parser carried with CPython

2014-05-10 Thread Eli Bendersky
Eli Bendersky added the comment: Stefan, you need to run `make touch` if you want to avoid rebuilding. See #15964 for more details. [all bots run `make touch` before building now] -- ___ Python tracker <http://bugs.python.org/issue19

[issue19655] Replace the ASDL parser carried with CPython

2014-05-10 Thread Eli Bendersky
Eli Bendersky added the comment: This is also described in the Dev Guide: https://docs.python.org/devguide/setup.html -- ___ Python tracker <http://bugs.python.org/issue19

[issue21480] A build now requires...

2014-05-12 Thread Eli Bendersky
Eli Bendersky added the comment: Skip, PTAL at the devguide. https://docs.python.org/devguide/setup.html#avoiding-re-creating-auto-generated-files -- ___ Python tracker <http://bugs.python.org/issue21

[issue21706] Add base for enumerations (Functional API)

2014-06-10 Thread Eli Bendersky
Eli Bendersky added the comment: Is it really worthwhile to complicate the API for the sake of providing a less flexible solution for rare cases that saves a few keystrokes? -- ___ Python tracker <http://bugs.python.org/issue21

[issue16076] xml.etree.ElementTree.Element and xml.etree.ElementTree.TreeBuilder are no longer pickleable

2012-12-07 Thread Eli Bendersky
Eli Bendersky added the comment: Thanks for working on it, Daniel. Unfortunately I won't have time to look at it in the near future, but I will definitely look at the patch once I get some free time to hack on Python again. -- ___ Python tr

[issue16798] DTD not checked

2012-12-29 Thread Eli Bendersky
Eli Bendersky added the comment: I have no plans adding this feature to etree. -- ___ Python tracker <http://bugs.python.org/issue16798> ___ ___ Python-bugs-list m

[issue16219] segfault when using xml.etree.ElementTree.XMLTreeBuilder

2012-12-29 Thread Eli Bendersky
Changes by Eli Bendersky : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue16219> ___ ___ Python-bugs-list mailing list Unsubscri

[issue16076] xml.etree.ElementTree.Element and xml.etree.ElementTree.TreeBuilder are no longer pickleable

2012-12-29 Thread Eli Bendersky
Eli Bendersky added the comment: Daniel, is your patch made vs. the 3.3 branch? I'll need to apply there first, and then merge up to default (3.4). [Also, removing the 3.2 tag here. 3.2 won't be fixed to make _elementtree pickleable - it never was]. -- versions: -

[issue16076] xml.etree.ElementTree.Element and xml.etree.ElementTree.TreeBuilder are no longer pickleable

2012-12-29 Thread Eli Bendersky
Eli Bendersky added the comment: Also, could you explain what makes test___all__ start failing with this patch? What are you adding that makes that happen? P.S. I suspect the root reason is the bad way etree tests are structured in general. See issue 15083

[issue15651] PEP 3121, 384 refactoring applied to elementtree module

2012-12-29 Thread Eli Bendersky
Eli Bendersky added the comment: Thanks for the patch. I'll take a look. -- assignee: -> eli.bendersky ___ Python tracker <http://bugs.python.org

[issue16076] xml.etree.ElementTree.Element and xml.etree.ElementTree.TreeBuilder are no longer pickleable

2012-12-29 Thread Eli Bendersky
Eli Bendersky added the comment: I think I understand what's going on there. Pickle, to make sure an object can be picked, looks at the module it comes from and tries to import its class, to make sure they're the same. What happens since 3.3 is that for the Python Element class,

<    4   5   6   7   8   9   10   11   12   13   >