[issue11421] Subversion keywords missing on 2.5 checkout

2011-03-21 Thread Senthil Kumaran
Senthil Kumaran added the comment: How about the patch attached in the issue11579 -- nosy: +orsenthil ___ Python tracker ___ ___ Pyth

[issue10617] Collections ABCs can’t be linked to

2011-03-21 Thread Georg Brandl
Georg Brandl added the comment: Yes; then the table entries will link to the descriptions below. -- ___ Python tracker ___ ___ Python

[issue10617] Collections ABCs can’t be linked to

2011-03-21 Thread Georg Brandl
Georg Brandl added the comment: BTW: :meth:`x ` should not do anything different from :meth:`x`. -- ___ Python tracker ___ ___ Python

[issue9309] Add environment variable complementing command line option -no-user-cfg

2011-03-21 Thread Alexander Dreyer
Alexander Dreyer added the comment: If a another solution via virtualenv could do it, I'd prefer that, too. -- ___ Python tracker ___

[issue10617] Collections ABCs can’t be linked to

2011-03-21 Thread Ezio Melotti
Ezio Melotti added the comment: I put the list first and table second because the table contains more details and information, whereas the list only has a short description (usually the tables provide an overview and they are followed by a more comprehensive list). I didn't include the () afte

[issue9584] Allow curly brace expansion

2011-03-21 Thread Eric Smith
Eric Smith added the comment: Yes, we recently switched to Mercurial. See http://docs.python.org/devguide/faq.html You shouldn't need to change your patches just because of the switch from svn. -- ___ Python tracker

[issue11421] Subversion keywords missing on 2.5 checkout

2011-03-21 Thread Martin v . Löwis
Martin v. Löwis added the comment: I was worried that the fatal error might not trigger anymore when doing something odd with subversion, but I guess this is unfounded worry. So I'm fine with the patch. -- ___ Python tracker

[issue11579] python 2.5 does not build from hg - looks for subversion keywords

2011-03-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset f9763c363cc3 by Martin v. Löwis in branch '2.5': Set subversion version identification to empty strings if this is not a subversion http://hg.python.org/cpython/rev/f9763c363cc3 -- nosy: +python-dev resolution: -> fixed stage: needs patch

[issue3080] Full unicode import system

2011-03-21 Thread STINNER Victor
STINNER Victor added the comment: > As I see Victor has dropped OS/2 support from Python/import.c > Perhaps file Python/dynload_os2.c should be removed also. > Not sure about other dynload_* files. 340f76a6a792 just removes few lines in import.c: they can easily be rewritten. And this commit d

[issue11594] 2to3 tool does not preserve line-endings

2011-03-21 Thread Alexander Belchenko
Alexander Belchenko added the comment: @Éric Araujo: I've ran tests with python 3.2. All tests have passed: -- Ran 540 tests in 37.688s OK -- ___ Python tracker

[issue11421] Subversion keywords missing on 2.5 checkout

2011-03-21 Thread STINNER Victor
STINNER Victor added the comment: f9763c363cc3 didn't close this issue whereas its message contains "Closes #11579. Closes #11421.". This commit closed #11579. -- nosy: +haypo ___ Python tracker _

[issue11421] Subversion keywords missing on 2.5 checkout

2011-03-21 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11397] os.path.realpath() may produce incorrect results

2011-03-21 Thread Santoso Wijaya
Santoso Wijaya added the comment: I'm attaching a patch that fixes this bug. I'm using a different algorithm altogether than the currently existing one, to allow a stack-based approach that lends itself to fixing this bug (as inspired by Wojciech). Hopefully it won't expose new, subtler bugs.

[issue11397] os.path.realpath() may produce incorrect results

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

[issue10837] Issue catching KeyboardInterrupt while reading stdin

2011-03-21 Thread Devin Jeanpierre
Devin Jeanpierre added the comment: I can confirm this behavior on 2.7. On 3.2 for me it prints "done.", but not "Interrupted!" -- nosy: +Devin Jeanpierre ___ Python tracker __

