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

2012-10-08 Thread Roger Serwy
Roger Serwy added the comment: Attached is a patch against 3.4 to solve the issue. The debugger was originally written for running IDLE without a subprocess. As a result, calls to idb.run() from Debugger.py would block until completed. If .interacting == 1 then clicking "X" would not close th

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

2012-10-08 Thread Charles-François Natali
Charles-François Natali added the comment: > Yes . > Charles, lest assume that all other issues with build system, are resolved > and source tree is ready for use. So in this situation I could run python , I > could build all and I could run tests with an additional patch TEMPDIR is > relative

[issue11245] Implementation of IMAP IDLE in imaplib?

2012-10-08 Thread Gereon Kremer
Gereon Kremer added the comment: I got the confirmation for my agreement. I'm not quite sure about the tests, as I'm not really familiar with the way this is done in cpython. The test_imaplib.py seems to cover all ways to connect to some server, but none of the actual imap commands. The patch

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

2012-10-08 Thread Chris Jerdonek
Chris Jerdonek added the comment: Proposed patch attached. I verified that the tests included in the patch pass on 2.7, 3.2, 3.3, and default (replacing FileNotFoundError with OSError as necessary). I also verified that the tests pass on Windows for default. The patch also includes improveme

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

2012-10-08 Thread Arne Babenhauserheide
Changes by Arne Babenhauserheide : Added file: http://bugs.python.org/file27484/profile-docs-3.2.diff ___ Python tracker ___ ___ Python-bugs-l

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

2012-10-08 Thread Arne Babenhauserheide
Changes by Arne Babenhauserheide : Added file: http://bugs.python.org/file27485/profile-docs-2.7.diff ___ Python tracker ___ ___ Python-bugs-l

[issue16161] broken link to Visual Studio 2008 in devguide

2012-10-08 Thread Chris Jerdonek
New submission from Chris Jerdonek: The link to Visual Studio 2008 in the devguide doesn't seem to work: http://docs.python.org/devguide/setup.html#windows https://www.microsoft.com/visualstudio/en-us/products/2008-editions/express This seems to be a better link: http://www.microsoft.com/en-us

[issue12947] doctest directive examples in library/doctest.html lack the flags

2012-10-08 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, I see the other examples Chris is talking about now. Yes, the workaround should be applied in those cases as well. -- ___ Python tracker ___

[issue16161] broken link to Visual Studio 2008 in devguide

2012-10-08 Thread Chris Jerdonek
Chris Jerdonek added the comment: It might also be good to say that "vcsetup.exe" is the file you're supposed to download (as opposed to, say, "vcssetup.exe"). Strangely, the files aren't labeled, and they're listed in a different order from the text below. -- ___

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

2012-10-08 Thread Chris Jerdonek
Chris Jerdonek added the comment: I also checked the tests in the patch on Windows for 2.7. -- ___ Python tracker ___ ___ Python-bugs-

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

2012-10-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: Looks like you missed *sort* parameter for ".. function:: run(command, filename=None, sort=-1)" Also it will be nice to insert link to Stats.sort_stats in doc text for run functions. -- ___ Python tracker

[issue15278] UnicodeDecodeError when readline in codecs.py

2012-10-08 Thread Marcus Gröber
Marcus Gröber added the comment: I came across this today as well. A short way of summarizing this error seems to be: Reading a file using readline (or "for line in file") fails, if the following two conditions are true: • A codec (e.g. UTF-8) for a multi-byte encoding is used, and •

[issue16162] Py_FileSystemDefaultEncoding should be updated on locale.setlocale()

2012-10-08 Thread Michael Vogt
New submission from Michael Vogt: The Py_FileSystemDefaultEncoding is very static right now and only set on interpreter statup AFAICT. There appears to be no way to switch that later. I think that Py_FileSystemDefaultEncoding should get updated when locale.setlocale() is run automatically and

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

