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

2009-08-14 Thread Gabriel Genellina
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar: -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4015 ___ ___

[issue2576] httplib read() very slow due to lack of socket buffer

2009-08-14 Thread Gabriel Genellina
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar: -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2576 ___ ___

[issue6682] Default traceback does not handle PEP302 loaded modules

2009-08-14 Thread Gabriel Genellina
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar: -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6682 ___ ___

[issue6689] subprocess doesn't pass arguments correctly on Linux when shell=True

2009-08-14 Thread David Fraser
David Fraser dav...@sjsoft.com added the comment: Ah, upon closer inspection - the special parameters $0 $1 $2 etc mentioned in the sh docs refer to parameters within the command string, so that: sh -c 'echo $2 $0 $1' run for the people produces: the people run for So the correct patch

[issue6689] subprocess doesn't pass arguments correctly on Linux when shell=True

2009-08-14 Thread David Fraser
Changes by David Fraser dav...@sjsoft.com: Removed file: http://bugs.python.org/file14697/current-2.6.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6689 ___

[issue6689] subprocess doesn't pass arguments correctly on Linux when shell=True

2009-08-14 Thread David Fraser
Changes by David Fraser dav...@sjsoft.com: Removed file: http://bugs.python.org/file14698/current-3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6689 ___

[issue6556] HOME is not a standard environment variable on Windows

2009-08-14 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: %HOME% isn't set by Windows. %HOMEDRIVE%%HOMEPATH% points to the user's home directory. %USERPROFILE% is where the user's profile is stored, and may or may not be the same as his home directory. %HOMEDRIVE%%HOMEPATH% should be used

[issue6666] List of dirs to ignore in trace.py is applied only for the first file

2009-08-14 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: That's exactly the change 2to3 would suggest for that line. The guy doing the conversion must have missed it. -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org

[issue6693] New functions in site.py to get user/global site packages paths

2009-08-14 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Done. I've put Christian in the loop since he implemented the PEP 370 feature, to make sure these changes are fine with him. -- nosy: +christian.heimes Added file: http://bugs.python.org/file14719/site.patch

[issue6693] New functions in site.py to get user/global site packages paths

2009-08-14 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: Removed file: http://bugs.python.org/file14707/site.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6693 ___

[issue6701] Make custom xmlrpc extension easier

2009-08-14 Thread Bogdan Opanchuk
New submission from Bogdan Opanchuk b...@bk.ru: I am sorry if the same issue was already considered and rejected for some reason; quick search did not show any traces of it. What I am going to write here is just a proof of concept, but if the idea of the patch is acceptable, I am eager to

[issue6701] Make custom xmlrpc extension easier

2009-08-14 Thread Bogdan Opanchuk
Changes by Bogdan Opanchuk b...@bk.ru: -- keywords: +patch Added file: http://bugs.python.org/file14720/patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6701 ___

[issue6701] Make custom xmlrpc extension easier

2009-08-14 Thread Bogdan Opanchuk
Changes by Bogdan Opanchuk b...@bk.ru: Added file: http://bugs.python.org/file14721/client.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6701 ___ ___

[issue6701] Make custom xmlrpc extension easier

2009-08-14 Thread Bogdan Opanchuk
Changes by Bogdan Opanchuk b...@bk.ru: Added file: http://bugs.python.org/file14722/server.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6701 ___ ___

[issue6701] Make custom xmlrpc extension easier

2009-08-14 Thread Bogdan Opanchuk
Changes by Bogdan Opanchuk b...@bk.ru: Added file: http://bugs.python.org/file14723/test_xmlrpc.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6701 ___

[issue6701] Make custom xmlrpc extension easier

2009-08-14 Thread Bogdan Opanchuk
Changes by Bogdan Opanchuk b...@bk.ru: Added file: http://bugs.python.org/file14724/xmlrpc_overload.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6701 ___

[issue6702] Tkinter: modify xview of entry widget

2009-08-14 Thread paolo
New submission from paolo paolo.fr...@libero.it: I wish to propose a useful and smart method modify in Tkinter Library: Previously to scroll this widget we had to write an external function (recalling xview_moveto and xview_scroll). With my method this operation is cleared and the same as all

[issue6702] Tkinter: modify xview of entry widget

