[issue18924] Enum members are easily replaced

2013-09-04 Thread Eli Bendersky
Eli Bendersky added the comment: Time for your friendly devil's advocate... We're using and loving this language: >>> class Foo: ... bar = 2 ... >>> f = Foo() >>> f.bar 2 >>> f.bar = 42 >>> f.bar 42 >>> So let's stop

[issue18924] Enum members are easily replaced

2013-09-04 Thread Eli Bendersky
Eli Bendersky added the comment: "You do not have permission to edit user" - in a red banner, no less. Blasphemy. -- ___ Python tracker <http://bugs.python.o

[issue18924] Enum members are easily replaced

2013-09-04 Thread Eli Bendersky
Eli Bendersky added the comment: On Wed, Sep 4, 2013 at 1:57 PM, Ethan Furman wrote: > > Ethan Furman added the comment: > > Eli Bendersky added the comment: > > > > So let's stop trying to make enums even more alien. This is a non-issue > in Python. >

[issue12704] Language Reference: Clarify behaviour of yield when generator is not resumed

2013-09-05 Thread Eli Bendersky
Eli Bendersky added the comment: On Wed, Sep 4, 2013 at 5:27 PM, Nikolaus Rath wrote: > > Nikolaus Rath added the comment: > > On 09/04/2013 06:03 AM, Eli Bendersky wrote: > > Why guess... did you try it in the code? > > I don't follow... why guess what? And try wha

[issue18924] Enum members are easily replaced

2013-09-05 Thread Eli Bendersky
Eli Bendersky added the comment: On Wed, Sep 4, 2013 at 3:05 PM, Ethan Furman wrote: > > Ethan Furman added the comment: > > Yes, as a matter of fact: > > --> Test.this > > --> Test.this = 'other' > --> Test.this > 'other' > --&

[issue18920] argparse module version action

2013-09-06 Thread Eli Bendersky
Eli Bendersky added the comment: Thanks, I moved the NEWS entry to the right place. Yes, all tests pass. I'll update whatsnew separately. -- ___ Python tracker <http://bugs.python.org/is

[issue18920] argparse module version action

2013-09-06 Thread Eli Bendersky
Changes by Eli Bendersky : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: -Python 3.4 ___ Python tracker <http://bugs.python.or

[issue18945] Name collision handling in tempfile is not covered by tests

2013-09-06 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: +eli.bendersky ___ Python tracker <http://bugs.python.org/issue18945> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18986] Add a case-insensitive case-preserving dict

