[issue19287] __contains__() of dbm.ndbm databases fails with str

2013-10-18 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis: __contains__() of dbm.ndbm databases fails with str, probably since 8beaa9a37387. This is a regression in Python 3.3. $ python3.2 -c 'import dbm.ndbm; db=dbm.ndbm.open("/tmp/db1", "c"); db["key"]="value"; print(b"key" in db); print("key

[issue14881] multiprocessing.dummy craches when self._parent._children does not exist

2013-10-18 Thread Andres Riancho
Andres Riancho added the comment: Is this a duplicate for http://bugs.python.org/issue10015 #10015 ? -- nosy: +Andres.Riancho ___ Python tracker ___ _

[issue19281] add __objclass__ to the docs

2013-10-18 Thread CliffM
Changes by CliffM : -- nosy: +CliffM ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/ma

[issue16803] Make test_import & test_importlib run tests under both _frozen_importlib and importlib._bootstrap

2013-10-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 862043d74fae by Brett Cannon in branch 'default': Issue #16803: Move test_importlib.test_util to use both frozen and http://hg.python.org/cpython/rev/862043d74fae -- ___ Python tracker

[issue19286] error: can't copy '': doesn't exist or not a regular file

2013-10-18 Thread Jason R. Coombs
Jason R. Coombs added the comment: The attached example minimally replicates the issue. -- Added file: http://bugs.python.org/file32210/example.zip ___ Python tracker ___ ___

[issue16803] Make test_import & test_importlib run tests under both _frozen_importlib and importlib._bootstrap

2013-10-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 66e219519279 by Brett Cannon in branch 'default': Issue #16803: Have test_importlib.test_locks use frozen and source http://hg.python.org/cpython/rev/66e219519279 -- ___ Python tracker

[issue19286] error: can't copy '': doesn't exist or not a regular file

2013-10-18 Thread Jason R. Coombs
New submission from Jason R. Coombs: On Python 2.7 and 3.3, if the package_data glob happens to match a directory, it will trigger this error during build: error: can't copy '/': doesn't exist or not a regular file It seems that package_data is not very smart about filtering out directories,

[issue16612] Integrate "Argument Clinic" into CPython trunk

2013-10-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > If you redirect stuff into a second file then you have way more points of failure--the files could get out sync, for example. Clinic can define a macro with a random value in a main file before including generated file and check this value by preprocessor i

[issue19285] test_asyncio failures on FreeBSD

2013-10-18 Thread Stefan Krah
Changes by Stefan Krah : -- keywords: +patch Added file: http://bugs.python.org/file32209/issue19285.patch ___ Python tracker ___ ___

[issue19285] test_asyncio failures on FreeBSD

2013-10-18 Thread Stefan Krah
Stefan Krah added the comment: If the FreeBSD-9.0 bot is heavily loaded, some tests have to be relaxed (see patch). I can make them conditional on FreeBSD if you prefer. The hanging still occurs sporadically. -- ___ Python tracker

[issue16612] Integrate "Argument Clinic" into CPython trunk

2013-10-18 Thread Larry Hastings
Larry Hastings added the comment: I played with that at one point. Guido suggested it was a bad idea. If you redirect stuff into a second file then you have way more points of failure--the files could get out sync, for example. I tend to agree. We could, however, change Clinic so it generated

[issue19285] test_asyncio failures on FreeBSD

2013-10-18 Thread Stefan Krah
New submission from Stefan Krah: I'm splitting this off of #19262, since certain failures (hanging for one hour) remind me of #15599, which is an issue of epic proportions. Also it should not be a release blocker, since threading failures under FreeBSD-9 (running under KVM!) aren't uncommon. --

[issue16612] Integrate "Argument Clinic" into CPython trunk

2013-10-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is awesome! Clinic adds too much visual garbage. Could we move all generated content into separated *_clinic.h files? -- ___ Python tracker ___

[issue8964] platform._sys_version does not parse correctly IronPython 2.x version

