[issue13281] robotparser.RobotFileParser ignores rules preceeded by a blank line

2011-10-27 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: patch review -> test needed ___ Python tracker ___ ___ Python-bugs-list mailin

[issue5661] asyncore should catch EPIPE while sending() and receiving()

2011-10-27 Thread Charles-François Natali
Charles-François Natali added the comment: >> Did you try with the current branches? > > Yes, the test is pass against the current default and 2.7 branches. > One must remove EPIPE from the asyncore._DISCONNECTED frozenset to > make the test to fail. OK. Then I'll add this test to test_asyncore

[issue13281] robotparser.RobotFileParser ignores rules preceeded by a blank line

2011-10-27 Thread Petri Lehtinen
Petri Lehtinen added the comment: Blank lines are allowed according to the specification at http://www.robotstxt.org/norobots-rfc.txt, section 3.3 Formal Syntax. The issue also seems to exist on 3.2 and 3.3. -- components: +Library (Lib) keywords: +needs review stage: -> patch review

[issue13281] robotparser.RobotFileParser ignores rules preceeded by a blank line

2011-10-27 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- nosy: +petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue13280] argparse should use the new Formatter class

2011-10-27 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- nosy: +petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue13279] Add memcmp into unicode_compare for optimizing comparisons

2011-10-27 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- nosy: +petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue13278] Typo in documentation for sched module

2011-10-27 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- nosy: +petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue13277] tzinfo subclasses information

2011-10-27 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- nosy: +petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue13188] generator.throw() ignores __traceback__ of exception

2011-10-27 Thread Petri Lehtinen
Petri Lehtinen added the comment: Ok, I think we have reached a consensus. Closing. -- status: open -> closed versions: -Python 2.7 ___ Python tracker ___ _

[issue13170] distutils2 test failures

2011-10-27 Thread David Barnett
David Barnett added the comment: The remaining test (test_command_install_data.InstallDataTestCase.test_simple_run) was broken in r1152. What's happening is that the type of exception being raised was changed and it's getting through the try/except block in install_data.run(). Instead of cal

[issue13270] all classes are new style

2011-10-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: Removed the newstyle/oldstyle comments is fine. I don't see the reason for the type->class change though. -- nosy: +rhettinger ___ Python tracker

[issue13280] argparse should use the new Formatter class

2011-10-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: There's no reason to switch the implementation. The % formatting isn't going away and we've decided against doing switch-overs in existing code (it risks introducing bugs while conferring zero benefits to users). -- nosy: +rhettinger

[issue13274] heapq pure python version uses islice without guarding for negative counts

2011-10-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: The behavior is undefined for negative inputs, so implementations are free to the most expedient choices. -- priority: normal -> low ___ Python tracker ___

[issue13224] Change str(class) to return only the class name

2011-10-27 Thread Guido van Rossum
Guido van Rossum added the comment: What's holding this up? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13059] Sporadic test_multiprocessing failure: IOError("bad message length") in recv_bytes()

2011-10-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: This is a really weird error. At this point, the child is waiting for a challenge from the parent, and the challenge is something like 32 bytes long: message = os.urandom(MESSAGE_LENGTH) connection.send_bytes(CHALLENGE + message) So, this can only mea

[issue10363] Embedded python, handle (memory) leak

2011-10-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch that fixes some of these handle leaks in Python 3.2. However, as a general guideline, you shouldn't unload the Python DLL if you fish to use it later again. Just keep it in memory (the DLL isn't very big, is it?). Yes, C++ would allow to solve

[issue6434] buffer overflow in Zipfile when wrinting more than 2gig file

2011-10-27 Thread Paul
Paul added the comment: I attempted to "re-allow overflow" in the struct(...) call by replacing `zinfo.file_size` with `ZIP64_LIMIT % zinfo.file_size` in zipfile.py, and successfully produced a compressed file from a 10G file, but the resulting compressed file could not be uncompressed and wa

[issue13218] test_ssl failures on Debian/Ubuntu