2013-09-09 Thread Eli Bendersky
Eli Bendersky added the comment: +1 For the general idea +1 For the more generic approach of which "lowercase" is just one special case +10 to make this a PEP so that more people have a chance to express their opinion (currently only those who noticed it on the issues mailing list

[issue18281] tarfile defines stat constants

2013-09-10 Thread Eli Bendersky
Eli Bendersky added the comment: lgtm. kill 'em -- nosy: +eli.bendersky ___ Python tracker <http://bugs.python.org/issue18281> ___ ___ Python-bugs-list m

[issue18998] iter() not working in ElementTree

2013-09-10 Thread Eli Bendersky
Eli Bendersky added the comment: I'm having trouble reproducing the problem, Germán. Running with Python 3.3.2 from a couple of days ago: Python 3.3.2+ (3.3:0eef1670f316, Sep 8 2013, 08:31:59) [GCC 4.6.3] on linux Type "help", "copyright", "credits"

[issue18997] Crash when using pickle and ElementTree

2013-09-10 Thread Eli Bendersky
Eli Bendersky added the comment: Thanks for this report, Germán (and the other issue as well). I'll do my best to take a look later this week. -- assignee: -> eli.bendersky stage: -> patch review type: -> behavior versions: +Python 3.4

[issue14762] ElementTree memory leak

2012-05-09 Thread Eli Bendersky
Eli Bendersky added the comment: Can you specify how you import ET? I.e. from the pure Python or the C accelerator? Also, do you realize that the element iterparse returns should be discarded with 'clear'? [see tutorial here: http://eli.thegreenplace.net/2012/03/15/processing-xml

[issue14818] C implementation of ElementTree causes regressions

2012-05-16 Thread Eli Bendersky
Eli Bendersky added the comment: Thanks for the report - such regressions are taken seriously and will be fixed. Ezio - you can go ahead and prepare a patch. I'm currently away from home (business trip) but I will look into it when I get back next

[issue14818] C implementation of ElementTree: Some functions should support keyword arguments

2012-05-19 Thread Eli Bendersky
Eli Bendersky added the comment: Ezio, Your patch looks good, with these notes: * When raising TypeError in the Python constructor, say that 'attrib' must be a dict, otherwise it's not clear *what* must be a dict. * The 'attrib' keyword handling has to be added to

[issue14849] C implementation of ElementTree: Inheriting from Element breaks text member

2012-05-19 Thread Eli Bendersky
Eli Bendersky added the comment: Here's a simpler testcase: import xml.etree.ElementTree as ET class XElement(ET.Element): def __init__(self, tag, attrib={}): ET.Element.__init__(self, tag, attrib) e = XElement('test') e.text = 'failure&#

[issue14849] C implementation of ElementTree: Inheriting from Element breaks text member

2012-05-19 Thread Eli Bendersky
Changes by Eli Bendersky : -- assignee: -> eli.bendersky resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python

[issue14884] Windows Build instruction typo

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

[issue14884] Windows Build instruction typo

2012-05-23 Thread Eli Bendersky
Eli Bendersky added the comment: Nitpicking: the drop down (in both VC++ 2008 & 2010 express) is named "Solution Configurations" [note the 's' in the end] But this name does now appear anywhere - only if you hover on the dropbox. I don't mind either way - ei

[issue14884] Windows Build instruction typo

2012-05-23 Thread Eli Bendersky
Eli Bendersky added the comment: LGTM. Brian, any objections to commit? P.S. Michael: I usually like numbering successive versions of a patch (like setup.1.patch, setup.2.patch, or a similar scheme) - this makes it easier to refer to more than one version in a discussion without getting

[issue14884] Windows Build instruction typo

2012-05-23 Thread Eli Bendersky
Eli Bendersky added the comment: Done (with a tiny fix inserting parens to avoid ambiguity in a sentence). Thanks for the contribution! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Pytho

[issue14818] C implementation of ElementTree: Some functions should support keyword arguments

2012-05-27 Thread Eli Bendersky
Eli Bendersky added the comment: The whole namespace issue is not very well documented in the ReST doc for ET - should open a new issue on this -- ___ Python tracker <http://bugs.python.org/issue14

[issue14818] C implementation of ElementTree: Some functions should support keyword arguments

2012-05-27 Thread Eli Bendersky
Eli Bendersky added the comment: Updated patch with fixed error messages, additional tests and some documentation. No support in SubElement yet -- Added file: http://bugs.python.org/file25741/issue14818.3.patch ___ Python tracker <h

[issue14078] Add 'sourceline' property to xml.etree Elements

2012-05-28 Thread Eli Bendersky
Eli Bendersky added the comment: Hi Leon, Do you have an interest in pursuing this issue? -- ___ Python tracker <http://bugs.python.org/issue14078> ___ ___ Pytho

[issue14852] json and ElementTree parsers misbehave on streams containing more than a single object

2012-05-28 Thread Eli Bendersky
Eli Bendersky added the comment: I don't think this is an enhancement to ET, because ET was not designed to be a streaming parser, which is what is required here. ET was designed to read a whole valid XML document. There is 'iterparse', as Antoine mentioned, but it is des

[issue14007] xml.etree.ElementTree - XMLParser and TreeBuilder's doctype() method missing

2012-05-29 Thread Eli Bendersky
Eli Bendersky added the comment: I'm working on completing this issue. It will be done in stages, with each stage committed as a separate chunk of functionality. * Make TreeBuilder an actual exported type (subclassable) from _elementtree * TreeBuilder constructor should accept argumen

[issue14007] xml.etree.ElementTree - XMLParser and TreeBuilder's doctype() method missing

2012-05-31 Thread Eli Bendersky
Eli Bendersky added the comment: * Another problem: the C implementation of XMLParser does not take 3 positional args, but only 2. Although the 'html' arg is documented as "unsupported", it should still be taken and silently ignored, similarly t

[issue14007] xml.etree.ElementTree - XMLParser and TreeBuilder's doctype() method missing

2012-06-01 Thread Eli Bendersky
Eli Bendersky added the comment: The latest commit completes this issue. -- resolution: -> fixed stage: test needed -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue14852] json and ElementTree parsers misbehave on streams containing more than a single object

2012-06-01 Thread Eli Bendersky
Eli Bendersky added the comment: I propose to close this issue. If the problem in json is real and someone thinks it has to be fixed, a separate issue specifically for json should be opened. -- ___ Python tracker <http://bugs.python.

[issue14128] _elementtree should expose types and factory functions consistently with ElementTree

2012-06-01 Thread Eli Bendersky
Eli Bendersky added the comment: Done with the recent completion of #14007 -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue14007] xml.etree.ElementTree - XMLParser and TreeBuilder's doctype() method missing

2012-06-02 Thread Eli Bendersky
Eli Bendersky added the comment: Thanks. Fixed in changeset eb1d633fe307. I'll watch the bots to see no problems remain. -- status: open -> closed ___ Python tracker <http://bugs.python.org

[issue14424] document PyType_GenericAlloc

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

[issue14424] document PyType_GenericAlloc

2012-06-02 Thread Eli Bendersky
Changes by Eli Bendersky : -- versions: -Python 3.2 ___ Python tracker <http://bugs.python.org/issue14424> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14190] Minor C API documentation bugs

2012-06-02 Thread Eli Bendersky
Eli Bendersky added the comment: Fixed what was relevant for default (3.3) in 90f0dd118aa4 (the commit message there has a typo in the issue number). Since 3.3 is going to be out soon, I see no real reason to backport to 3.2 If anyone is willing to create a complete patch for 2.7 that fixes

[issue14852] json and ElementTree parsers misbehave on streams containing more than a single object

2012-06-08 Thread Eli Bendersky
Changes by Eli Bendersky : -- resolution: -> wont fix stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue14006] Improve the documentation of xml.etree.ElementTree

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

