[issue1673007] urllib2 requests history + HEAD support

2009-10-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue1160] Medium size regexp crashes python

2009-10-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti type: crash -> behavior versions: +Python 3.1 ___ Python tracker ___ ___ Python-bugs-l

[issue7166] IDLE (python 3.1.1) syntax coloring for b'bytestring' and u'unicode' string literal

2009-10-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy nosy: +ezio.melotti priority: -> normal ___ Python tracker ___ ___ Python-bugs-list maili

[issue7168] Document PyFloat_AsString and PyFloat_AsReprString as deprecated and unsafe

2009-10-18 Thread Eric Smith
New submission from Eric Smith : These functions are unsafe and I'd like to delete them. They've already been deleted in py3k, per PEP 3100. They are no longer used internally to the interpreter. They should be documented as deprecated and as unsafe. They write to a char* parameter, but don't ta

[issue7149] 2.6.4rc1 regression: test_urllib2 fails on OS X with UnboundLocalError

2009-10-18 Thread Ned Deily
Ned Deily added the comment: Verified that test_urllib2 no longer fails with 2.6.4rc2. -- ___ Python tracker ___ ___ Python-bugs-list

[issue7064] Python 2.6.3 / setuptools 0.6c9: extension module builds fail with KeyError

2009-10-18 Thread Ned Deily
Ned Deily added the comment: Verified that the original regression reported against 2.6.3 when using setuptools 0.6c9 has been fixed and no longer exists in 2.6.4rc2. -- ___ Python tracker

[issue7167] Smarter FTP passive mode

2009-10-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: At least we could add an optional argument to set_pasv() so as to ignore the host provided by the server. Here is a patch proposal. -- keywords: +patch Added file: http://bugs.python.org/file15162/ftplib.patch ___ Py

[issue7151] regrtest -j sometimes fails if output gets written to stderr by a test

2009-10-18 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: nobody -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue7167] Smarter FTP passive mode

2009-10-18 Thread Antoine Pitrou
New submission from Antoine Pitrou : I have come accross an FTP server which lftp (an Unix command-line client) handles well but ftplib doesn't. Both ftplib and lftp are configured to use passive mode (this server apparently doesn't handle non-passive), but the address sent in response by the ser

[issue2054] add ftp-tls support to ftplib - RFC 4217

2009-10-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: You can build the docs by going to the Doc directory and typing "make html" there. It isn't critical anyway. The tests failed to run, I had to replace the KEYCERT declaration with: KEYCERT = os.path.join(os.path.dirname(__file__), "keycert.pem") (and add

[issue3366] Add gamma function, error functions and other C99 math.h functions to math module

2009-10-18 Thread Ned Deily
Ned Deily added the comment: Verified that r75454 makes the gamma test errors go away on a PPC Mac. -- ___ Python tracker ___ ___ Pyth

[issue6952] deprecated conversion from string constant to char *

2009-10-18 Thread Martin v . Löwis
Martin v. Löwis added the comment: > 1) I can comment the casts to maintain this goal. > 2) Or change the output paramter const ness. > > Given your feedback I'm guessing you want me to go further with > the use of const and do (2). Ah, ok - as I said, I didn't look into detail further. IIUC,

[issue7166] IDLE (python 3.1.1) syntax coloring for b'bytestring' and u'unicode' string literal

2009-10-18 Thread Lie Ryan
New submission from Lie Ryan : On python trunk and 3.2 IDLE, the b in b'' is not green colored. On python 3.1 IDLE, the u in u'' is still colored, despite a SyntaxError. (sorry, I don't have diff installed on my Windows machine) Change on python trunk: /Lib/idlelib/ColorDelegator.py def make_pa

[issue7166] IDLE (python 3.1.1) syntax coloring for b'bytestring' and u'unicode' string literal

2009-10-18 Thread Lie Ryan
Changes by Lie Ryan : -- versions: +Python 2.7, Python 3.2 -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue4120] Do not embed manifest files in *.pyd when compiling with MSVC

2009-10-18 Thread Christoph Gohlke
Christoph Gohlke added the comment: There are two levels of testing. First, on a Windows development system with Visual Studio 2008, Python 2.6.2+, and the msvc9compiler_stripruntimes_regexp2.diff patch applied, verify that the embedded manifest in distutil generated PYD extension files is stri

[issue7153] add "start" arg to max and min functions

2009-10-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the thoughtful reply. To give the idea another chance, today, I showed a code example to another experienced programmer. "What does this function return? max([-2, 5], start=0) " The person had a hard time making any sense of it. Perhaps the

[issue1779233] PyThreadState_SetAsyncExc and the main thread

2009-10-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've added a test for it in r75499. Now closing this bug, still the function actually works :-) -- resolution: -> works for me status: open -> closed ___ Python tracker ___

[issue1779233] PyThreadState_SetAsyncExc and the main thread

2009-10-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: The following works (2.6 and trunk): import ctypes, thread ctypes.pythonapi.PyThreadState_SetAsyncExc( ctypes.c_long(thread.get_ident()), ctypes.py_object(ZeroDivisionError)) for i in range(1000): pass The thing to remember is that PyThreadState_SetAs

[issue1646838] os.path, %HOME% set: realpath contradicts expanduser on '~'

2009-10-18 Thread Ezio Melotti
Ezio Melotti added the comment: realpath is only supposed to return an absolute pathname, resolving '.', '..' and symlinks. It's not its duty to expand '~', therefore in your example > In [3]: path.realpath('~') > Out[3]: 'C:\\Dokumente und Einstellungen\\wrstl\\~' the '~' is seen as a normal

