[issue11840] Improvements to c-api/unicode documentation

2011-04-12 Thread Ezio Melotti

Ezio Melotti  added the comment:

Rewrapping the paragraphs you are changing is fine, the others can be left as 
they are.
Patches should be against the oldest branch where they can be applied, and 
since this is a doc patch it can go in 2.7 and 3.1 too.
Regarding the order of the codecs, I would leave UTF-7 last because it's not 
commonly used, changing them to 8/16/32/7 is probably OK though.

--

___
Python tracker 

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



[issue9233] json.load failure when C optimizations aren't built

2011-04-12 Thread Ezio Melotti

Ezio Melotti  added the comment:

Fixed in 2.7 and 3.1 and ported to 3.2 (b279611146d7) and 3.3 (e8e3f2b72a32).
In 3.1 json was completely broken without _json, so I fixed that too.
I also did some minor cleanup in ec6d881f5b02.

--
resolution:  -> fixed
stage: needs patch -> committed/rejected
status: open -> closed
versions: +Python 3.1, Python 3.2, Python 3.3

___
Python tracker 

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



[issue9233] json.load failure when C optimizations aren't built

2011-04-12 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 36e676a8541d by Ezio Melotti in branch '3.1':
#9233: skip _json-specific tests when _json is not available.
http://hg.python.org/cpython/rev/36e676a8541d

New changeset 7019fc1a9663 by Ezio Melotti in branch '3.1':
#9233: Fix json to work properly even when _json is not available.
http://hg.python.org/cpython/rev/7019fc1a9663

New changeset a220458179ed by Ezio Melotti in branch '3.1':
#9233: Fix json.loads({}) to return a dict (instead of a list), when _json is 
not available.
http://hg.python.org/cpython/rev/a220458179ed

--

___
Python tracker 

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



[issue10399] AST Optimization: inlining of function calls

2011-04-12 Thread Ryan Kelly

Changes by Ryan Kelly :


--
nosy: +rfk

___
Python tracker 

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



[issue11830] "import decimal" fails in Turkish locale

2011-04-12 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


--
stage:  -> committed/rejected
type:  -> behavior
versions: +Python 3.2, Python 3.3

___
Python tracker 

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



[issue11830] "import decimal" fails in Turkish locale

2011-04-12 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset f5d5f3f4c081 by Alexander Belopolsky in branch '3.2':
Issue #11830: Remove unnecessary introspection code in the decimal module.
http://hg.python.org/cpython/rev/f5d5f3f4c081

--

___
Python tracker 

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



[issue9233] json.load failure when C optimizations aren't built

2011-04-12 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset d58c63ff5bb2 by Ezio Melotti in branch '2.7':
#9233: Fix json.loads({}) to return a dict (instead of a list), when _json is 
not available.
http://hg.python.org/cpython/rev/d58c63ff5bb2

--

___
Python tracker 

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



[issue1721083] Add File - Reload

2011-04-12 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
assignee: kbk -> rhettinger
keywords: +needs review -patch
versions: +Python 3.3 -Python 3.2

___
Python tracker 

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



[issue11822] Improve disassembly to show embedded code objects

2011-04-12 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
assignee:  -> rhettinger

___
Python tracker 

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



[issue11840] Improvements to c-api/unicode documentation

2011-04-12 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti

___
Python tracker 

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



[issue11823] disassembly needs argument counts on calls with keyword args

2011-04-12 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

Looks good.  Please apply.

--
assignee:  -> belopolsky
resolution:  -> accepted
title: disassembly needs to argument counts on calls with keyword args -> 
disassembly needs argument counts on calls with keyword args
type: feature request -> behavior
versions: +Python 2.7, Python 3.1, Python 3.2

___
Python tracker 

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



[issue11806] Missing 2 hyphens in the docs

2011-04-12 Thread Raymond Hettinger

Changes by Raymond Hettinger :


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



[issue11718] Teach IDLE's open-module command to find packages

2011-04-12 Thread Raymond Hettinger

Changes by Raymond Hettinger :


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



[issue7484] smtplib: verify breaks with Postfix servers

2011-04-12 Thread R. David Murray

R. David Murray  added the comment:

Thanks for working on this.

The tests seem to be missing, as is the line that adds 'clean' to the def, so 
the patches won't work as is.

However, now that I've looked at the patch in more detail, adding a parameter 
to a public method is not something we can do in a bug fix release.  So, this 
solution would work for 3.3, but not for 2.7 and 3.2.  In any case, Guido 
thinks that parameters that have only two values should be replaced by methods 
with two different names.  In this case that makes a lot of sense.  I've 
checked the RFC and the code, and there are two cases: MAIL FROM and RCPT TO, 
which require the address to be in <>s, and VRFY and EXPN, which prefer that it 
not be in <>s.  So I think we should introduce a new, private function for use 
in the VRFY and EXPN cases:

def _addronly(addr):
(fullname, email) = email.utils.parseaddr(addr)
return email

Can you do a new patch, adding the above function and using it at the right 
places?  Tests are also needed...it should be possible to modify the test that 
the original patch modified so that it checks to make sure the <> are not 
added.  If you need help with that let me know.

--

___
Python tracker 

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



[issue11718] Teach IDLE's open-module command to find packages

2011-04-12 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset e391f7005b0f by Raymond Hettinger in branch '2.7':
Issue 11718: Teach IDLE's open module dialog to find packages.
http://hg.python.org/cpython/rev/e391f7005b0f

--

___
Python tracker 

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



[issue11703] Bug in python >= 2.7 with urllib2 fragment

