[issue14237] Special sequences \A and \Z don't work in character set []

2012-03-09 Thread Georg Brandl
Changes by Georg Brandl : -- resolution: -> duplicate status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue13532] In IDLE, sys.stdout.write and sys.stderr can write any pickleable object

2012-03-09 Thread Martin v . Löwis
Martin v. Löwis added the comment: Ramchandra: Most likely, the status is that nobody is working on this, and nobody is planning to work on this. So if you want to see it fixed, it may be that you have to submit a patch yourself. -- ___ Python trac

[issue14237] Special sequences \A and \Z don't work in character set []

2012-03-09 Thread Georg Brandl
Georg Brandl added the comment: Duplicate of #13899. -- nosy: +georg.brandl superseder: -> re pattern r"[\A]" should work like "A" but matches nothing. Ditto B and Z. ___ Python tracker _

[issue13703] Hash collision security issue

2012-03-09 Thread Kurt Seifried
Changes by Kurt Seifried : -- nosy: -kseifr...@redhat.com ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue13703] Hash collision security issue

2012-03-09 Thread Kurt Seifried
Kurt Seifried added the comment: I have assigned CVE-2012-1150 for this issue as per http://www.openwall.com/lists/oss-security/2012/03/10/3 -- nosy: +kseifr...@redhat.com ___ Python tracker _

[issue14235] test_cmd.py does not correctly call reload()

2012-03-09 Thread Josh Watson
Josh Watson added the comment: That particular function only gets called by running `./python Lib/test/test_cmd.py -c`, and not through regrtest.py, so I suspect that's why it wasn't noticed before. I just happened to be exploring test files and ran into an unhandled exception when I tried ru

[issue14229] On KeyboardInterrupt, the exit code should mirror the signal number

2012-03-09 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue13532] In IDLE, sys.stdout.write and sys.stderr can write any pickleable object

2012-03-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Many issues take a while, depending on volunteers time and choice of priority. -- ___ Python tracker ___ __

[issue14169] compiler.compile fails on "if" statement in attached file

2012-03-09 Thread Jim Jewett
Jim Jewett added the comment: If I understood correctly, that *is* the minimal case, which suggests some sort of size problem. That said, I could not duplicate on 2.6.2, nor with py_compile.compiler in 3.2.2; I am not currently sufficiently motivated to install another version just for this

[issue14243] NamedTemporaryFile usability request

2012-03-09 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue14244] No information about behaviour with groups in pattern in the docstring for re.split

2012-03-09 Thread py.user
Changes by py.user : -- components: +Regular Expressions nosy: +ezio.melotti, mrabarnett, py.user versions: +Python 3.2 ___ Python tracker ___ ___

[issue8070] Infinite loop in PyRun_InteractiveLoopFlags() if PyRun_InteractiveOneFlags() raises an error

2012-03-09 Thread Tim Lesher
Tim Lesher added the comment: Victor: would you object to ysj.ray's solution? I don't think it was an option when we last looked at this issue. -- ___ Python tracker ___ __

[issue14244] No information about behaviour with groups in pattern in the docstring for re.split

2012-03-09 Thread Ramchandra Apte
Ramchandra Apte added the comment: Oops. The link in the last sentence doesn't work. It should be see msg155283 . -- ___ Python tracker ___ _

[issue14236] re: Docstring for \s and \S don’t mention Unicode

2012-03-09 Thread Ramchandra Apte
Ramchandra Apte added the comment: Done so see issue14244 . -- nosy: +ramchandra.apte ___ Python tracker ___ ___ Python-bugs-list mai

[issue14244] No information about behaviour with groups in pattern in the docstring for re.split

2012-03-09 Thread Ramchandra Apte
New submission from Ramchandra Apte : help(re.split) "split(pattern, string, maxsplit=0, flags=0) Split the source string by the occurrences of the pattern, returning a list containing the resulting substrings." No info is given about behaviour with groups in pattern. Created because o

[issue13532] In IDLE, sys.stdout.write and sys.stderr can write any pickleable object

