[issue6739] IDLE window won't start or show up after assgining new key in options v2.5.2 and 3.1.1

2009-08-22 Thread Guilherme Polo
Changes by Guilherme Polo : -- stage: needs patch -> type: performance -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6763] Crash on mac os x leopard in mimetypes.guess_type (or PyObject_Malloc)

2009-08-22 Thread Leonardo Santagada
Leonardo Santagada added the comment: Well, the mimetypes module from 2.6 maintenance branch make this problem not show up with mimetypes.guess_type, but I still think this is a bug because pure python code should not crash the interpreter right? I'm attaching the file I mentioned, I hope this

[issue6626] show Python mimetypes module some love

2009-08-22 Thread R. David Murray
R. David Murray added the comment: See also issue 6763. -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue6763] Crash on mac os x leopard in mimetypes.guess_type (or PyObject_Malloc)

2009-08-22 Thread R. David Murray
Changes by R. David Murray : -- nosy: +jrus ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue6763] Crash on mac os x leopard in mimetypes.guess_type (or PyObject_Malloc)

2009-08-22 Thread R. David Murray
R. David Murray added the comment: Seems like issue 6626 could be helpful here. -- nosy: +r.david.murray priority: -> high stage: -> test needed ___ Python tracker ___

[issue6763] Crash on mac os x leopard in mimetypes.guess_type (or PyObject_Malloc)

2009-08-22 Thread Joshua Bronson
Changes by Joshua Bronson : -- nosy: +jab ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue2560] removal of stale code from myreadline.c

2009-08-22 Thread Jessica McKellar
Jessica McKellar added the comment: Here's an updated patch against trunk that has 8 space tabs and doesn't remove some of the existing comments like the other patch did. I checked that the patch applies and that re-building doesn't error. -- nosy: +jesstess versions: +Python 3.2 Added

[issue6764] os.path.join should call os.path.normpath on result

2009-08-22 Thread Michael Foord
Michael Foord added the comment: Damn. :-) Detecting the case where the normpath'd location is the same means hitting the filesystem - and the current version just does string manipulation so it doesn't seem like an acceptable change. Still, compared to other languages the file handling in Pyt

[issue6759] zipfile.ZipExtFile.read() is missing universal newline support

2009-08-22 Thread Art Gillespie
Art Gillespie added the comment: Patch for both zipfile.py and test_zipfile.py attached. * The universal newline logic is now in read instead of readline. * UniversalNewlineTests.read_test changed to check for \n rather than unchanged eol. -- keywords: +patch nosy: +agillesp type: ->

[issue6764] os.path.join should call os.path.normpath on result

2009-08-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Is there any problem with join always calling normpath on it's result? Yes. If /usr/local/bin was a symlink to /net/x86, then /usr/local/bin/../lib might not be /usr/local/lib, but /net/lib. So calling normpath in the presence of symlinks might be incorrect.

[issue6762] strange string representation of xrange in print

2009-08-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with Eric. The eval(repr(obj)) should be made to work when possible. We do this with itertools.count() and other places where it makes sense. -- nosy: +rhettinger ___ Python tracker

[issue6764] os.path.join should call os.path.normpath on result

2009-08-22 Thread Michael Foord
New submission from Michael Foord : os.path.join has very basic behavior in the handling of '..' >>> import os >>> os.path.join('/foo', '..') '/foo/..' For some usecases (comparing paths for example) this is not useful and you have to manually call normpath on the results: >>> os.path.normpath

[issue6763] Crash on mac os x leopard in mimetypes.guess_type (or PyObject_Malloc)

2009-08-22 Thread Leonardo Santagada
New submission from Leonardo Santagada : Python 2.6.2 (and the maint branch if using old mimetypes.py) crash (with a bus error) on mac os x (10.5.7 & 10.5.8) with the file I posted. The problem appears to be in the allocation of memory by the GC. What I do is I call mimetypes.guess_type in more

[issue6075] Patch for IDLE/OS X to work with Tk-Cocoa

2009-08-22 Thread Kevin Walzer
Changes by Kevin Walzer : -- nosy: +ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue6762] strange string representation of xrange in print

2009-08-22 Thread Mintaka
Mintaka added the comment: Thanks for clarification. I compared it with iter([0,1,2,3,4]).__str__() which behaviour seems to me closer then list or tuple. -- ___ Python tracker _

[issue6498] Py_Main() does not return on SystemExit

2009-08-22 Thread Raphaela
Raphaela added the comment: bump =op -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue6498] Py_Main() does not return on SystemExit

2009-08-22 Thread Rogi
Rogi added the comment: bump -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/

[issue6762] strange string representation of xrange in print

2009-08-22 Thread Eric Smith
Eric Smith added the comment: For types where it's possible, the str or repr returns a string that can be passed to eval: >>> for i in eval(str(xrange(5))): ... print i ... 0 1 2 3 4 xrange (and list, and tuple, and others) fall into this category. -- nosy: +eric.smith resolution:

[issue6762] strange string representation of xrange in print

2009-08-22 Thread Mintaka
Changes by Mintaka : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue6762] strange string representation of xrange in print

2009-08-22 Thread Mintaka
New submission from Mintaka : String representation of xrange return keyword with value. foo = xrange(5) print foo >>> xrange(5) foo.__str__() >>> xrange(5) I think, that expected result should be somethink like this: >>> -- components: Interpreter Core messages: 91871 nosy: mintaka

[issue700921] Wide-character curses

2009-08-22 Thread Guilherme Polo
Changes by Guilherme Polo : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue700921] Wide-character curses

