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

2010-04-19 Thread Sean Reifschneider
Changes by Sean Reifschneider : Added file: http://bugs.python.org/file16983/syslog-kwargs2.patch ___ Python tracker ___ ___ Python-bugs-list m

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

2010-04-19 Thread Virgil Dupras
Virgil Dupras 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 "oname" is released l

[issue8449] buildbot: test_dbm and test_dbm_ndbm

2010-04-19 Thread roundup-admin
failures To: python-bugs-list@python.org From: STINNER Victor 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 Message-Id: <1271632666.33.0.388840040556.issue8...@psf.upfronthosting.co.za

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

2010-04-19 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 "", line 1, in File "D:\afa\python\py3k-1\lib\subprocess.py", line 681, in __init__ restore_signals, start_new_ses

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

2010-04-19 Thread Ezio Melotti
Ezio Melotti 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 added the comment: STINNER Victor wrote: > > STINNER Victor 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. > > surrogateescape should not be used dire

[issue8438] Codecs: "surrogateescape" error handler in Python 2.7

2010-04-19 Thread Ezio Melotti
Ezio Melotti 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 > depend on the Python

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

2010-04-19 Thread STINNER Victor
STINNER Victor 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 ___

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

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

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

2010-04-19 Thread STINNER Victor
STINNER Victor 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 string internally. sp_CreateP

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

2010-04-19 Thread STINNER Victor
STINNER Victor added the comment: load_library() uses LoadLibraryW() which use a WCHAR*. To support bytes, we can use LoadLibraryA() and TCHAR*. -- ___ Python tracker ___ __

[issue8438] Codecs: "surrogateescape" error handler in Python 2.7

2010-04-19 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Ezio Melotti wrote: > > Ezio Melotti 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 th

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

2010-04-19 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 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 Windows, should we encourage p

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

2010-04-19 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 __

[issue8453] build_installer.py breaks bzip compilation

2010-04-19 Thread Ned Deily
Ned Deily 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 -v Using bui

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

2010-04-19 Thread STINNER Victor
STINNER Victor 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. Should we CreateProcessA or

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

2010-04-19 Thread Antoine Pitrou
Antoine Pitrou 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 after the semi-

[issue8410] Fix emulated lock to be 'fair'

2010-04-19 Thread Kristján Valur Jónsson
Kristján Valur Jónsson 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 ___ __

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

2010-04-19 Thread STINNER Victor
Changes by STINNER Victor : -- title: buildbot: test_multiprocessing timeout -> buildbot: test_multiprocessing timeout (test_notify_all? test_pool_worker_lifetime?) ___ Python tracker __

[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-04-19 Thread Stefan Krah
Stefan Krah 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 'echo "1234^123456789" | bc'

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

2010-04-19 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +jnoller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue8454] unittest Module Problem with different Kinds of Invocation

2010-04-19 Thread Perbandt
New submission from Perbandt : 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 tests are to be executeded from a s

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

2010-04-19 Thread STINNER Victor
New submission from STINNER Victor : 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 test_urllib2_localnet in verbose m

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

2010-04-19 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +db3l ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue8454] unittest Module Problem with different Kinds of Invocation

2010-04-19 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti, michael.foord versions: +Python 2.6, Python 2.7 -Python 2.5 ___ Python tracker ___ __

[issue8456] sqlite3.connect documentation is incorrect

2010-04-19 Thread AndiDog
New submission from AndiDog : 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 : 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: uncaptured python exception, c

[issue8410] Fix emulated lock to be 'fair'

2010-04-19 Thread Ray.Allen
Ray.Allen 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 variable. > 3)

[issue8454] unittest Module Problem with different Kinds of Invocation

2010-04-19 Thread Michael Foord
Michael Foord added the comment: That change would be backwards incompatible with existing scripts calling main(...) programattically though. -- ___ Python tracker ___ _

[issue8410] Fix emulated lock to be 'fair'