2013-10-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue19259] Provide Python implementation of operator.compare_digest()

2013-10-18 Thread Zachary Ware
Zachary Ware added the comment: Even after reading through #15061, I still wonder why _compare_digest is in _operator at all. It makes even less sense to me to put a Python implementation in operator; shouldn't the Python implementation be in the module that actually uses it? Branching from

[issue17759] test_urllibnet.test_bad_address() fails on Ubuntu 13.04

2013-10-18 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue19274] make zipfile.PyZipFile more usable

2013-10-18 Thread Christian Tismer
Christian Tismer added the comment: Ah, I understand: The case that does not compile comes from the toplevel "test" folder, which I could have excluded explicitly. But it is not a complete solution: If I want to add every package from the standard lib, then I necessarily encounter enclosed test

[issue18810] Stop doing stat calls in importlib.machinery.FileFinder to see if something is a file or folder

2013-10-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9895a9c20e8a by Brett Cannon in branch 'default': Add NEWS entry for issue #18810 http://hg.python.org/cpython/rev/9895a9c20e8a -- ___ Python tracker _

[issue18606] Add statistics module to standard library

2013-10-18 Thread Steven D'Aprano
Steven D'Aprano added the comment: Georg Brandl wrote: > The rst file is missing from your patch. Oops! Sorry about that. Fixed now. > I already posted a patch with statistics.rst five days ago. > I have no idea why you ignored it. I'm sorry if I stepped on your toes, but I didn't ignore you

[issue17759] test_urllibnet.test_bad_address() fails on Ubuntu 13.04

2013-10-18 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'm going to close this as invalid: Python 3.3.2+ (3.3:247344a0d12e, Oct 18 2013, 13:14:59) [GCC 4.8.1] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from socket import * >>> gethostbyname('in.val.id') Traceback (most rece

[issue18810] Stop doing stat calls in importlib.machinery.FileFinder to see if something is a file or folder

2013-10-18 Thread Brett Cannon
Brett Cannon added the comment: The directory savings has actually been handled w/o semantics changes; in the last commit for this issue. The possibility of leaning on file extensions has been asked on python-dev. Once that is resolved then this issue will either get another commit or simply

[issue18810] Stop doing stat calls in importlib.machinery.FileFinder to see if something is a file or folder

2013-10-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 11f2f4af1979 by Brett Cannon in branch 'default': Issue #18810: Be optimistic with stat calls when seeing if a directory http://hg.python.org/cpython/rev/11f2f4af1979 -- nosy: +python-dev ___ Python track

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread Guido van Rossum
Guido van Rossum added the comment: Maybe adding something that returns [] from suite() if therea re no threads in test/test_asyncio/__init__.py would help? I don't have time to test this, but go ahead and commit something if it's a release blocker. Even better would or course be to fix async

[issue19259] Provide Python implementation of operator.compare_digest()

2013-10-18 Thread Zachary Ware
Zachary Ware added the comment: Oops, forgot to provide the [1] link... [1] https://mail.python.org/pipermail/python-dev/2013-October/129477.html -- ___ Python tracker ___ _

[issue19229] operator.py: move the Python implementation in the else block of try/except ImportError

2013-10-18 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: +zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread Stefan Krah
Stefan Krah added the comment: The --without-threads buildbot fails, so I guess all tests need to be skipped in that case: http://buildbot.python.org/all/builders/AMD64%20Fedora%20without%20threads%203.x/builds/5333/steps/test/logs/stdio -- nosy: +skrah

[issue19274] make zipfile.PyZipFile more usable

2013-10-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: "this" is a filter function. "Not needed" means that you can got what you want without adding a filter function to zipfile.PyZipFile. Just don't call writepy() on directories which contains files which shouldn't be zipped. -- ___

[issue18606] Add statistics module to standard library

2013-10-18 Thread Georg Brandl
Georg Brandl added the comment: The rst file is missing from your patch. I already posted a patch with statistics.rst five days ago. I have no idea why you ignored it. -- ___ Python tracker _

