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

2011-04-12 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

If a _ is added to list2cmdline the old name should be kept and deprecated.
The function is also on 2.x and it's not deprecated there (and it's probably 
too late to deprecate it now), so we might have to wait a few versions before 
it will be possible to remove list2cmdline from 3.x.

--
nosy: +ezio.melotti

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11827
___
___
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 Georg Brandl

Georg Brandl ge...@python.org added the comment:

I can't judge if the functionality is needed, but I don't think the option 
should be called attach if all it does is input() somewhere...

--
nosy: +georg.brandl

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11832
___
___
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 Catalin Iacob

Changes by Catalin Iacob iacobcata...@gmail.com:


--
nosy: +catalin

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7484
___
___
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 torsten.bec...@gmail.com added the comment:

Just realized that part of my v1 patch did not conform to PEP 7, I hope, I 
fixed that in v2.

Please also excuse for the wrong name of the error message patch, it was 
supposed to be named issue-11828-error-msg-tests.patch.

--
Added file: http://bugs.python.org/file21626/issue-11828-v2.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11828
___
___
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

Changes by Torsten Becker torsten.bec...@gmail.com:


Added file: http://bugs.python.org/file21627/issue-11828-error-msg-tests.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11828
___
___
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

Changes by Torsten Becker torsten.bec...@gmail.com:


Removed file: 
http://bugs.python.org/file21623/issue-8282-error-message-tests.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11828
___
___
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

New submission from anatoly techtonik techto...@gmail.com:

http://docs.python.org/install/index.html#how-installation-works

Correct standard installation location for third-party modules on Windows for 
Python 2.x is
prefix/Lib/site-packages

--
assignee: docs@python
components: Documentation
messages: 133571
nosy: docs@python, techtonik
priority: normal
severity: normal
status: open
title: wrong module installation dir on Windows
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11834
___
___
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 ezio.melo...@gmail.com:


--
nosy: +brian.curtin

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11834
___
___
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 techto...@gmail.com added the comment:

Other Windows prefixes are probably wrong too.

--

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



[issue11313] Speed up default encode()/decode()

2011-04-12 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

 Committed issue11313.diff in revision 88553.

The revision number seems to be wrong -- maybe the commit got lost during the 
mercurial migration.

All the changes of the patch seem to be there though, even if they went in with 
other commits:
  unicodeobjects.c: 7ab569b18c98 together with changes from #11303.
  test_bytes.py: be6c38d1817b together with the normalization of encoding names.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11313
___
___
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 br...@python.org:


--
stage:  - needs patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11834
___
___
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 ezio.melo...@gmail.com added the comment:

I ran the tests again on 2.7 and got 3 failures:

==
ERROR: test_c_scanstring (json.tests.test_scanstring.TestScanString)
--
Traceback (most recent call last):
  File /home/wolf/dev/py/issue9233/Lib/json/tests/test_scanstring.py, line 
13, in test_c_scanstring
self._test_scanstring(json.decoder.c_scanstring)
  File /home/wolf/dev/py/issue9233/Lib/json/tests/test_scanstring.py, line 
17, in _test_scanstring
scanstring('z\\ud834\\udd20x', 1, None, True),
TypeError: 'NoneType' object is not callable

==
FAIL: test_encode_basestring_ascii (json.tests.test_speedups.TestSpeedups)
--
Traceback (most recent call last):
  File /home/wolf/dev/py/issue9233/Lib/json/tests/test_speedups.py, line 14, 
in test_encode_basestring_ascii
self.assertEqual(encoder.encode_basestring_ascii.__module__, _json)
AssertionError: 'json.encoder' != '_json'

==
FAIL: test_scanstring (json.tests.test_speedups.TestSpeedups)
--
Traceback (most recent call last):
  File /home/wolf/dev/py/issue9233/Lib/json/tests/test_speedups.py, line 11, 
in test_scanstring
self.assertTrue(decoder.scanstring is decoder.c_scanstring)
AssertionError: False is not true


The attached patch checks if _json is importable and skip the tests if it's not.

