[issue5640] Wrong print() result when unicode error handler is not 'strict'

2009-04-02 Thread Hyeshik Chang
Hyeshik Chang added the comment: Uploaded a revised patch that solved the newer problem. -- Added file: http://bugs.python.org/file13573/cjkcodecs-fix-statefulenc-2.diff ___ Python tracker _

[issue5640] Wrong print() result when unicode error handler is not 'strict'

2009-04-02 Thread Hyeshik Chang
Changes by Hyeshik Chang : Removed file: http://bugs.python.org/file13572/cjkcodecs-fix-statefulenc.diff ___ Python tracker ___ ___ Python-bugs

[issue5565] Strange behavior when I logout() with IMAP4_SSL

2009-04-02 Thread Philipp Tölke
Philipp Tölke added the comment: Just FYI, this issue is in python2.6, too. Only, that in 2.6 the GC does not collect the objects immediately, so that very soon I have a galore of connections in the CLOSE_WAIT-State. And I checked, I can not read anymore data out of the socket. Is this a bug

[issue5527] multiprocessing won't work with Tkinter (under Linux)

2009-04-02 Thread Jani Hakala
Jani Hakala added the comment: The script tk_test.py produces the window with one button after one removes the line 'from Tkinter import *' and adds line 'from Tkinter import Tk, Button' inside Panel.draw() as a first line. So importing Tkinter after the fork seems to solve the problem. Importi

[issue5659] logging.FileHandler encoding parameter does not work as expected

2009-04-02 Thread Vinay Sajip
Vinay Sajip added the comment: This was a regression in 2.6, previously reported in issue #5170, and was fixed in trunk in r69447 and in the release26-maint branch in r69448. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue1634770] Please provide rsync-method in the urllib[2] module

2009-04-02 Thread Senthil
Senthil added the comment: Rsync is a tool, which can be written using urllib2. urllib2 is a library adhering to certain SPECs (Internet RFCs). Do not see a reason to include tools in urllib2. Closing it as wont-fix. Thanks. -- resolution: -> wont fix status: open -> closed _

[issue4573] zsh-style subpattern matching for fnmatch/glob

2009-04-02 Thread Tim Golden
Tim Golden added the comment: Is there mileage for glob.glob to grow a dialect param, with a default value to keep it backwards compatible? Otherwise, presumably, proponents of some other xsh variant will come forward with their scheme of matching, and regex-followers with theirs and so on. ---

[issue5499] only accept byte for getarg('c') and unicode for getarg('C')

2009-04-02 Thread STINNER Victor
STINNER Victor added the comment: Ooops, I read converterr("a unicode character", ...), but it should be converterr("an unicode character", ...) ;-) Thanks benjamin.peterson, it will help other issues like #5391 and #5410. -- ___ Python tracker <

[issue5410] msvcrt bytes cleanup

2009-04-02 Thread STINNER Victor
STINNER Victor added the comment: issue5499 is fixed, so msvcrt_wchar.patch can now be used :-) Anyone available for a review and/or _a test_? I don't have Windows, so it's hard for me to test my patch. -- ___ Python tracker

[issue5391] mmap: read_byte/write_byte and object type

2009-04-02 Thread STINNER Victor
STINNER Victor added the comment: @ocean-city: Can you update your patch to leave Py_BuildValue("c", ...) and PyArg_ParseTuple(args, "c:write_byte", ...) unchanged, since #5499 is fixed? -- ___ Python tracker __

[issue5666] Py_BuildValue("c") should return bytes?

2009-04-02 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : This is related to #5499. PyArg_ParseTuple treats "c" as bytes of 1 length now, but Py_BuildValue still treats "c" as unicode of 1 length. -- components: Interpreter Core files: py3k_build_value.patch keywords: patch messages: 85184 nosy: ocean-cit

[issue5391] mmap: read_byte/write_byte and object type

2009-04-02 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Yes, here is the patch. But I noticed Py_BuildValue('c') still returns unicode. To pass the test, #5666 is needed. -- dependencies: +Py_BuildValue("c") should return bytes? Added file: http://bugs.python.org/file13575/py3k_mmap_bytes_cleanup_with_ge

[issue5391] mmap: read_byte/write_byte and object type

2009-04-02 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : Removed file: http://bugs.python.org/file13575/py3k_mmap_bytes_cleanup_with_getarg_c.patch ___ Python tracker ___ _

[issue5391] mmap: read_byte/write_byte and object type

2009-04-02 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : Added file: http://bugs.python.org/file13576/py3k_mmap_bytes_cleanup_with_getarg_c.patch ___ Python tracker ___ ___

