[issue7833] Bdist_wininst installers fail to load extensions built with Issue4120 patch

2011-10-03 Thread Mark Hammond
Mark Hammond skippy.hamm...@gmail.com added the comment: This is biting people (including me :) so I'm going to try hard to get this fixed. One user on the python-win32 mailing list resorts to rebuilding every 3rd party module he uses with this patch to get things working again (although

[issue13071] IDLE refuses to open on windows 7

2011-10-03 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Are you using the .msi installer from python.org? Or one from activestate or enthought? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13071

[issue13071] IDLE refuses to open on windows 7

2011-10-03 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Are you using some unusual keyboard layout? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13071 ___

[issue13071] IDLE refuses to open on windows 7

2011-10-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This issue is very similar to issue5707: it is possible to define a custom key binding to Alt or Control: just click the Alt box and don't select a letter. There is no check, it's possible to save this buggy key binding, and IDLE won't

[issue12804] make test fails on systems without internet access

2011-10-03 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: FWIW there's also support.open_urlresource that can be used to download test data. open_urlresouce calls requires('urlfetch') and skips the test when the resource is not enabled. For instance, test_normalization uses it: try:

[issue7425] Improve the robustness of pydoc -k in the face of broken modules

2011-10-03 Thread Ned Deily
Ned Deily n...@acm.org added the comment: It turns out that the proposed fix here for pydoc was independently added in the early days of Python 3 but was not backported. That fix for 2.7 plus a fix-in-progress for Issue7367 (for both 2.7 and 3.x) and additional test cases (also in progress)

[issue13072] Getting a buffer from a Unicode array uses invalid format

2011-10-03 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: The automatic conversion of 'u' to 'I' or 'L' causes test_buffer (PEP-3118 repo) to fail: # Not implemented formats. Ugly, but inevitable. This is the same as # issue #2531: equality is also used for membership testing and must # return

[issue13072] Getting a buffer from a Unicode array uses invalid format

2011-10-03 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13072 ___ ___

[issue12458] Tracebacks should contain the first line of continuation lines

2011-10-03 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: This is an interesting proposal. The line number comes from Python/traceback.c:120: tb-tb_lineno = PyFrame_GetLineNumber(frame); and this function is defined in Objects/frameobject.c:35: int PyFrame_GetLineNumber(PyFrameObject *f) {

[issue13072] Getting a buffer from a Unicode array uses invalid format

2011-10-03 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: It would be better to use a format for a Py_UCS4 string, but struct doesn't support such type. PEP-3118 suggests for the extended struct syntax: 'c' - ucs-1 (latin-1) encoding 'u' - ucs-2 'w' - ucs-4 --

[issue6632] Include more fullwidth chars in the decimal codec

2011-10-03 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +tchrist ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6632 ___ ___ Python-bugs-list

[issue12911] Expose a private accumulator C API

2011-10-03 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: It's not a container type, just a small C struct that gets allocated on the stack. Think of it as a library, like stringlib. That's what I call a container type: a structure with a library :-) That's another possibility. But we'd have

[issue12911] Expose a private accumulator C API

2011-10-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: That's another possibility. But we'd have to expose a C API anyway, and this one is as good as any other. No, it's not: it's additional clutter. If new API needs to be added, adding it for existing structures is better. Notice that you