2012-03-09 Thread Ramchandra Apte
Ramchandra Apte added the comment: What is the status of this bug? It has been about two months since the last message. -- ___ Python tracker ___ ___

[issue14186] Link to PEP 3107 in "def" part of Language Reference

2012-03-09 Thread Chris Rebert
Chris Rebert added the comment: My suggestion was a seealso to parallel those in the "The with Statement" and "Class definitions" sections of the same page. -- ___ Python tracker _

[issue14241] io.UnsupportedOperation.__new__(io.UnsupportedOperation) fails

2012-03-09 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue14236] re: Docstring for \s and \S don’t mention Unicode

2012-03-09 Thread Éric Araujo
Éric Araujo added the comment: Please open another report for your second bug. Thanks. -- nosy: +eric.araujo title: In help(re) are insufficient details -> re: Docstring for \s and \S don’t mention Unicode versions: +Python 2.7, Python 3.3 ___ Pyth

[issue14235] test_cmd.py does not correctly call reload()

2012-03-09 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report and patch. This begs the question: why does the current buggy code not cause a test failure? -- nosy: +eric.araujo ___ Python tracker

[issue14219] start the Class tutorial in a more gentle manner

2012-03-09 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue14186] Link to PEP 3107 in "def" part of Language Reference

2012-03-09 Thread Éric Araujo
Éric Araujo added the comment: Sure. Don’t know if we should use a seealso section or just a regular link. -- nosy: +eric.araujo ___ Python tracker ___

[issue14187] add "annotation" entry to Glossary

2012-03-09 Thread Éric Araujo
Éric Araujo added the comment: I think too that function annotations don’t need to be in the glossary; documenting them in the language reference section that talks about defining functions should be enough. What do you think, Chris? -- nosy: +eric.araujo ___

[issue14243] NamedTemporaryFile usability request

2012-03-09 Thread Dave Abrahams
New submission from Dave Abrahams : NamedTemporaryFile is too hard to use portably when you need to open the file by name after writing it. To do that, you need to close the file first (on Windows), which means you have to pass delete=False, which in turn means that you get no help in cleanin

[issue14238] python shouldn't need username in passwd database

2012-03-09 Thread Éric Araujo
Éric Araujo added the comment: > there should be a guard here that just doesn't add user site directories if > the lookup fails. Agreed too. site is easy to fix (I can do it or review a patch), but we also need to fix sysconfig; I think the right thing to do would be not to have a config var

[issue14191] argparse: nargs='*' doesn't get out-of-order positional parameters

2012-03-09 Thread Glenn Linderman
Glenn Linderman added the comment: Of course, if a "real" solution can only be shipped in 3.3, it may want to use a different API than parse_args to avoid the parameter, parse_intermixed_args, perhaps. But my t18.py uses the name parse_args, but just always does the intermixed parsing, so tha

[issue14237] Special sequences \A and \Z don't work in character set []

2012-03-09 Thread Matthew Barnett
Matthew Barnett added the comment: \s matches a character, whereas \A and \Z don't. Within a character set \s makes sense, but \A and \Z don't, so they should be treated as literals. -- ___ Python tracker ___

[issue14218] include rendered output in addition to markup

2012-03-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: It is not unusual and perhaps common for markup documentation to give rendered output for example input. This is similar to what we do in the tutorial and elsewhere with interactive examples: >>> 2 + 2 # input code 4 # output of running the code This

[issue14241] io.UnsupportedOperation.__new__(io.UnsupportedOperation) fails

2012-03-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> patch review versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue14242] Make subprocess.Popen aware of $SHELL

2012-03-09 Thread Dan Colish
New submission from Dan Colish : The hardcoding of /bin/sh in the Popen _execute_child method can be a point of frustration when so many users are used to their chosen environment shell. The module can easily support the re-use of the defined $SHELL variable. I've attached a patch which gives

[issue14237] Special sequences \A and \Z don't work in character set []

