[issue3591] elementtree tests do not include bytes handling
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +eli.bendersky, serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3591 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14455] plistlib unable to read json and binary plist files
Changes by Ronald Oussoren ronaldousso...@mac.com: Removed file: http://bugs.python.org/file30526/plistlib_generate_testdata.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14455 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18336] codecs: Link to readline module (history) instead of fd.readline()
Senko Rasic added the comment: Here's a patch just removing the reference. Although potentially referencing io.IOBase.readline instead would be more correct, IMHO it'd be just more confusing to users reading the docs. -- keywords: +patch nosy: +senko Added file: http://bugs.python.org/file30789/codecs-readline-docstring-fix.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18336 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14455] plistlib unable to read json and binary plist files
Ronald Oussoren added the comment: Updated test-data generator: it now encodes the data using base64, to make it easier to generate a file with limited line lengths. -- Added file: http://bugs.python.org/file30790/plistlib_generate_testdata.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14455 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14455] plistlib unable to read json and binary plist files
Ronald Oussoren added the comment: v8 of the patch contains 1 change from v7: the test data is encoded in base64. This was primarily done to ensure that the file has usable line lengths. A nice side effect is that it is now harder than ever to manually change the test data, as the comment mentions there is a script for generating that data. As always I'd appreciate feedback on this patch, especially on deprecating the current public API and introducing a new (PEP8 compliant) one. -- Added file: http://bugs.python.org/file30791/plistlib_generate_testdata.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14455 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17860] subprocess docs lack info how to use output result
Roundup Robot added the comment: New changeset a2c2ffa1a41c by Ronald Oussoren in branch '3.3': Issue #17860: explicitly mention that std* streams are opened in binary mode by default. http://hg.python.org/cpython/rev/a2c2ffa1a41c New changeset ae8b054155c1 by Ronald Oussoren in branch 'default': (3.3-default) Issue #17860: explicitly mention that std* streams are opened in binary mode by default. http://hg.python.org/cpython/rev/ae8b054155c1 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17860 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17860] subprocess docs lack info how to use output result
Ronald Oussoren added the comment: The documentation for 3.3 and default now explicitly mentions that the std* streams are opened as binary streams when universal_newlines is false. -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17860 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6642] returning after forking a child thread doesn't call Py_Finalize
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6642 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18049] Re-enable threading test on OSX
Ronald Oussoren added the comment: I intend to apply this patch to default (and only that branch) after running the testsuite and with a small change: the stack size will be 0x100 (double it current value) to sync it with the stack size for the main thread, which was recently set to that value in the default branch. -- keywords: +needs review, patch versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18049 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9175] ctypes doesn't build on hp-ux
Ronald Oussoren added the comment: Good question, the libffi copy included with cpython has recently changed. There are HP-UX buildbots, but they have build problems. I'll try to test on an HP-UX system I've access to. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9175 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5262] PythonLauncher considered harmfull
Changes by Ronald Oussoren ronaldousso...@mac.com: -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5262 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8410] Fix emulated lock to be 'fair'
Changes by Ronald Oussoren ronaldousso...@mac.com: -- assignee: ronaldoussoren - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8410 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9175] ctypes doesn't build on hp-ux
Ronald Oussoren added the comment: So much for testing, the machine I'm trying to test on is fairly old and doesn't have an up to date compiler. That compiler crashes when trying to build the 2.7.5 release :-( -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9175 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10666] OS X installer variants have confusing readline differences
Ronald Oussoren added the comment: Download link for the latest version: http://opensource.apple.com/tarballs/libedit/libedit-31.tar.gz The archive only includes an Xcode based build system, the makefile based system was removed some time ago. It might be better to use http://www.thrysoee.dk/editline/libedit-20130611-3.1.tar.gz instead (which is a distribution of netbsd libedit with a configure script) I've attached a patch (relative to the tip of the 3.3 branch for now) that teaches build-installer to use a static build of the trysoee distribution of libedit. The patch is completely untested at the moment, I will be able to build a 10.6/intel installer tonight and testing with the PPC build will have to wait until I get back from EP. A problem with using libedit unconditionally: we will likely get complaints from users when changing this in a bugfix release, it would be better to only apply this patch to the default branch. -- Added file: http://bugs.python.org/file30792/issue-10666.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10666 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18289] python.org Interactive interpreter linked with libedit can segfault on future OS X
Ronald Oussoren added the comment: I propose to close this issue because this is likely a bug in a beta version of OSX and that's not something we'll try to work around in the python sources. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18289 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18374] ast.parse gives wrong position (col_offset) for some BinOp-s
New submission from Aivar Annamaa: When parsing following program: 1+2-3 ast.parse gives col_offset=3 to outermost BinOp (as shown by the attached test script). Correct col_offset would be 0 for both BinOp-s -- components: Interpreter Core files: binop_bug.py messages: 192394 nosy: Aivar.Annamaa priority: normal severity: normal status: open title: ast.parse gives wrong position (col_offset) for some BinOp-s versions: Python 3.2, Python 3.3 Added file: http://bugs.python.org/file30793/binop_bug.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18374 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18370] ast.parse produces wrong lineno and col_offset for triple-quoted strings
Aivar Annamaa added the comment: Seems this issue is a duplicate of http://bugs.python.org/issue16806 -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18370 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18136] Put local build paths before system build paths in configure.ac and Makefile.pre.in
Ronald Oussoren added the comment: I'm not sure what's going on here, the build already seems to behave correctly. What I've done: * Create a python installation in /opt/python2.7 (configure --prefix=/opt/python2.7; make; make install) * Now build and the tip of the default branch: (./configure --prefix=/tmp/cp34 CPPFLAGS=-I/opt/python2.7/include LDFLAGS=-L/opt/python2.7/lib CFLAGS=-Wno-unused-value -Wno-empty-body -Qunused-arguments CC=clang; make; make test) Tests passed correctly. I'm now rerunning the build with '-I/opt/python2.7/include/python2.7' to ensure that the '#include Python.h' could find 2.7 header on the compiler search path. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18136 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18342] Use the repr of a module name for ModuleNotFoundError in ceval.c
Tomasz Maćkowiak added the comment: Attaching a test case and a patch for formatting the module name with PyObject_Repr() not PyObject_Str(). -- keywords: +patch nosy: +kurazu Added file: http://bugs.python.org/file30794/bug18342.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18136] Put local build paths before system build paths in configure.ac and Makefile.pre.in
Ronald Oussoren added the comment: Also the compiler invocations looks fine: for the main build: ... clang -c -Wno-unused-result -Werror=declaration-after-statement -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Wno-unused-value -Wno-empty-body -Qunused-arguments-I. -IInclude -I../Include -I/opt/python2.7/include/python2.7 -DPy_BUILD_CORE -o Python/_warnings.o ../Python/_warnings.c ... And for an extension: clang -Wno-unused-result -Werror=declaration-after-statement -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Wno-unused-value -Wno-empty-body -Qunused-arguments -DHAVE_EXPAT_CONFIG_H=1 -DUSE_PYEXPAT_CAPI -I/Users/ronald/Projects/python/rw/default/Modules/expat -I../Include -I. -IInclude -I/opt/python2.7/include/python2.7 -I/usr/local/include -I/Users/ronald/Projects/python/rw/default/Include -I/Users/ronald/Projects/python/rw/default/build2 -c /Users/ronald/Projects/python/rw/default/Modules/_elementtree.c -o build/temp.macosx-10.8-x86_64-3.4/Users/ronald/Projects/python/rw/default/Modules/_elementtree.o (Both should be a single line, not sure of that survives copypaste) Both with -I/opt/python2.7/include and -I/opt/python2.7/include/python2.7 the build works correctly, and test_build_ext passes without problems. I have no idea why this failed on Brett's machine :-( -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18136 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17557] test_getgroups of test_posix can fail on OS X 10.8 if more than 16 groups
Ronald Oussoren added the comment: Have you heard anything from Apple? If you have a radar number I could try to ping someone at Apple. I'd be in favor of working around this issue in posixmodule.c if they don't respond or if they won't fix the issue in 10.8 (and I wouldn't be surprised if they won't). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17557 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13359] urllib2 doesn't escape spaces in http requests
Senko Rasic added the comment: I vote for the parse method converting the spaces (and only the spaces) explicitly, for the following reasons: * the spaces must be encoded for the server to accept them * no user-encoded url will ever have spaces in them * space quoting is idempotent: quote(quote(' ')) == quote(' ') * if the user did get an exception from Request in case of invalid url containing the spaces, the only thing he or she can do is to quote the url string Here's a patch implementing this. The change allows for any whitespace character in the selector part of the url (and in particular, '\n'), not only ' '. -- nosy: +senko Added file: http://bugs.python.org/file30795/urllib-request-space-encode.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13359 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18375] python -m test --randseed 1234 does not randomize tests
New submission from Florent Xicluna: I noticed a minor issue with regrtest. IMHO it should assume --randomize when you pass --randseed. -- assignee: flox components: Tests messages: 192401 nosy: flox priority: normal severity: normal stage: needs patch status: open title: python -m test --randseed 1234 does not randomize tests type: behavior versions: Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18375 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6671] webbrowser doesn't respect xfce default browser
Christian Heimes added the comment: I'm sorry for the confusion. My Xubuntu test box sets different environment variables than your system with xfce. It sets os.environ.get(DESKTOP_SESSION) == xubuntu and os.environ.get(XDG_CURRENT_DESKTOP) == XFCE. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6671 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18342] Use the repr of a module name for ModuleNotFoundError in ceval.c
Tomasz Maćkowiak added the comment: Attaching a modified patch with assertRaisesRegexp used. -- Added file: http://bugs.python.org/file30796/bug18342_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12990] launcher can't work on path including tradition chinese char
Ronald Oussoren added the comment: This bug is ancient by now, but not fixed. I've reproduced the issue with a recent release of Python and the problem is an encoding exception in Objective-C: 2013-07-06 12:17:20.511 Python Launcher[43030:f0b] *** Terminating app due to uncaught exception 'NSCharacterConversionException', reason: 'Conversion to encoding 30 failed for string cd '/Users/ronald/X/...' That is because the Python Launcher tries to convert the string to ASCII, and that obviously doesn't work when the path contains Chinese characters. Fixing this should be easy enough, I expect to have a patch later today. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12990 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12990] launcher can't work on path including tradition chinese char
Changes by Ronald Oussoren ronaldousso...@mac.com: -- versions: +Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12990 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18308] checkRecvmsgAddress wrong in test_socket.py (AIX failures)
Charles-François Natali added the comment: I think the safest solution is not to compare scope_id when comparing addresses. Agreed. However, it might be simpler to special-case the IPv6 addresses comparison by overriding it in the IPv6 sendmsg base test. Could you try the patch attached? -- Added file: http://bugs.python.org/file30797/test_socket_scope_id.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18308 ___diff -r 6a0437adafbd Lib/test/test_socket.py --- a/Lib/test/test_socket.py Fri Jun 28 19:25:45 2013 +0200 +++ b/Lib/test/test_socket.py Sat Jul 06 12:18:10 2013 +0200 @@ -3312,7 +3312,11 @@ class SendrecvmsgUDP6TestBase(SendrecvmsgDgramFlagsBase, SendrecvmsgConnectionlessBase, ThreadedSocketTestMixin, UDP6TestBase): -pass + +def checkRecvmsgAddress(self, addr1, addr2): +# Called to compare the received address with the address of +# the peer, ignoring scope ID +self.assertEqual(addr1[:-1], addr2[:-1]) @requireAttrs(socket.socket, sendmsg) @unittest.skipUnless(support.IPV6_ENABLED, 'IPv6 required for this test.') ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18375] python -m test --randseed 1234 does not randomize tests
Roundup Robot added the comment: New changeset 5bd3f9ed357e by Florent Xicluna in branch '3.3': Issue #18375: Assume --randomize when --randseed is used for running the testsuite. http://hg.python.org/cpython/rev/5bd3f9ed357e New changeset 7be081fa8db1 by Florent Xicluna in branch 'default': Issue #18375: merge with 3.3 http://hg.python.org/cpython/rev/7be081fa8db1 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18375 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16000] test_curses should use unittest
Ed Campbell added the comment: I think this is a real improvement. Thanks. I have a few comments: I suspect you know this, but the rendering problem occurs because of the call to curses.endwin() in tearDown(). I experimented with delaying this until teadDownClass() but this led to even more undesirable side effects with the tests running in parallel. Your print() call seems like a simple workaround. There is only a single test case so I don't see the advantage of using a setUpModule function over setUpClass. Is there one? I'd put the code in setUpClass (or possibly put the curses.setupterm() call in setUp and have neither setUpModule or setUpClass). If and when further test cases are added I'd consider factoring out common code into a setUpModule. I'd also consider putting the skip test if not sys.__stdout__.isatty() that's in your current setUpModule as a decorator with the other @unittest.skipIf class decorators. Is there a reason you singled this one out to go in setUpModule? You have a typo on line 30: 'unkwown' should be 'unknown' -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16000 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18376] show the effective count of process when running the testsuite
New submission from Florent Xicluna: It would be useful to display the number of processes used to run the test suite. (some buildbots have multiple -j on the command line, and it is unclear which one is effective) Proposal (on the third line): == CPython 3.4.0a0 (default:6d278f426417, Jul 6 2013, 10:20:02) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] == Darwin-10.8.0-x86_64-i386-64bit little-endian == /Volumes/DATA/pydev/cpython/build/test_python_56822 (1 process) Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=1, verbose=0, bytes_warning=2, quiet=0, hash_randomization=1) Using random seed 9023960 [ 1/375] test_epoll [ 2/375] test_tokenize ... == CPython 3.4.0a0 (default:6d278f426417, Jul 6 2013, 10:20:02) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] == Darwin-10.8.0-x86_64-i386-64bit little-endian == /Volumes/DATA/pydev/cpython/build/test_python_56826 (4 processes) Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=1, verbose=0, bytes_warning=2, quiet=0, hash_randomization=1) Using random seed 9023960 [ 1/375] test_epoll [ 2/375] test_tokenize ... -- components: Tests messages: 192408 nosy: flox priority: normal severity: normal stage: needs patch status: open title: show the effective count of process when running the testsuite type: enhancement versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18376 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18376] show the effective count of process when running the testsuite
Changes by Florent Xicluna florent.xicl...@gmail.com: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18376 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18376] show the effective count of process when running the testsuite
Changes by Florent Xicluna florent.xicl...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file30798/issue18376_regrtest_count_processes.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18376 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12681] unittest expectedFailure could take a message argument like skip does
Adam Collard added the comment: I've got a patch for this, but I'm a bit worried about the impact on the documented API. I've tried to do the best I could to minimize it through use of keyword-arguments but I'm a bit unsure about the change (and the docs too!) I hope this is useful to someone! -- Added file: http://bugs.python.org/file30799/new-unittest ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12681 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6671] webbrowser doesn't respect xfce default browser
Tomasz Maćkowiak added the comment: My Xubuntu 13.04 has the same variables: 'XDG_CURRENT_DESKTOP': 'XFCE' 'DESKTOP_SESSION': 'xubuntu' as well as 'GDMSESSION': 'xubuntu' -- nosy: +kurazu ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6671 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12990] launcher can't work on path including tradition chinese char
Roundup Robot added the comment: New changeset 7ec9255d4189 by Ronald Oussoren in branch '2.7': Issue #12990: The Python Launcher on OSX could not launch python scripts that have paths that include wide characters. http://hg.python.org/cpython/rev/7ec9255d4189 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12990 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12990] launcher can't work on path including tradition chinese char
Roundup Robot added the comment: New changeset 27eb350d5056 by Ronald Oussoren in branch '3.3': Issue #12990: The Python Launcher on OSX could not launch python scripts that have paths that include wide characters. http://hg.python.org/cpython/rev/27eb350d5056 New changeset b6ebc726d5fe by Ronald Oussoren in branch 'default': (3.3-default) Issue #12990: The Python Launcher on OSX could not launch python scripts that have paths that include wide characters. http://hg.python.org/cpython/rev/b6ebc726d5fe -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12990 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12990] launcher can't work on path including tradition chinese char
Ronald Oussoren added the comment: I've commit a fix for this problem in the branches for 2.7, 3.3 and the upcoming 3.4 release. This means the problem will be fixed in the next releases from those branches. -- resolution: - fixed stage: test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12990 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9495] argparse unittest tracebacks are confusing if an error is raised when not expected
Adam Collard added the comment: Use raise from None to avoid additional exception context -- Added file: http://bugs.python.org/file30800/argparse-raise-from-None ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9495 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11957] re.sub confusion between count and flags args
Valentina Mukhamedzhanova added the comment: Please see my patch, I have changed flags to be instances of IntEnum and added a check to re.sub, re.subn and re.split. The patch contains some tests. This solution also allowed me to discover several bugs in the standard library, and I am going to create tickets for them shortly. -- nosy: +umi Added file: http://bugs.python.org/file30801/patch_11957 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11957 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18377] Python Launcher code cleanup
New submission from Ronald Oussoren: While working on a Python Launcher issue (#12990) I noticed some compiler warnings for Python Launcher. The attached patch removes those warnings, and cleans up some indentation issues. Ned: do you have an opinion on applying this to the 3.3 and 2.7 branches? I'd prefer to backport to keep the code base the same (especially because there are no functional changes) -- assignee: ronaldoussoren files: cleanup-pythonlauncher-full.txt keywords: patch messages: 192417 nosy: ned.deily, ronaldoussoren priority: normal severity: normal stage: commit review status: open title: Python Launcher code cleanup type: compile error versions: Python 2.7, Python 3.3, Python 3.4 Added file: http://bugs.python.org/file30802/cleanup-pythonlauncher-full.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18377 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10735] platform.architecture() gives misleading results for OS X multi-architecture executables
Changes by Ronald Oussoren ronaldousso...@mac.com: -- versions: +Python 3.3, Python 3.4 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10735 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18342] Use the repr of a module name for ModuleNotFoundError in ceval.c
STINNER Victor added the comment: The patch looks good to me. Just a minor nit: you should add ^ to the beginning of the regex. 2013/7/6 Tomasz Maćkowiak rep...@bugs.python.org: Tomasz Maćkowiak added the comment: Attaching a modified patch with assertRaisesRegexp used. -- Added file: http://bugs.python.org/file30796/bug18342_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18342 ___ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12645] test.support. import_fresh_module - incorrect doc
Adam Collard added the comment: The typo is no longer present, but the docs were still wrong. -- nosy: +adam-collard Added file: http://bugs.python.org/file30803/issue-12645-test-docs ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12645 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16937] -u (unbuffered I/O) command line option documentation mismatch for sys.stdin
Changes by Elena Oat oat.el...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file30804/issue16937.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16937 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10910] pyport.h FreeBSD/Mac OS X fix causes errors in C++ compilation
Ronald Oussoren added the comment: The bytes_methods.h issue is not present in the default branch, but is still present in the 2.7 branch. I'm not sure why those defines are there, I'm adding Gregory P. Smith to the nosy list because he added the defines and might remember why they were added and if it would be save to remove them (from bytes_methods.h). That is defines like this: #undef islower #define islower(c) undefined_islower(c) I don't know what to do about the defines in pyport.h, one workaround is disable that entire block for C++ compiler, as in the attached patches (the later one is the same as the first one, but adds a comment that explains why the code is disabled for C++) -- nosy: +gregory.p.smith versions: +Python 3.4 Added file: http://bugs.python.org/file30805/issue10910-workaround.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10910 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18342] Use the repr of a module name for ModuleNotFoundError in ceval.c
Tomasz Maćkowiak added the comment: Attached a corrected patch with regexps modified. -- Added file: http://bugs.python.org/file30806/bug18342_3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17349] wsgiref.simple_server.demo_app is not PEP-3333 compatible
Changes by Adam Collard adam.coll...@gmail.com: -- nosy: +adam-collard ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17349 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English
New submission from Dmitry Jemerov: On Mac OS X 10.8 with the default language set to English (System Preferences | Language and Text), the default terminal application sets the LC_CTYPE environment variable to UTF-8. If you run Python from the terminal and try to use locale.getdefaultlocate(), you get the following error: python Python 2.7.2 (default, Oct 11 2012, 20:14:37) [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin Type help, copyright, credits or license for more information. import locale locale.getdefaultlocale() Traceback (most recent call last): File stdin, line 1, in module File /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py, line 496, in getdefaultlocale return _parse_localename(localename) File /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py, line 428, in _parse_localename raise ValueError, 'unknown locale: %s' % localename ValueError: unknown locale: UTF-8 (The stacktrace is from Python 2.7 but Python 3.3 suffers from the same problem.) There are numerous workarounds for this problem (turning off the Set locale environment variables on startup option in the terminal settings, or adding export LC_CTYPE=en_US.UTF8 to .bash_profile, selecting a language other than English in the Language Text settings), but these require additional configuration from the user's side. I think that the more useful behavior is for Python to handle this behavior of the system and not crash, even though it doesn't strictly comply to the POSIX standard. The attached patch (against current Python 3.4 master branch) is one possible fix. -- components: Library (Lib) files: getdefaultlocale.patch keywords: patch messages: 192422 nosy: Dmitry.Jemerov priority: normal severity: normal status: open title: locale.getdefaultlocale() fails on Mac OS X with default language set to English versions: Python 2.7, Python 3.4 Added file: http://bugs.python.org/file30807/getdefaultlocale.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18378 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1052827] filelist.findall should not fail on dangling symlinks
Senko Rasic added the comment: Here are two patches: * test against py3k test_sdist.py (should crash without a fix) * a proposed fix The proposed fix not only changes lstat, but also changes other relevant paths to actually include dangling symlinks in the filelists. I've split them into two in case the proposed fix is rejected but test is still useful. -- keywords: +patch nosy: +senko Added file: http://bugs.python.org/file30808/distutils-symlink-test.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1052827 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1052827] filelist.findall should not fail on dangling symlinks
Senko Rasic added the comment: The second patch (proposed fix). -- Added file: http://bugs.python.org/file30809/distutils-symlink-fix.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1052827 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14354] Crash in _ctypes_alloc_callback
Ronald Oussoren added the comment: The example uses unions, which libffi doesn't really support (see for example https://github.com/atgreen/libffi/issues/33). There is an issue in the python tracker about union support in ctypes: #16575. FWIW. I can still reproduce the issue with x86_64 on OSX with both the 2.7 and default branches, while i386 does not crash. I intend to close this as a duplicate of #16575 as that better explains the underlying problem. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14354 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18373] implement sys.get/setbyteswarningflag()
Daniel Holth added the comment: You would just enable this during your serialization code, and if (perhaps someone is calling your library and passing it the wrong type) they would be guarded against this common error. On Sat, Jul 6, 2013, at 12:15 AM, R. David Murray wrote: R. David Murray added the comment: Why wouldn't you just enable bytes warning and fix all the code to work correctly? -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18373 ___ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18373 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18379] SSLSocket.getpeercert(): OCSP and CRL DP URIs
New submission from Christian Heimes: The patch implements OCSP and CRL distribution point access for getpeercert(). I'll add tests and doc updates later. Output for https://info.pca.dfn.de/ {'OCSP': ('http://ocsp.pca.dfn.de/OCSP-Server/OCSP',), 'crlDistributionPoints': ('http://cdp1.pca.dfn.de/global-services-ca/pub/crl/cacrl.crl', 'http://cdp2.pca.dfn.de/global-services-ca/pub/crl/cacrl.crl'), 'issuer': ((('countryName', 'DE'),), (('organizationName', 'DFN-Verein'),), (('organizationalUnitName', 'DFN-PKI'),), (('commonName', 'DFN-Verein CA Services'),)), 'notAfter': 'Oct 18 09:07:09 2014 GMT', 'notBefore': 'Oct 19 09:07:09 2009 GMT', 'serialNumber': '0EFBA9CC', 'subject': ((('countryName', 'DE'),), (('organizationName', 'DFN-Verein'),), (('organizationalUnitName', 'DFN-PKI'),), (('commonName', 'info.pca.dfn.de'),)), 'version': 3} -- components: Extension Modules files: ssl_ocsp_crldp.patch keywords: patch messages: 192426 nosy: christian.heimes, pitrou priority: normal severity: normal stage: patch review status: open title: SSLSocket.getpeercert(): OCSP and CRL DP URIs type: enhancement versions: Python 3.4 Added file: http://bugs.python.org/file30810/ssl_ocsp_crldp.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18379 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18380] email/quoprimime.py doesn't use re.sub correctly
New submission from Valentina Mukhamedzhanova: header_decode function in the standard library email/quoprimime.py module calls re.sub with a positional argument for flags in the wrong position. My patch fixes it to use a keyword argument. -- components: Library (Lib), Regular Expressions, email files: patch_quoprimime messages: 192428 nosy: barry, ezio.melotti, mrabarnett, r.david.murray, umi priority: normal severity: normal status: open title: email/quoprimime.py doesn't use re.sub correctly type: behavior versions: Python 2.7, Python 3.3, Python 3.4 Added file: http://bugs.python.org/file30811/patch_quoprimime ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18380 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English
Ronald Oussoren added the comment: Strange, I have LANG=en_US.UTF-8 in my environment and no LC_CTYPE. A clean test account does have the same behavior as you are seeing. -- nosy: +ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18378 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18378 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11957] re.sub confusion between count and flags args
Changes by Valentina Mukhamedzhanova umi...@gmail.com: Removed file: http://bugs.python.org/file30801/patch_11957 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11957 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18381] unittest warnings counter
New submission from Giampaolo Rodola': ...as per my original proposal on python-ideas: http://mail.python.org/pipermail/python-ideas/2013-June/021450.html Patch is in attachment. -- components: Library (Lib) files: unittest.patch keywords: needs review, patch messages: 192430 nosy: ezio.melotti, giampaolo.rodola, michael.foord priority: normal severity: normal status: open title: unittest warnings counter versions: Python 3.4 Added file: http://bugs.python.org/file30812/unittest.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18381 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11957] re.sub confusion between count and flags args
Changes by Valentina Mukhamedzhanova umi...@gmail.com: Added file: http://bugs.python.org/file30813/patch_11957 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11957 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18382] multiprocessing's overlapped PipeConnection issues on Windows 8
New submission from Walter Prins: It appears that Windows 8 (Version 6.2.9200 x64) has introduced changes in behaviour that causes the multiprocessing module's use of overlapped PipeConnection to fail (Python 3.4 32bit and release 3.3.2 32bit). This issue previously existed (see issue #12328 point 1) and was fixed but the fixes for #12328 do not appear to work on Windows 8. Specifically the test test_multiprocessing._TestPoll.test_empty_string fails with message: FAIL: test_empty_string (Lib.test.test_multiprocessing.WithProcessesTestPoll) -- Traceback (most recent call last): File C:\Users\Walter\Documents\src\cpython\Lib\test\test_multiprocessing.py, line 2416, in test_empty_string self.assertEqual(a.poll(), True) AssertionError: False != True Additionally, there appears to be no buildbot for Windows 8 currently, would it be possible to have one set up? -- components: Extension Modules messages: 192431 nosy: wprins priority: normal severity: normal status: open title: multiprocessing's overlapped PipeConnection issues on Windows 8 type: behavior versions: Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18382 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18308] checkRecvmsgAddress wrong in test_socket.py (AIX failures)
STINNER Victor added the comment: However, it might be simpler to special-case the IPv6 addresses comparison by overriding it in the IPv6 sendmsg base test. Yes, this is why I proposed another approach. (But David convinced me that it is not the right approach.) Victor -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18308 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English
Ronald Oussoren added the comment: The UTF-8 value seems suspect to me, but is actually supported by the system, changing it to a nonsense value results in failure in the C function setlocale. As for the patch: I'd add this workaround only to the OSX platform (that is, test for sys.platform == 'darwin' before checking for UTF-8 as a value). -- keywords: +needs review stage: - patch review type: - behavior versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18378 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17840] base64_codec uses assert for runtime validity checks
Alex Henderson added the comment: I see that there is identical usage of assert errors=='strict' in a number of similar encodings modules: base64_codec.py bz2_codec.py hex_codec.py quopri_codec.py uu_codec.py zlib_codec.py The error handling mode is irrelevant for all these codecs, so the attached patch addresses them all (choosing to ignore the error mode and documenting this). -- keywords: +patch nosy: +alex.henderson Added file: http://bugs.python.org/file30814/issue17840.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17840 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17349] wsgiref.simple_server.demo_app is not PEP-3333 compatible
Adam Collard added the comment: Since this bug depends on a __future__ import I was advised to put the test in a separate file. -- Added file: http://bugs.python.org/file30815/issue-17349-wsgiref ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17349 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15370] test_runpy should include namespace package tests
Changes by Adam Collard adam.coll...@gmail.com: -- nosy: +adam-collard ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15370 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17557] test_getgroups of test_posix can fail on OS X 10.8 if more than 16 groups
Mateusz Lenik added the comment: I attached a patch implementing a workaround for getgroups(2) call. When compiled for OS X it first calls getgroups with 0 as the first argument to get number of groups and then in subsequent call the code fetches the gids. This patch applies cleanly on 2.7 and 3.x branches. -- keywords: +patch nosy: +mlen Added file: http://bugs.python.org/file30816/getgroups_osx.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17557 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue979407] urllib2 digest auth totally broken
Senko Rasic added the comment: Checked with 3.4.0 alpha, works fine. Apart from the tests mentioned, I used the following script to check digest auth: from urllib import request url = 'http://httpbin.org/digest-auth/auth/user/passwd' req = request.Request(url) password_manager = request.HTTPPasswordMgrWithDefaultRealm() password_manager.add_password(None, url, 'user', 'passwd') auth_manager = request.HTTPDigestAuthHandler(password_manager) opener = request.build_opener(auth_manager) request.install_opener(opener) handler = request.urlopen(req) assert handler.getcode() == 200 -- nosy: +senko ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue979407 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15594] test_copyfile_named_pipe() fails on Mac OS X Snow Leopard: OSError: [Errno 22] Invalid argument
Ronald Oussoren added the comment: Is this still an issue? I won't be able to look into this until I get home from EP, I didn't bring my disk with virtual machines to the conference. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15594 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7982] extend captured_output to simulate different stdout.encoding
Changes by Michael Hart hart.mich...@gmail.com: -- nosy: +mike_hart ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7982 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17324] SimpleHTTPServer serves files even if the URL has a trailing slash
Senko Rasic added the comment: The attached test (issue-17324-test-1) reproduces the issue for me on 3.4.0alpha. -- nosy: +senko ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17324 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13829] exception error in _scproxy.so
Ronald Oussoren added the comment: Sigh... The crash is a subprocess started with fork is not entirely unexpected, although I had hoped that the current version of _scproxy would be safe enough. A number of Apple frameworks detect that a process called fork after they initialized and then explictly crash (basicly a call to abort()). In this case it appears to just not work correctly. I'm not sure how to fix this, other than spawning a small helper program to query the proxy settings. That could get prohibitively expensive when fetching a lot of URLs though (and an RPC system might run into the a similar problem after calling fork...) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13829 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18383] test_warnings modifies warnings.filters when running with -W default
New submission from Florent Xicluna: Running the test suite with -Wd, we got the warning: [247/375] test_warnings Warning -- warnings.filters was modified by test_warnings This is how to reproduce: ./python -Wd import warnings from test import support saved = warnings.filters.copy() c_warnings = support.import_fresh_module('warnings', fresh=['_warnings']) saved == warnings.filters # -- False -- components: Tests messages: 192441 nosy: flox priority: low severity: normal stage: needs patch status: open title: test_warnings modifies warnings.filters when running with -W default type: behavior versions: Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18383 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11957] re.sub confusion between count and flags args
Changes by Valentina Mukhamedzhanova umi...@gmail.com: Removed file: http://bugs.python.org/file30813/patch_11957 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11957 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18383] test_warnings modifies warnings.filters when running with -W default
Florent Xicluna added the comment: Much simpler: $ ./python -Wd import warnings import sys saved = warnings.filters.copy() del sys.modules['warnings'] import warnings assert warnings.filters != saved assert warnings.filters.pop(0) = warnings.filters[0] assert warnings.filters == saved Explanation: the default filter is duplicated on each reload of the warnings module. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18383 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18383] test_warnings modifies warnings.filters when running with -W default
Florent Xicluna added the comment: This patch fixes the issue. -- keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file30817/issue18383_test_warnings_filters.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18383 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10984] argparse add_mutually_exclusive_group should accept existing arguments to register conflicts
Michael Twomey added the comment: I've picked up on this as part of the EP 2013 sprints. I've attached a patch which implements the behaviour described in the comments. It doesn't break any existing functionality but the help generated by argparse is definitely not quite right. -- keywords: +patch nosy: +micktwomey Added file: http://bugs.python.org/file30818/args_in_multiple_mutually_exclusive_groups.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10984 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English
Dmitry Jemerov added the comment: Judging from the results of Googling for the error message, I'm far from the only one seeing this problem. What exactly would be the benefit of adding the code to check for the platform? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18378 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English
Ronald Oussoren added the comment: The test for darwin is needed because other platforms don't support UTF-8 as a valid LC_CTYPE name, on a recent linux box: locale.setlocale(locale.LC_CTYPE, UTF-8) Traceback (most recent call last): File stdin, line 1, in module File /opt/python2.7/lib/python2.7/locale.py, line 539, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting (And just calling setlocale to check if the value is valid is not an option because that changes process-global state) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18378 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English
Dmitry Jemerov added the comment: Why exactly does this matter? UTF-8 not being a valid LC_CTYPE value simply means that no one running Linux will ever have LC_CTYPE set to UTF-8, and the branch will never be hit. OTOH, adding the check will make the code harder to test and simply larger (no code is always better than any non-zero amount of code). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18378 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18380] email/quoprimime.py doesn't use re.sub correctly
Valentina Mukhamedzhanova added the comment: I have updated the patch with a testcase. -- Added file: http://bugs.python.org/file30819/patch_18380 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18380 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18380] email/quoprimime.py doesn't use re.sub correctly
Changes by Valentina Mukhamedzhanova umi...@gmail.com: Removed file: http://bugs.python.org/file30811/patch_quoprimime ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18380 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10910] pyport.h FreeBSD/Mac OS X fix causes errors in C++ compilation
Gregory P. Smith added the comment: I was merely refactoring for PEP3137, the original version of all that code prior to 2.7 was in Objects/stringobject.c and long predates me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10910 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10910] pyport.h FreeBSD/Mac OS X fix causes errors in C++ compilation
Ronald Oussoren added the comment: I've some more digging to do then, although I expect that nobody knows anymore why the #define's are there. It should be safe to remove them by now, and they are not present in the default branch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10910 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11445] python.exe on OS X shared-llbrary build erroneously linked to MacPorts python library
Changes by Ronald Oussoren ronaldousso...@mac.com: Removed file: http://bugs.python.org/file21243/issue-11445.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11445 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18380] email/quoprimime.py doesn't use re.sub correctly
Roundup Robot added the comment: New changeset c8fd1351c840 by Ezio Melotti in branch '3.3': #18380: pass regex flags to the right argument. Patch by Valentina Mukhamedzhanova. http://hg.python.org/cpython/rev/c8fd1351c840 New changeset 6e23ce14c3c6 by Ezio Melotti in branch 'default': #18380: merge with 3.3. http://hg.python.org/cpython/rev/6e23ce14c3c6 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18380 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18380] email/quoprimime.py doesn't use re.sub correctly
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: - ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18380 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11445] python.exe on OS X shared-llbrary build erroneously linked to MacPorts python library
Ronald Oussoren added the comment: I've attached an updated patch (against the 2.7 branch, the same idea should work for 3.3 and default). This does two things: 1) Explicity add '-Wl,-search_paths_first' to LDFLAGS on Mac OS X. This ensures that the linker behaves like other platforms: in every directory on the search path look for both shared and static libraries, the default (upto xcode 4) was to first walk the entire path looking for dylibs, then walk the path again looking for static libraries. 2) Change the order of arguments when linking $(BUILDPYTHON), the -L flags in $(LDFLAGS) were first added before the -L. flag, and are now after that flag. This ensures that the correct python library will be found, even if there is a libpython in one of the directories on the search path that's added by $(LDFLAGS). This should work fine on OSX (obviously) and Linux, but I'm not 100% that moving $(LDFLAGS) will work with the vendor compilers on commercial unix systems. (Adding 3.3 and 3.4 to the versions because those should also be affected by this issue) -- keywords: -patch versions: +Python 3.3, Python 3.4 Added file: http://bugs.python.org/file30820/issue-11445-linkflags.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11445 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16223] untokenize returns a string if no encoding token is recognized
Tomasz Maćkowiak added the comment: untokenize has also some other problems, especially when it is using compat - it will skip first significant token, if ENCODING token is not present in input. For example for input like this (code simplified): tokens = tokenize(b1 + 2) untokenize(tokens[1:]) '+2 ' It also doesn't adhere to another documentation item: The iterable must return sequences with at least two elements. [...] Any additional sequence elements are ignored. In current implementation sequences can be either 2 or 5 elements long, and in the 5-elements long variant the last 3 elements are not ignored, but used to construct source code with original whitespace. I'm trying to prepare a patch for those issues. -- nosy: +kurazu ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16223 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18382] multiprocessing's overlapped PipeConnection issues on Windows 8
Richard Oudkerk added the comment: Does that test always fail? -- nosy: +sbt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18382 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11957] re.sub confusion between count and flags args
Changes by Valentina Mukhamedzhanova umi...@gmail.com: Added file: http://bugs.python.org/file30821/patch_11957 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11957 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6386] importing yields unexpected results when initial script is a symbolic link
Senko Rasic added the comment: Patch for modifying the modules part of tutorial with the changes suggested by jamadagni (reworded slightly so the note is outside the itemized list). -- keywords: +patch nosy: +senko Added file: http://bugs.python.org/file30822/tutorial-symlink-syspath-note.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6386 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18384] Add devhelp build instructions to the documentation makefile
New submission from Balthazar Rouberol: The documentation makefile is missing support for Devhelp. The supplied patch fixes this for the Python 3 branch. It also edits the ouput of the sphinx build to change the name of the devhelp project. This is needed to be able to have both versions of documentation (py2 py3) displayed in Devhelp. This is useful if developers need to access documentation for both versions, such as both maintaining a Python2 project and starting a new project in Python3. This has been patched in some distributions downstream, but would be nice to have patched upstream. See: https://bugs.launchpad.net/ubuntu/+source/devhelp/+bug/787039 -- assignee: docs@python components: Documentation files: devhelp-build-py3.patch keywords: patch messages: 192457 nosy: brouberol, docs@python priority: normal severity: normal status: open title: Add devhelp build instructions to the documentation makefile type: enhancement versions: Python 3.5 Added file: http://bugs.python.org/file30823/devhelp-build-py3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18384 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18384] Add devhelp build instructions to the documentation makefile
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +georg.brandl stage: - patch review versions: +Python 3.4 -Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18384 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18384] Add devhelp build instructions to the documentation makefile
Changes by Balthazar Rouberol broube...@imap.cc: Removed file: http://bugs.python.org/file30823/devhelp-build-py3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18384 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18384] Add devhelp build instructions to the documentation makefile
Changes by Balthazar Rouberol broube...@imap.cc: Added file: http://bugs.python.org/file30824/devhelp-build-py3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18384 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18384] Add devhelp build instructions to the documentation makefile (Python3)
Changes by Balthazar Rouberol broube...@imap.cc: -- title: Add devhelp build instructions to the documentation makefile - Add devhelp build instructions to the documentation makefile (Python3) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18384 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18385] Add devhelp build instructions to the documentation makefile (Python2)
New submission from Balthazar Rouberol: The documentation makefile is missing support for Devhelp. The supplied patch fixes this for the Python 2 branch. -- assignee: docs@python components: Documentation files: devhelp-build-py2.patch keywords: patch messages: 192458 nosy: brouberol, docs@python priority: normal severity: normal status: open title: Add devhelp build instructions to the documentation makefile (Python2) type: enhancement versions: Python 2.7 Added file: http://bugs.python.org/file30825/devhelp-build-py2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18385 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15661] OS X installer packages should be signed for OS X 10.8 Gatekeeper feature
Ronald Oussoren added the comment: Creating flat packages should be easy enough, I'm hoping to experiment with them during the sprints at EP (but we're already at the end of the first day). At first I feared that creating installers in the new format would require using GUI tool, but it seems that the creating can be scripted using command line tools (like pkgbuild). According to http://s.sudre.free.fr/Stuff/Ivanhoe/FLAT.html flat packages were introduced in OSX 10.5, which would mean we could only move the intel installer to that format. It would IMHO be worthwhile to do that for all new stable releases (2.7.x, 3.3.x and 3.4.x), while at the same time further reducing the visibility of the 32-bit installers (as those should only be used by users that just cannot use the newer installers). As to the question of actually signing the installer: we ask the PSF about acquiring a developer account once we have something that can actually be signed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15661 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18384] Add devhelp build instructions to the documentation makefile
Changes by Balthazar Rouberol broube...@imap.cc: -- title: Add devhelp build instructions to the documentation makefile (Python3) - Add devhelp build instructions to the documentation makefile versions: +Python 2.7 Added file: http://bugs.python.org/file30826/devhelp-build-py2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18384 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com