[issue22823] Use set literals instead of creating a set from a list

2014-12-10 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: michael.foord -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue23024] Python Compile Error on Mac os X ld: unknown option: -export-dynamic

2014-12-10 Thread Ned Deily
Ned Deily added the comment: That should work just fine, assuming you are using an unmodified Python 3.4.x source download or the 3.4 branch of a source repo. My best guess as to why you are running into problems is that you may be picking up build tools other than those supplied by Apple. On

[issue23024] Python Compile Error on Mac os X ld: unknown option: -export-dynamic

2014-12-10 Thread zhuoyikang
zhuoyikang added the comment: Sorry, i am not cross-build , i just building it on my mac os x machine : i fellow this => Build Instructions -- On Unix, Linux, BSD, OSX, and Cygwin: New text ./configure make make test sudo make install This will install Python

[issue21600] mock.patch.stopall doesn't work with patch.dict to sys.modules

2014-12-10 Thread Eric Snow
Eric Snow added the comment: At least for CPython sys.modules is initially set to the modules dict on the interpreter struct. As of 3.4 the import system itself only cares about sys.modules (I'll have to double check on builtin___import__). However, if I recall correctly at least part of the

[issue22225] Add SQLite support to http.cookiejar

2014-12-10 Thread Demian Brecht
Demian Brecht added the comment: Coming back to this, it's likely a bad idea as an addition to the standard library as an update may be required out of band with scheduled deployments should schemas and such change. This is best developed as an external module. Closing. -- status: ope

[issue22992] Adding a git developer's guide to Mercurial to devguide

2014-12-10 Thread Demian Brecht
Demian Brecht added the comment: I've added a section about rebasing and removed the comment about merging. Of course, I'm assuming that the config changes can be made to Apache to allow for this workflow. -- Added file: http://bugs.python.org/file37412/issue22992_1.patch

[issue20866] segfailt with os.popen and SIGPIPE

2014-12-10 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed stage: test needed -> resolved status: open -> closed ___ Python tracker ___ ___

[issue23006] Improve the doc and indexing of adict.__missing__.

2014-12-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: I made a couple more minor revisions to the 3.4 stdtypes text and copied the revised paragraph, with the code example, to 2.7 -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python

[issue23006] Improve the doc and indexing of adict.__missing__.

2014-12-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0fe3fb886c38 by Terry Jan Reedy in branch '2.7': Issue #23006: Improve the documentation and indexing of dict.__missing__. https://hg.python.org/cpython/rev/0fe3fb886c38 New changeset 31875b244bdf by Terry Jan Reedy in branch '3.4': Issue #23006: Im

[issue22823] Use set literals instead of creating a set from a list

2014-12-10 Thread Michael Foord
Michael Foord added the comment: Patch looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue14784] Re-importing _warnings changes warnings.filters

2014-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Issue18383 is a duplicate of this issue but it has a patch (not perfect). -- nosy: +serhiy.storchaka ___ Python tracker ___ __

[issue18383] test_warnings modifies warnings.filters when running with "-W default"

2014-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch fixes symptoms. It would be better to fix the cause of the issue -- warnings.filters shouldn't duplicate after module reloading. -- nosy: +serhiy.storchaka versions: +Python 3.5 -Python 3.3 ___ Python tra

[issue19527] Test failures with COUNT_ALLOCS

2014-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Why do you check hasattr(sys, 'getrefcount') in test_io.py, but hasattr(sys, 'getcounts') in all other tests? -- ___ Python tracker ___ _

[issue19527] Test failures with COUNT_ALLOCS

2014-12-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +Tests nosy: +serhiy.storchaka stage: -> patch review type: -> behavior versions: +Python 3.5 ___ Python tracker ___ __

[issue23029] test_warnings produces extra output in quiet mode

2014-12-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- title: test_warnings produces extra output in quit mode -> test_warnings produces extra output in quiet mode ___ Python tracker ___

[issue23027] test_warnings fails with -Werror

2014-12-10 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue22992] Adding a git developer's guide to Mercurial to devguide