2012-03-09 Thread py.user
py.user added the comment: Martin v. Löwis wrote: > What behavior would you expect? I expected similar work >>> re.search(r'[\s]a', ' a').group() ' a' >>> re.search(r'[\s]a', 'ba').group() Traceback (most recent call last): File "", line 1, in AttributeError: 'NoneType' object has no attrib

[issue14191] argparse: nargs='*' doesn't get out-of-order positional parameters

2012-03-09 Thread Glenn Linderman
Glenn Linderman added the comment: Sad. That means all the documentation of workarounds needs to be written, even figured out in the first place. Steven's code, while being a nice implementation when proper arguments are provided, produces inappropriate errors, because only the positional,

[issue14232] obmalloc: mmap() returns MAP_FAILED on error, not 0

2012-03-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset ba8f85e16dd9 by Victor Stinner in branch 'default': Close #14232: catch mmap() failure in new_arena() of obmalloc http://hg.python.org/cpython/rev/ba8f85e16dd9 -- nosy: +python-dev resolution: -> fixed stage: commit review -> committed/rej

[issue2377] Replace __import__ w/ importlib.__import__

2012-03-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: > One is ``python -v`` support. sys.flags has a verbose attribute that > can be used to properly guard printing imported modules. It might be > tricky, though, if sys.stderr is not set up properly during very early > imports. Might or might not. You should try,

[issue9949] os.path.realpath on Windows does not follow symbolic links

2012-03-09 Thread Dave Burton
Dave Burton added the comment: This is a patch for the os.path.realpath() bug under Windows, http://bugs.python.org/issue9949 "os.path.realpath on Windows does not follow symbolic links" ntpath.diff fixes the realpath() function to resolve symbolic links to their targets (tested under Wind

[issue2377] Replace __import__ w/ importlib.__import__

2012-03-09 Thread Brett Cannon
Brett Cannon added the comment: Two things I realized yesterday that need to be implemented (and some double-checking and/or opinion would be nice) while I wait for a full patch review. One is ``python -v`` support. sys.flags has a verbose attribute that can be used to properly guard printin

[issue14214] test_concurrent_futures hangs

2012-03-09 Thread Miki Tebeka
Miki Tebeka added the comment: Of course now the tests pass and I can't reproduce it. Sorry. You can close the issue or wait to see if someone else has the same problem. -- ___ Python tracker _

[issue14205] Raise an error if a dict is modified during a lookup

2012-03-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 70fbb02d588c by Victor Stinner in branch 'default': Issue #14205: Fix test_dict.test_mutating_lookup() http://hg.python.org/cpython/rev/70fbb02d588c -- ___ Python tracker

[issue12328] multiprocessing's overlapped PipeConnection on Windows

2012-03-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: One of our buildbots seems to have recurring issues with the timeout issues. I don't know if the machine is very loaded: == FAIL: test_wait_integer (test.test_multiprocessing.TestWait) --

[issue12151] test_logging fails sometimes

2012-03-09 Thread Vinay Sajip
Vinay Sajip added the comment: After an increase to a delay in the test(1.01 -> 1.1 seconds) the problem seems to have disappeared. So closing for now, since this error appears not to have occurred over a period of a few days. -- resolution: -> fixed status: open -> closed _

[issue14234] CVE-2012-0876 (hash table collisions CPU usage DoS) for embedded copy of expat

2012-03-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: No, the salt is stored on the parser. See the line: +#define hash_secret_salt (parser->m_hash_secret_salt) Yes, expat code is confusing. -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue14234] CVE-2012-0876 (hash table collisions CPU usage DoS) for embedded copy of expat

2012-03-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Note sure I understand: XML_SetHashSalt() takes a parser argument, but the hash secret is global? -- nosy: +pitrou ___ Python tracker ___

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2012-03-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: +1. Also, the repr() should show the float values of st_mtime and friends, rather than truncated integers. -- nosy: +pitrou ___ Python tracker ___

[issue211481] os.stat() doesn't return st_rdev

2012-03-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Марк, issue11698 already track this. -- nosy: +amaury.forgeotdarc ___ Python tracker ___ ___