[issue10837] Issue catching KeyboardInterrupt while reading stdin

2011-03-21 Thread Devin Jeanpierre
Devin Jeanpierre added the comment: Sorry, forgot to mention my system. 64-bit Windows 7. -- ___ Python tracker ___ ___ Python-bugs-l

[issue11619] On Windows, don't encode filenames in the import machinery

2011-03-21 Thread STINNER Victor
STINNER Victor added the comment: open_exclusive() was created by: changeset: 14708:89b2aee43e0b branch: legacy-trunk user:Guido van Rossum date:Wed Sep 20 20:31:38 2000 + files: Python/import.c description: On Unix, use O_EXCL when creating the .pyc/.pyo files

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2011-03-21 Thread Devin Jeanpierre
Devin Jeanpierre added the comment: Windows 7 64-bit (on the metal, not in a VM), can confirm. Holding down Ctrl+C will (eventually) halt Python on all the versions I have installed: 2.3, 2.7, 3.0, 3.1, 3.2. (All of these are 32-bit Pythons). Haven't done anything silly like try to install re

[issue11619] On Windows, don't encode filenames in the import machinery

2011-03-21 Thread STINNER Victor
STINNER Victor added the comment: dynload_win.patch: Fix part (a), _PyImport_LoadDynamicModule(). -- keywords: +patch Added file: http://bugs.python.org/file21321/dynload_win.patch ___ Python tracker _

[issue10694] zipfile.py end of central directory detection not robust

2011-03-21 Thread Xuanji Li
Xuanji Li added the comment: Hi, can someone look at the patch? There doesn't seem to be any objections to it and it'll solve a long-standing issue. Thanks! -- ___ Python tracker

[issue10694] zipfile.py end of central directory detection not robust

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

[issue11618] Locks broken wrt timeouts on Windows

2011-03-21 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Yes, the race condition with the timeout is a problem. Here is a patch that implements this lock using a condition variable. I agree that one must consider performance/simplicity when doing this. -- Added file: http://bugs.python.org/file21322/l

[issue11618] Locks broken wrt timeouts on Windows

2011-03-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Yes, the race condition with the timeout is a problem. > Here is a patch that implements this lock using a condition variable. > I agree that one must consider performance/simplicity when doing this. I don't understand why you need something that complicated.

[issue11060] distutils2 sdist does not complain about version that is not PEP 386 compliant

2011-03-21 Thread Éric Araujo
Éric Araujo added the comment: Nice test. Remarks: you don’t need to instantiate MainProgram; the test would be better in test_version; you should test that “0.4.5dev” is rejected, as it’s what was initially reported. Testing versions in mkcfg will be a bit more difficult; testing versions i

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

2011-03-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 74d3dc78f0db by Victor Stinner in branch 'default': Issue #10833: Use PyUnicode_FromFormat() and PyErr_Format() instead of http://hg.python.org/cpython/rev/74d3dc78f0db -- nosy: +python-dev ___ Python tr

[issue11594] 2to3 does not preserve line endings

2011-03-21 Thread Éric Araujo
Éric Araujo added the comment: Thanks. Would you like to work on a unit test or full patch? -- stage: -> test needed title: 2to3 tool does not preserve line-endings -> 2to3 does not preserve line endings ___ Python tracker

[issue10617] Collections ABCs can’t be linked to

2011-03-21 Thread Éric Araujo
Éric Araujo added the comment: > I didn't include the () after the methods name because [...] they look > ugly on the special __methods__() and it's clear that they are methods > even without the (). I feel that way for all functions and methods in the docs, especially given Python’s distincti

[issue11060] distutils2 sdist does not complain about version that is not PEP 386 compliant

2011-03-21 Thread SilentGhost
SilentGhost added the comment: Please, don't use tabs to indent your code. Also check the trailing spaces and tabs. -- nosy: +SilentGhost ___ Python tracker ___ ___