[issue14377] Modify serializer for xml.etree.ElementTree to allow forcing the use of long tag closing

2012-06-08 Thread Eli Bendersky
Eli Bendersky added the comment: Any progress, or can this issue be closed? -- ___ Python tracker <http://bugs.python.org/issue14377> ___ ___ Python-bugs-list m

[issue14078] Add 'sourceline' property to xml.etree Elements

2012-06-08 Thread Eli Bendersky
Changes by Eli Bendersky : -- resolution: -> wont fix stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue11379] Remove "lightweight" from minidom description

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

[issue1040439] Missing documentation on how to link with libpython

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

[issue14097] Improve the "introduction" page of the tutorial

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

[issue13455] Reorganize tracker docs in the devguide

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

[issue12907] Update test coverage devguide page

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

[issue14377] Modify serializer for xml.etree.ElementTree to allow forcing the use of long tag closing

2012-06-14 Thread Eli Bendersky
Eli Bendersky added the comment: Agree with Serhiy. Why are these flags required in Element? Also, I'm moving this to 3.4 since the patch came too late in the 3.3 process - the first beta is very soon, after which we prefer not to add new features. -- priority: normal -> l

[issue14035] behavior of test.support.import_fresh_module

2012-06-14 Thread Eli Bendersky
Eli Bendersky added the comment: This looks rejected to me. Any opposition to closing the issue? -- ___ Python tracker <http://bugs.python.org/issue14

[issue13988] Expose the C implementation of ElementTree by default when importing ElementTree

2012-06-14 Thread Eli Bendersky
Eli Bendersky added the comment: Note: last traces of Python bootstrap code were removed from _elementtree in changeset 652d148bdc1d -- ___ Python tracker <http://bugs.python.org/issue13

[issue15075] XincludeTest failure in test_xml_etree

2012-06-15 Thread Eli Bendersky
New submission from Eli Bendersky : The XincludeTest test-case in test_xml_etree is now skipped, because it fails in an intermittent manner. I can reproduce the failure when running full regrtest with -j1, but not -j8, and not when run individually. The failure is most likely due to the test

[issue15075] XincludeTest failure in test_xml_etree

