[issue21136] fractions.Fraction.__pow__ does unneeded renormalization

2014-04-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks Mark, that is an excellent suggestion. -- Added file: http://bugs.python.org/file34719/fraction_pow2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21136

[issue20969] Author of EPUB version of Python docs is set to Unknown instead of PSF

2014-04-04 Thread Christian Clauss
Christian Clauss added the comment: Makefile and make.bat in https://github.com/python/pythondotorg/blob/master/docs are NOT the correct files to modify. It is unclear to where the correct files are. -- ___ Python tracker rep...@bugs.python.org

[issue21116] Failure to create multiprocessing shared arrays larger than 50% of memory size under linux

2014-04-04 Thread Médéric Boquien
Médéric Boquien added the comment: Thanks for the explanations Charles-François. I guess the new API would not be before 3.5 at least. Is there still a chance to integrate my patch (or any other) to improve the situation for the 3.4 series though? --

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-04-04 Thread Andreas Schwab
Andreas Schwab added the comment: Finn Thain fth...@telegraphics.com.au writes: until Aranym gets fixed. Aranym *is* fixed. Andreas. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20904

[issue1191964] asynchronous Subprocess

2014-04-04 Thread Josiah Carlson
Josiah Carlson added the comment: Quick update before I head to bed. Thank you for the input, I had gotten the individual async calls working a couple days ago, and I was just working to replace the communicate() method for Windows. Yes, I'm using asyncio._overlapped, though asyncio uses

[issue20375] ElementTree: Document handling processing instructions

2014-04-04 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- resolution: - fixed stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20375 ___

[issue19491] Python Crashing When Saving Documents

2014-04-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am closing this on the theory that the problem has been fixed by one of the many crash fixers since 3.2. There is certainly insufficient information to act on. Currently, a problem would have to be demonstrated with 3.4 (or possible 2.7). --

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-04-04 Thread mirabilos
mirabilos added the comment: Andreas Schwab dixit: Finn Thain fth...@telegraphics.com.au writes: Sorry, what? You seek to veto an upstream Python bug fix because it will lead to correct binaries that a certain emulator can't handle? That Yes, because of the value ARAnyM has for Linux/m68k

[issue21152] Idle: timed autosave for shell (and maybe editor) window

2014-04-04 Thread Terry J. Reedy
New submission from Terry J. Reedy: From #21140, msg215485, Raymond Hettinger: Students commonly save shell sessions as a record of everything they tried in call. It would nice if there were a way to trigger a periodic autosave (perhaps every five minutes or so). -- components: IDLE

[issue21140] Idle: saving an OutputWindow should default to .txt

2014-04-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Raymond, I open #21152 with your idea. #11838 and #19042 are somewhat related but timed autosave is not a part of either. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21140

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-04-04 Thread Andreas Schwab
Andreas Schwab added the comment: The fixed version is here: git://git.code.sf.net/p/aranym/code Andreas. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20904 ___

[issue21128] testing stdlib and compatibility with pypy

2014-04-04 Thread mattip
mattip added the comment: Correct, the other patches were against pypy, sorry. I now patched and tested against banch 2.7 on the python tree. -- Added file: http://bugs.python.org/file34720/patch ___ Python tracker rep...@bugs.python.org

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-04-04 Thread Stefan Krah
Stefan Krah added the comment: If the asm instructions silently fail, I'd say add a test to ./configure that detects the broken versions of the emulator in question. Or don't bother and tell people to use the proper version of the emulator. -- ___

[issue20969] Author of EPUB version of Python docs is set to Unknown instead of PSF

2014-04-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: The PSF is not the author of the docs. Perhaps something like Python documentation authors. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20969

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-04-04 Thread Andreas Schwab
Andreas Schwab added the comment: There is nothing that fails. The emulator has always correctly implemented the insn. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20904 ___

[issue21128] testing stdlib and compatibility with pypy

2014-04-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm wondering why resource warnings are not raised in CPython? ./python -Werror -bb -m test.regrtest -uall test_argparse test_file test_httpservers -- ___ Python tracker rep...@bugs.python.org

[issue21149] logging._removeHandlerRef is not threadsafe during interpreter shutdown

2014-04-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset b6deab7204e6 by Vinay Sajip in branch '2.7': Issue #21149: Improved thread-safety in logging cleanup during interpreter shutdown. http://hg.python.org/cpython/rev/b6deab7204e6 New changeset b5c91b61991a by Vinay Sajip in branch '3.4': Issue