[issue11618] Locks broken wrt timeouts on Windows

2011-03-21 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: I'm just providing this as a fast alternative to the Semaphore, which as far as I know, will cause a kernel call every time. Complicated is relative. In terms of the condition variable api, I wouldn't say that it is. But given the fact that we have

[issue11618] Locks broken wrt timeouts on Windows

2011-03-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I'm just providing this as a fast alternative to the Semaphore, which > as far as I know, will cause a kernel call every time. A Semaphore might be "slow", but I'm not sure other primitives are faster. For the record, I tried another implementation using a cr

[issue11572] bring Lib/copy.py to 100% coverage

2011-03-21 Thread Brandon Craig Rhodes
Brandon Craig Rhodes added the comment: Nick Coghlan writes: > Regarding "__reduce__", other readers will have the same question Éric > did, so that point should definitely go in a comment after the > "__reduce_ex__" check. I just sat down to review this issue, and, looking at test_copy3.patc

[issue11594] 2to3 does not preserve line endings

2011-03-21 Thread Alexander Belchenko
Alexander Belchenko added the comment: Éric, thank you for the proposal, but I'm not familiar enough with the codebase to work on it. The short scan over the tests reveals that there is at least one test which tries to test CRLF behavior, in the file test_refactor.py, but I don't understand

[issue9302] distutils API Reference: setup() and Extension parameters' description not correct.

2011-03-21 Thread Ray.Allen
Ray.Allen added the comment: I searched the distutils docs for such a parameter description table and find tow more on the distutils.core.setup() function descriptions. Reflected in my updated patch. -- title: distutils.core.Extension: list parameters documented as strings -> distuti

[issue11572] bring Lib/copy.py to 100% coverage

2011-03-21 Thread Éric Araujo
Éric Araujo added the comment: The suggestion about assertIsInstance was a mistake, I misread issubclass in the original code. -- ___ Python tracker ___ ___

[issue9309] Add environment variable complementing command line option -no-user-cfg

2011-03-21 Thread Éric Araujo
Éric Araujo added the comment: This is discussed on https://github.com/pypa/virtualenv/issues/88 I noticed that the original Sage bug report requested that no-user-cfg be supported in the global distutils config file; this is more acceptable than adding an environment variable. I’m not sure

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

2011-03-21 Thread STINNER Victor
STINNER Victor added the comment: Ray Allen: Your patch doesn't touch the documentation. At least, you should mention (using .. versionchanged:: 3.3) that PyUnicode_FromFormat() does now support width and precision. It is important to specify the unit of the sizes: number of bytes or number o

[issue11082] ValueError: Content-Length should be specified

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

[issue11618] Locks broken wrt timeouts on Windows

2011-03-21 Thread sbt
sbt added the comment: > If we are rolling our own instead of using Semaphores (as has been > suggested for performance reasons) then using a Condition variable is > IMHO safer than a custom solution because the correctness of that > approach is so easily provable. Assuming that you trust th

[issue9523] Improve dbm modules

2011-03-21 Thread Ray.Allen
Ray.Allen added the comment: > I think the patch will not be suitable for 3.1 and 3.2 Yes, it changes some api(e.g keys()), which may introduces compatibility issues. > so there should be a doc patch to mention the limitations of the dbm API > (keys() > returning a list and all that). Do you

[issue11046] setup.py/configure [darwin]

2011-03-21 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11594] 2to3 does not preserve line endings

2011-03-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: I can fix it. I just need to find time. :) -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue11046] setup.py/configure

