[issue8641] IDLE 3 doesn't highlights b"", but u""

2010-05-06 Thread Puzzlet Chung

New submission from Puzzlet Chung :

IDLE 3.1.2 doesn't highlight b"" syntax, instead highlights u"".

Tested with IDLE (x86) 3.1.2 and Windows XP SP2.

--
components: IDLE
messages: 105184
nosy: puzzlet
priority: normal
severity: normal
status: open
title: IDLE 3 doesn't highlights b"", but u""
versions: Python 3.1

___
Python tracker 

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



[issue1462525] URI parsing library

2010-05-06 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

Committed the tests in the r80908, r80909, r80910 and r80911.
The backward incompatible test cases, as in whose parsing requirements have 
changed since the previous RFC has been commented out. There were 4 abnormal 
scenarios and one strict parsing requirement (overridden by relaxed parsing 
requirement use case).

With respect to commented out tests, if we come across parsing behavior in 
applications relying on it, we can address it then.

Thanks Paul and others for tracking this issue.

--
resolution: accepted -> fixed
stage: unit test needed -> committed/rejected
status: open -> closed
type: feature request -> behavior

___
Python tracker 

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



[issue8214] Add exception logging function to syslog module

2010-05-06 Thread Sean Reifschneider

Changes by Sean Reifschneider :


--

___
Python tracker 

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



[issue8214] Add exception logging function to syslog module

2010-05-06 Thread Sean Reifschneider

Sean Reifschneider  added the comment:

This won't go into 2.7.0.  I will do a patch for 3.x, and wait for 2.7.0 to see 
if it can go into 2.7.1.

--

___
Python tracker 

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



[issue8214] Add exception logging function to syslog module

2010-05-06 Thread Sean Reifschneider

Sean Reifschneider  added the comment:

This won't go into 2.7.0.  I will do a patch for 3.x, and wait for 2.7.0 to see 
if it can go into 2.7.1.

--

___
Python tracker 

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



[issue8533] regrtest: use backslashreplace error handler for stdout

2010-05-06 Thread STINNER Victor

STINNER Victor  added the comment:

I disabled my patch (replace_stdout function) on Windows until it gets fixed: 
r80905 (py3k) and r80906 (3.1)

--

___
Python tracker 

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



[issue8550] Expose SSL contexts

2010-05-06 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +haypo

___
Python tracker 

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



[issue8390] tarfile: use surrogates for undecode fields

2010-05-06 Thread STINNER Victor

Changes by STINNER Victor :


--
status: open -> closed

___
Python tracker 

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



[issue8462] raise test_support.TestSkipped() is used outside main() / test_main()

2010-05-06 Thread STINNER Victor

STINNER Victor  added the comment:

Python 2.6 is in bugfix only mode, I don't think that anyone would like to 
spend time on this. There are more important (real) bugs.

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

___
Python tracker 

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



[issue8513] subprocess: support bytes program name (POSIX)

2010-05-06 Thread STINNER Victor

Changes by STINNER Victor :


--
dependencies: +Create fsencode() and fsdecode() functions in os.path

___
Python tracker 

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



[issue8560] regrtest: add a minimal "progress bar"

2010-05-06 Thread STINNER Victor

STINNER Victor  added the comment:

Most developer are opposed to this feature, so I close this issue.

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

___
Python tracker 

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



[issue8598] test/support: don't use localhost as IPv6 host name

2010-05-06 Thread STINNER Victor

STINNER Victor  added the comment:

> It has long been true that there are test failures 
> if the testing system cannot resolve its own hostname,
> ...

I'm not sure that "localhost" must be resolved to ::1. I'm only sure for IPv4: 
localhost be must resolved to 127.0.0.1 in IPv4.

--

___
Python tracker 

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



[issue8610] Python3/POSIX: errors if file system encoding is None

2010-05-06 Thread STINNER Victor

STINNER Victor  added the comment:

"I think that using ASCII is a safer choice in case of errors. (...) Ouch, that 
was a poor choice."

Ok, you conviced me with your PYTHONFSENCODING suggestion (#8622). Can you 
review my last patch please?

--

___
Python tracker 

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



[issue8610] Python3/POSIX: errors if file system encoding is None

2010-05-06 Thread STINNER Victor

Changes by STINNER Victor :


Removed file: http://bugs.python.org/file17214/initfsencoding.patch

___
Python tracker 

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



[issue8610] Python3/POSIX: errors if file system encoding is None

2010-05-06 Thread STINNER Victor

Changes by STINNER Victor :


Removed file: http://bugs.python.org/file17213/no_fsencoding_error.patch

___
Python tracker 

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



[issue8610] Python3/POSIX: errors if file system encoding is None

2010-05-06 Thread STINNER Victor

STINNER Victor  added the comment:

New patch:
 - set encoding to ASCII on nl_langinfo(CODESET) failure
 - set encoding to ASCII if nl_langinfo(CODESET) is missing
 - document the changes

NEWS entry: "Issue #8610: Load file system codec at startup, and display a 
fatal error on failure. Set the file system encoding to ascii if getting the 
locale encoding failed, or if nl_langinfo(CODESET) function is missing."

--
Added file: http://bugs.python.org/file17242/initfsencoding-2.patch

___
Python tracker 

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



[issue8640] subprocess: add envb argument to Popen constructor (Python3, POSIX only)

2010-05-06 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Why wouldn't you give byte variables in env too?

--
nosy: +pitrou

___
Python tracker 

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



[issue8638] Remove suggestion for name mangling from the tutorial

2010-05-06 Thread Dan Buch

Changes by Dan Buch :


--
nosy: +meatballhat

___
Python tracker 

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



[issue8591] update mkpkg to latest coding standards

2010-05-06 Thread Tarek Ziadé

Tarek Ziadé  added the comment:

I am adding Sean (jafo) who wrote this module. He'll have the best answer :)

--
nosy: +jafo

___
Python tracker 

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



[issue8591] update mkpkg to latest coding standards

2010-05-06 Thread Dan Buch

Dan Buch  added the comment:

bump.

Would it be more helpful if I were to submit a patch, too, or is doing so prior 
to guidance from the driver (Tarek) frowned upon?

--

___
Python tracker 

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



[issue8514] Create fsencode() and fsdecode() functions in os.path

2010-05-06 Thread STINNER Victor

STINNER Victor  added the comment:

New short, simple and clean path: add os.fsencode() for Unix only.

--

Don't create it for Windows to encourage the usage of unicode on Windows (and 
use MBCS is a bad idea). fsdecode() was a also bad idea: it's better to keep 
bytes unchanged on Unix, and it's now possible thanks to os.environb and 
os.getenvb().

--
Added file: http://bugs.python.org/file17241/fsencode.patch

___
Python tracker 

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



[issue8514] Create fsencode() and fsdecode() functions in os.path

2010-05-06 Thread STINNER Victor

Changes by STINNER Victor :


Removed file: http://bugs.python.org/file17154/issue8514.patch

___
Python tracker 

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



[issue8514] Create fsencode() and fsdecode() functions in os.path

2010-05-06 Thread STINNER Victor

Changes by STINNER Victor :


Removed file: http://bugs.python.org/file17096/os_path_fs_encode_decode-3.patch

___
Python tracker 

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



[issue8640] subprocess: add envb argument to Popen constructor (Python3, POSIX only)

2010-05-06 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
nosy: +Arfrever

___
Python tracker 

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



[issue8513] subprocess: support bytes program name (POSIX)

2010-05-06 Thread STINNER Victor

STINNER Victor  added the comment:

> If the creation of os.environb is accepted (#8603), I think that
> subprocess should also be modified to support pure bytes environ. 

I fixed #8603 and opened #8640 for subprocess and envb.

--

___
Python tracker 

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



[issue8513] subprocess: support bytes program name (POSIX)

2010-05-06 Thread STINNER Victor

STINNER Victor  added the comment:

New patch (issue8513_partA.patch):
 - don't *decode*, only encode (str->bytes)
 - only patch os._execvpe() for POSIX

--

___
Python tracker 

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



[issue8513] subprocess: support bytes program name (POSIX)

2010-05-06 Thread STINNER Victor

Changes by STINNER Victor :


Removed file: http://bugs.python.org/file17060/subprocess_bytes_program.patch

___
Python tracker 

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



[issue8513] subprocess: support bytes program name (POSIX)

2010-05-06 Thread STINNER Victor

Changes by STINNER Victor :


Added file: http://bugs.python.org/file17240/issue8513_partA.patch

___
Python tracker 

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



[issue8640] subprocess: add envb argument to Popen constructor (Python3, POSIX only)

2010-05-06 Thread STINNER Victor

New submission from STINNER Victor :

Python 3.2 has now its os.environb, the bytes version of os.environ. subprocess 
should get a new envb argument to be able to use pure bytes environmental 
variables. Examples:

   subprocess.call([b'env], envb={b'PATH': b'/usr/bin'})

and

   envb = os.environb.copy()
   envb[b'PATH'] = b'/usr/bin'
   subprocess.call([b'env], envb=envb)

Specify both env and envb would raise an exception. envb should only be 
available on POSIX (as os.environb).

Related issues: #8513 (subprocess: support bytes program name) and #8603 
(os.environb).

--
components: Library (Lib), Unicode
messages: 105168
nosy: haypo
priority: normal
severity: normal
status: open
title: subprocess: add envb argument to Popen constructor (Python3, POSIX only)
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



[issue8603] Create a bytes version of os.environ and getenvb()

2010-05-06 Thread STINNER Victor

STINNER Victor  added the comment:

Commited as r80885 (py3k), blocked in 3.1 (r80886).

Thank you Martin and Marc for your great help and all your reviews ;-)

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



[issue8639] Allow callable objects in inspect.getargspec

2010-05-06 Thread George Sakkis

New submission from George Sakkis :

Not sure if this has been brought before but how about extending  getargspec to 
work with callable instances, i.e. make it equivalent to 
getargspec(obj.__call__) ?

--
components: Library (Lib)
messages: 105166
nosy: gsakkis
priority: normal
severity: normal
status: open
title: Allow callable objects in inspect.getargspec
type: feature request
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



[issue8603] Create a bytes version of os.environ and getenvb()

2010-05-06 Thread STINNER Victor

Changes by STINNER Victor :


Removed file: http://bugs.python.org/file17199/os_environb-2.patch

___
Python tracker 

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



[issue8603] Create a bytes version of os.environ and getenvb()

2010-05-06 Thread STINNER Victor

Changes by STINNER Victor :


Removed file: http://bugs.python.org/file17191/os_environb.patch

___
Python tracker 

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



[issue7865] io close() swallowing exceptions

2010-05-06 Thread Pascal Chambon

Pascal Chambon  added the comment:

Cool, thanks a lot B-)

--

___
Python tracker 

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



[issue8638] Remove suggestion for name mangling from the tutorial

2010-05-06 Thread Éric Araujo

Éric Araujo  added the comment:

Note that the opinion of people helping in #python does not necessarily (or 
frequently) match the one of core Python developers. That said, I agree with 
this particular suggestion.

--
nosy: +merwok

___
Python tracker 

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



[issue3620] test_smtplib is flaky

2010-05-06 Thread Giampaolo Rodola'

Giampaolo Rodola'  added the comment:

Done in r80882 for ftplib and smtplib modules.

--

___
Python tracker 

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



[issue8407] expose signalfd(2) and sigprocmask(2) in the signal module

2010-05-06 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

Let's leave it for 3.2.

--

___
Python tracker 

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



[issue8638] Remove suggestion for name mangling from the tutorial

2010-05-06 Thread Lucian Ursu

New submission from Lucian Ursu :

I suggest that name mangling should not be recommended as a way of having 
private attributes. Instead, one underscore should be suggested as a signal 
that the attribute is private.
This suggestion comes after discussing with some of the helpers from #python. 
Basically, they said that name mangling should never be used, so it would be 
appropriate to remove this recommendation from the tutorial.

--
assignee: d...@python
components: Documentation
messages: 105161
nosy: LucianU, d...@python
priority: normal
severity: normal
status: open
title: Remove suggestion for name mangling from the tutorial
type: feature request
versions: Python 2.6

___
Python tracker 

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



[issue7522] random.choice should accept a set as input

2010-05-06 Thread Thomas Dybdahl Ahle

Thomas Dybdahl Ahle  added the comment:

I'm sorry. I see the problem then.
Do you know, if there are any plans of adding a fast balanced binary search 
tree to pythons stdlib?

--

___
Python tracker 

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



[issue839159] iterators broken for weak dicts

2010-05-06 Thread Anthony Lenton

Anthony Lenton  added the comment:

Probably old news, but this also affects 2.5.4.

--
nosy: +elachuni
versions: +Python 2.5

___
Python tracker 

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



[issue8483] asyncore.dispatcher's __getattr__ method produces confusing effects

2010-05-06 Thread Giampaolo Rodola'

Giampaolo Rodola'  added the comment:

Fixed in r80875 (2.7), r80876 (3.2), r80878 (2.6) and r80879 (3.1) which also 
includes changes to fix issue 8573.

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

___
Python tracker 

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



[issue8573] Buggy _strerror in asyncore

2010-05-06 Thread Giampaolo Rodola'

Giampaolo Rodola'  added the comment:

Yes, I think it's better to remain consistent with the rest of the module which 
uses %s all around the place, also for backward compatibility in case someone 
wants to copy asyncore.py shipped with recent python versions and use it in 
their code using older python versions.

This practice is not so uncommon since asyncore.py received serious bug-fixing 
only starting from python 2.6.

Fixed in r80875 (2.7), r80876 (3.2), r80878 (2.6) and r80879 (3.1) which also 
includes changes to fix issue 8483.

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

___
Python tracker 

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



[issue1285086] urllib.quote is too slow

2010-05-06 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

I reviewed the patch and the speed test attached. 
Well, yes, the patch does achieve a certain level of speed improvement but I 
also saw that in cases when the quoting is really required (special characters, 
the current stdlib is faster). 

The speed improvement proposed is really not a convincing enough reason to 
replace the code of the current quote. rhettinger's comment in this issue might 
taken as reference to work out if there are any statistical evidence (:)?) that 
if the frameworks use it, would they benefit.

Few more points.

- quote is a generic function, checking for empty string, returning it  and 
marking it speed improvement, really is not a improvement (practically the 
person using the quote can avoid it too and thereby increase the speed).

- Some framework might try this , like django or zope for e.g and see if its 
really a worthy case in using re to check for chars to be quoted and quote only 
those (and see if there is any improvement).

- Might provide this as an activestate recipe and see if there any takers 
(again for reasons of use-case)

It is correctly a low priority one, or it can just be rejected too.

BTW, there is a feature request on quote support unicode char with patch, when 
that is in place, I think this request may suffer further.

--

___
Python tracker 

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



[issue8636] enumerate() test cases do not cover optional start argument

2010-05-06 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

The patch looks fine, but I wonder if regrtest.py could be taught to warn about 
situations like this.  Maybe run_unitest() should check that all leaf 
subclasses of TestCase in the module are covered.  Ideally, of course, 
test_main() should be made optional and tests be discovered by analyzing the 
test_* module.

--
nosy: +belopolsky
stage:  -> patch review

___
Python tracker 

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



[issue8637] pydoc should respect MANPAGER over PAGER.

2010-05-06 Thread Justin Bronder

Justin Bronder  added the comment:

I chose MANPAGER as the command line pydoc utility already clones some of the 
man functionality, but I'm fine with PYDOCPAGER or anything else that allows me 
to use pydoc without having to change PAGER first.

--

___
Python tracker 

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



[issue8637] pydoc should respect MANPAGER over PAGER.

2010-05-06 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

Similar logic can be written simpler as

use_pager = os.environ.get('MANPAGER') or os.environ.get('PAGER')
if use_pager:
  ...
(yes, I think ignoring empty *PAGER is preferable to an error)

I am not sure, pydoc should respect MANPAGER.  Why not PYDOCPAGER?

In any case this is a feature request rather than a bug.

--
nosy: +belopolsky
type: behavior -> feature request

___
Python tracker 

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



[issue1533] Bug in range() function for large values

2010-05-06 Thread Alexander Belopolsky

Changes by Alexander Belopolsky :


Removed file: http://bugs.python.org/file17231/issue1533-release26-maint.diff

___
Python tracker 

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



[issue1533] Bug in range() function for large values

2010-05-06 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

> the requirements are different for 2.6:  floats should give a 
> DeprecationWarning rather than a TypeError. 

I thought about it, but the comment in test_builtin.py,

# Reject floats when it would require PyLongs to represent. 

 
# (smaller floats still accepted, but deprecated)  

convinced me that raising TypeError on large floats is a feature.  I don't have 
a strong opinion on this issue, but I think a conservative approach is not to 
change current behavior in the maintenance branch unless it is clearly a bug.

I did add a test checking that "smaller floats still accepted, but deprecated."

--
Added file: http://bugs.python.org/file17239/issue1533-release26-maint.diff

___
Python tracker 

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



[issue8637] pydoc should respect MANPAGER over PAGER.

2010-05-06 Thread Brian Curtin

Changes by Brian Curtin :


--
stage:  -> unit test needed
title: [PATCH] pydoc should respect MANPAGER over PAGER. -> pydoc should 
respect MANPAGER over PAGER.

___
Python tracker 

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



[issue8637] [PATCH] pydoc should respect MANPAGER over PAGER.

2010-05-06 Thread Justin Bronder

New submission from Justin Bronder :

Similar to man(1), pydoc should respect the environment variable MANPAGER over 
PAGER.  The current behavior causes issues when using a PAGER that does not 
support man pages.

Patch based off of trunk, r80871

--
components: Library (Lib)
files: python-2.7-pydoc-manpager.patch
keywords: patch
messages: 105151
nosy: jsbronder
priority: normal
severity: normal
status: open
title: [PATCH] pydoc should respect MANPAGER over PAGER.
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file17238/python-2.7-pydoc-manpager.patch

___
Python tracker 

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



[issue8404] Set operations don't work for dictionary views

2010-05-06 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

FWIW, this agrees with the specs in _abcoll which show KeysView and ItemsView 
as sets but not ValuesView.

--
nosy: +rhettinger

___
Python tracker 

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



Re: crash in Py_EnterRecursiveCall

2010-05-06 Thread Amaury Forgeot d'Arc
Hi,

2010/5/6 René J.V. Bertin :
> Hello,
>
> I have embedded Python into and extended it with functionality from a
> graphical tool I use.

This mailing list is used for the bug tracker, and is not the place to
ask for help.
Please ask your question on the comp.lang.python newsgroup, or the o
python-l...@python.org mailing list.
[maybe a hint for your issue: ensure that the current thread owns the
GIL before calling a function of the Python C API]

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



[issue8629] Fix test_ssl failures under 2.6/3.1 with OpenSSL 1.0.0

2010-05-06 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

I've committed a patch which unconditionally skips those tests in 2.6 (r80867) 
and 3.1 (r80868). Thanks for your advice.

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



[issue2831] Adding start to enumerate()

2010-05-06 Thread Scott Dial

Scott Dial  added the comment:

Created issue8636 for the broken test cases.

--

___
Python tracker 

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



[issue8636] enumerate() test cases do not cover optional start argument

2010-05-06 Thread Scott Dial

New submission from Scott Dial :

The issue2831 patch test cases are not actually being run by test_enumerate and 
they were broken tests anyways. This patch fixes the brokenness.

--
components: Interpreter Core, Tests
files: test_enumerate.patch
keywords: patch
messages: 105147
nosy: scott.dial
priority: normal
severity: normal
status: open
title: enumerate() test cases do not cover optional start argument
type: behavior
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file17237/test_enumerate.patch

___
Python tracker 

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



[issue7583] Improve explanation of tab expansion in doctests

2010-05-06 Thread anatoly techtonik

anatoly techtonik  added the comment:

Sorry for not being able to follow up on this issue. I believe we need to 
expand the problem of handling tabs in doctests with use cases and expose the 
problem outside the issue tracker item. I still remember that at some point I 
had a patch somewhere that allowed to use tabs in doctests without too much 
explanations. Can't find it in this tracker though.

--

___
Python tracker 

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



[issue2831] Adding start to enumerate()

2010-05-06 Thread Nick Coghlan

Nick Coghlan  added the comment:

Created issue 8635 for the incomplete docstring

--

___
Python tracker 

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



[issue8635] enumerate() docstring doesn't cover optional start argument

2010-05-06 Thread Nick Coghlan

New submission from Nick Coghlan :

As noted in the comments for issue 2831, the enumerate docstring doesn't cover 
the feature added by that patch.

--
components: Interpreter Core
keywords: easy
messages: 105144
nosy: ncoghlan
priority: normal
severity: normal
stage: needs patch
status: open
title: enumerate() docstring doesn't cover optional start argument
type: behavior
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



[issue8634] get method for dbm interface

2010-05-06 Thread Brian Curtin

Changes by Brian Curtin :


--
title: [PATCH] get method for dbm interface -> get method for dbm interface
versions:  -Python 2.7, Python 3.3

___
Python tracker 

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



[issue8603] Create a bytes version of os.environ and getenvb()

2010-05-06 Thread STINNER Victor

STINNER Victor  added the comment:

Oh no, I forgot to remove the annotations from getenv() and getenvb() in os.py. 
I only removed them from the documentation.

--

___
Python tracker 

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



[issue8603] Create a bytes version of os.environ and getenvb()

2010-05-06 Thread STINNER Victor

STINNER Victor  added the comment:

Patch version 3:
 - update posix documentation
 - improve os.environ and os.getenv() documentation: specify the type and 
document the encoding/error handler, add a link to environb/getenvb
 - os.environ and os.environb now check the argument types (raise a better 
error), on Windows and Unix. Before my patch, os.environ[b'key']=b'value' sets 
the variable "b'key'" to "b'value'" :-(
 - restore os.environb in TestEnviron.tearDown() (test_os)
 - fix patch on posixmodule.c indentation
 - fix a regression introduced by my patch: set PyErr_NoMemory() on error  
(newstr==NULL in posixmodule.c)
 - rename keymap to encodekey

--
Added file: http://bugs.python.org/file17236/os_environb-3.patch

___
Python tracker 

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



[issue8633] tarfile doesn't support undecodable filename in PAX format

2010-05-06 Thread Lars Gustäbel

Lars Gustäbel  added the comment:

I am currently working on a patch to let tarfile use the hdrcharset field.

--

___
Python tracker 

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



[issue8630] Keepends param in codec readline(s)

2010-05-06 Thread André M . C . Campos

Changes by André M. C. Campos :


Added file: http://bugs.python.org/file17235/codecs.py

___
Python tracker 

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



[issue8630] Keepends param in codec readline(s)

2010-05-06 Thread André M . C . Campos

André M. C. Campos  added the comment:

The parameter would not be a new feature since the codecs docs states that:
"The StreamReaderWriter allows wrapping streams which work in both
read and write modes".

The reader (StreamReader) accepts the parameter, so it's expected that
StreamReaderWriter does the same.

I'm not sure how to submit a patch.
So, I'm submitting a new codecs.py file through the issue track
interface (issue 8630).
If it's not that in that way, could you please tell me the path?
André.

2010/5/6 Marc-Andre Lemburg :
>
> Marc-Andre Lemburg  added the comment:
>
> André: Could you provide a patch ?
>
> Thanks.
>
> --
> assignee: benjamin.peterson ->
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue7522] random.choice should accept a set as input

2010-05-06 Thread Mark Dickinson

Mark Dickinson  added the comment:

> As far as I know, it is a binary search tree,

It's not:  it's based on a hash table.  It's essentially a dict with keys but 
no values.  An additional complication is that the hash table can be very 
sparsely filled, in the case of a large set that has had most of its elements 
deleted---there's no automatic shrinkage of the hash table in that case.  So 
repeated random selection until you find a filled hash table entry would be 
inefficient in that case.

--

___
Python tracker 

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



[issue7522] random.choice should accept a set as input

2010-05-06 Thread Thomas Dybdahl Ahle

Thomas Dybdahl Ahle  added the comment:

Why not just add support to the set container?
As far as I know, it is a binary search tree, so supporting random picking in 
O(logn) should be easy.

--
nosy: +Thomas.Dybdahl.Ahle

___
Python tracker 

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



crash in Py_EnterRecursiveCall

2010-05-06 Thread René J . V . Bertin
Hello,

I have embedded Python into and extended it with functionality from a
graphical tool I use. One of the things it allows me to do is to
export Python objects to a simple scripting language ("ascanf"), and
call them as if they were native functions.

I have the following situation in which I get a systematic
segmentation violation in Py_EnterRecursiveCall(), in Python 2.3
(Apple's Mac OS X 10.4 system version), 2.4 2.5 and 2.6 (OS X) and on
Cygwin with 2.5 and 2.6

I enter an interactive Python 'console' from within my application,
either the one from the interact package, or the IPython shell. My
application has a callback defined for the readline routines that
calls the graphical event handler, allowing for instance
refresh/redraws to continue while working in the Python console. The
crash occurs when during such events handled through the readline
callback, I call an exported Python object. This does not appear to be
related to recursion per se, but rather to "calling a python
interpreter behind the back of the currently active
console/interpreter".

To be clearer, suppose I have some Python code

def Py_travDistCalc(a,b,c):
 ...
 return x

ascanf.ExportVariable("travDistCalc", Py_travDistCalc )

I can then issue a call
1) travDistCalc[a,b,c] from an ascanf script.
2) ascanf.Eval( 'travDistCalc[a,b,c]' ) from the Python console

