[issue16166] Add PY_BYTE_ORDER macro to get endianess of platform

2012-10-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ouch, sounds confusing. I would rather have PY_LITTLE_ENDIAN defined only on little-endian machines and PY_BIG_ENDIAN only on big-endian machines. (and PY_BYTE_ORDER isn't necessary) Why use two complementary boolean variables for a single boolean value

[issue15991] BaseHTTPServer with ThreadingMixIn serving wrong data sometimes

2012-10-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: The bug is not only wget-specific. It was discovered while making APT proxy, so at least Debian APT fetcher has the same problem. Well, perhaps it uses wget too? If you really think this is a bug in Python, you have to diagnose it further (for example by

[issue15833] most failures to write byte-compiled file no longer suppressed

2012-10-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Charles-François's patch looks ok to me. I don't know if this warrants adding a test. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15833 ___

[issue15853] IDLE crashes selecting Preferences menu with OS X ActiveState Tcl/Tk 8.5.12.1

2012-10-08 Thread David Pietz
David Pietz added the comment: It wasn't right on that page anymore but I poked around and fount the 8.5.11.1 and IDLE is no longer crashing when I go to preferences or when I cut and paste in the edit window (I didn't tell you about that did I ?- well it fixed that, too)!! thanks solo much,

[issue16167] Allow printing of str-derived classes

2012-10-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: Python 3.4.0a0 (default:8f048c8c855e, Oct 8 2012, 13:46:48) [GCC 4.5.4] on linux Type help, copyright, credits or license for more information. class newstring(str): ... def __str__(self): ... return self ...

[issue16167] Allow printing of str-derived classes

2012-10-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: And indeed print(a) hello world -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16167 ___ ___

[issue16167] Allow printing of str-derived classes

2012-10-08 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Radu Dan: Printing of str-derived classes works in Python =3.0, so you should just upgrade to newer version of Python. New features will not be backported to Python 2. -- nosy: +Arfrever resolution: invalid - works for me

[issue12322] ElementPath 1.3 expressions documentation

2012-10-08 Thread patrick vrijlandt
patrick vrijlandt added the comment: To be complete: an xpath 'above' the start element returns None Thanks for the patch! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12322 ___

[issue14916] PyRun_InteractiveLoop fails to run interactively when using a Linux pty that's not tied to stdin/stdout

2012-10-08 Thread Kevin Barry
Kevin Barry added the comment: I still see the potential cause addressed by my patch in the 2.7, 3.3, and default branches, so I'm assuming that all versions from 2.6 on have this problem. I also see that I can elect to change the Status and Resolution of this report. Does that mean I need

[issue14900] cProfile does not take its result headers as sort arguments

2012-10-08 Thread Arne Babenhauserheide
Arne Babenhauserheide added the comment: I’ll create them as soon as I get the time. It’s not as if that’s really hard - but I still have to do it (need to diff against current tip - I already merged, so that should work without problems). -- ___

[issue12322] ElementPath 1.3 expressions documentation

2012-10-08 Thread Mike Hoy
Mike Hoy added the comment: In response to patrick vrijlandt last comment here's a patch. I also found a few None keywords that didn't have `` around them. -- Added file: http://bugs.python.org/file27500/issue12322_v2.diff ___ Python tracker

[issue15991] BaseHTTPServer with ThreadingMixIn serving wrong data sometimes

2012-10-08 Thread Charles-François Natali
Charles-François Natali added the comment: The bug is not only wget-specific. It was discovered while making APT proxy, so at least Debian APT fetcher has the same problem. Debian uses wget. -- ___ Python tracker rep...@bugs.python.org

[issue15991] BaseHTTPServer with ThreadingMixIn serving wrong data sometimes

2012-10-08 Thread Charles-François Natali
Charles-François Natali added the comment: The bug is not only wget-specific. It was discovered while making APT proxy, so at least Debian APT fetcher has the same problem. Debian uses wget. I meant apt-get uses wget. -- ___ Python tracker

[issue16166] Add PY_BYTE_ORDER macro to get endianess of platform

2012-10-08 Thread Ned Deily
Ned Deily added the comment: Just a reminder that we support configurations where there are both big-endian and little-endinan binaries in the *same* executable file: for example, Mac OS X 32-bit-only universal binaries (.so, .dylib, .exe) contain both i386 and ppc code in the same file. So

[issue16163] Wrong name in Lib/pkgutil.py:iter_importers

2012-10-08 Thread Berker Peksag
Berker Peksag added the comment: Can you also provide a test that fails using the current code (and that passes with the patch applied)? New patch attached with a test. -- Added file: http://bugs.python.org/file27501/pkgutil-name-with-test.diff

[issue14916] PyRun_InteractiveLoop fails to run interactively when using a Linux pty that's not tied to stdin/stdout

2012-10-08 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14916 ___ ___ Python-bugs-list mailing

[issue15278] UnicodeDecodeError when readline in codecs.py

2012-10-08 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15278 ___ ___ Python-bugs-list mailing

[issue16168] SysLogHandler constructor ignores socktype arg when address refers to a Unix Domain Socket

2012-10-08 Thread Vitaly
New submission from Vitaly: _connect_unixsocket() (see below) does not use socktype value that was passed into SysLogHandler.__init__(): def _connect_unixsocket(self, address): self.socket = socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM) # syslog may require either DGRAM