2011-03-21 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: On Sat, Mar 19, 2011 at 11:09:27PM +, Ronald Oussoren wrote: > AFAIK that means it is not necessary to keep this issue open. Yeah, all-automatic is even better than yet another command line option, i think - great! (Let's get completely rid of it.)

[issue11046] setup.py/configure

2011-03-21 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: (P.S.: sorry all of you, have had no contact to roundup and thus [k=v] Subject: interpretation until 30 minutes ago.) -- resolution: later -> fixed ___ Python tracker

[issue11621] DMG build error

2011-03-21 Thread Antoine Pitrou
New submission from Antoine Pitrou : Looks like a bootstrap issue, could be related to the latest getopt changes: Could not find platform dependent libraries Consider setting $PYTHONHOME to [:] Traceback (most recent call last): File "/Users/db3l/buildarea.dmg/3.x.dmg/build/setup.py", line 1

[issue11621] DMG build error

2011-03-21 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: -pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue11618] Locks broken wrt timeouts on Windows

2011-03-21 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Emulating condition variables on windows became easy once Semaphores were provided by the OS because they provide a way around the lost wakeup problem. The current implementation in cpython was submitted by me :) The source material is provided for

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

2011-03-21 Thread STINNER Victor
STINNER Victor added the comment: I did some tests with WriteConsoleW(): - with raster fonts, U+00E9 is displayed as é, U+0141 as L and U+042D as ? => good (work as expected) - with TrueType font (Lucida), U+00E9 is displayed as é, U+0141 as Ł and U+042D as Э => perfect! (all characters are

[issue11622] Documentation

2011-03-21 Thread Roberto De Renzi
New submission from Roberto De Renzi : I don't know if a suggestion is allowed here. I am an absolute beginner trying to substitute my matlab+fortran with python. I just passed the stage of tutorials and I have to struggle looking for the right syntax to implement my simple-minded programs. Th

[issue11622] Documentation

2011-03-21 Thread SilentGhost
SilentGhost added the comment: Did you try http://docs.python.org/tutorial/ ? -- nosy: +SilentGhost versions: -Python 2.7, Python 3.4 ___ Python tracker ___ ___

[issue11595] Miscellaneous bugs in cfg_to_args() utility function

2011-03-21 Thread Erik Bray
Erik Bray added the comment: I've got an additional patch to this function that also adds support for the package_data option, for extension modules (at least as they are currently specified in setup.cfg), and adds support for running setup_hook. The only problem is that it's starting to copy

[issue11618] Locks broken wrt timeouts on Windows

2011-03-21 Thread sbt
sbt added the comment: Benchmarks (on an old laptop running XP without a VM) doing D:\Repos\cpython\PCbuild>python -m timeit -s "from threading import Lock; l = Lock()" "l.acquire(); l.release()" 100 loops, best of 3: 0.934 usec per loop default:0.934 locktimeout.patch: 0.965

[issue11621] build error: bootstrap issue with gettext

2011-03-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Actually, it's not specific to the DMG build. -- nosy: +pitrou, r.david.murray priority: normal -> release blocker title: DMG build error -> build error: bootstrap issue with gettext ___ Python tracker

[issue11621] build error: bootstrap issue with gettext

2011-03-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 160823d258b5 by Antoine Pitrou in branch 'default': Issue #11621: fix bootstrap issue with getopt/gettext (following d3e46930ffe9) http://hg.python.org/cpython/rev/160823d258b5 -- nosy: +python-dev ___ P

[issue3080] Full unicode import system

2011-03-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: Understood. Sorry. I thought Python support only Windows and posix (Linux, BSD, MacOSX etc) systems now, all other OSes are not maintained. Anyway please don't care about that. -- ___ Python tracker

[issue11621] build error: bootstrap issue with gettext

2011-03-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Should be fixed. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-

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

2011-03-21 Thread Ray.Allen
Changes by Ray.Allen : Removed file: http://bugs.python.org/file21032/issue7330_3.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue5863] bz2.BZ2File should accept other file-like objects. (issue4274045)

2011-03-21 Thread Nadeem Vawda
Nadeem Vawda added the comment: >From the discussion on python-dev, it seems that I will need to submit a Contributor Agreement to the PSF. Can I ask that you not commit this patch until the CA has been submitted? I will need to clear it with my employer, and it might complicate things if the co

[issue5863] bz2.BZ2File should accept other file-like objects. (issue4274045)

2011-03-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > >From the discussion on python-dev, it seems that I will need to submit a > Contributor Agreement to the PSF. Can I ask that you not commit this > patch until the CA has been submitted? I will need to clear it with my > employer, and it might complicate things

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

2011-03-21 Thread Ray.Allen
Ray.Allen added the comment: Ooops! I found my last submitted patch is a wrong one. Here is the updated patch add doc entries about the changes. The test cases which assert error messages generated by PyUnicode_FromFormat() with "%.200s" formatters equality would failed due to this patch. Ho

[issue11618] Locks broken wrt timeouts on Windows

2011-03-21 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Btw, the locktimeout.patch appears to have a race condition. LeaveNonRecursiveMutex may SetEvent when there is no thread waiting (because a timeout just occurred, but the thread on which it happened is still somewhere around line #62 ). This will ca

[issue11618] Locks broken wrt timeouts on Windows

2011-03-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Just for the record, here is the critical section-based version. I would still favour committing the semaphore-based version first (especially in 3.2), and then discussing performance improvements if desired. -- Added file: http://bugs.python.org/file

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-21 Thread Dave Malcolm
Dave Malcolm added the comment: Various thoughts/nitpicking: - is it possible to indicate with a coding convention (e.g. comments) which parts of the code are intended to be called from a signal handler? It seems worth making this explicit. Or perhaps put it all in one file? - within tes

[issue11618] Locks broken wrt timeouts on Windows

2011-03-21 Thread sbt
sbt added the comment: > Btw, the locktimeout.patch appears to have a race condition. > LeaveNonRecursiveMutex may SetEvent when there is no thread waiting > (because a timeout just occurred, but the thread on which it happened > is still somewhere around line #62 ). This will cause the nex

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

2011-03-21 Thread Johannes Lindenbaum
New submission from Johannes Lindenbaum : This bug is a crosspost from /setuptools. (http://bugs.python.org/setuptools/issue122) Summary: OSX 10.6.x with Xcode 4 installed. Xcode 4 removes the PPC assembler from GCC. I attempted to install Fabric-1.0.0 which depended on pycrypto, during the py

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-21 Thread STINNER Victor
STINNER Victor added the comment: Le lundi 21 mars 2011 à 15:59 +, Dave Malcolm a écrit : > Various thoughts/nitpicking: > - is it possible to indicate with a coding convention (e.g. > comments) which parts of the code are intended to be called from a > signal handler? It seems worth maki

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

2011-03-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 513bab5cfb18 by Victor Stinner in branch 'default': Issue #10833: Remove the buffer allocated on the stack, it isn't used anymore http://hg.python.org/cpython/rev/513bab5cfb18 New changeset 4c2135930882 by Victor Stinner in branch 'default': Issue

[issue11618] Locks broken wrt timeouts on Windows

2011-03-21 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Antoine: I agree, the semaphore is the quick and robust solution. sbt: I see your point. Still, I think we still may have a flaw: The statement that (owned-timeouts) is never an under-estimate isn't true on modern architectures, I think. The order

[issue11624] distutils should support a custom list of exported symbols for Windows dlls.

2011-03-21 Thread dholth
New submission from dholth : I would like to be able to use distutils to compile a shared library with a different set of exported symbols than the default. In Windows, distutils only exports certain symbols needed for the Python module initialization API when it compiles a shared module. It d

[issue11625] Typo in collections.abc docs

2011-03-21 Thread Doug Latornell
Changes by Doug Latornell : -- assignee: docs@python components: Documentation nosy: dlatornell, docs@python priority: normal severity: normal status: open title: Typo in collections.abc docs ___ Python tracker ___

[issue11625] Typo in collections.abc docs

2011-03-21 Thread Doug Latornell
New submission from Doug Latornell : There is a minor type in note (1) regarding use of Set and MutableSet mixins. The method to be overridden when a special constructor signature is required should be _from_iterator, not from_iterator. -- ___ Pytho

[issue11625] Typo in collections.abc docs

2011-03-21 Thread Doug Latornell
Changes by Doug Latornell : -- keywords: +patch Added file: http://bugs.python.org/file21326/collections.abc-docs.patch ___ Python tracker ___ ___

[issue11625] Typo in collections.abc docs

2011-03-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for noticing this. -- nosy: +rhettinger priority: normal -> high ___ Python tracker ___ _

[issue11613] test_subprocess fails under Windows

2011-03-21 Thread Reid Kleckner
Reid Kleckner added the comment: The bot is green again as of ab2363f89058. Thanks for the heads up. -- status: open -> closed ___ Python tracker ___ __

[issue11591] "python -S" should be robust against e.g. "from site import addsitedir"

2011-03-21 Thread Carl Meyer
Carl Meyer added the comment: Added documentation to Doc/library/site.rst and Misc/NEWS. -- hgrepos: +5 ___ Python tracker ___ ___ Py

[issue11591] "python -S" should be robust against e.g. "from site import addsitedir"

2011-03-21 Thread Carl Meyer
Changes by Carl Meyer : Added file: http://bugs.python.org/file21327/ebe5760afa08.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue11618] Locks broken wrt timeouts on Windows

2011-03-21 Thread sbt
sbt added the comment: sbt wrote: - I see your point. Still, I think we still may have a flaw: The statement that (owned-timeouts) is never an under-estimate isn't true on modern architectures, I think. The order of the atomic decrement operations in the code means nothing and cannot b

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

2011-03-21 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue11626] Py_LIMITED_API on windows: unresolved symbol __imp___PyArg_ParseTuple_SizeT

2011-03-21 Thread Rainer Schaaf
New submission from Rainer Schaaf : When building a c extension on windows the linker fails like this: link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:../../../libs/plop/Release_MD_PLOPDS_VS6 /LIBPATH:C:\Programme\python32\libs /LIBPATH:C:\Programme\python32\PCbuild kernel32.lib user32.lib gdi

[issue2292] Missing *-unpacking generalizations

2011-03-21 Thread Ezio Melotti
Changes by Ezio Melotti : -- versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue11626] Py_LIMITED_API on windows: unresolved symbol __imp___PyArg_ParseTuple_SizeT

2011-03-21 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : -- assignee: -> loewis nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue11618] Locks broken wrt timeouts on Windows

2011-03-21 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: There is no barrier in use on the read part. I realize that this is a subtle point, but in fact, the atomic functions make no memory barrier guarantees either (I think). And even if they did, you are not using a memory barrier when you read the 'tim

[issue11618] Locks broken wrt timeouts on Windows

2011-03-21 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Antoine: I notice that even the fast path contains a ResetEvent() call. I think this is a kernel call and so just as expensive as directly using a semaphore :). Otherwise, the logic looks robust, although ResetEvent() and Event objects always give