2011-04-12 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 502bb809b03b by Senthil Kumaran in branch '2.7':
update news in 2.7  for Issue #11703
http://hg.python.org/cpython/rev/502bb809b03b

--

___
Python tracker 

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



[issue11703] Bug in python >= 2.7 with urllib2 fragment

2011-04-12 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 8ee48ec69844 by Senthil Kumaran in branch '3.1':
Update the News for the fix to Issue11703.
http://hg.python.org/cpython/rev/8ee48ec69844

--

___
Python tracker 

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



[issue11506] b'' += gives SystemError instead of SyntaxError

2011-04-12 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

Thanks all for fixing. This 'silently' crashes IDLE with no message.
Just 'poof'.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue11718] Teach IDLE's open-module command to find packages

2011-04-12 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 27eda70c25b1 by Raymond Hettinger in branch '3.2':
Issue 11718: Teach IDLE's open module dialog to find packages.
http://hg.python.org/cpython/rev/27eda70c25b1

New changeset 65c39e9eb262 by Raymond Hettinger in branch 'default':
Issue 11718: Teach IDLE's open module dialog to find packages.
http://hg.python.org/cpython/rev/65c39e9eb262

--
nosy: +python-dev

___
Python tracker 

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



[issue3056] Simplify the Integral ABC

2011-04-12 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

I've long since lost interest in this.
If anyone wants to push it forward,
feel free to re-open.

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



[issue10019] json.dumps with indent = 0 not adding newlines

2011-04-12 Thread R. David Murray

R. David Murray  added the comment:

Thanks, Sandro.

--
assignee: bob.ippolito -> 
nosy: +r.david.murray
resolution: accepted -> fixed
stage: commit review -> 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



[issue7484] smtplib: verify breaks with Postfix servers

2011-04-12 Thread Felipe Cruz

Changes by Felipe Cruz :


Added file: http://bugs.python.org/file21642/issue7484-27.diff

___
Python tracker 

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



[issue7484] smtplib: verify breaks with Postfix servers

2011-04-12 Thread Felipe Cruz

Felipe Cruz  added the comment:

I've rewrote those patches to 'default' and 2.7

--
nosy: +felipecruz
Added file: http://bugs.python.org/file21641/issue7484-py3k.diff

___
Python tracker 

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



[issue10019] json.dumps with indent = 0 not adding newlines

2011-04-12 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 8264f68e8251 by R David Murray in branch '2.7':
#10019: Fix regression relative to 2.6: add newlines if indent=0
http://hg.python.org/cpython/rev/8264f68e8251

New changeset 4a1048257995 by R David Murray in branch '3.1':
#10019: Fix regression relative to 2.6: add newlines if indent=0
http://hg.python.org/cpython/rev/4a1048257995

New changeset fe8bbaff5a27 by R David Murray in branch '3.2':
Merge #10019: Fix regression relative to 2.6: add newlines if indent=0
http://hg.python.org/cpython/rev/fe8bbaff5a27

New changeset 2d0d0850335e by R David Murray in branch 'default':
Merge #10019: Fix regression relative to 2.6: add newlines if indent=0
http://hg.python.org/cpython/rev/2d0d0850335e

--
nosy: +python-dev

___
Python tracker 

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



[issue11806] Missing 2 hyphens in the docs

2011-04-12 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

2011/4/12 Boštjan Mejak :
>
> Boštjan Mejak  added the comment:
>
> There are more of this typos in the same chapter. Just a little below the
> one of the reported sentence. Check this out...
>
> "Assuming the Python code above is saved into a file called prog.py, it can
> be run at the !! command line !! and provides useful help messages:"  --> it
> has to be: command-line
>
> But then this...
>
> "When run with the appropriate arguments, it prints either the sum or the
> max of the !! command-line !! integers:"  --> here it is correct!
>
> I don't get it. Please be consistent. Thanks.

"A foolish consistency is the hobgoblin of little minds."

--
nosy: +benjamin.peterson

___
Python tracker 

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



[issue10496] "import site failed" when Python can't find home directory (sysconfig._getuserbase)

2011-04-12 Thread STINNER Victor

Changes by STINNER Victor :


Added file: http://bugs.python.org/file21640/sysconfig_getuserbase.patch

___
Python tracker 

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



[issue10496] "import site failed" when Python can't find home directory (sysconfig._getuserbase)

2011-04-12 Thread STINNER Victor

Changes by STINNER Victor :


Removed file: http://bugs.python.org/file21639/sysconfig_getuserbase.patch

___
Python tracker 

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



[issue10496] "import site failed" when Python can't find home directory (sysconfig._getuserbase)

2011-04-12 Thread STINNER Victor

Changes by STINNER Victor :


--
keywords: +patch
Added file: http://bugs.python.org/file21639/sysconfig_getuserbase.patch

___
Python tracker 

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



[issue10496] "import site failed" when Python can't find home directory (sysconfig._getuserbase)

2011-04-12 Thread STINNER Victor

STINNER Victor  added the comment:

This issue remembers me the issue #6612 (failure if the current directory was 
removed): the fix was to ignore os.getcwd().

Attached patch ignores os.path.expanduser() error (KeyError) and keeps ~ in the 
path. Example without HOME var and with an non existent user (uid 12345):

--
$ env -i ./python
>>> import sysconfig
>>> sysconfig.get_config_var('userbase')
'~/.local'