[issue18416] Move to absolute file paths for module.__file__

2013-10-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 33844153cd02 by Brett Cannon in branch 'default': Issue #18416: Fix various os calls in importlib.machinery.FileFinder http://hg.python.org/cpython/rev/33844153cd02 -- ___ Python tracker

[issue19274] make zipfile.PyZipFile more usable

2013-10-18 Thread Christian Tismer
Christian Tismer added the comment: @serhiy.storchaka > I don't think this is needed. You can walk a tree and call writepy() > for files and directories which you want. What exactly do mean by "this" and "needed"? I cannot see the connection of my initial post and your reply. Running PyZipFile

[issue18716] Deprecate the formatter module

2013-10-18 Thread Brett Cannon
Brett Cannon added the comment: Documented in f1fde6ef92e2 -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list maili

[issue19170] telnetlib: use selectors

2013-10-18 Thread Charles-François Natali
Changes by Charles-François Natali : -- nosy: +haypo, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue18416] Move to absolute file paths for module.__file__

2013-10-18 Thread Brett Cannon
Brett Cannon added the comment: I went with option 1 (changed PathFinder to consider '' the cwd) which allowed me to flat-out remove the special-casing for '' in FileFinder. Thanks for the initial patch, Madison! -- resolution: -> fixed stage: test needed -> committed/rejected status:

[issue18416] Move to absolute file paths for module.__file__

2013-10-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 76184b5339f2 by Brett Cannon in branch 'default': Issue #18416: Have importlib.machinery.PathFinder treat '' as the cwd http://hg.python.org/cpython/rev/76184b5339f2 -- nosy: +python-dev ___ Python tracke

[issue19274] make zipfile.PyZipFile more usable

2013-10-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't think this is needed. You can walk a tree and call writepy() for files and directories which you want. -- nosy: +serhiy.storchaka ___ Python tracker

[issue16662] load_tests not invoked in package/__init__.py

2013-10-18 Thread Michael Foord
Michael Foord added the comment: use_load_tests was deliberately undocumented. IIRC it only exists to allow us to load tests from a package module (__init__.py) without invoking load_tests - it maybe that it can just go away altogether now. I'll need to look at the code to confirm. -

[issue19276] test_wave failing on PPC64 Linux

2013-10-18 Thread David Edelsohn
David Edelsohn added the comment: Thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue18606] Add statistics module to standard library

2013-10-18 Thread Steven D'Aprano
Steven D'Aprano added the comment: Here is the updated version which I hope is not too late for alpha 4. Main changes: * sum is now private * docstrings have been simplified and shrunk somewhat * I have a draft .rst file, however I'm having trouble getting Sphinx working on my system and I h

[issue16662] load_tests not invoked in package/__init__.py

2013-10-18 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On the second failure, the expected output just needs to be updated. Is that the right thing to do? -- ___ Python tracker ___ ___

[issue16662] load_tests not invoked in package/__init__.py

2013-10-18 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: The failure in test_discovery.py is odd. It's failing because loadTestsFromModule() is being passed a keyword arguemnt use_load_tests=False. On the surface, the failure makes sense because if you look in test_discover.py, it's defining a lambda for loader.lo

[issue19274] make zipfile.PyZipFile more usable

2013-10-18 Thread Christian Tismer
Christian Tismer added the comment: Hi Georg, So do you think it is ok this way? I was not sure if extending the function with an optional arg is ok, or if a method to configure PyZipFile would be better. At the moment I just needed the simple functionality. Should it maybe get a regex like compi

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread Guido van Rossum
Guido van Rossum added the comment: I fixed the easy one (the expected delay in test_call_later). I could use some hands with the rest -- I suspect there are similar race conditions. I'm tracking this now in http://code.google.com/p/tulip/issues/detail?id=75 -- ___

[issue13405] Add DTrace probes

