[issue9210] remove --with-wctype-functions configure option

2010-09-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Applied in r84752. -- resolution: accepted -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue9828] Repeated Py_Initialize and Py_Finalize usage brings fatal error?

2010-09-12 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: gildestroy.patch also works. E:\PYTHON~1\py3k\PC\VC6>ctypes_crash.exe --- 0 --- [36303 refs] --- 1 --- [39184 refs] --- 2 --- [41582 refs] --- 3 --- [43974 refs] --- 4 --- [46366 refs] --- 5 --- [48758 refs] --- 6 --- [51150 refs] --- 7 --- [53542 refs] ---

[issue9313] distutils error on MSVC older than 8

2010-09-12 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Fixed in r84753(py3k). -- assignee: tarek -> resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 2.7 ___ Python tracker ___

[issue8985] String format() has problems parsing numeric indexes

2010-09-12 Thread Éric Araujo
Éric Araujo added the comment: Just for the record, I said something inexact in my previous message in this thread. New features go to the dev branch (py3k, future 3.2), bug and doc fixes go into py3k and the stable branches (2.7 and 3.1 now), and the previous stable releases (2.5 and 2.6) o

[issue7951] Should str.format allow negative indexes when used for __getitem__ access?

2010-09-12 Thread Éric Araujo
Éric Araujo added the comment: Thank you for the detailed argument, Raymond. I’m +1 on turning this into a doc bug. -- ___ Python tracker ___ __

[issue9815] test_tarfile sometimes ends with error "Cannot remove dir"

2010-09-12 Thread Éric Araujo
Éric Araujo added the comment: I think the tests should go into 2.7 and 3.1 even if they don’t have the bug. Adding Antoine to nosy, since he’s listed for gc in Misc/maintainers.rst. -- nosy: +pitrou ___ Python tracker

[issue9831] test_distutils fails on MacOSX 10.6

2010-09-12 Thread Éric Araujo
Éric Araujo added the comment: I noticed this bug in the tests of distutils2 and added it to my todo list some time ago. Tests looking at pycs should take PYTHONDONTWRITEBYTECODE into account and be skipped instead of failing. I’ll fix it. -- assignee: tarek -> eric.araujo component

[issue9827] Clarify LogRecord documentation

2010-09-12 Thread Éric Araujo
Éric Araujo added the comment: Thanks! -- stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue9831] test_distutils fails on MacOSX 10.6

2010-09-12 Thread Michael Foord
Changes by Michael Foord : -- nosy: -michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-09-12 Thread Matthew Barnett
Matthew Barnett added the comment: OK, so would it be OK if there was, say, a NEW (N) flag which made the inline flags (?flags) scoped and allowed splitting on zero-width matches? -- ___ Python tracker ___

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-09-12 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: -brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue9313] distutils error on MSVC older than 8

2010-09-12 Thread Éric Araujo
Éric Araujo added the comment: Wouldn’t it be more accurate to skip the test instead of returning None (falsely indicating success)? -- ___ Python tracker ___ __

[issue9313] distutils error on MSVC older than 8

2010-09-12 Thread Éric Araujo
Éric Araujo added the comment: (Adding distutils2 component so that forward-porting the patch is not forgotten.) -- assignee: -> tarek components: +Distutils2 ___ Python tracker __

[issue9313] distutils error on MSVC older than 8

2010-09-12 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: tarek -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue9841] sysconfig and distutils.sysconfig differ in subtle ways

2010-09-12 Thread Éric Araujo
New submission from Éric Araujo : With the recent distutils revert, code that was removed from distutils.sysconfig is now back. This causes an unfortunate code duplication that raises maintenance cost (see msg116087 for an example). Even if distutils is feature-frozen, I think that it should

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-09-12 Thread Vlastimil Brom
Vlastimil Brom added the comment: Just another rather marginal findings; differences between regex and re: >>> regex.findall(r"[\B]", "aBc") ['B'] >>> re.findall(r"[\B]", "aBc") [] (Python 2.7 ... on win32; regex - issue2636-

[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2010-09-12 Thread Éric Araujo
Éric Araujo added the comment: Can you propose a patch? Also, can you say if the bug exists with the new sysconfig.get_path in 2.7 and 3.2? (I can’t test right now, I ./configure with a --prefix, which logically gets used in the paths). -- components: +Distutils2 versions: +Python 3

[issue7951] Should str.format allow negative indexes when used for __getitem__ access?

2010-09-12 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- components: +Documentation -Interpreter Core ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue9313] distutils error on MSVC older than 8

2010-09-12 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: How about attached patch? I confirmed this both on MSVC8 and MSVC6. -- assignee: -> tarek Added file: http://bugs.python.org/file18863/py3k_skip_in_distutils_test.patch ___ Python tracker

[issue9313] distutils error on MSVC older than 8

2010-09-12 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- assignee: tarek -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue9181] Solaris extension building does not work with 64 bit python