2012-10-08 Thread Berker Peksag
New submission from Berker Peksag: Name "pkg" is not defined. Related changeset: http://hg.python.org/cpython/rev/3987667bf98f#l2.89 -- components: Library (Lib) files: pkgutil-name.diff keywords: patch messages: 172374 nosy: berker.peksag priority: normal severity: normal status: open

[issue16164] there is no easy way to force unittest.main to use stdout rather than stderr

2012-10-08 Thread Alexander Belchenko
New submission from Alexander Belchenko: Why by default unittest.main (which uses unittest.TextTestRunner) prints everything to stderr. What the reason behind this behavior? It makes very inconvenient to run big test suite with less, i.e. python test.py | less or python test.py > test.log d

[issue16165] sched.scheduler.run() blocks scheduler

2012-10-08 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: sched.scheduler.run() blocks scheduler and prevents the addition of new events until all events added before start will not be processed. Canceling does not work too. Here is test script which reproduces the behavior differences. Output in Python 3.2: Ad

[issue13451] sched.py: speedup cancel() method

2012-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In principle this is the right approach. But the time of enter() is increased by 20%. Here is updated and slightly optimized patch that restores enter() performance (but a little slow down cancel()). Because enter() is executed for each event and cancel() is

[issue16161] broken link to Visual Studio 2008 in devguide

2012-10-08 Thread Christian Heimes
Christian Heimes added the comment: Meh, MS likes to invalidate or alter the meaning of an URL. Have you verified that vcsetup.exe is the right thing? I *guess* that vcsetup stands for "Visual C++ setup" and vcssetup for "Visual C Sharp Setup" but I'm not sure about it. -- assignee:

[issue16165] sched.scheduler.run() blocks scheduler

2012-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch that releases lock for other threads. -- keywords: +patch Added file: http://bugs.python.org/file27490/sched_unblock.patch ___ Python tracker

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

2012-10-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: Hmm, I dislike "Normally, *args* should be a sequence." >From my perspective better to say something like: *args* should be a sequence if *shell* is *False* or string of *shell* is *True* or something like this. I would to directly recommend reader to follow th

[issue16166] Add PY_BYTE_ORDER macro to get endianess of platform

2012-10-08 Thread Christian Heimes
New submission from Christian Heimes: I propose the addition of three new macros in pyport.h #define PY_LITTLE_ENDIAN 1234 #define PY_BIG_ENDIAN 4321 #define PY_BYTE_ORDER that are either set by a configure test or implemented like brg_endian.h. pyconfig.h has WORDS_BIGENDIAN which just check

[issue16166] Add PY_BYTE_ORDER macro to get endianess of platform

2012-10-08 Thread Christian Heimes
Changes by Christian Heimes : -- dependencies: +Add SHA-3 (Keccak) support nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list m

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

2012-10-08 Thread Arne Babenhauserheide
Changes by Arne Babenhauserheide : Added file: http://bugs.python.org/file27491/sort-argument-2.7.diff ___ Python tracker ___ ___ Python-bugs-

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

2012-10-08 Thread Arne Babenhauserheide
Changes by Arne Babenhauserheide : Added file: http://bugs.python.org/file27492/sort-argument-3.2.diff ___ Python tracker ___ ___ Python-bugs-

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

2012-10-08 Thread Arne Babenhauserheide
Arne Babenhauserheide added the comment: Jepp, I missed that. I hope the added patches clear that up. -- ___ Python tracker ___ ___ Py

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

2012-10-08 Thread Arne Babenhauserheide
Changes by Arne Babenhauserheide : Removed file: http://bugs.python.org/file27492/sort-argument-3.2.diff ___ Python tracker ___ ___ Python-bug

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

2012-10-08 Thread Arne Babenhauserheide
Changes by Arne Babenhauserheide : Added file: http://bugs.python.org/file27493/sort-argument-3.2.diff ___ Python tracker ___ ___ Python-bugs-

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