[issue21153] bdist_rpm fails if project contains files with spaces in the names

2014-04-04 Thread Jason R. Coombs
New submission from Jason R. Coombs: In https://bitbucket.org/pypa/setuptools/issue/178, Eduard reported an issue that setuptools fails to install due to files in its structure with spaces in the filenames. These files have been around for some time (over two years in Distribute), but are now

[issue21153] bdist_rpm fails if project contains files with spaces in the names

2014-04-04 Thread Jason R. Coombs
Jason R. Coombs added the comment: The attached script (issue21153.py) replicates the failure in a Unix environment with the 'rpm' command present. -- Added file: http://bugs.python.org/file34721/issue21153.py ___ Python tracker

[issue21130] equivalent functools.partial instances should compare equal

2014-04-04 Thread Thomas Heller
Thomas Heller added the comment: My usecase is: I create kind of bound methods with functools.partial. Apologies for the confusion by using the word 'equivalent'; what I mean is that partial instances should (IMO) compare equal when they contain the same function and args/keywords which

[issue17522] Add api PyGILState_Check

2014-04-04 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson krist...@ccpgames.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17522 ___ ___

[issue16475] Support object instancing and recursion in marshal

2014-04-04 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson krist...@ccpgames.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16475 ___ ___

[issue17969] multiprocessing crash on exit

2014-04-04 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Closing this as won-t fix. Exiting with running threads is a can of worms. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17969

[issue8410] Fix emulated lock to be 'fair'

2014-04-04 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Closing this issue. It is largely superseded. For our Python 2.7 branches, we have a custom GIL lock which can have different inherent semantics from the common Lock. In particular, we can implement a fair PyGIL_Handoff() function to be used to

[issue8410] Fix emulated lock to be 'fair'

2014-04-04 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson krist...@ccpgames.com: -- resolution: - rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8410 ___ ___

[issue17969] multiprocessing crash on exit

2014-04-04 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson krist...@ccpgames.com: -- resolution: - wont fix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17969 ___ ___

[issue21153] bdist_rpm fails if project contains files with spaces in the names

2014-04-04 Thread Jason R. Coombs
Jason R. Coombs added the comment: I tried using the --install-script hook of the bdist_rpm command to update the INSTALLED_FILES listing to wrap them in quotes, but that doesn't help: http://paste.jaraco.com/uNMrQ I also delved into the RPM docs, which don't provide any guidance other than

[issue17522] Add api PyGILState_Check

2014-04-04 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson krist...@ccpgames.com: -- resolution: - fixed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17522 ___ ___

[issue19505] OrderedDict views don't implement __reversed__

2014-04-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset cee010fecdf5 by Serhiy Storchaka in branch 'default': Issue #19505: The items, keys, and values views of OrderedDict now support http://hg.python.org/cpython/rev/cee010fecdf5 -- nosy: +python-dev ___

[issue20636] Better repr for tkinter widgets

2014-04-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 66770f126c71 by Serhiy Storchaka in branch 'default': Issue #20636: Improved the repr of Tkinter widgets. http://hg.python.org/cpython/rev/66770f126c71 -- nosy: +python-dev ___ Python tracker

[issue19505] OrderedDict views don't implement __reversed__

2014-04-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Done. Thank you Raymond for your review. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19505

[issue21154] Small fix in 2.7.6 lang ref

2014-04-04 Thread Armin Rigo
New submission from Armin Rigo: The docs still say that the default __hash__() is equal to id(), but that's not the case since Python 2.7. -- assignee: docs@python components: Documentation files: lang-ref-fix.diff keywords: patch messages: 215517 nosy: arigo, docs@python priority:

[issue19655] Replace the ASDL parser carried with CPython

2014-04-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Now make fails when system Python is older than 3.4. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19655 ___

[issue13968] Support recursive globs

2014-04-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- keywords: +needs review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13968 ___ ___

[issue16475] Support object instancing and recursion in marshal

2014-04-04 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson krist...@ccpgames.com: -- resolution: - fixed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16475 ___ ___

[issue21076] Turn signal.SIG* constants into enums

2014-04-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset c9239171e429 by Giampaolo Rodola' in branch 'default': fix #21076: turn signal module constants into enums http://hg.python.org/cpython/rev/c9239171e429 -- nosy: +python-dev ___ Python tracker

