[issue13663] pootle.python.org is outdated.

2011-12-26 Thread INADA Naoki

New submission from INADA Naoki songofaca...@gmail.com:

I am one of Japanese translate of Python documents.
We have done translating Python 2.7 document and will start
translating Python 3.2 or 3.3.

I want to use sphinx-i18n and pootle to translate.
But http://pootle.python.org/ is very outdated.
Anyone can update the site?
If nobody maintain the site, could I create Python Document project at 
http://pootle.locamotion.org/ ?

--
assignee: docs@python
components: Documentation
messages: 150261
nosy: docs@python, naoki
priority: normal
severity: normal
status: open
title: pootle.python.org is outdated.
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4

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



[issue13508] ctypes' find_library breaks with ARM ABIs

2011-12-26 Thread Stefano Rivera

Changes by Stefano Rivera pyt...@rivera.za.net:


--
nosy: +stefanor

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



[issue12760] Add create mode to open()

2011-12-26 Thread Devin Jeanpierre

Devin Jeanpierre jeanpierr...@gmail.com added the comment:

C11 uses 'x' for this, for what it's worth.

This is not a duplicate issue. The openat solution is no easier than the 
os.open solution.

--
nosy: +Devin Jeanpierre

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



[issue13508] ctypes' find_library breaks with ARM ABIs

2011-12-26 Thread Barry A. Warsaw

Changes by Barry A. Warsaw ba...@python.org:


--
nosy: +barry

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



[issue12463] Calling SocketServer.shutdown() when server_forever() was not called will hang

2011-12-26 Thread Michael P. Reilly

Michael P. Reilly arc...@gmail.com added the comment:

Here is a patch to socketserver.py which can be applied to 2.6, 2.7 and 3.2.  
The fix is for BaseServer, ForkingMixIn and ThreadingMixIn.  All three now 
correctly respond to the shutdown method.  I have no way of testing Windows or 
MacOSX (based on docs, MacOSX should work without changes); the ForkingMixIn 
will raise an AssertionError on non-POSIX systems.  There may be a better way 
of handling non-POSIX systems, but again, I'm not able to test or develop at 
this time.  I'll also update the simpletest.py script.

--
versions: +Python 3.2
Added file: http://bugs.python.org/file24093/socketserver.patch

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



[issue12463] Calling SocketServer.shutdown() when server_forever() was not called will hang

2011-12-26 Thread Michael P. Reilly

Michael P. Reilly arc...@gmail.com added the comment:

