[issue2239] Tiny patch to cmdline docs

2008-03-05 Thread Tim Golden
New submission from Tim Golden: The docs for the PYTHONPATH var indicate that its items are separated by colons. In fact they're separated by whatever's customary for the O/S. Patch attached. -- components: Documentation files: doc-using-cmdline-r61249.patch keywords: patch messages:

[issue2240] setitimer, getitimer wrapper

2008-03-05 Thread Guilherme Polo
New submission from Guilherme Polo: Right now Python misses a wrapper for setitimer and getitimer and I believe it would be interesting to include them. I'm (almost) sure some other people may find it useful too. I'm attaching a standalone module, but if it gets to be included in Python, I

[issue2232] Current os.tmpfile() implementation requires admin privs on Vista/2k8.

2008-03-05 Thread Trent Nelson
Trent Nelson added the comment: With Chris and Ben's comments taken into account, what's the best way to handle this? 1. Change the test: if the user is not admin, assert os.tmpfile() returns a permission denied OSError, otherwise, assert return value is a current file. 2. Alter

[issue1292] libffi needs an update to support mips64, arm and armeabi on linux

2008-03-05 Thread Thomas Heller
Thomas Heller added the comment: libffi3-branch has been merged to trunk; the Modules/_ctypes/libffi files are from the libffi 3.0.4 release now. -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1292

[issue2240] setitimer, getitimer wrapper

2008-03-05 Thread Facundo Batista
Changes by Facundo Batista: Removed file: http://bugs.python.org/file9610/py-itimer-0.1.1.tar.gz __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2240 __ ___ Python-bugs-list

[issue2240] setitimer, getitimer wrapper

2008-03-05 Thread Guilherme Polo
Guilherme Polo added the comment: I forgot to remove an unwanted comment from it =) Attaching new version. Added file: http://bugs.python.org/file9611/py-itimer-0.1.2.tar.gz __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2240

[issue2239] Tiny patch to cmdline docs

2008-03-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: PYTHONPATH variable is likely to be defined by sysadmins who may not know what os.pathsep is. Maybe it is better to say OS-dependent separator (';' on Windows, ':' on Linux and other UNIX-like OSes or ',' on some less-known systems.) -- nosy:

[issue2239] Tiny patch to cmdline docs

2008-03-05 Thread Tim Golden
Tim Golden added the comment: Alexander Belopolsky wrote: Alexander Belopolsky added the comment: PYTHONPATH variable is likely to be defined by sysadmins who may not know what os.pathsep is. Maybe it is better to say OS-dependent separator (';' on Windows, ':' on Linux and other

[issue433030] SRE: (?...) is not supported

2008-03-05 Thread A.M. Kuchling
A.M. Kuchling added the comment: Also referred to as an atomic group: see http://www.regular-expressions.info/atomic.html for a discussion. Fredrik, when you say the engine has code for this, what do you mean? -- nosy: +akuchling Tracker [EMAIL

[issue2241] Additional Flag For Unit-Test Module: There Can Be Only One (Error)

2008-03-05 Thread Brian White
New submission from Brian White: The attached diff adds a -o (--one) option to the unittest module that causes the run to abort on the first error encountered. I name my tests so that the lowest-level tests get run first so stopping at the first error tends to prevent a lot of dependent errors

[issue2239] Tiny patch to cmdline docs

2008-03-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: .. but I have made the doc reference a link to the os.pathsep I knew you would say that :-). I was making my comment out of real life experience: sysadmins rarely know python language, but can do good job administering python installations. For

[issue2239] Tiny patch to cmdline docs

2008-03-05 Thread Tim Golden
Tim Golden added the comment: Alexander Belopolsky wrote: Alexander Belopolsky added the comment: .. but I have made the doc reference a link to the os.pathsep I knew you would say that :-). I was making my comment out of real life experience: sysadmins rarely know python language, but

[issue433030] SRE: (?...) is not supported