[issue15139] Speed up threading.Condition wakeup

2014-04-04 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: In our 2.7 branches, this approach has been superseded with a natively impolemented _Condition class. This is even more efficient. It is available if the underlying Lock implementation is based on pthread locks (not semaphores). --

[issue21076] Turn signal.SIG* constants into enums

2014-04-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: http://buildbot.python.org/all/builders/AMD64%20Ubuntu%20LTS%203.x/builds/4131/steps/compile/logs/stdio gcc -pthread -Xlinker -export-dynamic -o Modules/_testembed Modules/_testembed.o libpython3.5dm.a -lpthread -ldl -lutil -lm

[issue21122] CPython fails to build modules with LLVM LTO on Mac OS X

2014-04-04 Thread Jonas Wagner
Jonas Wagner added the comment: I confirm that this also works with my self-compiled Clang 3.4. -export_dynamic was the missing option. Is a good place to document this? Otherwise, I think this issue can be closed. Thanks a lot for the help! --

[issue21154] Small fix in 2.7.6 lang ref

2014-04-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6809b434752a by Benjamin Peterson in branch '2.7': note that the hash of an arbitrary object is only derived from its address (closes #21154) http://hg.python.org/cpython/rev/6809b434752a -- nosy: +python-dev resolution: - fixed stage: -

[issue20942] _frozen_importlib should not have a __file__ attribute

2014-04-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset fef890bd60b1 by Brett Cannon in branch '3.4': Issue #20942: PyImport_ImportFrozenModuleObject() no longer sets http://hg.python.org/cpython/rev/fef890bd60b1 New changeset a11ec7aaac10 by Brett Cannon in branch 'default': merge of fix for issue

[issue20969] Author of EPUB version of Python docs is set to Unknown instead of PSF

2014-04-04 Thread Georg Brandl
Georg Brandl added the comment: The repository is http://hg.python.org/cpython. If you make a patch, please set the appropriate values in Doc/conf.py, not the makefiles. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org

[issue20942] _frozen_importlib should not have a __file__ attribute

2014-04-04 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20942 ___

[issue15139] Speed up threading.Condition wakeup

2014-04-04 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +tim.peters ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15139 ___ ___ Python-bugs-list

[issue21076] Turn signal.SIG* constants into enums

2014-04-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset df5120efb86e by Victor Stinner in branch 'default': Issue #21076: the C signal module has been renamed to _signal http://hg.python.org/cpython/rev/df5120efb86e -- ___ Python tracker

[issue21117] inspect.signature: inaccuracies for partial functions

2014-04-04 Thread Yury Selivanov
Yury Selivanov added the comment: Any comments on the patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21117 ___ ___ Python-bugs-list

[issue21076] Turn signal.SIG* constants into enums

2014-04-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset b1f5b5d7997f by Victor Stinner in branch 'default': Issue #21076: sigpending() is not available on Windows http://hg.python.org/cpython/rev/b1f5b5d7997f -- ___ Python tracker rep...@bugs.python.org

[issue10976] json.loads() raises TypeError on bytes object

2014-04-04 Thread Hanxue Lee
Hanxue Lee added the comment: This seems to be an issue (bug?) for Python 3.3 When calling json.loads() with a byte array, this is the error json.loads(response.data, 'latin-1') TypeError: can't use a string pattern on a bytes-like object When I decode the byte array to string

[issue19655] Replace the ASDL parser carried with CPython

2014-04-04 Thread Eli Bendersky
Eli Bendersky added the comment: On Fri, Apr 4, 2014 at 6:10 AM, Serhiy Storchaka rep...@bugs.python.orgwrote: Serhiy Storchaka added the comment: Now make fails when system Python is older than 3.4. This is why the .h .c files are checked in - someone just building Python doesn't need

[issue21149] logging._removeHandlerRef is not threadsafe during interpreter shutdown

2014-04-04 Thread Devin Jeanpierre
Devin Jeanpierre added the comment: Please don't take my word for it, but my understanding is that this issue doesn't apply to 3.4+ since module globals are no longer set to None during interpreter shutdown. (So all the checks against None could even be deleted.) --

[issue21136] fractions.Fraction.__pow__ does unneeded renormalization

2014-04-04 Thread Mark Dickinson
Mark Dickinson added the comment: LGTM. (For real this time :-). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21136 ___ ___ Python-bugs-list

[issue21088] curses addch() argument position reverses in Python3.4.0

2014-04-04 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21088 ___ ___ Python-bugs-list

[issue21090] File read silently stops after EIO I/O error

2014-04-04 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21090 ___ ___ Python-bugs-list

[issue21090] File read silently stops after EIO I/O error

2014-04-04 Thread STINNER Victor
STINNER Victor added the comment: Python 2.7 uses C fopen() and fread(), so what happens probably is that fread() silences the error. I see that file_read() checks ferror() if fread() returned 0. I would nice to run the test in strace and attach the output of strace to see if the EIO is

[issue21119] asyncio create_connection resource warning

2014-04-04 Thread STINNER Victor
STINNER Victor added the comment: Here is a patch for Python 3.5. It should be applied to Python 3.4 too. -- keywords: +patch nosy: +gvanrossum, haypo, yselivanov versions: +Python 3.5 Added file: http://bugs.python.org/file34724/create_connection_close.patch

[issue21119] asyncio create_connection resource warning

2014-04-04 Thread STINNER Victor
STINNER Victor added the comment: BaseEventLoop.create_datagram_endpoint() and _UnixSelectorEventLoop.create_unix_server() have the same bug. close2.patch fixes these methods but also modify socketpair() to ensure that the 2 sockets are closed on error. I didn't audit the whole asyncio

[issue21155] asyncio: calling _UnixSelectorEventLoop.create_unix_server(sock=..., path=...) must fail

2014-04-04 Thread STINNER Victor
New submission from STINNER Victor: _UnixSelectorEventLoop.create_unix_server() can be called with path *and* sock. In this case, the sock parameter is ignored. Attached patch changes the method to raise a ValueError, to have the same behaviour than create_connection(). -- files:

[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2014-04-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: If datetime.date.strptime(date_string, format) validates format, then it is *not* equivalent to date(*(time.strptime(date_string, format)[0:3])), is it? -- ___ Python tracker rep...@bugs.python.org

[issue21118] str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions)

2014-04-04 Thread STINNER Victor
STINNER Victor added the comment: translate_script.py: microbenchmark for str.translate() with various length, charsets (ASCII, latin1, UCS2, UCS4) and percentage of replacement. Result: ---+--+- Summary    | original |   writer

[issue21118] str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions)