2010-09-12 Thread Éric Araujo
Éric Araujo added the comment: Thank you for the report. Do you want to work on a patch? The usual process is that someone makes a patch for the active version (branch named py3k, the future 3.2), then the committer backports to stable versions (3.1 and 2.7) and forward-ports to distutils2.

[issue9842] Document ... used in recursive repr of containers

2010-09-12 Thread Éric Araujo
New submission from Éric Araujo : Built-in containers like dict use an ellipsis to represent a recursive item. In the symbols index, “...” only links to the secondary prompt; I think it should also link to a paragraph explaining the display of recursive containers. -- assignee: d...@p

[issue9840] Recursive Repr

2010-09-12 Thread Éric Araujo
Éric Araujo added the comment: Good idea. I wonder if the genericity (being able to specify the placeholder) is needed; the ellipsis is used by built-in containers (not documented AFAICT, see #9842) and seems a good choice for most (all?) of the cases. What bothers me is that this simple, c

[issue901727] extra_path kwarg to setup() undocumented

2010-09-12 Thread Éric Araujo
Éric Araujo added the comment: This strict freeze policy has been decided by Tarek. The less work there is on distutils’ side, the less synchronization we’ll have to do in distutils2. We do fix doc bugs, we can also fix markup or add links, but that’s it. Improving docs is for distutils2.

[issue9313] distutils error on MSVC older than 8

2010-09-12 Thread Éric Araujo
Éric Araujo added the comment: Looks excellent, just import the function at the module scope instead of function scope (I’ve heard about import deadlock issues, and performance is not an issue in tests, so there is no reason to import in the function). Please backport to 3.1 and 2.7 if the bu

[issue9561] distutils: set encoding to utf-8 for input and output files

2010-09-12 Thread Éric Araujo
Éric Araujo added the comment: [Toshio, I made you nosy for a question about RPM .spec files] >> - PKG-INFO (METADATA in distutil2), that already uses a trick to support >> Unicode, but your change would replace it in a better way; > Which "trick"? Some values are explicitly allowed to use Uni

[issue9561] distutils: set encoding to utf-8 for input and output files

2010-09-12 Thread Éric Araujo
Éric Araujo added the comment: Note that any change requires a test. -- assignee: tarek -> eric.araujo stage: -> patch review type: -> behavior versions: +Python 2.7, Python 3.1 ___ Python tracker ___

[issue9842] Document ... used in recursive repr of containers

2010-09-12 Thread R. David Murray
R. David Murray added the comment: ... is also the Ellipsis object, and it is probably even more important that the index cross reference that usage :) -- nosy: +r.david.murray ___ Python tracker _

[issue6011] python doesn't build if prefix contains non-ascii characters

2010-09-12 Thread Éric Araujo
Éric Araujo added the comment: Victor: I would like #9841 to be solved first so that we’re sure what file(s) need to be patched (and where to add a test for parsing). Baptiste: Can you try to reproduce your bug with 2.7 and 3.1? Tarek: I can take this over if you want. -- components:

[issue4359] at runtime, distutils uses buildtime files

2010-09-12 Thread Éric Araujo
Changes by Éric Araujo : -- superseder: -> deriving configuration information for different builds with the same prefix ___ Python tracker ___ __

[issue9807] deriving configuration information for different builds with the same prefix

2010-09-12 Thread Éric Araujo
Éric Araujo added the comment: Agree with Barry: sysconfig is the new hotness for configuration info. On #4359, I said that future improvements in sysconfig (http://bitbucket.org/tarek/distutils2/src/tip/docs/design/wiki.rst) will address part of the issue: It will use a configparser file to

[issue9807] deriving configuration information for different builds with the same prefix

2010-09-12 Thread Éric Araujo
Éric Araujo added the comment: A clarification: The sysconfig.cfg does not look like the best place to put this info, since [this info] is not editable configuration but more state. -- ___ Python tracker _

[issue2118] smtplib.SMTP() raises socket.error rather than SMTPConnectError

2010-09-12 Thread R. David Murray
R. David Murray added the comment: I discussed this issue with Antoine Pitrou on #python-dev, and his opinion is that SMTPSocketConnectError doesn't add enough value to be worthwhile. So he is in favor of making this a doc fix. However, the suggestion also came up to have SMTPException subcl

[issue9843] imp documentation redundancy with acquire_lock and release_lock

2010-09-12 Thread Demur Rumed
New submission from Demur Rumed : http://docs.python.org/dev/library/imp.html acquire_lock and release_lock are listed twice. The first iteration of acquire_lock repeats "On platforms without threads, this function does nothing." twice and advises release, while the latter does not --

[issue9716] The inittab modules cannot be packages

2010-09-12 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +brett.cannon, ncoghlan type: feature request -> behavior versions: -Python 2.6 ___ Python tracker ___ _