2008-03-05 Thread A.M. Kuchling
A.M. Kuchling added the comment: There's also an alternate syntax for this, called possessive quantifiers: a*+, a++, a{m,n}+. Tracker [EMAIL PROTECTED] http://bugs.python.org/issue433030

[issue2220] bug in rlcompleter

2008-03-05 Thread A.M. Kuchling
Changes by A.M. Kuchling: -- keywords: +easy __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2220 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue2239] Tiny patch to cmdline docs

2008-03-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Feel free to propose an alternative wording for the patch I thought I already did in my first post. The complete sentence should read: The format is the same as the shell's :envvar:`PATH`: one or more directory pathnames separated by an

[issue2239] Tiny patch to cmdline docs

2008-03-05 Thread Tim Golden
Tim Golden added the comment: Alexander Belopolsky wrote: Alexander Belopolsky added the comment: Feel free to propose an alternative wording for the patch I thought I already did in my first post. The complete sentence should read: The format is the same as the shell's

[issue1040026] os.times() is bogus

2008-03-05 Thread Malte Helmert
Malte Helmert added the comment: I think it's better only to only add another fallback if the unit tests show that such platforms exist. Avoiding cruft is important, too. After all, sysconf is a standard POSIX API, and from my (admittedly limited) research was already available in that form back

[issue2239] Tiny patch to cmdline docs

2008-03-05 Thread Georg Brandl
Georg Brandl added the comment: I took the best of both worlds and committed in r61255. -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2239 __

[issue2240] setitimer, getitimer wrapper

2008-03-05 Thread Martin v. Löwis
Martin v. Löwis added the comment: I can see nothing wrong with including setitimer support for systems where it is available, and I agree that the signal module would be the right place. So whoever wants to complete it, feel free to produce a complete patch against the trunk. -- nosy:

[issue2232] Current os.tmpfile() implementation requires admin privs on Vista/2k8.

2008-03-05 Thread Benjamin Peterson
Benjamin Peterson added the comment: With Chris and Ben's comments taken into account, what's the best way to handle this? I think, given that is being removed, we can safely go with option 1. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2232

[issue2241] Additional Flag For Unit-Test Module: There Can Be Only One (Error)

2008-03-05 Thread Benjamin Peterson
Changes by Benjamin Peterson: -- nosy: +purcell __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2241 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue2240] setitimer, getitimer wrapper

2008-03-05 Thread Guilherme Polo
Guilherme Polo added the comment: Martin, thanks for supporting the idea. I'm attaching a patch. It is against rev 61255, py3k branch. It patches configure, configure.in, Modules/signalmodule.c and pyconfig.h.in I wasn't sure if I should attach a diff for each file, so they are all packed in

[issue1858] Make .pypirc handle multiple servers

2008-03-05 Thread Tarek Ziadé
Tarek Ziadé added the comment: I have changed the code: the pypirc module is now called config. Added file: http://bugs.python.org/file9614/distutils.2008-03-05.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1858

[issue2240] setitimer, getitimer wrapper

2008-03-05 Thread Guilherme Polo
Guilherme Polo added the comment: I noticed that I forgot to change setitimer and getitimer functions from itimer_setitimer to signal_setitimer (same for getitimer). I'm attaching a patch that should be applied after the previous one to do this renaming. Added file:

[issue1524] os.system() fails for commands with multiple quoted file names

2008-03-05 Thread Jean-François Bastien
Jean-François Bastien added the comment: I confirm the problem. To resolve it try: os.system('call TheCommand MyOutput') -- nosy: +jfbastien __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1524 __

[issue2232] Current os.tmpfile() implementation requires admin privs on Vista/2k8.

2008-03-05 Thread Trent Nelson
Trent Nelson added the comment: I agree. Following patch fixes the issue for me: Index: test_os.py === --- test_os.py (revision 61260) +++ test_os.py (working copy) @@ -65,6 +65,44 @@ def test_tmpfile(self): if not