2010-04-19 Thread Kristján Valur Jónsson
Kristján Valur Jónsson 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 core (which makes thi

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

2010-04-19 Thread STINNER Victor
New submission from STINNER Victor : 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 -- Traceback (most recent call last

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

2010-04-19 Thread STINNER Victor
STINNER Victor added the comment: See also #8457. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

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

2010-04-19 Thread STINNER Victor
STINNER Victor added the comment: See also #8458. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

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

2010-04-19 Thread Filip Gruszczyński
Filip Gruszczyński 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 _

[issue8450] httplib: false BadStatusLine() raised

2010-04-19 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +orsenthil priority: -> normal versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ _

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

2010-04-19 Thread STINNER Victor
New submission from STINNER Victor : 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 "C:\buildslave\2.6.moore-windows\build\lib\test\test_select.py", line 24, in test_retu

[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-04-19 Thread Mark Dickinson
Mark Dickinson 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 can't really think

[issue8454] unittest Module Problem with different Kinds of Invocation

2010-04-19 Thread Perbandt
Perbandt 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 first entry in the argv array ge

[issue8460] Set a timeout in test_urllib2net

2010-04-19 Thread STINNER Victor
New submission from STINNER Victor : 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 minutes. I don't know what to do o

[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-04-19 Thread STINNER Victor
STINNER Victor 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? --

[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-04-19 Thread Mark Dickinson
Mark Dickinson added the comment: > 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? I think you'd need an increase of an order of magnitude or two (possibly more) in some cases to make this work: notice that the fa

[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-04-19 Thread Stefan Krah
Stefan Krah added the comment: Mark, I also think there is no reliable witness function that checks the amount of virtual time used. I guess it's best to increase the timeout and just print a diagnostic if the test "fails". -- keywords: +patch Added file: http://bugs.python.org/file169

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

2010-04-19 Thread Ned Deily
New submission from Ned Deily : 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 needs to be

[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-04-19 Thread Guilherme Polo
Guilherme Polo added the comment: Wasn't the freebsd problem unrelated to this ? -- ___ Python tracker ___ ___ Python-bugs-list mailin

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

2010-04-19 Thread Stac
Stac 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 added the comment: Duplicate of Issue7037 (test_asynchat) and Issue7040 (test_smtplib). -- nosy: +ned.deily ___ Python tracker ___ _

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

2010-04-19 Thread Ned Deily
Ned Deily 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 ___

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

2010-04-19 Thread Ned Deily
Ned Deily 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 _

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

2010-04-19 Thread STINNER Victor
STINNER Victor added the comment: Maybe r80198 of #7154? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

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

2010-04-19 Thread STINNER Victor
Changes by STINNER Victor : -- versions: +Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

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

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

2010-04-19 Thread STINNER Victor
STINNER Victor 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 Python 2.6, Windows __

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

2010-04-19 Thread Alexander Belopolsky
Alexander Belopolsky 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.) Note that the status quo in 3.

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-04-19 Thread Antoine Pitrou
Antoine Pitrou 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 could test 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 : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

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

2010-04-19 Thread Ned Deily
Ned Deily added the comment: That wouldn't explain trunk failures. The _scproxy code has been in 26 and trunk for a long time. -- ___ Python tracker ___ ___

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

2010-04-19 Thread Alexander Belopolsky
Alexander Belopolsky 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. -- ___ Python tracker

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

2010-04-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I noticed that the change is still present in 2.7a. For what it's worth, I agree with David: """ Since it does trigger a crash on the windows equivalent API, the check should be conditional on platform. And it should generate a py3k warning on other

[issue8460] Set a timeout in test_urllib2net

2010-04-19 Thread STINNER Victor
STINNER Victor added the comment: Attached patch sets the timeout to 60 seconds. It writes "" % url to stderr on timeout. I don't know better place to write the error. (The test doesn't fail, it just continues to the next URL) -- keywords: +patch Added file: http://bugs.python.org/fil

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

2010-04-19 Thread STINNER Victor
New submission from STINNER Victor : 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, test_ioctl, test_largefile, tes

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

2010-04-19 Thread STINNER Victor
STINNER Victor 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 ___

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

2010-04-19 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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, and CreateProces

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

2010-04-19 Thread Ezio Melotti
Ezio Melotti 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 even if some of them are n

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

2010-04-19 Thread Tim Golden
Changes by Tim Golden : -- nosy: -tim.golden ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue8460] Set a timeout in test_urllib2net

2010-04-19 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

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

2010-04-19 Thread Steven Bethard
Steven Bethard 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 : 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). -- assignee: georg.brandl

[issue2706] datetime: define division timedelta/timedelta

2010-04-19 Thread Alexander Belopolsky
Alexander Belopolsky 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 ___ Python tracker

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

2010-04-19 Thread Filip Gruszczyński
Filip Gruszczyński 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, it is an accepted

[issue2706] datetime: define division timedelta/timedelta

2010-04-19 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: -belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

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

2010-04-19 Thread Georg Brandl
Changes by Georg Brandl : -- nosy: -georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue8464] tarfile creates tarballs with execute permissions set

2010-04-19 Thread Lino Mastrodomenico
New submission from Lino Mastrodomenico : 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 mode "w:..." instead of

[issue8381] IDLE 2.6 freezes on OS X 10.6

2010-04-19 Thread Aaron
Aaron added the comment: I just used the biult in mac softwere -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

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

2010-04-19 Thread Shashwat Anand
Shashwat Anand 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', 'bzip2')], "bzip2'ed tar-file"

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

2010-04-19 Thread Shashwat Anand
Shashwat Anand added the comment: Attaching the fix -- keywords: +patch Added file: http://bugs.python.org/file16992/shutil.patch ___ Python tracker ___ _

[issue8381] IDLE 2.6 freezes on OS X 10.6

2010-04-19 Thread Shashwat Anand
Shashwat Anand 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 machine. -- nos

[issue8438] Codecs: "surrogateescape" error handler in Python 2.7

2010-04-19 Thread Antoine Pitrou
Antoine Pitrou 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 __

[issue8464] tarfile creates tarballs with execute permissions set

2010-04-19 Thread Shashwat Anand
Shashwat Anand 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 : -- nosy: +tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

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

2010-04-19 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

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

2010-04-19 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- assignee: georg.brandl -> tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

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

2010-04-19 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue8454] unittest Module Problem with different Kinds of Invocation

2010-04-19 Thread Michael Foord
Michael Foord 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 people who are using it

[issue8460] Set a timeout in test_urllib2net

2010-04-19 Thread Senthil Kumaran
Senthil Kumaran 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: +try: +

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

2010-04-19 Thread Shashwat Anand
Changes by Shashwat Anand : -- nosy: +l0nwlf ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue8438] Codecs: "surrogateescape" error handler in Python 2.7