An update test program.  Execute with appropriate PYTHONPATH (to dir to patched 
module and explicit interpreter executable: PYTHONPATH=$PWD/2.7/b/Lib python2.7 
$PWD/simpletest.py

--
Added file: http://bugs.python.org/file24094/simpletest.py

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



[issue13664] UnicodeEncodeError in gzip when filename contains non-ascii

2011-12-26 Thread Jason R. Coombs

New submission from Jason R. Coombs jar...@jaraco.com:

While investigating #11638, I encountered another encoding issue related to 
tarballs. Consider this command:

python -c import gzip; gzip.GzipFile(u'\xe5rchive', 'w', 
fileobj=open(u'\xe5rchive', 'wb'))

When run, it triggers the following traceback:

Traceback (most recent call last):
  File string, line 1, in module
  File c:\python\lib\gzip.py, line 127, in __init__
self._write_gzip_header()
  File c:\python\lib\gzip.py, line 172, in _write_gzip_header
self.fileobj.write(fname + '\000')
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe5' in position 0: 
ordinal not in range(128)

Based on the resolution of #13639, I believe the recommended fix is to handle 
unicode here much like Python 3 does--specifically, detect unicode, encode to 
'latin-1' if possible or leave the filename blank if not.

--
messages: 150265
nosy: jason.coombs
priority: low
severity: normal
status: open
title: UnicodeEncodeError in gzip when filename contains non-ascii
versions: Python 2.7

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



[issue13664] UnicodeEncodeError in gzip when filename contains non-ascii

2011-12-26 Thread Jason R. Coombs

Changes by Jason R. Coombs jar...@jaraco.com:


--
components: +Library (Lib)

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



[issue11638] python setup.py sdist --formats tar* crashes if version is unicode

2011-12-26 Thread Jason R. Coombs

Jason R. Coombs jar...@jaraco.com added the comment:

I've captured the cause of the UnicodeEncodeErrors as #13664.

After rebasing the changes to include the fix for #13639, I found that the 
tests were still failing until I also reverted the patch to call tarfile.open 
with 'w:gz'. Now all the new tests pass (with no other changes to the code).

This latest patch only contains tests to capture the errors encountered. I plan 
to push this changeset and also port the test changes the default (Python 3.3) 
branch.

--

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



[issue11638] python setup.py sdist --formats tar* crashes if version is unicode

2011-12-26 Thread Jason R. Coombs

Changes by Jason R. Coombs jar...@jaraco.com:


Added file: http://bugs.python.org/file24095/dc1045d08bd8.diff

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



[issue13639] UnicodeDecodeError when creating tar.gz with unicode name

2011-12-26 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset dc1045d08bd8 by Jason R. Coombs in branch '2.7':
Issue #11638: Adding test to ensure .tar.gz files can be generated by sdist 
command with unicode metadata, based on David Barnett's patch.
http://hg.python.org/cpython/rev/dc1045d08bd8

--

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



[issue11638] python setup.py sdist --formats tar* crashes if version is unicode

2011-12-26 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset dc1045d08bd8 by Jason R. Coombs in branch '2.7':
Issue #11638: Adding test to ensure .tar.gz files can be generated by sdist 
command with unicode metadata, based on David Barnett's patch.
http://hg.python.org/cpython/rev/dc1045d08bd8

--
nosy: +python-dev

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



[issue11638] python setup.py sdist --formats tar* crashes if version is unicode

2011-12-26 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset f0fcb82a88e9 by Jason R. Coombs in branch 'default':
Ported some test cases from 2.7 for #11638
http://hg.python.org/cpython/rev/f0fcb82a88e9

--

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



[issue11638] python setup.py sdist --formats tar* crashes if version is unicode

2011-12-26 Thread Jason R. Coombs

Jason R. Coombs jar...@jaraco.com added the comment:

Since the tests now pass, and the only changes were to the tests, I've pushed 
them to the master. And with that I'm marking this ticket as closed.

--
status: open - closed

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



[issue13665] TypeError: string or integer address expected instead of str instance

2011-12-26 Thread Jason R. Coombs

New submission from Jason R. Coombs jar...@jaraco.com:

When constructing a ctypes.c_char_p with a unicode string, a confusing error 
message is reported:

 python -c import ctypes; ctypes.c_char_p('foo')
Traceback (most recent call last):
  File string, line 1, in module
TypeError: string or integer address expected instead of str instance

Since string and str seem like essentially the same thing, the error 
message doesn't make sense.

This message is obviously due to the change to unicode as the default string 
instance in Python 3. The error message should probably be updated to read 
bytes or integer address expected instead of a str instance.

It's probably also worth scanning through the ctypes codebase for similar 
messages.

--
components: ctypes
messages: 150271
nosy: jason.coombs
priority: low
severity: normal
status: open
title: TypeError: string or integer address expected instead of str instance
versions: Python 3.2, Python 3.3

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



[issue13666] datetime documentation typos

2011-12-26 Thread Stephen Kelly

New submission from Stephen Kelly steve...@gmail.com:

There are several bugs on 

http://docs.python.org/library/datetime.html

Section 8.1.6 references the method rzinfo.dst(), which does not exist. 
Presumably this should be tzinfo.dst().

Section 8.1.4 contains an implementation of a GMT2 timezone. There seems to be 
a bug in the utcoffset() and dst() implementations. The timedelta(hours=2) is 
in the dst() implementation, but it should be in the uctoffset() 
implementation. 

The docs for tzinfo.utcoffset() start with 'Return offset of local time from 
UTC, in minutes east of UTC'. Other methods (eg dst()) also document that the 
unit to return should be 'minutes'. However, all code samples instead return a 
timedelta. The documentation I quoted should instead read 'Return offset of 
local time from UTC as a timedelta, or None'.

--
assignee: docs@python
components: Documentation
messages: 150272
nosy: docs@python, steveire
priority: normal
severity: normal
status: open
title: datetime documentation typos
versions: Python 2.6

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