[issue7244] itertools.zip_longest behaves strangely with an iterable class

2009-11-01 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I created the patch to improve test which was checked in r76004. This patch checks if correct elements are returned even when RuntimeError is raised. Could you take a look? -- Added file:

[issue7244] itertools.zip_longest behaves strangely with an iterable class

2009-11-01 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: correct elements are returned even when RuntimeError is raised. Or maybe it is not guaranteed. :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7244

[issue1006238] cross compile patch

2009-11-01 Thread Mike Frysinger
Mike Frysinger vap...@users.sourceforge.net added the comment: AC_TRY_RUN is already documented: http://www.gnu.org/software/autoconf/manual/html_node/Obsolete-Macros.html#index-AC_005fTRY_005fRUN-1992 there are a bunch of distros out there (like OE and Gentoo) that have been maintaining

[issue7217] IDLE Subprocess Startup Error

2009-11-01 Thread ali
ali mr.da...@gmail.com added the comment: ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7217 ___ ___ Python-bugs-list mailing list

[issue6896] Intermittent failures in test_mailbox

2009-11-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The explanation seems to be that some systems (including RDM's buildbot) have slightly bizarre mtime behaviour: $ date python -c 'import os; os.link(setup.py, t/c)' stat t date Sun Nov 1 09:49:04 EST 2009 File: `t' Size: 144

[issue6896] Intermittent failures in test_mailbox

2009-11-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok, here is a patch which seems to fix the problem reliably on RDM's buildbot. Ezio, can you give it a try? -- Added file: http://bugs.python.org/file15246/maildir.patch ___ Python tracker

[issue6896] Intermittent failures in test_mailbox

2009-11-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: PS: this is the kind of traces I had when running TestMaildir on David's buildbot: at 1257086460.18, linking/renaming ... mtime of '/home/pitrou/trunk/@test_23145_tmp/new' is now 1257086459.0 at 1257086460.21, linking/renaming ... mtime of

[issue6748] test_debuglevel from test_telnetlib.py fails

2009-11-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Please note that the Windows buildbot shows another error: == ERROR: test_debuglevel (test.test_telnetlib.OptionTests)

[issue7246] getpass crashes when several returns are in stdin before getpass was called

2009-11-01 Thread Avihu Turzion
New submission from Avihu Turzion av...@turzion.com: When I have the following code: blah.py === import getpass nothing = getpass.getpass(blah:) And I run it like so: sleep 5 ./blah.py return return (I write the ./blah.py and returns while the sleep occurs) I get the following

[issue1006238] cross compile patch

2009-11-01 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: Removing a toxic person from the cc list. Mike, please go harm some other all volunteer project. -- nosy: -vapier ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1006238

[issue7244] itertools.zip_longest behaves strangely with an iterable class

2009-11-01 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Already checked-in a fix for Py2.6 in r76004. Will forward port shortly. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7244

[issue7246] getpass raises IOError when several returns are in stdin before getpass was called

2009-11-01 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- assignee: - gregory.p.smith components: +Library (Lib) nosy: +gregory.p.smith priority: - normal title: getpass crashes when several returns are in stdin before getpass was called - getpass raises IOError when several returns are in

[issue7244] itertools.zip_longest behaves strangely with an iterable class

2009-11-01 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Will take a look at your patch. Am also still doing work to complete r76004 for the case where the refcnt 1. -- ___ Python tracker rep...@bugs.python.org

[issue7246] getpass raises IOError when several returns are in stdin before getpass was called

2009-11-01 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: am unable to duplicate this behavior on Linux or OS X using python 2.6. What platform did you see the problem on? that said, can you apply the following patch to your getpass.py and see if it helps at all?

[issue7246] getpass raises IOError when several returns are in stdin before getpass was called

2009-11-01 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: ah i misread your example. the following works to reproduce it: Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) [GCC 4.3.3] on linux2 Type help, copyright, credits or license for more information. import time, getpass time.sleep(5)

[issue7246] getpass raises IOError when several returns are in stdin before getpass was called

2009-11-01 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: and the r76000 patch does not fix it. investigating. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7246 ___

[issue7246] getpass raises IOError when several returns are in stdin before getpass was called

2009-11-01 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: change that. it looks like r76000 in trunk already fixes this. i was using an old build when i tried earlier. merged into release26-maint in r76015. -- resolution: - fixed status: open - closed

[issue7244] itertools.zip_longest behaves strangely with an iterable class

2009-11-01 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7244 ___ ___ Python-bugs-list

[issue7244] itertools.zip_longest behaves strangely with an iterable class

2009-11-01 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7244 ___ ___ Python-bugs-list

[issue7244] itertools.zip_longest behaves strangely with an iterable class

2009-11-01 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Added r76018 to use Hirokazu's test for the RuntimeError case and to redirect stdout to a file for the StopIteration case. Also, fixed-up weird indentation in the C code. -- ___

[issue7208] Getpass echo's password to screen on 2.6, but not on 2.5 or 3.1

2009-11-01 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: merged into release26-maint in r76015. this patch also fixed issue7246. py3k r76017 release31-maint r76019 -- resolution: - fixed status: open - closed versions: -Python 2.6, Python 2.7 ___

[issue7247] 2.6.4 fnctl test failure

2009-11-01 Thread Tony Vroon
New submission from Tony Vroon t...@vroon.org: chain...@prometheus ~ $ python2.6 /usr/lib64/python2.6/test/test_fcntl.py struct.pack: '\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0 0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' test_fcntl_64_bit (__main__.TestFcntl) ...

[issue1006238] cross compile patch