Call 1) provokes a crash in Py_EnterRecursiveCall() when invoked
through the readline callback when the Python console is open, but
call 2) succeeds normally.

My workaround is to keep track of the readline callback recursion
level, and compare the current level with the level recorded when
entering a Python console before doing the PyObject_CallObject()
required in call 1) and 2) above.

I'm not sure if this is a bug in Python. It is the sort of crash
situation I'd try to avoid, though.
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8354] siginterrupt with flag=False is reset when signal received

2010-05-06 Thread Martin

Martin  added the comment:

This patch has been reviewed by both Andrew and myself, it would be nice if 
someone made the time to land it. The test change is unlikely to break 
anything, and hey, that's what buildbots are for.

--
nosy: +gz

___
Python tracker 

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



[issue8633] tarfile doesn't support undecodable filename in PAX format

2010-05-06 Thread Lars Gustäbel

Lars Gustäbel  added the comment:

Victor, you misunderstood the pax definition, but it wouldn't harm tarfile if 
it knew how to handle these corrupt GNU tar archives. In the meantime I filed a 
bug report on bug-...@gnu.org for this.

I said in msg105085 that POSIX gives no advice on how to handle broken filename 
encodings, but it does in POSIX:2008. libarchive (bsdtar) uses the way that is 
described there. The solution is to use a field called "hdrcharset".