>>> sysconfig.get_paths(scheme='posix_user', expand=False)
{'platstdlib': '{userbase}/lib/python{py_version_short}', 'platlib': 
'{userbase}/lib/python{py_version_short}/site-packages', 'purelib': 
'{userbase}/lib/python{py_version_short}/site-packages', 'stdlib': 
'{userbase}/lib/python{py_version_short}', 'scripts': '{userbase}/bin', 
'include': '{userbase}/include/python{py_version_short}', 'data': '{userbase}'}

>>> sysconfig.get_paths(scheme='posix_user')  
{'platstdlib': '~/.local/lib/python3.3', 'platlib': 
'~/.local/lib/python3.3/site-packages', 'purelib': 
'~/.local/lib/python3.3/site-packages', 'stdlib': '~/.local/lib/python3.3', 
'scripts': '~/.local/bin', 'include': '~/.local/include/python3.3', 'data': 
'~/.local'}
--

Example with an existant user but without HOME var:
--
marge$ env -i ./python
>>> import sysconfig
>>> sysconfig.get_config_var('userbase')
'/home/haypo/.local'
>>> sysconfig.get_paths(scheme='posix_user')  
{'platstdlib': '/home/haypo/.local/lib/python3.3', 'platlib': 
'/home/haypo/.local/lib/python3.3/site-packages', 'purelib': 
'/home/haypo/.local/lib/python3.3/site-packages', 'stdlib': 
'/home/haypo/.local/lib/python3.3', 'scripts': '/home/haypo/.local/bin', 
'include': '/home/haypo/.local/include/python3.3', 'data': '/home/haypo/.local'}
--

--
nosy: +tarek
title: "import site failed" when Python can't find home directory -> "import 
site failed" when Python can't find home directory (sysconfig._getuserbase)

___
Python tracker 

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



[issue11703] Bug in python >= 2.7 with urllib2 fragment

2011-04-12 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

This is fixed in all the codelines. Thanks for the patch, Santoso.

--
status: open -> closed

___
Python tracker 

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



[issue11703] Bug in python >= 2.7 with urllib2 fragment

2011-04-12 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 6e73f75ee034 by Senthil Kumaran in branch '2.7':
Fix Issue11703 - urllib2.get_url does not handle fragment in url properly.
http://hg.python.org/cpython/rev/6e73f75ee034

--

___
Python tracker 

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



[issue11806] Missing 2 hyphens in the docs

2011-04-12 Thread Boštjan Mejak

Boštjan Mejak  added the comment:

There are more of this typos in the same chapter. Just a little below the
one of the reported sentence. Check this out...

"Assuming the Python code above is saved into a file called prog.py, it can
be run at the !! command line !! and provides useful help messages:"  --> it
has to be: command-line

But then this...

"When run with the appropriate arguments, it prints either the sum or the
max of the !! command-line !! integers:"  --> here it is correct!

I don't get it. Please be consistent. Thanks.

--
Added file: http://bugs.python.org/file21638/unnamed

___
Python tracker 

___There are more of this typos in the same chapter. Just a little below the one 
of the reported sentence. Check this out..."Assuming the Python code above is saved into a file 
called prog.py, it can be run 
at the !! command line !! and provides useful help messages:"  --> it 
has to be: command-line
But then 
this...
"When run with the appropriate arguments, it prints either the sum or 
the max of the !! command-line !! integers:"  --> here it is 
correct!
I 
don't get it. Please be consistent. Thanks.
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11506] b'' += gives SystemError instead of SyntaxError