2014-12-10 Thread Demian Brecht
Demian Brecht added the comment: The issue and solution was confirmed on IRC in #mercurial by mpm (Matt Mackall). According to him, there is also no easy way to change this behaviour from the client. The problem isn't /really/ a Mercurial issue, but an issue with web server specific defaults.

[issue23016] uncaught exception in lib/warnings.py when executed with pythonw

2014-12-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue23029] test_warnings produces extra output in quit mode

2014-12-10 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: $ ./python -m test.regrtest -q test_warnings test.test_warnings:559: UserWarning: test This is 2.7 only issue. -- components: Tests messages: 232448 nosy: serhiy.storchaka priority: normal severity: normal status: open title: test_warnings produces

[issue23028] CEnvironmentVariableTests and PyEnvironmentVariableTests test the same implementation

2014-12-10 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: CEnvironmentVariableTests and PyEnvironmentVariableTests are purposed to test C and Python implementations. But they are test the same implementation because execute test code in a subprocess and changes of sys.modules in current process don't affect a sub

[issue23027] test_warnings fails with -Werror

2014-12-10 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: $ ./python -Werror -m test.regrtest -v test_warnings ... == ERROR: test_warning_classes (test.test_warnings.CWarnTests) --

[issue22992] Adding a git developer's guide to Mercurial to devguide

2014-12-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: I suggest you post your findings on the mercurial mailing-list (http://selenic.com/mailman/listinfo/mercurial, there's a gmane mirror also). I would be surprised if there weren't an easy way of circumventing it. --

[issue22992] Adding a git developer's guide to Mercurial to devguide

2014-12-10 Thread Demian Brecht
Demian Brecht added the comment: After some further investigation, this seems to be what's happening. Note: this is based on a small amount of research and hasn't been validated by any mercurial devs, so it might be missing key pieces: In cases where a local topological head is unknown to a re

[issue23016] uncaught exception in lib/warnings.py when executed with pythonw

2014-12-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset d04dab84388f by Serhiy Storchaka in branch '3.4': Issue #23016: A warning no longer produces AttributeError when the program https://hg.python.org/cpython/rev/d04dab84388f New changeset 0050e770b34c by Serhiy Storchaka in branch 'default': Issue #23

[issue23026] Winreg module doesn't support REG_QWORD, small DWORD doc update

2014-12-10 Thread Mark Grandi
New submission from Mark Grandi: The winreg module has constants for the different Windows registry types: https://docs.python.org/3/library/winreg.html?highlight=winreg#value-types It also links to the Microsoft documentation on the registry types, and I noticed that python doesn't have const

[issue23024] Python Compile Error on Mac os X ld: unknown option: -export-dynamic

2014-12-10 Thread Ned Deily
Ned Deily added the comment: The -export-dynamic compile option is not supported nor selected at configure time for normal builds on OS X. Exactly what configure options did you use? I see that you have checked Cross-Build for components. What sort of cross-building are you attempting? ---

[issue21600] mock.patch.stopall doesn't work with patch.dict to sys.modules

2014-12-10 Thread Colton Leekley-Winslow
Colton Leekley-Winslow added the comment: Patching sys.modules is an idea I got from the official documentation https://docs.python.org/3/library/unittest.mock.html#patch-dict http://mock.readthedocs.org/en/latest/patch.html#patch-dict -- ___ Pytho

[issue22520] integer overflow in computing unicode's object representation

2014-12-10 Thread Benjamin Peterson
Benjamin Peterson added the comment: As Serhiy has noted on other bugs, the fact that the tests must be restricted to 32-bits limits their usefulness unfortunately. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python t

[issue22518] integer overflow in encoding unicode

2014-12-10 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue14965] super() and property inheritance behavior

2014-12-10 Thread Simon Zack
Simon Zack added the comment: +1 to this feature, this will dramatically simplify property setting code. -- nosy: +simonzack ___ Python tracker ___ __

[issue23025] ssl.RAND_bytes docs should mention os.urandom

2014-12-10 Thread Donald Stufft
Donald Stufft added the comment: I agree completely. This is something that should generally be discouraged all together. See: http://sockpuppet.org/blog/2014/02/25/safely-generate-random-numbers/ -- nosy: +dstufft ___ Python tracker