2012-10-08 Thread Arne Babenhauserheide
Changes by Arne Babenhauserheide : Removed file: http://bugs.python.org/file27491/sort-argument-2.7.diff ___ Python tracker ___ ___ Python-bug

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

2012-10-08 Thread Arne Babenhauserheide
Changes by Arne Babenhauserheide : Added file: http://bugs.python.org/file27494/sort-argument-2.7.diff ___ Python tracker ___ ___ Python-bugs-

[issue11245] Implementation of IMAP IDLE in imaplib?

2012-10-08 Thread R. David Murray
R. David Murray added the comment: Yeah writing a good test case for this is a bit tricky, since we'll need some infrastructure (an Event?) so we can prove that the call has blocked without delaying the test for very long. I'm not sure when I'll be able to get to this...I'm not going to check

[issue16162] Py_FileSystemDefaultEncoding should be updated on locale.setlocale()

2012-10-08 Thread R. David Murray
Changes by R. David Murray : -- nosy: +haypo, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

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

2012-10-08 Thread R. David Murray
Changes by R. David Murray : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue16164] there is no easy way to force unittest.main to use stdout rather than stderr

2012-10-08 Thread R. David Murray
R. David Murray added the comment: I think the reason is that this enables you to easily see if the tests generate any output to stdout. This was important when unittest was introduced into python, because some of our tests at that time were still written to check the stdout output against "k

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

2012-10-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: Sorry, I cannot figure out what hg repo version should I use to apply sort-argument* patches. Can you prepare 2 cumulative patches for 2.7 and 3.2 which can be applied to current repo state? It's CPython team policy to send patches which can be applied to pure

[issue16164] there is no easy way to force unittest.main to use stdout rather than stderr

2012-10-08 Thread R. David Murray
R. David Murray added the comment: I'm pretty sure this should be closed as "won't fix" or "invalid", but I'll leave that to Michael, who is the current maintainer of unittest. -- nosy: +michael.foord ___ Python tracker

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

2012-10-08 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks for the report and patch. Can you also provide a test that fails using the current code (and that passes with the patch applied)? -- nosy: +chris.jerdonek ___ Python tracker

[issue16161] broken link to Visual Studio 2008 in devguide

2012-10-08 Thread Chris Jerdonek
Chris Jerdonek added the comment: > Have you verified that vcsetup.exe is the right thing? I *guess* that > vcsetup stands for "Visual C++ setup" and vcssetup for "Visual C Sharp Setup" > but I'm not sure about it. Yes, after choosing wrong the first time (based partly on the ordering relativ

[issue16162] Py_FileSystemDefaultEncoding should be updated on locale.setlocale()

2012-10-08 Thread Martin v . Löwis
Martin v. Löwis added the comment: It actually *is* possible to work with UTF-8-encoded file names even in an ASCII locale. It should work automatically, using the PEP 383 mechanism. I'm -0 on allowing changes to the file system encoding. It may lead to mojibake, if some file names were read f

[issue16162] Py_FileSystemDefaultEncoding should be updated on locale.setlocale()

2012-10-08 Thread STINNER Victor
STINNER Victor added the comment: > I think that Py_FileSystemDefaultEncoding should get updated when > locale.setlocale() is run automatically This is not a good idea. The two following expressions must be True on UNIX: os.fsencode(os.fsdecode(name)) == name os.fsdecode(os.fsencode(name)) == n

[issue15278] UnicodeDecodeError when readline in codecs.py

2012-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This error happens due to the fact that utf16* decoders do not properly partial decode truncated data. Exception raised if input data truncated on the second surrogate in the surrogate pair. For example codecs.utf_16_le_decode(b'\x00\xd8\x00') should return

[issue15278] UnicodeDecodeError when readline in codecs.py

2012-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here are the patches. -- keywords: +patch Added file: http://bugs.python.org/file27495/utf16_partial_decode-3.3.patch Added file: http://bugs.python.org/file27496/utf16_partial_decode-3.2.patch Added file: http://bugs.python.org/file27497/utf16_partial

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

