[issue6715] xz compressor support

2011-10-05 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: I agree with Martin here. We should *NOT* have first and second class OS support, if we can avoid it. That said, I wonder what happens in Windows with the BZ2 module, for instance :-?. Do we include the BZ2 sourcecode to compile it under

[issue6715] xz compressor support

2011-10-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I agree with Martin here. We should *NOT* have first and second class OS support, if we can avoid it. The key word being if we can avoid it. Jesus, if you are a Windows expert, your contribution is welcome. --

[issue6715] xz compressor support

2011-10-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: For bz2, Tools/buildbot/external-common.bat has code to download bz2 source, and PCbuild/_bz2.vcproj include and compile these files together with _bz2.pyd. The _ssl module does a similar thing, except that libeay32.lib and

[issue6715] xz compressor support

2011-10-05 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: That said, I wonder what happens in Windows with the BZ2 module, for instance :-?. External code currently lives at http://svn.python.org/projects/external/. The build process gets it from there, and we may have local modifications to

[issue11638] pysetup un sdist crashes with weird trace if version is unicode by accident

2011-10-05 Thread Jens Diemer
Changes by Jens Diemer bugs.python@jensdiemer.de: -- nosy: +jens ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11638 ___ ___ Python-bugs-list

[issue6715] xz compressor support

2011-10-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I agree with Martin here. We should *NOT* have first and second class OS support, if we can avoid it. Ok but who will do the job? If nobody is motivated to fix compiler issues, it would be a pity to not add the module for that.

[issue11638] pysetup un sdist crashes with weird trace if version is unicode by accident

2011-10-05 Thread Jens Diemer
Jens Diemer bugs.python@jensdiemer.de added the comment: I have the same problem, using distutils (and not distutils2): Traceback (most recent call last): File ./setup.py, line 60, in module test_suite=creole.tests.run_all_tests, File /usr/lib/python2.7/distutils/core.py, line 152,

[issue13073] message_body argument of HTTPConnection.endheaders is undocumented

2011-10-05 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: The 2.7 documentation should mention the version in which the argument was added. I believe it was 2.7. -- resolution: fixed - status: closed - open ___ Python tracker rep...@bugs.python.org

[issue13073] message_body argument of HTTPConnection.endheaders is undocumented

2011-10-05 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I also left some comments on the review page that should be addressed. -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13073

[issue6715] xz compressor support

2011-10-05 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Antoine, I am a Linux/Solaris/Illumos guy. I only use Windows (virtualized) to sync my iPhone with iTunes :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715

[issue13107] Text width in optparse.py can become negative

2011-10-05 Thread Adam Byrtek
New submission from Adam Byrtek adambyr...@gmail.com: Code snippet from optparse.py: 344 self.help_position = min(max_len + 2, self.max_help_position) 345 self.help_width = self.width - self.help_position Where self.width is initialized with the COLUMNS environment

[issue13103] copy of an asyncore dispatcher causes infinite recursion

2011-10-05 Thread Xavier de Gaye
Xavier de Gaye xdeg...@gmail.com added the comment: The infinite recursion occurs also when running python 3.2 with the extension modules copy, copyreg and asyncore from python 3.1. So it seems this regression is not caused by a modification in these modules. Anyway, the bug is in asyncore. The

[issue13106] Incorrect pool.py distributed with Python 2.7 windows 32bit

2011-10-05 Thread Aaron Staley
Aaron Staley usaa...@gmail.com added the comment: Never mind; looks like this functionality was moved to handle_workers. I had inadvertently been testing under a modified pool.py. Sorry for the inconvenience! -- resolution: - invalid status: open - closed

[issue13106] Incorrect pool.py distributed with Python 2.7 windows 32bit

2011-10-05 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: test needed - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13106 ___

[issue3163] module struct support for ssize_t and size_t

2011-10-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thanks for the comments. Here is an updated patch. -- Added file: http://bugs.python.org/file23318/struct_nn4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3163

[issue3163] module struct support for ssize_t and size_t

2011-10-05 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- assignee: mark.dickinson - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3163 ___ ___

[issue13073] message_body argument of HTTPConnection.endheaders is undocumented

2011-10-05 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset befa7b926aad by Senthil Kumaran in branch '3.2': Issue #13073 - Address the review comments made by Ezio. http://hg.python.org/cpython/rev/befa7b926aad New changeset a7b7ba225de7 by Senthil Kumaran in branch

[issue13073] message_body argument of HTTPConnection.endheaders is undocumented

2011-10-05 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 64fae6f7b64c by Senthil Kumaran in branch '2.7': Issue13073 - Address review comments and add versionchanged information in the docs. http://hg.python.org/cpython/rev/64fae6f7b64c --