2013-10-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: > antoine, is it possible test/pass --with-dtrace on a buildbot without > including it in the master build configuration? > > If not, I'm happy to create a special (dedicated) slave for Jesús so > he can continue to test his branch at leisure without messing up

[issue16803] Make test_import & test_importlib run tests under both _frozen_importlib and importlib._bootstrap

2013-10-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9d96a3163dbf by Brett Cannon in branch 'default': Issue #16803: test.test_importlib.test_api now runs under frozen and http://hg.python.org/cpython/rev/9d96a3163dbf -- ___ Python tracker

[issue19280] Add a datatype to represent mime types to the email module

2013-10-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't know much about the email module, but FWIW I think str subclasses (or any subclass of built-in types) are a delicate thing to expose in an API. I think a namedtuple would be the more idiomatic choice here (perhaps with an appropriate __str__ for conven

[issue19279] UTF-7 to UTF-8 decoding crash

2013-10-18 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue12837] Patch for issue #12810 removed a valid check on socket ancillary data

2013-10-18 Thread Brett Cannon
Brett Cannon added the comment: Attached is a patch that silences the warning for just the 'if' statement under Clang using pragmas. I don't know if we have ever had it out on python-dev on our view of using pragmas, but this seems like a reasonable place to use it. -- Added file: http

[issue19279] UTF-7 to UTF-8 decoding crash

2013-10-18 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Oct 18, 2013, at 02:33 PM, Barry A. Warsaw wrote: >2.6.9 doesn't produce a SystemError afaict: Please note that 2.6.9 is security only, so the threshold for worrying about things is a remotely exploitable security vulnerability that cannot be reasonably wor

[issue19279] UTF-7 to UTF-8 decoding crash

2013-10-18 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: 2.6.9 doesn't produce a SystemError afaict: Python 2.6.9rc1+ (unknown, Oct 18 2013, 10:29:22) [GCC 4.4.3] on linux3 Type "help", "copyright", "credits" or "license" for more information. >>> content = b'+1911\' rel=\'stylesheet\' type=\'text/css\' />\n>> rel="

[issue18810] Stop doing stat calls in importlib.machinery.FileFinder to see if something is a file or folder

2013-10-18 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue19216] stat cache for import bootstrap

2013-10-18 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: brett.cannon -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread Guido van Rossum
Guido van Rossum added the comment: @Koobs: I'll look into these, but in the future it's better to report bugs "upstream" for now, i.e. at http://code.google.com/p/tulip/ -- they will get my immediate attention. @Antoine: while most of the timing-related tests use a simulated clock, there are

[issue17221] Resort Misc/NEWS

2013-10-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Python-b

[issue17429] platform.platform() can throw Unicode error

2013-10-18 Thread STINNER Victor
STINNER Victor added the comment: Ping myself, I just installed Fedora 19 and I cannot run the Python test suite with the ASCII locale encoding, because of this bug. -- ___ Python tracker _

[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.

2013-10-18 Thread Nick Coghlan
Nick Coghlan added the comment: So, does that mean "asked the release manager for a ruling" is the buildbot debugging equivalent of "threatened it with tech support?" :) -- priority: release blocker -> normal resolution: -> fixed stage: needs patch -> committed/rejected status: open ->

[issue16612] Integrate "Argument Clinic" into CPython trunk

2013-10-18 Thread Larry Hastings
Larry Hastings added the comment: Incorporated suggestions from Antoine and Berker Peksag. Thanks! -- Added file: http://bugs.python.org/file32205/larry.clinic.patch.6.diff ___ Python tracker _

