[issue9375] ElementPath parser in ElementTree 1.3 does not reject element// as invalid

2010-07-25 Thread Stefan Behnel
New submission from Stefan Behnel sco...@users.sourceforge.net: Subject says it all: Python 2.7 (r27:82500, Jul 5 2010, 13:37:06) [GCC 4.4.3] on linux2 Type help, copyright, credits or license for more information. import xml.etree.ElementTree as ET el = ET.Element('hui')

[issue9375] ElementPath parser in ElementTree 1.3 does not reject element// as invalid

2010-07-25 Thread Stefan Behnel
Changes by Stefan Behnel sco...@users.sourceforge.net: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9375 ___ ___

[issue9375] ElementPath parser in ElementTree 1.3 does not reject element// as invalid

2010-07-25 Thread Stefan Behnel
Stefan Behnel sco...@users.sourceforge.net added the comment: The parser actually starts with this code: def iterfind(elem, path, namespaces=None): # compile selector pattern if path[-1:] == /: path = path + * # implicit all (FIXME: keep this?) IMHO, the 'FIXME' is worth

[issue9375] ElementPath parser in ElementTree 1.3 does not reject element// as invalid

2010-07-25 Thread Stefan Behnel
Changes by Stefan Behnel sco...@users.sourceforge.net: -- nosy: +effbot, flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9375 ___ ___

[issue7303] pkgutil lacks documentation for useful functions

2010-07-25 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7303 ___ ___

[issue1818] Add named tuple reader to CSV module

2010-07-25 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Closing as no response to msg110598. -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1818 ___

[issue2796] Build issues in DragonFly BSD

2010-07-25 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Closing as no response to msg97413 or msg110632. -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2796 ___

[issue3532] bytes.tohex method

2010-07-25 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Closing as no response to msg110681. -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3532 ___

[issue8888] Promote SafeConfigParser and warn about ConfigParser

2010-07-25 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Closed as duplicate of #6517. -- nosy: +BreamoreBoy resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue

[issue2204] document ConfigParser behaviour when a file has same section multiple times

2010-07-25 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: @Łukasz: could you provide a patch that clarifies the default behaviour. -- assignee: georg.brandl - d...@python nosy: +BreamoreBoy, d...@python stage: unit test needed - needs patch ___ Python

[issue7635] 19.6 xml.dom.pulldom doc: stub?

2010-07-25 Thread Mark Smith
Mark Smith mark.sm...@practicalpoetry.co.uk added the comment: Terry, thanks for the feedback! I have added a patch, replacing the previous one, which deals with your points 1 and 3 in the following ways: 1. I have used (an edited form of) your synopsis - I've removed the details of exactly

[issue7635] 19.6 xml.dom.pulldom doc: stub?

2010-07-25 Thread Mark Smith
Changes by Mark Smith mark.sm...@practicalpoetry.co.uk: Removed file: http://bugs.python.org/file18179/7635.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7635 ___

[issue7519] ConfigParser can't read files with BOM markers

2010-07-25 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Closing as the main BOM issue is addressed on #7651 and a solution to the OP's problem is given in msg97335. -- nosy: +BreamoreBoy resolution: - duplicate status: open - closed superseder: - Python3: guess text file charset

[issue2651] Strings passed to KeyError do not round trip

2010-07-25 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: @Łukasz: please provide an updated patch. -- nosy: +BreamoreBoy stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2651

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-07-25 Thread Alex Willmer
Alex Willmer a...@moreati.org.uk added the comment: On 25 July 2010 03:46, Matthew Barnett rep...@bugs.python.org wrote: issue2636-20100725.zip is a new version of the regex module. This is now packaged and uploaded to PyPI http://pypi.python.org/pypi/regex/0.1.20100725

[issue1773632] Remove references to _xmlrpclib from xmlrpclib.py

2010-07-25 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: This has already been done for py3k. Is it worth doing for 2.6 or 2.7? -- nosy: +BreamoreBoy versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1773632

[issue2864] etree: Add XPath documentation

2010-07-25 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- assignee: effbot - d...@python nosy: -effbot ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2864 ___