[issue7151] regrtest -j sometimes fails if output gets written to stderr by a test

2009-10-18 Thread R. David Murray
Changes by R. David Murray : Removed file: http://bugs.python.org/file15148/regrtestj3stderr.patch ___ Python tracker ___ ___ Python-bugs-list

[issue7151] regrtest -j sometimes fails if output gets written to stderr by a test

2009-10-18 Thread R. David Murray
R. David Murray added the comment: Updated patch that moves the print of the test name into the output that gets put into the queue so that all output from a test stays together. -- assignee: pitrou -> nobody nosy: +ezio.melotti, nobody Added file: http://bugs.python.org/file15160/regrt

[issue7127] regrtest -j fails when tests write to stderr

2009-10-18 Thread R. David Murray
R. David Murray added the comment: Hmm. Look like I forgot that I opened this issue, and opened a new one with the patch. Closing this one in favor of the one with the patch. -- resolution: -> duplicate stage: needs patch -> committed/rejected status: open -> closed superseder: -> r

[issue6952] deprecated conversion from string constant to char *

2009-10-18 Thread Barry Alan Scott
Barry Alan Scott added the comment: I was trying to avoid changing the const ness of output parameters. Given the advice not to go mad on putting const everywhere. 1) I can comment the casts to maintain this goal. 2) Or change the output paramter const ness. Given your feedback I'm guessing yo

[issue7147] Remove WITHOUT_COMPLEX from 3.x trunk

2009-10-18 Thread Skip Montanaro
Skip Montanaro added the comment: Committed revision 75495. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mail

[issue7165] xmlrpc.server assumes sys.stdout will have a buffer attribute

2009-10-18 Thread Nick Coghlan
New submission from Nick Coghlan : The xmlrpc tests were changed to use a StringIO object instead of a temporary file (this change reflects the corresponding change made on the 2.x trunk). The tests then started failing, since xmlrpc.server assumes sys.stdout will provide the buffer attribute, w

[issue1646838] os.path, %HOME% set: realpath contradicts expanduser on '~'

2009-10-18 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- assignee: ronaldoussoren -> components: -Macintosh, Windows ___ Python tracker ___ ___ Python-bugs

[issue1646838] os.path, %HOME% set: realpath contradicts expanduser on '~'

2009-10-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue1646838] os.path, %HOME% set: realpath contradicts expanduser on '~'

2009-10-18 Thread Marco Buccini
Marco Buccini added the comment: If we decide to follow paths as '~' it means that we want to follow the POSIX standard. Infact, it doesn't make sense calling os.path.realpath as follow: >>> import os >>> os.getcwd() '/home/marco/Desktop' >>> os.path.realpath('~') To get something like: '/home/

[issue1646838] os.path, %HOME% set: realpath contradicts expanduser on '~'

2009-10-18 Thread strank
strank added the comment: I agree with the 'test needed' stage, but for that, the intended behaviour should be decided on first. A quick test for checking current behaviour:: pythonX.Y -c 'import os; p = os.path; print (os.environ["HOME"], p.realpath("~"), p.expanduser("~"), p.normpath("~"))'

[issue6975] symlinks incorrectly resolved on Linux

2009-10-18 Thread Marco Buccini
Marco Buccini added the comment: >Thanks for looking deeper into it. >I would like to check the solution ASAP. >We have really crazy dir structure which can catch a lot of >the unexpected problems with paths, links, circular links etc. Oh well, so you can see if the patch works correctly on all

[issue7128] cPickle looking for non-existent package copyreg

2009-10-18 Thread Georg Brandl
Georg Brandl added the comment: Probably the whole of r63042 should be undone. -- nosy: +georg.brandl ___ Python tracker ___ ___ Pytho

[issue7147] Remove WITHOUT_COMPLEX from 3.x trunk

2009-10-18 Thread Mark Dickinson
Mark Dickinson added the comment: Skip, I think you could just check this in. (Or I can do it if you'd prefer.) -- assignee: -> skip.montanaro resolution: -> accepted ___ Python tracker

[issue7102] Problems building pyhton from source on Snow Leopard (Mac OS X 10.6)

2009-10-18 Thread Ronald Oussoren
Ronald Oussoren added the comment: The fixes will be in 3.1.2 and 3.2 when those are released. I don't know when that it though, until than you can build the version in the repository. The 3.1 branch tends to be stable, developers are supposed to only port bugfixes to this branch, new develo

[issue7107] Missing uninstallation instructions for mac

2009-10-18 Thread Ronald Oussoren
Ronald Oussoren added the comment: The root cause for this issue is Apple's broken installer system: Apple does have a package installer, but does not provide tools to uninstall packages. I'm reluctant to provide an uninstaller as part of the Python project, such a tool would require seriou

[issue7044] urllib.urlopen crashes when used on Mac OS 10.6.1 through a proxy

2009-10-18 Thread Ronald Oussoren
Ronald Oussoren added the comment: Fixed in r75482 (trunk) and r75483 (2.6) -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue7149] 2.6.4rc1 regression: test_urllib2 fails on OS X with UnboundLocalError

2009-10-18 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue7149] 2.6.4rc1 regression: test_urllib2 fails on OS X with UnboundLocalError

2009-10-18 Thread Ronald Oussoren
Ronald Oussoren added the comment: Fixed in r75483 (2.6), 75482 (trunk) -- resolution: accepted -> fixed stage: -> committed/rejected type: -> behavior ___ Python tracker ___ _