[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: 63276
nosy: georg.brandl, tim.golden
severity: normal
status: open
title: Tiny patch to cmdline docs
versions: Python 2.6
Added file: http://bugs.python.org/file9609/doc-using-cmdline-r61249.patch

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 think it would be better to create a patch against signal
module. Also, its tests are pretty poor. 

Improvements are welcomed.

--
files: py-itimer-0.1.1.tar.gz
messages: 63277
nosy: gpolo
severity: normal
status: open
title: setitimer, getitimer wrapper
type: feature request
versions: Python 3.0
Added file: http://bugs.python.org/file9610/py-itimer-0.1.1.tar.gz

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 posix_tmpfile() to warn the user of the situation if the call
fails and we're on Windows:
Index: posixmodule.c
===
--- posixmodule.c   (revision 61233)
+++ posixmodule.c   (working copy)
@@ -7029,8 +7029,15 @@
 FILE *fp;

 fp = tmpfile();
-if (fp == NULL)
+if (fp == NULL) {
+#ifdef MS_WINDOWS
+PyErr_Warn(PyExc_RuntimeWarning,
+   "tmpfile creates a file in the root directory and "   \
+   "requires administrative privileges, consider using " \
+   "tempfile.mkstemp() instead");
+#endif
 return posix_error();
+}
 return PyFile_FromFile(fp, "", "w+b", fclose);
 }
 #endif

3. Alter posix_tmpfile() to use _tempnam() on Windows instead, such
admin privileges are no longer required.  (Possibly adding a similar
warning that tempfile.mkstemp should be used instead though, as above?)

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: +belopolsky

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 UNIX-like OSes or ',' on some 
> less-known systems.)"

Maybe, but I have made the doc reference a link to the os.pathsep
doc which basically says what you just did.

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 PROTECTED]>


___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 and speed
debugging.  During development, I typically run the tests I'm writing
with "-ov".  During a full test run, I omit both those flags.

--
components: Library (Lib)
files: unittest-diff25.py
messages: 63285
nosy: bcwhite
severity: normal
status: open
title: Additional Flag For Unit-Test Module: There Can Be Only One (Error)
type: feature request
versions: Python 2.5
Added file: http://bugs.python.org/file9612/unittest-diff25.py

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 better or worse, the target 
audience for PYTHONPATH documentation is likely not to be interested in 
being educated in the python programming language.  Having to lookup the 
meaning of os.pathsep just to understand the format of PYTHONPATH is a 
distraction. Another problem with the link is that cmdline page is 
likely to be printed out for a quick reference and the link will 
obviously not work in the printout.

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 can do good job 
> administering python installations.  For better or worse, the target 
> audience for PYTHONPATH documentation is likely not to be interested in 
> being educated in the python programming language.  Having to lookup the 
> meaning of os.pathsep just to understand the format of PYTHONPATH is a 
> distraction. Another problem with the link is that cmdline page is 
> likely to be printed out for a quick reference and the link will 
> obviously not work in the printout.

I don't feel strongly about it. Feel free to propose an alternative
wording for the patch :)

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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


___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2220] bug in rlcompleter

2008-03-05 Thread A.M. Kuchling

Changes by A.M. Kuchling:


--
keywords: +easy

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 OS-dependent character (';' on 
Windows, ':' on Linux and other UNIX-like OSes or ',' on some 
less-known systems.)
"""

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 :envvar:`PATH`: one or more 
> directory pathnames separated by an OS-dependent character (';' on 
> Windows, ':' on Linux and other UNIX-like OSes or ',' on some 
> less-known systems.)
> """

Ah. Lazily, I meant: feel free to upload a patch containing the
wording you think good.

TJG

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 in 1988.

So my suggestion is to apply the current patches.

_
Tracker <[EMAIL PROTECTED]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: +loewis

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 the same diff. Also, I wasn't sure if I should append the 
"configure" diff, but I did.

Documentation in "Doc/" and tests aren't done yet, if someone want to
pick this task, please say it.

--
keywords: +patch
Added file: http://bugs.python.org/file9613/setitimer_getitimer_wrapper.diff

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
http://bugs.python.org/file9615/setitimer_getitimer_wrapper_rename.diff

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 hasattr(os, "tmpfile"):
 return