[issue11618] Locks broken wrt timeouts on Windows

2011-03-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Antoine: I notice that even the fast path contains a ResetEvent() > call. I think this is a kernel call and so just as expensive as > directly using a semaphore :) Yes, in my timings it doesn't show significant improvements compared to the semaphore approac

[issue11627] segfault raising an arbitrary object as an exception

2011-03-21 Thread Michael Foord
New submission from Michael Foord : Python 3.2 (r32:88452, Feb 20 2011, 10:19:59) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> class Foo(Exception): ... def __new__(*args): ... return object() ... >>> try: ... raise

[issue11627] segfault raising an arbitrary object as an exception

2011-03-21 Thread Michael Foord
Michael Foord added the comment: Personally I don't think this should be valid at all (it should ideally be an error at the raise point). It is the kind of thing that causes difficulties for the other implementations trying to match CPython behaviour (this code works in Python 2.7 - you can c

[issue11627] segfault raising an arbitrary object as an exception

2011-03-21 Thread Andreas Stührk
Changes by Andreas Stührk : -- nosy: +Trundle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue11627] segfault raising an arbitrary object as an exception

2011-03-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Have you tried 3.1? -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue11627] segfault raising an arbitrary object as an exception

2011-03-21 Thread Michael Foord
Michael Foord added the comment: This: raise type('',(Exception,),{'__new__':lambda *a:object()}) Segfaults 3.2 but not 3.1. -- ___ Python tracker ___ ___