[issue13073] message_body argument of HTTPConnection.endheaders is undocumented

2011-10-05 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: I believe, I have addressed all the comments. Closing this report. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13073

[issue13103] copy of an asyncore dispatcher causes infinite recursion

2011-10-05 Thread Xavier de Gaye
Xavier de Gaye xdeg...@gmail.com added the comment: About why the asyncore bug shows up in python 3.2: The simple test below is ok with python 3.1 but triggers a RuntimeError: maximum recursion depth exceeded... with python 3.2: $ python3.1 Python 3.1.2 (r312:79147, Apr 4 2010, 17:46:48)

[issue13070] segmentation fault in pure-python multi-threaded server

2011-10-05 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Sorry, forgot about this issue... Updated patch (I'm not really satisfied with the error message, don't hesitate if you can think of a better wording). -- Added file: http://bugs.python.org/file23319/buffered_closed_gc-3.diff

[issue13104] urllib.request.thishost() returns a garbage value

2011-10-05 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 805a0a1e3c2b by Senthil Kumaran in branch '3.2': Issue13104 - Fix urllib.request.thishost() utility function. http://hg.python.org/cpython/rev/805a0a1e3c2b New changeset a228e59ad693 by Senthil Kumaran in branch

[issue13104] urllib.request.thishost() returns a garbage value

2011-10-05 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: Thanks for the report. This is fixed now. I hope in 3.3 I remove this old utility functions. (real soon). -- assignee: - orsenthil resolution: - fixed status: open - closed ___ Python tracker

[issue13045] socket.getsockopt may require custom buffer contents

2011-10-05 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: I've attached an update for the previous patch. Now there's no more overloading for the third argument and socket.getsockopt accepts one more optional argument -- a buffer to use as an input to kernel. Remarks: + length. If

[issue10141] SocketCan support

2011-10-05 Thread Charles-François Natali
Changes by Charles-François Natali neolo...@free.fr: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10141 ___ ___ Python-bugs-list

[issue11956] 3.3 : test_import.py causes 'make test' to fail

2011-10-05 Thread Charles-François Natali
Changes by Charles-François Natali neolo...@free.fr: -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11956 ___

[issue10141] SocketCan support

2011-10-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I don't have much to say about the patch, given that I don't know anything about CAN and my system doesn't appear to have a vcan0 interface. I think it's ok to commit and refine later if something turns out insufficient. --

[issue10141] SocketCan support

2011-10-05 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: I don't have much to say about the patch, given that I don't know anything about CAN and my system doesn't appear to have a vcan0 interface. I had never heard about it before this issue, but the protocol is really simple. If you

[issue10141] SocketCan support

2011-10-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I had never heard about it before this issue, but the protocol is really simple. If you want to try it out (just for fun :-), you just have to do the following: # modprobe vcan # ip link add dev vcan0 type vcan # ifconfig vcan0 up Ah,

[issue13103] copy of an asyncore dispatcher causes infinite recursion

2011-10-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: So, in 3.1 hasattr(y, '__setstate__') *did* recurse and hit the limit, but the exception was caught and hasattr returned False? I think I prefer the new behavior... The patch looks good, I would simply have raised AttributeError(name)

[issue13070] segmentation fault in pure-python multi-threaded server

2011-10-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The latest patch looks good to me. As for the error message, how about the BufferedRWPair object is being garbage-collected. -- ___ Python tracker rep...@bugs.python.org

[issue13103] copy of an asyncore dispatcher causes infinite recursion

2011-10-05 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: IMO, patch should only be applied to Python 3.2. For 3.3 we finally have the chance to get rid of the dispatcher.__getattr__ aberration (see issue 8483) so I say let's just remove it and fix this issue as a consequence. --

[issue13070] segmentation fault in pure-python multi-threaded server

2011-10-05 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset d60c00015f01 by Charles-François Natali in branch '3.2': Issue #13070: Fix a crash when a TextIOWrapper caught in a reference cycle http://hg.python.org/cpython/rev/d60c00015f01 New changeset 7defc1e5d13a by

[issue13081] Crash in Windows with unknown cause

2011-10-05 Thread Amorilia
Amorilia amorilia.game...@gmail.com added the comment: Thanks for also trying it out, Brian. I feel there's little more I can do. I guess the multiprocessing module could be documented a bit better that join() ought to be called before the pool is deleted? Currently, the docs merely say:

[issue13070] segmentation fault in pure-python multi-threaded server

2011-10-05 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Committed to 3.2 and default. Victor, thanks for the report! -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue13070] segmentation fault in pure-python multi-threaded server