[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2011-10-03 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. f...@fdrake.net: -- nosy: -fdrake ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue670664 ___ ___ Python-bugs-list

[issue13072] Getting a buffer from a Unicode array uses invalid format

2011-10-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: The automatic conversion of 'u' to 'I' or 'L' causes test_buffer (PEP-3118 repo) to fail: # Not implemented formats. Ugly, but inevitable. This is the same as # issue #2531: equality is also used for membership testing and must

[issue13072] Getting a buffer from a Unicode array uses invalid format

2011-10-03 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: STINNER Victor rep...@bugs.python.org wrote: # Not implemented formats. Ugly, but inevitable. This is the same as # issue #2531: equality is also used for membership testing and must # return a result. a = array.array('u', 'xyz')

[issue13094] setattr misbehaves when used with lambdas inside for loop

2011-10-03 Thread Tomáš Dvořák
New submission from Tomáš Dvořák dvto...@gmail.com: I have this python script, and run it in python 2.7.2 (installed from EPD_free 7.1-2 (32-bit), but I guess this has nothing to do with EPD. 8---fail.py-- class X(object): pass x = X() items = [foo, bar, baz] for each in items:

[issue13094] setattr misbehaves when used with lambdas inside for loop

2011-10-03 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Sorry. It is intended behavior. The lambda 'each' is bound to the local 'each', and by the time the lambda's execute, the value of 'each' is 'baz'. I'm going to turn this into a doc bug, because while I'm pretty sure this is

[issue13094] Need Programming FAQ entry for the behavior of closures

2011-10-03 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- title: setattr misbehaves when used with lambdas inside for loop - Need Programming FAQ entry for the behavior of closures ___ Python tracker rep...@bugs.python.org

[issue13094] Need Programming FAQ entry for the behavior of closures

2011-10-03 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: To understand better what's going on, try to change the value of 'each' after the 3 prints and then call again the 3 methods: you will see that they now return the new value of each. This is because the lambdas refer to global 'each'

[issue13094] Need Programming FAQ entry for the behavior of closures

2011-10-03 Thread Tomáš Dvořák
Tomáš Dvořák dvto...@gmail.com added the comment: Thank you all very much for the super-quick responses. I'm used to smalltalk, so the python variable binding behaviour is unnatural to me, but I guess there must have been some reasons for making it behave this way. Ezio, the lambda

[issue13045] socket.getsockopt may require custom buffer contents

2011-10-03 Thread Artyom Gavrichenkov
Changes by Artyom Gavrichenkov xima...@highloadlab.com: -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13045 ___ ___

[issue13094] Need Programming FAQ entry for the behavior of closures

2011-10-03 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Maybe with a different name is less confusing: lambda return_value=each: return_value This copies the value of 'each' in a variable called 'return_value' that is local to the lambda. Since the copy happens when the lambdas are defined,

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-10-03 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11816 ___ ___ Python-bugs-list

[issue13045] socket.getsockopt may require custom buffer contents

2011-10-03 Thread Artyom Gavrichenkov
Changes by Artyom Gavrichenkov xima...@highloadlab.com: -- nosy: +neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13045 ___ ___

[issue13045] socket.getsockopt may require custom buffer contents

2011-10-03 Thread Artyom Gavrichenkov
Changes by Artyom Gavrichenkov xima...@highloadlab.com: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13045 ___ ___

[issue13045] socket.getsockopt may require custom buffer contents

2011-10-03 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Hello, method:: socket.getsockopt(level, optname[, optarg]) The overloading of the third parameter is confusing: it can already be an integer value or a buffer size, I don't think that adding a third possibility is a good idea. It

[issue12753] \N{...} neglects formal aliases and named sequences from Unicode charnames namespace

2011-10-03 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: There are no official English titling rules and as you noted, publishers vary. If there aren't any rules, then how come all book and movie titles always look the same? :) Can we please leave the English language out of this issue?

[issue12753] \N{...} neglects formal aliases and named sequences from Unicode charnames namespace

2011-10-03 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: The patch is pretty much complete, it just needs a review (I left some comments on the review page). One thing that can be added is some compression for the names of the named sequences. I'm not sure I can reuse the same compression used

[issue13001] test_socket.testRecvmsgTrunc failure on FreeBSD 7.2 buildbot

2011-10-03 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 4378bae6b8dc by Charles-François Natali in branch 'default': Issue #13001: Fix test_socket.testRecvmsgTrunc failure on FreeBSD 8, which http://hg.python.org/cpython/rev/4378bae6b8dc -- nosy: +python-dev

[issue13045] socket.getsockopt may require custom buffer contents

2011-10-03 Thread Artyom Gavrichenkov
Artyom Gavrichenkov xima...@highloadlab.com added the comment: Hi Charles-François, I've attached an update for the previous patch. Now there's no more overloading for the third argument and socket.getsockopt accepts one more optional argument -- a buffer to use as an input to kernel. I can

[issue12555] PEP 3151 implementation

2011-10-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Should the input of OSError be checked? It could, but pre-PEP it is not, so I assumed it's better to minimize compatibility-breaking changes. -- ___ Python tracker rep...@bugs.python.org

[issue12555] PEP 3151 implementation

2011-10-03 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: Added file: http://bugs.python.org/file23307/554524a74bbe.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12555 ___

[issue12555] PEP 3151 implementation

2011-10-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Patch update against latest default. There shouldn't be anything interesting to see. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12555

[issue13095] Support for splitting lists/tuples into chunks

2011-10-03 Thread Cal Leeming
New submission from Cal Leeming cal.leem...@simplicitymedialtd.co.uk: After a while of digging around, I noticed that the core libs don't provide an easy way of splitting a list/tuple into chunks - as per the following discussion:

[issue12753] \N{...} neglects formal aliases and named sequences from Unicode charnames namespace

2011-10-03 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The patch needs to take versioning into account. It seems that NamedSequences where added in 4.1, and NameAliases in 5.0. So for the moment, when using 3.2 (i.e. when self is not NULL), it is fine to lookup neither. Please put an assertion

[issue13095] Support for splitting lists/tuples into chunks

2011-10-03 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: This sounds like the grouper() recipe of itertools. You could try to convince Raymond and see if he wants to include it in itertools. -- nosy: +ezio.melotti, rhettinger versions: +Python 3.3

[issue13095] Support for splitting lists/tuples into chunks

2011-10-03 Thread Cal Leeming
Cal Leeming cal.leem...@simplicitymedialtd.co.uk added the comment: Oh - and while we are at it - how about having merge_list() and unique_list() as part of the core too?? def unique_list(seq): # Dave Kirby # Order preserving seen = set() return [x for x in seq if x not in seen

[issue12753] \N{...} neglects formal aliases and named sequences from Unicode charnames namespace

2011-10-03 Thread Tom Christiansen
Tom Christiansen tchr...@perl.com added the comment: Ezio Melotti rep...@bugs.python.org wrote on Mon, 03 Oct 2011 04:15:51 -: But it still has to happen at compile time, of course, so I don't know what you could do in Python. Is there any way to change how the compiler behaves even

[issue13081] Crash in Windows with unknown cause

2011-10-03 Thread Amorilia
Amorilia amorilia.game...@gmail.com added the comment: I'm the author of the application. The tool is written in pure Python, and only uses libraries from stdlib. It would be really nice to have a simple standalone script to reproduce the crash, however I am still trying to reproduce it

[issue13081] Crash in Windows with unknown cause

2011-10-03 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: I recently created minidumper to write Visual Studio MiniDump files of interpreter crashes, but it's currently only available on 3.x. If I port it to 2.x, you could add import minidumper;minidumper.enable() to the top of your script, then we

[issue13070] segmentation fault in pure-python multi-threaded server

2011-10-03 Thread Victor Semionov
Victor Semionov vsemio...@gmail.com added the comment: Any plans to fix this in the next release? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13070 ___

[issue12753] \N{...} neglects formal aliases and named sequences from Unicode charnames namespace

2011-10-03 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The main underlying problem is that the internal macros are defined in a way that made sense a long time ago, but no longer do ever since (for example) the Unicode lowercase property stopped being synonymous with GC=Ll and started also

[issue13001] test_socket.testRecvmsgTrunc failure on FreeBSD 7.2 buildbot

2011-10-03 Thread Charles-François Natali
Changes by Charles-François Natali neolo...@free.fr: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13001

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

2011-10-03 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: test_multiprocessing frequently hangs on FreeBSD 8 buildbots, and this probably has to do with the limit on the max number of POSIX semaphores: == ERROR:

[issue12210] test_smtplib: intermittent failures on FreeBSD

2011-10-03 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I haven't seen this in a while, so let's assume it's fixed. -- resolution: - out of date stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue13071] IDLE refuses to open on windows 7

2011-10-03 Thread jfalskfjdsl;akfdjsa;l laksfj;aslkfdj;sal
jfalskfjdsl;akfdjsa;l laksfj;aslkfdj;sal christopherdar...@gmail.com added the comment: ok i have solved the problem it was the same as issue 4765 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13071

[issue13071] IDLE refuses to open on windows 7

2011-10-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: What did you do to solve the problem? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13071 ___

[issue7689] Pickling of classes with a metaclass and copy_reg

2011-10-03 Thread Brent Payne
Changes by Brent Payne brent.pa...@gmail.com: -- nosy: +Brent.Payne ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7689 ___ ___ Python-bugs-list

[issue13081] Crash in Windows with unknown cause

2011-10-03 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: Without the aforementioned minidump library, you can also kick off the Python interpreter using a debugger (or have a debugger break into an already-running one) [1]. When the crash happens--presumably the debugger will break at this

[issue13071] IDLE accepts, then crashes, on invalid key bindings.

2011-10-03 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: While this issue and #4765 are about the same effect, with a similar workaround, Amaury has indentified a separate bug in the custom key mechanism. So I retitled it to refer to that bug. -- title: IDLE refuses to open on windows 7 -

[issue4765] IDLE fails to Delete Custom Key Set properly

2011-10-03 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Note the config-main.cfg contains all custom configurations and appears if you make any one of them. Mine currently says [EditorWindow] font = lucida sans unicode [General] autosave = 1 So deleting it is a hack workaround until the bug is

[issue13095] Support for splitting lists/tuples into chunks

2011-10-03 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: These have been rejected before. There is always a trade-off in adding tools such as this -- it can take more time to learn and remember them than to write a trivial piece of code to do it yourself. Another issue is that people

[issue13081] Crash in Windows with unknown cause

2011-10-03 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13081 ___ ___ Python-bugs-list

[issue12053] Add prefetch() for Buffered IO (experiment)

2011-10-03 Thread John O'Connor
John O'Connor tehj...@gmail.com added the comment: Here is an update with the C implementation. I think a working prototype will be helpful before another round on python-dev. I'm not sure how to handle unseekable, non-blocking streams where the read returns before `skip` bytes are

[issue1887] distutils doesn't support out-of-source builds

2011-10-03 Thread Matt Joiner
Changes by Matt Joiner anacro...@gmail.com: -- nosy: +anacrolix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1887 ___ ___ Python-bugs-list

[issue12881] ctypes: segfault with large structure field names

2011-10-03 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset aa3ebc2dfc15 by Meador Inge in branch '2.7': Issue #12881: ctypes: Fix segfault with large structure field names. http://hg.python.org/cpython/rev/aa3ebc2dfc15 New changeset d05350c14e77 by Meador Inge in branch

[issue13096] ctypes: segfault with large POINTER type names

2011-10-03 Thread Meador Inge
New submission from Meador Inge mead...@gmail.com: Reproducible in 2.7 and tip: [meadori@motherbrain cpython]$ ./python Python 3.3.0a0 (default:61de28fa5537+d05350c14e77+, Oct 3 2011, 21:47:04) [GCC 4.6.0 20110603 (Red Hat 4.6.0-10)] on linux Type help, copyright, credits or license for more

[issue13096] ctypes: segfault with large POINTER type names

2011-10-03 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: There is similar crasher to this one that can be reproduced like: [meadori@motherbrain cpython]$ ./python Python 3.3.0a0 (default:61de28fa5537+d05350c14e77+, Oct 3 2011, 21:47:04) [GCC 4.6.0 20110603 (Red Hat 4.6.0-10)] on linux Type help,

[issue13097] ctypes: segfault with large number of callback arguments

2011-10-03 Thread Meador Inge
New submission from Meador Inge mead...@gmail.com: Reproducible in 2.7 and tip: [meadori@motherbrain cpython]$ ./python Python 3.3.0a0 (default:61de28fa5537+d05350c14e77+, Oct 3 2011, 21:47:04) [GCC 4.6.0 20110603 (Red Hat 4.6.0-10)] on linux Type help, copyright, credits or license for more

[issue12881] ctypes: segfault with large structure field names

2011-10-03 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Fixed. Opened issue13096 and issue13097 for the other crashers. -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue12880] ctypes: clearly document how structure bit fields are allocated

2011-10-03 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: On Fri, Sep 30, 2011 at 12:19 PM, Vlad Riscutia rep...@bugs.python.org wrote: I believe this is the better thing to do rather than detailing how GCC and MSVC allocated their bitfields because that would just encourage people to use this

[issue12880] ctypes: clearly document how structure bit fields are allocated

2011-10-03 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Added some comments in rietveld. P.S. watch out for trailing whitespace when writing patches. Use 'make patchcheck' to help find bad whitespace formatting. -- ___ Python tracker

[issue7689] Pickling of classes with a metaclass and copy_reg

2011-10-03 Thread Lance Hepler
Lance Hepler nlhep...@gmail.com added the comment: Hello all, sorry to be a bother, but what's the progress on this issue? I have a codebase that requires resolution of this issue to enable multiprocessing. What are the remaining outstanding problems herein preventing the attached patches