2011-10-27 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Oct 27, 2011, at 10:08 PM, Antoine Pitrou wrote: >Antoine Pitrou added the comment: > >For the record, both patches work fine here (Mageia 1, OpenSSL 1.0.0d). Cool. I'll try to verify them on OS X 10.6 (and maybe 10.7). If they work there I'll figure ou

[issue6434] buffer overflow in Zipfile when wrinting more than 2gig file

2011-10-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- versions: +Python 3.2, Python 3.3 -Python 2.4, Python 3.0 ___ Python tracker ___ ___ Python-bugs-list ma

[issue13188] generator.throw() ignores __traceback__ of exception

2011-10-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: I agree with Arkadiusz, this doesn't seem to match Python 2's exception semantics, where you always specify the traceback explicitly if you want to. -- ___ Python tracker ___

[issue13279] Add memcmp into unicode_compare for optimizing comparisons

2011-10-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +ezio.melotti, haypo stage: -> patch review versions: -Python 3.4 ___ Python tracker ___ ___ Py

[issue13218] test_ssl failures on Debian/Ubuntu

2011-10-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: For the record, both patches work fine here (Mageia 1, OpenSSL 1.0.0d). -- ___ Python tracker ___ _

[issue11183] Finer-grained exceptions for the ssl module

2011-10-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed now. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue11183] Finer-grained exceptions for the ssl module

2011-10-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2c4a9c778bb3 by Antoine Pitrou in branch 'default': Issue #11183: Add finer-grained exceptions to the ssl module, so that http://hg.python.org/cpython/rev/2c4a9c778bb3 -- nosy: +python-dev ___ Python tra

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2011-10-27 Thread Julian Berman
Julian Berman added the comment: Never mind, yes, you're correct, somehow my build dir must have been dirty. Sorry bout that. -- ___ Python tracker ___

[issue13280] argparse should use the new Formatter class

2011-10-27 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +bethard ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue13041] argparse: terminal width is not detected properly

2011-10-27 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox stage: -> patch review versions: -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list

[issue13280] argparse should use the new Formatter class

2011-10-27 Thread Florent Xicluna
Florent Xicluna added the comment: Well argparse exists since 2006 (ref [1]), and "should work on Python >= 2.3" (ref [2]). It was merged in the standard library with Python 3.2. However, I agree we may switch to the advanced string formatting for this module. [1] http://objectmix.com/pytho

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2011-10-27 Thread Ned Deily
Ned Deily added the comment: Julian, I am able to build and run the current default (3.3) tip (52b35dae22d1) on 10.7.2 with the gcc-4.2 from Xcode 4.1, with or without debug enabled. Are you sure you have pulled all the latest updates and are using a clean build directory? If so, please ope

[issue13281] robotparser.RobotFileParser ignores rules preceeded by a blank line

2011-10-27 Thread Brian Bernstein
New submission from Brian Bernstein : When attempting to parse a robots.txt file which has a blank line between allow/disallow rules, all rules after the blank line are ignored. If a blank line occurs between the user-agent and its rules, all of the rules for that user-agent are ignored. I am

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2011-10-27 Thread Julian Berman
Julian Berman added the comment: I was unsuccessful building tip with any of the 3 compilers. Full paste of output from ./configure and make, along with haypo's test file are attached. http://paste.pound-python.org/show/14320/ I'm on 10.7.2, XCode is 4.1 (compiler versions in the paste). Upg

[issue13280] argparse should use the new Formatter class

2011-10-27 Thread Patrick Westerhoff
New submission from Patrick Westerhoff : Hey, according to PEP 3101, the new string.Formatter class is supposed to replace the old string formatting with %. At least that is what I was always thinking. Given that argparse is a Python 3.2+ exclusive module, I think it should make use of that n

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2011-10-27 Thread Julian Berman
Changes by Julian Berman : -- nosy: +Julian ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue13218] test_ssl failures on Debian/Ubuntu

2011-10-27 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On further reflection, I don't much like my second patch either. I don't think it'll be portable. I suggest just removing this test. -- ___ Python tracker

[issue5661] asyncore should catch EPIPE while sending() and receiving()