[issue11628] cmp_to_key generated class should use __slots__

2011-03-21 Thread Chris Colbert
New submission from Chris Colbert : The cmp_to_key func acts as a class factory for generating key objects that behave according to a user defined cmp function. Many patterns/libs that make use of key functions (for example blist and the SortedCollection recipe) store the the results of the k

[issue5309] setup.py doesn't parallelize extension module compilation

2011-03-21 Thread Éric Araujo
Changes by Éric Araujo : -- keywords: +gsoc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue11627] segfault raising an arbitrary object as an exception

2011-03-21 Thread Santoso Wijaya
Santoso Wijaya added the comment: Oddly, this works: C:\Users\santa>C:\python32\python.exe Python 3.2 (r32:88445, Feb 20 2011, 21:30:00) [MSC v.1500 64 bit (AMD64)] on win 32 Type "help", "copyright", "credits" or "license" for more information. >>> class Foo(Exception): ... def __new__(*ar

[issue11627] segfault raising an arbitrary object as an exception

2011-03-21 Thread Santoso Wijaya
Santoso Wijaya added the comment: Also, why is the print() in __new__ executed twice? -- ___ Python tracker ___ ___ Python-bugs-list

[issue11627] segfault raising an arbitrary object as an exception

2011-03-21 Thread Andreas Stührk
Andreas Stührk added the comment: On Mon, Mar 21, 2011 at 10:27 PM, Santoso Wijaya wrote: > > Santoso Wijaya added the comment: > > Also, why is the print() in __new__ executed twice? Because `PyErr_NormalizeException()` is called twice: First time when the exceptions is raised, and then a se

[issue11618] Locks broken wrt timeouts on Windows

2011-03-21 Thread sbt
sbt added the comment: krisvale wrote There is no barrier in use on the read part. I realize that this is a subtle point, but in fact, the atomic functions make no memory barrier guarantees either (I think). And even if they did, you are not using a memory barrier when you read the 'ti

[issue11622] Documentation

2011-03-21 Thread Éric Araujo
Éric Araujo added the comment: Welcome to Python! We hope you’ll have a great time using it. The language reference is useful to understand subtleties or implement a Python interpreter, not for common use. The library reference is, well, a reference manual to use when you already know the m

[issue11628] cmp_to_key generated class should use __slots__

2011-03-21 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : -- nosy: +stutzbach ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue9523] Improve dbm modules

2011-03-21 Thread Éric Araujo
Éric Araujo added the comment: Yes, I mean exactly that. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue11621] build error: bootstrap issue with gettext

2011-03-21 Thread Éric Araujo
Éric Araujo added the comment: Thank you for catching and fixing this. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue11618] Locks broken wrt timeouts on Windows

2011-03-21 Thread Martin v . Löwis
Martin v. Löwis added the comment: > I would still favour committing the semaphore-based version first > (especially in 3.2), and then discussing performance improvements if > desired. For 3.2, I would prefer a solution that makes least changes to the current code. This is better than fundament

[issue11624] distutils should support a custom list of exported symbols for Windows dlls.

2011-03-21 Thread Éric Araujo
Éric Araujo added the comment: Would you like to work on a patch? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

  1   2   >