2011-04-12 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 4d9a8e84279a by Benjamin Peterson in branch '3.1':
make assigning to a bytes literal a syntax error (closes #11506)
http://hg.python.org/cpython/rev/4d9a8e84279a

--
nosy: +python-dev
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



[issue11703] Bug in python >= 2.7 with urllib2 fragment

2011-04-12 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

It should be noted that the bug surfaced in 2.7 and above due to changes made 
as part of Issue8280.

--
assignee:  -> orsenthil
resolution:  -> fixed

___
Python tracker 

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



[issue11703] Bug in python >= 2.7 with urllib2 fragment

2011-04-12 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 3f240a1cd245 by Senthil Kumaran in branch '3.1':
Fix Issue11703 - urllib2.geturl() does not return correct url when the original 
url contains #fragment. Patch Contribution by Santoso Wijaya.
http://hg.python.org/cpython/rev/3f240a1cd245

--
nosy: +python-dev

___
Python tracker 

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



[issue11506] b'' += gives SystemError instead of SyntaxError

2011-04-12 Thread Santoso Wijaya

Changes by Santoso Wijaya :


--
components: +Interpreter Core
type:  -> behavior
versions: +Python 3.1, Python 3.2, Python 3.3

___
Python tracker 

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



[issue6715] xz compressor support

2011-04-12 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy:  -haypo

___
Python tracker 

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



[issue9592] Limitations in objects returned by multiprocessing Pool

2011-04-12 Thread STINNER Victor

STINNER Victor  added the comment:

> Thanks Freek - we're actually discussing some stuff like this
> in issue9205 as well

I'm unable to see the relation between the issue #9205 and the point (3) of 
this issue (RuntimeError: maximum recursion depth exceeded while calling a 
Python object // WindowsError: [Error 5] Access is denied).

--

Are "RuntimeError: maximum recursion depth exceeded while calling a Python 
object" and "WindowsError: [Error 5] Access is denied)" errors the issue or not?

--

___
Python tracker 

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



[issue11506] b'' += gives SystemError instead of SyntaxError

2011-04-12 Thread Andreas Stührk

Andreas Stührk  added the comment:

Benjamin told me that "test_syntax" is the right place for the test and indeed, 
there are quite some literals already tested.

--
nosy: +benjamin.peterson
Added file: http://bugs.python.org/file21637/issue_11506_v2.patch

___
Python tracker 

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



[issue11779] test_mmap timeout (30 min) on "AMD64 Snow Leopard 3.x" buildbot

2011-04-12 Thread STINNER Victor

STINNER Victor  added the comment:

Antoine changed regrtest default timeout to 60 minutes. It should workaround 
test_mmap timeout, so can we close this issue?

--

___
Python tracker 

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



[issue11825] faulthandler: failure without threads

2011-04-12 Thread STINNER Victor

Changes by STINNER Victor :


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



[issue11825] faulthandler: failure without threads

2011-04-12 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 64e8d371812c by Victor Stinner in branch 'default':
Fix #11825: disable regrtest timeout if Python doesn't support threads
http://hg.python.org/cpython/rev/64e8d371812c

--
nosy: +python-dev

___
Python tracker 

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



[issue8445] buildbot: test_ttk_guionly failures (test_traversal, test_tab_identifiers, test_identify, test_heading_callback)

2011-04-12 Thread STINNER Victor

STINNER Victor  added the comment:

I don't understand why this issue is still open, so let's close it.

--
status: open -> closed

___
Python tracker 

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



[issue8431] buildbot: hung on ARM Debian

2011-04-12 Thread STINNER Victor

STINNER Victor  added the comment:

There are no more ARM buildbots, so let's close this issue.

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



[issue11806] Missing 2 hyphens in the docs

2011-04-12 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

IMO these are a waste of time and add zero value.  Also, the English 
hyphenation conventions vary depending on who you ask and they vary over time.

--
nosy: +rhettinger

___
Python tracker 

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



[issue8429] buildbot: test_subprocess timeout

2011-04-12 Thread STINNER Victor

STINNER Victor  added the comment:

I developed the faulthandler module to get more information after a timeout. I 
close this issue: I already opened more specific issues with more information.

--
resolution:  -> invalid
status: open -> closed

___
Python tracker 

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



[issue8448] buildbot: test_subprocess failure (test_no_leaking, Broken pipe)

2011-04-12 Thread STINNER Victor

STINNER Victor  added the comment:

I did not see this failure since one year. flox saw it 7 months ago.

I close this issue because I think that it is fixed. Reopen it if the issue was 
not fixed.

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



[issue11747] unified_diff function product incorrect range information

2011-04-12 Thread Raymond Hettinger

Changes by Raymond Hettinger :


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



[issue11747] unified_diff function product incorrect range information

2011-04-12 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 09459397f807 by Raymond Hettinger in branch '2.7':
Issue 11747: Fix output format for context diffs.
http://hg.python.org/cpython/rev/09459397f807

--

___
Python tracker 

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



[issue11747] unified_diff function product incorrect range information

2011-04-12 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 707078ca0a77 by Raymond Hettinger in branch '3.1':
Issue 11747: Fix output format for context diffs.
http://hg.python.org/cpython/rev/707078ca0a77

New changeset e3387295a24f by Raymond Hettinger in branch '3.2':
Issue 11747: Fix output format for context diffs.
http://hg.python.org/cpython/rev/e3387295a24f

New changeset fbfd5435889c by Raymond Hettinger in branch 'default':
Issue 11747: Fix output format for context diffs.
http://hg.python.org/cpython/rev/fbfd5435889c

--

___
Python tracker 

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



[issue8776] Bytes version of sys.argv

2011-04-12 Thread STINNER Victor

STINNER Victor  added the comment:

One year after opening the issue, I don't have any real use case. And there are 
technical issues to implement this feature, so I prefer just to close this 
issue. Reopen it if you really want it, but please give an use case ;-)

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



[issue11005] Assertion error on RLock._acquire_restore

2011-04-12 Thread STINNER Victor

STINNER Victor  added the comment:

Here is a patch: Antoine, would you like to review it?

--
keywords: +patch
nosy: +pitrou
Added file: http://bugs.python.org/file21636/rlock_release_save.patch

___
Python tracker 

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



[issue11840] Improvements to c-api/unicode documentation

2011-04-12 Thread Marc-Andre Lemburg

Marc-Andre Lemburg  added the comment:

Sandro Tosi wrote:
> 
> Sandro Tosi  added the comment:
> 
> On Tue, Apr 12, 2011 at 23:34, Marc-Andre Lemburg
>  wrote:
>> Sandro Tosi wrote:
>>>
>>> Sandro Tosi  added the comment:
>>>
>>> In addition, is there a reason for the sorting of UTF-8 UTF-32 UTF-16 and 
>>> UTF-7 sections? why not alphabetically?
>>
>> No particular reason. Alphabetical order would be just as good.
>>
>> Note that such changes would have to be backported in order to
>> keep the merge conflicts to a minimum.
> 
> It applies cleanly on 3.2 (module some offsets), not as good on 3.1
> and 2.7: do you want me to prepare patches specifically for those 2
> brances?

I think you misunderstood: when reorganizing the contents of
a file, it's better to apply the patch to all branches, rather
than just the current, since otherwise future patches that do
have to be merged to all branches would cause lots of merge
conflicts.

>>> Also, several parts of the doc would need paragraph re-indentation (not 
>>> done in this patch due to clarity).
>>
>> Not sure what you mean here.
> 
> sorry, I meant wrap at 80th column (or so) :)

Ah, ok.

That's the same category of change as the reorg above
(due to diff working line-based and not word based).

Such changes are fine, but should only be applied occasionally
and then preferably as one big commit to minimize disruption.

--

___
Python tracker 

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



[issue11186] pydoc: HTMLDoc.index() doesn't support PEP 383