2012-06-15 Thread Eli Bendersky
Eli Bendersky added the comment: After some tinkering I found which test when run before test_xml_etree causes it to crash: $ ./python -m test.regrtest test___all__ test_xml_etree [1/2] test___all__ [2/2] test_xml_etree Fatal Python error: Segmentation fault Current thread 0x7f771ecec700

[issue15075] XincludeTest failure in test_xml_etree

2012-06-15 Thread Eli Bendersky
Eli Bendersky added the comment: As suspected, the cause is that xinclude_loader manages to somehow import the C version of ET, although test_xml_etree tries to enforce the Python version. This is probably because test___all__ imports all modules and leaves stuff in the import cache. What

[issue15075] XincludeTest failure in test_xml_etree

2012-06-15 Thread Eli Bendersky
Eli Bendersky added the comment: Here is a patch that solves the current problem. A longer term solution would be to have a cleaner test plan for ET in general, without monkey-patching at all, and without state that causes test-order dependencies. -- keywords: +patch Added file

[issue15083] Rewrite ElementTree tests in a cleaner and safer way

2012-06-15 Thread Eli Bendersky
New submission from Eli Bendersky : As #15075 demonstrated, the ET tests are sensitive to execution order because of the way they operate. Two sets of tests (one for the C module and one for the pure Python module) operate from the same test code, monkey-patching the imported module. This

[issue15075] XincludeTest failure in test_xml_etree

2012-06-15 Thread Eli Bendersky
Eli Bendersky added the comment: Opened #15083 to track the *actual* solution to this problem, which should restructure the tests to be safer. -- superseder: -> Rewrite ElementTree tests in a cleaner and safer way ___ Python tracker &l

[issue15075] XincludeTest failure in test_xml_etree

2012-06-16 Thread Eli Bendersky
Eli Bendersky added the comment: No need, the cause for the segfault is known. What happens is that Element objects from the Python module get intermixed with Element objects from the C module, and these are incompatible. The C module traversal functions assume they can cast Elements to a

[issue14055] Implement __sizeof__ for etree Element

2012-06-16 Thread Eli Bendersky
Eli Bendersky added the comment: Out of curiosity, why don't the constituents of Element (i.e. the tag, the attributes dict, etc.) count for its size? -- ___ Python tracker <http://bugs.python.org/is

[issue14055] Implement __sizeof__ for etree Element

2012-06-16 Thread Eli Bendersky
Eli Bendersky added the comment: Martin, thanks for the explanation. The patch LGTM, then. Could it be useful to document this a bit more explicitly in the description of sys.getsizeof? The most intuitive thing to expect from it is to compute the *total* size including contained objects. So

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

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

[issue9458] xml.etree.ElementTree.ElementTree.write(): encoding handling problems

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

[issue13823] xml.etree.ElementTree.ElementTree.write - argument checking

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

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

2012-06-24 Thread Eli Bendersky
Eli Bendersky added the comment: I will try to find time to review it before the fork, but since time is tight I don't promise. That said, this patch falls more into the bugfix category than a new feature, so I think it will be OK after beta as

[issue14818] C implementation of ElementTree: Some functions should support keyword arguments

2012-05-28 Thread Eli Bendersky
Eli Bendersky added the comment: Committed all fixes in http://hg.python.org/cpython/rev/7d252dbfbee3 -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue14202] The docs of xml.dom.pulldom are almost nonexistent

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

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

2012-07-05 Thread Eli Bendersky
Eli Bendersky added the comment: Serhiy, note that _SimpleElementPath is now gone in 3.3, since ElementPath.py is always there in stdlib. Could you update the patch to reflect this? Another thing. I'm trying really hard to phase out the doctest tests of etree, replacing them with uni

[issue9458] xml.etree.ElementTree.ElementTree.write(): encoding handling problems

2012-07-05 Thread Eli Bendersky
Eli Bendersky added the comment: Please make sure that the patch(es) apply cleanly to 3.3, since this is the version I'll be focusing on. -- ___ Python tracker <http://bugs.python.org/i

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

2012-07-05 Thread Eli Bendersky
Changes by Eli Bendersky : -- components: +Library (Lib) stage: -> test needed versions: +Python 3.4 -Python 3.2 ___ Python tracker <http://bugs.python.org/issu