[issue5640] Wrong print() result when unicode error handler is not 'strict'

2009-04-02 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: I tested with py3k branch and worked fine. Thank you. -- versions: +Python 2.6, Python 2.7 ___ Python tracker ___ __

[issue5667] Interpreter fails to initialize when IO encoding is one of CJK on build dir

2009-04-02 Thread Hyeshik Chang
New submission from Hyeshik Chang : When a developer uses one of CJK encodings, interpreter crashes while its initialization on build dir (not on installed base). % LC_ALL=ko_KR.eucKR ./python Fatal Python error: Py_Initialize: can't initialize sys standard streams LookupError: unknown encoding:

[issue5667] Interpreter fails to initialize on build dir when IO encoding is one of CJK

2009-04-02 Thread Hyeshik Chang
Changes by Hyeshik Chang : -- title: Interpreter fails to initialize when IO encoding is one of CJK on build dir -> Interpreter fails to initialize on build dir when IO encoding is one of CJK ___ Python tracker __

[issue5666] Py_BuildValue("c") should return bytes?

2009-04-02 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue5641] Local variables not freed when Exception raises in function called from cycle

2009-04-02 Thread Glin
Glin added the comment: I'm not talking about exception variable, but about the variables in local scope of function job() (in my example it is the variable 'a' of class A). Sorry, if I did not make myself clear. -- status: closed -> open ___ Python

[issue1590864] import deadlocks when using PyObjC threads

2009-04-02 Thread Ronald Oussoren
Ronald Oussoren added the comment: I don't understand why the function-level imports cannot be removed. Wouldn't it be possible to do something like this: from errno import ENOENT as _ENOENT, ENOTDIR as _ENOTDIR def _execvpe(file, args, env=None): pass # Use _ENOENT and _ENOTDIR in this cod

[issue5657] bad repr of itertools.count object with negative value on OS X 10.4 with 10.5 build

2009-04-02 Thread Ronald Oussoren
Ronald Oussoren added the comment: Raymond: My guess is that this is caused because the binary was build on OSX 10.5, where 'printf("%zd")' works file for negative numbers, and the tests was run on OSX 10.4, where the same printf statement doesn't work correctly. I'll experiment with a fix f

[issue5668] file "" on disk creates garbage output in stack trace

2009-04-02 Thread Zbyszek Szmek
New submission from Zbyszek Szmek : When running interactively, python checks for existence of file "" when trying to display a stack trace with code input from stdin. # cat >> "" asdf asdf asdf # python Python 2.5.2 (r252:60911, Jun 25 2008, 17:58:32) [GCC 4.3.1] on linux2 Type "help", "copyr

[issue5269] OS X Installer: add options to specify universal build type and deployment target

2009-04-02 Thread Ronald Oussoren
Ronald Oussoren added the comment: Raymond: I had intended to assign the issue to myself but I obviously need more training with dropdown menu's (your name is just above mine in the assigned-to menu). -- assignee: -> ronaldoussoren nosy: -rhettinger status: pending -> open

[issue4015] [patch] make installed scripts executable on windows

2009-04-02 Thread anatoly techtonik
Changes by anatoly techtonik : Added file: http://bugs.python.org/file13577/executable.scripts.on.nt.patch ___ Python tracker ___ ___ Python-bu

[issue4015] [patch] make installed scripts executable on windows

2009-04-02 Thread anatoly techtonik
anatoly techtonik added the comment: I've updated the script to parse unlimited number of parameters on NT, to return %errorcode% and to fallback to default Python compiler. It is based on similar workarounds we've made for SCons in http://scons.tigris.org/source/browse/scons/branches/core/src/

[issue5666] Py_BuildValue("c") should return bytes?

2009-04-02 Thread STINNER Victor
STINNER Victor added the comment: Let's try grep on py3k: grep 'Py_BuildValue("[^"]*c' $(find -name "*.c") Py_BuildValue("c") is used for: - mmap.read_byte() result - .getkey() result: this method returns also unicode string => your patch breaks getkey()! - array.__reduce__(): i don't unde

[issue5666] Py_BuildValue("c") should return bytes?