2009-08-22 Thread Guilherme Polo
Guilherme Polo added the comment: Closing this in favour of issue6755, it has been a long time since any discussion took place here that I believe it is better to continue somewhere else related to this. -- nosy: +gpolo ___ Python tracker

[issue700921] Wide-character curses

2009-08-22 Thread Iñigo Serna
Iñigo Serna added the comment: In issue6755 I provide a patch to support get_wch, which is the only wide chars related feature I miss in current bindings (as python v2.6.2 or v3.1.1). -- nosy: +inigoserna ___ Python tracker

[issue6755] Patch: new method get_wch for ncurses bindings: accept wide characters (unicode)

2009-08-22 Thread Iñigo Serna
Iñigo Serna added the comment: Thanks for the pointer, haven't seen anything when I searched for get_wch. The patch provided here only adds this get_wch function, because as A.M. Kuchling explained in issue700921, it's possible to use wide chars now, the only feature missing is get_wch. --

[issue6755] Patch: new method get_wch for ncurses bindings: accept wide characters (unicode)

2009-08-22 Thread Guilherme Polo
Guilherme Polo added the comment: Have you looked into issue700921 already ? It seems a lot of discussion was generated there, but no patches. -- ___ Python tracker ___ _

[issue6755] Patch: new method get_wch for ncurses bindings: accept wide characters (unicode)

2009-08-22 Thread Guilherme Polo
Changes by Guilherme Polo : -- nosy: +gpolo versions: -Python 2.6, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue6739] IDLE window won't start or show up after assgining new key in options v2.5.2 and 3.1.1

2009-08-22 Thread Guilherme Polo
Guilherme Polo added the comment: Please, understand that the bug tracker is a place to provide help and not to seek for help. The c.l.p newsgroup (more on http://www.python.org/community/lists/) is a more appropriate place to continue this discussion. Nevertheless, the attached patch was gener

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2009-08-22 Thread Hagen Fürstenau
Hagen Fürstenau added the comment: Shouldn't r73896 be backported to the 3.1 branch? I still get "Unable to find vcvarsall.bat" with Python 3.1.1. -- ___ Python tracker ___ _

[issue6761] Class calling

2009-08-22 Thread Stephen Fairchild
New submission from Stephen Fairchild : From: http://docs.python.org/reference/datamodel.html#the-standard-type-hierarchy "Class instances Class instances are described below. Class instances are callable only when the class has a __call__() method; x(arguments) is a shorthand for x.__call__

[issue6626] show Python mimetypes module some love

2009-08-22 Thread Joshua Bronson
Changes by Joshua Bronson : -- nosy: +jab ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue6739] IDLE window won't start or show up after assgining new key in options v2.5.2 and 3.1.1

2009-08-22 Thread CaribbeanCruise
CaribbeanCruise added the comment: Thanks for the help. I removed that external row and now it's up and running again :D May I please have an explanation on what causes that behavior and why that solution on that file worked? I'm just a n00b/beginner level on programming and I will someday t

[issue6758] implement new setuid-related calls and a standard way to drop all privileges

2009-08-22 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: I hope you'll also write some unit tests for privilege.py (actually, I hope you'll do test driven development on it). -- ___ Python tracker ___

[issue6688] Optimize PyBytes_FromObject.

2009-08-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Nice improvement! Beware that _PyObject_LengthHint may set an exception, though. -- nosy: +amaury.forgeotdarc ___ Python tracker ___ _

[issue5007] urllib2 HTTPS connection failure (BadStatusLine Exception)

2009-08-22 Thread Senthil
Changes by Senthil : -- assignee: -> orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2009-08-22 Thread Chris Rebert
Changes by Chris Rebert : -- type: -> feature request ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue5365] add conversion table to time module docs

2009-08-22 Thread Chris Rebert
Chris Rebert added the comment: Added string conversions to table for good measure. -- status: closed -> open Added file: http://bugs.python.org/file14771/table.rst ___ Python tracker __

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2009-08-22 Thread Chris Rebert
New submission from Chris Rebert : >From what I've seen on several c.l.p threads, some people have a tough time figuring the correct 'args' argument to subprocess.Popen's constructor. In an effort to cut down on such discussions in the future, I've written the attached docs patch to better explai

[issue6508] expose setresuid

2009-08-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Where would be the best place to put these non-POSIX calls? > > I looked at posixmodule.c and it's a mess; much conditional CPP logic > governing what gets compiled, not clear where I should add something > like this there - if I should at all, since these r

[issue5007] urllib2 HTTPS connection failure (BadStatusLine Exception)

2009-08-22 Thread Shashank
Shashank added the comment: Works fine for me in 2.6 but fails as said by OP on 2.5. (I came across this in the course of my work and am submitting a change in a bug for the first time, pardon me if something is inappropriate :) I used this modified codeblock: -- import cookielib impor

[issue6239] c_char_p return value returns string, not bytes

2009-08-22 Thread kai zhu
Changes by kai zhu : Added file: http://bugs.python.org/file14769/_asciiporn.h ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue6239] c_char_p return value returns string, not bytes

2009-08-22 Thread kai zhu
kai zhu added the comment: wrote an extension application which relies on the patch (works after applying patch to python 3.1.1). it converts png images to colorized ascii-art on ansi-compatible terminal. requires the patch b/c a ctype function returns a c-string w/ ansi-escape characters.

[issue6508] expose setresuid

2009-08-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Yes, just put it near the numerous set_XXXuid functions, protected with a HAVE_SETRESUID macro (you will have to modify configure.in as well) -- nosy: +amaury.forgeotdarc ___ Python tracker