[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"", b

[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

[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/mailma

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

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

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

[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.o

[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://mai

[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

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

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

[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. -- __

[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? -- ___ Py

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

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

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

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

[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.o

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

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

[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

[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

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

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

[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

[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 ___ _

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

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

[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.enviro

[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

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

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

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

[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: htt

[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

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

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

[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. B

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

[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 ___ __

[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 ___ Pyt

[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

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

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

[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. -- __

[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

[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 ___ ___ Pyth

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

[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

[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: pytho

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

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 pyth

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

[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

[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: sco

[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

[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

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

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

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

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

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

[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

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

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

[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

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

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

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

[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 ___ _

[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 ___ __

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

[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 ___ _

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

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

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

[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. -- _