See http://www.opengroup.org/onlinepubs/9699919799/utilities/pax.html

--

___
Python tracker 

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



[issue8407] expose signalfd(2) and sigprocmask(2) in the signal module

2010-05-06 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> If everyone agrees this is inappropriate for 2.7

I think the decision is up to Benjamin.

--
nosy: +benjamin.peterson

___
Python tracker 

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



[issue8630] Keepends param in codec readline(s)

2010-05-06 Thread Marc-Andre Lemburg

Marc-Andre Lemburg  added the comment:

André: Could you provide a patch ?

Thanks.

--
assignee: benjamin.peterson -> 

___
Python tracker 

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



[issue8630] Keepends param in codec readline(s)

2010-05-06 Thread Marc-Andre Lemburg

Marc-Andre Lemburg  added the comment:

Benjamin: Would the added parameter be a new feature or not ?

It looks like an oversight when adding the parameter to the standard codec 
classes, so could be viewed as a bug.

--
assignee:  -> benjamin.peterson
nosy: +benjamin.peterson

___
Python tracker 

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



[issue8603] Create a bytes version of os.environ and getenvb()

2010-05-06 Thread STINNER Victor

STINNER Victor  added the comment:

Aaaah, *posix*.environ, not *os*.environ, ok. I will fix posix documentation. I 
didn't knew this dictionary :-)