[issue14239] Uninitialised variable in _PyObject_GenericSetAttrWithDict

2012-03-09 Thread Jim Jewett
Jim Jewett added the comment: So the risk is that descr may be given garbage memory that just happens to look like an object with 1 reference, so that it really does a decref and tries to re-deallocate whatever was there before. I would rather see the change at the top of the function; just i

[issue14234] CVE-2012-0876 (hash table collisions CPU usage DoS) for embedded copy of expat

2012-03-09 Thread Benjamin Peterson
Benjamin Peterson added the comment: Since this has been approved upstream and the Python change is minimal, I think this can just be applied. -- ___ Python tracker ___ ___

[issue14239] Uninitialised variable in _PyObject_GenericSetAttrWithDict

2012-03-09 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in differently in 46e600fa8d05 Thanks anyway. -- resolution: -> out of date status: open -> closed ___ Python tracker ___ ___

[issue211481] os.stat() doesn't return st_rdev

2012-03-09 Thread Марк Коренберг
Марк Коренберг added the comment: Okay, it returns that field, but still not print one in repr(). Please fix. -- nosy: +mmarkk ___ Python tracker ___ __

[issue14210] add filename completion to pdb

2012-03-09 Thread Georg Brandl
Georg Brandl added the comment: Nope, don't think so. They are accepted and handled (albeit strangely) after all. -- ___ Python tracker ___

[issue14210] add filename completion to pdb

2012-03-09 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: > But that has to do with how relative paths are handled, not with how they are > entered: they are taken relative to sys.path[0]. I don't know why, and if > that is the useful thing to do, but it's for another issue. Perhaps refuse to complete all rela

[issue14237] Special sequences \A and \Z don't work in character set []

2012-03-09 Thread Matthew Barnett
Matthew Barnett added the comment: Within a character set \A and \Z should behave like, say, \C; in other words, they should be the literals "A" and "Z". -- ___ Python tracker

[issue14210] add filename completion to pdb

2012-03-09 Thread Georg Brandl
Georg Brandl added the comment: >>> * using relative path completes, but I get something like "'../prog.py' not >>> found from sys.path" >> That has nothing to do with the completion. > If I give it an absolute path it works, hence the complaint. But that has to do with how relative paths are

[issue14210] add filename completion to pdb

2012-03-09 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: > Georg Brandl added the comment: >> * using relative path completes, but I get something like "'../prog.py' not >> found from sys.path" > That has nothing to do with the completion. If I give it an absolute path it works, hence the complaint. >> * usi

[issue14236] In help(re) are insufficient details

2012-03-09 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue14210] add filename completion to pdb

2012-03-09 Thread Georg Brandl
Georg Brandl added the comment: > * using relative path completes, but I get something like "'../prog.py' not > found from sys.path" That has nothing to do with the completion. > * using "~/" to try to complete the HOME directory doesn't work... it > completes the root directory Since break

[issue14210] add filename completion to pdb

2012-03-09 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: Works much better, but there are still some issues: * using relative path completes, but I get something like "'../prog.py' not found from sys.path" * using "~/" to try to complete the HOME directory doesn't work... it completes the root directory

[issue13903] New shared-keys dictionary implementation

2012-03-09 Thread Jim Jewett
Jim Jewett added the comment: On Fri, Mar 9, 2012 at 12:13 PM, Jim Jewett > So to get beneath 2/3 without lots of reallocation > probably requires knowing when the key set is likely > to be complete, and that is indeed more complex than > the current changes.  (That said, you have left code > i

[issue14239] Uninitialised variable in _PyObject_GenericSetAttrWithDict

2012-03-09 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue14210] add filename completion to pdb

2012-03-09 Thread Georg Brandl
Georg Brandl added the comment: > I see that completion now works for user-defined variables, but: > * completing with 'b' doesn't work at all Right, that needs to be added for every shortcut. > * completing with 'break' only completes the first directory that gets the > TAB key > * also, 'b

[issue13903] New shared-keys dictionary implementation