2011-04-12 Thread STINNER Victor

Changes by STINNER Victor :


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



[issue11840] Improvements to c-api/unicode documentation

2011-04-12 Thread Sandro Tosi

Sandro Tosi  added the comment:

On Tue, Apr 12, 2011 at 23:34, Marc-Andre Lemburg
 wrote:
> Sandro Tosi wrote:
>>
>> Sandro Tosi  added the comment:
>>
>> In addition, is there a reason for the sorting of UTF-8 UTF-32 UTF-16 and 
>> UTF-7 sections? why not alphabetically?
>
> No particular reason. Alphabetical order would be just as good.
>
> Note that such changes would have to be backported in order to
> keep the merge conflicts to a minimum.

It applies cleanly on 3.2 (module some offsets), not as good on 3.1
and 2.7: do you want me to prepare patches specifically for those 2
brances?

>> Also, several parts of the doc would need paragraph re-indentation (not done 
>> in this patch due to clarity).
>
> Not sure what you mean here.

sorry, I meant wrap at 80th column (or so) :)

Cheers.
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--

___
Python tracker 

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



[issue11186] pydoc: HTMLDoc.index() doesn't support PEP 383

2011-04-12 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 506cab8fc329 by Victor Stinner in branch 'default':
Issue #11186: pydoc ignores a module if its name contains a surrogate character
http://hg.python.org/cpython/rev/506cab8fc329

--
nosy: +python-dev

___
Python tracker 

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



[issue11840] Improvements to c-api/unicode documentation

2011-04-12 Thread Marc-Andre Lemburg

Marc-Andre Lemburg  added the comment:

Sandro Tosi wrote:
> 
> New submission from Sandro Tosi :
> 
> Hi,
> After reading tomo cocoa mail at docs@ I gave a look at c-api/unicode file 
> and fixed some minor editing issues.

Thanks. Looks good !

--

___
Python tracker 

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



[issue11840] Improvements to c-api/unicode documentation

2011-04-12 Thread Marc-Andre Lemburg

Marc-Andre Lemburg  added the comment:

Sandro Tosi wrote:
> 
> Sandro Tosi  added the comment:
> 
> In addition, is there a reason for the sorting of UTF-8 UTF-32 UTF-16 and 
> UTF-7 sections? why not alphabetically?

No particular reason. Alphabetical order would be just as good.

Note that such changes would have to be backported in order to
keep the merge conflicts to a minimum.

> Also, several parts of the doc would need paragraph re-indentation (not done 
> in this patch due to clarity).

Not sure what you mean here.

--
nosy: +lemburg

___
Python tracker 

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



[issue11840] Improvements to c-api/unicode documentation

2011-04-12 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +haypo

___
Python tracker 

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



[issue11840] Improvements to c-api/unicode documentation

2011-04-12 Thread Sandro Tosi

Sandro Tosi  added the comment:

In addition, is there a reason for the sorting of UTF-8 UTF-32 UTF-16 and UTF-7 
sections? why not alphabetically?

Also, several parts of the doc would need paragraph re-indentation (not done in 
this patch due to clarity).

--

___
Python tracker 

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



[issue11840] Improvements to c-api/unicode documentation

2011-04-12 Thread Sandro Tosi

New submission from Sandro Tosi :

Hi,
After reading tomo cocoa mail at docs@ I gave a look at c-api/unicode file and 
fixed some minor editing issues.

Regards,
Sandro

--
assignee: docs@python
components: Documentation
files: unicode_doc-default.patch
keywords: patch
messages: 133600
nosy: docs@python, sandro.tosi
priority: normal
severity: normal
stage: patch review
status: open
title: Improvements to c-api/unicode documentation
versions: Python 3.3
Added file: http://bugs.python.org/file21635/unicode_doc-default.patch

___
Python tracker 

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



[issue11806] Missing 2 hyphens in the docs

2011-04-12 Thread Boštjan Mejak

Changes by Boštjan Mejak :


--
nosy: +georg.brandl

___
Python tracker 

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



[issue11827] mention of list2cmdline() in docs of subprocess.Popen

2011-04-12 Thread Eli Bendersky

Eli Bendersky  added the comment:

Attaching a proposed patch for 3.2, focusing only on the documentation for the 
time being (I realize that deprecation is a loaded issue and should be probably 
handled in a centralized manner).

The patch removes mention of list2cmdline, instead explaining its intention 
(using the docstring of list2cmdline quite literally). I realize this isn't an 
ideal approach, but IMHO it's much better than what we have now. Suggestions 
are most welcome.

--
keywords: +patch
Added file: http://bugs.python.org/file21634/issue11827.1.patch

___
Python tracker 

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



[issue11839] argparse: unexpected behavior of default for FileType('w')

2011-04-12 Thread Paolo Elvati

New submission from Paolo Elvati :

Hi,
when a default is specified for a file argument that is open with writing 
permission (FileType('w')), the default file is always created even if the 
argument is specified in the command line. 
For example he code:

import argparse 
parser = argparse.ArgumentParser() 
parser.add_argument( 
"-o", 
default = 'fake', 
dest = 'OutputFile', 
type = argparse.FileType('w') 
) 
args = parser.parse_args() 

will create the empty file "fake" even if the -o option is given. 
The value inside the code of args.Outputfile is not affected.

Paolo

--
components: Library (Lib)
messages: 133598
nosy: Paolo.Elvati, bethard
priority: normal
severity: normal
status: open
title: argparse: unexpected behavior of default for FileType('w')
type: behavior
versions: Python 3.2

___
Python tracker 

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



[issue9233] json.load failure when C optimizations aren't built

