[issue4427] Docs for 'y' Py_BuildValue tag are wrong

2008-12-04 Thread Georg Brandl
New submission from Georg Brandl <[EMAIL PROTECTED]>: Applied in r67555. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4543] container constructors destroy argument

2008-12-04 Thread Kevin J. Woolley
New submission from Kevin J. Woolley <[EMAIL PROTECTED]>: Doing the following (more info than necessary in case I'm doing something weird): def odd(n): return n % 2 x = (1, 2, 3, 4, 5) y = filter(odd, x) list(y) list(y) Will correctly build a list from y and return [1, 3, 5] on the first c

[issue4409] Dangling asterisks in Python 3.0 subprocess docs

2008-12-04 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Should be fixed in r67554. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue4408] re.compile(regexp).groups not documented

2008-12-04 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Fixed in r67553. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4401] os.extsep status? doc or os bug?

2008-12-04 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Re-added os.extsep to the os module in r67552. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> __

[issue4533] 3.0 file.read dreadfully slow

2008-12-04 Thread Gregory P. Smith
Gregory P. Smith <[EMAIL PROTECTED]> added the comment: fileio_buffer2.patch looks good other than minor touchups: Turn the XXX comment into: /* NOTE: overflow impossible due to limits on BUFSIZ * Also, 2 << 24 is 32MB yet your error message test says >= 64MB. I think you meant 1 << 26. fix

[issue4355] Error in docs of urllib.request and urllib.parse

2008-12-04 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Thanks, committed in r67551. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4519] .pyc files included in 2.6 and 3.0 release tarballs

2008-12-04 Thread Barry A. Warsaw
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. For

[issue4537] webbrowser.UnixBrowser should use builtins.open

2008-12-04 Thread Michael Schurter
Michael Schurter <[EMAIL PROTECTED]> added the comment: I believe you forgot to "import io" in UnixBrowser (line 226). ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue4522] Module wsgiref is not python3000 ready (unicode issues)

2008-12-04 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- nosy: +pje ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mailing

[issue4534] problem with str.join - should work with list input, error says requires 'str' object

2008-12-04 Thread jeff deifik
jeff deifik <[EMAIL PROTECTED]> added the comment: Yes, it was import string string.join(lis, '') I am still a bit confused though. Why doesn't my code of str.join(lis, '') work? I don't think str is a reserved word. I suppose that python might be able to deduce that str is of type string, ba

[issue4541] Add str method for removing leading or trailing substrings

2008-12-04 Thread Zach Hirsch
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 l

[issue4514] test_binascii is failing

2008-12-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: I fixed this in r67541 and r67542, with issue4542. (sorry I did not see this one) -- nosy: +amaury.forgeotdarc resolution: -> fixed status: open -> closed superseder: -> test_binascii fails on windows

[issue4542] test_binascii fails on windows

2008-12-04 Thread Amaury Forgeot d'Arc
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]> _

[issue4542] test_binascii fails on windows

2008-12-04 Thread Amaury Forgeot d'Arc
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 === --- Modul

[issue4483] Error to build _dbm module during make

2008-12-04 Thread Andrew Price
Andrew Price <[EMAIL PROTECTED]> added the comment: Skip, your simplified patch works for me. Makes it build fine with the following snippet: building '_dbm' extension gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_GDBM_DASH_NDBM_H -I. -I/home/an

[issue3890] ssl.SSLSocket.recv() implementation may not work with non-blocking sockets

2008-12-04 Thread Amaury Forgeot d'Arc
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]>

[issue4536] SystemError if invalid arguments passed to range() and step=-1

2008-12-04 Thread Amaury Forgeot d'Arc
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 ___ P

[issue4541] Add str method for removing leading or trailing substrings

2008-12-04 Thread Amaury Forgeot d'Arc
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):

[issue4483] Error to build _dbm module during make

2008-12-04 Thread Skip Montanaro
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

[issue4537] webbrowser.UnixBrowser should use builtins.open

2008-12-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Fixed in 67539 (py3k) and 67540 (release30-maint) Thanks for the report! -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]>

[issue4483] Error to build _dbm module during make

2008-12-04 Thread Andrew Price
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, i

[issue4537] webbrowser.UnixBrowser should use builtins.open

2008-12-04 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc <[EMAIL PROTECTED]>: -- assignee: -> amaury.forgeotdarc nosy: +amaury.forgeotdarc ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue4540] typo in a module describes utf-8 as uft-8

2008-12-04 Thread Amaury Forgeot d'Arc
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): Fi

[issue4536] SystemError if invalid arguments passed to range() and step=-1

2008-12-04 Thread Laszlo
Changes by Laszlo <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file12226/range.diff ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue4536] SystemError if invalid arguments passed to range() and step=-1

2008-12-04 Thread Laszlo
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

[issue4541] Add str method for removing leading or trailing substrings

2008-12-04 Thread Zach Hirsch
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 t

[issue4534] problem with str.join - should work with list input, error says requires 'str' object

2008-12-04 Thread Amaury Forgeot d'Arc
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 _

[issue4483] Error to build _dbm module during make

2008-12-04 Thread Skip Montanaro
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... A

[issue4522] Module wsgiref is not python3000 ready (unicode issues)

2008-12-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: The patch is incomplete: it breaks test_wsgiref. -- nosy: +amaury.forgeotdarc ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4483] Error to build _dbm module during make

2008-12-04 Thread Skip Montanaro
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 fa

[issue4483] Error to build _dbm module during make

2008-12-04 Thread Andrew Price
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 [EM

[issue4536] SystemError if invalid arguments passed to range() and step=-1

2008-12-04 Thread Amaury Forgeot d'Arc
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 >>

[issue4537] webbrowser.UnixBrowser should use builtins.open

2008-12-04 Thread gumpy
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 @@

[issue4540] typo in a module describes utf-8 as uft-8

2008-12-04 Thread John Weldon
New submission from John Weldon <[EMAIL PROTECTED]>: Traceback (most recent call last): File "", line 1, in 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:\Pyth

[issue4533] 3.0 file.read dreadfully slow

2008-12-04 Thread Christian Heimes
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]>

[issue4530] IDLE crashes with Japanese text on print command

2008-12-04 Thread Amaury Forgeot d'Arc
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 trac

[issue4532] Fails to build on QNX 6.3.2

2008-12-04 Thread Martin v. Löwis
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]>

[issue4539] askdirectory() in tkinter.filedialog is broken

2008-12-04 Thread Chad Spratt
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 othe

[issue4533] 3.0 file.read dreadfully slow

2008-12-04 Thread Gregory P. Smith
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 shou

[issue4534] problem with str.join - should work with list input, error says requires 'str' object

2008-12-04 Thread David W. Lambert
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.

[issue4534] problem with str.join - should work with list input, error says requires 'str' object

2008-12-04 Thread jeff deifik
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]>

[issue4483] Error to build _dbm module during make

2008-12-04 Thread Andrew Price
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-p

[issue4533] 3.0 file.read dreadfully slow

2008-12-04 Thread Christian Heimes
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

[issue4534] problem with str.join - should work with list input, error says requires 'str' object

2008-12-04 Thread David W. Lambert
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]> ___

[issue4483] Error to build _dbm module during make

2008-12-04 Thread Andrew Price
Changes by Andrew Price <[EMAIL PROTECTED]>: -- nosy: +AndyP ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mailing lis

[issue4483] Error to build _dbm module during make

2008-12-04 Thread Tim Lesher
Changes by Tim Lesher <[EMAIL PROTECTED]>: -- nosy: +tlesher ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mailing lis

[issue4533] 3.0 file.read dreadfully slow

2008-12-04 Thread Christian Heimes
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 c

[issue4506] 3.0 make test failures on Solaris 10

2008-12-04 Thread Skip Montanaro
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

[issue4538] ctypes could include data type limits

2008-12-04 Thread Roy Smith
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 mes

[issue4537] webbrowser.UnixBrowser should use builtins.open

2008-12-04 Thread Michael Schurter
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 "", line 1, in File "/

[issue4273] cycle created by profile.run

2008-12-04 Thread Amaury Forgeot d'Arc
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]>

[issue4506] 3.0 make test failures on Solaris 10

2008-12-04 Thread Mark Dickinson
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

[issue4536] SystemError if invalid arguments passed to range() and step=-1

2008-12-04 Thread Laszlo
New submission from Laszlo <[EMAIL PROTECTED]>: >>> range(1.0, 0, 1) Traceback (most recent call last): File "", line 1, in TypeError: 'float' object cannot be interpreted as an integer >>> range(1.0, 0, -1) Traceback (most recent call last): File "", line 1, in SystemError: NULL result wi

[issue4006] os.getenv silently discards env variables with non-UTF-8 values

2008-12-04 Thread Adam Olsen
Changes by Adam Olsen <[EMAIL PROTECTED]>: -- nosy: +Rhamphoryncus ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list maili

[issue4524] Build fails at running build_scripts

2008-12-04 Thread Chris Hills
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 trac

[issue2486] Decimal slowdown in 3.0 due to str/unicode changes

2008-12-04 Thread Mark Dickinson
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]> ___ ___

[issue4535] Build / Test Py3K failed on Ubuntu 8.10

2008-12-04 Thread Rob Wiers
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

[issue4534] problem with str.join - should work with list input, error says requires 'str' object

2008-12-04 Thread jeff deifik
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]> ___

[issue4535] Build / Test Py3K failed on Ubuntu 8.10

2008-12-04 Thread Rob Wiers
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 ___

[issue4534] problem with str.join

2008-12-04 Thread jeff deifik
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

[issue4532] Fails to build on QNX 6.3.2

2008-12-04 Thread Christian Heimes
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]> ___

[issue4522] Module wsgiref is not python3000 ready (unicode issues)

2008-12-04 Thread Christian Heimes
Changes by Christian Heimes <[EMAIL PROTECTED]>: -- priority: -> critical stage: -> patch review type: -> resource usage ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue4519] .pyc files included in 2.6 and 3.0 release tarballs

2008-12-04 Thread Christian Heimes
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]>

[issue1055234] cgi.py does not correctly handle fields with ';'

2008-12-04 Thread Fred L. Drake, Jr.
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 _

[issue4533] 3.0 file.read dreadfully slow

2008-12-04 Thread Christian Heimes
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

[issue1163367] correct/clarify documentation for super

2008-12-04 Thread Raymond Hettinger
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 documentati

[issue4273] cycle created by profile.run

2008-12-04 Thread darrenr
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 close

[issue4531] Deprecation warnings in lib\compiler\ast.py

2008-12-04 Thread Edward K Ream
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. Than

[issue4531] Deprecation warnings in lib\compiler\ast.py

2008-12-04 Thread Brett Cannon
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 <[EMA

[issue4533] 3.0 file.read dreadfully slow

2008-12-04 Thread Terry J. Reedy
New submission from Terry J. Reedy <[EMAIL PROTECTED]>: C.l.p poster reported that 3.0 file.read is orders of magnitude slower than with 2.5 (but confused issue with buffer = 0). Jerry Hill reported "Here's a quick comparison between 2.5 and 3.0 on a relatively small 17 meg file: C:\>c:\Python

[issue4513] Finish updating zip docstring

2008-12-04 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Fixed in r67529. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4515] Formatting error in "What's New in Python 3.0"

2008-12-04 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: This appears to be fixed in SVN. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4532] Fails to build on QNX 6.3.2

2008-12-04 Thread Matt Kraai
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 Pytho

[issue4516] Another formatting error in "What's New in Python 3.0"

2008-12-04 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: This appears to be fixed in SVN. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4518] broken link to python 3 doc on main doc page

2008-12-04 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Fixed now, thanks. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue4520] Online 3.0 documentation says it's for 3.1a0

2008-12-04 Thread Georg Brandl
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

[issue4521] "What's New in Python 3.0" mentions "getcwdu" instead of "getcwdb"

2008-12-04 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Thanks, applied as r67527. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue3890] ssl.SSLSocket.recv() implementation may not work with non-blocking sockets

2008-12-04 Thread Bill Janssen
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)

[issue4526] Clarify documentation for binary literals

2008-12-04 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Fixed in r67526. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4527] Obsolete 'string or unicode' in fractions doc

2008-12-04 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Fixed in r67525. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4531] Deprecation warnings in lib\compiler\ast.py

2008-12-04 Thread Edward K Ream
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\co

[issue4530] IDLE crashes with Japanese text on print command

2008-12-04 Thread Paul Goins
New submission from Paul Goins <[EMAIL PROTECTED]>: Just got Python 3.0 final on Windows and was testing out IDLE, and it's having some issues. Specifically: * Options -> Configure IDLE..., General Tab: Change Default Source Encoding from None to UTF-8 * Create a new python file and enter a pr

[issue4525] metaclass fixer fails with AttributeError, causing 2to3 to exit with a traceback

2008-12-04 Thread Benjamin Peterson
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.p

[issue818059] os.listdir on empty strings. Inconsistent behaviour.

2008-12-04 Thread Amaury Forgeot d'Arc
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. I

[issue4342] (Tkinter) Please backport these

2008-12-04 Thread Guilherme Polo
Changes by Guilherme Polo <[EMAIL PROTECTED]>: -- priority: -> release blocker ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bu

[issue4529] parser module failure on valid try/except/finally blocks

2008-12-04 Thread Kai Willadsen
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 childr

[issue4528] test_httpservers consistently fails on OS X

2008-12-04 Thread Martin Diers
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_http

[issue4527] Obsolete 'string or unicode' in fractions doc

2008-12-04 Thread Terry J. Reedy
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

[issue4526] Clarify documentation for binary literals

2008-12-04 Thread Bobby Xiao
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 bui

[issue4368] A bug in ncurses.h still exists in FreeBSD 4.9 - 4.11

2008-12-04 Thread Akira Kitada
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]>

[issue783789] SIGSEGV in _sre.c (IRIX 6.5.20)

2008-12-04 Thread Amaury Forgeot d'Arc
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 tr

[issue4506] 3.0 make test failures on Solaris 10

2008-12-04 Thread Skip Montanaro
Changes by Skip Montanaro <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file12220/cmathmodule.S.printf ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4506] 3.0 make test failures on Solaris 10

2008-12-04 Thread Skip Montanaro
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

[issue4525] metaclass fixer fails with AttributeError, causing 2to3 to exit with a traceback

2008-12-04 Thread Jean-Paul Calderone
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/

[issue672132] registry functions don't handle null characters

2008-12-04 Thread Amaury Forgeot d'Arc
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

[issue4524] Build fails at running build_scripts

2008-12-04 Thread Amaury Forgeot d'Arc
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 versi

[issue4506] 3.0 make test failures on Solaris 10

2008-12-04 Thread Skip Montanaro
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

[issue4524] Build fails at running build_scripts

2008-12-04 Thread Chris Hills
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

[issue873150] pickletools support for multiple pickles in a string

2008-12-04 Thread Fred L. Drake, Jr.
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

  1   2   >