2012-03-09 Thread Jim Jewett
Jim Jewett added the comment: >> As of Feb 28, 2012, the PEP mentions an additional >> optimization of storing the values in an array indexed >> by (effectively) key insertion order, rather than key >> position. ("Alternative Implementation") >> It states that this would reduce memory usage for

[issue14238] python shouldn't need username in passwd database

2012-03-09 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- keywords: +easy nosy: +eric.araujo versions: +Python 3.2 ___ Python tracker ___ ___ Python-bugs-list ma

[issue14229] On KeyboardInterrupt, the exit code should mirror the signal number

2012-03-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: (faulthandler works around that problem by restoring the previous signal handler and calling raise(), apparently) -- ___ Python tracker ___ __

[issue14229] On KeyboardInterrupt, the exit code should mirror the signal number

2012-03-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Another problem with my suggestion is that C exit() ANDs the status with 255 before transmitting it to the parent. -- ___ Python tracker ___ _

[issue14228] It is impossible to catch sigint on startup in python code

2012-03-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, I see. Would an option to disable the default SIGINT handlers (and let the OS kill the process) be an acceptable solution to your use case? Keep in mind that letting the OS kill the process will bypass any destructors at the Python level, so for example s

[issue14210] add filename completion to pdb

2012-03-09 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: Thanks for the work. I see that completion now works for user-defined variables, but: * completing with 'b' doesn't work at all * completing with 'break' only completes the first directory that gets the TAB key * also, 'break' doesn't complete when I do

[issue14218] include rendered output in addition to markup

2012-03-09 Thread Ezio Melotti
Ezio Melotti added the comment: > I also agree. I'm just thinking someone who reads that doc should be > able to see the output without building anything. Indeed I wasn't thinking about this use case, but IME people learn most of they know about rst "on the field" (i.e. by imitating what they

[issue14218] include rendered output in addition to markup

2012-03-09 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: > Ezio Melotti added the comment: > Another idea that we were discussing on IRC (and IIRC on another issue that I > can't find anymore), was to add at the top a table like: > > arguments       *arg* > strong text

[issue14232] obmalloc: mmap() returns MAP_FAILED on error, not 0

2012-03-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ha, good catch. Indeed, under Linux MMAP_FAILED seems to be ((void *) -1). -- stage: -> commit review type: -> behavior ___ Python tracker __

[issue14231] Fix or drop Lib/test/crashers/borrowed_ref_1.py

2012-03-09 Thread Armin Rigo
Armin Rigo added the comment: I will attempt a last time to mention that the docstrings in borrowed_ref_*.py used to say they were *examples*. That means: (1) find any internal or external C function that returns a borrowed reference; (2) find all callers and write down all the places that d

[issue14228] SIGINT (Ctrl-C) not caught at startup

2012-03-09 Thread telmich
telmich added the comment: You are right, there is no different behaviour as parent or child in general. I used this example python => shell => python, because it is actually being used like this in cdist (first link in the first post). The problem arises there, because python is called many

[issue12568] Add functions to get the width in columns of a character

2012-03-09 Thread Martin v . Löwis
Martin v. Löwis added the comment: Nicholas: I consider this issue fixed. There already *is* any API to compute the width of a character. Closing this as "works for me". -- resolution: -> works for me status: open -> closed ___ Python tracker

[issue14241] io.UnsupportedOperation.__new__(io.UnsupportedOperation) fails

2012-03-09 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue14228] SIGINT (Ctrl-C) not caught at startup

2012-03-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The problem is *NOT* in the parent: The problem is in the *CHILD* that > is being called from the shell that is throwing a traceback, which I > cannot prevent in the python code. Python does not (at least, should not) run differently as a child or as a parent

[issue14228] SIGINT (Ctrl-C) not caught at startup

2012-03-09 Thread telmich
telmich added the comment: The problem is *NOT* in the parent: The problem is in the *CHILD* that is being called from the shell that is throwing a traceback, which I cannot prevent in the python code. Please run the script yourself and try to get around the problem, you'll notice it's not p

[issue14218] include rendered output in addition to markup

2012-03-09 Thread Ezio Melotti
Ezio Melotti added the comment: My opinion is that in general you should worry about the semantic of the role/directive you are using, rather than its aspect while rendered. Some entries (especially some directives) might benefit from a rendered example, but I don't think it's necessary to add

[issue14205] Raise an error if a dict is modified during a lookup

2012-03-09 Thread Mark Shannon
Mark Shannon added the comment: STINNER Victor wrote: > STINNER Victor added the comment: > > Guido> Given all this I think we should keep it as you have committed > Guido> and add it to the docs and whatsnew. > > I updated What's New in Python 3.3 document. I also wrote an email to > python

[issue14205] Raise an error if a dict is modified during a lookup

2012-03-09 Thread STINNER Victor
STINNER Victor added the comment: Guido> Given all this I think we should keep it as you have committed Guido> and add it to the docs and whatsnew. I updated What's New in Python 3.3 document. I also wrote an email to python-dev to notify all developers of this change. Let's close the issue.

[issue14205] Raise an error if a dict is modified during a lookup

2012-03-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset a428f85de29c by Victor Stinner in branch 'default': Issue #14205: Document the dict lookup change in What's New in Python 3.3 http://hg.python.org/cpython/rev/a428f85de29c -- ___ Python tracker

[issue14231] Fix or drop Lib/test/crashers/borrowed_ref_1.py

2012-03-09 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue14231] Fix or drop Lib/test/crashers/borrowed_ref_1.py

