[issue5079] time.ctime docs refer to "time tuple" for default

2009-05-23 Thread Georg Brandl

Georg Brandl  added the comment:

None will be made.

--
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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



[issue5797] there is en exception om Create User page

2009-05-23 Thread Georg Brandl

Changes by Georg Brandl :


--
resolution:  -> invalid
status: pending -> closed

___
Python tracker 

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



[issue6093] Ambiguous locale.strxfrm

2009-05-23 Thread Tuomas Vesterinen

New submission from Tuomas Vesterinen :

This was fixed once in Python 2.5, but in Python 3.0 the bug celebrates
its comeback. The tail of the strxfrm result is ambiguous.

Python 3.0.1 (r301:69556, Apr 14 2009, 14:30:31)
[GCC 4.1.2 20070925 (Red Hat 4.1.2-27)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> locale.setlocale(locale.LC_COLLATE, 'en_US.utf8')
'en_US.utf8'
>>> key1=locale.strxfrm('maupassant guy')
 for i in range(10):
... print(locale.strxfrm('maupassant guy')==key1)
...
False
True
False
False
False
False
False
False
False
False

--
components: Library (Lib)
messages: 88226
nosy: tuves
severity: normal
status: open
title: Ambiguous locale.strxfrm
type: behavior
versions: Python 3.0

___
Python tracker 

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



[issue1064] Test issue

2009-05-23 Thread Martin v . L�wis

Martin v. Löwis  added the comment:

And yet more email

--

___
Python tracker 

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



[issue1064] Test issue

2009-05-23 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

Another one.

--

___
Python tracker 

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



[issue6054] tarfile normalizes arcname

2009-05-23 Thread mkv

mkv  added the comment:

Great, thanks for the speedy work :) 

Now if only issue4750 would get fixed for 2.7 as well ;)

--

___
Python tracker 

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



[issue960325] "--require " option for configure/make (fail if building not possible)

2009-05-23 Thread Björn Lindqvist

Björn Lindqvist  added the comment:

I'm not Hallvard but I'd also appreciate this feature. I think it is
quite important to have for automated build systems; Python seem to
build correctly but then down the line some other package fails because
the bz2 module is not available. 

IMHO it is wrong that you _can_ build python without libbz2 (for
example) because what you get is a broken standard library. It is not
mentioned anywhere in the documentation that bz2 is an optional module.
I think terminating the build at the configure step if libbz2 is not
found would be correct.

Otherwise maybe the standard --with configure options could be used for
this. E.g. ./configure --with-bz2 --with-ssl etc.

--
nosy: +bjourne

___
Python tracker 

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



[issue4470] smtplib SMTP_SSL not working.

2009-05-23 Thread R. David Murray

R. David Murray  added the comment:

With the closure of 4066 all the tests in the test patch pass, so I'm
lowering the piority of this ticket.

I haven't reviewed the other patches, but the tests in the test patch
appear to be doing tests in the setup method, which doesn't seem like a
good idea.

--
nosy: +r.david.murray
priority: high -> normal

___
Python tracker 

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



[issue4385] Py_Object_HEAD_INIT in Py3k

2009-05-23 Thread R. David Murray

R. David Murray  added the comment:

Unless I'm missing something it looks like this can be closed as fixed.

--
nosy: +r.david.murray
resolution:  -> fixed
stage: commit review -> committed/rejected
status: open -> pending

___
Python tracker 

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



[issue5259] smtplib is broken in Python3

2009-05-23 Thread R. David Murray

Changes by R. David Murray :


Removed file: http://bugs.python.org/file13774/test-smtplib.diff

___
Python tracker 

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



[issue5259] smtplib is broken in Python3

2009-05-23 Thread R. David Murray

R. David Murray  added the comment:

5304 and 3921 are fixed.  Is there still an issue here?  If so, I think
we need a test case we can add to the test suite.  It can be a patch
against the new test_smtpnet.py test.

--
nosy: +r.david.murray

___
Python tracker 

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



[issue6089] str.format raises SystemError

2009-05-23 Thread Eric Smith

Eric Smith  added the comment:

Fixed in:
trunk: r72848
release26-maint: r72849
py3k: r72850
release30-main: r72851

--
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue5259] smtplib is broken in Python3

2009-05-23 Thread R. David Murray

R. David Murray  added the comment:

Looks like I accidentally deleted the file I was asking for.  Not sure
how that happened, but I'm reattaching it.