2009-08-14 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: Please take a look on issue6180. Closing this as duplicate. Also consider checking the issue 1135, your comments are welcome on both issues and may help getting the fix committed. -- nosy: +gpolo resolution: - duplicate status: open -

[issue6701] Make custom xmlrpc extension easier

2009-08-14 Thread Raghuram Devarakonda
Changes by Raghuram Devarakonda draghu...@gmail.com: -- nosy: +draghuram ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6701 ___ ___

[issue3344] IDLE - use enumerate instead of zip(count(), ...)

2009-08-14 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: Committed on r74446, will merge into py3k. -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3344

[issue3926] Idle doesn't obey the new improved warnings arguements

2009-08-14 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: Committed on r74447, will merge into py3k. -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3926

[issue1135] xview/yview of Tix.Grid is broken

2009-08-14 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: This has been commited on r74448 now, will merge into py3k. -- resolution: - accepted status: open - closed versions: +Python 2.7, Python 3.2 -Python 2.5, Python 2.6 ___ Python tracker

[issue6180] Tkinter.Entry: fix for xview and some doc clarifications

2009-08-14 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: This is now obsolete since r74448 and r74449, closing. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6180 ___

[issue1135] xview/yview of Tix.Grid is broken

2009-08-14 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: This has been commited on r74448 now, will merge into py3k. py3k: r74450 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1135 ___

[issue3926] Idle doesn't obey the new improved warnings arguements

2009-08-14 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: Committed on r74447, will merge into py3k. py3k: r74450 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3926 ___

[issue3344] IDLE - use enumerate instead of zip(count(), ...)

2009-08-14 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: Committed on r74446, will merge into py3k. py3k: r74450 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3344 ___

[issue6687] Move the special-case for integer objects out of PyBytes_FromObject.

2009-08-14 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: +1 from me too; I agree the current API of PyBytes_FromObject is ugly. Is there still a need for a separate C function for creating a zero- initialized bytes object from a Py_ssize_t or a Python integer? It's a fairly simple operation

[issue6703] cross platform failure and silly test in doctest

2009-08-14 Thread Chris Withers
New submission from Chris Withers ch...@simplistix.co.uk: Hi All, Line 355 of this code on the 2.6 branch and trunk: http://svn.python.org/view/python/branches/release26- maint/Lib/doctest.py?view=annotate http://svn.python.org/view/python/trunk/Lib/doctest.py?annotate=69012 ...contain a

[issue6695] PyXXX_ClearFreeList for dict, set, and list

2009-08-14 Thread Matthias Troffaes
Matthias Troffaes matthias.troff...@gmail.com added the comment: Thanks for the feedback! Attaching a new patch which implements tp_free_list slot as suggested - I hope I did it correctly. I've only implemented the new slot for dict so far, but I'm happy to tp_free_list-ify the other freelist

[issue1294959] Problems with /usr/lib64 builds.

2009-08-14 Thread jan matejek
jan matejek jmate...@suse.cz added the comment: for completenes, here's a patch that's in use in SUSE. it's advantage over Fedora's is that it works on both 32bit and 64bit installs -- Added file: http://bugs.python.org/file14726/Python-2.6.2-multilib.patch

[issue1424148] urllib.FancyURLopener.redirect_internal looses data on POST!

2009-08-14 Thread Giorgio
Giorgio gior...@gilestro.tk added the comment: I am not sure where we stand with this issue. It seems to be an old one. urllib2 still claim (as of python 2.6) the following; # Strictly (according to RFC 2616), 301 or 302 in response # to a POST MUST NOT cause a redirection without confirmation

[issue6695] PyXXX_ClearFreeList for dict, set, and list

2009-08-14 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Guido, do you want a slot assigned for this? -- assignee: - gvanrossum nosy: +gvanrossum, rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6695

[issue6646] test_pickle fails on AIX -- 6.9999999999999994e-308 != 6.9999999999999984e-308

2009-08-14 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Closing this as a won't fix: as far as I can tell, the test failure is due to a platform deficiency (string - float conversions provided by the C standard library aren't correctly rounded; moreover, they're not accurate enough that

[issue6695] PyXXX_ClearFreeList for dict, set, and list

2009-08-14 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: A slot in every type object for this purpose seems wasteful; the large majority of types won't have a free list. (Remember, each user-defined class allocates a full type structure on the heap.) -- assignee: gvanrossum -