[issue23025] ssl.RAND_bytes docs should mention os.urandom

2014-12-10 Thread Alex Gaynor
New submission from Alex Gaynor: For almost any conceivable application, os.urandom is a preferable way to access a CSPRNG, and is less error prone, the docs should point this out. -- assignee: docs@python components: Documentation files: rand.diff keywords: patch messages: 232436 nosy:

[issue21600] mock.patch.stopall doesn't work with patch.dict to sys.modules

2014-12-10 Thread Michael Foord
Michael Foord added the comment: why not? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue23024] Python Compile Error on Mac os X ld: unknown option: -export-dynamic

2014-12-10 Thread zhuoyikang
New submission from zhuoyikang: /Applications/Xcode.app/Contents/Developer/usr/bin/make Parser/pgen gcc -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -L/usr/local/lib -export-dynamic Parser/acceler.o Parser/grammar1.o Parser/listnode.o Parser/node.o Parser/parser.o Parser/bitset.o Parser/

[issue17128] OS X system openssl deprecated - installer should build local libssl

2014-12-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2b5fa8651bd0 by Ned Deily in branch '2.7': Issue #17128: Use private version of OpenSSL for 2.7.9 OS X 10.5+ installer. https://hg.python.org/cpython/rev/2b5fa8651bd0 -- ___ Python tracker

[issue23014] Don't have importlib.abc.Loader.create_module() be optional

2014-12-10 Thread Nick Coghlan
Nick Coghlan added the comment: The specific reason I wanted the "return None to delegate to the default behaviour" feature was to make it easier to migrate the C extension machinery. With that design, a PEP 451 based C extension loader would just need to return None when there was no appropri

[issue23014] Don't have importlib.abc.Loader.create_module() be optional

2014-12-10 Thread Brett Cannon
Brett Cannon added the comment: What do you think about requiring create_module() and/or not supporting a None value return? The only reason I ask is to think through the ramifications and how long to raise a DeprecationWarning. I think I can live with having a reasonable default if create_mod

[issue23020] New matmul operator crashes modules compiled with CPython3.4

2014-12-10 Thread Benjamin Peterson
Benjamin Peterson added the comment: This is why C-extensions' PEP 3147 file tags depend on Python version. I agree the policy could stand to be documented. -- ___ Python tracker __

[issue23016] uncaught exception in lib/warnings.py when executed with pythonw

2014-12-10 Thread R. David Murray
Changes by R. David Murray : -- title: uncatched exception in lib/warnings.py when executed with pythonw -> uncaught exception in lib/warnings.py when executed with pythonw ___ Python tracker _

[issue22918] Doc for __iter__ makes inexact comment about dict.__iter__

2014-12-10 Thread R. David Murray
R. David Murray added the comment: Thanks, Chaitanya. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed type: -> behavior ___ Python tracker ___ ___

[issue22918] Doc for __iter__ makes inexact comment about dict.__iter__

2014-12-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 743ebaba14db by R David Murray in branch '3.4': #22918: Drop obsolete mention of 'keys' in datamodel __iter__ docs. https://hg.python.org/cpython/rev/743ebaba14db New changeset 1a1f577ca647 by R David Murray in branch 'default': Merge: #22918: Drop

[issue23019] pyexpat.errors wrongly bound to message strings instead of message codes

2014-12-10 Thread Berker Peksag
Changes by Berker Peksag : -- keywords: +easy stage: resolved -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue23019] pyexpat.errors wrongly bound to message strings instead of message codes

2014-12-10 Thread R. David Murray
R. David Murray added the comment: Actually, I'm going to reopen it as a doc issue. This should be explained in the 2.7 docs. -- assignee: -> docs@python components: +Documentation -Library (Lib) nosy: +docs@python status: closed -> open ___ Python

[issue23019] pyexpat.errors wrongly bound to message strings instead of message codes

2014-12-10 Thread R. David Murray
R. David Murray added the comment: For backward compatibility reasons this *can not be changed*. We are stuck with it, even though we agree it is broken. Please do not reopen the issue. -- status: open -> closed ___ Python tracker

[issue21775] shutil.copytree() crashes copying to VFAT on Linux: AttributeError: 'PermissionError' object has no attribute 'winerror'