2009-04-02 Thread STINNER Victor
STINNER Victor added the comment: > "C" format, but... it doesn't exist for Py_BuildValue Ooops, it does exist but it looks that nobody uses it. It's also not documented :-( I wrote a new patch: - document "C" format for Py_BuildValue (fix also a typo) - use "C" format in array and _curses

[issue5391] mmap: read_byte/write_byte and object type

2009-04-02 Thread STINNER Victor
STINNER Victor added the comment: So .read_byte() gives a byte string of 1 byte, ok. Port from Python2 will be easier. The patch looks correct, thanks for updating it. We know have to wait for #5666 :-) -- ___ Python tracker

[issue5391] mmap: read_byte/write_byte and object type

2009-04-02 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Yes, you can do m.write_byte(b"a") but on the other hand you cannot do a = b"abc" m.write_byte(a[1]) instead you should do a = b"abc" m.write_byte(a[1:2]) This is trade off, though. I'll update "with getarg('b') version" to compare. -- Add

[issue5391] mmap: read_byte/write_byte and object type

2009-04-02 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : Removed file: http://bugs.python.org/file13215/py3k_mmap_and_bytes.patch ___ Python tracker ___ ___ Python-bugs-

[issue2578] additional unittest type equality methods

2009-04-02 Thread Nick Coghlan
Nick Coghlan added the comment: Bikeshedding a bit - the 'assertGreaterEqual' and 'assertLessEqual' method names grate on me a little. My brain has to do a double take in order to correctly insert the implied 'Or'. This reaction is made worse when these two methods are juxtaposed with all the ot

[issue1741130] struct.pack("I", "foo"); struct.pack("L", "foo") should fail

2009-04-02 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: -> marketdickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5619] Pass MS CRT debug flags into subprocesses

2009-04-02 Thread Martin v. Löwis
Martin v. Löwis added the comment: > Since you object to a command line parameter, how about an environment > variable? PYTHONUNATTENDED could be used in the library startup to turn > off any conceivable dialogue boxes and would be passed on to child > processes. This could then also easily

[issue5641] Local variables not freed when Exception raises in function called from cycle

2009-04-02 Thread Georg Brandl
Georg Brandl added the comment: I know, but that object is kept alive by the frame object that is kept alive by the exception assigned to "e". -- status: open -> closed ___ Python tracker __

[issue2625] mailbox.MH.get_message() treats result of get_sequences() as list of tuples

2009-04-02 Thread R. David Murray
R. David Murray added the comment: Fixed in 71046. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue5658] make html in doc fails because Makefile assigns python to PYTHON

2009-04-02 Thread Mitchell Model
Mitchell Model added the comment: It strikes me as an inconsistency because I wouldn't expect the build process to differ from Python 3.0 to 3.1 except for fixing bugs. A developer, or someone trying to keep up with the most recent versions, who had been successfiully making the html doc in

[issue5634] cPickle error in case of recursion limit

2009-04-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Georg, I think that your recent change in r71024 implements the same idea directly in PyErr_ExceptionMatches. Can you confirm this and close the issue? -- assignee: -> georg.brandl nosy: +amaury.forgeotdarc, georg.brandl

[issue1641] asyncore delayed calls feature

2009-04-02 Thread Jim Fulton
Jim Fulton added the comment: > Looking back, I think Zope and Medusa should have adopted and evolved > their own copy of asynchat a long time ago... This statement is puzzling. No big deal, but I'm curious why you say this. -- nosy: +j1m ___ Pytho

[issue1641] asyncore delayed calls feature

2009-04-02 Thread Jim Fulton
Jim Fulton added the comment: For the record, afaict, Zope wasn't broken by this. Supervisor isn't part of Zope. -- ___ Python tracker ___ ___

[issue5658] make html in doc fails because Makefile assigns python to PYTHON

2009-04-02 Thread Georg Brandl
Georg Brandl added the comment: Even Python 3.0 didn't install its built executable as "python". We just made that decision, which was done for Python 3.0 because it couldn't be considered stable, permanent. -- ___ Python tracker

[issue5215] change value of local variable in debug

2009-04-02 Thread Georg Brandl
Georg Brandl added the comment: Committed in r71006. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue3722] print followed by exception eats print with doctest

2009-04-02 Thread Georg Brandl
Changes by Georg Brandl : -- priority: -> low type: behavior -> feature request ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue3722] print followed by exception eats print with doctest

2009-04-02 Thread Chris Withers
Chris Withers added the comment: Hey Georg, I agree with the priority, but I'm still not convinced this is just a feature request. The piece of documentation that Tim is referring to is a tiny footnote in the doctest docs, and, as I said previously, I'm not sure documenting a bug makes it an

[issue1590864] import deadlocks when using PyObjC threads

2009-04-02 Thread Brett Cannon
Brett Cannon added the comment: First, because os is such a common module that hiding some uncommon imports at the module level helps with startup costs. Second, this is not a bug as the code is not behaving in an improper manner. The import lock is doing what it is supposed to be doing and imp