[issue14377] Modify serializer for xml.etree.ElementTree to allow forcing the use of long tag closing

2012-07-05 Thread Eli Bendersky
Eli Bendersky added the comment: I see no harm in modifying the signature of the private _serialize_* functions to accept another argument or dict of options. -- ___ Python tracker <http://bugs.python.org/issue14

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

2012-07-07 Thread Eli Bendersky
Eli Bendersky added the comment: Thanks for your work on this, Serhiy. I made some comments in the code-review tool, mainly about the complexity of the resulting code. Great work on switching the tests to unittest, much appreciated. -- ___ Python

[issue13378] Change the variable "nsmap" from global to instance (xml.etree.ElementTree)

2012-07-08 Thread Eli Bendersky
Eli Bendersky added the comment: Can this be honestly classified as a bugfix though? If it's a feature it will have to be postponed to 3.4 -- ___ Python tracker <http://bugs.python.org/is

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

2012-07-12 Thread Eli Bendersky
Eli Bendersky added the comment: Thanks, this looks much better. I've reviewed the _4 patch with some minor comments. -- ___ Python tracker <http://bugs.python.org/issu

[issue15296] Minidom can't create ASCII representation

2012-07-12 Thread Eli Bendersky
Eli Bendersky added the comment: Serhiy - why did you remove that documentation bit? -- ___ Python tracker <http://bugs.python.org/issue15296> ___ ___ Python-bug

[issue14790] use packaging in setup.py

2012-07-12 Thread Eli Bendersky
Changes by Eli Bendersky : -- priority: -> deferred blocker ___ Python tracker <http://bugs.python.org/issue14790> ___ ___ Python-bugs-list mailing list Un

[issue14600] Change ImportError reference handling, naming

2012-07-12 Thread Eli Bendersky
Eli Bendersky added the comment: Eric: your note appears to be fixed in the code. Can this issue be closed? -- nosy: +eli.bendersky ___ Python tracker <http://bugs.python.org/issue14

[issue13686] Some notes on the docs of multiprocessing

2012-07-12 Thread Eli Bendersky
Eli Bendersky added the comment: Switching this to 3.3 only Fixes for 1-3 committed in caea3c64442b -- ___ Python tracker <http://bugs.python.org/issue13

[issue15296] Minidom can't create ASCII representation

2012-07-12 Thread Eli Bendersky
Eli Bendersky added the comment: Fixed in 3.3 Thanks for the patch -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue15296> ___ ___ Py

[issue13686] Some notes on the docs of multiprocessing

2012-07-13 Thread Eli Bendersky
Eli Bendersky added the comment: Done (except 5 and 6, which are non-issues on a second look) -- status: open -> closed versions: +Python 3.3 -Python 2.7 ___ Python tracker <http://bugs.python.org/issu

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

2012-07-13 Thread Eli Bendersky
Eli Bendersky added the comment: Serhiy, can you also take a look at #9458 - it may be related? -- ___ Python tracker <http://bugs.python.org/issue1767

[issue14190] Minor C API documentation bugs

2012-07-13 Thread Eli Bendersky
Eli Bendersky added the comment: Closing, as I don't think it's terribly important to backport this. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.py

[issue9458] xml.etree.ElementTree.ElementTree.write(): encoding handling problems

2012-07-14 Thread Eli Bendersky
Eli Bendersky added the comment: I agree with Serhiy that this is more of a documentation/understanding issue than a real bug. I've clarified the doc of ElementTree.write a bit to make it explicit what stream is expected for 'write'. -- assignee: -> docs

[issue13823] xml.etree.ElementTree.ElementTree.write - argument checking

2012-07-14 Thread Eli Bendersky
Eli Bendersky added the comment: About (1): It's customary for Python to accept "truthful" values (like non-empty strings) as True. I see no harm in that. Strict type-checking to boolean True in each and every place is not necessary. About (2): Similarly, this isn't pr

[issue13378] ET: add custom namespaces to serialization methods