2012-03-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 850d7f6af1b0 by Victor Stinner in branch 'default': Issue #14231: Lib/test/crashers/borrowed_ref_1.py was fixed by ba6376dff6c4. http://hg.python.org/cpython/rev/850d7f6af1b0 -- nosy: +python-dev ___ Pyt

[issue14231] Fix or drop Lib/test/crashers/borrowed_ref_1.py

2012-03-09 Thread STINNER Victor
STINNER Victor added the comment: ba6376dff6c4 changed dict_subscript(): _PyType_Lookup() is replaced by _PyObject_LookupSpecial(). 7b4b921f3335 fixed a reference introduced in this change. _PyObject_Lookup() returns a borrowed reference, whereas _PyObject_LookupSpecial() increments the refe

[issue14241] io.UnsupportedOperation.__new__(io.UnsupportedOperation) fails

2012-03-09 Thread Mark Shannon
New submission from Mark Shannon : >>> io.UnsupportedOperation.__new__(io.UnsupportedOperation) Traceback (most recent call last): File "", line 1, in TypeError: ValueError.__new__(UnsupportedOperation) is not safe, use OSError.__new__() Looking at the mro of io.UnsupportedOperation (io.Unsu

[issue14240] lstrip problem

2012-03-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This is expected behavior: http://docs.python.org/library/stdtypes.html#str.lstrip """The chars argument is not a prefix; rather, all combinations of its values are stripped""" -- nosy: +amaury.forgeotdarc resolution: -> invalid status: open ->

[issue14240] lstrip problem

2012-03-09 Thread Thomas Turner
New submission from Thomas Turner : Problem with lstrip >>> s = 'msgid "supplier code"' >>> >>> s.lstrip('msgid "') 'upplier code"' >>> It should come back with supplier code" To get round the bug I did >>> s.lstrip('msgid ').lstrip('"') 'supplier code"' >>> -- components: None mess

[issue14178] _elementtree problem deleting slices with steps != +1

2012-03-09 Thread Eli Bendersky
Changes by Eli Bendersky : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue14178] _elementtree problem deleting slices with steps != +1

2012-03-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1a721b9a4039 by Eli Bendersky in branch 'default': Issue #14178: Problem deleting slices with steps != +1 in the _elementtree module. http://hg.python.org/cpython/rev/1a721b9a4039 -- nosy: +python-dev _

[issue12568] Add functions to get the width in columns of a character