2012-10-08 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks for the good suggestion and pointer to the relevant discussion, Andrew. I agree re: the sentence beginning with "normally." Incidentally, that was existing language that I had preserved. I'm attaching an updated patch that incorporates your suggestion.

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

2012-10-08 Thread Andrew Svetlov
Andrew Svetlov added the comment: LGTM. Thanks, Chris. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue16162] Py_FileSystemDefaultEncoding should be updated on locale.setlocale()

2012-10-08 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue16166] Add PY_BYTE_ORDER macro to get endianess of platform

2012-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I agree, it is worth bring order to work with endianess. We can get rod of BYTEORDER_IS_BIG_ENDIAN and BYTEORDER_IS_LITTLE_ENDIAN in Objects/unicodeobject.c, IS_LITTLE_ENDIAN in Objects/longobject.c, tests in other modules. I don't see the necessity in new m

[issue16167] Allow printing of str-derived classes

2012-10-08 Thread Radu Dan
New submission from Radu Dan: Classes that extend the builtin 'str' cannot be printed as is, and are automatically converted to string. #!/bin/env python class newstring(str): def __str__(self): return self a = newstring("hello world") print a Running this returns: Tr

[issue16166] Add PY_BYTE_ORDER macro to get endianess of platform

2012-10-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which removes some unnecessary defines and tests. -- keywords: +patch Added file: http://bugs.python.org/file27499/endianess_cleanup.patch ___ Python tracker

[issue16161] broken link to Visual Studio 2008 in devguide

2012-10-08 Thread Chris Jerdonek
Chris Jerdonek added the comment: > Incidentally, it was also odd that the VS executable wasn't obvious to locate. Scratch this last comment. A "Visual C++ 2008 Express Edition" folder was created under the Start menu. It just wasn't highlighted as having been newly added, as was a separate

[issue16166] Add PY_BYTE_ORDER macro to get endianess of platform

2012-10-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: This doesn't depend on #16113 (quite the contrary). -- dependencies: -Add SHA-3 (Keccak) support ___ Python tracker ___ ___

[issue16166] Add PY_BYTE_ORDER macro to get endianess of platform

2012-10-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: > #define PY_LITTLE_ENDIAN 1234 > #define PY_BIG_ENDIAN 4321 > #define PY_BYTE_ORDER 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 nec

[issue16166] Add PY_BYTE_ORDER macro to get endianess of platform

2012-10-08 Thread Serhiy Storchaka
Serhiy Storchaka 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 Mikhail Afanasyev
Mikhail Afanasyev 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. -- ___ Python tracker

[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 boolea

[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 u

[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 ___ ___

[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 ... >>> type(str

[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 ___ ___ Python-bugs-list mailing list

[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 ___

[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 n

[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). -- ___ Py

[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

[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 a

[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 : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue15278] UnicodeDecodeError when readline in codecs.py

2012-10-08 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[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 o

[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 Windows

[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 pro

[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 : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[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 perfo

[issue13477] tarfile module should have a command line

2012-10-08 Thread Berker Peksag
Changes by Berker Peksag : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[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

[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 ___ ___ Python-bugs-lis

[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 #16

[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 ___ _

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

2012-10-08 Thread Vinay Sajip
Changes by Vinay Sajip : -- assignee: -> vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue16141] Possible simplification for logging.StreamHandler exception handling

2012-10-08 Thread Vinay Sajip
Changes by Vinay Sajip : -- assignee: -> vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[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 p

[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 ___ ___ Python-bugs-list mailing list Unsub

[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 te

[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 Could not find platform dependent libraries Consider setting $PYTHONHOME to [:] Fatal

[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 compile

[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): http://hg.python.org/cpython/file/ef90c5e482f4/Lib/test/test_subprocess.py#l

[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 ___

[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 ___ _

[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."

[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 these

[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 ___ ___ Python-bu

[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 ___ __

[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? -- ___ Pyt

[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

[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 ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

  1   2   >