2009-11-01 Thread Garrett Cooper
Garrett Cooper yaneg...@gmail.com added the comment: On Sun, Nov 1, 2009 at 5:50 AM, Mike Frysinger rep...@bugs.python.org wrote: Mike Frysinger vap...@users.sourceforge.net added the comment: AC_TRY_RUN is already documented:

[issue1008086] socket.inet_aton returns 8 bytes on LP64 platforms

2009-11-01 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: Fixed in release26-maint r76022. This will appear in Python 2.6.5. I'm leaving release30-maint alone as it is already in 3.1. sorry for not making it into 2.6.3/2.6.4 despite the code being ready. I should've set this as a release blocker.

[issue6665] fnmatch fails on filenames containing \n character

2009-11-01 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: release26-maint r76023 to appear in Python 2.6.5. release31-maint r76024 to appear in Python 3.1.2. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue1006238] cross compile patch

2009-11-01 Thread Mike Frysinger
Mike Frysinger vap...@users.sourceforge.net added the comment: Gregory: there's no need to be a dick. i'm pointing out the obvious -- bugs have been open literally for *years* with zero assistance/feedback from anyone who can actually get things merged. people have posted patches, but no one

[issue7244] itertools.zip_longest behaves strangely with an iterable class

2009-11-01 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Forward-ported in r76025 r76026 and r76027. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7244

[issue1115] Minor Change For Better cross compile

2009-11-01 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: Thanks for the patch! applied in trunk r76028/r76029. py3k r76030/r76032 There are more of these, other bugs are open that should result in us cleaning them up. see issue1006238 for example. -- resolution: - fixed status: open -

[issue4698] Solaris buildbot failure on trunk in test_hostshot

2009-11-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This was apparently fixed some months ago with r69410. Neil, would you mind backporting it to 2.6? -- assignee: - nascheme nosy: +nascheme ___ Python tracker rep...@bugs.python.org

[issue7247] 2.6.4 fnctl test failure

2009-11-01 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7247 ___

[issue7247] test_fcntl_64_bit from test_fcntl.py fails in Python 2.6.4

2009-11-01 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- title: 2.6.4 fnctl test failure - test_fcntl_64_bit from test_fcntl.py fails in Python 2.6.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7247

[issue7248] test_importlib uses a fixed name in /tmp

2009-11-01 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: test_importlib uses fixed names in /tmp (e.g. /tmp/pkg), which will make the tests fail is such files/dirs already exist and aren't writable by the current user (which can happen if several users run the python test suite...). --

[issue7245] better Ctrl-C support in pdb (program can be resumed)

2009-11-01 Thread Ilya Sandler
Ilya Sandler ilya.sand...@gmail.com added the comment: No,I don't think patch in the issue #1294 addresses the problem which I'm trying to solve. I tried applying patch#1294, and Ctrl-C will still throws your debugger into postmortem mode and I don't think you can change that by overriding

[issue7248] test_importlib uses a fixed name in /tmp

2009-11-01 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Yeah, I should have used tempfile.mkdtemp(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7248 ___

[issue1006238] cross compile patch

2009-11-01 Thread Garrett Cooper
Garrett Cooper yaneg...@gmail.com added the comment: Ok. Taking a look at trunk... The following could be converted to AC_TRY_COMPILE statements for the 3rd AC_TRY_RUN tuple: 1. $ac_enable_profiling : 697 2. $ac_cv_no_strict_aliasing_ok : 921 3. $ac_cv_opt_olimit_ok : 1070 4. $ac_cv_olimit_ok

[issue4698] Solaris buildbot failure on trunk in test_hostshot

2009-11-01 Thread Neil Schemenauer
Neil Schemenauer nas-pyt...@arctrix.com added the comment: I checked in the fix on the 2.6 branch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4698 ___

[issue6896] Intermittent failures in test_mailbox

2009-11-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ezio indicated that the patch suppressed all failures for him, so I committed it on trunk. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6896

[issue1006238] cross compile patch

2009-11-01 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: these two have been merged and applied to trunk. i fixed the chflags specific check a long time ago (as i imagine others have as well): http://sources.gentoo.org/dev-lang/python/files/python-2.6-chflags- cross.patch same goes for the printf

[issue1006238] cross compile patch

2009-11-01 Thread Mike Frysinger
Mike Frysinger vap...@users.sourceforge.net added the comment: the chflags is specifically documented as needing a runtime test: # On Tru64, chflags seems to be present, but calling it will # exit Python which is why i left the default of AC_TRY_RUN but cross-compile falls back to a simple link

[issue7249] Consider allowing io.BytesIO sizes to be passed as 'long' in 2.6

2009-11-01 Thread Ryan Leslie
New submission from Ryan Leslie ryle...@gmail.com: py StringIO.StringIO(foo).read(long(1)) 'f' py io.BytesIO(foo).read(long(1)) Traceback (most recent call last): File stdin, line 1, in module TypeError: integer argument expected, got 'long' This is known to cause problems when reading zip

[issue1006238] cross compile patch

2009-11-01 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1006238 ___

[issue6873] posix_lchown: possible overflow of uid, gid

2009-11-01 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- assignee: - gregory.p.smith nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6873 ___

[issue6873] posix_lchown: possible overflow of uid, gid

2009-11-01 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- priority: - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6873 ___ ___ Python-bugs-list

[issue1628484] Python 2.5 64 bit compile fails on Solaris 10/gcc 4.1.1

2009-11-01 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: -- nosy: +ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1628484 ___ ___

[issue7250] wsgiref.handlers.CGIHandler caches os.environ, leaking info between requests

2009-11-01 Thread Brandon Bloom
New submission from Brandon Bloom snprbo...@gmail.com: This issue came up while doing Google App Engine development. Apparently the default wsgi handler logic is to cache os.environ into os_environ at import time. This is reasonable behavior for wsgi, but when using cgi, this is a serious