--
Added file: http://bugs.python.org/file14043/test-smtplib.diff

___
Python tracker 

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



[issue6047] "install" target in python 3.x makefile should be "fullinstall"

2009-05-23 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

Removed fullinstall in r72857.

--
resolution:  -> accepted
status: open -> closed

___
Python tracker 

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



[issue1983] Return from fork() is pid_t, not int

2009-05-23 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Thanks, the patch was committed in r72852, r72853, r72854.
I then realized a couple of functions had been looked over (including
getpid() and getppid()), and committed a complement in r72855, r72856
and r72858.

--
resolution: accepted -> fixed
status: open -> closed

___
Python tracker 

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



[issue3877] test_fileio fails on OpenBSD 4.4

2009-05-23 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

I've committed a more generic fix to test_fileio. Normally it should be
ok, if there's any problem please reopen the bug.

--
resolution:  -> fixed
status: open -> closed
versions: +Python 2.7, Python 3.1

___
Python tracker 

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



[issue4385] Py_Object_HEAD_INIT in Py3k

2009-05-23 Thread Georg Brandl

Changes by Georg Brandl :


--
status: pending -> closed

___
Python tracker 

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



[issue6050] zipfile: Extracting a directory that already exists generates an OSError

2009-05-23 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

It would be nice to have a test with the patch.

--
nosy: +benjamin.peterson

___
Python tracker 

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



[issue5756] idle pydoc et al removed from 3.1 without versioned replacements

2009-05-23 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

r72866 installs 2to3 over old installations. That should do the trick.

--
status: open -> closed

___
Python tracker 

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



[issue5761] add file name to py3k IO objects repr()

2009-05-23 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Here is a patch.

--
keywords: +patch
Added file: http://bugs.python.org/file14044/issue5761.patch

___
Python tracker 

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



[issue6094] Python fails to build with Subversion 1.7

2009-05-23 Thread Arfrever Frehtes Taifersar Arahesis

New submission from Arfrever Frehtes Taifersar Arahesis 
:

svnversion program from Subversion 1.7 (currently trunk), when invoked
on unversioned directory, prints "Unversioned directory" instead
"exported". This change in output is intentional and won't be reverted.

It causes build failure:
x86_64-pc-linux-gnu-gcc -pthread -c -fno-strict-aliasing -DNDEBUG -
-DSVNVERSION=\"`LC_ALL=C svnversion .`\" -o Modules/getbuildinfo.o
./Modules/getbuildinfo.c

  
x86_64-pc-linux-gnu-gcc: directory": No such file or directory  
 
: warning: missing terminating " character
 
./Modules/getbuildinfo.c: In function '_Py_svnversion': 
 
./Modules/getbuildinfo.c:48: error: missing terminating " character 
 
./Modules/getbuildinfo.c:48: error: expected expression before ';'
token   
  
make: *** [Modules/getbuildinfo.o] Error 1

I'm attaching the patch which fixes this problem and also updates
expected output of svnversion.

--
components: Build
files: python-2.6.2-svnversion.patch
keywords: patch
messages: 88246
nosy: Arfrever
severity: normal
status: open
title: Python fails to build with Subversion 1.7
versions: Python 2.4, Python 2.5, Python 2.6, Python 2.7, Python 3.0, Python 3.1
Added file: http://bugs.python.org/file14045/python-2.6.2-svnversion.patch

___
Python tracker 

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



[issue5259] smtplib is broken in Python3

2009-05-23 Thread R. David Murray

Changes by R. David Murray :


--
assignee:  -> r.david.murray
stage: test needed -> commit review

___
Python tracker 

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



[issue5761] add file name to py3k IO objects repr()

2009-05-23 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

New patch following Benjamin's comments.

--
Added file: http://bugs.python.org/file14046/issue5761-2.patch

___
Python tracker 

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



[issue6094] Python fails to build with Subversion 1.7

2009-05-23 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis  added the comment:

I'm attaching improved patch.

--
Added file: http://bugs.python.org/file14047/python-2.6.2-svnversion.patch

___
Python tracker 

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



[issue6060] PYTHONHOME should be more flexible (and controllable by --libdir)

2009-05-23 Thread soundmurderer

soundmurderer  added the comment:

OK, I'm convinced.  Changing PYTHONHOME is bad.  But I am all in favor
R. David Murray's solution of extending to include something like
PYTHONHOMELIB.

