[issue11660] closure with too few cells segfaults

2011-03-24 Thread Eric Snow
Eric Snow added the comment: I'm hoping to "release" it this week. Nick helped be a bunch with it during pycon sprints. I basically took call_function in ceval.c and got it working for arbitrary code blocks and exposed it as exec_closure to look like exec. On Thu, Mar 24, 2011 at 3:38 PM, Ben

[issue11660] closure with too few cells segfaults

2011-03-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/3/24 Eric Snow : > > Eric Snow added the comment: > > I'm hoping to "release" it this week.  Nick helped be a bunch with it during > pycon sprints.  I basically took call_function in ceval.c and got it working > for arbitrary code blocks and exposed it

[issue11660] closure with too few cells segfaults

2011-03-24 Thread Eric Snow
Eric Snow added the comment: It's a C function that for now I have in an extension module. If it turns out to be useful I am going to try to get it put into the builtins, but I don't want to get ahead of myself. -- Added file: http://bugs.python.org/file21380/unnamed _

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-03-24 Thread Brett Cannon
Brett Cannon added the comment: In terms of the symmetrical comment, what exactly do you mean? The semantics are opposites of each other. Do you not like the name? Or did I screw up and they truly aren't opposites? -- ___ Python tracker

[issue11660] closure with too few cells segfaults

2011-03-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: Then the checking should be in your function. -- resolution: -> wont fix status: open -> closed ___ Python tracker ___

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-03-24 Thread Éric Araujo
Éric Araujo added the comment: It’s only the names that are not symmetrical (“_on” or not). -- ___ Python tracker ___ ___ Python-bugs

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-03-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The attached patch has both the code to make test skipping more > obvious as well as eliminating the concept of expected skips. I still don't like the idea that we have to hand-maintain lists of "optional" or "required" platforms. It is not more manageable th

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-03-24 Thread Brett Cannon
Brett Cannon added the comment: I can change it to 'required' and 'optional'. As for Antoine's comment, do you have another suggestion? I realize it isn't necessarily easier per se to manage these lists than the 'expected' list, but what would you rather have happen? Simply say tests are skip

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-03-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I can change it to 'required' and 'optional'. > > As for Antoine's comment, do you have another suggestion? I realize it > isn't necessarily easier per se to manage these lists than the > 'expected' list, but what would you rather have happen? > Simply say te

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-03-24 Thread Brett Cannon
Brett Cannon added the comment: On Thu, Mar 24, 2011 at 15:22, Antoine Pitrou wrote: Sure, but do the buildbots pick up on this fact in some visible way? > Perhaps we can keep required/optional for core things like "posix" or > "winreg". But failing the test suite because ctypes doesn't compil

[issue11665] Regexp findall freezes