2012-03-09 Thread Nicholas Cole
Nicholas Cole added the comment: Could we have an update on the status of this? I ask because if 3.3 is going to (finally) fix unicode for curses, it would be really nice if it were possible to calculate the width of what's being displayed! It looks as if there was never quite agreement on t

[issue14210] add filename completion to pdb

2012-03-09 Thread Georg Brandl
Georg Brandl added the comment: Here's a patch for 3.3, adding completion to most commands (either completes locations, breakpoint numbers or expressions). Please test! -- assignee: -> georg.brandl keywords: +patch Added file: http://bugs.python.org/file24767/pdb-completion.diff ___

[issue13903] New shared-keys dictionary implementation

2012-03-09 Thread Mark Shannon
Changes by Mark Shannon : Added file: http://bugs.python.org/file24766/257e16e71654.diff ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue14239] Uninitialised variable in _PyObject_GenericSetAttrWithDict

2012-03-09 Thread Mark Shannon
New submission from Mark Shannon : I get the following compiler warning (rev 2a142141e5fd) Its not strictly an error, but an unitialised variable in such an important function is dangerous. Objects/object.c: In function ‘_PyObject_GenericSetAttrWithDict’: Objects/object.c:1144: warning: ‘descr’

[issue14210] add filename completion to pdb

2012-03-09 Thread Georg Brandl
Georg Brandl added the comment: I agree. It should not be too hard to add complete_break() and other similar methods that do this to Pdb. -- nosy: +georg.brandl ___ Python tracker

[issue14205] Raise an error if a dict is modified during a lookup

2012-03-09 Thread STINNER Victor
STINNER Victor added the comment: > Unmodified CPython (without the patch) already passes the new test in the > patch. You should try Lib/test/crashers/nasty_eq_vs_dict.py, not my test. -- ___ Python tracker ___

[issue14116] Lock.__enter__() method returns True instead of self

2012-03-09 Thread Georg Brandl
Changes by Georg Brandl : -- type: behavior -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue14238] python shouldn't need username in passwd database

2012-03-09 Thread Georg Brandl
Georg Brandl added the comment: I agree -- there should be a guard here that just doesn't add user site directories if the lookup fails. -- nosy: +georg.brandl ___ Python tracker _

[issue14234] CVE-2012-0876 (hash table collisions CPU usage DoS) for embedded copy of expat

2012-03-09 Thread Georg Brandl
Georg Brandl added the comment: I hope this can be integrated during the PyCon sprints? -- ___ Python tracker ___ ___ Python-bugs-lis

[issue14234] CVE-2012-0876 (hash table collisions CPU usage DoS) for embedded copy of expat

2012-03-09 Thread Georg Brandl
Changes by Georg Brandl : -- nosy: +benjamin.peterson, georg.brandl priority: normal -> release blocker ___ Python tracker ___ ___ Pyt

[issue14238] python shouldn't need username in passwd database

2012-03-09 Thread Nadeem Vawda
Nadeem Vawda added the comment: This looks similar to a sporadic failure on the debian bigmem buildbot: http://www.python.org/dev/buildbot/all/builders/AMD64%20debian%20bigmem%203.x/builds/168/steps/test/logs/stdio ERROR: test_expanduser (test.test_posixpath.PosixPathTest)

[issue14238] python shouldn't need username in passwd database

2012-03-09 Thread Arkadiusz Miskiewicz Arkadiusz Miskiewicz
New submission from Arkadiusz Miskiewicz Arkadiusz Miskiewicz : I'm trying to run python from UID which doesn't have entry in passwd database. This fails with: Traceback (most recent call last): File "/usr/share/python2.7/site.py", line 567, in File "/usr/share

[issue14205] Raise an error if a dict is modified during a lookup

2012-03-09 Thread Mark Shannon
Mark Shannon added the comment: Unmodified CPython (without the patch) already passes the new test in the patch. The unmodified code already raises a Runtime error; a recursion limit exceeded error! -- ___ Python tracker

[issue1469629] __dict__ = self in subclass of dict causes a memory leak

2012-03-09 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

  1   2   >