[issue16169] ctypes.WinError() confuses errno with winerror

2012-10-08 Thread Richard Oudkerk
New submission from Richard Oudkerk: ctypes.WinError() is defined as def WinError(code=None, descr=None): if code is None: code = GetLastError() if descr is None: descr = FormatError(code).strip() return WindowsError(code, descr) Since

[issue16168] SysLogHandler constructor ignores socktype arg when address refers to a Unix Domain Socket

2012-10-08 Thread Vitaly
Vitaly added the comment: SOCK_DGRAM causes log messages larger than about 2000 bytes to be dropped altogether on MacOS X 10.7.5 and to be truncated to 2081 bytes on Linux (tested with Amazon's linux, which is based on centos). This is quite unfortunate, since many exception tracebacks for

[issue16168] SysLogHandler constructor ignores socktype arg when address refers to a Unix Domain Socket

2012-10-08 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16168 ___ ___

[issue16034] bz2 module appears slower in Python 3.x versus Python 2.x

2012-10-08 Thread Nadeem Vawda
Nadeem Vawda added the comment: I've released v0.95 of bz2file, which incorporates all the optimizations discussed here. The performance should be similar to 2.x's bz2 in most cases. It is still a lot slower when calling read(10) or read(1), but I hope no-one is doing that anywhere where

[issue13477] tarfile module should have a command line

2012-10-08 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13477 ___ ___

[issue16150] Implement generator interface in itertools.chain.

2012-10-08 Thread Guido van Rossum
Guido van Rossum added the comment: TBH I don't think that using yield from in the docs makes things clearer at all -- it just requires readers to understand a rather esoteric feature. -- nosy: +gvanrossum ___ Python tracker rep...@bugs.python.org

[issue16150] Implement generator interface in itertools.chain.

2012-10-08 Thread Guido van Rossum
Guido van Rossum added the comment: I also don't think that this is a desirable feature. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16150 ___

[issue16115] test that executable arg to Popen() takes precedence over args

2012-10-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 862430c68fec by Chris Jerdonek in branch '3.3': Issue #16115: Improve testing of the executable argument to subprocess.Popen(). http://hg.python.org/cpython/rev/862430c68fec New changeset 1b37fc50dc1b by Chris Jerdonek in branch 'default': Issue

[issue16115] test that executable arg to Popen() takes precedence over args

2012-10-08 Thread Chris Jerdonek
Chris Jerdonek added the comment: I am pushing the documentation changes separately (which will include 2.7 and 3.2). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16115 ___

[issue16168] SysLogHandler constructor ignores socktype arg when address refers to a Unix Domain Socket

2012-10-08 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- assignee: - vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16168 ___ ___

[issue16141] Possible simplification for logging.StreamHandler exception handling

2012-10-08 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- assignee: - vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16141 ___ ___

[issue16115] test that executable arg to Popen() takes precedence over args

2012-10-08 Thread Chris Jerdonek
Chris Jerdonek added the comment: The test_executable test fails on AMD64 Ubuntu LTS. For example: http://buildbot.python.org/all/builders/AMD64%20Ubuntu%20LTS%203.3/builds/38/steps/test/logs/stdio FAIL: test_executable (test.test_subprocess.ProcessTestCase)

[issue16166] Add PY_BYTE_ORDER macro to get endianess of platform

2012-10-08 Thread Christian Heimes
Christian Heimes added the comment: My proposal mimics the API of endian.h. It defines a BYTE_ORDER macro that is either equal to LITTLE_ENDIAN, BIG_ENDIAN or PDB_ENDIAN (aka mixed endian). I need it that way for Keccak but I can roll my own definitions if you prefer just two macros. If you

[issue16161] broken link to Visual Studio 2008 in devguide

2012-10-08 Thread Christian Heimes
Christian Heimes added the comment: Thanks for your tests, Chris. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16161 ___ ___

[issue16115] test that executable arg to Popen() takes precedence over args

2012-10-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset ef90c5e482f4 by Chris Jerdonek in branch '3.3': Issue #16115: Skip a newly added subprocess.Popen() test on Linux. http://hg.python.org/cpython/rev/ef90c5e482f4 New changeset 96b8eb3d3208 by Chris Jerdonek in branch 'default': Issue #16115: Merge

[issue16115] test that executable arg to Popen() takes precedence over args

2012-10-08 Thread Chris Jerdonek
Chris Jerdonek added the comment: More information on the failure above (from the same buildbot link): test_executable (test.test_subprocess.ProcessTestCase) ... Could not find platform independent libraries prefix Could not find platform dependent libraries exec_prefix Consider setting

[issue16166] Add PY_BYTE_ORDER macro to get endianess of platform

2012-10-08 Thread Ned Deily
Ned Deily added the comment: Christian: That's right because there is only one configure execution in the OS X universal builds and only compiler call per module just like a normal single-architecture unix build. Under the covers, the Apple compiler driver transparently makes multiple

[issue16170] remove Linux skip from test_subprocess's test_executable() test

2012-10-08 Thread Chris Jerdonek
New submission from Chris Jerdonek: This issue is to make whatever changes are necessary to remove the skip from test_subprocess's test_executable() test (currently skipping machines that are neither Windows nor Mac):

[issue16115] test that executable arg to Popen() takes precedence over args

2012-10-08 Thread Chris Jerdonek
Chris Jerdonek added the comment: I created issue 16170 to track fixing the Linux-skip for the test_executable() test. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16115 ___

[issue7774] sys.executable: wrong location if zeroth command argument is modified.

2012-10-08 Thread Chris Jerdonek
Chris Jerdonek added the comment: I just created issue 16170 about a newly-added subprocess.Popen() test that succeeds on Windows and Mac but fails on Linux. It seems closely related to the issue discussed here. Perhaps it signals an underlying issue that needs to be fixed. -- nosy:

[issue16170] remove Linux skip from test_subprocess's test_executable() test

2012-10-08 Thread Chris Jerdonek
Chris Jerdonek added the comment: For future reference, this issue resulted from the tests committed for issue 16115. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16170 ___

[issue16150] Implement generator interface in itertools.chain.

2012-10-08 Thread Guido van Rossum
Guido van Rossum added the comment: I am going to reject this unless at least one other core developer supports it. Extensive discussion on python-ideas has found very few supporters besides Serhiy Storchaka. -- ___ Python tracker

[issue16150] Implement generator interface in itertools.chain.

2012-10-08 Thread Nick Coghlan
Nick Coghlan added the comment: As discussed on python-ideas: the iterator interface is narrower than the generator interface. Tools for working with iterators are *expected* to lose the generator specific details, just as for loops do, especially when they deal with multiple iterators. When

[issue16150] Implement generator interface in itertools.chain.

2012-10-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: In the python-ideas thread, Propagating StopIteration value, Guido further elaborated But that just seems to perpetuate the idea that you have, which IMO is wrongheaded. Itertools is for iterators, and all the extra generator features make no sense for it. I

[issue15348] IDLE - shell becomes unresponsive if debugger windows is closed while active.

2012-10-08 Thread Roger Serwy
Roger Serwy added the comment: While trying to address #15347, I discovered one too many corner cases where the debugger breaks IDLE. The stable_idle_debugger.diff against 3.4 contains necessary changes to make IDLE more reliable while debugging. Since the IDLE debugger is not documented

[issue15348] IDLE - shell becomes unresponsive if debugger windows is closed while active.

2012-10-08 Thread jimbo1qaz
jimbo1qaz added the comment: Is it possible to make the X button quit the debugger if enabled? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15348 ___

[issue15348] IDLE - shell becomes unresponsive if debugger windows is closed while active.

2012-10-08 Thread Roger Serwy
Roger Serwy added the comment: Clicking X while the debugger is enabled, but not actively debugging a program, will close the debugger window. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15348

[issue15348] IDLE - shell becomes unresponsive if debugger windows is closed while active.

2012-10-08 Thread jimbo1qaz
jimbo1qaz added the comment: What's the intended behavior? stop debugging and quit the program? stop debugging and continue freerunning? I'm using 3.3, can you make the patch stop debugging the active running program when you click the X? -- ___

[issue15348] IDLE - shell becomes unresponsive if debugger windows is closed while active.

2012-10-08 Thread Roger Serwy
Roger Serwy added the comment: If the debugger is active, then clicking X will flash the Quit button. You must click the quit button first before closing the debugger window. -- ___ Python tracker rep...@bugs.python.org

[issue15348] IDLE - shell becomes unresponsive if debugger windows is closed while active.

2012-10-08 Thread jimbo1qaz
jimbo1qaz added the comment: Then frigging change it! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15348 ___ ___ Python-bugs-list mailing list

[issue15348] IDLE - shell becomes unresponsive if debugger windows is closed while active.

2012-10-08 Thread Roger Serwy
Roger Serwy added the comment: Closing the active debugger with X creates a problem with references and callbacks. I encountered too many corner cases where I could not implement that behavior simply. -- ___ Python tracker rep...@bugs.python.org

[issue15348] IDLE - shell becomes unresponsive if debugger windows is closed while active.

2012-10-08 Thread Roger Serwy
Roger Serwy added the comment: But of course, you are more than welcomed to try to submit a patch yourself. Just make sure that those corner cases I described earlier are handled reasonable when running IDLE with and without a subprocess. -- ___

[issue15348] IDLE - shell becomes unresponsive if debugger windows is closed while active.

2012-10-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have never used the debugger, but I verified the bug. While something was 'hung', the debugger would not restart because something was 'busy'. I also verified that clicking [quit] first and then [x] works. I will try to test the second patch sometime.

[issue16134] Add support for RTMP schemes to urlparse

2012-10-08 Thread Senthil Kumaran
Senthil Kumaran added the comment: Personally, I want to do away with all those scheme specific stuff, if we can. I have tried previously, but failed due to some backwards incompatibility. 3.4 gives a good chance/time to make those changes to get rid of those scheme specific stuff (again).

[issue16134] Add support for RTMP schemes to urlparse

2012-10-08 Thread Senthil Kumaran
Senthil Kumaran added the comment: issue9374 - another related one which should be taken care. Which is simply reverting this: http://hg.python.org/cpython/diff/a0b3cb52816e/Lib/urllib/parse.py and informing in the DOCs that those globals are not available anymore. (But this should also be

[issue15880] os.path.split() and long UNC names

2012-10-08 Thread Kushal Das
Kushal Das added the comment: splitunc is deprecated since 3.1. It is also written in the code that Paths containing drive letters never have an UNC part -- nosy: +kushaldas ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15880

<    1   2