2011-03-24 Thread Viktor Ferenczi
New submission from Viktor Ferenczi : Finding all matches of a expression freezes: {{{ fviktor@sirius:~$ python3.2 Python 3.2 (r32:88445, Mar 8 2011, 01:24:57) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import re >>> text = '\\ = 0) & (la

[issue11665] Regexp findall freezes

2011-03-24 Thread Viktor Ferenczi
Viktor Ferenczi added the comment: Fixing my typo in this bug report: "Finding all matches of a regular expression freezes:" (I'm not allowed to edit the report's body itself.) -- ___ Python tracker

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-03-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue11477] Bug in code dispatching based on internal slots

2011-03-24 Thread Nick Coghlan
Changes by Nick Coghlan : Added file: http://bugs.python.org/file21383/8bd713a823b5.diff ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue11665] Regexp findall freezes

2011-03-24 Thread Alex Gaynor
Alex Gaynor added the comment: Yes, this is known as catastrophic backtracking, and there isn't really a solution for it, some regexps can't be efficiently matched. -- nosy: +alex ___ Python tracker _

[issue11665] Regexp findall freezes

2011-03-24 Thread STINNER Victor
STINNER Victor added the comment: If I read correctly '(<(?:(?:[^<>]*)|(?:"[^"]*"))*>)', it is something like (A*|B)*. Regex like (A*)* is *very* slow. It can easily be optimized to A*. Or for (A*|B)* => (A|B)*. So '(<(?:(?:[^<>]*)|(?:"[^"]*"))*>)' can be optimized to '(<(?:(?:[^<>])|(?:"[^"

[issue11477] Bug in code dispatching based on internal slots

2011-03-24 Thread Nick Coghlan
Nick Coghlan added the comment: Martin and I are still experimenting with this issue as a test case for the remote repository diff calculator, so apologies for the noise as we add and remove patch files. -- ___ Python tracker

[issue11477] Bug in code dispatching based on internal slots

2011-03-24 Thread Martin v . Löwis
Changes by Martin v. Löwis : Removed file: http://bugs.python.org/file21383/8bd713a823b5.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue11477] Bug in code dispatching based on internal slots

2011-03-24 Thread Martin v . Löwis
Changes by Martin v. Löwis : Added file: http://bugs.python.org/file21384/8bd713a823b5.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue11477] Bug in code dispatching based on internal slots

2011-03-24 Thread Martin v . Löwis
Changes by Martin v. Löwis : Removed file: http://bugs.python.org/file21384/8bd713a823b5.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue10833] Replace %.100s by %s in PyErr_Format(): the arbitrary limit of 500 bytes is outdated

2011-03-24 Thread STINNER Victor
STINNER Victor added the comment: My stronger argument was that %.100s was never supported. I am wrong: Python 2 is only to truncate strings in PyErr_Format() (PyString_FromFormatV() supports precision for %s format). As I am the only one wanting to changing that, and I don't have any argumen

[issue10833] Replace %.100s by %s in PyErr_Format(): the arbitrary limit of 500 bytes is outdated

2011-03-24 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11656] Debug builds for Windows would be very helpful

2011-03-24 Thread Jack Jansen
Jack Jansen added the comment: Martin, what I meant by "linking debug and non-debug builds together is impossible" is "you cannot link modules together if they code generation has been set to different runtime systems, for example one module using the debug runtime system and another using th

[issue11666] Test pydoc to display full help for named tuples

2011-03-24 Thread Raymond Hettinger
New submission from Raymond Hettinger : Teach pydoc to find methods and attributes with leadings underscores in a named tuple. -- components: Library (Lib) files: pydoc.patch keywords: patch messages: 132055 nosy: rhettinger priority: normal severity: normal status: open title: Test pyd

[issue11477] Bug in code dispatching based on internal slots

2011-03-24 Thread Martin v . Löwis
Changes by Martin v. Löwis : Added file: http://bugs.python.org/file21386/8bd713a823b5.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue11651] Improve test targets in Makefile

2011-03-24 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue11667] 'configure' script overrides users setting of CFLAGS

2011-03-24 Thread David Kirkby
New submission from David Kirkby : I'm trying to build a version of Python *without* debugging information. The reason for me wanting to do this is because there is a bug which is either in gcc or AIX , that prevents recently patched versions of AIX building code where there are static variabl

[issue7330] PyUnicode_FromFormat: implement width and precision for %s, %S, %R, %V, %U, %A

2011-03-24 Thread STINNER Victor
STINNER Victor added the comment: I closed #10833 as invalid, because it is a regression of Python 3. PyErr_String() uses PyString_FromFormatV() in Python 2, which supports precision for %s, whereas it uses PyUnicode_FromFormatV() in Python 3, which never supported precision for %s.

[issue11668] _multiprocessing.Connection.poll with timeout uses polling under Windows

2011-03-24 Thread Antoine Pitrou
New submission from Antoine Pitrou : This impacts higher-level APIs such as Queue.get() with a positive timeout. I'm not sure whether it's easily possible to fix this. A Google search seems to suggest that the pipe could be opened with "SYNCHRONIZE" access rights (?) and then WaitForSingleObjec

[issue11668] _multiprocessing.Connection.poll with timeout uses polling under Windows

2011-03-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: For the record, the polling code is in conn_poll() in Modules/_multiprocessing/pipe_connection.c. Windows named pipes seem to be created in pure Python in Lib/multiprocessing/connection.py. -- ___ Python tracker <

[issue1602] windows console doesn't print or input Unicode

2011-03-24 Thread David-Sarah Hopwood
David-Sarah Hopwood added the comment: I wrote: > The only caveat would be that if you write a partial line to the buffer > object (or if you set the buffer object to be fully buffered and write to > it), and then write to the text stream, the buffer wouldn't be flushed before > the text is w

[issue1602] windows console doesn't print or input Unicode

