[issue8453] build_installer.py breaks bzip compilation

2010-04-19 Thread Martin v . Löwis
New submission from Martin v. Löwis mar...@v.loewis.de: The current build_installer fails to build dependencies, e.g. with gcc-4.0 -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -o bzip2 bzip2.o -L. -lbz2 collect2: cannot find 'ld' collect2: cannot find 'ld' lipo: can't open

[issue8451] syslog.syslog('msg') logs message with ident python.

2010-04-19 Thread Sean Reifschneider
Changes by Sean Reifschneider j...@tummy.com: Added file: http://bugs.python.org/file16983/syslog-kwargs2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8451 ___

[issue6095] os.curdir as the default argument for os.listdir

2010-04-19 Thread Virgil Dupras
Virgil Dupras hs...@hardcoded.net added the comment: Here's another one. I hadn't realized that it was useless to target the 2.x codebase. So I re-worked this on py3k. The change is non-trivial, since the non-windows/non-os2 part of the code has significantly changed in 3k. This time, since

[issue8449] buildbot: test_dbm and test_dbm_ndbm

2010-04-19 Thread roundup-admin
failures To: python-bugs-list@python.org From: STINNER Victor rep...@bugs.python.org Date: Sun, 18 Apr 2010 23:17:46 + Precedence: bulk X-Roundup-Name: Python tracker X-Roundup-Loop: hello X-Roundup-Version: 1.4.10 Reply-To: Python tracker rep...@bugs.python.org Message-Id:

[issue8393] subprocess: support undecodable current working directory on POSIX OS

2010-04-19 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: It does not work on Windows: subprocess.Popen(c:/windows/notepad.exe, cwd=b'c:/temp') Traceback (most recent call last): File stdin, line 1, in module File D:\afa\python\py3k-1\lib\subprocess.py, line 681, in __init__

[issue5650] Obsolete RFCs should be removed from doc of urllib.urlparse

2010-04-19 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: The 'See also' in the documentation should also be updated: http://docs.python.org/dev/library/urlparse.html#urlparse.urldefrag -- nosy: +ezio.melotti priority: - normal status: closed - open versions: +Python 3.2 -Python 3.0

[issue8438] Codecs: surrogateescape error handler in Python 2.7

2010-04-19 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: STINNER Victor victor.stin...@haypocalc.com added the comment: I think it would be best to backport the handler (even though it is not needed in Python 2.7), since it makes porting apps to 3.x easier.

[issue8438] Codecs: surrogateescape error handler in Python 2.7

2010-04-19 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I consider this an important missing backport for 2.7, since without this handler, the UTF-8 codecs in 2.7 and 3.x are incompatible and there's no other way to work around this other than to make use of the errorhandler conditionally

[issue8393] subprocess: support undecodable current working directory on POSIX OS

2010-04-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: And please add unit tests... I'm thinking on this. I plan to write tests for all my last changes about surrogates. -- ___ Python tracker rep...@bugs.python.org

[issue8394] ctypes.dlopen() doesn't support surrogates