[issue2232] Current os.tmpfile() implementation requires admin privs on Vista/2k8.

2008-03-05 Thread Joseph Armbruster
Joseph Armbruster added the comment: Tested patch against: http://svn.python.org/projects/python/trunk @ 61260 OS Name: Microsoft Windows XP Professional OS Version:5.1.2600 Service Pack 2 Build 260 rt test_os Deleting .pyc/.pyo files ... (57, '.pyc deleted,',

[issue2225] py_compile.main() does not return error code

2008-03-05 Thread ozzeng
ozzeng added the comment: This patch was generated against the trunk but py_compile.py is unchanged from the version in the release 2.5-maint branch. -- keywords: +patch nosy: +ozzeng versions: +Python 2.6 Added file: http://bugs.python.org/file9618/py_compile.patch

[issue2242] Decoding UTF-7 with ignore warnings crashes Python on Windows Vista

2008-03-05 Thread Chris Palmer
New submission from Chris Palmer: When decoding some data as UTF-7 with the optional ignore argument, Python (I am using 2.5.2) crashes. This happens only on Windows Vista (I also tried Py 2.5.1 on Windows XP, Ubuntu 7, and FreeBSD 6). To reproduce, set WinDbg as your post-mortem debugger and

[issue1725737] Distutils default exclude doesn't match top level .svn

2008-03-05 Thread Georg Brandl
Georg Brandl added the comment: Committed as r61263. I'll let Martin decide about a backport. -- assignee: - loewis nosy: +loewis resolution: - accepted status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1725737

[issue2232] Current os.tmpfile() implementation requires admin privs on Vista/2k8.

2008-03-05 Thread Martin v. Löwis
Martin v. Löwis added the comment: Thanks for the patch. Committed as r61264 and r61266. -- nosy: +loewis resolution: - accepted status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2232 __

[issue2240] setitimer, getitimer wrapper

2008-03-05 Thread Georg Brandl
Georg Brandl added the comment: Patch review: * ItimerError should be signal.ItimerError, not signal.error. * It should probably inherit from EnvironmentError or IOError. * itimer_retval will leak the new tuple if one of the PyFloat_FromDouble fails. * Do you have test and doc patches, too? *

[issue2242] Decoding UTF-7 with ignore warnings crashes Python on Windows Vista

2008-03-05 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I reproduced this bug with VC6 + Win2000SP4 + following code. '+\xc1'.decode(utf7, ignore) and this simple patch prevented crash. Index: Objects/unicodeobject.c === --- Objects/unicodeobject.c

[issue2242] Decoding UTF-7 with ignore warnings crashes Python on Windows Vista

2008-03-05 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: One more thing. ignore is not needed. '+\xc1'.decode(utf7) crashed my interpreter. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2242 __

[issue2242] Decoding UTF-7 with ignore warnings crashes Python on Windows Vista

2008-03-05 Thread Georg Brandl
Changes by Georg Brandl: -- priority: - urgent severity: normal - urgent versions: +Python 2.6, Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2242 __ ___

[issue1725737] Distutils default exclude doesn't match top level .svn

2008-03-05 Thread Martin v. Löwis
Martin v. Löwis added the comment: Backported as r61268. Georg, can you please add a NEWS entry for the trunk as well? -- assignee: loewis - georg.brandl _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1725737

[issue2225] py_compile.main() does not return error code

2008-03-05 Thread Georg Brandl
Georg Brandl added the comment: Committed patch and new docs in r61273. Thanks! -- nosy: +georg.brandl resolution: - accepted status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2225 __

[issue1725737] Distutils default exclude doesn't match top level .svn

2008-03-05 Thread Georg Brandl
Georg Brandl added the comment: Done! _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1725737 _ ___ Python-bugs-list mailing list Unsubscribe:

[issue2220] bug in rlcompleter

2008-03-05 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r61275, r61276 (2.5). -- nosy: +georg.brandl resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2220 __