2011-03-24 Thread David-Sarah Hopwood
David-Sarah Hopwood added the comment: I wrote: $ python3 -c 'import sys; sys.stdout.write("foo"); sys.stdout.buffer.write(b"bar"); sys.stdout.write("baz\n")' barfoobaz Hmm, the behaviour actually would differ here: the proposed implementation would print foobaz bar (the "foobaz\n" is writt

[issue1602] windows console doesn't print or input Unicode

2011-03-24 Thread Glenn Linderman
Glenn Linderman added the comment: Presently, a correct application only needs to flush between a sequence of writes and a sequence of buffer.writes. Don't assume the flush happens after every write, for a correct application. -- ___ Python tracker

[issue11343] Make errors due to full parser stack identifiable

2011-03-24 Thread Andreas Stührk
Andreas Stührk added the comment: On Fri, Mar 4, 2011 at 9:30 PM, Terry J. Reedy wrote: > I agree with Martin (from 2000) that SyntaxError is not right either. Perhaps > a new ParseError subclass thereof. I added a new `ParserError` that inherits from `SyntaxError`. > I presume REPL == read

[issue11343] Make errors due to full parser stack identifiable

2011-03-24 Thread Andreas Stührk
Changes by Andreas Stührk : Removed file: http://bugs.python.org/file20926/parser_nested_SyntaxError.patch ___ Python tracker ___ ___ Python-b

[issue11343] Make errors due to full parser stack identifiable

2011-03-24 Thread Andreas Stührk
Changes by Andreas Stührk : Removed file: http://bugs.python.org/file20925/parser_nested_MemoryError.patch ___ Python tracker ___ ___ Python-b

[issue1602] windows console doesn't print or input Unicode

2011-03-24 Thread David-Sarah Hopwood
David-Sarah Hopwood added the comment: Glenn Linderman wrote: > Presently, a correct application only needs to flush between a sequence of > writes and a sequence of buffer.writes. Right. The new requirement would be that a correct app also needs to flush between a sequence of buffer.writes (

[issue1602] windows console doesn't print or input Unicode

2011-03-24 Thread Glenn Linderman
Glenn Linderman added the comment: Would it suffice if the new scheme internally flushed after every buffer.write? It wouldn't be needed after write, because the correct application would already do one there? Am I off-base in supposing that the performance of buffer.write is expected to in

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-03-24 Thread R. David Murray
R. David Murray added the comment: Antoine wrote: > Do you want to keep track of the specificities of each version of the *BSDs? Currently regrtest does, but they are currently all set to the same list of tests. Perhaps a FreeBSD generic that implies all versions, and then if we ever have a

[issue11321] 9th import of module _pickle always crashes

2011-03-24 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue11657] multiprocessing_{send,recv}fd fail with fds > 256

2011-03-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +asksol, jnoller versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ ___

[issue1602] windows console doesn't print or input Unicode

2011-03-24 Thread STINNER Victor
STINNER Victor added the comment: Le vendredi 25 mars 2011 à 00:54 +, David-Sarah Hopwood a écrit : > David-Sarah Hopwood added the comment: > > I wrote: > $ python3 -c 'import sys; sys.stdout.write("foo"); > sys.stdout.buffer.write(b"bar"); sys.stdout.write("baz\n")' > barfoobaz > > Hmm,

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-24 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Thu, Mar 24, 2011 at 05:32:42PM +, Guido van Rossum wrote: > I still don't think we should raise URLError on the bad redirect; we > should treat it the same as a missing URI/Location header, and it > will raise HTTPError. Agreed. Updated the hg reposito

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-24 Thread Senthil Kumaran
Changes by Senthil Kumaran : Added file: http://bugs.python.org/file21388/ff71c4416cde.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue11668] _multiprocessing.Connection.poll with timeout uses polling under Windows

2011-03-24 Thread Brian Curtin
Brian Curtin added the comment: SYNCHRONIZE comes for free on pipes created with CreateNamedPipe, so there's nothing to do there. I think it's more likely that we'll have to use WaitForMultipleObjects and include the pipe handle with a signal handler for Ctrl-C. I believe this is done elsewh

[issue3851] IDLE: Pressing "Home" on Windows places cursor before ">>>" instead of after. Solution offered.

2011-03-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset a7d50a4e124e by Kurt B. Kaiser in branch '3.1': toggle non-functional when NumLock set http://hg.python.org/cpython/rev/a7d50a4e124e -- ___ Python tracker ___

[issue11623] Distutils is reporting OSX 10.6 w/ XCode 4 as "universal"

2011-03-24 Thread Ned Deily
Ned Deily added the comment: A similar issue on StackOverflow reminded me that Distutils has support for the ARCHFLAGS environment variable on Mac OS X which you can use when building a C extension module to override the ARCH values that Python was built with. I don't have Xcode 4 installed

<    1   2