2011-10-27 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Did you try with the current branches? Yes, the test is pass against the current default and 2.7 branches. One must remove EPIPE from the asyncore._DISCONNECTED frozenset to make the test to fail. > Yes, see RFC1122 section 4.2.2.13: > """ > A h

[issue13263] Group some os functions in submodules

2011-10-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I agree about urllib.request.urlopen, but os.sched.get_priority_max() > is not longer than os.sched_get_priority_max(). Agreed. There are not many functions which could get this treatment, though. -- ___ Python tr

[issue13263] Group some os functions in submodules

2011-10-27 Thread Ezio Melotti
Ezio Melotti added the comment: I agree about urllib.request.urlopen, but os.sched.get_priority_max() is not longer than os.sched_get_priority_max(). I also agree about the documentation -- that should be organized in several sections, regardless of what happens with the module. -- _

[issue13279] Add memcmp into unicode_compare for optimizing comparisons

2011-10-27 Thread Richard Saunders
Richard Saunders added the comment: This is a potential patch: I believe it follows the C-style of PEP 7 There is a test as well, testing 1 and 2 byte kinds. I have run it through the python tests and have added no new breakages (there were some tests that failed, but they failed with and wit

[issue5661] asyncore should catch EPIPE while sending() and receiving()

2011-10-27 Thread Charles-François Natali
Charles-François Natali added the comment: Did you try with the current branches? AFAICT, this should have been solved by 208a5290fd38 (issue #11265), and I did a quick test with default and it seems to be fixed. In any case, it's probably a good idea to add this test to test_asyncore. > So it

[issue13263] Group some os functions in submodules

2011-10-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't think submodules are a good idea. In practice, for example, urllib.request.urlopen is more painful to use than good old urllib.urlopen. If it's a matter of documentation, it can be split in several subchapters. If it's a matter of organizing source cod

[issue13279] Add memcmp into unicode_compare for optimizing compares

2011-10-27 Thread Richard Saunders
New submission from Richard Saunders : In discussions of memcmp performance, (http://www.picklingtools.com/study.pdf) it was noted how well Python 2.7 can take advantage of faster memcmps (indeed, the rich comparisons are all memcmp calls). There have been some discussion on python-...@python.or

Re: [issue13208] Problems with urllib on windows

2011-10-27 Thread Senthil Kumaran
The code is pretty straight forward and works on Linux. Is the problem with the download? If you open the json file, is it a valid one? ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-

[issue13278] Typo in documentation for sched module

2011-10-27 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti versions: -Python 2.6, Python 3.1, Python 3.4 ___ Python tracker ___ ___ Python-bugs

[issue13278] Typo in documentation for sched module

2011-10-27 Thread Jeffrey Finkelstein
New submission from Jeffrey Finkelstein : In the documentation for the sched.scheduler.enter() function, change the phrase "Other then the relative time" to "Other than the relative time" (i.e. change "then" to "than"). -- assignee: docs@python components: Documentation messages: 14650

[issue13211] urllib2.HTTPError does not have 'reason' attribute.

2011-10-27 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue6434] buffer overflow in Zipfile when wrinting more than 2gig file

2011-10-27 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +nadeem.vawda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue6434] buffer overflow in Zipfile when wrinting more than 2gig file

2011-10-27 Thread Paul
Paul added the comment: This is a problem with python2.7 as well. A change in struct between python2.6 and 2.7 raises an exception on overflow instead of silently allowing it. This prevents zipping any file larger than 4.5G. This exception concurs when writing the 32-bit headers (which are

[issue10115] Support accept4() for atomic setting of flags at socket creation

2011-10-27 Thread Vetoshkin Nikita
Vetoshkin Nikita added the comment: Started implementing accept4() socket method and stuck on socket object's timeout attribute. What value should we assign to sock->sock_timeout if SOCK_NONBLOCK was specified in accept4() call? And in socket.py should we check as in original accept: if getde

[issue7523] add SOCK_NONBLOCK and SOCK_CLOEXEC to socket module

2011-10-27 Thread Vetoshkin Nikita
Vetoshkin Nikita added the comment: Sorry, wrong ticket. Right one is 10115 -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue7523] add SOCK_NONBLOCK and SOCK_CLOEXEC to socket module

2011-10-27 Thread Vetoshkin Nikita
Vetoshkin Nikita added the comment: Started implementing accept4() socket method and stuck on socket object's timeout attribute. What value should we assign to sock->sock_timeout if SOCK_NONBLOCK was specified in accept4() call? And in socket.py should we check as in original accept: if getde

[issue13277] tzinfo subclasses information

2011-10-27 Thread Senthil Kumaran
New submission from Senthil Kumaran : This was in the docs mailing list, not translated to bug report Paul Koning wrote: Section 8.1.6 of the library manual talks about utcoffset(dt)-dst(dt) as the "standard offset" and says that this should not depend on the date or +time but only on the loc

[issue13248] deprecated in 3.2, should be removed in 3.3

2011-10-27 Thread Éric Araujo
Éric Araujo added the comment: distutils will not change. I’ll ask if removing the deprecation warnings is okay, otherwise they’ll stay. For ConfigParser.readfp, it would ease porting between 2.x and 3.x if the method could stay longer, or forever. -- nosy: +eric.araujo ___

[issue12641] Remove -mno-cygwin from distutils

2011-10-27 Thread Éric Araujo
Éric Araujo added the comment: > Would it be practical to have a trivial compilation test to see if we > are capable of using GCC with -mno-cygwin and if so, use it, otherwise > drop off? I think GNU autotools uses a similar strategy for detecting > compiler capabilities. The config command doe

[issue11440] fix_callable should be dropped from lib2to3 / changed

2011-10-27 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue13263] Group some os functions in submodules

2011-10-27 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue4945] json checks True/False by identity, not boolean value

2011-10-27 Thread Éric Araujo
Éric Araujo added the comment: I agree with the request. I don’t know if this behavior change can go into stable versions; Raymond will decide, as Bob seems to have retired from the maintenance of stdlib json. -- nosy: +eric.araujo, ezio.melotti, rhettinger _

[issue13270] all classes are new style

2011-10-27 Thread Éric Araujo
Éric Araujo added the comment: LGTM. -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue13271] When -h is used with argparse, default values that fail should not matter

2011-10-27 Thread Éric Araujo
Éric Araujo added the comment: I’d argue this is a behavior bug that could be fixed in 2.7 and 3.2 too, but Steven will decide. -- nosy: +eric.araujo versions: +Python 3.3 -Python 2.7 ___ Python tracker _

[issue13275] Recommend xml.etree for XML processing

2011-10-27 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue13253] 2to3 fix_renames renames sys.maxint only in imports

2011-10-27 Thread Ezio Melotti
Ezio Melotti added the comment: I do (or at least did it in at least one place :). I think the problem is actually more general, and I don't know if it's by design. If a name in the import is changed, all the other occurrences of the name should be changed as well. I don't know if 2to3 is pow

[issue13275] Recommend xml.etree for XML processing

2011-10-27 Thread Éric Araujo
Éric Araujo added the comment: It makes sense that SAX and DOM would be mentioned in the tutorial: SAX is similar to how HTMLParser works and is used in many languages; DOM is the official W3C API and is used in many languages, despite its ugliness. ElementTree is not a very elegant API in m

[issue13274] heapq pure python version uses islice without guarding for negative counts

2011-10-27 Thread Éric Araujo
Changes by Éric Araujo : -- stage: -> test needed versions: -Python 2.6, Python 3.1, Python 3.4 ___ Python tracker ___ ___ Python-bu

[issue13266] Add inspect.unwrap(f) to easily unravel "__wrapped__" chains

2011-10-27 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue13253] 2to3 fix_renames renames sys.maxint only in imports

2011-10-27 Thread Éric Araujo
Éric Araujo added the comment: Do people really import maxint from sys? I’d find that less readable than using sys.maxint —which should, if you ask me, also be replaced :) -- nosy: +eric.araujo ___ Python tracker

[issue13276] distutils bdist_wininst created installer does not run the postinstallation script on uninstalling

2011-10-27 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +loewis, mhammond ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue13276] distutils bdist_wininst created installer does not run the postinstallation script on uninstalling

2011-10-27 Thread francisco
New submission from francisco : The bug can be reproduced by running the following command to create a Windows installer for the attached module: python setup.py bdist_wininst --install-script pis.py I include also the installer that I have created in the dist folder. The installer installs e

[issue13244] WebSocket schemes in urllib.parse

2011-10-27 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue13244] WebSocket schemes in urllib.parse

2011-10-27 Thread Senthil Kumaran
Senthil Kumaran added the comment: Similar issue Issue7904 and 7da7f9bfdaac wherein the accepted way to parse x-newscheme://foo.com/stuff was added. Does the new ws:// scheme not fall under that? -- ___ Python tracker

[issue13244] WebSocket schemes in urllib.parse

2011-10-27 Thread Éric Araujo
Éric Araujo added the comment: > Is urlparse meant to follow the generic URI RFC? No, it predates it. > IMHO, the patch at least should do the equivalent of > urlparse.uses_fragment.extend(wsschemes) > so users of urlparse can do the checking for fragment != "", required for > ws/wss on their

[issue13273] HTMLParser improperly handling open tags when strict is False

2011-10-27 Thread Ezio Melotti
Ezio Melotti added the comment: The attached patch fixes replaces search with match as you suggested and tweaks a regex to make the old tests pass. -- keywords: +patch stage: test needed -> commit review versions: +Python 2.7, Python 3.3 Added file: http://bugs.python.org/file23535/iss

[issue5661] asyncore should catch EPIPE while sending() and receiving()

2011-10-27 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue5661] asyncore should catch EPIPE while sending() and receiving()

2011-10-27 Thread Xavier de Gaye
Xavier de Gaye added the comment: Uploaded the same test case for Python 2.7. -- Added file: http://bugs.python.org/file23534/epipe-2.7.patch ___ Python tracker ___ _

[issue5661] asyncore should catch EPIPE while sending() and receiving()

2011-10-27 Thread Xavier de Gaye
Xavier de Gaye added the comment: Uploaded the patch 'epipe-default.patch' with a test case that breaks on linux when EPIPE is not handled by asyncore, which is the case with Python 3.2 and previous versions. -- Added file: http://bugs.python.org/file23533/epipe-default.patch _

[issue13253] 2to3 fix_renames renames sys.maxint only in imports

2011-10-27 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue13266] Add inspect.unwrap(f) to easily unravel "__wrapped__" chains

2011-10-27 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue13272] 2to3 fix_renames doesn't rename string.lowercase/uppercase/letters

2011-10-27 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue13188] generator.throw() ignores __traceback__ of exception

2011-10-27 Thread Arkadiusz Wahlig
Arkadiusz Wahlig added the comment: I don't think this should be applied to 2.7. In 2.x, the full exception info consists of the (type, value, traceback)-trio. Programmer is expected to pass this around to retain full exception info. Re-raising just the value (exception instance) using "raise

[issue13033] Add shutil.chowntree

2011-10-27 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue13274] heapq pure python version uses islice without guarding for negative counts

2011-10-27 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue13275] Recommend xml.etree for XML processing

2011-10-27 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- nosy: +petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue13274] heapq pure python version uses islice without guarding for negative counts

2011-10-27 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- nosy: +petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue13271] When -h is used with argparse, default values that fail should not matter

2011-10-27 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- nosy: +petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue13268] assert statement violates the documentation

2011-10-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7bef55ae5753 by Benjamin Peterson in branch '2.7': don't let a tuple msg be interpreted as arguments to AssertionError (closes #13268) http://hg.python.org/cpython/rev/7bef55ae5753 -- nosy: +python-dev resolution: -> fixed stage: needs pa

[issue13275] Recommend xml.etree for XML processing

2011-10-27 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue13275] Recommend xml.etree for XML processing

2011-10-27 Thread Florent Xicluna
Changes by Florent Xicluna : -- components: +XML type: -> behavior versions: +Python 2.7, Python 3.2, Python 3.3 ___ Python tracker ___ _

[issue13275] Recommend xml.etree for XML processing

2011-10-27 Thread Alexey Shamrin
New submission from Alexey Shamrin : There are many libraries in Python stdlib [1] xml.dom xml.dom.minidom xml.dom.pulldom xml.sax xml.etree Tutorial mentions xml.dom and xml.sax. [2] In my experience xml.etree is the best library to quickly load some xml and mess with it. It would be nice to

[issue12657] Cannot override JSON encoding of basic type subclasses

2011-10-27 Thread Florent Xicluna
Changes by Florent Xicluna : -- stage: -> needs patch type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue10015] Creating a multiprocess.pool.ThreadPool from a child thread blows up.

2011-10-27 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue13274] heapq pure python version uses islice without guarding for negative counts

2011-10-27 Thread Ronny Pfannschmidt
New submission from Ronny Pfannschmidt : the problem manifests when calling with negative counts when the c versions are used, a empty list is returned, however if the pure python version is called islice errors out -- components: Library (Lib) messages: 146483 nosy: Ronny.Pfannschmidt

[issue13244] WebSocket schemes in urllib.parse

2011-10-27 Thread Tobias Oberstein
Tobias Oberstein added the comment: The patch as it stands will result in wrong behavior: +self.assertEqual(urllib.parse.urlparse("ws://example.com/stuff#ff"), + ('ws', 'example.com', '/stuff#ff', '', '', '')) The path component returned is invalid for ws/wss an

[issue13273] HTMLParser improperly handling open tags when strict is False

2011-10-27 Thread Ezio Melotti
Ezio Melotti added the comment: Incidentally I was just investigating this very same issue, and your suggestion seems to work for me too. I'll see if the change has any downside and come up with a patch + test. Thanks for the report! -- assignee: -> ezio.melotti _

[issue13273] HTMLParser improperly handling open tags when strict is False

2011-10-27 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> test needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue13237] subprocess docs should emphasise convenience functions

2011-10-27 Thread Nick Coghlan
Nick Coghlan added the comment: As the last checkin message says, I've made the documentation for the helper functions more self-contained. Each now has its own short "shell=True" warning with a pointer to the full explanation in the shared parameter description. There was also a copy-and-pas

[issue13273] HTMLParser improperly handling open tags when strict is False

2011-10-27 Thread Christopher Allen-Poole
New submission from Christopher Allen-Poole : This is is encountered when extending html.parser.HTMLParser and running with strict mode False. Expected behavior: When '''The rain in Spain''' is passed to the feed method, div, b, a, br, and span should all be passed to the handle_starttag met

[issue13237] subprocess docs should emphasise convenience functions

2011-10-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2a2df6a72ccb by Nick Coghlan in branch '2.7': Issue #13237: Make the subprocess convenience helper documentation self-contained aside from the shared parameter description. Downgrade the pipe warnings at that level to notes (since those pipes are

[issue13244] WebSocket schemes in urllib.parse

2011-10-27 Thread Senthil Kumaran
Senthil Kumaran added the comment: This kind of suggestion has come up before and easy fix is to add individual schemes as the patch does. There is a number of limitations if want to make the parser generic for any scheme. The difficult thing being the parsing behavior and requirements as def

[issue13237] subprocess docs should emphasise convenience functions

2011-10-27 Thread Nick Coghlan
Nick Coghlan added the comment: We can only protect people from themselves so much - "shell=True" is invaluable when you actually want to invoke the shell, and the shell has much better tools for process invocation and pipeline processing than Python does (since shells are, in effect, domain

[issue13272] 2to3 fix_renames doesn't rename string.lowercase/uppercase/letters

2011-10-27 Thread Ezio Melotti
New submission from Ezio Melotti : $ cat deleteme.py from string import lowercase, uppercase, letters print uppercase == 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' print lowercase == 'abcdefghijklmnopqrstuvwxyz' print letters == 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' $ python deleteme.py True

[issue12657] Cannot override JSON encoding of basic type subclasses

2011-10-27 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue13244] WebSocket schemes in urllib.parse

2011-10-27 Thread Jyrki Pulliainen
Jyrki Pulliainen added the comment: > Alternative: make this bug dependent on fixing urlparse for fragment rules in > generic URI RFC and don't do anything until then? I'd go with this, even though it probably would be a lot bigger work than this. What's Éric's take on this approach?

  1   2   >