2010-04-19 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

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

2010-04-19 Thread Antoine Pitrou
Antoine Pitrou 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 tracker

[issue8381] IDLE 2.6 freezes on OS X 10.6

2010-04-19 Thread Ned Deily
Ned Deily 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 Force Quit.

[issue6692] asyncore kqueue support

2010-04-19 Thread Giampaolo Rodola'
Giampaolo Rodola' 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 basically how asyncore.l

[issue6692] asyncore kqueue support

2010-04-19 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +exarkun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue8381] IDLE 2.6 freezes on OS X 10.6

2010-04-19 Thread Shashwat Anand
Shashwat Anand 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' added the comment: Forgot to add the patch. -- keywords: +patch Added file: http://bugs.python.org/file16994/asyncore.patch ___ Python tracker ___ _

[issue2706] datetime: define division timedelta/timedelta

2010-04-19 Thread Mark Dickinson
Mark Dickinson 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 ___

[issue8453] build_installer.py breaks bzip compilation

2010-04-19 Thread Martin v . Löwis
Martin v. Löwis added the comment: David Bolen reported that this occurs with r80179, which now clears the PATH environment variable, removing ld from the path. -- ___ Python tracker __

[issue8464] tarfile creates tarballs with execute permissions set

2010-04-19 Thread Lino Mastrodomenico
Lino Mastrodomenico 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 on disk should be 0644 as

[issue2706] datetime: define division timedelta/timedelta

2010-04-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Apr 19, 2010 at 4:09 PM, Mark Dickinson wrote: 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 the released versions while timedelta // int is. I

[issue2706] datetime: define division timedelta/timedelta

2010-04-19 Thread Mark Dickinson
Mark Dickinson 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 think the added 'if' bl

[issue2706] datetime: define division timedelta/timedelta

2010-04-19 Thread Mark Dickinson
Mark Dickinson 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 add timedelta % t

[issue2706] datetime: define division timedelta/timedelta

2010-04-19 Thread Mark Dickinson
Changes by Mark Dickinson : Removed file: http://bugs.python.org/file16995/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

  1   2   >