2014-12-10 Thread STINNER Victor
STINNER Victor added the comment: Note: Python 2.7 is not affected, I cannot find "winerror" in shutil.py. -- ___ Python tracker ___ _

[issue23016] uncatched exception in lib/warnings.py when executed with pythonw

2014-12-10 Thread STINNER Victor
STINNER Victor added the comment: warnings_stderr_none.patch looks good to me. It can be applied on Python 2.7, 3.4 and 3.5. -- ___ Python tracker ___ __

[issue23023] ./Modules/ld_so_aix not found on AIX during test_distutils

2014-12-10 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Note that the helper Modules/ld_so_aix is created during configure. Just the path to the helper in the sysconfig data is wrong (relative to the current dir, which will most likely always be wrong except for a few special situations such as when building Py

[issue21114] wsgiref.simple_server doesn't handle multi-line headers correctly

2014-12-10 Thread Tom Tanner
Tom Tanner added the comment: attached is the updated patch, which unfolds multiline headers but not validate them (tests included). -- Added file: http://bugs.python.org/file37409/wsgi2.diff ___ Python tracker __

[issue23023] ./Modules/ld_so_aix not found on AIX during test_distutils

2014-12-10 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: The problem also still exists on Python 3.4 (and probably 3.3 and 3.5 as well), even though these should have the patch from issue18235 applied: * http://buildbot.python.org/all/builders/PPC64%20AIX%203.4/builds/707 * http://buildbot.python.org/all/build

[issue23023] ./Modules/ld_so_aix not found on AIX during test_distutils

2014-12-10 Thread Marc-Andre Lemburg
New submission from Marc-Andre Lemburg: Here's the traceback from one of the AIX buildbots: [ 32/400] test_distutils unable to execute './Modules/ld_so_aix': No such file or directory [22429 refs] test test_distutils failed -- Traceback (most recent call last): File "/home/shager/cpython-buil

[issue22883] Get rid of references to PyInt in Py3 sources

2014-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I doubt that just removing PyInt is correct. At least in longobject.h current comment looks correct. And in fcntlmodule.c and itertoolsmodule.c proposed changes look questionable. There are also mentions of PyInt_* in *.rst and *.py files. -- _

[issue22883] Get rid of references to PyInt in Py3 sources

2014-12-10 Thread Chaitanya agrawal
Changes by Chaitanya agrawal : -- keywords: +patch Added file: http://bugs.python.org/file37408/issue22883.patch ___ Python tracker ___ __

[issue22918] Doc for __iter__ makes inexact comment about dict.__iter__

2014-12-10 Thread Chaitanya agrawal
Changes by Chaitanya agrawal : -- keywords: +patch Added file: http://bugs.python.org/file37407/issue22918-inexactComment.diff ___ Python tracker ___

[issue23020] New matmul operator crashes modules compiled with CPython3.4

2014-12-10 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: PEP384 is presented as a new way to write modules that can be loaded by multiple Python versions, specially on Windows. I could not find any place that says that modules not using the stable ABI need to be recompiled. I'm not against changing this rule (

[issue23022] heap-use-after-free in find_maxchar_surrogates

2014-12-10 Thread peerhash
Changes by peerhash : -- hgrepos: -284 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue23022] heap-use-after-free in find_maxchar_surrogates

2014-12-10 Thread peerhash
New submission from peerhash: Line 27-29 trigger use-after-free. = ==18203== ERROR: AddressSanitizer: heap-use-after-free on address 0x60080003b2e0 at pc 0x5e844f bp 0x75351750 sp 0x75351748 READ of size 4 at 0x60080003b2e0

[issue19104] pprint produces invalid output for long strings

2014-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What to do with this issue? -- versions: +Python 3.5 ___ Python tracker ___ ___ Python-bugs-list m

[issue17128] OS X system openssl deprecated - installer should build local libssl

2014-12-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 31f506f4e2d2 by Ned Deily in branch '2.7': Issue #17128: Use private version of OpenSSL for 2.7.9 OS X 10.5+ installer. https://hg.python.org/cpython/rev/31f506f4e2d2 -- nosy: +python-dev ___ Python track