[issue4970] test_os causes delayed failure on x86 gentoo buildbot: Unknown signal 32

2009-08-14 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: [...] test_poll test_popen test_poplib stub-asunix.sh: line 238: 25474 Unknown signal 32 $PYTHON $installdir/lib/python?.?/test/regrtest.py -w -u all,-curses,-audio,- network -x $SKIPS stub: core Python test suite FAILED

[issue6695] PyXXX_ClearFreeList for dict, set, and list

2009-08-14 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Marking the PyXXX_ClearFreeList version as approved. -- resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6695

[issue6704] better col_offset for AST in statements like for a, b in ...

2009-08-14 Thread Frank Wierzbicki
New submission from Frank Wierzbicki fwierzbi...@gmail.com: For statements like: for a,b in c: pass The Tuple node a,b ends up with a col_offset of 0 (the position of the for), but the col_offset should probably be 4 (the position of a). This is more consistent with other Tuple node

[issue6703] cross platform failure and silly test in doctest

2009-08-14 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: How about removing it and seeing if tests fail? -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6703 ___

[issue6704] better col_offset for AST in statements like for a, b in ...

2009-08-14 Thread Frank Wierzbicki
Frank Wierzbicki fwierzbi...@gmail.com added the comment: Adding tests to test_ast.py for the three cases that exercise the for a,b scenario. Also fixed a small bug in the test code generator in test_ast.py -- Added file: http://bugs.python.org/file14728/ast.diff

[issue6556] HOME is not a standard environment variable on Windows

2009-08-14 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: The code works as expected because it uses os.path.expanduser('~'), which will look to the right values depending on the platform. So it's just the documentation that is wrong about how distutils behaves under Windows. I'll fix this doc

[issue1424148] urllib.FancyURLopener.redirect_internal looses data on POST!

2009-08-14 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: This issue is not a bug, and should be closed. It was discussed at length many years ago (different bug tracker ticket), and resolved. Since then the same issue seems to come up every year or so, apparently raised by people who

[issue1424148] urllib.FancyURLopener.redirect_internal looses data on POST!

2009-08-14 Thread Giorgio
Giorgio gior...@gilestro.tk added the comment: I don't know what this is a workaround *for*. As you can see yourself, that code does a complete redirection, taking along the post_data too which is simply not possible by default (and that is obviously a pain in the neck). I never said it was

[issue6705] '''3, 5'''.strip(r''', ''') does not strip comma, returns '3, 5'

2009-08-14 Thread Michael Gruen
New submission from Michael Gruen gru...@gmail.com: I am new, I apologize if this is a trivial or non-problem. I have researched for hours, tried every variant but cannot understand why this doesn't work. -- components: None messages: 91572 nosy: mgruen severity: normal status: open

[issue6705] '''3, 5'''.strip(r''', ''') does not strip comma, returns '3, 5'

2009-08-14 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: strip removes any of a set of characters from the beginning and end of a string, not the middle. Please refer questions such as this to python-list or python-tutor. There are many helpful people on those lists who will help you learn

[issue6705] '''3, 5'''.strip(r''', ''') does not strip comma, returns '3, 5'

2009-08-14 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Good advice from R. David. In addition, you'll find the help command useful: help(''.strip) Help on built-in function strip: strip(...) S.strip([chars]) - string or unicode Return a copy of the string S with leading and trailing

[issue6681] email.parser clips trailing \n of multipart/mixed part if part ends in \r\n

2009-08-14 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The only way I can think of to fix this that won't fail in the case where the body ends with just '\r' (rather than '\r\n' the way the test body does) is to have feedparser keep track of what the overall line endings for the stream being

[issue6697] Python 3.1 segfaults when invalid UTF-8 characters are passed from command line

2009-08-14 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: The error occurs in Py_Main(), on _PyUnicode_AsString(commandObj). The problem is that _PyUnicode_AsString() is not checked for error. Here is a patch fixing two errors: - display on error message instead of a crash on

[issue6669] TarFile.getmembers fails at struct.unpack: unpack requires a string argument of length 4

2009-08-14 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: First, gzip should use its own errors: this issue depends on #6584. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6669

[issue6669] TarFile.getmembers fails at struct.unpack: unpack requires a string argument of length 4