--

___
Python tracker 

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



[issue8634] [PATCH] get method for dbm interface

2010-05-06 Thread Benjamin VENELLE

New submission from Benjamin VENELLE :

I'm suggesting to add the dict's 'get' method to dbm interface. So that, it 
would be easier to manage 'key not found' issues.

B. Venelle.

--
components: Library (Lib)
messages: 105130
nosy: Kain94
priority: normal
severity: normal
status: open
title: [PATCH] get method for dbm interface
type: feature request
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



[issue1533] Bug in range() function for large values

2010-05-06 Thread Mark Dickinson

Mark Dickinson  added the comment:

> I've never done a maintenance branch backport, but here is my attempt:
[...]

Yes, that sounds about right.  But after all that, you'll still need to modify 
the patch somewhat, since the requirements are different for 2.6:  floats 
should give a DeprecationWarning rather than a TypeError.  I think that's a 
straightforward change for Python/bltinmodule.c.  The trickier bit is coming up 
with tests that work properly---i.e., check that the appropriate warnings are 
produced, *and* that the the appropriate values are returned.  Look into the 
'catch_warnings' function in the warnings module; (there's also 
'check_warnings' in test_support, but I think that doesn't exist in 2.6).

'make patchcheck' only checks Python files and ReST files, as far as I can tell.

[I got your off-tracker emails;  will respond anon.]

--

___
Python tracker 

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



[issue8630] Keepends param in codec readline(s)

2010-05-06 Thread Marc-Andre Lemburg

Marc-Andre Lemburg  added the comment:

We can add those to 3.2. Not sure about 2.7 - it's already in feature freeze.

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

___
Python tracker 

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



[issue7863] platform module doesn't detect Windows 7

2010-05-06 Thread Marc-Andre Lemburg

Marc-Andre Lemburg  added the comment:

Brian Curtin wrote:
> 
> Brian Curtin  added the comment:
> 
> Now that I have access to a Server 2008 R2 machine, I've verified that this 
> fix works there.
> 
> Committed in r80857 through r80860.

Thanks, Brian.

--

___
Python tracker 

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