[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

[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 ___ ___

[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

[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__

[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

[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: Attached is a patch for distutils/sysconfig.py. -- keywords: +patch Added file: http://bugs.python.org/file18866/distutils_sysconfig.diff ___ Python tracker __

[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

[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

[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 __

[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 _

[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

[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 _

[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

[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 ___ _

[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 __

[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

[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 __

[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 ___ __

[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 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 --

[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

[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 _

[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

[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 ___ __

[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:

[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 _

[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 ___

[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

[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

[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.

[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

[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

[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.

[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

[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

[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

[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

[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-

[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

[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

[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
Éric Araujo added the comment: Wouldn’t it be more accurate to skip the test instead of returning None (falsely indicating success)? -- ___ 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

[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 ___

[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.

[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 É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

[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

[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 ___ __

[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

[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 ___

[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] ---

[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 ___ __

[issue9838] Inadequate C-API to Python 3 I/O objects

2010-09-12 Thread Éric Araujo
Changes by Éric Araujo : -- versions: -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue9840] Recursive Repr

2010-09-12 Thread Raymond Hettinger
New submission from Raymond Hettinger : Add a recursive_repr() decorator to provide a solution to the problem of creating a container __repr__ method that doesn't fail for recursive calls. -- files: recursive_repr.patch keywords: patch messages: 116239 nosy: rhettinger priority: normal

[issue2889] curses for windows (alternative patch)

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

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

2010-09-12 Thread Vlastimil Brom
Vlastimil Brom added the comment: Thank you both for the explanations; I somehow suspected, there would be some strong reasoning for the conservative approach with regard to the backward compatibility. Thanks for the block() and script() offer, Matthew, but I believe, this might clutter the i

[issue1076515] shutil.move clobbers read-only files.

2010-09-12 Thread Brian Curtin
Brian Curtin added the comment: I haven't had time to investigate but it shouldn't be closed just yet. Someone will get to it. -- resolution: invalid -> status: closed -> open ___ Python tracker __

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

2010-09-12 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : -- assignee: -> amaury.forgeotdarc resolution: -> accepted ___ Python tracker ___ ___ Python-bugs-l

[issue8372] socket: Buffer overrun while reading unterminated AF_UNIX addresses

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis added the comment: > The examples in Stevens/Rago's "Advanced Programming in the Unix > Environment" also pass address lengths to bind(), etc. that do > not include the null. I didn't (mean to) suggest that the null must be included in the length - only that it must be included

[issue9820] Windows : os.listdir(b'.') doesn't raise an errorfor unencodablefilenames

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis added the comment: > If we choose to keep this behaviour, I will have to revert my commit on mbcs > codec to be consistent with os.listdir(). Or at least patch > PyUnicode_EncodeFSDefault and os.fsencode() (use replace error handler) and > PyUnicode_DecodeFSDefault and os.fsde

[issue8372] socket: Buffer overrun while reading unterminated AF_UNIX addresses

2010-09-12 Thread David Watson
David Watson added the comment: I meant to say that FreeBSD provides the SUN_LEN macro, but it turns out that Linux does as well, and its version behaves the same as FreeBSD's. The FreeBSD man pages state that the terminating null is not part of the address: http://www.freebsd.org/cgi/man.cgi?

[issue9820] Windows : os.listdir(b'.') doesn't raise an errorfor unencodablefilenames

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis added the comment: > About Windows, os.listdir(str) never fails, but my question is about > os.listdir(bytes). Should os.listdir(bytes) returns invalid filenames > (encoded > with "mbcs+replace", filenames not usable to open, rename or delete the file) > or > just ignore the

[issue9820] Windows : os.listdir(b'.') doesn't raise an errorfor unencodablefilenames

2010-09-12 Thread STINNER Victor
STINNER Victor added the comment: > FindFirst/NextFileA will also do some other interesting conversions, > such as the best-fit conversion (which the "mbcs" code doesn't do > (anymore?)). If we choose to keep this behaviour, I will have to revert my commit on mbcs codec to be consistent with o

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

2010-09-12 Thread Georg Brandl
Georg Brandl added the comment: Matthew, I understand why you want to have these flags scoped, and if you designed a regex dialect from scratch, that would be the way to go. However, if we want to integrate this in Python 3.2 or 3.3, this is an absolute killer if it's not backwards compatibl

[issue9820] Windows : os.listdir(b'.') doesn't raise an errorfor unencodablefilenames

2010-09-12 Thread STINNER Victor
STINNER Victor added the comment: It remembers me the discussion of the issue #3187. About unencodable filenames, Guido proposed to ignore them or to use errors="replace", and wrote "Failing the entire os.listdir() call is not acceptable". (... long discussion ...) And finally, os.listdir() i

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

2010-09-12 Thread Matthew Barnett
Matthew Barnett added the comment: The tests for re include these regexes: a.b(?s) a.*(?s)b I understand what Georg said previously about some people preferring to put them at the end, but I personally wouldn't do that because some regex implementations support scoped inline flags, a

[issue9820] Windows : os.listdir(b'.') doesn't raise an errorfor unencodablefilenames

2010-09-12 Thread STINNER Victor
STINNER Victor added the comment: > FindFirst/NextFileA will also do some other interesting conversions, > such as the best-fit conversion (which the "mbcs" code doesn't do > (anymore?)). About mbcs, mbcs codec of Python 3.1 is like .encode('mbcs', 'replace') and .decode('mbcs', 'ignore') of P

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

2010-09-12 Thread Vlastimil Brom
Vlastimil Brom added the comment: Not that my opinion matters, but for what is it worth, I find it rather unusual to have to use special flags to get "normal" (for some definition of normal) behaviour, while retaining the defaults buggy in some way (like ZEROWIDTH). I would think, the backwar

[issue8372] socket: Buffer overrun while reading unterminated AF_UNIX addresses

2010-09-12 Thread David Watson
David Watson added the comment: > With all the effort that went into the patch, I recommend to get it right: if > there is space for the \0, include it. If the string size is exactly 108, and > it's linux, write it unterminated. Else fail. > > As for testing: we should then definitely have a

[issue9788] atexit and execution order

2010-09-12 Thread Meador Inge
Meador Inge added the comment: I agree with Antoine's LIFO comment. Also, FWIW, the C standard library behaves in a LIFO manner as well (C99 spec - 7.20.4.3 clause 3): "First, all functions registered by the atexit function are called, in the reverse order of their registration,253) except t

[issue2889] curses for windows (alternative patch)

2010-09-12 Thread anatoly techtonik
anatoly techtonik added the comment: PDCurses is not updated, because it is considered stable and mature library that has been tested on Windows platform by many roguelikes. I doubt that ncurses hackers care about Windows compatibility more than just to make it run. -- __

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

2010-09-12 Thread Matthew Barnett
Matthew Barnett added the comment: Another flag? Hmm. How about this instead: if a scoped flag appears at the end of a regex (and would therefore normally have no effect) then it's treated as though it's at the start of the regex. Thus: foo(?i) is treated like: (?i)foo --

[issue1521051] Extra configurability for doctest TestCases

2010-09-12 Thread Russell Keith-Magee
Russell Keith-Magee added the comment: It's still a problem AFAICT. Level of interest is a different matter. Django has needed this since 2006, so we've always shipped a locally modified copy of the doctest module. That said, Django is in the process of moving away from using and recommendin

[issue8445] buildbot: test_ttk_guionly failures (test_traversal, test_tab_identifiers, test_identify, test_heading_callback)

2010-09-12 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +janssen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue9806] no need to try loading posix extensions without SOABI

2010-09-12 Thread Georg Brandl
Georg Brandl added the comment: Windows isn't relevant here, but for the others, extension-suffix sounds much better. Added in r84747. -- ___ Python tracker ___ ___

[issue9820] Windows : os.listdir(b'.') doesn't raise an error for unencodable filenames

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis added the comment: > You know directly that os.listdir(bytes) is unable to encode the > filename, instead of manipulate an invalid filename (b'?') and get > the error later (when you use the filename: open, copy, delete, ... > the file). Ok. Then I'm -1 on the patch: you can't k

[issue9818] build files to build Lib/distutils/command/wininst-9.0* are missing

2010-09-12 Thread Matthias Klose
Matthias Klose added the comment: my bad -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue9817] expat copyright/license file is missing

2010-09-12 Thread Matthias Klose
Matthias Klose added the comment: fixed in r84743, r84745 and r84746 -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-

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

2010-09-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok. How about this patch now? (I'm trying to solve this in a clean way :)) -- keywords: +patch Added file: http://bugs.python.org/file18861/gildestroy.patch ___ Python tracker

[issue9818] build files to build Lib/distutils/command/wininst-9.0* are missing

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis added the comment: Use PCbuild/bdist_wininst.vcproj. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue767645] incorrect os.path.supports_unicode_filenames

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis added the comment: > I think that supports_unicode_filenames is still useful to check if > the filesystem API uses bytes (Linux, FreeBSD, Solaris, ...) or > characters (Mac OS X, Windows). Mac OS X is a special case because > the C API uses char* (byte string), but the filesystem

[issue767645] incorrect os.path.supports_unicode_filenames

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis added the comment: > About Windows: supports_unicode_filenames is False if > sys.getwindowsversion().platform < 2: win32s (0) or Windows 9x/ME > (1). I don't know win32s, but I know that Windows 9x/ME is not more > supported. Win32s is long gone. It was an emulation layer to sup

[issue8445] buildbot: test_ttk_guionly failures (test_traversal, test_tab_identifiers, test_identify, test_heading_callback)

2010-09-12 Thread Ismail Donmez
Ismail Donmez added the comment: Also reproduced on Snow Leopard. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue9822] windows batch files are dependent on cmd current directory

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis added the comment: > I did not realize the build instructions recommended using the > buildbot tool. It is clearly past time I got around to doing windows > build myself. I'd rather prefer a different setup, also: it would be better if the batch files to get the sources lived i

[issue6869] Embedded python crashed on 4th run, if "ctypes" is used

2010-09-12 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I found another refcount bug in Python3.x. Fixed in r84741(py3k), r84742(release31-maint). -- ___ Python tracker ___

[issue9820] Windows : os.listdir(b'.') doesn't raise an error for unencodable filenames

2010-09-12 Thread STINNER Victor
STINNER Victor added the comment: > What do you gain with this patch? (i.e. what is its advantage?) You know directly that os.listdir(bytes) is unable to encode the filename, instead of manipulate an invalid filename (b'?') and get the error later (when you use the filename: open, copy, delet

[issue9820] Windows : os.listdir(b'.') doesn't raise an error for unencodable filenames

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis added the comment: What do you gain with this patch? (i.e. what is its advantage?) -- ___ Python tracker ___ ___ Pytho

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

2010-09-12 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: > Is 3.1 also affected? Sorry, 3.1 is not affected. > Can you try the following patch: Your patch works. :-) E:\python-dev\py3k\PC\VC6>ctypes_crash.exe --- 0 --- [36242 refs] --- 1 --- [39140 refs] --- 2 --- [41538 refs] --- 3 --- [43930 refs] --- 4 --- [46

[issue9817] expat copyright/license file is missing

2010-09-12 Thread Matthias Klose
Matthias Klose added the comment: the .rst file is missing the zlib and libffi licenses too. will add them. -- ___ Python tracker ___

[issue9817] expat copyright/license file is missing

2010-09-12 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- resolution: -> accepted ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue9806] no need to try loading posix extensions without SOABI

2010-09-12 Thread Matthias Klose
Matthias Klose added the comment: --extension-suffix ? doesn't use the `so', which you don't see on MacOs, HpUX and Windows. -- ___ Python tracker ___ ___

[issue8746] os.chflags() and os.lchflags() are not built when they should be be

2010-09-12 Thread Ned Deily
Ned Deily added the comment: Nick: "lchflags". lchflags is only available in 10.5 or higher, unlike chflags which has been around for much longer. -- ___ Python tracker ___

[issue9809] Wrong Registery Entries on win64

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis added the comment: As Brian explains: if you want the Wow6432 entries, install the 32-bit Python - which will install just fine on your 64-bit system, and is, in many cases, the better choice. -- nosy: +loewis status: open -> closed ___

[issue9759] GzipFile object should raise ValueError on .read() after .close()

2010-09-12 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- versions: +Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9837] ZipFileExt.read() reads more data than requested

2010-09-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, thank you. I've fixed the issue and added a test in r84737 (3.x) and r84739 (2.7). -- resolution: -> fixed status: open -> closed ___ Python tracker _

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

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis added the comment: If the feature to be provided is "multiple Python installations with the same prefix", then I suggest to generalize this beyond the debug build. One approach would be: 1. add a --bin-suffix configure option (Debian: set this to _d when creating the debug bu

[issue9799] Compilation error for branch py3k on AIX 6

2010-09-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Actually, there's a Misc/AIX-NOTES file which needs updating. Sébastien, do you want to do that? -- ___ Python tracker ___

[issue9042] Gettext cache and classes

2010-09-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Unfortunately, 2.6 and 3.1 are stable releases, they only get security > and > documentation fixes. 2.7 is nearly in the same state Well, that's false. 2.7 and 3.1 both receive bug fixes (and this looks like a bug to me :-)). -- nosy: +pitrou versi

  1   2   >