2009-08-14 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Since 6584 is deemed (correctly, IMO) a feature request, this one must be as well. -- dependencies: +gzip module has no custom exception keywords: +easy nosy: +r.david.murray priority: - normal stage: - test needed type:

[issue6706] asyncore's accept() is broken

2009-08-14 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' billiej...@users.sourceforge.net: An old bad design choice in asyncore is how it forces the user to override handle_accept() and then call self.accept() to obtain a socket pair. def handle_accept(self): conn, addr = self.accept() The

[issue6707] dir() on __new__'d module w/o dict crashes 2.6.2

2009-08-14 Thread Dino Viehland
New submission from Dino Viehland di...@microsoft.com: from types import ModuleType as M m = M.__new__(M) dir(m) In 2.5 this raises an exception about not having __dict__, 2.6.2 crashes out right. -- components: Interpreter Core messages: 91580 nosy: DinoV severity: normal status:

[issue6239] c_char_p return value returns string, not bytes

2009-08-14 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I agree that the C type 'char' is a byte, not a character. So Python3 should creates a Python bytes object for the ctypes c_char_p type. Since Python 3.1 is out, is it too late to change it in the 3.x branch? :-) Maybe for Python

[issue6673] Py3.1 hangs in coroutine and eats up all memory

2009-08-14 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Reopening - this should be rejected by the compiler as a SyntaxError, since it is the comprehension equivalent of writing return Value inside a generator function. Specifically, in 3.x, the equivalent written out code is: while True:

[issue6626] show Python mimetypes module some love

2009-08-14 Thread Jacob Rus
Jacob Rus jacobo...@gmail.com added the comment: Okay, here's a version of this patch which (a) adds deprecation warnings, and (b) doesn't bother with lazy init. It should still be nearly completely backwards compatible with the previous mimetypes module. -- Added file:

[issue6708] raw_input() calls generate compile errors.

2009-08-14 Thread starz
New submission from starz b_lyn...@yahoo.com: # -- SOURCE --- # cheerleading program word = raw_input(Who do you go for? ) for letter in word: call = Gimme a + letter + ! print (call) print (letter) + ! print( What does that spell?) print( word + !) # --- end source

[issue6626] show Python mimetypes module some love

2009-08-14 Thread Jacob Rus
Jacob Rus jacobo...@gmail.com added the comment: And at Rietveld, patch version 5: http://codereview.appspot.com/107042 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6626 ___

[issue6708] raw_input() calls generate compile errors.

2009-08-14 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: Try it at the help prompt without the parens (you're not calling it here, just asking for the documentation on the name raw_input. help raw_input Help on built-in function raw_input in module __builtin__: raw_input(...) raw_input([prompt])

[issue6708] raw_input() calls generate compile errors.

2009-08-14 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: raw_input() has been renamed to input() in Python 3. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6708

[issue6709] It's possible to create TryExcept with no handlers

2009-08-14 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6709 ___ ___ Python-bugs-list

[issue6677] Place the term delete within the documentation for os.remove() and os.rmdir()

2009-08-14 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: If a change is make, 'remove (delete)' would be sufficient. -- nosy: +tjreedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6677 ___

[issue6709] It's possible to create TryExcept with no handlers

2009-08-14 Thread Benjamin Peterson
New submission from Benjamin Peterson benja...@python.org: I think we might need to devise some way to add custom validation when AST is being compiled. For example, you can also pass a level to ImportFrom which is -1. x = ast.parse(try: x\nexcept y: pass) del x.body[0].handlers[:]

[issue1660179] functools.compose to chain functions together

2009-08-14 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: I concur with Martin's reasons for closing the patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1660179 ___

[issue1660179] functools.compose to chain functions together

2009-08-14 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: I concur with Martin's reasons for closing the patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1660179 ___

[issue6695] PyXXX_ClearFreeList for dict, set, and list

2009-08-14 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Does anyone here know why GC calls the free_xxx functions? ISTM, they cannot be involved in cycles. Free lists are kept by container objects to speed-up allocation. Having GC call the free_xxx just slows down the GC process

[issue2576] httplib read() very slow due to lack of socket buffer

2009-08-14 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: Note that http://bugs.python.org/issue4879 may have already fixed this problem in trunk r68532. -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2576