[issue9843] imp documentation redundancy with acquire_lock and release_lock

2010-09-12 Thread Benjamin Peterson
Benjamin Peterson added the comment: r84754 -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue9843] imp documentation redundancy with acquire_lock and release_lock

2010-09-12 Thread Demur Rumed
Demur Rumed added the comment: That doesn't appear to remove the repetition of their listing. Something I failed to mention: The duplication occurs after imp.reload -- ___ Python tracker __

[issue8796] Deprecate codecs.open()

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

[issue9743] __call__.__call__ chain cause crash when long enough

2010-09-12 Thread Éric Araujo
Éric Araujo added the comment: “Recursively getting __call__ method from existing __call__” I wonder what is the use case for this. -- nosy: +eric.araujo versions: -Python 2.6 ___ Python tracker __

[issue7994] object.__format__ should reject format strings

2010-09-12 Thread Florent Xicluna
Florent Xicluna added the comment: This should be merged before 3.2 beta. -- nosy: +flox resolution: -> accepted ___ Python tracker ___ _

[issue9716] The inittab modules cannot be packages

2010-09-12 Thread Brett Cannon
Changes by Brett Cannon : -- versions: +Python 3.2, Python 3.3 -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue9786] Native TLS support for pthreads

2010-09-12 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: I left the ifdef in for a quick and easy way to disable this code for those interested, but I'm happy to remove it if it makes for greater synergy. -- ___ Python tracker _

[issue9787] Release the TLS lock during allocations

2010-09-12 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: You may find this hard to believe, but we do in fact embed python into other applications. In this case, it is UnrealEngine, to drive a complex, console based game. Yes, embedding python is much harder than it need be and I'll submit some patches to

[issue9787] Release the TLS lock during allocations

2010-09-12 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: I forgot to add: The API that our (instrumented) malloc implementation is calling is: PyGILState_GetThisThreadState(); -- ___ Python tracker _

[issue9786] Native TLS support for pthreads

2010-09-12 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Added a new patch with #ifdef remvoved, for greater harmony. -- Added file: http://bugs.python.org/file18864/pthread_tls.patch ___ Python tracker __

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-09-12 Thread Matthew Barnett
Matthew Barnett added the comment: issue2636-20100913.zip is a new version of the regex module. I've removed the ZEROWIDTH flag and added the NEW flag, which turns on the new behaviour such as splitting on zero-width matches and positional flags. If the NEW flag isn't turned on then the inlin

[issue9313] distutils error on MSVC older than 8

2010-09-12 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: > I’ve heard about import deadlock issues, and performance is not an > issue in tests, so there is no reason to import in the function distutils.msvc9compiler imports winreg internally, and it only exists on windows, so importing distutils.msvc9. compile

[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2010-09-12 Thread Vinay Sajip
Vinay Sajip added the comment: Attached is a patch for distutils/sysconfig.py. -- keywords: +patch Added file: http://bugs.python.org/file18866/distutils_sysconfig.diff ___ Python tracker __

[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2010-09-12 Thread Vinay Sajip
Vinay Sajip added the comment: Attached is a patch for sysconfig.py. -- Added file: http://bugs.python.org/file18867/sysconfig.diff ___ Python tracker ___ ___

[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2010-09-12 Thread Vinay Sajip
Vinay Sajip added the comment: N.B. without the sysconfig.py patch, sysconfig.get_path() fails, but differently. With the patch, sysconfig.get_path('stdlib') and sysconfig.get_path('include') give the expected values, but _CONFIG_VARS['srcdir'] still seems wrong: vi...@eta-jaunty:/tmp$ pytho

[issue9844] calling nonexisting function under __INSURE__

2010-09-12 Thread Eli Bendersky
New submission from Eli Bendersky : The Py_Main function has a section under #ifdef __INSURE__ at the end, where it does: _Py_ReleaseInternedStrings(); _Py_ReleaseInternedUnicodeStrings(); The first function doesn't exist in Python 3K, so there will be a compile error with __INSURE__

[issue9787] Release the TLS lock during allocations

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis added the comment: > You may find this hard to believe, but we do in fact embed python > into other applications. This is actually very easy to believe. > appMalloc, is in this case, the canonical memory allocator in > UnrealEngine. But it could be any other memory allocator s

[issue9743] __call__.__call__ chain cause crash when long enough

2010-09-12 Thread Alex
Alex added the comment: I doubt there is a good usecase for it, nevertheless we should attempt to fix it, as segfaults are no good. -- ___ Python tracker ___ ___

[issue9786] Native TLS support for pthreads

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis added the comment: It seems we need to clarify the return value of PyThread_create_key. The patch returns 0 in case of failure, which is clearly wrong as 0 is also a valid key. I think it's safe to return -1: TlsAlloc returns TLS_OUT_OF_INDEXES, which is 0x, i.e. -1 on

<    1   2