2011-10-05 Thread Victor Semionov
Victor Semionov vsemio...@gmail.com added the comment: Great, thanks to you too, for fixing it! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13070 ___

[issue8813] SSLContext doesn't support loading a CRL

2011-10-05 Thread David Andrzejewski
Changes by David Andrzejewski site+python@davidandrzejewski.com: -- nosy: +dandrzejewski ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8813 ___

[issue13103] copy of an asyncore dispatcher causes infinite recursion

2011-10-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Let's add the test to 3.3 nonetheless. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13103 ___

[issue13103] copy of an asyncore dispatcher causes infinite recursion

2011-10-05 Thread Xavier de Gaye
Xavier de Gaye xdeg...@gmail.com added the comment: So, in 3.1 hasattr(y, '__setstate__') *did* recurse and hit the limit, but the exception was caught and hasattr returned False? This is right. I think I prefer the new behavior... The patch looks good, I would simply have raised

[issue13108] test_urllib: buildbot failure

2011-10-05 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: The FreeBSD-amd64 and Fedora buildbots are recently failing with: == ERROR: test_thishost (test.test_urllib.Utility_Tests) Test the urllib.request.thishost utility

[issue13109] telnetlib insensitive to connection loss

2011-10-05 Thread xy zzy
New submission from xy zzy the.stuffd...@gmail.com: Using python's telnetlib I can connect and communicate with a device. While the telnet session is active I can disconnect the network cable of the device. At this point, I would expect read_until() with a timeout to throw a socket.error,

[issue13109] telnetlib insensitive to connection loss

2011-10-05 Thread Eric V. Smith
Eric V. Smith e...@trueblade.com added the comment: Can you post some example code? I would not expect disconnecting the network cable to close any TCP connections, unless you are transmitting data and/or you have keepalives turned on. -- nosy: +eric.smith

[issue13110] test_socket.py failures on ARM

2011-10-05 Thread Barry A. Warsaw
New submission from Barry A. Warsaw ba...@python.org: Initial results from warsaw-ubuntu-arm buildbot indicates two failures in test_socket.py == ERROR: test_create_connection_timeout

[issue13110] test_socket.py failures on ARM

2011-10-05 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- versions: +Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13110 ___ ___

[issue13111] Error 2203 when installing Python/Perl?

2011-10-05 Thread MA S
New submission from MA S matthewsotou...@gmail.com: I can't install Python or Strawberry Perl on the Windows 8 Developer Preview :( I keep getting installer error 2203; the log file's attached. I really don't know what's wrong... -- components: Windows files: python.log messages:

[issue13112] backreferences in comprehensions

2011-10-05 Thread yoch
New submission from yoch yoch.me...@gmail.com: Hi, I would like to use backreferences in list comprehensions (or other comprehensions), such as : [[elt for elt in lst if elt] for lst in matrix if \{1}] # \{1} is back reference to [elt for elt in lst if elt] # to filter the result of the

[issue7732] imp.find_module crashes Python if there exists a directory named __init__.py

2011-10-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This broke the Windows buildbots in Python 2.7. -- assignee: - haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7732 ___

[issue3163] module struct support for ssize_t and size_t

2011-10-05 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: No problem. This last version LGTM. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3163 ___

[issue13110] test_socket.py failures on ARM

2011-10-05 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: This appears to be the problem: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/868812 I'm going to close this Python bug since it seems to be related to the Linux kernel on armel. Editing the /etc/hosts file gets around the problem

[issue13070] segmentation fault in pure-python multi-threaded server

2011-10-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: The issue doesn't affect Python 2.7? -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13070 ___

[issue13104] urllib.request.thishost() returns a garbage value

2011-10-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: There is a failure on FreeBSD 8.2 buildbot: http://www.python.org/dev/buildbot/all/builders/AMD64%20FreeBSD%208.2%203.x/builds/1104/steps/test/logs/stdio == ERROR:

[issue13104] urllib.request.thishost() returns a garbage value

2011-10-05 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- resolution: fixed - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13104 ___

[issue8087] Unupdated source file in traceback

2011-10-05 Thread Diego Mascialino
Diego Mascialino dmascial...@gmail.com added the comment: I worked a few hours today and I have this patch. I tried to make a test but could not. I know this is not a really good patch, but it's my first one and I wanted to show my idea. -- keywords: +patch versions: -Python 2.7

[issue13104] urllib.request.thishost() returns a garbage value

2011-10-05 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: hmm. interesting case in FreeBSD. Looks like socket.gethostname() did not return the hostname in freebsd buildbot. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13104