2011-04-12 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

Do those new check finish this issue and should it be closed?
If not, what is left?

--
nosy: +terry.reedy

___
Python tracker 

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



[issue11835] python (x64) ctypes incorrectly pass structures parameter

2011-04-12 Thread Santoso Wijaya

Santoso Wijaya  added the comment:

Attaching a ctypes unittest (against 2.7 branch) that will expose this bug in 
regrtest.

--
keywords: +patch
Added file: http://bugs.python.org/file21633/test_issue11835.patch

___
Python tracker 

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



[issue11835] python (x64) ctypes incorrectly pass structures parameter

2011-04-12 Thread Jonathan White

Changes by Jonathan White :


--
nosy: +jwhitecl

___
Python tracker 

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



[issue10019] json.dumps with indent = 0 not adding newlines

2011-04-12 Thread Sandro Tosi

Sandro Tosi  added the comment:

Oh, just to say I took the version as of 
http://code.google.com/p/simplejson/source/detail?r=234

--

___
Python tracker 

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



[issue10019] json.dumps with indent = 0 not adding newlines

2011-04-12 Thread Sandro Tosi

Changes by Sandro Tosi :


Added file: http://bugs.python.org/file21632/issue10019-py2.7.patch

___
Python tracker 

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



[issue10019] json.dumps with indent = 0 not adding newlines

2011-04-12 Thread Sandro Tosi

Changes by Sandro Tosi :


Added file: http://bugs.python.org/file21631/issue10019-py3.1.patch

___
Python tracker 

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



[issue10019] json.dumps with indent = 0 not adding newlines

2011-04-12 Thread Sandro Tosi

Sandro Tosi  added the comment:

Hi,
I updated the patch, making one for 2.7, 3.1 and 3.2 (this last one applies 
cleanly on default too).

As of merging simplejson, it's more a matter of porting it to Python 3. I'll 
drop an email to Bob soon, let's see how it goes.

--
nosy: +sandro.tosi
stage: patch review -> commit review
versions: +Python 3.3
Added file: http://bugs.python.org/file21630/issue10019-py3.2.patch

___
Python tracker 

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



[issue11835] python (x64) ctypes incorrectly pass structures parameter

2011-04-12 Thread Santoso Wijaya

Santoso Wijaya  added the comment:

32-bit (2.6) is fine:

D:\Temp\cdll\Release>C:\Python26\python.exe
Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from ctypes import *
>>> libcdll = CDLL('cdll')
>>> class MyStruct(Structure):
... _fields_ = []
... for name in ('a', 'b', 'c', 'd', 'e', 'f', 'g'):
... _fields_.append((name, c_int32))
...
>>> MyStruct._fields_
[('a', ), ('b', ), ('c', ), ('d', ), ('e', ),
 ('f', ), ('g', )]
>>> s1 = MyStruct(1, 2, 3, 4, 5, 6, 7)
>>> s2 = MyStruct(0, 9, 8, 7, 6, 5, 4)
>>> libcdll.errorPassingParameter(s1, s2, 42)
s1.a: 1; s1.b: 2; s1.c: 3; s1.d: 4; s1.e: 5; s1.f: 6; s1.g: 7
s2.a: 0; s2.b: 9; s2.c: 8; s2.d: 7; s2.e: 6; s2.f: 5; s2.g: 4
x: 42
0
>>>

--

___
Python tracker 

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



[issue11838] IDLE: make interactive code runnable.

2011-04-12 Thread Terry J. Reedy

New submission from Terry J. Reedy :

One can currently save the contents of a shell window exactly as is, with 
opening message, prompts, and restarts. This essentially a screenshot of the 
frame -- fine for an IDLE doc but not useful for rerunning the code.
Similarly, if one pastes in interactive input/output, with or without secondary 
prompts, into an edit window, it is a nuisance to edit.

This issue proposes an option to 'flip' code and output lines, with prompts 
deleted and outputs commented, so that

Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on 
win32
Type "copyright", "credits" or "license()" for more information.
>>> 1+2
3

becomes

#Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on 
win32
#Type "copyright", "credits" or "license()" for more information.
1+2
#3

(Ignore linewrap artifact on first line).

--
components: IDLE
messages: 133592
nosy: terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: IDLE: make interactive code runnable.
versions: Python 3.3

___
Python tracker 

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



[issue11835] python (x64) ctypes incorrectly pass structures parameter

2011-04-12 Thread Santoso Wijaya

Santoso Wijaya  added the comment:

I can reproduce this with 2.7 and 3.2 64-bit builds on Windows:

D:\Temp\cdll\x64\Release>C:\Python32\python.exe
Python 3.2 (r32:88445, Feb 20 2011, 21:30:00) [MSC v.1500 64 bit (AMD64)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> from ctypes import *
>>> libcdll = CDLL('cdll')
>>> libcdll.foo(1, 2, 3, 4, 5, 6, 7)
a: 1; b: 2; c: 3; d: 4; e: 5; f: 6; g: 7
0
>>> class MyStruct(Structure):
... _fields_ = [
... ('a', c_int32),
... ('b', c_int32),
... ('c', c_int32),
... ('d', c_int32),
... ('e', c_int32),
... ('f', c_int32),
... ('g', c_int32),
... ]
...
>>> s1 = MyStruct(1, 2, 3, 4, 5, 6, 7)
>>> s2 = MyStruct(0, 9, 8, 7, 6, 5, 4)
>>> libcdll.bar(s2)
s.a: 0; s.b: 9; s.c: 8; s.d: 7; s.e: 6; s.f: 5; s.g: 4
0
>>> libcdll.errorPassingParameter(s1, s2, 42)
s1.a: 1; s1.b: 2; s1.c: 3; s1.d: 4; s1.e: 5; s1.f: 6; s1.g: 7
s2.a: 28; s2.b: 0; s2.c: 851972; s2.d: 0; s2.e: 31545776; s2.f: 0; s2.g: 0
x: 39805032
0
>>>

--
versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 -Python 2.6

___
Python tracker 

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



[issue11836] multiprocessing.queues.SimpleQueue is undocumented

2011-04-12 Thread Eli Bendersky

Changes by Eli Bendersky :


--
nosy: +eli.bendersky

___
Python tracker 

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



[issue11837] smtplib._quote_periods triggers spurious type error in re.sub

2011-04-12 Thread Axel Rau

Changes by Axel Rau :


--
type: behavior -> crash

___
Python tracker 

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



[issue11837] smtplib._quote_periods triggers spurious type error in re.sub

2011-04-12 Thread Axel Rau

New submission from Axel Rau :

While debugging this
  http://article.gmane.org/gmane.comp.python.general/687767
email problem, I'm getting:
---
 File 
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/smtplib.py", 
line 794, in send_message
rcpt_options)
  File 
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/smtplib.py", 
line 762, in sendmail
(code, resp) = self.data(msg)
  File 
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/smtplib.py", 
line 518, in data
q = _quote_periods(msg)
  File 
"/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/smtplib.py", 
line 166, in _quote_periods
return re.sub(br'(?m)^\.', '..', bindata)
  File "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/re.py", 
line 168, in sub
return _compile(pattern, flags).sub(repl, string, count)
TypeError: sequence item 1: expected bytes, str found
---
The following instrumentation:
---
def sub(pattern, repl, string, count=0, flags=0):
print('re.sub: pattern=%s, repl=%s, string=%s' % 
(pattern.__class__.__name__, repl.__class__.__name__, 
string.__class__.__name__))
return _compile(pattern, flags).sub(repl, string, count)
---
shows (in my test case with 2nd mail):
---
re.sub: pattern=bytes, repl=str, string=bytes
---
Changing smtplib._quote_periods(bindata) from
---
def _quote_periods(bindata):
return re.sub(br'(?m)^\.', '..', bindata)
---
to:
---
def _quote_periods(bindata):
return re.sub(br'(?m)^\.', b'..', bindata)
---
Fixes the problem for me.

Platform is Mac OS X 10.6.7, 64-bit.
Problem happens always on 2nd mail being sent.
Problem still exists with python 3.2.1a

--
components: Library (Lib)
messages: 133590
nosy: axel
priority: normal
severity: normal
status: open
title: smtplib._quote_periods triggers spurious type error in re.sub
type: behavior
versions: Python 3.2

___
Python tracker 

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



[issue11835] python (x64) ctypes incorrectly pass structures parameter

2011-04-12 Thread Santoso Wijaya

Changes by Santoso Wijaya :


--
nosy: +santa4nt

___
Python tracker 

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



[issue11830] "import decimal" fails in Turkish locale

2011-04-12 Thread R. David Murray

Changes by R. David Murray :


--
nosy: +mark.dickinson, skrah

___
Python tracker 

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



[issue11830] "import decimal" fails in Turkish locale

2011-04-12 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

+0 on forward porting

--
assignee: rhettinger -> belopolsky

___
Python tracker 

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



[issue11830] "import decimal" fails in Turkish locale

2011-04-12 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset f4adc2926bf5 by Raymond Hettinger in branch '2.7':
Neaten-up the fix to issue 11830
http://hg.python.org/cpython/rev/f4adc2926bf5

--

___
Python tracker 

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



[issue11815] Simplifications in concurrent.futures

2011-04-12 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
resolution:  -> fixed
stage: patch review -> 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



[issue11815] Simplifications in concurrent.futures

2011-04-12 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset c26d015cbde8 by Antoine Pitrou in branch 'default':
Issue #11815: Use a light-weight SimpleQueue for the result queue in 
concurrent.futures.ProcessPoolExecutor.
http://hg.python.org/cpython/rev/c26d015cbde8

--

___
Python tracker 

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



[issue11836] multiprocessing.queues.SimpleQueue is undocumented

2011-04-12 Thread Antoine Pitrou

New submission from Antoine Pitrou :

multiprocessing.queues.SimpleQueue is undocumented and doesn't appear in 
multiprocessing.__all__.

--
assignee: docs@python
components: Documentation, Library (Lib)
keywords: easy
messages: 133586
nosy: docs@python, pitrou
priority: normal
severity: normal
stage: needs patch
status: open
title: multiprocessing.queues.SimpleQueue is undocumented
versions: Python 3.1, Python 3.2, Python 3.3

___
Python tracker 

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



[issue11818] tempfile.TemporaryFile example in docs doesnt work

2011-04-12 Thread Éric Araujo

Éric Araujo  added the comment:

Alright, thanks for replying :)

--

___
Python tracker 

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



[issue11827] mention of list2cmdline() in docs of subprocess.Popen

2011-04-12 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +eric.araujo

___
Python tracker 

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



[issue11815] Simplifications in concurrent.futures

2011-04-12 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset bfc586c558ed by Antoine Pitrou in branch '3.2':
Issue #11815: Remove dead code in concurrent.futures (since a blocking Queue
http://hg.python.org/cpython/rev/bfc586c558ed

New changeset eb751e3cb753 by Antoine Pitrou in branch 'default':
Issue #11815: Remove dead code in concurrent.futures (since a blocking Queue
http://hg.python.org/cpython/rev/eb751e3cb753

