[issue13425] http.client.HTTPMessage.getallmatchingheaders() always returns []

2011-11-21 Thread rohini

rohini  added the comment:

Please review the attached patch. Like getheaders, getallmatchingheaders would 
also return (header,value) tuples. It is not backward compatible with 2.7.

--
keywords: +patch
nosy: +rohini
Added file: http://bugs.python.org/file23752/13425.patch

___
Python tracker 

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



[issue13441] TestEnUSCollation.test_strxfrm() fails on Solaris

2011-11-21 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 6f9af4e3c1db by Victor Stinner in branch 'default':
Issue #13441: Disable temporary the check on the maximum character until
http://hg.python.org/cpython/rev/6f9af4e3c1db

--

___
Python tracker 

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



[issue13451] sched.py: speedup cancel() method

2011-11-21 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

Can you post your other patch too?  I would like to review both at the same 
time.

--
assignee:  -> rhettinger
components: +Library (Lib)
priority: normal -> low
type:  -> performance

___
Python tracker 

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



[issue12759] "(?P=)" input for Tools/scripts/redemo.py raises unnhandled exception

2011-11-21 Thread Masha Katsman

Masha Katsman  added the comment:

The problem with the above expression is that it does not specify a group name. 
The expression itself is not right. So, it blows up when it tries to parse the 
name. I put the check for the empty name before any processing is done.

--
Added file: http://bugs.python.org/file23751/patch_for_12759

___
Python tracker 

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



[issue13451] sched.py: speedup cancel() method

2011-11-21 Thread Giampaolo Rodola'

New submission from Giampaolo Rodola' :


# bench.py
import sched, time
events = []
scheduler = sched.scheduler(time.time, time.sleep)
for x in range(4000):
scheduler.enter(1, 1, lambda: None, ())
t = time.time()
for x in scheduler._queue:
scheduler.cancel(x)
print(time.time() - t)


Before the patch:
9.433167934417725

After the patch:
1.3120810985565186


I have another approach in mind, which avoids removing the element from the 
queue immediately, and which should be an order of magnitude faster, but I'll 
provide that as a separate patch since it poses questions about API and 
backward compatibility.

--
files: sched-cancel-speedup.patch
keywords: patch
messages: 148103
nosy: giampaolo.rodola, rhettinger, stutzbach
priority: normal
severity: normal
status: open
title: sched.py: speedup cancel() method
versions: Python 3.3
Added file: http://bugs.python.org/file23750/sched-cancel-speedup.patch

___
Python tracker 

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



[issue13405] Add DTrace probes

2011-11-21 Thread Jesús Cea Avión

Jesús Cea Avión  added the comment:

New changeset.

New probes:

- "gc-start", "gc-done": Signal Garbage Collection operations. The first get 
the generation to scan, the second gets the number of objects collected.

- "line": Called in every Python line. Parameters: module, function, linenumber.

- "instance-new-start", "instance-new-done": information about instance 
creation.

 - Old style classes: get the name of the class, and the name of the module.

 - New style classes: get the name of the class and, IF WE CAN, the name of the 
module. This is not working 100%.

- "instance-delete-start", "instance-delete-done": information about instance 
deletion.

 - Old style classes: get the name of the class, and the name of the module.

 - New Style classes: Not working yet.

Shortcomings:

- We don't trace new style instances deletion yet.

- We don't trace most C objects creation/deletion.

- When displaying newstyle instances, the module parameter can be incorrect, 
for internal types.

 - The "line" probe is called again in the first and last line of a loop when 
the loop finishes.

--

___
Python tracker 

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



[issue13450] add assertions to implement the intent in ''.format_map test

2011-11-21 Thread Eric V. Smith

Changes by Eric V. Smith :


--
assignee:  -> eric.smith

___
Python tracker 

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



[issue13093] Redundant code in PyUnicode_EncodeDecimal()

2011-11-21 Thread STINNER Victor

STINNER Victor  added the comment:

I fixed the issue in Python 2.7, 3.2 and 3.3.

See also the changeset 849e9277906a (Python 3.3).

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



[issue8646] PyUnicode_EncodeDecimal is undocumented

2011-11-21 Thread STINNER Victor

STINNER Victor  added the comment:

I added tests for PyUnicode_EncodeDecimal() and 
PyUnicode_TransformDecimalToASCII() in Python 2.7, 3.2 and 3.3 (see also issue 
#13093).

--

___
Python tracker 

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



[issue13093] Redundant code in PyUnicode_EncodeDecimal()

2011-11-21 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 0cd197f13400 by Victor Stinner in branch '2.7':
Issue #13093: Fix error handling on PyUnicode_EncodeDecimal()
http://hg.python.org/cpython/rev/0cd197f13400

--

___
Python tracker 

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



[issue13405] Add DTrace probes

2011-11-21 Thread Jesús Cea Avión

Changes by Jesús Cea Avión :


Added file: http://bugs.python.org/file23749/c64a284f4309.diff

___
Python tracker 

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



[issue13405] Add DTrace probes

2011-11-21 Thread Jesús Cea Avión

Changes by Jesús Cea Avión :


Removed file: http://bugs.python.org/file23718/62e7091812bc.diff

___
Python tracker 

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



[issue13093] Redundant code in PyUnicode_EncodeDecimal()

2011-11-21 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset f29d7d597fae by Victor Stinner in branch '3.2':
Issue #13093: Fix error handling on PyUnicode_EncodeDecimal()
http://hg.python.org/cpython/rev/f29d7d597fae

New changeset bc53c11804ab by Victor Stinner in branch 'default':
(Merge 3.2) Issue #13093: Fix error handling on PyUnicode_EncodeDecimal()
http://hg.python.org/cpython/rev/bc53c11804ab

--
nosy: +python-dev

___
Python tracker 

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



[issue13450] add assertions to implement the intent in ''.format_map test

2011-11-21 Thread akira

Changes by akira <4kir4...@gmail.com>:


Added file: 
http://bugs.python.org/file23748/correct-assertions-in-test_format_map.patch

___
Python tracker 

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



[issue13405] Add DTrace probes

2011-11-21 Thread Jesús Cea Avión

Changes by Jesús Cea Avión :


Removed file: http://bugs.python.org/file23717/7c1b63f949e7.diff

___
Python tracker 

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



[issue13450] add assertions to implement the intent in ''.format_map test

2011-11-21 Thread akira

Changes by akira <4kir4...@gmail.com>:


Removed file: 
http://bugs.python.org/file23747/correct-assertions-in-test_format_map.patch

___
Python tracker 

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



[issue13450] add assertions to implement the intent in ''.format_map test

2011-11-21 Thread akira

Changes by akira <4kir4...@gmail.com>:


--
title: fix ''.format_map test -> add assertions to implement the intent in 
''.format_map test

___
Python tracker 

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



[issue13450] fix ''.format_map test

2011-11-21 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +eric.smith, rhettinger

___
Python tracker 

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



[issue13449] sched - provide an "async" argument for run() method

2011-11-21 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

I think this would be better served by a separate method. You could call it 
e.g. run_nowait().

--
nosy: +pitrou

___
Python tracker 

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



[issue13450] fix ''.format_map test

2011-11-21 Thread akira

New submission from akira <4kir4...@gmail.com>:

It seems that some assertions in 
Lib/test/test_unicode.py:UnicodeTest.test_format_map do not implement their 
intent e.g.,

self.assertRaises(TypeError, '{'.format_map)
self.assertRaises(TypeError, '}'.format_map)
self.assertRaises(TypeError, 'a{'.format_map)
self.assertRaises(TypeError, 'a}'.format_map)
self.assertRaises(TypeError, '{a'.format_map)
self.assertRaises(TypeError, '}a'.format_map)

The intent might be to test:

  >>> '{'.format_map({})
  Traceback (most recent call last):
File "", line 1, in 
  ValueError: Single '{' encountered in format string

But it actually tests:

  >>> '{'.format_map()
  Traceback (most recent call last):
File "", line 1, in 
  TypeError: format_map() takes exactly one argument (0 given)

Provided correct-assertions-in-test_format_map.patch contains additional 
assertions e.g.,

  self.assertRaises(ValueError, '{'.format_map, {})

Old assertions might be useful so they're left untouched.

--
components: Tests
files: correct-assertions-in-test_format_map.patch
keywords: patch
messages: 148096
nosy: akira
priority: normal
severity: normal
status: open
title: fix ''.format_map test
versions: Python 3.2, Python 3.3, Python 3.4
Added file: 
http://bugs.python.org/file23747/correct-assertions-in-test_format_map.patch

___
Python tracker 

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



[issue13449] sched - provide an "async" argument for run() method

2011-11-21 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' :


--
keywords: +patch
Added file: http://bugs.python.org/file23746/sched-async.patch

___
Python tracker 

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



[issue13449] sched - provide an "async" argument for run() method

2011-11-21 Thread Giampaolo Rodola'

New submission from Giampaolo Rodola' :

If True it would run the scheduled functions due to expire soonest (if any) and 
then return.
This would make sched module usable into asynchronous applications.

--
messages: 148095
nosy: giampaolo.rodola
priority: normal
severity: normal
status: open
title: sched - provide an "async" argument for run() method
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



[issue13245] sched.py kwargs addition and default time functions

2011-11-21 Thread Giampaolo Rodola'

Giampaolo Rodola'  added the comment:

Updated patch in attachment.

--
Added file: http://bugs.python.org/file23745/issue13245.patch

___
Python tracker 

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



[issue13245] sched.py kwargs addition and default time functions

2011-11-21 Thread Giampaolo Rodola'

Giampaolo Rodola'  added the comment:

I think this should go in.
I'm going to provide a slighly modified version of the attached patch which 
includes document changes and get rid of some unit tests which are not really 
necessary in my opinion.

--
nosy: +giampaolo.rodola

___
Python tracker 

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



[issue13371] Some Carbon extensions don't build on OSX 10.7

2011-11-21 Thread Ned Deily

Ned Deily  added the comment:

LGTM

--

___
Python tracker 

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



[issue13445] Enable linking the module pysqlite with Berkeley DB SQL instead of SQLite

2011-11-21 Thread Lauren Foutz

Lauren Foutz  added the comment:

Berkeley DB SQL is a separate library from Berkeley DB.  It is an SQL engine 
that uses the same API as SQLite and uses Berkeley DB as its backend.  The 
modules that support Berkeley DB lack all of the SQL features and cannot be 
used to operate on a Berkeley DB SQL databases.

--

___
Python tracker 

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



[issue13448] PEP 3155 implementation

2011-11-21 Thread STINNER Victor

STINNER Victor  added the comment:

I just have a comment: "XXX" should be replaced in "Python 3.3a0  3200 XXX".

--
nosy: +haypo

___
Python tracker 

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



[issue13445] Enable linking the module pysqlite with Berkeley DB SQL instead of SQLite

2011-11-21 Thread Ned Deily

Ned Deily  added the comment:

Support for Berkeley DB (the bsddb) was removed from the standard library in 
Python 3 and replaced by a third-party module (bsddb3) listed in PyPI which is 
better able to keep up with changes in the various BDB releases.  

http://docs.python.org/py3k/whatsnew/3.0.html#library-changes
http://pypi.python.org/pypi/bsddb3/

What would be the reason for bringing back a dependency on BDB into the 
standard library?  Wouldn't this better be handled in the standalone pysqlite 
package?

--
nosy: +jcea, ned.deily

___
Python tracker 

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



[issue11149] [PATCH] Configure should enable -fwrapv for clang

2011-11-21 Thread Joshua Root

Joshua Root  added the comment:

The fix that was committed doesn't work if CC is a full path like 
/usr/bin/clang.

--
nosy: +jmr

___
Python tracker 

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



[issue13448] PEP 3155 implementation

2011-11-21 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
keywords: +patch
Added file: http://bugs.python.org/file23744/baec10c6dcd4.diff

___
Python tracker 

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



[issue13448] PEP 3155 implementation

2011-11-21 Thread Antoine Pitrou

New submission from Antoine Pitrou :

Here is an issue covering PEP 3155 implementation. Hopefully a "review" link 
will appear in front of the hg repo URL.

--
components: Interpreter Core
hgrepos: 91
messages: 148087
nosy: ncoghlan, pitrou
priority: normal
severity: normal
stage: patch review
status: open
title: PEP 3155 implementation
type: feature request
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



[issue12328] multiprocessing's overlapped PipeConnection on Windows

2011-11-21 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

I've re-added the fast uncontended path in semaphore.c and committed 
sigint_event.patch. Now I'm gonna take a look at pipe_poll_fix.patch...

--
stage:  -> patch review
versions:  -Python 2.6, 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



[issue12328] multiprocessing's overlapped PipeConnection on Windows

2011-11-21 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 08953a04b2e6 by Antoine Pitrou in branch 'default':
Issue #12328: Under Windows, refactor handling of Ctrl-C events and
http://hg.python.org/cpython/rev/08953a04b2e6

--
nosy: +python-dev

___
Python tracker 

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



[issue10621] >>> 1 + 2j --> (1 + 2j) and not (1+2j)

2011-11-21 Thread Guido van Rossum

Guido van Rossum  added the comment:

@Retro, stop reopening bugs. This is very much a matter of personal taste and 
the existing way is fine.

--
resolution: remind -> 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



[issue10557] Malformed error message from float()

2011-11-21 Thread STINNER Victor

Changes by STINNER Victor :


--
versions: +Python 3.3 -Python 3.1

___
Python tracker 

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



[issue12618] py_compile cannot create files in current directory

2011-11-21 Thread Eric Snow

Changes by Eric Snow :


--
nosy: +eric.snow

___
Python tracker 

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



[issue10562] Change 'j' for imaginary unit into an 'i'

2011-11-21 Thread Guido van Rossum

Guido van Rossum  added the comment:

This will not be fixed. For one thing, the letter 'i' or upper case 'I' look 
too much like digits. The way numbers are parsed either by the language parser 
(in source code) or by the built-in functions (int, float, complex) should not 
be localizable or configurable in any way; that's asking for huge 
disappointments down the road. If you want to parse complex numbers using 'i' 
instead of 'j', you have plenty of solutions available already.

--
nosy: +gvanrossum

___
Python tracker 

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



[issue13445] Enable linking the module pysqlite with Berkeley DB SQL instead of SQLite

2011-11-21 Thread Eric Snow

Changes by Eric Snow :


--
nosy: +eric.snow

___
Python tracker 

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



[issue13402] Document absoluteness of sys.executable

2011-11-21 Thread Eric Snow

Changes by Eric Snow :


--
nosy: +eric.snow

___
Python tracker 

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



[issue13411] Hashable memoryviews

2011-11-21 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Fixed, thanks.

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



[issue10562] Change 'j' for imaginary unit into an 'i'

2011-11-21 Thread Eric Snow

Eric Snow  added the comment:

@brian.curtin: +1

@Retro: as noted in #10621, please take this to python-id...@python.org

--
nosy: +eric.snow

___
Python tracker 

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



[issue13411] Hashable memoryviews

2011-11-21 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 215690b782f8 by Antoine Pitrou in branch 'default':
Issue #13411: memoryview objects are now hashable when the underlying object is 
hashable.
http://hg.python.org/cpython/rev/215690b782f8

--
nosy: +python-dev

___
Python tracker 

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



[issue10621] >>> 1 + 2j --> (1 + 2j) and not (1+2j)

2011-11-21 Thread Eric Snow

Eric Snow  added the comment:

@eric.smith: +1

@Retro: If you are intent on pushing this, please take it to 
python-id...@python.org.  However, judging from the response in this ticket and 
#10562, you won't get much traction.

--
nosy: +eric.snow

___
Python tracker 

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



[issue13417] faster utf-8 decoding

2011-11-21 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Thanks for the review, patch committed now (with bogus comments removed).

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



[issue10621] >>> 1 + 2j --> (1 + 2j) and not (1+2j)

2011-11-21 Thread Eric V. Smith

Eric V. Smith  added the comment:

I'm -1 on this change. I think all the core devs who have commented on it here 
are -1 or -0. If you really want to lobby for this change, I suggest starting a 
discussion on python-dev.

My position is that I think it would indeed look nicer, but the breakage 
doesn't justify the small improvement.

--

___
Python tracker 

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



[issue13417] faster utf-8 decoding

2011-11-21 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 8e6c4acaf530 by Antoine Pitrou in branch 'default':
Issue #13417: speed up utf-8 decoding by around 2x for the non-fully-ASCII case.
http://hg.python.org/cpython/rev/8e6c4acaf530

--
nosy: +python-dev

___
Python tracker 

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



[issue13322] buffered read() and write() does not raise BlockingIOError

2011-11-21 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset ac2c4c62b486 by Antoine Pitrou in branch '3.2':
Issue #13322: Fix BufferedWriter.write() to ensure that BlockingIOError is
http://hg.python.org/cpython/rev/ac2c4c62b486

New changeset 3cd1985ed04f by Antoine Pitrou in branch 'default':
Issue #13322: Fix BufferedWriter.write() to ensure that BlockingIOError is
http://hg.python.org/cpython/rev/3cd1985ed04f

New changeset e84e17643eeb by Antoine Pitrou in branch '2.7':
Issue #13322: Fix BufferedWriter.write() to ensure that BlockingIOError is
http://hg.python.org/cpython/rev/e84e17643eeb

--
nosy: +python-dev

___
Python tracker 

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



[issue10621] >>> 1 + 2j --> (1 + 2j) and not (1+2j)

2011-11-21 Thread Boštjan Mejak

Boštjan Mejak  added the comment:

Make the output of a complex expression include spaces around the operator. So, 
for example, (1+2j) should be outputted as (1 + 2j). Make this happen in Python 
3.3.

--
nosy: +gvanrossum
resolution: wont fix -> remind
status: closed -> open

___
Python tracker 

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



[issue10562] Change 'j' for imaginary unit into an 'i'

2011-11-21 Thread Brian Curtin

Brian Curtin  added the comment:

Please stop re-opening this thread. The reasons it will not be fixed have been 
laid out.

--
nosy: +brian.curtin -gvanrossum
resolution: remind -> 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



[issue10562] Change 'j' for imaginary unit into an 'i'

2011-11-21 Thread Boštjan Mejak

Changes by Boštjan Mejak :


--
nosy: +gvanrossum

___
Python tracker 

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



[issue10562] Change 'j' for imaginary unit into an 'i'

2011-11-21 Thread Boštjan Mejak

Changes by Boštjan Mejak :


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

___
Python tracker 

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



[issue10562] Change 'j' for imaginary unit into an 'i'

2011-11-21 Thread Boštjan Mejak

Boštjan Mejak  added the comment:

Please fix this in Python 3.3 and don't forget to fix the complex() 
function/method as well.

--

___
Python tracker 

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



[issue10562] Change 'j' for imaginary unit into an 'i'

2011-11-21 Thread Brian Curtin

Changes by Brian Curtin :


--
resolution: remind -> 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



[issue10562] Change 'j' for imaginary unit into an 'i'

2011-11-21 Thread Boštjan Mejak

Boštjan Mejak  added the comment:

It's stupid that the imaginary unit in Python is denoted by a "j" just for 
ambiguity reasons that "i" can be mistaken with a "1" or an "l". It's true that 
"1" and "l" can look the same in some fonts, but that is *certainly not true* 
for the small letter "i".

Just fix the "j" into an "i" already.

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

___
Python tracker 

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



[issue12759] "(?P=)" input for Tools/scripts/redemo.py raises unnhandled exception

2011-11-21 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



[issue12759] "(?P=)" input for Tools/scripts/redemo.py raises unnhandled exception

2011-11-21 Thread Masha Katsman

Masha Katsman  added the comment:

I am working on the patch. The fix is ready. Will be delivered shortly.
It is also broken when I specify (?P<>) pattern

--
nosy: +mashayk

___
Python tracker 

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



[issue8270] Should socket.PF_PACKET be removed, in favor of socket.AF_PACKET?

2011-11-21 Thread Charles-François Natali

Charles-François Natali  added the comment:

There are now more protocol families defined (PF_RDS, PF_CAN), etc.
Since both AF_ and PF_ are valid (see 
http://en.wikipedia.org/wiki/Berkeley_sockets#Protocol_and_address_families for 
more information), and there is so much code out there in the wild using either 
form, let's just keep it that way.

--
nosy: +neologix
resolution:  -> rejected
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



[issue9530] integer undefined behaviors

2011-11-21 Thread John Regehr

John Regehr  added the comment:

Hi Mark, yes you can run the overflow checker but "easy instructions" depends 
on whether you feel like building your own LLVM.  It is not at all difficult, 
but it's certainly not as easy as "apt-get install ...".

Patch and instructions are here:

  http://embed.cs.utah.edu/ioc/

If/when we get this into LLVM (the earliest possible release containing IOC 
will be 3.1), I'll let you know.  Thanks again.

--

___
Python tracker 

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



[issue12277] Missing comma in os.walk docs

2011-11-21 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

The reason is simply that 2.6 basically unmaintained.

--
nosy: +benjamin.peterson

___
Python tracker 

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



[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2011-11-21 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> Firstly, I don't think it makes any sense to set encoding information
> globally for the Popen object. As a simple example, consider using
> Python to write a test suite for the iconv command line tool: there's
> only one Popen instance (for the iconv call), but different encodings
> for stdin and stdout.

Isn't that the exception rather than the rule? I think it actually makes
sense, in at least 99.83% of cases ;-), to have a common encoding
setting for all streams.
(I'm not sure about the "errors" setting, though: should we use strict
for stdin/stdout and backslashreplace for stderr, as the interpreter
does?)

Perhaps the common case should be made extra easy.

--

___
Python tracker 

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



[issue12156] test_multiprocessing.test_notify_all() timeout (1 hour) on FreeBSD 7.2

2011-11-21 Thread STINNER Victor

STINNER Victor  added the comment:

I tried test_multi_sem-1.diff on "x86 FreeBSD 7.2 3.x" buildbot: the patch 
works as expected, the test suite is skipped.

A minor nit: can you write the number of semaphore in the skip message? Except 
of this nit, the patch looks good to me (and I prefer test_multi_sem-1.diff 
over test_multi_sem.diff).

--

___
Python tracker 

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



[issue13447] Add tests for Tools/scripts/reindent.py

2011-11-21 Thread Ezio Melotti

Ezio Melotti  added the comment:

+1

What you describe sounds all good to me, except that I would keep all tests in 
the same dir (i.e. Tools/tests (or Tools/test?)) instead of having different 
test dirs for each subdir (so test_pygettext.py would go in Tools/tests and not 
in Tools/i18n/tests).

--
nosy: +ezio.melotti
stage:  -> test needed

___
Python tracker 

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



[issue12930] reindent.py inserts spaces in multiline literals

2011-11-21 Thread Éric Araujo

Éric Araujo  added the comment:

Thanks, I’ll make time to review the change this week.

--
dependencies: +Add tests for Tools/scripts/reindent.py

___
Python tracker 

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



[issue13447] Add tests for Tools/scripts/reindent.py

2011-11-21 Thread Éric Araujo

New submission from Éric Araujo :

When people find bugs in reindent.py (#12930 is a recent one), we have to try 
to reproduce the bug manually, apply a fix and test manually again.  The 
alternative is to only read the code and trust that it works.  I find both of 
these positions unsatisfactory and propose to add unit tests for the script.  
I’m opening this report to gather votes, and if they’re positive I’ll proceed 
with a patch and other bug reports for the other most used scripts (we have a 
number of reports for pygettext and msgfmt for example; I am not proposing 
adding tests for all, or even most, scripts).

Even if these scripts are not part of the stdlib and not officially documented 
or supported, we do ship them and use them (reindent from patchcheck and 
Mercurial hooks for example), so I really think we need unit tests to know that 
they work as intended.  Then we’ll be able to commit fixes and other changes 
serenely.

Implementation idea: The tests would go in Tools/scripts/tests/test_reindent.py 
and a short file in Lib/test/test_scripts.py would run them as part of the test 
suite if they exist (so that running tests from an installed Python without 
Tools dir just skips test_scripts).  For scripts that are in another Tools 
subdir, like Tools/i18n/pygettext.py, I’d put them in 
Tools/i18n/tests/test_pygettext.py.

--
components: Demos and Tools, Tests
messages: 148062
nosy: eric.araujo
priority: normal
severity: normal
status: open
title: Add tests for Tools/scripts/reindent.py
versions: Python 2.7, 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



[issue13441] TestEnUSCollation.test_strxfrm() fails on Solaris

2011-11-21 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset d6d15fcf5eb6 by Victor Stinner in branch 'default':
Issue #13441: Reenable strxfrm() tests on Solaris
http://hg.python.org/cpython/rev/d6d15fcf5eb6

--

___
Python tracker 

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



[issue13446] imaplib, fetch: improper behaviour on read-only selected mailboxes

2011-11-21 Thread Charalampos Nikolaou

New submission from Charalampos Nikolaou :

I would like to report a misbehaviour on the fetch command of imaplib when used 
with mailboxes that have been opened as read-only. In such cases, when you 
fetch a message (using for instance RFC822), the mail is not marked as read 
(i.e., the flag of the respective message is not set to 'seen'). I have only 
tested with IMAP over SSL with the server of my organization on which I don't 
have administration permissions and gmail.

System details

Python: 2.5, 2.6, 2.7.2, 3.0, 3.1, 3.2
Server: Cyrus IMAP4 v2.1.18 and imap.gmail.com

Pseudocode to reproduce the problem:
---
imap = imaplib.IMAP4_SSL(imap_server)
imap.connect(user, pass)
imap.select(mailbox, readonly=True)
imap.search(None, 'Unseen')
imap.fetch(mid, 'RFC822')
imap.close()
imap.logout()

After executing the above code, the message with id mid will not have been 
marked as read, while it should have been.

Other relevant information:
-
Access List for my readonly mailbox: group:1 lrsw group:2 p group:3 lrsp 
group:4 lrswip group:5 lrswipd group:6 lrswipd group:7 lrsw group:8 lrsw 
group:9 p group:10 p group:11 lrsp group:12 lrsp group:13 lrswip group:14 
lrswip group:15 lrswipd group:16 lrswipd group:17 lrswipd group:18 lrswipd

I have to mention that the above access list is the same with the one of 
another mailbox which is read/write. I mention this just to make clear that the 
access list does not play any role in this problem.

Hope I haven't forgotten anything. In any case, ask me.

--
components: Library (Lib)
messages: 148060
nosy: char.nikolaou
priority: normal
severity: normal
status: open
title: imaplib, fetch: improper behaviour on read-only selected mailboxes
type: behavior
versions: Python 2.6, 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



[issue13445] Enable linking the module pysqlite with Berkeley DB SQL instead of SQLite

2011-11-21 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +ghaering
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



[issue13445] Enable linking the module pysqlite with Berkeley DB SQL instead of SQLite

2011-11-21 Thread Lauren Foutz

Lauren Foutz  added the comment:

Before the pysqlite module was made standard it could be edited to link with 
Berkeley DB SQL instead of SQLite.  I am requesting that the Python build add 
the ability to link with BDBSQL instead of SQLite.

Below is a description of how to link pysqlite with BDBSQL


Download and unpack the latest version of pysqlite.
Download and unpack the latest release of Berkeley Db (at least db-5.0 or 
higher).
Build bdb using the following:
cd db/build_unix
../dist/configure --enable-sql-compat --prefix=
make
make install

Next change to the top pysqlite directory. There edit the file setup.cfg to the 
following:
[build_ext]
#define=
include_dirs=/include
library_dirs=/lib
libraries=sqlite3
define=SQLITE_OMIT_LOAD_EXTENSION

Note, make sure you uncomment the lines with "include_dirs" and "library_dirs"

Next, build and install the python sqlite3 library using:
python setup.py build
python setup.py install

--

___
Python tracker 

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



[issue13445] Enable linking the module pysqlite with Berkeley DB SQL instead of SQLite

2011-11-21 Thread Lauren Foutz

New submission from Lauren Foutz :

Before the pysqlite module was made standard it could be edited to link with 
Berkeley DB SQL instead of SQLite.  I am requesting that the Python build add 
the ability to link with BDBSQL instead of SQLite.

--
components: Build
messages: 148058
nosy: Lauren.Foutz
priority: normal
severity: normal
status: open
title: Enable linking the module pysqlite with Berkeley DB SQL instead of SQLite
type: feature request

___
Python tracker 

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



[issue13420] newer() function in dep_util.py discard changes in the same second

2011-11-21 Thread David Amian

David Amian  added the comment:

2011/11/18 Éric Araujo 

>
> Éric Araujo  added the comment:
>
> > I've a project, in the setup.py file, I've a function called
> update_prefix, that updates the
> > 'path_project' variable with prefix arguments from setup.py
> > If you runs setup.py with --prefix=/usr, then the file in
> 'projectname/projectnameconfig.py' is
> > modified changing the 'path_project' variable from 
> > @PREFIX@+"share/projectname"
> to
> > '/usr/share/projectname'. If you runs setup.py without prefix arguments,
> the prefix is '/usr/local'.
>
> Did you write a custom 'install' class or are you for example looking at
> sys.argv to decide whether to run your function?  If it’s not implemented
> as a distutils command, it’s not surprising that it does not integrate well.
>

Really I've a function to update prefix based on sys.argv but i changed
this using a custom class command and the same issue occurs

>
> > [...]
> > That is cause of the issue, that I explain in the early comment, I fixed
> it rounding to two decimals
> > instead of rounding to integer.
>
> Okay.  Can you make sure that this is the source of the problem, for
> example by adding time.sleep(1) between build and install?
>

I puts a time.sleep(1) bewteen 'setup.py build' and 'setup.py install' and
I got these results:

*Without waiting:

$debuild -us -uc
[...]
mkdir -p debian/python-module-stampdir
cd . && \
python setup.py build \
--build-base="/tmp/pdal/pdal2-0.3.1/./build"
running build
running build_py
copying pdal/pdalconfig.py -> build/lib.linux-i686-2.7/pdal
running build_scripts
[...]
python setup.py install \
--root="/tmp/pdal/pdal2-0.3.1/debian/pdal2/" \
--install-purelib=/usr/lib/python2.7/site-packages/ \
-f --prefix=/usr
[...]
running build
running build_py
running build_scripts
[...]

$

The stats of files are:

File: «pdal/pdalconfig.py»
Modify: 2011-11-21 13:44:52.497971724 +0100

File: «build/lib.linux-i686-2.7/pdal/pdalconfig.py»
Modify: 2011-11-21 13:44:52.0 +0100

It doesn't copy in the install step because st_mtimes in newer() are the
same:
ST_MTIME-source- 1321879492
ST_MTIME-target- 1321879492

*Waiting a second between build and install:

$debuild -us -uc
[...]
mkdir -p debian/python-module-stampdir
cd . && \
python setup.py build \
--build-base="/tmp/pdal/pdal2-0.3.1/./build"
running build
running build_py
copying pdal/pdalconfig.py -> build/lib.linux-i686-2.7/pdal
running build_scripts
[...]
python setup.py install \
--root="/tmp/pdal/pdal2-0.3.1/debian/pdal2/" \
--install-purelib=/usr/lib/python2.7/site-packages/ \
-f --prefix=/usr
[...]
running build
running build_py
copying pdal/pdalconfig.py -> build/lib.linux-i686-2.7/pdal
running build_scripts
[...]

$

Obviously the file has been copied as st_mtimes in newer() differ by a
second
ST_MTIME-source- 1321879603
ST_MTIME-target- 1321879602

>
> --
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue12890] cgitb displays tags when executed in text mode

2011-11-21 Thread Éric Araujo

Éric Araujo  added the comment:

Latest patch is good to go.

--
versions: +Python 2.7, Python 3.2

___
Python tracker 

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



[issue12890] cgitb displays tags when executed in text mode

2011-11-21 Thread Éric Araujo

Changes by Éric Araujo :


Removed file: http://bugs.python.org/file23737/head-cgitb-display.patch

___
Python tracker 

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



[issue13444] closed stdout causes error on stderr when the interpreter unconditionally flushes on shutdown

2011-11-21 Thread Ronny Pfannschmidt

New submission from Ronny Pfannschmidt :

not sure if this is to be considered a bug,
but python3.2 tries to flush sys.stdout on shutdown, even if its closed

$ python3.2 -c 'import sys;sys.stdout.close()'
Exception ValueError: 'I/O operation on closed file.' in <_io.TextIOWrapper 
name='' mode='w' encoding='ANSI_X3.4-1968'> ignored

its related to how Issue #5319 was fixed

--
components: Interpreter Core
messages: 148055
nosy: Ronny.Pfannschmidt, georg.brandl, mkc, pitrou, terry.reedy
priority: normal
severity: normal
status: open
title: closed stdout causes error on stderr when the interpreter 
unconditionally flushes on shutdown
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



[issue13441] TestEnUSCollation.test_strxfrm() fails on Solaris

2011-11-21 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy:  -pitrou

___
Python tracker 

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



[issue13441] TestEnUSCollation.test_strxfrm() fails on Solaris

2011-11-21 Thread STINNER Victor

STINNER Victor  added the comment:

Here is a more complete output. localeconv() fails in the hu_HU locale for the 
"thousands_sep" field: localeconv() returns b'\xa0' which is decoded as the 
wchar_t* string: {U+3020} (len=1). This is an invalid character
---
[ 54/361/3] test__locale
Decode wchar_t {U+0043} (len=1)
SET LOCALE "es_UY"
SET LOCALE "fr_FR"
SET LOCALE "fi_FI"
SET LOCALE "es_CO"
SET LOCALE "pt_PT"
SET LOCALE "it_IT"
SET LOCALE "et_EE"
SET LOCALE "es_PY"
SET LOCALE "no_NO"
SET LOCALE "nl_NL"
SET LOCALE "lv_LV"
SET LOCALE "el_GR"
SET LOCALE "be_BY"
SET LOCALE "fr_BE"
SET LOCALE "ro_RO"
SET LOCALE "ru_UA"
SET LOCALE "ru_RU"
SET LOCALE "es_VE"
SET LOCALE "ca_ES"
SET LOCALE "se_NO"
SET LOCALE "es_EC"
SET LOCALE "id_ID"
SET LOCALE "ka_GE"
SET LOCALE "es_CL"
SET LOCALE "hu_HU"
SET LOCALE -> hu_HU
Decode wchar_t {U+0068 U+0075 U+005f U+0048 U+0055} (len=5)
SET LOCALE "hu_HU"
SET LOCALE -> hu_HU
Decode wchar_t {U+0068 U+0075 U+005f U+0048 U+0055} (len=5)
Decode wchar_t {U+002c} (len=1)
Decode localeconv() decimal_point: {0x2c} (len=1)
Decode wchar_t {U+002c} (len=1)
Decode localeconv() thousands_sep: {0xa0} (len=1)
Decode wchar_t {U+3020} (len=1)
Invalid Unicode string! {U+3020} (len=1)
Fatal Python error: Aborted

Current thread 0x0001:
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/test/test__locale.py", 
line 105 in test_lc_numeric_basic
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/unittest/case.py", line 
385 in _executeTestPart
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/unittest/case.py", line 
440 in run
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/unittest/case.py", line 
492 in __call__
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/unittest/suite.py", line 
105 in run
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/unittest/suite.py", line 
67 in __call__
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/unittest/suite.py", line 
105 in run
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/unittest/suite.py", line 
67 in __call__
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/unittest/runner.py", 
line 168 in run
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/test/support.py", line 
1368 in _run_suite
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/test/support.py", line 
1402 in run_unittest
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/test/test__locale.py", 
line 141 in test_main
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/test/regrtest.py", line 
1203 in runtest_inner
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/test/regrtest.py", line 
906 in runtest
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/test/regrtest.py", line 
709 in main
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/test/__main__.py", line 
13 in 
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/runpy.py", line 73 in 
_run_code
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/runpy.py", line 160 in 
_run_module_as_main
*** Error code 134
---

--

___
Python tracker 

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



[issue12277] Missing comma in os.walk docs

2011-11-21 Thread Ezio Melotti

Ezio Melotti  added the comment:

It's not because of the security risk, but simply because the docs for 2.6 are 
not rebuilt automatically anymore.  So, even if we fix it on 2.6, no one will 
see the change unless someone goes and triggers a full doc rebuild manually.  A 
missing comma is not enough to justify this extra work.

--

___
Python tracker 

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



[issue9321] CGIHTTPServer cleanup htbin

2011-11-21 Thread Éric Araujo

Éric Araujo  added the comment:

Google does find matches for “CGI /htbin”.  Given that CGI is an obsolete 
technology anyway, I don’t see value in removing that, and propose that we 
reject this request.

--
nosy: +eric.araujo
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



[issue13441] TestEnUSCollation.test_strxfrm() fails on Solaris

2011-11-21 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset acda16de630c by Victor Stinner in branch 'default':
Remove temporary hacks for the issue #13441
http://hg.python.org/cpython/rev/acda16de630c

--

___
Python tracker 

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



[issue12277] Missing comma in os.walk docs

2011-11-21 Thread Boštjan Mejak

Boštjan Mejak  added the comment:

That is simply idiotic. Your way of fixing things is idiotic. When you
clearly see the missing comma and you fix it everywhere else but 2.6
because "2.6 only receives security fixes" as if adding a comma to the
documentation would create a big security hole. That's an act of an idiot.
I am sorry, but that is how I see it.

--

___
Python tracker 

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



[issue12618] py_compile cannot create files in current directory

2011-11-21 Thread Éric Araujo

Éric Araujo  added the comment:

Thanks for the patch Meador, I hadn’t realized we had no tests for py_compile 
(it is however used in test_import and test_compileall).  I think it would be 
nice to commit the tests first (except for the one that’s the object of this 
bug report) in order to have a baseline, and then see about fixing this bug.  
I’ll do that in a few days if nobody objects.

I’m not sure there would be no negative side-effects to using os.path.abspath; 
we don’t know what people do with symlinks and relative paths out there, so I’d 
prefer adding a safe special case* rather than always calling abspath.  What do 
you think?


* Instead of using len, something like this would be clear IMO:

  if parent:  # empty string means current directory, skip creating the dir
  os.makedirs(parent)

--

___
Python tracker 

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



[issue13441] TestEnUSCollation.test_strxfrm() fails on Solaris

2011-11-21 Thread STINNER Victor

STINNER Victor  added the comment:

I dumped some values to try to debug this issue. Last failure in 
test__locale.test_lc_numeric_basic() on localeconv():

[ 25/361] test_float
Decode localeconv() decimal_point: {0x2c} (len=1)
Decode localeconv() thousands_sep: {0x2e} (len=1)
Decode localeconv() int_curr_symbol: {} (len=0)
Decode localeconv() currency_symbol: {} (len=0)
Decode localeconv() mon_decimal_point: {} (len=0)
Decode localeconv() mon_thousands_sep: {} (len=0)
Decode localeconv() positive_sign: {} (len=0)
Decode localeconv() negative_sign: {} (len=0)
...
[100/361] test__locale
Decode localeconv() decimal_point: {0x2c} (len=1)
Decode localeconv() thousands_sep: {0xa0} (len=1)
Invalid Unicode string! {U+3020} (len=1)
Fatal Python error: Aborted


--

___
Python tracker 

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



[issue13316] build_py_2to3 does not convert when there was an error in the last run

2011-11-21 Thread Éric Araujo

Éric Araujo  added the comment:

> It does stop with an error message.  But when I reinvoke the command, 
> converting is
> skipped (because the file is already copied).
Then that’s the bug: In case of error, the file in the build dir should be 
removed.

By the way, I think this was not reported before because people probably edit 
the file when there is a 2to3 error, and so it is detected as modified and then 
copied again.

--
assignee: tarek -> eric.araujo
type:  -> behavior

___
Python tracker 

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



[issue13441] TestEnUSCollation.test_strxfrm() fails on Solaris

2011-11-21 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset d1b3b1d00811 by Victor Stinner in branch 'default':
Another temporary hack to debug the issue #13441
http://hg.python.org/cpython/rev/d1b3b1d00811

--

___
Python tracker 

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



[issue13418] Embedded Python memory leak

2011-11-21 Thread Asesh

Asesh  added the comment:

@Martin v. Löwis (loewis): thanks, I will try to do so in my free time

--

___
Python tracker 

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



[issue13317] building with 2to3 generates wrong import paths because build_ext is run after build_py

2011-11-21 Thread Éric Araujo

Éric Araujo  added the comment:

Ah, thanks for clarifying, I didn’t understand what you meant with local/global 
but now I see it’s about absolute imports and explicit relative imports.  (I 
don’t remember ever reading that terminology before looking at fix_import.)

I’m adding the “easy” keyword because it should not be too hard to write tests 
for this, with the examples and helpers we already have in the test suite and 
given that I’m available for help.

--
assignee: tarek -> eric.araujo
components: +Distutils2 -2to3 (2.x to 3.x conversion tool)
keywords: +easy
nosy: +alexis
stage:  -> needs patch
type:  -> behavior
versions: +3rd party, 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



[issue12890] cgitb displays tags when executed in text mode

2011-11-21 Thread Jeff McNeil

Changes by Jeff McNeil :


Added file: http://bugs.python.org/file23743/head-cgitb-display.patch

___
Python tracker 

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



[issue13402] Document absoluteness of sys.executable

2011-11-21 Thread Petri Lehtinen

Petri Lehtinen  added the comment:

Éric Araujo wrote:
> Patch looks good, but are you 100% sure that sys.executable is
> always absolute? (On all OSes, under multiprocessing, etc?)

Well, its value is computed by a function named
Py_GetProgramFullPath(), so I'm quite sure. I had a quick look on what
the function is doing, but it was quite complicated. I can check it
better if needed.

--

___
Python tracker 

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



[issue12890] cgitb displays tags when executed in text mode

2011-11-21 Thread Éric Araujo

Changes by Éric Araujo :


Removed file: http://bugs.python.org/file23731/head-cgitb-display-tests.patch

___
Python tracker 

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



[issue12890] cgitb displays tags when executed in text mode

2011-11-21 Thread Éric Araujo

Changes by Éric Araujo :


Removed file: http://bugs.python.org/file23091/head-cgitb-display.patch

___
Python tracker 

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



[issue13402] Document absoluteness of sys.executable

2011-11-21 Thread Éric Araujo

Éric Araujo  added the comment:

Patch looks good, but are you 100% sure that sys.executable is always absolute? 
 (On all OSes, under multiprocessing, etc?)

--

___
Python tracker 

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



[issue11751] Increase distutils.filelist / packaging.manifest test coverage

2011-11-21 Thread Éric Araujo

Éric Araujo  added the comment:

Did the second idea as suggested by Ezio.

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



[issue13387] suggest assertIs(type(obj), cls) for exact type checking

2011-11-21 Thread Éric Araujo

Éric Araujo  added the comment:

Your latest proposal is better.  I would prefer mentioning subclasses, but 
don’t feel strongly about it.  One markup nit: I’d use ``code`` instead of 
(ab)using :func:; the doc for assertIs is just a few paragraphs above, it won’t 
be hard to find.

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

___
Python tracker 

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



[issue13441] TestEnUSCollation.test_strxfrm() fails on Solaris

2011-11-21 Thread STINNER Victor

STINNER Victor  added the comment:

> No, they should be rejected. Allowing them in some specific
> places might cause them to leak somewhere else and cause problems,
> so I'd rather stick with that range and reject all the chars
> >U+10 everywhere.

That's why I added a (debug) check to reject them. I don't think that your 
UTF-8 encoder support such character some example. All functions assumes that 
the maximum character is U+10.

If they should be rejected, a solution is to modify strxfrm() to return a list 
of integer (of code points) instead of a string.

--

___
Python tracker 

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



[issue13441] TestEnUSCollation.test_strxfrm() fails on Solaris

2011-11-21 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset a19dad38d4e8 by Victor Stinner in branch 'default':
Issue #13441: _PyUnicode_CheckConsistency() dumps the string if the maximum
http://hg.python.org/cpython/rev/a19dad38d4e8

--

___
Python tracker 

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



[issue11751] Increase distutils.filelist / packaging.manifest test coverage

2011-11-21 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 723517bf6708 by Éric Araujo in branch 'default':
Make test_manifest pass on 2.4 and 2.5 (fixes #11751).
http://hg.python.org/distutils2/rev/723517bf6708

--

___
Python tracker 

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



[issue13170] distutils2 test failures

2011-11-21 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset c1b1b537196d by Éric Araujo in branch 'default':
Remove usage of stdlib shutil.
http://hg.python.org/distutils2/rev/c1b1b537196d

--

___
Python tracker 

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



[issue9530] integer undefined behaviors

2011-11-21 Thread Mark Dickinson

Mark Dickinson  added the comment:

> I'd be happy to re-run the tests sometime.

Yes, please!  Alternatively, if there are easy instructions for us to re-run 
these tests, that would be valuable, too.  Do I understand correctly that you 
have a publicly available extension to LLVM for this?

> Basically it'll act as a more powerful -ftrapv, and the error message will be 
> much better than "aborted".

Indeed---there were a number of places where tracking down the exact cause of 
the error using a combination of -ftrapv and gdb was painful. :-)

I'm aware of two current issues: one in Python/formatter_unicode.c, and one in 
Modules/timemodule.c.  I'll try to fix these shortly.

--

___
Python tracker 

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



[issue13441] TestEnUSCollation.test_strxfrm() fails on Solaris

2011-11-21 Thread Ezio Melotti

Ezio Melotti  added the comment:

> Is Python supposed to support characters outside U+-U+10 range?

No, they should be rejected.  Allowing them in some specific places might cause 
them to leak somewhere else and cause problems, so I'd rather stick with that 
range and reject all the chars >U+10 everywhere.

--

___
Python tracker 

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



[issue13443] wrong links and examples in the functional HOWTO

2011-11-21 Thread Ezio Melotti

Changes by Ezio Melotti :


--
keywords: +easy
nosy: +ezio.melotti
stage:  -> needs patch

___
Python tracker 

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



[issue13437] Provide links to the source code for every module in the documentation

2011-11-21 Thread Ezio Melotti

Ezio Melotti  added the comment:

There are usually two cases that lead me to check the code:
1) The documentation is incomplete, not clear, missing, or plain wrong;
2) I want to check how something is implemented, mostly just out of curiosity;

Regarding the first case, in theory the docs should be informative and correct 
enough to not require you to go and check the code.  If they aren't you can 
report issues and we can improve it.
The second case applies to pretty much any module.  Linking to the code might 
also expose some internal details that should be just ignored by the user.  The 
code in some modules is also pretty old and might be a "bad" example (because 
it doesn't use modern conventions).
Some of the modules you listed are actually packages, so that would require to 
link to several files.

--

___
Python tracker 

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



  1   2   >