2012-07-14 Thread Eli Bendersky
Eli Bendersky added the comment: I'm changing the issue name to reflect the direction it's taken. Florent, once 3.3 is branched, could you please refresh the patch vs. head for 3.4 (don't forget the "what's new") and I'll review it for commit. -

[issue13378] ET: add custom namespaces to serialization methods

2012-07-14 Thread Eli Bendersky
Eli Bendersky added the comment: I'd also expand the doc of register_namespace to note what it should and shouldn't be used for (once this feature is added). -- ___ Python tracker <http://bugs.python.o

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

2012-07-14 Thread Eli Bendersky
Eli Bendersky added the comment: I agree, but this will now be delayed to 3.4, since it's not a bug-fixing change in functionality. P.S. is there any way to create a test for it? -- assignee: -> eli.bendersky priority: normal -> low type: -> behavior versions

[issue15083] Rewrite ElementTree tests in a cleaner and safer way

2012-07-14 Thread Eli Bendersky
Changes by Eli Bendersky : -- versions: -Python 3.3 ___ Python tracker <http://bugs.python.org/issue15083> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10908] Improvements to trace._Ignore

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

[issue9914] trace/profile conflict with the use of sys.modules[__name__]

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

[issue10342] trace module cannot produce coverage reports for zipped modules

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

[issue9325] Add an option to pdb/trace/profile to run library module as a script

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

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

2012-07-14 Thread Eli Bendersky
Eli Bendersky added the comment: ping -- ___ Python tracker <http://bugs.python.org/issue14332> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13386] Document documentation conventions for optional args

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

[issue10685] trace does not ignore --ignore-module

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

[issue13997] Clearly explain the bare minimum Python 3 users should know about Unicode

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

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

2012-07-16 Thread Eli Bendersky
Eli Bendersky added the comment: Fixed the invariant violation in changeset 64ff90e07d71 I'll review the performance difference separately -- ___ Python tracker <http://bugs.python.org/issu

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

2012-07-16 Thread Eli Bendersky
Eli Bendersky added the comment: I posted a message to python-dev about the performance issue -- ___ Python tracker <http://bugs.python.org/issue1767933> ___ ___

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

2012-07-16 Thread Eli Bendersky
Eli Bendersky added the comment: I agree. Any improvement is preferred over just letting this decay in the issue tracker ;-) -- ___ Python tracker <http://bugs.python.org/issue14

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

2012-07-16 Thread Eli Bendersky
Eli Bendersky added the comment: I tried blocking the import of 'pyexpat' in a test by using test.support.import_fresh_module, placing 'pyexpat' into the blocked list, but it doesn't work (i.e. pyexpat, if it

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

2012-07-16 Thread Eli Bendersky
Eli Bendersky added the comment: Benjamin, what "old behavior"? Did it happen to raise ImportError historically and only recent changes made it RuntimeError? I'm not sure this is the case. -- ___ Python tracker <http://bugs.pyt

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

2012-07-17 Thread Eli Bendersky
Eli Bendersky added the comment: Committed fixes to raise ImportError in both Python 3.2 and 3.3 At the moment no test added because I'm having trouble using import_fresh_module to avoid re-importing of pyexpat in the etree tests (it gets imported a

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

2012-07-17 Thread Eli Bendersky
New submission from Eli Bendersky : >From this pydev thread: >http://mail.python.org/pipermail/python-dev/2012-July/120981.html "BytesIO is actually missing an optimisation that is already used in StringIO: the StringIO C implementation uses a fragment accumulator internally, an

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

2012-07-17 Thread Eli Bendersky
Eli Bendersky added the comment: This optimization for StringIO was done in issue #13149 -- ___ Python tracker <http://bugs.python.org/issue15381> ___ ___ Pytho

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

2012-07-17 Thread Eli Bendersky
Eli Bendersky added the comment: Frankly, I don't think the problem is serious enough to warrant a backport to 3.2, given that 3.3 gonna be out in a few weeks. The issue was open for 5 years without anyone seriously complaining :) -- ___ P

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

2012-07-18 Thread Eli Bendersky
Eli Bendersky added the comment: I wonder if this is a fair comparison, Serhiy. Strings are unicode underneath, so they have a large overhead per string (more data to copy around). Increasing the length of the strings changes the game because due to PEP 393, the overhead for ASCII-only

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