+# As with test_tmpnam() below, the Windows implementation of 
tmpfile()
+# attempts to create a file in the root directory of the 
current drive.
+# On Vista and Server 2008, this test will always fail for 
normal users
+# as writing to the root directory requires elevated 
privileges.  With
+# XP and below, the semantics of tmpfile() are the same, but 
the user
+# running the test is more likely to have administrative 
privileges on
+# their account already.  If that's the case, then os.tmpfile
() should
+# work.  In order to make this test as useful as possible, 
rather than
+# trying to detect Windows versions or whether or not the user 
has the
+# right permissions, just try and create a file in the root 
directory
+# and see if it raises a 'Permission denied' OSError.  If it 
does, then
+# test that a subsequent call to os.tmpfile() raises the same 
error. If
+# it doesn't, assume we're on XP or below and the user running 
the test
+# has administrative privileges, and proceed with the test as 
normal.
+if sys.platform == 'win32':
+name = '\\python_test_os_test_tmpfile.txt'
+if os.path.exists(name):
+os.remove(name)
+try:
+fp = open(name, 'w')
+except IOError, first:
+# open() failed, assert tmpfile() fails in the same 
way.
+# Although open() raises an IOError and os.tmpfile() 
raises an
+# OSError(), 'args' will be (12, 'Permission denied') 
in both
+# cases.
+try:
+fp = os.tmpfile()
+except OSError, second:
+self.assertEqual(first.args, second.args)
+else:
+self.fail("expected os.tmpfile() to raise OSError")
+return
+else:
+# open() worked, therefore, tmpfile() should work.  
Close our
+# dummy file and proceed with the test as normal.
+fp.close()
+os.remove(name)
+
 fp = os.tmpfile()
 fp.write("foobar")
 fp.seek(0,0)

--
keywords: +patch
Added file: http://bugs.python.org/file9616/test_os.py.patch

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2008-03-05 Thread Trent Nelson

Trent Nelson added the comment:

Er, errno being referred to in a comment in that last patch should be
13, not 12.

Added file: http://bugs.python.org/file9617/test_os.py.2.patch

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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,', 0, '.pyo deleted')

python  -E -tt ../lib/test/regrtest.py test_os
test_os
1 test OK.

--
nosy: +JosephArmbruster

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 run this code:

import os
while True:
a = os.urandom(16).decode("utf7", "ignore")

In WinDbg, you will see that Python died in isalnum with a bad pointer
dereference:

(f64.13b0): Access violation - code c005 (!!! second chance !!!)
eax=7c39a550 ebx=018e6837 ecx=ffe3 edx=0003 esi=018edd66
edi=ffe3
eip=7c373977 esp=0021fc40 ebp=ffe3 iopl=0 nv up ei pl zr na
pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=
efl=00010246
*** ERROR: Symbol file could not be found.  Defaulted to export symbols
for C:\Windows\system32\MSVCR71.dll -
MSVCR71!isalnum+0x35:
7c373977 0fb70448movzx   eax,word ptr [eax+ecx*2]
ds:0023:7c3ba516=
0:000> kb
ChildEBP RetAddr  Args to Child  
WARNING: Stack unwind information not available. Following frames may be
wrong.
0021fc3c 1e0dd81e ffe3 00ff1030 012e MSVCR71!isalnum+0x35
    
python25!PyUnicode_DecodeUTF7+0x10e

It seems that a sanity check present in other Windows versions is
missing in Vista. The simplest possible test program:

#include "stdafx.h"
#include 

int _tmain(int argc, _TCHAR* argv[])
{
isalnum(0xff8b);
return 0;
}

causes Visual Studio 2005 to raise a debug assertion failure warning. I
guess that the assert is missing in the release build, and Python can be
tricked into providing the unsafe input to isalnum.

--
components: Interpreter Core
messages: 63303
nosy: cpalmer
severity: normal
status: open
title: Decoding UTF-7 with "ignore warnings" crashes Python on Windows Vista
type: crash
versions: Python 2.5

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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?
* What does the "which" argument mean, is it an arbitrary integer
identifying the timer?

--
nosy: +georg.brandl

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 (revision 61262)
+++ Objects/unicodeobject.c (working copy)
@@ -1506,7 +1506,7 @@
 e = s + size;
 
 while (s < e) {
-Py_UNICODE ch;
+char ch;
 restart:
 ch = *s;

Probably this is due to integer conversion, but I didn't look at logic
so much.

--
nosy: +ocean-city

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com