[issue5646] test_importlib fails for py3k on Windows

2009-04-02 Thread Brett Cannon
Brett Cannon added the comment: Can you svn up and run them again? Some stuff has changed if you are running against 3.1a1. -- assignee: -> brett.cannon components: +Library (Lib) -Tests, Windows nosy: +brett.cannon priority: -> critical type: -> behavior ___

[issue5646] test_importlib fails for py3k on Windows

2009-04-02 Thread Brett Cannon
Brett Cannon added the comment: Thanks, Kristján, for the quick response. I will see if I can figure why the heck this is differing on Vista (almost all the code is platform-agnostic Python so this will be an "interesting" thing to try to fix). -- stage: -> test needed ___

[issue1641] asyncore delayed calls feature

2009-04-02 Thread Tres Seaver
Tres Seaver added the comment: Sidnei da Silva had to put some "straddling" code in the Zope2 trunk to workaround the 2.6 changes to asyncore / asynchat: - http://svn.zope.org/Zope/?rev=91981&view=rev - http://svn.zope.org/Zope/?rev=92023&view=rev -- nosy: +tseaver __

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2009-04-02 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: The issue of the cursor moving to the left of >>> in the shell is separate. See also #3851. The current action of the home key, released in 2.6, is from patch 1196903. @tjreedy, if in 2.6 you type >>> syzygy and hit home, the cursor moves to the left of t

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2009-04-02 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: Why doesn't someone fix this comment widget?? It was like this on SF, too. Guess I've got to dive in at some point...second guessing the wrapping drives me nuts! -- ___ Python tracker

[issue5604] imp.find_module() mixes UTF8 and MBCS

2009-04-02 Thread Andrew Svetlov
Andrew Svetlov added the comment: Martin, can you review latest patch and apply it if this one is correct. I want to start working on conversion import.c to use unicode strings (we spoke about Tuesday) this weekend. It will be nice if I will have synchronized svn before making new changes. -

[issue2578] additional unittest type equality methods

2009-04-02 Thread Guido van Rossum
Guido van Rossum added the comment: > Nick Coghlan added the comment: > Bikeshedding a bit - the 'assertGreaterEqual' and 'assertLessEqual' > method names grate on me a little. My brain has to do a double take in > order to correctly insert the implied 'Or'. This reaction is made worse > when t

[issue5669] Extra heap nlargest/nsmallest option for including ties

2009-04-02 Thread George Sakkis
New submission from George Sakkis : It would be useful in many cases if heapq.nlargest and heapq.nsmallest grew an optional boolean parameter, say `ties` (defaulting to False) that when True, it would return more than `n` items if there are ties. To illustrate: >>> s = [4,3,5,7,4,7,4,3] >>> for

[issue5669] Extra heap nlargest/nsmallest option for including ties

2009-04-02 Thread George Sakkis
George Sakkis added the comment: The second call should of course be: >>> for i in xrange(1,len(s)+1): print i,heapq.nsmallest(i,s,ties=True) -- ___ Python tracker ___ _

[issue5669] Extra heapq nlargest/nsmallest option for including ties

2009-04-02 Thread George Sakkis
Changes by George Sakkis : -- title: Extra heap nlargest/nsmallest option for including ties -> Extra heapq nlargest/nsmallest option for including ties ___ Python tracker ___ __

[issue5669] Extra heapq nlargest/nsmallest option for including ties

2009-04-02 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue5669] Extra heapq nlargest/nsmallest option for including ties

2009-04-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: I haven't seen this come up before. Am curious about your use cases. -- ___ Python tracker ___ _

[issue3166] Make conversions from long to float correctly rounded.

2009-04-02 Thread Mark Dickinson
Mark Dickinson added the comment: Updated patch; applies cleanly to current trunk. No significant changes. Note that there's now a new reason to apply this patch: it ensures that the result of a long->float conversion is independent of whether we're using 30-bit digits or 15-bit digits for

[issue1641] asyncore delayed calls feature

2009-04-02 Thread Guido van Rossum
Guido van Rossum added the comment: [Guido] >> Looking back, I think Zope and Medusa should have adopted and evolved >> their own copy of asynchat a long time ago... [Jim] > This statement is puzzling.  No big deal, but I'm curious why you say > this. ISTR that Zope has or had significant monk

[issue5658] make html in doc fails because Makefile assigns python to PYTHON

2009-04-02 Thread Mitchell Model
Mitchell Model added the comment: OK -- -- --- Mitchell -- Added file: http://bugs.python.org/file13583/unnamed ___ Python tracker ___