Martin v. Löwis: What I want is simply to be able to use --libdir to
tell ./configure where to put standard Python libs, and I want my Python
installation to recognize this lib location without having to hack
PYTHONPATH or PYTHONHOME or anything else.

This would make the behavior of --libdir exactly what people generally
expect from using configure scripts supplied by many other projects.  As
of now, setting --libdir doesn't even do anything, silently!  But even
fixing --libdir per patch in http://bugs.python.org/issue858809 still
doesn't work because the lib path has a hardcoded component.

I just think that a sys admin, when he/she sees a configure script,
should be able to tell it what to do via flags, run it, and expect it to
Do The Right Thing, without worrying about the Python-specific
workarounds to make libs and bins go to the desired place.

--

___
Python tracker 

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



[issue5761] add file name to py3k IO objects repr()

2009-05-23 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Committed in r72870.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue6094] Python fails to build with Subversion 1.7

2009-05-23 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

Fixed in r72871.

--
nosy: +benjamin.peterson
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue6060] PYTHONHOME should be more flexible (and controllable by --libdir)

2009-05-23 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

> Martin v. Löwis: What I want is simply to be able to use --libdir to
> tell ./configure where to put standard Python libs, and I want my Python
> installation to recognize this lib location without having to hack
> PYTHONPATH or PYTHONHOME or anything else.

Ok. Then I shall close this report as "won't fix", because
a) we cannot change the semantics of the environment variables easily,
   and
b) changing environment variables doesn't solve your original problem.

--
title: PYTHONHOME should be more flexible (and controllable by --libdir) -> 
PYTHONHOME should be more flexible (and controllable by --libdir)

___
Python tracker 

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



[issue6060] PYTHONHOME should be more flexible (and controllable by --libdir)

2009-05-23 Thread Martin v . Löwis

Changes by Martin v. Löwis :


--
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

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



[issue5259] smtplib is broken in Python3

2009-05-23 Thread José Luis Cáceres

José Luis Cáceres  added the comment:

There is a similar problem that I found with encode_cram_md5 in 
smtplib.py, SMTP.login() method. I used the solution proposed by miwa, 
both for PLAIN and CRAM MD5 authentication. Additionally, for the last 
one, I had to introduce a second correction and byte encode the 
password string when passing it to hmac.HMAC.  

I do not know if I did things correctly, but just in case it can help  
here is the complete patch that I used and worked well with the two 
AUTH methods. I keep the original and modified lines for clarity.

def encode_cram_md5(challenge, user, password):
challenge = base64.decodestring(challenge)
#response = user + " " + hmac.HMAC(password,
challenge).hexdigest()
response = user + " " + hmac.HMAC(password.encode(), 
challenge).hexdigest()
#return encode_base64(response)
return encode_base64((response).encode('ascii'), eol='')

def encode_plain(user, password):
#return encode_base64("\0%s\0%s" % (user, password))
return encode_base64(("\0%s\0%s" % (user, password)).encode
('ascii'), eol='')

--
nosy: +j.l.caceres

___
Python tracker 

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



[issue1943] improved allocation of PyUnicode objects

2009-05-23 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Updated patch against py3k. On a 64-bit system, each unicode object
takes 14 bytes less than without the patch (using sys.getsizeof()).
Two to four more bytes could be gained by folding the `state` member in
the two lower bits of `defenc`, but I'm not sure it's worth the trouble.

--
assignee: lemburg -> 
stage: test needed -> patch review
Added file: http://bugs.python.org/file14048/unialloc5.patch

___
Python tracker 

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



[issue6042] Document and slightly simplify lnotab tracing

2009-05-23 Thread Jeffrey Yasskin

Jeffrey Yasskin  added the comment:

Committed to trunk in r72879. I'll wait to merge it to 3.x until 3.1 has
been released, since we're approaching the release candidate there.

--
stage: patch review -> committed/rejected

___
Python tracker 

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



[issue6042] Document and slightly simplify lnotab tracing

2009-05-23 Thread Jeffrey Yasskin

Changes by Jeffrey Yasskin :


--
assignee:  -> jyasskin

___
Python tracker 

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



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

2009-05-23 Thread Tarek Ziadé

New submission from Tarek Ziadé :

make os.listdir() path argument be os.curdir.

I am working on a patch, I'll submit here

--
components: Library (Lib)
messages: 88256
nosy: tarek
severity: normal
status: open
title: os.curdir as the default argument for os.listdir
type: feature request
versions: Python 2.7, Python 3.1

___
Python tracker 

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