[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.

2013-10-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4af20969c592 by Nick Coghlan in branch 'default': Issue #16129: this should appease the buildbots http://hg.python.org/cpython/rev/4af20969c592 -- ___ Python tracker _

[issue15237] Add capsule API to _decimal

2013-10-18 Thread Stefan Krah
Stefan Krah added the comment: Marc-Andre Lemburg wrote: > This may work on Linux (and probably does if you use the right > DL flags), but I don't think this works reliably or at all on other > platforms such as Windows. Symbols from shared libs are not necessarily > available to all other share

[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.

2013-10-18 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +larry priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.

2013-10-18 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, that got it: LC_ALL=C ./python -m test -W test_capi => boom :) And, of course it's a StringIO object at that point... -- ___ Python tracker ___

[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.

2013-10-18 Thread Nick Coghlan
Nick Coghlan added the comment: Larry - I'm kinda stumped on this one. I'm not sure how to debug the failure on the buildbots, because, as Victor said, sys.stdout/err having an encoding attribute of None *isn't* supposed to happen, so the test should be fine as it stands. And nobody has been a

[issue19279] UTF-7 to UTF-8 decoding crash

2013-10-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And here is a patch for 2.7. -- Added file: http://bugs.python.org/file32204/utf7_errors-2.7.patch ___ Python tracker ___

[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.

2013-10-18 Thread Stefan Krah
Stefan Krah added the comment: A test order problem is indeed unlikely: I ran the tests as the buildbot user with the same random seed and they passed. Let's blame the buildbot software. ;) -- ___ Python tracker _

[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.

2013-10-18 Thread Nick Coghlan
Nick Coghlan added the comment: (As expected, the original FreeBSD randomization seed passed here without any problems) Before I disabled the test completely, I did a run with full error diffs enabled. Here's the FreeBSD log with full diffs: http://buildbot.python.org/all/builders/AMD64%20Fre

[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.

2013-10-18 Thread Nick Coghlan
Nick Coghlan added the comment: I dealt with the comments folks made here and on python-dev regarding the docs and the limited API, as well as the fact it isn't safe to call PyErr_NoMemory() when this function fails. However, I still haven't been able to reproduce the failure seen on the buil

[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.

2013-10-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 12d7b6171b28 by Nick Coghlan in branch 'default': Issue #16129: Py_SetStandardStreamEncoding cleanups http://hg.python.org/cpython/rev/12d7b6171b28 -- ___ Python tracker

[issue13405] Add DTrace probes

2013-10-18 Thread koobs
koobs added the comment: antoine, is it possible test/pass --with-dtrace on a buildbot without including it in the master build configuration? If not, I'm happy to create a special (dedicated) slave for Jesús so he can continue to test his branch at leisure without messing up the existing slav

[issue13405] Add DTrace probes

2013-10-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Marc, you just reminded me I need to ask antoine to re-create the > custom DTrace builder that passes --with-dtrace, thanks :) Well, I don't think it makes a lot of sense to re-create it, until DTrace support is integrated. -- ___

[issue19284] subprocess._args_from_interpreter_flags() mishandles -R

2013-10-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0ba7280545fe by Nick Coghlan in branch 'default': Close #19284: Handle -R properly in flag helper http://hg.python.org/cpython/rev/0ba7280545fe -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: open -> closed

[issue19284] subprocess._args_from_interpreter_flags() mishandles -R

2013-10-18 Thread Nick Coghlan
Nick Coghlan added the comment: I'll deal with this as part of getting issue 16129 sorted out. -- assignee: -> ncoghlan ___ Python tracker ___ __

[issue19284] subprocess._args_from_interpreter_flags() mishandles -R

2013-10-18 Thread Nick Coghlan
New submission from Nick Coghlan: Trying to provoke the buildbot failure from issue 16129 I was puzzled as to why setting PYTHONHASHSEED was behaving strangely. The subprocess._args_from_interpreter_flags() helper used by test.support (and multiprocessing) misbehaves when PYTHONHASHSEED is set

[issue13405] Add DTrace probes

2013-10-18 Thread koobs
koobs added the comment: Marc, you just reminded me I need to ask antoine to re-create the custom DTrace builder that passes --with-dtrace, thanks :) I've been keeping both of the FreeBSD (9.x and 10.x) buildslaves as close to HEAD as possible with frequent world updates, which have been recei

[issue13405] Add DTrace probes

2013-10-18 Thread koobs
Changes by koobs : -- nosy: +koobs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mail

[issue19283] Need support to avoid Windows CRT compatibility issue.

2013-10-18 Thread Debarshi Goswami
Debarshi Goswami added the comment: My question is, even a FILE* of MSVC10 type is provided, why these APIs are crashing, after all it expects MSVC10 type. -- ___ Python tracker ___

[issue19282] dbm is not a context manager

2013-10-18 Thread Claudiu.Popa
Claudiu.Popa added the comment: Here's a patch. -- keywords: +patch Added file: http://bugs.python.org/file32203/dbm.patch ___ Python tracker ___

[issue19279] UTF-7 to UTF-8 decoding crash

2013-10-18 Thread Piotr Dobrogost
Changes by Piotr Dobrogost : -- nosy: +piotr.dobrogost ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue19283] Need support to avoid Windows CRT compatibility issue.

2013-10-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: The easy answer is: don't execute a script, import a module instead (and either do something at that module's top-level, or execute a function inside the module). Also, as for ABI issues, take a look at: http://docs.python.org/3.3/c-api/stable.html --

[issue19283] Need support to avoid Windows CRT compatibility issue.

2013-10-18 Thread Debarshi Goswami
Debarshi Goswami added the comment: If any workaround is available. It is also fine. -- type: -> crash ___ Python tracker ___ ___ Pyt

[issue19283] Need support to avoid Windows CRT compatibility issue.

2013-10-18 Thread Debarshi Goswami
New submission from Debarshi Goswami: Some support is needed to avoid compatibility issues in different version of CRT in Windows. I have an application which embeds Python interpreter and the application is build on MSVC11, whereas I am using Python 3.3.2 which is build on MSVC10. I know ther

[issue18777] Cannot compile _ssl.c using openssl > 1.0

2013-10-18 Thread Stefan Krah
Stefan Krah added the comment: The hpux bot fails at the compile stage: http://buildbot.python.org/all/builders/IA64%20HP-UX%2011iv3%20%5BSB%5D%203.x/builds/2152/steps/compile/logs/stdio ld -b build/temp.hp-ux-B.11.31-ia64-3.4-pydebug/home/cpython/buildslave/3.x.snakebite-hpux11iv3-ia64-1/bui

[issue15237] Add capsule API to _decimal

2013-10-18 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 18.10.2013 11:39, Stefan Krah wrote: > > Stefan Krah added the comment: > > I believe you, but I'd like to understand why. :) :-) > It seems to me that a module and also PyInit_xxx() can be loaded portably. > Say the handles to the module are cached so

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: > == > FAIL: test_call_later > (test.test_asyncio.test_events.SelectEventLoopTests) > -- > Traceback (most recent call last): >

[issue15237] Add capsule API to _decimal

2013-10-18 Thread Stefan Krah
Stefan Krah added the comment: I believe you, but I'd like to understand why. :) It seems to me that a module and also PyInit_xxx() can be loaded portably. Say the handles to the module are cached somewhere after loading and initializing. I think this already happens in Python/dynload_shlib.c.

[issue12892] UTF-16 and UTF-32 codecs should reject (lone) surrogates

2013-10-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file32202/utf_16_32_surrogates_6.patch ___ Python tracker ___ ___ Python-bugs

[issue12892] UTF-16 and UTF-32 codecs should reject (lone) surrogates

2013-10-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file32201/utf_16_32_surrogates_6.patch ___ Python tracker ___ ___ Python-bu

[issue19282] dbm is not a context manager

2013-10-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> needs patch type: -> enhancement versions: -Python 3.1, Python 3.2, Python 3.3, Python 3.5 ___ Python tracker ___ __

[issue12892] UTF-16 and UTF-32 codecs should reject (lone) surrogates

2013-10-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Changed the documentation as was discussed with Ezio on IRC. Ezio, do you want commit this patch? Feel free to reword the documentation if you are feeling be better. -- Added file: http://bugs.python.org/file32201/utf_16_32_surrogates_6.patch __

[issue19282] dbm is not a context manager

2013-10-18 Thread Claudiu.Popa
Claudiu.Popa added the comment: Working on a patch for this. -- nosy: +Claudiu.Popa ___ Python tracker ___ ___ Python-bugs-list mailin

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread koobs
Changes by koobs : Added file: http://bugs.python.org/file32200/koobs-freebsd9-py3x-build182.log ___ Python tracker ___ ___ Python-bugs-list m

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread koobs
koobs added the comment: Summary of 4 test failures below, will attach the complete buildbot logs for detail. == FAIL: test_call_later (test.test_asyncio.test_events.SelectEventLoopTests) ---

[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-18 Thread koobs
Changes by koobs : Added file: http://bugs.python.org/file32199/koobs-freebsd9-py3x-build180.log ___ Python tracker ___ ___ Python-bugs-list m

[issue19030] inspect.getmembers and inspect.classify_class_attrs mishandle descriptors

2013-10-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 02c9d26d231f by Ethan Furman in branch 'default': Issue #19030: special-cased __dict__ as the actual dict is not returned, a proxy is. http://hg.python.org/cpython/rev/02c9d26d231f -- ___ Python tracker

[issue16938] pydoc confused by __dir__

2013-10-18 Thread koobs
koobs added the comment: Some test failures have cropped, I have attached buildbot logs and referenced them in #19030 -- nosy: +koobs ___ Python tracker ___

[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2013-10-18 Thread Mark Dickinson
Mark Dickinson added the comment: I still need to act on some of Serhiy's comments. I do plan to get this in for 3.4. -- ___ Python tracker ___

[issue19272] Can't pickle lambda (while named functions are ok)

2013-10-18 Thread Ethan Furman
Ethan Furman added the comment: Added some clarification to the docs to make it clearer that lambda functions cannot be pickled. Facundo [1], if you want to pursue being able to pickle lambda functions please open an enhancement issue. Some of the questions that come to mind: 1) for a rando

[issue19030] inspect.getmembers and inspect.classify_class_attrs mishandle descriptors

2013-10-18 Thread koobs
koobs added the comment: Multiple test_pydoc failures found on koobs-freebsd* buildbots after 39b06c3fbe2e6ef78a540513d4b81f2d095d1e62 Attaching complete logs from both bots to this issue, will reference #16938 as well -- nosy: +koobs Added file: http://bugs.python.org/file32165/koo

[issue19030] inspect.getmembers and inspect.classify_class_attrs mishandle descriptors

2013-10-18 Thread koobs
Changes by koobs : Added file: http://bugs.python.org/file32166/koobs-freebsd10-amd64-py3x-build588.log ___ Python tracker ___ ___ Python-bug

[issue19282] dbm is not a context manager

2013-10-18 Thread Nick Guenther
New submission from Nick Guenther: This code doesn't work. I think it should. import dbm with dbm.open("what is box.db", "c") as db: db["Bpoind"] = Boing Indeed, there is nothing supporting PEP 343 for dbm on my system: [kousu@galleon ~]$ grep -r __exit__ /usr/lib/python3.3/dbm

[issue10614] ZipFile: add a filename_encoding argument

2013-10-18 Thread STINNER Victor
STINNER Victor added the comment: Please rename codepage to encoding. By the way, 437 is a codepage, cp437 is a (python) encoding. I don't think that ZIP is limited to windows. I uncompressed zip files many times on various OSes, github also produces zip (and github is probably not using windows

[issue19272] Can't pickle lambda (while named functions are ok)

2013-10-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset d103ba56710e by Ethan Furman in branch 'default': Issue #19272: slight clarification of pickle docs with regard to lambda. http://hg.python.org/cpython/rev/d103ba56710e -- nosy: +python-dev ___ Python tra

<    1   2   3   >