--
nosy: +python-dev

___
Python tracker 

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



[issue11835] python (x64) ctypes incorrectly pass structures parameter

2011-04-12 Thread Abraham Soedjito

New submission from Abraham Soedjito :

void __cdecl foo(unsigned __int32 a,
 unsigned __int32 b,
 unsigned __int32 c,
 unsigned __int32 d,
 unsigned __int32 e,
 unsigned __int32 f,
 unsigned __int32 g);

struct myStruct
{
   unsigned __int32 a;
   unsigned __int32 b;
   unsigned __int32 c;
   unsigned __int32 d;
   unsigned __int32 e;
   unsigned __int32 f;
   unsigned __int32 g;
}
void __cdecl bar(myStruct s);

void __cdecl errorPassingParameter(myStruct s1,
   myStruct s2,
   unsigned __int32 x);

Calling foo and bar from python completed successfully, calling 
errorParsingParameter resulted in stack corruption. It seems that python passed 
an extra pointer in the stack for s2.

--
assignee: theller
components: ctypes
messages: 133583
nosy: Abraham.Soedjito, theller
priority: normal
severity: normal
status: open
title: python (x64) ctypes incorrectly pass structures parameter
type: crash
versions: Python 2.6

___
Python tracker 

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



[issue3244] multipart/form-data encoding

2011-04-12 Thread Catalin Iacob

Changes by Catalin Iacob :


--
nosy: +catalin.iacob

___
Python tracker 

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



[issue11830] "import decimal" fails in Turkish locale

2011-04-12 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

Shouldn't this be forward ported to 3.3?  Even though there is no bug in 3.x, 
code using an explicit dict is cleaner and more robust than the current code 
that relies on introspection to find methods that start with '_round_'.

--
nosy: +belopolsky

___
Python tracker 

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



[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2011-04-12 Thread Ben Bass

Ben Bass  added the comment:

Perhaps this should be addressed separately, but subprocess.CalledProcessError 
is subject to this problem (can't be unpickled) (it has separate returncode and 
cmd attributes, but no args).

It's straightforward to conform user-defined Exceptions to including .args and 
having reasonable __init__ functions, but not possible in the case of stdlib 
exceptions.

>>> import subprocess, pickle
>>> try:
...   subprocess.check_call('/bin/false')
... except Exception as e:
...   pickle.loads(pickle.dumps(e))
... 
Traceback (most recent call last):
  File "", line 2, in 
  File "/usr/lib/python3.1/subprocess.py", line 435, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/bin/false' returned non-zero exit 
status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "", line 4, in 
  File "/usr/lib/python3.1/pickle.py", line 1363, in loads
encoding=encoding, errors=errors).load()
TypeError: __init__() takes at least 3 positional arguments (1 given)

--
nosy: +bpb

___
Python tracker 

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



[issue11832] Add option to pause regrtest to attach a debugger

2011-04-12 Thread Brian Curtin

Brian Curtin  added the comment:

True. In the end all it does is wait for input not specific to attaching 
debuggers. How about ``--wait``?


I'm used to this functionality being `-x` in another app, so we're iteratively 
getting better :)

--

___
Python tracker 

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



[issue9233] json.load failure when C optimizations aren't built

2011-04-12 Thread Ezio Melotti

Changes by Ezio Melotti :


--
assignee:  -> ezio.melotti
versions:  -Python 2.6

___
Python tracker 

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



[issue11834] wrong module installation dir on Windows

2011-04-12 Thread Brian Curtin

Changes by Brian Curtin :


--
nosy:  -brian.curtin

___
Python tracker 

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



[issue9233] json.load failure when C optimizations aren't built

2011-04-12 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 500063f6ae5a by Ezio Melotti in branch '2.7':
#9233: skip _json-specific tests when _json is not available.
http://hg.python.org/cpython/rev/500063f6ae5a

--
nosy: +python-dev

___
Python tracker 

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



[issue11828] startswith and endswith don't accept None as slice index

2011-04-12 Thread Torsten Becker

Torsten Becker  added the comment:

Hi, since nobody stopped me by complaining about the approach or the first 
patch, I now fixed this for bytes and bytearray as well. :)

I renamed the old _ParseTupleFinds function to stringlib_parse_tuple_finds, 
added a parameter for function name, and another if it shall do unicode 
conversion.  I used this helper function throughout all 3 files now.

I am new to writing C code for Python, so any comments on how to improve the 
patch are welcome.

--
Added file: http://bugs.python.org/file21629/issue-11828-v3.patch

___
Python tracker 

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



[issue11834] wrong module installation dir on Windows

2011-04-12 Thread anatoly techtonik

anatoly techtonik  added the comment:

Target auditory for the `easy` keyword are largely unaware of this fact. It 
also may keep people off if they run into uneasy doc problem.

--

___
Python tracker 

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



[issue11834] wrong module installation dir on Windows

2011-04-12 Thread R. David Murray

R. David Murray  added the comment:

It's a doc issue.  Doc issues are pretty much by definition easy in the sense 
of the easy keyword (doable in a day) (unless they are controversial), so we 
don't bother to attach the easy keyword to them.

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



[issue11834] wrong module installation dir on Windows

2011-04-12 Thread Ezio Melotti

Changes by Ezio Melotti :


--
keywords: +easy

___
Python tracker 

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



[issue11834] wrong module installation dir on Windows

2011-04-12 Thread anatoly techtonik

anatoly techtonik  added the comment:

How about 'easy' keyword?

--

___
Python tracker 

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



  1   2   >