[issue648658] xmlrpc can't do proxied HTTP

2010-07-25 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- assignee: effbot - orsenthil nosy: +orsenthil -effbot ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue648658 ___

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

2010-07-25 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: @Richard: Could you provide a test case for this, or do you consider it beyond your Python capabilities allowing for your comments on msg75875? -- nosy: +BreamoreBoy ___ Python tracker

[issue1739648] zipfile.testzip() using progressive file reads

2010-07-25 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Tried the patch against 2.7 and got RuntimeError: Attempt to read ZIP archive that was already closed for TestsWithSourceFile test_deflated and test_stored. The patch needs updating for py3k. -- nosy: +BreamoreBoy stage: unit

[issue4926] putenv() accepts names containing '=', return value of unsetenv() not checked

2010-07-25 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: @David: I couldn't apply the patches directly with tortoisesvn cos of the git format so tried to do them manually but failed. E.g. in test_os I couldn't find PYTHONTESTVAROS to insert the two new lines after and in test_posix couldn't

[issue9376] Refer to gnuwin32 diff util on development FAQ

2010-07-25 Thread Mark Lawrence
New submission from Mark Lawrence breamore...@yahoo.co.uk: Section 6.1 How to make a patch? currently reads in part (a Windows version is available as part of the cygwin tools). I suggest that this is reworded to read (Windows versions are available as part of the cygwin tools or as part of

[issue1463043] test_minidom.py fails for Python-2.4.3 on SUSE 9.3

2010-07-25 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Can this be closed given that we're now at 2.7 and py3k and openSUSE is at 11.3? -- nosy: +BreamoreBoy status: open - pending ___ Python tracker rep...@bugs.python.org

[issue6098] xml.dom.minidom incorrectly claims DOM Level 3 conformance

2010-07-25 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Could someone with minidom experience please comment on this, thanks. -- nosy: +BreamoreBoy versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6098

[issue777884] minidom.py -- TypeError: object doesn't support slice assig

2010-07-25 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: This is still an issue with all Python versions, is there anybody who could take this on please? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org

[issue7139] ElementTree: Incorrect serialization of end-of-line characters in attribute values

2010-07-25 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Closed as a duplicate of #5752 which has patches attached. -- nosy: +BreamoreBoy resolution: - duplicate status: open - closed versions: +Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker

[issue1739648] zipfile.testzip() using progressive file reads

2010-07-25 Thread Alan McIntyre
Alan McIntyre alan.mcint...@gmail.com added the comment: Ok, I'll see if I can update that in the next week or so. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1739648 ___

[issue1495229] W3C - Python DOM type mapping docs need updating

2010-07-25 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Nobody has objected to Terry Reedy's recommendations so can the docs be updated please. -- assignee: loewis - d...@python nosy: +BreamoreBoy, d...@python ___ Python tracker

[issue1773632] Remove references to _xmlrpclib from xmlrpclib.py

2010-07-25 Thread Alan McIntyre
Alan McIntyre alan.mcint...@gmail.com added the comment: Both 2.6 and 2.7 are in the maintenance-only stage at this point, aren't they? I personally don't think this important enough to worry about for 2.x. -- ___ Python tracker

[issue6655] etree iterative find[text]

2010-07-25 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: @Digitalxero: could you provide an updated unit test file please. -- nosy: +BreamoreBoy stage: - unit test needed versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org

[issue5762] AttributeError: 'NoneType' object has no attribute 'replace'

2010-07-25 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: This issue will not move unless somebody provides a unit test for it. -- nosy: +BreamoreBoy stage: - unit test needed type: crash - behavior versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5

[issue7637] Improve 19.5. xml.dom.minidom doc

2010-07-25 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Items 1) and 3) have been committed, only 2) needs to be addressed. -- assignee: georg.brandl - d...@python nosy: +BreamoreBoy, d...@python ___ Python tracker rep...@bugs.python.org

[issue9375] ElementPath parser in ElementTree 1.3 does not reject element// as invalid

2010-07-25 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9375 ___

