[issue4519] .pyc files included in 2.6 and 3.0 release tarballs
New submission from Matthias Klose [EMAIL PROTECTED]: Python-2.6/Doc/tools/sphinxext/patchlevel.pyc Python-2.6/Doc/tools/sphinxext/pyspecific.pyc Python-2.6/Doc/tools/roman.pyc same for 3.0 -- assignee: barry components: Build messages: 76875 nosy: barry, doko severity: normal status: open title: .pyc files included in 2.6 and 3.0 release tarballs versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4519 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4520] Online 3.0 documentation says it's for 3.1a0
New submission from Paul Melis [EMAIL PROTECTED]: On the 3.0 release page (http://python.org/download/releases/3.0/) the link to the online documentation is http://docs.python.org/dev/3.0. However, the doc pages there show the version documented to be Python v3.1a0. There's even a link called What's new in Python 3.1? that doesn't work. Could it be that the pages currently under http://docs.python.org/dev/3.0 should have gone under http://docs.python.org/dev/3.1? -- assignee: georg.brandl components: Documentation messages: 76876 nosy: georg.brandl, paulmelis severity: normal status: open title: Online 3.0 documentation says it's for 3.1a0 versions: Python 3.0, Python 3.1 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4520 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4521] What's New in Python 3.0 mentions getcwdu instead of getcwdb
New submission from Hagen Fürstenau [EMAIL PROTECTED]: Patch is attached. -- assignee: georg.brandl components: Documentation files: whatsnew.patch keywords: patch messages: 76877 nosy: georg.brandl, hagen severity: normal status: open title: What's New in Python 3.0 mentions getcwdu instead of getcwdb versions: Python 3.0, Python 3.1 Added file: http://bugs.python.org/file12215/whatsnew.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4521 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4201] Pdb cannot access source code in zipped packages.
Nick Coghlan [EMAIL PROTECTED] added the comment: Issues with the tracker itself go in the meta tracker (see the Report Tracker Problem link at the bottom of the left hand navigation menu). It's a separate tracker in order to handle cases where the main tracker is actually down in addition to problems with the functionality. And you're right that the get_filename() limitation is only part of the story rather than all of it (for both this and other issues). I'll still try to look at them all in one go this weekend though. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4201 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4522] Module wsgiref is not python3000 ready (unicode issues)
New submission from Felix Benner [EMAIL PROTECTED]: wsgiref.handlers.py tries to send strings where bytes is necessary in accordance with PEP333 the attached patch encodes everything with ISO-8859-1. Additionally the patch from Issue 3348 has to be applied. -- components: Library (Lib) files: handlers.diff keywords: patch messages: 76879 nosy: tordmor severity: normal status: open title: Module wsgiref is not python3000 ready (unicode issues) versions: Python 3.0 Added file: http://bugs.python.org/file12216/handlers.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4522 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4509] possible memoryview bug
Antoine Pitrou [EMAIL PROTECTED] added the comment: It's not a memoryview bug, but a bytearray oddity. The bytearray uses a variable-sized buffer underneath, and it tries to minimize the number of reallocations when changing the object length through some simple heuristics. Therefore, a bytearray has both a logical size (the one which is seen from Python, e.g. len()) and a physical size (which can be greater than the logical size, due to those heuristics). The bug here is that the bytearray only prohibits changing the physical size, not the logical size when there is a buffer pointing to it. This also explains the \00 you are witnessing at the 5th byte when calling tobytes() on the memoryview object: it is the end-of-string marker which has been inserted when changing the logical size. -- nosy: +pitrou priority: - normal stage: - needs patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4509 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1581476] Text search gives bad count if called from variable trace
Matthias Kievernagel [EMAIL PROTECTED] added the comment: Nice to see someone working on this. One thing I've checked (iirc): You can set iVar in doSearch by hand like this: iVar.set(2) print 'iVar.get()', iVar.get() And iVar rests at this value. t.search does not change the value. I don't know anything about how the tcl-interpreter is embedded into python. I somehow had the impression there might be a _tkinter limitation there. Something like handling two callbacks into _tkinter at the same time or the tcl interpreter being unresponsive while calling a _tkinter function. At that point I gave up. Seen nothing obvious in _tkinter/Tkinter. Matthias Kievernagel (mkiever/at/web/dot/de) ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1581476 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4519] .pyc files included in 2.6 and 3.0 release tarballs
Barry A. Warsaw [EMAIL PROTECTED] added the comment: I thought we had fixed that :( -- priority: - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4519 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4523] logging module __init__ uses has_key
New submission from R. David Murray [EMAIL PROTECTED]: I ran my ap with -3 and got the following: /usr/lib/python2.6/logging/__init__.py:849: DeprecationWarning: dict.has_key() not supported in 3.x; use the in operator -- components: Library (Lib) messages: 76883 nosy: bitdancer severity: normal status: open title: logging module __init__ uses has_key type: behavior versions: Python 2.6 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4523 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4519] .pyc files included in 2.6 and 3.0 release tarballs
STINNER Victor [EMAIL PROTECTED] added the comment: Write a clean script (or fix the existing script) and reuse the script for each release ;-) -- nosy: +haypo ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4519 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4523] logging module __init__ uses has_key
STINNER Victor [EMAIL PROTECTED] added the comment: The regression tests are already running with -bb. We should also use -3 to detect such bug. But is -3 enough to raise an error (and not just display a message)? -- nosy: +haypo ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4523 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4523] logging module __init__ uses has_key
STINNER Victor [EMAIL PROTECTED] added the comment: I tried the whole Python test suite with -3. Some warnings: - no more cPikle and bsddb modules - has_key() (used in many tests) - a b (used in many AST/grammar tests) - an exception have to inherit from Exception - callable() doesn't exist anymore - etc. It's not a good idea to fix the regression tests because Python 2.6 still uses the listed features. But the logging warning should be fixed, so here is a patch. -- keywords: +patch Added file: http://bugs.python.org/file12217/logging_py3k.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4523 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2102] New style vs. old style classes __ror__() operator overloading
Changes by Fred L. Drake, Jr. [EMAIL PROTECTED]: -- assignee: fdrake - ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2102 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1019882] hotshot start / stop stats bug
Changes by Fred L. Drake, Jr. [EMAIL PROTECTED]: -- assignee: fdrake - ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1019882 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue873150] pickletools support for multiple pickles in a string
Fred L. Drake, Jr. [EMAIL PROTECTED] added the comment: I can't remember why I wanted this; guess this should indeed go in the pickleeverydamnfoolfunctionicanthinkof module, not the standard library. -- resolution: - rejected stage: - committed/rejected status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue873150 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4524] Build fails at running build_scripts
New submission from Chris Hills [EMAIL PROTECTED]: On linux-g++-32 with command line `./configure --enable-ipv6 --with- suffix=3`, python is compiled okay but the build scripts fail as follows:- running build_scripts copying and adjusting /tmp/Python-3.0/Tools/scripts/idle - build/ scripts-3.0 Traceback (most recent call last): File ./setup.py, line 1533, in module main() File ./setup.py, line 1528, in main 'Lib/smtpd.py'] File /tmp/Python-3.0/Lib/distutils/core.py, line 149, in setup dist.run_commands() File /tmp/Python-3.0/Lib/distutils/dist.py, line 942, in run_commands self.run_command(cmd) File /tmp/Python-3.0/Lib/distutils/dist.py, line 962, in run_command cmd_obj.run() File /tmp/Python-3.0/Lib/distutils/command/build.py, line 128, in run self.run_command(cmd_name) File /tmp/Python-3.0/Lib/distutils/cmd.py, line 317, in run_command self.distribution.run_command(command) File /tmp/Python-3.0/Lib/distutils/dist.py, line 962, in run_command cmd_obj.run() File /tmp/Python-3.0/Lib/distutils/command/build_scripts.py, line 51, in run self.copy_scripts() File /tmp/Python-3.0/Lib/distutils/command/build_scripts.py, line 108, in copy_scripts + sysconfig.get_config_var(EXE)), TypeError: Can't convert 'int' object to str implicitly make: *** [sharedmods] Error 1 -- components: Build messages: 76889 nosy: chaz6 severity: normal status: open title: Build fails at running build_scripts type: compile error versions: Python 3.0 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4524 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4506] 3.0 make test failures on Solaris 10
Skip Montanaro [EMAIL PROTECTED] added the comment: Mark If you have time, could you try the attached patch and report what Mark gets printed when cmath.exp(710+1.5j) is called? On my machine, I Mark get: ... Looks similar here: % ./python Python 3.0 (r30:67503, Dec 3 2008, 14:46:39) [GCC 4.2.2] on sunos5 Type help, copyright, credits or license for more information. import cmath cmath.exp(complex(710.0, 1.5)) r.real, r.imag: 1.58027e+307, Inf Py_IS_INFINITY(r.real), Py_IS_INFINITY(r.imag): 0, 1 Traceback (most recent call last): File stdin, line 1, in module OverflowError: math range error If I then comment back out your two printf statements and recompile, it once again fails to raise OverflowError: % ./python Python 3.0 (r30:67503, Dec 3 2008, 14:46:39) [GCC 4.2.2] on sunos5 Type help, copyright, credits or license for more information. import cmath ; cmath.exp(complex(710.0, 1.5)) (1.5802653829857376e+307+inf*j) Very weird. If I uncomment either of your printf statements OverflowError seems to be raised as expected. It's as if some register bit isn't being set unless you reference r.real or r.imag multiple times. Skip ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4506 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4524] Build fails at running build_scripts
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: The cause is that distutils.sysconfig.parse_makefile() tries to convert each value to an int, and does succeed on --with-suffix=3. The attached patch uses %s formatting to build the program name, this will accept int values. All versions are affected. -- keywords: +needs review, patch nosy: +amaury.forgeotdarc stage: - patch review versions: +Python 2.6 Added file: http://bugs.python.org/file12218/build_scripts.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4524 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue672132] registry functions don't handle null characters
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: I expect one day people will complain that they can't access certain registry keys, because those use characters not supported in CP_ACP. These people should migrate to python 3.0. -- nosy: +amaury.forgeotdarc resolution: - out of date status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue672132 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4525] metaclass fixer fails with AttributeError, causing 2to3 to exit with a traceback
New submission from Jean-Paul Calderone [EMAIL PROTECTED]: I tried running 2to3 on Twisted. Here's the result: [EMAIL PROTECTED]:~/Projects/Twisted/trunk$ time ~/Projects/python/branches/release26-maint/python /home/exarkun/Projects/python/branches/release26-maint/Tools/scripts/2to3 twisted/ 2to3.patch /home/exarkun/Projects/Divmod/trunk/Combinator/combinator/xsite.py:7: DeprecationWarning: the sets module is deprecated from sets import Set RefactoringTool: Skipping implicit fixer: buffer RefactoringTool: Skipping implicit fixer: idioms RefactoringTool: Skipping implicit fixer: ws_comma Traceback (most recent call last): File /home/exarkun/Projects/python/branches/release26-maint/Tools/scripts/2to3, line 6, in module sys.exit(main(lib2to3.fixes)) File /home/exarkun/Projects/python/branches/release26-maint/Lib/lib2to3/main.py, line 92, in main rt.refactor(args, options.write, options.doctests_only) File /home/exarkun/Projects/python/branches/release26-maint/Lib/lib2to3/refactor.py, line 196, in refactor self.refactor_dir(dir_or_file, write, doctests_only) File /home/exarkun/Projects/python/branches/release26-maint/Lib/lib2to3/refactor.py, line 214, in refactor_dir self.refactor_file(fullname, write, doctests_only) File /home/exarkun/Projects/python/branches/release26-maint/Lib/lib2to3/refactor.py, line 237, in refactor_file tree = self.refactor_string(input, filename) File /home/exarkun/Projects/python/branches/release26-maint/Lib/lib2to3/refactor.py, line 262, in refactor_string self.refactor_tree(tree, name) File /home/exarkun/Projects/python/branches/release26-maint/Lib/lib2to3/refactor.py, line 301, in refactor_tree self.traverse_by(self.post_order, tree.post_order()) File /home/exarkun/Projects/python/branches/release26-maint/Lib/lib2to3/refactor.py, line 325, in traverse_by new = fixer.transform(node, results) File /home/exarkun/Projects/python/branches/release26-maint/Lib/lib2to3/fixes/fix_metaclass.py, line 148, in transform if not has_metaclass(node): File /home/exarkun/Projects/python/branches/release26-maint/Lib/lib2to3/fixes/fix_metaclass.py, line 34, in has_metaclass return has_metaclass(node) File /home/exarkun/Projects/python/branches/release26-maint/Lib/lib2to3/fixes/fix_metaclass.py, line 39, in has_metaclass if leaf_node.value == '__metaclass__': AttributeError: 'Node' object has no attribute 'value' real0m32.451s user0m31.498s sys 0m0.140s [EMAIL PROTECTED]:~/Projects/Twisted/trunk$ There's no indication of what it was processing, so I'm not sure what causes the error. -- components: 2to3 (2.x to 3.0 conversion tool) messages: 76893 nosy: exarkun severity: normal status: open title: metaclass fixer fails with AttributeError, causing 2to3 to exit with a traceback type: crash versions: Python 2.6 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4525 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4506] 3.0 make test failures on Solaris 10
Skip Montanaro [EMAIL PROTECTED] added the comment: Mark, I trimmed down cmathmodule.c to just contain c_exp then generated assembler files for the non-printf and printf cases. Perhaps that will help you see what's going on. Skip Added file: http://bugs.python.org/file12219/cmathmodule.S ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4506 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4506] 3.0 make test failures on Solaris 10
Changes by Skip Montanaro [EMAIL PROTECTED]: Added file: http://bugs.python.org/file12220/cmathmodule.S.printf ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4506 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue783789] SIGSEGV in _sre.c (IRIX 6.5.20)
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: This looks like a stack overflow to me, and the re module is no longer recursive since python2.4. -- nosy: +amaury.forgeotdarc resolution: - out of date status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue783789 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4368] A bug in ncurses.h still exists in FreeBSD 4.9 - 4.11
Akira Kitada [EMAIL PROTECTED] added the comment: I think this patch is harmless and also deserve to be merged into 2.5.3 release. (As I mentioned earlier, this has been already merged into 3.0 and 2.6 branches) ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4368 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4526] Clarify documentation for binary literals
New submission from Bobby Xiao [EMAIL PROTECTED]: Under http://docs.python.org/dev/3.0/whatsnew/3.0.html#new-syntax, on the last two points, it says # New binary literals, e.g. 0b1010 (already in 2.6). # Bytes literals are introduced with a leading b or B, and there is a new corresponding builtin function, bin(). I believe it should read # New binary literals, e.g. 0b1010 (already in 2.6), and there is a new corresponding builtin function, bin(). # Bytes literals are introduced with a leading b or B, and there is a new corresponding builtin function, bytes(). or something along those lines, as bin is for binary literals, not bytes literals, and bytes is for bytes literals. -- assignee: georg.brandl components: Documentation messages: 76897 nosy: georg.brandl, nneonneo severity: normal status: open title: Clarify documentation for binary literals versions: Python 3.0 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4526 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4527] Obsolete 'string or unicode' in fractions doc
New submission from Terry J. Reedy [EMAIL PROTECTED]: The last version of the constructor expects a string or unicode instance in one of two possible forms. Delete 'or unicode' (bytes do not work). Doc string is ok. -- assignee: georg.brandl components: Documentation keywords: easy messages: 76898 nosy: georg.brandl, tjreedy severity: normal status: open title: Obsolete 'string or unicode' in fractions doc versions: Python 3.0 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4527 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4528] test_httpservers consistently fails on OS X
New submission from Martin Diers [EMAIL PROTECTED]: Test was run with sudo. All other tests passed. Here is the verbose output of test_httpservers: Re-running test 'test_httpservers' in verbose mode test_command (test.test_httpservers.BaseHTTPServerTestCase) ... ok test_handler (test.test_httpservers.BaseHTTPServerTestCase) ... ok test_head_keep_alive (test.test_httpservers.BaseHTTPServerTestCase) ... ok test_header_close (test.test_httpservers.BaseHTTPServerTestCase) ... ok test_internal_key_error (test.test_httpservers.BaseHTTPServerTestCase) ... ok test_request_line_trimming (test.test_httpservers.BaseHTTPServerTestCase) ... ok test_return_custom_status (test.test_httpservers.BaseHTTPServerTestCase) ... ok test_return_header_keep_alive (test.test_httpservers.BaseHTTPServerTestCase) ... ok test_send_blank (test.test_httpservers.BaseHTTPServerTestCase) ... ok test_version_bogus (test.test_httpservers.BaseHTTPServerTestCase) ... ok test_version_digits (test.test_httpservers.BaseHTTPServerTestCase) ... ok test_version_invalid (test.test_httpservers.BaseHTTPServerTestCase) ... ok test_version_none (test.test_httpservers.BaseHTTPServerTestCase) ... ok test_version_none_get (test.test_httpservers.BaseHTTPServerTestCase) ... ok test_get (test.test_httpservers.SimpleHTTPServerTestCase) ... FAIL test_head (test.test_httpservers.SimpleHTTPServerTestCase) ... ok test_invalid_requests (test.test_httpservers.SimpleHTTPServerTestCase) ... ok test_authorization (test.test_httpservers.CGIHTTPServerTestCase) ... Traceback (most recent call last): File /Users/mwdiers/src/Python-3.0/Lib/http/server.py, line 1031, in run_cgi os.execve(scriptfile, args, os.environ) OSError: [Errno 13] Permission denied ERROR test_headers_and_content (test.test_httpservers.CGIHTTPServerTestCase) ... Traceback (most recent call last): File /Users/mwdiers/src/Python-3.0/Lib/http/server.py, line 1031, in run_cgi os.execve(scriptfile, args, os.environ) OSError: [Errno 13] Permission denied ERROR test_invaliduri (test.test_httpservers.CGIHTTPServerTestCase) ... ok test_post (test.test_httpservers.CGIHTTPServerTestCase) ... Traceback (most recent call last): File /Users/mwdiers/src/Python-3.0/Lib/http/server.py, line 1031, in run_cgi os.execve(scriptfile, args, os.environ) OSError: [Errno 13] Permission denied FAIL == ERROR: test_authorization (test.test_httpservers.CGIHTTPServerTestCase) -- Traceback (most recent call last): File /Users/mwdiers/src/Python-3.0/Lib/test/test_httpservers.py, line 342, in test_authorization (res.read(), res.getheader('Content-type'), res.status)) File /Users/mwdiers/src/Python-3.0/Lib/http/client.py, line 591, in getheader return ', '.join(self.msg.get_all(name, default)) TypeError == ERROR: test_headers_and_content (test.test_httpservers.CGIHTTPServerTestCase) -- Traceback (most recent call last): File /Users/mwdiers/src/Python-3.0/Lib/test/test_httpservers.py, line 322, in test_headers_and_content (res.read(), res.getheader('Content-type'), res.status)) File /Users/mwdiers/src/Python-3.0/Lib/http/client.py, line 591, in getheader return ', '.join(self.msg.get_all(name, default)) TypeError == FAIL: test_get (test.test_httpservers.SimpleHTTPServerTestCase) -- Traceback (most recent call last): File /Users/mwdiers/src/Python-3.0/Lib/test/test_httpservers.py, line 244, in test_get self.check_status_and_reason(response, 404) File /Users/mwdiers/src/Python-3.0/Lib/test/test_httpservers.py, line 220, in check_status_and_reason self.assertEquals(response.status, status) AssertionError: 200 != 404 == FAIL: test_post (test.test_httpservers.CGIHTTPServerTestCase) -- Traceback (most recent call last): File /Users/mwdiers/src/Python-3.0/Lib/test/test_httpservers.py, line 330, in test_post self.assertEquals(res.read(), b'1, python, 123456\n') AssertionError: b'' != b'1, python, 123456\n' -- Ran 21 tests in 10.358s FAILED (failures=2, errors=2) test test_httpservers failed -- errors occurred; run in verbose mode for details make: [test] Error 1 (ignored) -- components: Tests messages: 76899 nosy: mwdiers severity: normal status: open title: test_httpservers consistently fails on OS X type: behavior versions: Python 3.0 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4528
[issue4529] parser module failure on valid try/except/finally blocks
New submission from Kai Willadsen [EMAIL PROTECTED]: Using the parser module to create a parse tree succeeds, but a subsequent tuple2ast fails, when parsing valid try/except/finally (and try/except/else/finally) blocks. parser.tuple2ast fails with: parser.ParserError: Illegal number of children for try/finally node. -- files: parser-testcase.py messages: 76900 nosy: kaiw severity: normal status: open title: parser module failure on valid try/except/finally blocks type: behavior versions: Python 2.5 Added file: http://bugs.python.org/file12221/parser-testcase.py ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4529 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4342] (Tkinter) Please backport these
Changes by Guilherme Polo [EMAIL PROTECTED]: -- priority: - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue818059] os.listdir on empty strings. Inconsistent behaviour.
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: This may become important when switching to python 3.0... When passed str(''), FindFirstFileA is called with *.*. But when passed unicode(''), FindFirstFileW is called with L\\*.* !!! Attached patch fixes (and tests) the problem. It was developed on 3.0, but applies on all versions. -- keywords: +needs review, patch nosy: +amaury.forgeotdarc priority: normal - high stage: - patch review Added file: http://bugs.python.org/file1/listdir.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue818059 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4525] metaclass fixer fails with AttributeError, causing 2to3 to exit with a traceback
Benjamin Peterson [EMAIL PROTECTED] added the comment: Yes, the 2.6.0 version of 2to3 is broken in this way. 2.6.1 should be released today or tomorrow. In the mean time, you can try it directly from the 2to3 trunk: http://svn.python.org/projects/sandbox/trunk/2to3 -- nosy: +benjamin.peterson resolution: - out of date status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4525 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4531] Deprecation warnings in lib\compiler\ast.py
New submission from Edward K Ream [EMAIL PROTECTED]: Python 2.6 final on Windows XP gives following warnings with -3 option: c:\python26\lib\compiler\ast.py:54: SyntaxWarning: tuple parameter unpacking has been removed in 3.x def __init__(self, (left, right), lineno=None): c:\python26\lib\compiler\ast.py:434: SyntaxWarning: tuple parameter unpacking has been removed in 3.x def __init__(self, (left, right), lineno=None): c:\python26\lib\compiler\ast.py:488: SyntaxWarning: tuple parameter unpacking has been removed in 3.x def __init__(self, (left, right), lineno=None): c:\python26\lib\compiler\ast.py:806: SyntaxWarning: tuple parameter unpacking has been removed in 3.x def __init__(self, (left, right), lineno=None): c:\python26\lib\compiler\ast.py:896: SyntaxWarning: tuple parameter unpacking has been removed in 3.x def __init__(self, (left, right), lineno=None): c:\python26\lib\compiler\ast.py:926: SyntaxWarning: tuple parameter unpacking has been removed in 3.x def __init__(self, (left, right), lineno=None): c:\python26\lib\compiler\ast.py:998: SyntaxWarning: tuple parameter unpacking has been removed in 3.x def __init__(self, (left, right), lineno=None): c:\python26\lib\compiler\ast.py:1098: SyntaxWarning: tuple parameter unpacking has been removed in 3.x def __init__(self, (left, right), lineno=None): c:\python26\lib\compiler\ast.py:1173: SyntaxWarning: tuple parameter unpacking has been removed in 3.x def __init__(self, (left, right), lineno=None): c:\python26\lib\compiler\pycodegen.py:903: SyntaxWarning: tuple parameter unpacking has been removed in 3.x Edward Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.net/edreamleo/front.html -- components: Library (Lib) messages: 76904 nosy: edreamleo severity: normal status: open title: Deprecation warnings in lib\compiler\ast.py type: compile error versions: Python 2.6 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4531 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4526] Clarify documentation for binary literals
Georg Brandl [EMAIL PROTECTED] added the comment: Fixed in r67526. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4526 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4527] Obsolete 'string or unicode' in fractions doc
Georg Brandl [EMAIL PROTECTED] added the comment: Fixed in r67525. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4527 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3890] ssl.SSLSocket.recv() implementation may not work with non-blocking sockets
Bill Janssen [EMAIL PROTECTED] added the comment: Thanks for the patch. It looks pretty good to me, but I can't help thinking that there must be a better way of handling the recv() case; I don't like copying that buffer several times (from the SSL code to Python, from the Python to the buffer). ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3890 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4521] What's New in Python 3.0 mentions getcwdu instead of getcwdb
Georg Brandl [EMAIL PROTECTED] added the comment: Thanks, applied as r67527. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4521 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4520] Online 3.0 documentation says it's for 3.1a0
Georg Brandl [EMAIL PROTECTED] added the comment: Yes, this was a temporary workaround for another issue. 3.0 and 3.1 docs are now properly separated and linked to. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4520 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4518] broken link to python 3 doc on main doc page
Georg Brandl [EMAIL PROTECTED] added the comment: Fixed now, thanks. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4518 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4516] Another formatting error in What's New in Python 3.0
Georg Brandl [EMAIL PROTECTED] added the comment: This appears to be fixed in SVN. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4516 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4532] Fails to build on QNX 6.3.2
New submission from Matt Kraai [EMAIL PROTECTED]: When I try to build Python 3.0 on QNX 6.3.2, the build has the following error: gcc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -DPy_BUILD_CORE -o Python/pythonrun.o Python/pythonrun.c Python/pythonrun.c: In function `Py_InitializeEx': ... Python/pythonrun.c:180: `LC_CTYPE' undeclared (first use in this function) Python/pythonrun.c:180: (Each undeclared identifier is reported only once Python/pythonrun.c:180: for each function it appears in.) ... make: *** [Python/pythonrun.o] Error 1 LC_CTYPE is defined in locale.h, which isn't included because HAVE_LANGINFO_H isn't defined because QNX 6.3.2 doesn't provide langinfo.h. The setlocale call in the trunk is guarded by HAVE_LANGINFO_H, so maybe that should be done here as well. Once this error has been fixed, the following error occurs: gcc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -DPy_BUILD_CORE -DPYTHONPATH=':plat-qnx6' \ -DPREFIX='/usr/local' \ -DEXEC_PREFIX='/usr/local' \ -DVERSION='3.0' \ -DVPATH='' \ -o Modules/getpath.o ./Modules/getpath.c ./Modules/getpath.c:132: invalid initializer ... make: *** [Modules/getpath.o] Error 1 This version of GCC apparently cannot handle wchar_t array initializers. This can be worked around by changing the type of lib_python to a wchar_t pointer instead. -- components: Build files: fix-qnx-build-errors messages: 76912 nosy: kraai severity: normal status: open title: Fails to build on QNX 6.3.2 type: compile error versions: Python 3.0 Added file: http://bugs.python.org/file12224/fix-qnx-build-errors ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4532 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4515] Formatting error in What's New in Python 3.0
Georg Brandl [EMAIL PROTECTED] added the comment: This appears to be fixed in SVN. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4515 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4513] Finish updating zip docstring
Georg Brandl [EMAIL PROTECTED] added the comment: Fixed in r67529. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4513 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4531] Deprecation warnings in lib\compiler\ast.py
Brett Cannon [EMAIL PROTECTED] added the comment: Considering the entire compiler package is not in 3.0 it is not worth fixing this. Closing as wont fix. -- nosy: +brett.cannon resolution: - wont fix status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4531 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4531] Deprecation warnings in lib\compiler\ast.py
Edward K Ream [EMAIL PROTECTED] added the comment: On Thu, Dec 4, 2008 at 12:33 PM, Brett Cannon [EMAIL PROTECTED] wrote: Brett Cannon [EMAIL PROTECTED] added the comment: Considering the entire compiler package is not in 3.0 it is not worth fixing this. Closing as wont fix. Thanks for this clarification. Edward Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.net/edreamleo/front.html ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4531 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4273] cycle created by profile.run
darrenr [EMAIL PROTECTED] added the comment: We've gotten into the habit of writing manual destructors to remove references like the one you wrote. I think explicit destruction is a useful paradigm when resource allocation is involved and it's important to manage the allocation's lifetime closely. However you've convinced me that it's OK to allow these types of reference cycles, and to make an effort to clean up only cycles involving instances with __del__ methods. I've been able to convince the team. Thanks for helping to clear this up. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4273 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1163367] correct/clarify documentation for super
Raymond Hettinger [EMAIL PROTECTED] added the comment: I'll look at this further. Since it was originally posted, there have already been several improvements to the super() docs. FWIW, there will be no links to super-considered-harmful. Guido has frowned upon that document. Our documentation needs to be written in an affirmative manner, indicating what problems super() solves and how to use it well. This is far better than itemizing its misuses and suggesting that it is an anti-feature. -- assignee: - rhettinger nosy: +rhettinger ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1163367 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4533] 3.0 file.read dreadfully slow
Christian Heimes [EMAIL PROTECTED] added the comment: This needs definitely some testing! -- components: +Extension Modules nosy: +christian.heimes priority: - release blocker stage: - test needed versions: +Python 3.1 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4533 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1055234] cgi.py does not correctly handle fields with ';'
Fred L. Drake, Jr. [EMAIL PROTECTED] added the comment: This is now fixed for Python 2.6.?, 2.7, 3.0.1, and 3.1. I've no idea why I didn't write a test for this sooner. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1055234 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4519] .pyc files included in 2.6 and 3.0 release tarballs
Christian Heimes [EMAIL PROTECTED] added the comment: Ups ... I didn't noticed it, too. -- nosy: +christian.heimes stage: - needs patch type: - resource usage ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4519 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4522] Module wsgiref is not python3000 ready (unicode issues)
Changes by Christian Heimes [EMAIL PROTECTED]: -- priority: - critical stage: - patch review type: - resource usage ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4522 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4532] Fails to build on QNX 6.3.2
Christian Heimes [EMAIL PROTECTED] added the comment: The patch is looking good to me. -- nosy: +christian.heimes priority: - release blocker stage: - patch review ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4532 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4534] problem with str.join
New submission from jeff deifik [EMAIL PROTECTED]: I compiled python 3.0 on a cygwin platform. Here is my modest function: def List_to_String(lis): #return str.join(lis, '') # This is fast, but seems broke in 3.0 s = '' # This is really slow, but works in 3.0 for l in lis: s = s + l return s Here is my test case: def test_List_to_String(self): inp = ['f', 'r', 'e', 'd', ' ', 'i', 's'] out = 'fred is' self.assertEqual(jefflib.List_to_String(inp), out) Here is what happens when I try to run the commented out version (the one with the join): ERROR: test_List_to_String (__main__.TestJefflibFunctions) -- Traceback (most recent call last): File ./jefflib_test.py, line 96, in test_List_to_String self.assertEqual(jefflib.List_to_String(inp), out) File /cygdrive/c/documents and settings/deifikj/jeff/scripts/jefflib.py, lin e 256, in List_to_String return str.join(lis) TypeError: descriptor 'join' requires a 'str' object but received a 'list' Of course, it worked fine in python 2.6. I am baffled. -- components: None messages: 76924 nosy: lopgok severity: normal status: open title: problem with str.join type: crash versions: Python 3.0 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4534 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4535] Build / Test Py3K failed on Ubuntu 8.10
Changes by Rob Wiers [EMAIL PROTECTED]: -- components: Build files: py3k.out nosy: lbhudda severity: normal status: open title: Build / Test Py3K failed on Ubuntu 8.10 type: behavior versions: Python 3.0 Added file: http://bugs.python.org/file12225/py3k.out ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4535 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4534] problem with str.join - should work with list input, error says requires 'str' object
Changes by jeff deifik [EMAIL PROTECTED]: -- title: problem with str.join - problem with str.join - should work with list input, error says requires 'str' object ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4534 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4535] Build / Test Py3K failed on Ubuntu 8.10
New submission from Rob Wiers [EMAIL PROTECTED]: After reading about the Py3K release, I downloaded the source distribution and did a build and test. The test failed, and I thought it might be useful to share it here. I realise there is probably a person (or group) dedicated to porting Python 3.0 to Ubuntu, but I thought this might be helpful. If not, please let me know. Regards, Rob Wiers ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4535 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2486] Decimal slowdown in 3.0 due to str/unicode changes
Mark Dickinson [EMAIL PROTECTED] added the comment: Just a quick note to say I am still working on this. I'll post some new code soon. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2486 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4524] Build fails at running build_scripts
Chris Hills [EMAIL PROTECTED] added the comment: In hindsight I did not need to use --with-suffix as I assumed the interpreter would be installed as python by default, but it is not. The patch however does fix the reported problem for me. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4524 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4006] os.getenv silently discards env variables with non-UTF-8 values
Changes by Adam Olsen [EMAIL PROTECTED]: -- nosy: +Rhamphoryncus ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4006 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4536] SystemError if invalid arguments passed to range() and step=-1
New submission from Laszlo [EMAIL PROTECTED]: range(1.0, 0, 1) Traceback (most recent call last): File stdin, line 1, in module TypeError: 'float' object cannot be interpreted as an integer range(1.0, 0, -1) Traceback (most recent call last): File stdin, line 1, in module SystemError: NULL result without error in PyObject_Call The error here is that range() does not accept float arguments. However in the second example the step argument is -1. Since -1 is also used to indicate a integer overflow, when processing the step argument, it is assumed that (step == -1 PyErr_Occurred()) means that an overflow occured. However in this particular case, step is supposed to be -1, and the error is a TypeError from the previous argument which is a float. The error is then cleared and step is rounded to fit inside an integer. start = PyNumber_Index(start); stop = PyNumber_Index(stop); step = validate_step(step); if (!start || !stop || !step) goto Fail; Now in the above code start is NULL, and the if statement checks for this, and goes to Fail which return NULL. But no error condition is set (it was cleared before) and NULL raises a SystemError. My patch changes three things: * In validate_step(): remove unnecessary 'step = PyNumber_Index(step)', because this PyNumber_Index conversion is already done in the next line by PyNumber_AsSsize_t(). * In validate_step(): don't clear the error is the result is -1. The overflow error is already cleared by PyNumber_AsSsize_t(), and any other errors should remain. * In range_new(): check for NULL values before calling validate_step(), because unlike for the other arguments where we call PyNumber_Index(), calling validate_step() may clear the previous error. -- components: Interpreter Core files: range.diff keywords: patch messages: 76928 nosy: laszlo severity: normal status: open title: SystemError if invalid arguments passed to range() and step=-1 type: behavior versions: Python 3.0, Python 3.1 Added file: http://bugs.python.org/file12226/range.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4536 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4506] 3.0 make test failures on Solaris 10
Mark Dickinson [EMAIL PROTECTED] added the comment: Thanks for the assembly code---you're running Solaris on x86! Why didn't you say so before? :) I think I have an idea what's going on: it's the old extended-precision versus double-precision problem. The calculation of c_exp is done in extended precision in the 80-bit registers of the x87 FPU. The imaginary part of the result of c_exp(710+1.5j) is representable in extended precision, but is outside the range of double precision. So at the point of the Py_IS_INFINITY call, the comparison is done in the FPU and the value being tested isn't infinity. But sometime after that this value is forced out of the 80-bit extended precision FPU register and into memory, where it becomes a 64-bit IEEE 754 double precision infinity. I guess the printf calls force the value from register to memory earlier, so that by the time of the Py_IS_INFINITY call it's already a 64-bit double, and hence already an infinity. Now to prove my theory by turning this into a fix, somehow. It seems as though this problem isn't really specific to Solaris; I guess it's just luck that it hasn't shown up on other x86 platforms. It should certainly be fixed. For the test_math failure, there have been problems with log on other platforms, too, mostly due to strange libm behaviour. The obvious solution is to adapt the Python implementation to deal with special values itself, rather than leaving them to the platform math library. Should be a fairly straightforward change. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4506 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4273] cycle created by profile.run
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Closing issue as Not a bug. (but we can continue the discussion here...) -- resolution: - works for me status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4273 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4537] webbrowser.UnixBrowser should use builtins.open
New submission from Michael Schurter [EMAIL PROTECTED]: On the joyous occasion of Python 3000's release my friends I were playing with import antigravity and it failed for someone with the following traceback (anonymized): Traceback (most recent call last): File stdin, line 1, in module File /.../lib/python3.0/antigravity.py, line 4, in module webbrowser.open(http://xkcd.com/353/;) File /.../lib/python3.0/webbrowser.py, line 61, in open if browser.open(url, new, autoraise): File /.../lib/python3.0/webbrowser.py, line 275, in open success = self._invoke(args, True, autoraise) File /.../lib/python3.0/webbrowser.py, line 226, in _invoke inout = open(os.devnull, r+) File /.../lib/python3.0/webbrowser.py, line 61, in open if browser.open(url, new, autoraise): File /.../lib/python3.0/webbrowser.py, line 271, in open expected 0, 1, or 2, got %s % new) webbrowser.Error: Bad 'new' parameter to open(); expected 0, 1, or 2, got r+ I believe the following patch (against branches/release30-maint) fixes it cleanly: Index: Lib/webbrowser.py === --- Lib/webbrowser.py (revision 67538) +++ Lib/webbrowser.py (working copy) @@ -8,6 +8,7 @@ import stat import subprocess import time +import builtins __all__ = [Error, open, open_new, open_new_tab, get, register] @@ -223,7 +224,7 @@ cmdline = [self.name] + raise_opt + args if remote or self.background: -inout = open(os.devnull, r+) +inout = builtins.open(os.devnull, r+) else: # for TTY browsers, we need stdin/out inout = None -- components: Library (Lib) messages: 76931 nosy: schmichael severity: normal status: open title: webbrowser.UnixBrowser should use builtins.open type: crash versions: Python 3.0 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4537 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4538] ctypes could include data type limits
New submission from Roy Smith [EMAIL PROTECTED]: It would be useful if ctypes included limiting constants for the various fixed-size integers, i.e. MAX_INT_32, MIN_INT_32, etc. Maybe it does and I just missed just didn't see it in the docs? -- assignee: theller components: ctypes messages: 76932 nosy: roysmith, theller severity: normal status: open title: ctypes could include data type limits type: feature request ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4538 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4506] 3.0 make test failures on Solaris 10
Skip Montanaro [EMAIL PROTECTED] added the comment: Mark Thanks for the assembly code---you're running Solaris on x86! Why Mark didn't you say so before? :) I'm failry sure I can find a SPARC here to run it on as well. They are rather few and far between though. Skip ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4506 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4533] 3.0 file.read dreadfully slow
Christian Heimes [EMAIL PROTECTED] added the comment: The small buffer size in Modules/_fileio.c is one reason for the slowness. $ dd if=/dev/zero of=zeros bs=1MB count=50 $ cat testread.py open(zeros, rb).read() $ ./python -m cProfile testread.py 40 function calls (39 primitive calls) in 4.246 CPU seconds Ordered by: standard name ncalls tottime percall cumtime percall filename:lineno(function) 10.0160.0164.2464.246 string:1(module) 10.0000.0000.0000.000 io.py:277(__new__) 20.0000.0000.0000.000 io.py:355(flush) 20.0000.0000.0000.000 io.py:364(close) 20.0000.0000.0000.000 io.py:376(__del__) 10.0000.0000.0000.000 io.py:413(_checkReadable) 10.0000.0000.0000.000 io.py:614(__init__) 20.0000.0000.0000.000 io.py:618(close) 10.0000.0000.0000.000 io.py:708(__init__) 10.0000.0000.0000.000 io.py:733(flush) 10.0000.0000.0000.000 io.py:736(close) 10.0000.0000.0000.000 io.py:755(closed) 10.0000.0000.0000.000 io.py:82(open) 10.0000.0000.0000.000 io.py:896(__init__) 20.0000.0000.0000.000 io.py:905(_reset_read_buf) 10.0210.0214.2304.230 io.py:909(read) 10.0000.0004.2094.209 io.py:920(_read_unlocked) 10.0000.0000.0000.000 {built-in method allocate_lock} 2/10.0000.0004.2464.246 {built-in method exec} 10.0000.0000.0000.000 {built-in method fstat} 20.0000.0000.0000.000 {built-in method isinstance} 30.0000.0000.0000.000 {built-in method len} 10.0000.0000.0000.000 {method '__enter__' of '_thread.lock' objects} 10.0000.0000.0000.000 {method 'append' of 'list' objects} 10.0000.0000.0000.000 {method 'disable' of '_lsprof.Profiler' objects} 10.0000.0000.0000.000 {method 'fileno' of '_FileIO' objects} 10.0000.0000.0000.000 {method 'isatty' of '_FileIO' objects} 10.8250.8250.8250.825 {method 'join' of 'bytes' objects} 23.3841.6923.3841.692 {method 'read' of '_FileIO' objects} 10.0000.0000.0000.000 {method 'readable' of '_FileIO' objects} $ vi Modules/_fileio.c -#define DEFAULT_BUFFER_SIZE (8*1024) +#define DEFAULT_BUFFER_SIZE (80*1024) $ ./python -m cProfile testread.py 40 function calls (39 primitive calls) in 1.273 CPU seconds Ordered by: standard name ncalls tottime percall cumtime percall filename:lineno(function) 10.0190.0191.2731.273 string:1(module) 10.0000.0000.0000.000 io.py:277(__new__) 20.0000.0000.0000.000 io.py:355(flush) 20.0000.0000.0000.000 io.py:364(close) 20.0000.0000.0000.000 io.py:376(__del__) 10.0000.0000.0000.000 io.py:413(_checkReadable) 10.0000.0000.0000.000 io.py:614(__init__) 20.0000.0000.0000.000 io.py:618(close) 10.0000.0000.0000.000 io.py:708(__init__) 10.0000.0000.0000.000 io.py:733(flush) 10.0000.0000.0000.000 io.py:736(close) 10.0000.0000.0000.000 io.py:755(closed) 10.0000.0000.0000.000 io.py:82(open) 10.0000.0000.0000.000 io.py:896(__init__) 20.0000.0000.0000.000 io.py:905(_reset_read_buf) 10.0160.0161.2541.254 io.py:909(read) 10.0000.0001.2381.238 io.py:920(_read_unlocked) 10.0000.0000.0000.000 {built-in method allocate_lock} 2/10.0000.0001.2731.273 {built-in method exec} 10.0000.0000.0000.000 {built-in method fstat} 20.0000.0000.0000.000 {built-in method isinstance} 30.0000.0000.0000.000 {built-in method len} 10.0000.0000.0000.000 {method '__enter__' of '_thread.lock' objects} 10.0000.0000.0000.000 {method 'append' of 'list' objects} 10.0000.0000.0000.000 {method 'disable' of '_lsprof.Profiler' objects} 10.0000.0000.0000.000 {method 'fileno' of '_FileIO' objects} 10.0000.0000.0000.000
[issue4483] Error to build _dbm module during make
Changes by Tim Lesher [EMAIL PROTECTED]: -- nosy: +tlesher ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4483 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4483] Error to build _dbm module during make
Changes by Andrew Price [EMAIL PROTECTED]: -- nosy: +AndyP ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4483 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4534] problem with str.join - should work with list input, error says requires 'str' object
David W. Lambert [EMAIL PROTECTED] added the comment: Try this--- def List_to_String(lis,separator=''): return separator.join(lis) -- nosy: +LambertDW ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4534 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4533] 3.0 file.read dreadfully slow
Christian Heimes [EMAIL PROTECTED] added the comment: The fileio_buffer.patch implements the same progressive buffer as Python 2.x' Object/fileobject.c. -- keywords: +patch stage: test needed - patch review Added file: http://bugs.python.org/file12227/fileio_buffer.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4533 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4483] Error to build _dbm module during make
Andrew Price [EMAIL PROTECTED] added the comment: I'm running the same distro as Leger and I was having the same problem. Now I've applied dbm.diff and with a clean build I'm seeing this: building '_dbm' extension gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_GDBM_DASH_NDBM_H -I. -I/home/andy/src/python3/Python-3.0/./Include -I. -IInclude -I../Include -I/usr/local/include -I/home/andy/src/python3/Python-3.0/debug/Include -I/home/andy/src/python3/Python-3.0/debug -c /home/andy/src/python3/Python-3.0/Modules/_dbmmodule.c -o build/temp.linux-i686-3.0/home/andy/src/python3/Python-3.0/Modules/_dbmmodule.o gcc -pthread -shared build/temp.linux-i686-3.0/home/andy/src/python3/Python-3.0/Modules/_dbmmodule.o -L/usr/local/lib -lgdbm -o build/lib.linux-i686-3.0/_dbm.so *** WARNING: renaming _dbm since importing it failed: build/lib.linux-i686-3.0/_dbm.so: undefined symbol: dbm_firstkey ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4483 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4534] problem with str.join - should work with list input, error says requires 'str' object
jeff deifik [EMAIL PROTECTED] added the comment: Thanks. I want to learn what is wrong with the code I have though. My main goal is to understand python 3.0 better, rather than fixing a specific problem. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4534 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4534] problem with str.join - should work with list input, error says requires 'str' object
David W. Lambert [EMAIL PROTECTED] added the comment: I did this to find out what are str.join's arguments--- $ python3 -c 'help(str.join)' Help on method_descriptor: join(...) S.join(sequence) - str Return a string which is the concatenation of the strings in the sequence. The separator between elements is S. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4534 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4533] 3.0 file.read dreadfully slow
Gregory P. Smith [EMAIL PROTECTED] added the comment: patch looks good to me. nitpick comments: use += instead of = and + in: newsize = newsize + newsize and newsize = newsize + BIGCHUNK. As for the XXX about overflow, so long as BUFSIZ is not defined to be an insanely large number (it should never be) this will be fine. add a preprocessor test for that in. #if (BUFSIZ = 2**30) #error unreasonable BUFSIZ defined #endif -- nosy: +gregory.p.smith ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4533 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4539] askdirectory() in tkinter.filedialog is broken
New submission from Chad Spratt [EMAIL PROTECTED]: Calls to tkinter.filedialog.askdirectory() throw a KeyError if any of the options (title, text, bitmap, default, strings) are not provided. Previously saying askdirectory() with no arguments would open a file browser window. Since all other functions in filedialog still function with no arguments this seems like an error. (Actually askopenfiles() seems to be broken too, saying IOError: [Errno 2] No such file or directory: '{') -- components: Tkinter messages: 76941 nosy: dogtato severity: normal status: open title: askdirectory() in tkinter.filedialog is broken type: crash versions: Python 3.0 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4539 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4532] Fails to build on QNX 6.3.2
Martin v. Löwis [EMAIL PROTECTED] added the comment: Why is this a release blocker? QNX is not a supported platform, so failures on it cannot possibly block a release. -- nosy: +loewis ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4532 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4530] IDLE crashes with Japanese text on print command
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: This is already tracked by issue4008 -- nosy: +amaury.forgeotdarc resolution: - duplicate status: open - closed superseder: - IDLE: checksyntax() doesn't support Unicode? ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4530 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4533] 3.0 file.read dreadfully slow
Christian Heimes [EMAIL PROTECTED] added the comment: The preprocessor doesn't handle power. 2 24 (64MB) sounds sufficient for me. Added file: http://bugs.python.org/file12228/fileio_buffer2.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4533 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4540] typo in a module describes utf-8 as uft-8
New submission from John Weldon [EMAIL PROTECTED]: Traceback (most recent call last): File stdin, line 1, in module File c:\Python30\lib\site.py, line 427, in __call__ return pydoc.help(*args, **kwds) File c:\Python30\lib\pydoc.py, line 1675, in __call__ self.interact() File c:\Python30\lib\pydoc.py, line 1693, in interact self.help(request) File c:\Python30\lib\pydoc.py, line 1711, in help self.listmodules(request.split()[1]) File c:\Python30\lib\pydoc.py, line 1799, in listmodules apropos(key) File c:\Python30\lib\pydoc.py, line 1913, in apropos ModuleScanner().run(callback, key, onerror=onerror) File c:\Python30\lib\pydoc.py, line 1875, in run source = loader.get_source(modname) File c:\Python30\lib\pkgutil.py, line 293, in get_source self.source = self.file.read() File c:\Python30\lib\io.py, line 1720, in read decoder = self._decoder or self._get_decoder() File c:\Python30\lib\io.py, line 1506, in _get_decoder make_decoder = codecs.getincrementaldecoder(self._encoding) File c:\Python30\lib\codecs.py, line 960, in getincrementaldecoder decoder = lookup(encoding).incrementaldecoder LookupError: unknown encoding: uft-8 -- files: python3bug.png messages: 76945 nosy: john.weldon severity: normal status: open title: typo in a module describes utf-8 as uft-8 type: crash versions: Python 3.0 Added file: http://bugs.python.org/file12229/python3bug.png ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4540 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4537] webbrowser.UnixBrowser should use builtins.open
gumpy [EMAIL PROTECTED] added the comment: I'd suggest the same thing that was done on lines 351-352. Index: Lib/webbrowser.py === --- Lib/webbrowser.py (revision 67538) +++ Lib/webbrowser.py (working copy) @@ -223,7 +223,8 @@ cmdline = [self.name] + raise_opt + args if remote or self.background: -inout = open(os.devnull, r+) +import io +inout = io.open(os.devnull, r+) else: # for TTY browsers, we need stdin/out inout = None -- nosy: +gumpy ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4537 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4536] SystemError if invalid arguments passed to range() and step=-1
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: The analysis is good, but there are two problems with your patch: - it crashes in debug mode, because a Py_INCREF(step) is missing in validate_step() (A comment above says: Always returns a new reference) - it does not work with class Index: ... def __index__(self): ... return 42 ... list(range(0, 100, Index())) TypeError: unsupported operand type(s) for //: 'int' and 'Index' In short: PyNumber_Index is not an unnecessary call! But this does not invalidate the other parts of the patch. Would you try again? -- nosy: +amaury.forgeotdarc ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4536 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4483] Error to build _dbm module during make
Andrew Price [EMAIL PROTECTED] added the comment: In Debian Lenny libgbdm-dev provides two libs, libgdbm and libgdbm_compat: [EMAIL PROTECTED]:~$ objdump -t /usr/lib/libgdbm.a | grep dbm_firstkey *UND* gdbm_firstkey 0140 g F .text 0056 gdbm_firstkey [EMAIL PROTECTED]:~$ objdump -t /usr/lib/libgdbm_compat.a | grep dbm_firstkey *UND* gdbm_firstkey g F .text 0060 dbm_firstkey *UND* gdbm_firstkey So it looks like we need to link against -lgdbm_compat instead of -lgdbm for the _dbm module. I'm attaching dbm3.diff which seems to fix the problem (I did a test build with it). Added file: http://bugs.python.org/file12230/dbm3.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4483 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4483] Error to build _dbm module during make
Skip Montanaro [EMAIL PROTECTED] added the comment: Andrew I'm running the same distro as Leger and I was having the same Andrew problem. Now I've applied dbm.diff and with a clean build I'm Andrew seeing this: ... Andrew *** WARNING: renaming _dbm since importing it failed: Andrew build/lib.linux-i686-3.0/_dbm.so: undefined symbol: dbm_firstkey It looks like we might need to be linking with -lgdbm_compat as well as -lgdbm. Can you attach the output of these commands objdump -T /usr/lib/libgdbm.so.N objdump -T /usr/lib/libgdbm_compat.so.N to this issue (where N is the highest version available)? Thanks, ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4483 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4522] Module wsgiref is not python3000 ready (unicode issues)
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: The patch is incomplete: it breaks test_wsgiref. -- nosy: +amaury.forgeotdarc ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4522 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4483] Error to build _dbm module during make
Skip Montanaro [EMAIL PROTECTED] added the comment: Here's a new version of the patch for Python 3.0. It appends gdbm_compat to the gdbm libs if that's where dbm_firstkey is defined. Please back out the previous patch against setup.py and Modules/_dbmmodule.c and apply this one. Thanks... Added file: http://bugs.python.org/file12231/dbm.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4483 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4534] problem with str.join - should work with list input, error says requires 'str' object
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: str.join(lis, '') I doubt this really worked with 2.6. Wasn't it something like: import string string.join(lis, '') -- nosy: +amaury.forgeotdarc resolution: - invalid status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4534 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4541] Add str method for removing leading or trailing substrings
New submission from Zach Hirsch [EMAIL PROTECTED]: I've found that having a way to strip a leading substring from a string is convienent. I've also gotten bitten by the fact that str.strip takes a sequence of characters to remove from the beginning -- not a full string. I've attached a patch that implements lstrips, rstrips, and strips on str, unicode, and as methods in the string module. I'm not particularly attached to the names. Please consider this patch for inclusion in Python. Thanks! -- components: Library (Lib) files: lstrips-67529.patch keywords: patch messages: 76953 nosy: zhirsch severity: normal status: open title: Add str method for removing leading or trailing substrings type: feature request versions: Python 2.7 Added file: http://bugs.python.org/file12232/lstrips-67529.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4541 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4536] SystemError if invalid arguments passed to range() and step=-1
Laszlo [EMAIL PROTECTED] added the comment: Oops, sorry I didn't realize validate_step() is supposed to validate the input AND return the converted value. Thanks for the feedback. This new patch should work fine. It retains only the two final points of the previous patch; it doesn't clear the error, and it checks for other NULL values before calling validate_step(). Added file: http://bugs.python.org/file12233/range.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4536 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4536] SystemError if invalid arguments passed to range() and step=-1
Changes by Laszlo [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file12226/range.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4536 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4540] typo in a module describes utf-8 as uft-8
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: When enumerating all possible modules, the help system tries to import test.bad_coding.py :-( I tried to catch this LookupError, but then it fail on test.badsyntax_pep3120.py, with a SyntaxError Traceback (most recent call last): File stdin, line 1, in module File C:\Python30\lib\site.py, line 427, in __call__ return pydoc.help(*args, **kwds) File c:\python30\lib\pydoc.py, line 1675, in __call__ self.interact() File c:\python30\lib\pydoc.py, line 1693, in interact self.help(request) File c:\python30\lib\pydoc.py, line 1711, in help self.listmodules(request.split()[1]) File c:\python30\lib\pydoc.py, line 1799, in listmodules apropos(key) File c:\python30\lib\pydoc.py, line 1913, in apropos ModuleScanner().run(callback, key, onerror=onerror) File c:\python30\lib\pydoc.py, line 1872, in run loader = importer.find_module(modname) File C:\Python30\lib\pkgutil.py, line 186, in find_module file, filename, etc = imp.find_module(subname, path) SyntaxError: Non-UTF-8 code starting with '\xf6' in file (null) on line 1, but n o encoding declared; see http://python.org/dev/peps/pep-0263/ for details [Note: I don't like the (null) as a filename...] -- nosy: +amaury.forgeotdarc ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4540 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4483] Error to build _dbm module during make
Andrew Price [EMAIL PROTECTED] added the comment: Skip, the new patch makes it fail with (highlights): ... File /home/andy/src/python3/Python-3.0/Lib/distutils/ccompiler.py, line 844, in has_function import tempfile File /home/andy/src/python3/Python-3.0/Lib/tempfile.py, line 35, in module from random import Random as _Random File /home/andy/src/python3/Python-3.0/Lib/random.py, line 42, in module from math import log as _log, exp as _exp, pi as _pi, e as _e, ceil as _ceil ImportError: No module named math make: *** [sharedmods] Error 1 The has_function source in Lib/distutils/ccompiler.py has this comment: # this can't be included at module scope because it tries to # import math which might not be available at that point - maybe # the necessary logic should just be inlined? ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4483 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4483] Error to build _dbm module during make
Skip Montanaro [EMAIL PROTECTED] added the comment: Andrew ImportError: No module named math Andrew make: *** [sharedmods] Error 1 Andrew The has_function source in Lib/distutils/ccompiler.py has this Andrew comment: Andrew # this can't be included at module scope because it tries to Andrew # import math which might not be available at that point - maybe Andrew # the necessary logic should just be inlined? *sigh* I guess that would explain why it wasn't used anywhere in setup.py. Can you try this simplified version? (It's probably almost exactly what you came up with.) Thanks, Skip Added file: http://bugs.python.org/file12234/dbm.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4483 ___Index: setup.py === --- setup.py(revision 67489) +++ setup.py(working copy) @@ -783,11 +783,20 @@ exts.append( Extension('_dbm', ['_dbmmodule.c'], define_macros=[('HAVE_NDBM_H',None)], libraries = ndbm_libs ) ) -elif (self.compiler.find_library_file(lib_dirs, 'gdbm') - and find_file(gdbm/ndbm.h, inc_dirs, []) is not None): -exts.append( Extension('_dbm', ['_dbmmodule.c'], - define_macros=[('HAVE_GDBM_NDBM_H',None)], - libraries = ['gdbm'] ) ) +elif self.compiler.find_library_file(lib_dirs, 'gdbm'): +gdbm_libs = ['gdbm'] +if self.compiler.find_library_file(lib_dirs, 'gdbm_compat'): +gdbm_libs.append('gdbm_compat') +if find_file(gdbm/ndbm.h, inc_dirs, []) is not None: +exts.append( Extension( +'_dbm', ['_dbmmodule.c'], +define_macros=[('HAVE_GDBM_NDBM_H',None)], +libraries = gdbm_libs ) ) +elif find_file(gdbm-ndbm.h, inc_dirs, []) is not None: +exts.append( Extension( +'_dbm', ['_dbmmodule.c'], +define_macros=[('HAVE_GDBM_DASH_NDBM_H',None)], +libraries = gdbm_libs ) ) elif db_incs is not None: exts.append( Extension('_dbm', ['_dbmmodule.c'], library_dirs=dblib_dir, Index: Modules/_dbmmodule.c === --- Modules/_dbmmodule.c(revision 67489) +++ Modules/_dbmmodule.c(working copy) @@ -21,6 +21,9 @@ #elif defined(HAVE_GDBM_NDBM_H) #include gdbm/ndbm.h static char *which_dbm = GNU gdbm; +#elif defined(HAVE_GDBM_DASH_NDBM_H) +#include gdbm-ndbm.h +static char *which_dbm = GNU gdbm; #elif defined(HAVE_BERKDB_H) #include db.h static char *which_dbm = Berkeley DB; ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4541] Add str method for removing leading or trailing substrings
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: I cannot say if this new set of function is desirable in python, but I know that I already needed this feature sometimes. It's very easy to write in python code, though: def rstrips(s, suffix): if suffix and s.endswith(suffix): s = s[:-len(suffix)] return s About the patch: - there is a reference leak in string_strips: lstripped must be decref'd - this both-ends function seems less useful: prefixes are often different from suffixes. -- nosy: +amaury.forgeotdarc ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4541 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4536] SystemError if invalid arguments passed to range() and step=-1
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: The new patch is good for me. I added unit tests, someone should review. -- keywords: +needs review stage: - patch review Added file: http://bugs.python.org/file12235/test_range.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4536 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3890] ssl.SSLSocket.recv() implementation may not work with non-blocking sockets
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: there must be a better way of handling the recv() case This is a completely unrelated issue IMO; and FWIW, io.open() is not better in this aspect. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3890 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4542] test_binascii fails on windows
New submission from Amaury Forgeot d'Arc [EMAIL PROTECTED]: issue #4387 (67472) changed binascii and added tests, but the windows specific implementation was not changed. Change is trivial: Index: Modules/binascii.c === --- Modules/binascii.c (revision 67538) +++ Modules/binascii.c (working copy) @@ -1019,7 +1019,7 @@ Py_ssize_t len; unsigned int result; - if ( !PyArg_ParseTuple(args, s*|I:crc32, pbin, crc) ) + if ( !PyArg_ParseTuple(args, y*|I:crc32, pbin, crc) ) return NULL; bin_data = pbin.buf; len = pbin.len; -- components: Windows keywords: easy, patch messages: 76963 nosy: amaury.forgeotdarc severity: normal status: open title: test_binascii fails on windows versions: Python 3.0 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4542 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4542] test_binascii fails on windows
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Fixed in r67541 (py3k) and r67542 (release30-maint) -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4542 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4541] Add str method for removing leading or trailing substrings
Zach Hirsch [EMAIL PROTECTED] added the comment: Thanks for taking a look. Yea, it's pretty easy to write it in Python, but I've found that I've needed it in quite a few things that I've worked on, so I thought it might be useful in Python itself. I've updated the patch to fix the reference leak. I could imagine someone wanting to strip the same string from both sides, e.g. -- hello --.strips('--').strip() == hello. It might also be a good idea to include str.strips for parallelism with str.strip. Added file: http://bugs.python.org/file12236/lstrips-67529.2.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4541 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4522] Module wsgiref is not python3000 ready (unicode issues)
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- nosy: +pje ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4522 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4537] webbrowser.UnixBrowser should use builtins.open
Michael Schurter [EMAIL PROTECTED] added the comment: I believe you forgot to import io in UnixBrowser (line 226). ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4537 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4519] .pyc files included in 2.6 and 3.0 release tarballs
Barry A. Warsaw [EMAIL PROTECTED] added the comment: Actually, it turns out that the doc build process leaves a few more pyc turds now. I've updated release.py to remove them, though the script really should complain loudly if it ever finds pycs in the distribution. That's for next time. Fortunately, it's only 3 pycs so I see no reason why a new release needs to be cut. The Python 2.6.1 tarballs don't have them and neither will the 3.0.1 tarballs when they're released. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4519 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com