2014-04-04 Thread STINNER Victor
STINNER Victor added the comment: translate_writer_bench.txt: full output of the micro-benchmark. -- Added file: http://bugs.python.org/file34728/translate_writer_bench.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21118

[issue21118] str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions)

2014-04-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: - drop optimizations for error handlers different than ignore because there is no unit tests for them, and str.translate() uses ignore. It's safer to drop untested optimization. It is unsafe to do such nontrivial modifications for untested code.

[issue21118] str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions)

2014-04-04 Thread STINNER Victor
STINNER Victor added the comment: Oh, I tested the wrong patch :-( Here is the updated benchmark summary: ---+--+--- Summary| original | writer ---+--+--- replace

[issue17621] Create a lazy import loader mixin

2014-04-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 52b58618199c by Brett Cannon in branch 'default': Issue #17621: Introduce importlib.util.LazyLoader. http://hg.python.org/cpython/rev/52b58618199c -- nosy: +python-dev ___ Python tracker

[issue21156] Consider moving importlib.abc.InspectLoader.source_to_code() to importlib.abc.Loader

2014-04-04 Thread Brett Cannon
New submission from Brett Cannon: importlib.abc.InspectLoader.source_to_code exists on InspectLoader because InspectLoader.get_code() uses it. But there is technically no reason to leave it there and not simply move it up to importlib.abc.Loader(). There is also no reason to not make it a

[issue21128] testing stdlib and compatibility with pypy

2014-04-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset b56341a49eab by Benjamin Peterson in branch '2.7': make temporary read-only files writable, so rmtree can remove them (#21128) http://hg.python.org/cpython/rev/b56341a49eab New changeset 6f1ac58207cc by Benjamin Peterson in branch '2.7': properly

[issue21156] Consider moving importlib.abc.InspectLoader.source_to_code() to importlib.abc.Loader

2014-04-04 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- type: behavior - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21156 ___ ___

[issue21128] testing stdlib and compatibility with pypy

2014-04-04 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21128 ___

[issue17621] Create a lazy import loader mixin

2014-04-04 Thread Brett Cannon
Brett Cannon added the comment: I went ahead and committed. I realized I could loosen the no create_module() requirement, but I think it could lead to more trouble than it's worth so I left it as-is for now. If people says it's an issue we can revisit it. -- resolution: - fixed

[issue20998] fullmatch isn't matching correctly under re.IGNORECASE

2014-04-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Both patch are almost equivalent (my patch is much simpler but perhaps Matthew's approach is more correct in long perspective). Unfortunately Rietvield doesn't work with Matthew's patch, so I have added my comments here. -(!ctx-match_all

[issue21076] Turn signal.SIG* constants into enums

2014-04-04 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- assignee: - giampaolo.rodola resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21076

[issue21157] Update imp docs for a PEP 451 world

2014-04-04 Thread Brett Cannon
New submission from Brett Cannon: imp.find_module() should point to importlib.find_spec() instead of find_loader(). As for imp.load_module() I've started a discussion on import-sig on how to best handle that. -- assignee: brett.cannon components: Documentation messages: 215547 nosy:

[issue21157] Update imp docs for a PEP 451 world

2014-04-04 Thread Brett Cannon
Brett Cannon added the comment: Sorry, that should have been importlib.util.find_spec(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21157 ___

[issue20998] fullmatch isn't matching correctly under re.IGNORECASE

2014-04-04 Thread Matthew Barnett
Matthew Barnett added the comment: -(!ctx-match_all || ctx-ptr == state-end)) { +ctx-ptr == state-end) { Why this check is not needed anymore? After stepping through the code for that regex that fails, I concluded that the condition shouldn't depend on

[issue21088] curses addch() argument position reverses in Python3.4.0

2014-04-04 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: -ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21088 ___ ___ Python-bugs-list mailing list

[issue21157] Update imp docs for a PEP 451 world

2014-04-04 Thread Brett Cannon
Brett Cannon added the comment: imp.find_module() might also best be updated to point out that importlib.import_module() exists for those cases where a replacement for sys.path is not necessary. As for imp.load_module(), it might also be best to admit that import is simply not structured to

[issue21118] str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions)

2014-04-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 95d4e8124c6a by Victor Stinner in branch 'default': Issue #21118: Fix _PyUnicodeTranslateError_Create(), add missing format http://hg.python.org/cpython/rev/95d4e8124c6a New changeset 03b1dd29b327 by Victor Stinner in branch 'default': Issue

[issue21118] str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions)

2014-04-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 95d4e8124c6a by Victor Stinner in branch 'default': Issue #21118: Fix _PyUnicodeTranslateError_Create(), add missing format http://hg.python.org/cpython/rev/95d4e8124c6a It looks like _PyUnicode_TranslateCharmap() didn't work with error handler

[issue21118] str.translate is absurdly slow in majority of use cases (takes up to 60x longer than similar functions)

2014-04-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 70990e795657 by Victor Stinner in branch '3.4': Issue #21118: Fix _PyUnicodeTranslateError_Create(), add missing format http://hg.python.org/cpython/rev/70990e795657 -- ___ Python tracker

[issue20383] Add a keyword-only spec argument to types.ModuleType

2014-04-04 Thread Brett Cannon
Brett Cannon added the comment: I envision making this happen would also allow for importlib to be updated to rely on __spec__ when possible, with the idea that sometime in the future we can deprecate pulling attributes from a module directly and shift to always working from __spec__.

[issue21158] Windows installer service could not be accessed

2014-04-04 Thread Payden Comer
New submission from Payden Comer: I am VERY tech saavy, so don't give me an auto reply like I'm stupid (it's happened before). Sorry for the rude start! Anyhoo, This is the only program on my pc that does this, tried registry fixes, ms fixit, cmd, services, you named it I've (most likely)

[issue21158] Windows installer service could not be accessed (Python bug!)

2014-04-04 Thread Payden Comer
Changes by Payden Comer thecheater...@gmail.com: -- title: Windows installer service could not be accessed - Windows installer service could not be accessed (Python bug!) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21158

[issue21158] Windows installer service could not be accessed (Python bug!)

2014-04-04 Thread Payden Comer
Payden Comer added the comment: Then when installing the 32 bit. (image below:) -- Added file: http://bugs.python.org/file34730/python bug 2.PNG ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21158

[issue21158] Windows installer service could not be accessed (Python bug!)

2014-04-04 Thread R. David Murray
R. David Murray added the comment: I think it would be helpful for you to email the python-list mailing list. Hopefully the people there can help you refine your problem report into something we can tackle. The installer works fine for most people, so the first thing that we need in order

[issue21158] Windows installer service could not be accessed (Python bug!)

2014-04-04 Thread R. David Murray
R. David Murray added the comment: Sorry, I meant to delete that word 'minimal', since you have told us what you currently know, but I hit send before I did :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21158

[issue21157] Update imp docs for a PEP 451 world

2014-04-04 Thread Thomas Heller
Changes by Thomas Heller thel...@ctypes.org: -- nosy: +theller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21157 ___ ___ Python-bugs-list

[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2014-04-04 Thread Maciej Szulik
Maciej Szulik added the comment: You're right, I'll change this description removing 'This is equivalent...' sentence from description. I guess the same applies to time.strptime as well. -- ___ Python tracker rep...@bugs.python.org

[issue20942] _frozen_importlib should not have a __file__ attribute

2014-04-04 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- stage: patch review - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20942 ___

[issue21101] Extend the PyDict C API to handle cases where the hash value is known

2014-04-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: While the question is reasonable, I agree with Raymond's answer. As a python programmer, I would not like to see d.setitem_known_hash(key, hash, d.getitem_known_hash(key, hash) + 1) Of course, d[key] += 1 already solves the double lookup issue at the Python

[issue21101] Extend the PyDict C API to handle cases where the hash value is known

2014-04-04 Thread Alex Gaynor
Alex Gaynor added the comment: d[key] += 1 still does two dict lookups, and invokes the hash function twice: class X(object): ... def __hash__(self): ... print hashed ... return 0 ... def __eq__(self, other): ... return True ... d = {X(): 0} hashed d[X()] hashed 0 d[X()] = 3

[issue21101] Extend the PyDict C API to handle cases where the hash value is known

2014-04-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Of course, d[key] += 1 already solves the double lookup issue at the Python level. What the hell are you talking about? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21101

[issue21153] bdist_rpm fails if project contains files with spaces in the names

2014-04-04 Thread Éric Araujo
Éric Araujo added the comment: Is this a duplicate of #809163 ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21153 ___ ___ Python-bugs-list

[issue21150] Add quick links table to argparse docs

2014-04-04 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21150 ___ ___ Python-bugs-list

[issue21145] Add the @cached_property decorator

2014-04-04 Thread Éric Araujo
Éric Araujo added the comment: It could make sense to add clean, working recipes to e.g. the functools documentation. The cached_property in the wiki uses a TTL, other like Pyramid’s reify decorator make properties that ensure the fget function is called only once per instance, and there may

[issue21133] unittest discover should allow option to run each package separately

2014-04-04 Thread Éric Araujo
Éric Araujo added the comment: imports from previous unittests corrupt the namespace of subsequent unittests and lead to failures (usually if there are mock objects in previously imported unit tests) Can you tell more about this? I haven’t run into this issue with large test suites that

[issue21091] EmailMessage.is_attachment should be a method

2014-04-04 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21091 ___

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-04-04 Thread mirabilos
mirabilos added the comment: Stefan Krah dixit: If the asm instructions silently fail, I'd say add a test to ./configure that detects the broken versions of the emulator in question. No, the problem is at runtime: Debian is a binary distro, and thus, packages can get built and/or used on

[issue21130] equivalent functools.partial instances should compare equal

2014-04-04 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: - test needed type: behavior - enhancement versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21130 ___

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-04-04 Thread mirabilos
mirabilos added the comment: Andreas Schwab dixit: The fixed version is here: git://git.code.sf.net/p/aranym/code That’s a source repository. I was asking for released tarballs that have been packaged. But clearly I have been outvoted by the m68k porters. So please feel free to go ahead and

[issue21150] Add quick links table to argparse docs

2014-04-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have used both quick link tables and agree that more would be nice in spite of the added maintenance burden. The re module is one I would like to see indexed. -- nosy: +terry.reedy ___ Python tracker

[issue20904] HAVE_PY_SET_53BIT_PRECISION for m68k

2014-04-04 Thread Larry Hastings
Larry Hastings added the comment: I retract my veto. You don't have a veto. Only Guido has that. Anyhow you have yet to reply to Mr. Schwab's assertion: The emulator has always correctly implemented the insn. If that's true, then I don't understand what this whole argument is about.

  1   2   >