[issue9315] The trace module lacks unit tests

2010-07-25 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Lib/test/test_trace.py is now moved to Lib/test/test_sys_settrace.py. 3.2: r83140 r83141 3.1: r83143 2.7: r83142 -- ___ Python tracker rep...@bugs.python.org

[issue9315] The trace module lacks unit tests

2010-07-25 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Eli, test_trace_module.py is a good start and I would like to commit it soon. I have a few nitpicks and a suggestion. 1. pprint module is not used in the tests so it should not be imported. 2. It is better to do

[issue8733] list type and UserList do not call super in __init__ and therefore, they cannot be parents in a multiple inheritence scheme

2010-07-25 Thread Daniel Urban
Changes by Daniel Urban urban.dani...@gmail.com: -- nosy: +durban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8733 ___ ___ Python-bugs-list

[issue4926] putenv() accepts names containing '=', return value of unsetenv() not checked

2010-07-25 Thread David Watson
David Watson bai...@users.sourceforge.net added the comment: You're having a bad day at the office :) Just use patch -p1. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4926 ___

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-07-25 Thread David Watson
New submission from David Watson bai...@users.sourceforge.net: The functions in the socket module which return host/domain names, such as gethostbyaddr() and getnameinfo(), are wrappers around byte-oriented interfaces but return Unicode strings in 3.x, and have not been updated to deal with

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-07-25 Thread David Watson
Changes by David Watson bai...@users.sourceforge.net: Added file: http://bugs.python.org/file18196/try-surrogateescape-first.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9377 ___

[issue9172] zipfile.extractall always raises an OSError after successfully unzipping all files

2010-07-25 Thread Teemu Rytkönen
Teemu Rytkönen teemu.rytko...@gmail.com added the comment: Hi! I encountered the same problem and I debugged it a bit.. I think it not doing the entire unzipping again, but the problem is that the winzip packaged zip actually contains all file and directory entries and it fails trying to

[issue1818] Add named tuple reader to CSV module

2010-07-25 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Re-opening because we ought to do something along these lines at some point. The DictReader and DictWriter are inadequate for preserving order and they are unnecessarily memory intensive (one dict per record). FWIW, the

[issue9378] Make python -m pickle do something useful

2010-07-25 Thread Alexander Belopolsky
New submission from Alexander Belopolsky belopol...@users.sourceforge.net: Attached patch makes python -m pickle pickle file unpickle the first object from the pickle file and display it using pprint. Future enhancements may include printing the summary (object number, object type) of the

[issue9378] Make python -m pickle do something useful

2010-07-25 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- nosy: +alexandre.vassalotti, mark.dickinson, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9378 ___

[issue7447] Sum() doc and behavior mismatch

2010-07-25 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7447 ___

[issue9379] random.randrange behaviour problems

2010-07-25 Thread Łukasz Langa
New submission from Łukasz Langa luk...@langa.pl: Two behaviour problems with random.randrange: 1. Method argument `start` behaves as `stop` if `stop` is not defined: == from random import randrange help(randrange) Help on

[issue7447] Sum() doc and behavior mismatch

2010-07-25 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: A nitpick: lol is a very well-known acronym and list of lists is not the expansion that first comes to mind. -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org

[issue9379] random.randrange behaviour problems

2010-07-25 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9379 ___ ___ Python-bugs-list

[issue9379] random.randrange behaviour problems

2010-07-25 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: On issue 2: I agree that this is strange behavior, and would be interested to see a patch. It's not 100% clear to me what the patched code should do, though. In particular, an example like: randrange(10, step=5) that mixes positional

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-07-25 Thread Ask Solem
Ask Solem a...@opera.com added the comment: A potential implementation is in termination.patch. Basically, try to shut down gracefully, but if you timeout, just give up and kill everything. You can't have a sensible default timeout, because the worker may be processing something

[issue1495229] W3C - Python DOM type mapping docs need updating

2010-07-25 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Unlike with some issues, my in-message recommendations here do not constitute a patch. d...@python could update the link immediately. I would be willing to review the more extensive patch for 3.x if someone makes one. -- keywords:

[issue7447] Sum() doc and behavior mismatch

2010-07-25 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Leonard, that you for the patch, in particular, the list of hints. I think the first is good but overly specific. It also has an extra '.itertools' in the path. Now: ''' + - To concatenate a list of lists ``lol`` use

[issue7447] Sum() doc and behavior mismatch

2010-07-25 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Note that using `~itertools.chain.from_iterable` is equivalent to `from_iterable itertools.chain.from_iterable` and saves a repetition. -- ___ Python tracker rep...@bugs.python.org

[issue1495229] W3C - Python DOM type mapping docs need updating

2010-07-25 Thread A.M. Kuchling
A.M. Kuchling li...@amk.ca added the comment: The current link in the docs works; it's http://www.omg.org/spec/PYTH/1.2/PDF/. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1495229 ___

[issue9294] Dead code in Objects/object.c

2010-07-25 Thread Grant Limberg
Grant Limberg glimb...@gmail.com added the comment: It looks like at one point, internal_print was a recursive function, but this is no longer the case. I've updated the function parameters to no longer contain the nesting parameter and removed the if block shown in this case. --

[issue9167] argv double encoding on OSX

2010-07-25 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Issue #8622 proposes the creation of an environment variable PYTHONFSENCODING. It will be used to set sys.getfilesystemencoding(). Would it help this issue? -- ___ Python tracker

[issue2927] expose html.parser.unescape

2010-07-25 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I'm not sure that using an hardcoded mapping CP1252 = unicode is a good idea. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2927

[issue7447] Sum() doc and behavior mismatch

2010-07-25 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: In order to have a chance at 2.6.6rc, due out in a week, I hand-edited the patch, incorporating Georg's suggestion, and uploaded. I think it is ready to commit. Since this is not a critical doc fix, I am not marking it a blocker, but I still

[issue4686] Exceptions in ConfigParser don't set .args

2010-07-25 Thread Łukasz Langa
Changes by Łukasz Langa luk...@langa.pl: -- nosy: +michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4686 ___ ___ Python-bugs-list

[issue7447] Sum() doc and behavior mismatch

2010-07-25 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: FWIW, I like the new patch better, but still have a few nitpicks: - Starting a sentence with an argument name is a bit awkward because that makes a sentence that starts with a lower case letter. - There is an extra

[issue7113] ConfigParser load speedup

2010-07-25 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: In msg111399 I remarked the new itertools dependency. It seems it is in fact problematic because when building Python from scratch `setup.py` which is used to build C extensions is using configparser. And one of the C-only modules is itertools

[issue1495229] W3C - Python DOM type mapping docs need updating

2010-07-25 Thread A.M. Kuchling
A.M. Kuchling li...@amk.ca added the comment: Changed on the trunk in rev83149. I removed both paragraphs after the table, adding null and DOMString to the table, and took the word 'primitive' out of the first sentence (so the table isn't listing just primitive types, but can list DOMString).

[issue4686] Exceptions in ConfigParser don't set .args

2010-07-25 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Committed revision 83150. Still needs backporting to 3.1, 2.7 and possibly even 2.6. -- assignee: - michael.foord resolution: - accepted stage: patch review - commit review versions: +Python 2.6

[issue9294] Dead code in Objects/object.c

2010-07-25 Thread Grant Limberg
Grant Limberg glimb...@gmail.com added the comment: On second thought, internal_print() doesn't look like it's needed anymore as it's only called by PyObject_Print() and is no longer recursive. This second patch moves internal_print()'s function body into PyObject_Print and removes the

[issue9294] Dead code in Objects/object.c

2010-07-25 Thread Grant Limberg
Changes by Grant Limberg glimb...@gmail.com: Removed file: http://bugs.python.org/file18198/internal_print_non_recursive.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9294 ___

[issue7637] Improve 19.5. xml.dom.minidom doc

2010-07-25 Thread A.M. Kuchling
A.M. Kuchling li...@amk.ca added the comment: 2) changed in rev83151. I extensively rearranged the description of toxml(), hopefully making its meaning clearer. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue9335] LC_CTYPE system setting not respected by setlocale()

2010-07-25 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Victor, This looks like your cup of tee. Unicode is my cup of tee, but not programs considering that bytes are characters. a byte string.isalpha() doesn't mean anything to me :-) This issue is a more question about the C

[issue1463043] test_minidom.py fails for Python-2.4.3 on SUSE 9.3

2010-07-25 Thread A.M. Kuchling
A.M. Kuchling li...@amk.ca added the comment: Closing. The replaceChild() bug reported by tobixx was fixed by patch #1094164. -- resolution: - fixed status: pending - closed ___ Python tracker rep...@bugs.python.org

[issue7447] Sum() doc and behavior mismatch

2010-07-25 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: patch3 incorporates all your suggestions. I verified the itertools hint: list(itertools.chain.from_iterable([[10],[1,2],['a']])) [10, 1, 2, 'a'] I think the hints are clear enough; anyone with more questions should follow the link to the

[issue7113] ConfigParser load speedup

2010-07-25 Thread Łukasz Langa
Changes by Łukasz Langa luk...@langa.pl: Removed file: http://bugs.python.org/file18200/issue7113_without_itertools.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7113 ___

[issue9379] random.randrange behaviour problems

2010-07-25 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: I'm happy to improve the docs and docstring a bit to match the description for range(). I don't want to change any of the keyword arguments because it can break code that currently works and has been working for ages. It's

[issue7113] ConfigParser load speedup

2010-07-25 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: Patch from py3k root. Some minor formatting changes suggested by Ezio Melotti included. -- Added file: http://bugs.python.org/file18204/issue7113_without_itertools.diff ___ Python tracker

[issue7447] Sum() doc and behavior mismatch

2010-07-25 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: I want to look at this more before it goes forward. The docs are roughly correct as-is. In a effort to make them precise, it is easy make them more confusing or at least a bit harder to understand the basic function of sum().

[issue9379] random.randrange behaviour problems

2010-07-25 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: Raymond, I agree, that is reasonable. Would you like me to send a patch for the docstring or would you rather make the change on your own? -- ___ Python tracker rep...@bugs.python.org

[issue777884] minidom.py -- TypeError: object doesn't support slice assig

2010-07-25 Thread A.M. Kuchling
A.M. Kuchling li...@amk.ca added the comment: Well, we certainly can't going making any incompatible changes now, so I've opted to add an empty normalize() method to the Childless mix-in. This makes minidom a little more liberal than other DOM implementations, but I think that's OK.

[issue9337] Make float.__str__ behave identically to float.__repr__

2010-07-25 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: I think this is a good idea. To test how much impact it would have, I changed float's str to return the same value as repr. regrtest broke only 3 tests: test_float test_tokenize test_unicodedata. It's not clear to me why unicodedata failed.

[issue9380] Allow popping of n elements at once from a deque

2010-07-25 Thread ipatrol
New submission from ipatrol ipatrol6...@yahoo.com: Yes, I know, this was proposed with builtin lists years before. But I can't help but think that at least for pop-append oriented deques, a popping analogue to extend would make use of deques in iterators easier. It should ideally return an

[issue9379] random.randrange behaviour problems

2010-07-25 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: You are welcome to suggest wording. Aim for the shortest explanation that guides people to the right understanding. Being overly specific often causes more harm than good. Instead, try to be maximally helpful to someone

[issue9379] random.randrange behaviour problems

2010-07-25 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- components: +Documentation -Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9379 ___

[issue7637] Improve 19.5. xml.dom.minidom doc

2010-07-25 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Thank you for the patches, but I do not think this is quite done. 1. It is recommended that you always specify an encoding; you may use any encoding you like, but an argument of utf-8 is the most common, avoid :exc:`UnicodeError` exceptions

[issue9380] Allow popping of n elements at once from a deque

2010-07-25 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Sorry, I'm going to reject this one. Looking at implementations in other languages, I see that this is almost never needed. It is not worth complicating the API which is currently very simple. Also, there is an issue in that

[issue9335] LC_CTYPE system setting not respected by setlocale()

2010-07-25 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Sun, Jul 25, 2010 at 7:27 PM, STINNER Victor rep...@bugs.python.org wrote: .. Unicode is my cup of tee, but not programs considering that bytes are characters. What I called your cup of tee was 3.x returning 'UTF-8'

[issue9335] LC_CTYPE system setting not respected by setlocale()

2010-07-25 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Oops, the issue is already closed /o\ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9335 ___

[issue4755] Common path prefix

2010-07-25 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: http://code.activestate.com/recipes/577016-path-entire-split-commonprefix/ -- nosy: +cmcqueen1975 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4755

[issue7113] ConfigParser load speedup

2010-07-25 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Committed to py3k in r83154 and release27-maint in r83155. -- nosy: +brian.curtin resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker

[issue9315] The trace module lacks unit tests

2010-07-25 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Alexander, 1. Done 2. Done 3. Done. Made docstrings follow PEP 257, to the best of my understanding 4. Done. Attached patch is made on fresh SVN 2.7 branch, file renamed to test_trace.py and 'svn add' executed 5. I'm not sure I agree with you

[issue9315] The trace module lacks unit tests

2010-07-25 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: Removed file: http://bugs.python.org/file18205/test_trace.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9315 ___

[issue9315] The trace module lacks unit tests

2010-07-25 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file18206/issue9315.1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9315 ___

[issue9315] The trace module lacks unit tests

2010-07-25 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I will defer to your judgement on the level of whiteness that is appropriate. I have passed your patch through 2to3, replaced test_support with support and it looks like we have a test case for a regression in 3.x:

[issue9214] Most Set methods of KeysView and ItemsView do not work right

2010-07-25 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Hello, I'm attaching a patch for this issue. 1. _from_iterable in KeysView and ItemsView overridden as per Daniel's suggestion (Lib/_abcoll.py) 2. Added a test case to Lib/test/test_collections.py that uses this test case (creates the

[issue1170] shlex have problems with parsing unicode

2010-07-25 Thread Fernando Perez
Fernando Perez fdo.pe...@gmail.com added the comment: Here is an illustration of the problem with a simple test case (the value of the posix flag doesn't make any difference): Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) [GCC 4.4.3] on linux2 Type help, copyright, credits or license for

[issue9315] The trace module lacks unit tests

2010-07-25 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: The test failure of the py3k ports boils down to this: the 'runfunc' method of 'Trace' appears as a caller to '_traced_func_importing_caller'. In 2.7 it appears as 'Trace.runfunc', in py3k as just 'runfunc'. This raises a question: should

[issue9381] syntax error in Unicode C API docs

2010-07-25 Thread Chris Rebert
New submission from Chris Rebert pyb...@rebertia.com: See http://docs.python.org/py3k/c-api/unicode.html#file-system-encoding Note the literal and unhyperlinked :func:PyUnicode_FSConverter in the last sentence of the first paragraph. I suspect there's a trivial syntax error in the ReST

[issue9382] os.popen referenced but not documented in Python 3.x

2010-07-25 Thread Chris Rebert
New submission from Chris Rebert pyb...@rebertia.com: http://docs.python.org/py3k/library/os.html currently mentions os.popen() in several places. The docs for os.popen() itself say: 'These functions are described in section File Object Creation' However, unlike the 2.x version of that

[issue7950] subprocess.Popen documentation should contain a good warning about the security implications when using shell=True

2010-07-25 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: Added file: http://bugs.python.org/file18209/subprocess.rst.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7950 ___

[issue7950] subprocess.Popen documentation should contain a good warning about the security implications when using shell=True

2010-07-25 Thread Chris Rebert
Chris Rebert pyb...@rebertia.com added the comment: My apologies for the extra email... -- Added file: http://bugs.python.org/file18210/subprocess.rst.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7950

[issue7950] subprocess.Popen documentation should contain a good warning about the security implications when using shell=True

2010-07-25 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: Removed file: http://bugs.python.org/file18209/subprocess.rst.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7950 ___