--
Added file: http://bugs.python.org/file21628/issue9233.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9233
___
___
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 techto...@gmail.com added the comment:

How about 'easy' keyword?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11834
___
___
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 ezio.melo...@gmail.com:


--
keywords: +easy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11834
___
___
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 rdmur...@bitdance.com 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 rep...@bugs.python.org
http://bugs.python.org/issue11834
___
___
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 techto...@gmail.com 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 rep...@bugs.python.org
http://bugs.python.org/issue11834
___
___
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 torsten.bec...@gmail.com 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 rep...@bugs.python.org
http://bugs.python.org/issue11828
___
___
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 devnull@devnull 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 rep...@bugs.python.org
http://bugs.python.org/issue9233
___
___
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 br...@python.org:


--
nosy:  -brian.curtin

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11834
___
___
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 ezio.melo...@gmail.com:


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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9233
___
___
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 br...@python.org 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 rep...@bugs.python.org
http://bugs.python.org/issue11832
___
___
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 benpaulb...@googlemail.com 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 stdin, line 2, in module
  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 stdin, line 4, in module
  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 rep...@bugs.python.org
http://bugs.python.org/issue1692335
___
___
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 belopol...@users.sourceforge.net 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 rep...@bugs.python.org
http://bugs.python.org/issue11830
___
___
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 iacobcata...@gmail.com:


--
nosy: +catalin.iacob

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3244
___
___
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 abraham.soedj...@gmail.com:

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 rep...@bugs.python.org
http://bugs.python.org/issue11835
___
___
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 devnull@devnull 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 rep...@bugs.python.org
http://bugs.python.org/issue11815
___
___
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 mer...@netwok.org:


--
nosy: +eric.araujo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11827
___
___
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 mer...@netwok.org added the comment:

Alright, thanks for replying :)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11818
___
___
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 pit...@free.fr:

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 rep...@bugs.python.org
http://bugs.python.org/issue11836
___
___
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 devnull@devnull 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 rep...@bugs.python.org
http://bugs.python.org/issue11815
___
___
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 pit...@free.fr:


--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11815
___
___
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 devnull@devnull 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 rep...@bugs.python.org
http://bugs.python.org/issue11830
___
___
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 raymond.hettin...@gmail.com added the comment:

+0 on forward porting

--
assignee: rhettinger - belopolsky

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11830
___
___
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 rdmur...@bitdance.com:


--
nosy: +mark.dickinson, skrah

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11830
___
___
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 santoso.wij...@gmail.com:


--
nosy: +santa4nt

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11835
___
___
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 axel@chaos1.de:

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 rep...@bugs.python.org
http://bugs.python.org/issue11837
___
___
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 axel@chaos1.de:


--
type: behavior - crash

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11837
___
___
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 eli...@gmail.com:


--
nosy: +eli.bendersky

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11836
___
___
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 santoso.wij...@gmail.com added the comment:

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

D:\Temp\cdll\x64\ReleaseC:\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 rep...@bugs.python.org
http://bugs.python.org/issue11835
___
___
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 tjre...@udel.edu:

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 rep...@bugs.python.org
http://bugs.python.org/issue11838
___
___
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 santoso.wij...@gmail.com added the comment:

32-bit (2.6) is fine:

D:\Temp\cdll\ReleaseC:\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', class 'ctypes.c_long'), ('b', class 'ctypes.c_long'), ('c', class 'c
types.c_long'), ('d', class 'ctypes.c_long'), ('e', class 'ctypes.c_long'),
 ('f', class 'ctypes.c_long'), ('g', class 'ctypes.c_long')]
 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 rep...@bugs.python.org
http://bugs.python.org/issue11835
___
___
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 sandro.t...@gmail.com 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 rep...@bugs.python.org
http://bugs.python.org/issue10019
___
___
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 sandro.t...@gmail.com:


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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10019
___
___
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 sandro.t...@gmail.com:


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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10019
___
___
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 sandro.t...@gmail.com 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 rep...@bugs.python.org
http://bugs.python.org/issue10019
___
___
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 jonathan.wh...@ni.com:


--
nosy: +jwhitecl

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11835
___
___
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 santoso.wij...@gmail.com 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 rep...@bugs.python.org
http://bugs.python.org/issue11835
___
___
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 tjre...@udel.edu 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 rep...@bugs.python.org
http://bugs.python.org/issue9233
___
___
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 elv...@umich.edu:

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 rep...@bugs.python.org
http://bugs.python.org/issue11839
___
___
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 eli...@gmail.com 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 rep...@bugs.python.org
http://bugs.python.org/issue11827
___
___
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 bostjan.me...@gmail.com:


--
nosy: +georg.brandl

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11806
___
___
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 sandro.t...@gmail.com:

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 rep...@bugs.python.org
http://bugs.python.org/issue11840
___
___
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 sandro.t...@gmail.com 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 rep...@bugs.python.org
http://bugs.python.org/issue11840
___
___
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 victor.stin...@haypocalc.com:


--
nosy: +haypo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11840
___
___
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 m...@egenix.com added the comment:

Sandro Tosi wrote:
 
 Sandro Tosi sandro.t...@gmail.com 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 rep...@bugs.python.org
http://bugs.python.org/issue11840
___
___
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 m...@egenix.com added the comment:

Sandro Tosi wrote:
 
 New submission from Sandro Tosi sandro.t...@gmail.com:
 
 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 rep...@bugs.python.org
http://bugs.python.org/issue11840
___
___
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 devnull@devnull 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 rep...@bugs.python.org
http://bugs.python.org/issue11186
___
___
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 sandro.t...@gmail.com added the comment:

On Tue, Apr 12, 2011 at 23:34, Marc-Andre Lemburg
rep...@bugs.python.org wrote:
 Sandro Tosi wrote:

 Sandro Tosi sandro.t...@gmail.com 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 rep...@bugs.python.org
http://bugs.python.org/issue11840
___
___
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 victor.stin...@haypocalc.com:


--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11186
___
___
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 m...@egenix.com added the comment:

Sandro Tosi wrote:
 
 Sandro Tosi sandro.t...@gmail.com added the comment:
 
 On Tue, Apr 12, 2011 at 23:34, Marc-Andre Lemburg
 rep...@bugs.python.org wrote:
 Sandro Tosi wrote:

 Sandro Tosi sandro.t...@gmail.com 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 rep...@bugs.python.org
http://bugs.python.org/issue11840
___
___
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 victor.stin...@haypocalc.com 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 rep...@bugs.python.org
http://bugs.python.org/issue11005
___
___
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 victor.stin...@haypocalc.com 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 rep...@bugs.python.org
http://bugs.python.org/issue8776
___
___
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 devnull@devnull 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 rep...@bugs.python.org
http://bugs.python.org/issue11747
___
___
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 devnull@devnull 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 rep...@bugs.python.org
http://bugs.python.org/issue11747
___
___
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 raymond.hettin...@gmail.com:


--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11747
___
___
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 victor.stin...@haypocalc.com 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 rep...@bugs.python.org
http://bugs.python.org/issue8448
___
___
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 victor.stin...@haypocalc.com 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 rep...@bugs.python.org
http://bugs.python.org/issue8429
___
___
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 raymond.hettin...@gmail.com 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 rep...@bugs.python.org
http://bugs.python.org/issue11806
___
___
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 victor.stin...@haypocalc.com added the comment:

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

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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8431
___
___
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 victor.stin...@haypocalc.com added the comment:

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

--
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8445
___
___
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 devnull@devnull 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 rep...@bugs.python.org
http://bugs.python.org/issue11825
___
___
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 victor.stin...@haypocalc.com:


--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11825
___
___
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 victor.stin...@haypocalc.com 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 rep...@bugs.python.org
http://bugs.python.org/issue11779
___
___
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 andy-pyt...@hammerhartes.de 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 rep...@bugs.python.org
http://bugs.python.org/issue11506
___
___
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 victor.stin...@haypocalc.com 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 rep...@bugs.python.org
http://bugs.python.org/issue9592
___
___
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 victor.stin...@haypocalc.com:


--
nosy:  -haypo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6715
___
___
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 santoso.wij...@gmail.com:


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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11506
___
___
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 devnull@devnull 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 rep...@bugs.python.org
http://bugs.python.org/issue11703
___
___
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 sent...@uthcode.com 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 rep...@bugs.python.org
http://bugs.python.org/issue11703
___
___
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 devnull@devnull 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 rep...@bugs.python.org
http://bugs.python.org/issue11506
___
___
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 bostjan.me...@gmail.com 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 rep...@bugs.python.org
http://bugs.python.org/issue11806
___There are more of this typos in the same chapter. Just a little below the one 
of the reported sentence. Check this out...divbr/divdivspan 
class=Apple-style-span style=font-family: sans-serif; font-size: 16px; 
line-height: 20px; quot;Assuming the Python code above is saved into a file 
called tt class=docutils literal style=background-color: rgb(236, 240, 
243); padding-top: 0px; padding-right: 1px; padding-bottom: 0px; padding-left: 
1px; font-size: 0.95em; span class=preprog.py/span/tt, it can be run 
at the !! command line !! and provides useful help messages:quot;  --gt; it 
has to be: command-line/span/div
divspan class=Apple-style-span style=font-family: sans-serif; font-size: 
16px; line-height: 20px; br/span/divdivspan class=Apple-style-span 
style=font-family: sans-serif; font-size: 16px; line-height: 20px; But then 
this.../span/div
divspan class=Apple-style-span style=font-family: sans-serif; font-size: 
16px; line-height: 20px; br/span/divdivspan class=Apple-style-span 
style=font-family: sans-serif; font-size: 16px; line-height: 20px; 
quot;When run with the appropriate arguments, it prints either the sum or 
the max of the !! command-line !! integers:quot;  --gt; here it is 
correct!/span/div
divspan class=Apple-style-span style=font-family: sans-serif; font-size: 
16px; line-height: 20px; br/span/divdivspan class=Apple-style-span 
style=font-family: sans-serif; font-size: 16px; line-height: 20px; I 
don#39;t get it. Please be consistent. Thanks./span/div
___
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 devnull@devnull 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 rep...@bugs.python.org
http://bugs.python.org/issue11703
___
___
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 sent...@uthcode.com added the comment:

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

--
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11703
___
___
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 victor.stin...@haypocalc.com 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 rep...@bugs.python.org
http://bugs.python.org/issue10496
___
___
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 victor.stin...@haypocalc.com:


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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10496
___
___
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 victor.stin...@haypocalc.com:


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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10496
___
___
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 victor.stin...@haypocalc.com:


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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10496
___
___
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 benja...@python.org added the comment:

2011/4/12 Boštjan Mejak rep...@bugs.python.org:

 Boštjan Mejak bostjan.me...@gmail.com 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 rep...@bugs.python.org
http://bugs.python.org/issue11806
___
___
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 devnull@devnull 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 rep...@bugs.python.org
http://bugs.python.org/issue10019
___
___
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 felipec...@loogica.net 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 rep...@bugs.python.org
http://bugs.python.org/issue7484
___
___
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 felipec...@loogica.net:


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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7484
___
___
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 rdmur...@bitdance.com 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 rep...@bugs.python.org
http://bugs.python.org/issue10019
___
___
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 raymond.hettin...@gmail.com 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 rep...@bugs.python.org
http://bugs.python.org/issue3056
___
___
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 devnull@devnull 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 rep...@bugs.python.org
http://bugs.python.org/issue11718
___
___
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 tjre...@udel.edu added the comment:

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

--
nosy: +terry.reedy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11506
___
___
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 devnull@devnull 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 rep...@bugs.python.org
http://bugs.python.org/issue11703
___
___
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 devnull@devnull 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 rep...@bugs.python.org
http://bugs.python.org/issue11703
___
___
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 devnull@devnull 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 rep...@bugs.python.org
http://bugs.python.org/issue11718
___
___
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 rdmur...@bitdance.com 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 rep...@bugs.python.org
http://bugs.python.org/issue7484
___
___
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 raymond.hettin...@gmail.com:


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

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



  1   2   >