2010-04-19 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: It does not work on Windows: ctypes.CDLL(b'kernel32') Traceback (most recent call last): File stdin, line 1, in module File D:\afa\python\py3k-1\lib\ctypes\__init__.py, line 350, in __init__ self._handle = _dlopen(self._name,

[issue8393] subprocess: support undecodable current working directory on POSIX OS

2010-04-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: It does not work on Windows I always consider Windows as a special case because Windows uses unicode internally. Byte string are converted quickly to unicode using the current locale. My patch was for UNIX/BSD which uses byte

[issue8394] ctypes.dlopen() doesn't support surrogates

2010-04-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: load_library() uses LoadLibraryW() which use a WCHAR*. To support bytes, we can use LoadLibraryA() and TCHAR*. -- ___ Python tracker rep...@bugs.python.org

[issue8438] Codecs: surrogateescape error handler in Python 2.7

2010-04-19 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Ezio Melotti wrote: Ezio Melotti ezio.melo...@gmail.com added the comment: I consider this an important missing backport for 2.7, since without this handler, the UTF-8 codecs in 2.7 and 3.x are incompatible and there's no other way to

[issue8393] subprocess: support undecodable current working directory on POSIX OS

2010-04-19 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: PEP 277 explicitly states that unicode strings should be passed to wide-character functions, whereas byte strings use standard functions. This is done in posixmodule.c, for example. The current locale is a moving thing. --

[issue8394] ctypes.dlopen() doesn't support surrogates

2010-04-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I only fixed UNIX/BSD versions of subprocess/ctypes.dlopen() because it's not possible to open some files with an undecodable filename. On Windows, the file system and Python3 use Unicode, and so there is no such corner case. On

[issue8394] ctypes.dlopen() doesn't support surrogates

2010-04-19 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: yes, except that TCHAR* depends on compilation settings (it resolves to wchar_t when UNICODE is #defined); simply use char*. -- ___ Python tracker rep...@bugs.python.org

[issue8453] build_installer.py breaks bzip compilation

2010-04-19 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Odd, works for me on 10.4, 10.5, and 10.6 (but I have never tried running under buildbot, if that is what is happening here). For 10.4 with its most-recent Xcode installed: $ /usr/bin/ld -v Apple Computer, Inc. version cctools-622.9~2 $ /usr/bin/gcc

[issue8393] subprocess: support undecodable current working directory on POSIX OS

2010-04-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: PEP 277 explicitly states that unicode strings should be passed to wide-character functions, whereas byte strings use standard functions. This is done in posixmodule.c, for example. CreateProcessW takes a lot of arguments.

[issue8451] syslog.syslog('msg') logs message with ident python.

2010-04-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Some notes about the patch: - NEWS blurbs generally appear antichronologically, that is newest first :-) - you don't have to mention that The 3.2 changes mentioned above are included in 2.7 - the part of the PyArg_ParseTupleAndKeywords string

[issue8410] Fix emulated lock to be 'fair'

2010-04-19 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Also, _POSIX_SEMAPHORES must be defined to be greater than 200112L. If it isn't, then it isn't supported. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8410

[issue8428] buildbot: test_multiprocessing timeout (test_notify_all? test_pool_worker_lifetime?)

2010-04-19 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- title: buildbot: test_multiprocessing timeout - buildbot: test_multiprocessing timeout (test_notify_all? test_pool_worker_lifetime?) ___ Python tracker rep...@bugs.python.org

[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-04-19 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: test_itimer_virtual assumes that a process must get 0.3s of virtual time within 5s of real time. This is not true: I can easily make the test fail even on a fast machine by doing as root (do it n times for n cores): nice -n -19 sh -c

[issue8428] buildbot: test_multiprocessing timeout (test_notify_all? test_pool_worker_lifetime?)

2010-04-19 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +jnoller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8428 ___ ___

[issue8454] unittest Module Problem with different Kinds of Invocation

2010-04-19 Thread Perbandt
New submission from Perbandt adalbert.perba...@infineon.com: I just figured out a problem with the Python module 'unittest.py', version 1.63. The function '__init__' behaves a bit strange in certain circumstances. It is called either directly from the command line or it is called when unit

[issue8455] buildbot: test_urllib2_localnet failures (Connection refused) on Tiger buildbot

2010-04-19 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: http://www.python.org/dev/buildbot/builders/x86 Tiger 3.x/builds/25/steps/test/logs/stdio test_urllib2_localnet test test_urllib2_localnet failed -- multiple errors occurred; run in verbose mode for details Re-running test

[issue8455] buildbot: test_urllib2_localnet failures (Connection refused) on Tiger buildbot

2010-04-19 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +db3l ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8455 ___ ___ Python-bugs-list

[issue8454] unittest Module Problem with different Kinds of Invocation

2010-04-19 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti, michael.foord versions: +Python 2.6, Python 2.7 -Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8454 ___

[issue8456] sqlite3.connect documentation is incorrect

2010-04-19 Thread AndiDog
New submission from AndiDog andi...@web.de: The sqlite3.connect documentation (keyword args) is incorrect: sqlite3.connect(database[, timeout, isolation_level, detect_types, factory]) As opposed to the C implementation: if (!PyArg_ParseTupleAndKeywords(args, kwargs, O|diOiOi, kwlist,

[issue8457] buildbot: test_asynchat and test_smtplib failures on Tiger: [Errno 9] Bad file descriptor

2010-04-19 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: http://www.python.org/dev/buildbot/builders/x86 Tiger 2.6/builds/9/steps/test/logs/stdio test_asynchat test test_asynchat produced unexpected output: ** error:

[issue8410] Fix emulated lock to be 'fair'

2010-04-19 Thread Ray.Allen
Ray.Allen ysj@gmail.com added the comment: Hi, krisvale: Since the exact mechanics seem to be unclair to many, let me just step you through the series of events. 1) A has the lock, B is waiting for it. the bit is set. 2) A releases the lock: Clears the bit, signals the condition

[issue8454] unittest Module Problem with different Kinds of Invocation

2010-04-19 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: That change would be backwards incompatible with existing scripts calling main(...) programattically though. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8454

[issue8410] Fix emulated lock to be 'fair'

2010-04-19 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: In 2), B is indeed signaled and the OS makes it runnable. But it doesn´t run immediately. A is still running. There is no need for A to stop running until it runs out of timeslice. Meanwhile the OS has to put B on a separate

[issue8458] buildbot: test_cmd_line failure on Tiger: [Errno 9] Bad file descriptor

2010-04-19 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: The error only occured once, and it was not reproduced when test_cmd_line was rerunning in verbose mode. http://www.python.org/dev/buildbot/builders/x86 Tiger 3.x/builds/25/steps/test/logs/stdio test test_cmd_line failed --

[issue8458] buildbot: test_cmd_line failure on Tiger: [Errno 9] Bad file descriptor

2010-04-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: See also #8457. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8458 ___ ___

[issue8457] buildbot: test_asynchat and test_smtplib failures on Tiger: [Errno 9] Bad file descriptor

2010-04-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: See also #8458. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8457 ___ ___

[issue4256] optparse: provide a simple way to get a programmatically useful list of options

2010-04-19 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com added the comment: Patch for optparse with tests. If it's ok, I'll sit down to argparse. -- keywords: +patch Added file: http://bugs.python.org/file16985/4256_1.patch ___ Python tracker rep...@bugs.python.org

[issue8450] httplib: false BadStatusLine() raised

2010-04-19 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +orsenthil priority: - normal versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8450 ___

[issue8459] buildbot: test_select failure on Python 2.6, Windows

2010-04-19 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: http://www.python.org/dev/buildbot/builders/x86 XP-5 2.6/builds/147/steps/test/logs/stdio test_select test test_select failed -- Traceback (most recent call last): File

[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-04-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: test_itimer_virtual assumes that a process must get 0.3s of virtual time within 5s of real time. This is not true [...] I agree it's not a good test, especially when run on machines that are heavily loaded, or on an OS running in VM. I

[issue8454] unittest Module Problem with different Kinds of Invocation

2010-04-19 Thread Perbandt
Perbandt adalbert.perba...@infineon.com added the comment: Yes, the proposed fix would be an incompatible change. But my assumption is that in scenarios where main(...) is called programmatically the fix would correct an erroneous behavior. In these scenarios whatever is being passed as the

[issue8460] Set a timeout in test_urllib2net

2010-04-19 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: If an URL doesn't answer, the whole test hung. Many buildbots turned red because an URL (maybe ftp://ftp.kernel.org/pub/linux/kernel/README) didn't answer during few minutes (it works again). We should add a timeout, eg. 5

[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-04-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I can't really think of *any* way of reliably testing the amount of virtual time that's passed. Can't we try to increase the timeout step by step? Eg. 5 sec = 10 sec, then 15 sec, etc. until the buildbots turn green? --

[issue8461] PythonLauncher universal build fails due to missing -arch and -sysroot

2010-04-19 Thread Ned Deily
New submission from Ned Deily n...@acm.org: Fixes for Issue8366 corrected build failures with universal builds on OS X due to changes in the settings of CFLAGS and BASECFLAGS, which had caused -arch values to be added to both CFLAGS and BASECFLAGS. The Mac Makefile for the PythonLauncher app

[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-04-19 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: Wasn't the freebsd problem unrelated to this ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8424 ___

[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?

2010-04-19 Thread Stac
Stac stac_agen...@yahoo.fr added the comment: Hello, This patch has never been commited. I tested today with the 3.1 branch (and checked in the lib code). Is there a better way to attach images in an email ? Thanks in advance for your help, Regards, Stac -- nosy: +stac

[issue8457] buildbot: test_asynchat and test_smtplib failures on Tiger: [Errno 9] Bad file descriptor

2010-04-19 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Duplicate of Issue7037 (test_asynchat) and Issue7040 (test_smtplib). -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8457 ___

[issue8458] buildbot: test_cmd_line failure on Tiger: [Errno 9] Bad file descriptor

2010-04-19 Thread Ned Deily
Ned Deily n...@acm.org added the comment: I have also seen this test failure occasionally but only on OS X 10.4 systems, not 10.5 or 10.6. -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8458

[issue8455] buildbot: test_urllib2_localnet failures (Connection refused) on Tiger buildbot

2010-04-19 Thread Ned Deily
Ned Deily n...@acm.org added the comment: This appears to be a recently introduced failure; the same failure is seen on current trunk build on 10.5 and 10.6 as well. -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org

[issue8455] buildbot: test_urllib2_localnet failures (Connection refused) on Tiger buildbot

2010-04-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Maybe r80198 of #7154? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8455 ___

[issue8455] buildbot: test_urllib2_localnet failures (Connection refused) on Tiger buildbot

2010-04-19 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8455 ___ ___

[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-04-19 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Right, the skip should be left in place. -- Added file: http://bugs.python.org/file16988/issue8424-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8424

[issue8459] buildbot: test_select failure (test_returned_list_identity) on Python 2.6, Windows

2010-04-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: The fail looks to be related to #8329 (r79867:trunk, r79868:py3k, r79869:2.6, r79870:3.1). -- title: buildbot: test_select failure on Python 2.6, Windows - buildbot: test_select failure (test_returned_list_identity) on

[issue8191] Make arg0 required argument in os.execl* functions

2010-04-19 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: Google code search for os.execlp\([^*,]+\) lang:python returns 15 hits, two of which are the same as Matthias found. I am not sure what these results mean for the issue (and Matthias does not reach a conclusion either.)

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: With regards to SSL_peek() blocking, you'd need to explain yourself better on that one. The patch has been tested with the test cases from Python SVN enough to be happy they run ok. IIRC it worked with OpenSSL 1.0.0 but failed with 0.9.8k. I

[issue8459] buildbot: test_select failure (test_returned_list_identity) on Python 2.6, Windows

2010-04-19 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8459 ___ ___ Python-bugs-list

[issue8455] buildbot: test_urllib2_localnet failures (Connection refused) on Tiger buildbot

2010-04-19 Thread Ned Deily
Ned Deily n...@acm.org added the comment: That wouldn't explain trunk failures. The _scproxy code has been in 26 and trunk for a long time. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8455

[issue8154] os.execlp('true') crashes the interpreter on 2.x

2010-04-19 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: If this new feature stays in 3.x, shouldn't 2.7 have a -3 warning? Also, I would consider adding os.execlp(path) - os.execlp(path, os.path.basename(path)) transformation to 2to3. --

[issue8462] raise test_support.TestSkipped() is used outside main() / test_main()

2010-04-19 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: unittest in Python 2.6 has to SkipTest exception, but test_support has a TestSkipped which can be used to skip the whole file. TestSkipped should not be used in a test function. Following tests have to be fixed: test_decimal,

[issue8462] raise test_support.TestSkipped() is used outside main() / test_main()

2010-04-19 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: TestSkipped docstring should also explain that it should not be used in a test function, but only to skip the whole file. -- ___ Python tracker rep...@bugs.python.org

[issue8393] subprocess: support undecodable current working directory on POSIX OS

2010-04-19 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: mbcs is not a fixed encoding and may change between Windows sessions, see the Rationale in PEP277 http://www.python.org/dev/peps/pep-0277/ The mixed case is interesting. We could use CreateProcessW when at least one string is Unicode,

[issue8273] move generally useful test_support functions into the unittest package

2010-04-19 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Also note that the test_support module is for some reason documented here: http://docs.python.org/library/test.html#module-test.test_support This means that there are probably developers out there that are already using these functions

[issue8273] move generally useful test_support functions into the unittest package

2010-04-19 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: -- nosy: -tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8273 ___ ___ Python-bugs-list

[issue8460] Set a timeout in test_urllib2net

2010-04-19 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8460 ___ ___

[issue4256] optparse: provide a simple way to get a programmatically useful list of options

2010-04-19 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: Sorry, what does I'll sit down to mean? Does that mean you're offering to try to do the argparse patch too? Or that you'd rather someone else do it? (Either one's fine - I just couldn't tell which you meant.) --

[issue8463] shutil.make_archive() supports bz2, but it's not documented

2010-04-19 Thread Lino Mastrodomenico
New submission from Lino Mastrodomenico l.mastrodomen...@gmail.com: The new function shutil.make_archive() supports bzip2 compression using bztar as format parameter, but neither the documentation nor the docstring mention it (all the other compression formats are correctly listed).

[issue2706] datetime: define division timedelta/timedelta

2010-04-19 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: I am attaching a forward port of Victor's timedelta_true_divide_divmod.patch to py3k. -- nosy: +Alexander.Belopolsky Added file: http://bugs.python.org/file16990/issue2706.diff

[issue4256] optparse: provide a simple way to get a programmatically useful list of options

2010-04-19 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com added the comment: I guess I am using my English too little, that's why I am using polish expressions too often. What I meant was of course, that I will do argparse patch too. I haven't provided docs for --help-options yet, becuase it is not clear to me,

[issue2706] datetime: define division timedelta/timedelta

2010-04-19 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- nosy: -belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2706 ___ ___

[issue8273] move generally useful test_support functions into the unittest package

2010-04-19 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- nosy: -georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8273 ___ ___ Python-bugs-list

[issue8464] tarfile creates tarballs with execute permissions set

2010-04-19 Thread Lino Mastrodomenico
New submission from Lino Mastrodomenico l.mastrodomen...@gmail.com: tarfile.open(filename, w|) creates a tar file with execute permissions set, if filename doesn't exist (i.e. it uses mode 0777 minus the umask). It should instead use mode 0666 minus the umask, which is what happens when using

[issue8381] IDLE 2.6 freezes on OS X 10.6

2010-04-19 Thread Aaron
Aaron aaron.the@gmail.com added the comment: I just used the biult in mac softwere -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8381 ___

[issue8463] shutil.make_archive() supports bz2, but it's not documented

2010-04-19 Thread Shashwat Anand
Shashwat Anand anand.shash...@gmail.com added the comment: Seems like these formats are supported, so yes bztar can be used as a format parameter. _ARCHIVE_FORMATS = { 'gztar': (_make_tarball, [('compress', 'gzip')], gzip'ed tar-file), 'bztar': (_make_tarball, [('compress',

[issue8463] shutil.make_archive() supports bz2, but it's not documented

2010-04-19 Thread Shashwat Anand
Shashwat Anand anand.shash...@gmail.com added the comment: Attaching the fix -- keywords: +patch Added file: http://bugs.python.org/file16992/shutil.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8463

[issue8381] IDLE 2.6 freezes on OS X 10.6

2010-04-19 Thread Shashwat Anand
Shashwat Anand anand.shash...@gmail.com added the comment: Idle provided by built-in python in Mac OS X Snow leopard i.e. python 2.6.1 is running without any issues. It is /usr/bin/idle2.6. And if by very new mac you mean latest intel based macs released last summer, then yes I have the same

[issue8438] Codecs: surrogateescape error handler in Python 2.7

2010-04-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Patch committed to trunk in r80215. I'm going to watch the buildbots, I suspect OS X might dislike surrogates in the filename. -- ___ Python tracker rep...@bugs.python.org

[issue8464] tarfile creates tarballs with execute permissions set

2010-04-19 Thread Shashwat Anand
Shashwat Anand anand.shash...@gmail.com added the comment: Is self.fd = os.open(name, mode, 0666) Ok ? Should not it be self.fd = os.open(name, mode, 0644), because that is what the default permissions are. -- nosy: +l0nwlf ___ Python tracker

[issue8464] tarfile creates tarballs with execute permissions set

2010-04-19 Thread Shashwat Anand
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8464 ___ ___ Python-bugs-list

[issue8463] shutil.make_archive() supports bz2, but it's not documented

2010-04-19 Thread Shashwat Anand
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8463 ___ ___ Python-bugs-list

[issue8463] shutil.make_archive() supports bz2, but it's not documented

2010-04-19 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- assignee: georg.brandl - tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8463 ___ ___

[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?

2010-04-19 Thread Shashwat Anand
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4768 ___ ___

[issue8454] unittest Module Problem with different Kinds of Invocation

2010-04-19 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: I'm sure that there are many places using the API as it is, inserting a dummy entry into the argv they pass. Although the fix you propose would solve the problem for users who are currently using the API wrongly it would break code for

[issue8460] Set a timeout in test_urllib2net

2010-04-19 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Hello Victor, The patch looks for fine for a timeout enforcement. A couple of changes required. -if isinstance(err[0], timeout): +if isinstance(err[0], socket.timeout): And, in this portion: +

[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?

2010-04-19 Thread Shashwat Anand
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4768 ___ ___ Python-bugs-list

[issue8438] Codecs: surrogateescape error handler in Python 2.7

2010-04-19 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8438 ___

[issue2302] Uses of SocketServer.BaseServer.shutdown have a race

2010-04-19 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: By the way, getting rid of poll_interval for a file descriptor is easy under Unix, but wouldn't work under Windows (where select() only takes sockets, not arbitrary file descriptors). -- ___ Python

[issue8381] IDLE 2.6 freezes on OS X 10.6

2010-04-19 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Shashwat: what happens when you launch /usr/bin/idle2.6 and then open a new window in it (CMD N)? My experience is like Aaron's (and many other reports): the Apple-supplied idle2.6 in OS X 10.6 usually hangs after opening a second window, requiring a

[issue6692] asyncore kqueue support

2010-04-19 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: The patch in attachment implements support for epoll() and kqueue() by adding a new poller argument to asyncore.loop(). However, I had a chat with Jean Paul Calderone today which pointed out how useless this is. =) The problem is

[issue6692] asyncore kqueue support

2010-04-19 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6692 ___ ___ Python-bugs-list

[issue8381] IDLE 2.6 freezes on OS X 10.6

2010-04-19 Thread Shashwat Anand
Shashwat Anand anand.shash...@gmail.com added the comment: Ned : After I opened a new window, that is how it opened : http://imagebin.us/images/gbg8zdr25hviw26hnqfv.png And IDLE hanged a little later. Had to do a force quit. So yes, the problem is in Apple build Idle2.6 --

[issue6692] asyncore kqueue support

2010-04-19 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Forgot to add the patch. -- keywords: +patch Added file: http://bugs.python.org/file16994/asyncore.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6692

[issue2706] datetime: define division timedelta/timedelta

2010-04-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Why is divmod(timedelta, timedelta) supported but not timedelta % timedelta? I think if one is implemented, the other should be too. -- ___ Python tracker rep...@bugs.python.org

[issue8464] tarfile creates tarballs with execute permissions set

2010-04-19 Thread Lino Mastrodomenico
Lino Mastrodomenico l.mastrodomen...@gmail.com added the comment: I think 0666 is correct because os.open() does a bitwise AND between this value and the bitwise inversion of the umask, something like oct(0666 ~umask). Since the umask is usually 022 octal (18 decimal), the actual permission

[issue2706] datetime: define division timedelta/timedelta

2010-04-19 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: On Mon, Apr 19, 2010 at 4:09 PM, Mark Dickinson rep...@bugs.python.orgwrote: I noticed that as I was porting Victor's patch. I did not add timedelta % timedelta because I found out that timedelta % int is not supported in

[issue2706] datetime: define division timedelta/timedelta

2010-04-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: By the way, the patch looks good to me, as far as it goes, and I'm +1 on adding all this. I only have the tiniest of nits: - the patch deletes a line at the top of Lib/test/test_datetime.py, for no apparent reason - in delta_add, I

[issue2706] datetime: define division timedelta/timedelta

2010-04-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Tennessee, are you still tracking this issue? If not, can I steal it from you. :) I found out that timedelta % int is not supported in the released versions while timedelta // int is. Mmm. Interesting. :) I think it would be fine to

[issue2706] datetime: define division timedelta/timedelta

2010-04-19 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: Removed file: http://bugs.python.org/file16995/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2706 ___

[issue2706] datetime: define division timedelta/timedelta

2010-04-19 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Hmm. Having timedelta // int work is *really* peculiar, since it can only be made sense of with reference to some implicit particular chosen unit of time; in this case, that unit of time is apparently microseconds, as far as I can tell.

[issue2706] datetime: define division timedelta/timedelta

2010-04-19 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: I should be able to add timedelta % timedelta and fix the nits that Mark mentioned tonight. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2706

[issue5250] Document __instancecheck__ and __subclasscheck__

2010-04-19 Thread Chris Rebert
Chris Rebert pyb...@rebertia.com added the comment: One last triviality: Could the mention of __subclasscheck__() in http://docs.python.org/dev/library/abc.html#abc.ABCMeta.__subclasshook__ get linked to the newly-added docs? -- ___ Python tracker

[issue8465] Backreferences vs. escapes: a silent failure solved

2010-04-19 Thread Aaron Sherman
New submission from Aaron Sherman a...@ajs.com: I tested this under 2.6 and 3.1. Under both, the common mistake that I'm sure many others have made, and which cost me quite some time today was: re.sub(r'(foo)bar', '\1baz', 'foobar') It's obvious, I'm sure, to many reading this that the

  1   2   >