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

2009-10-17 Thread Martin v . Löwis
Martin v. Löwis added the comment: What's a procedure for testing this patch (please be as precise as possible)? -- ___ Python tracker ___ ___

[issue7164] pickle test failure after test_imp/test_import (_make_stat_result is not the same object as os._make_stat_result)

2009-10-17 Thread Nick Coghlan
Nick Coghlan added the comment: Should be OK again as of r75481. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue7164] pickle test failure after test_imp/test_import (_make_stat_result is not the same object as os._make_stat_result)

2009-10-17 Thread Nick Coghlan
Nick Coghlan added the comment: Must have missed running the full test suite before checking that one in. Whoops... Anyway, the culprit is a couple of copy_reg calls that the os module runs on import to register pickle support methods. CleanImport's simplistic approach to reversion leaves the r

[issue7162] 2to3 does not convert __builtins__.file

2009-10-17 Thread Joe Amenta
Changes by Joe Amenta : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue6975] symlinks incorrectly resolved on Linux

2009-10-17 Thread Sylwester Warecki
Sylwester Warecki added the comment: Marco, 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. Should I expect the new version to generate the exc

[issue5475] urllib2.getproxies not documented

2009-10-17 Thread Senthil Kumaran
Senthil Kumaran added the comment: getproxies is urllib one of the many helper functions that is not documented in the Documentation files. I am not sure of a good resolution for this (leave it as such/Document it/ make it private). I shall look into the test coverage,usage of the function and

[issue5625] test_urllib2 fails - urlopen error file not on local host

2009-10-17 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: -> orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue7159] Urllib2 authentication memory.

2009-10-17 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: -> orsenthil nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue7155] urllib2 and python 3 urllib do not document default use of system proxy configuration

2009-10-17 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks for the comments. Fixed and committed the changes trunk - 75478. and merged into release26-maint - 75479. py3k - r75476 release31-maint - r75477 -- resolution: accepted -> fixed status: open -> closed ___ Py

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

2009-10-17 Thread paul rubin
paul rubin added the comment: 1. Yes, the idea is to figure out the best solution and go with it (or decide to do nothing). That many possibilities exist just points to the need for experience and wisdom in identifying the best choice ("one and preferably only one"). One of the attractive poin

[issue7164] pickle test failure after test_imp/test_import (_make_stat_result is not the same object as os._make_stat_result)

2009-10-17 Thread R. David Murray
New submission from R. David Murray : After r75467, which changed test_imp and test_import to use CleanImport, the various pickle tests fail (all in the same common test, I believe). The error looks like this: Traceback (most recent call last): File "/home/rdmurray/python/trunk/Lib/test/pickl

[issue7161] raise of SyntaxError in codeop was ported incorrectly to Py3

2009-10-17 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r75472. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue7092] Test suite emits many DeprecationWarnings when -3 is enabled

2009-10-17 Thread Ehsan Amiri
Changes by Ehsan Amiri : -- nosy: +esam ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

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

2009-10-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: Here’s a summary of my research so far (including discussion with other programmers, a Google code search, discussion on #python-dev on IRC, and comparing the proposal to other APIs with start-arguments such as sum(), reduce(), and enumerate()): 1. Showed se

[issue1160] Medium size regexp crashes python

2009-10-17 Thread kristall
kristall added the comment: aloha, I also use large RE's. re.compile() worked fine under python2.6 (OS ubuntu-linux). After moving the code to python3.0 I get the same error as ostkamp did. Under 3.1 also. Under 3.1 I tried to the fix that ostkamp described (setting 'short' to 'long' in Modules

[issue7163] IDLE suppresses sys.stdout.write() return value

2009-10-17 Thread Terry J. Reedy
New submission from Terry J. Reedy : IDLE Python 3.1 (r31:73574, Jun 26 2009, 20:21:35) [MSC v.1500 32 bit (Intel)] on win32 >>> import sys >>> sys.stdout.write('abc') abc whereas Command Window Python 3.1 (r31:73574, Jun 26 2009, 20:21:35) [MSC v.1500 32 bit (Intel)] on win32 >>> import sys

[issue7162] 2to3 does not convert __builtins__.file

2009-10-17 Thread Joe Amenta
New submission from Joe Amenta : Step to reproduce: $ echo 'file("/some/file")' | python `which 2to3` - (replace python with whichever python executable version you wish to use, e.g. ~/python-trunk/python or /usr/local/bin/python3.2 ) Expected result: Anything referring to the fact that the "f

[issue6952] deprecated conversion from string constant to char *

2009-10-17 Thread Martin v . Löwis
Martin v. Löwis added the comment: Without looking into the details: the places where you cast-away constness look wrong. Either the parameter shouldn't have been declared const, or the target of the assignment needs to be converted to const, too. If the cast is really legitimite, a comment need

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

2009-10-17 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: A patch including tests and documentation is now in attachment. The test TLS server is very similar to pyftpdlib's I draw on: http://code.google.com/p/pyftpdlib/source/browse/trunk/demo/tls_ftpd.py I wasn't able to "compile" the documentation so I'm not 100%

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

2009-10-17 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Ronald, please apply asap. This is the last thing I'm waiting on before I tag 2.6.4rc2. -- resolution: -> accepted ___ Python tracker ___ ___

[issue7080] locale.strxfrm raises MemoryError

2009-10-17 Thread egreen
egreen added the comment: I've added the tests. I found that on Windows, strxfrm has been unavailable in py3k since r61306, because of an omission in PC/pyconfig.h. (cf. patch) In determining whether I should first test for the existence of strcoll (or strxfrm) in the locale module, as was do

[issue7161] raise of SyntaxError in codeop was ported incorrectly to Py3

2009-10-17 Thread Trundle
New submission from Trundle : The original lines in Lib/codeop.py under Python 2.6: raise SyntaxError, err1 Those lines were ported to Python 3 as: raise SyntaxError(err1) Which is wrong because `err1` is in both cases an instance of `SyntaxError`. Quote from the language reference: "If the

[issue6952] deprecated conversion from string constant to char *

2009-10-17 Thread Barry Alan Scott
Barry Alan Scott added the comment: Here is my 1st patch to allow const char * and const Py_UNICODE * It is agsinst http://svn.python.org/projects/python/trunk. What I have attempted to do is stop the public API of python needing char * or Py_UNICODE * where the API clearly does not need to mod

[issue7160] Crash when returning a 64-bit char pointer in Python 2.6.3 ctypes

2009-10-17 Thread Trundle
Trundle added the comment: You are using `CFUNCTYPE` wrong. `CFUNCTYPE` returns a type which will take a *Python function* (or an address of a function as integer). You provide `lib.get_message` as Python function, which is a wrapper object for the C function. By default, ctypes assumes an in

[issue7160] Crash when returning a 64-bit char pointer in Python 2.6.3 ctypes

2009-10-17 Thread Michael J. Fromberger
Michael J. Fromberger added the comment: I believe this error occurs because a pointer value is being truncated to 32 bits. The exception code is KERN_INVALID_ADDRESS at 0x002fe020 If you add a diagnostic printout to the body of get_message(), you will see that its return value is 0

[issue7160] Crash when returning a 64-bit char pointer in Python 2.6.3 ctypes

2009-10-17 Thread Michael J. Fromberger
Changes by Michael J. Fromberger : Added file: http://bugs.python.org/file15155/crash-report.txt ___ Python tracker ___ ___ Python-bugs-list ma

[issue7160] Crash when returning a 64-bit char pointer in Python 2.6.3 ctypes

2009-10-17 Thread Michael J. Fromberger
New submission from Michael J. Fromberger : A segmentation fault is generated in _ctypes.so when calling a function that returns a char pointer on a system with 64-bit pointer types. The attached crash dump is from a Python 2.6.3 built from MacPorts ("port install python26 +no_tkinter"), but

[issue7159] Urllib2 authentication memory.

2009-10-17 Thread Brad Olson
New submission from Brad Olson : For each request requiring HTTP authentication, urllib2 submits the request without authentication, receives the server's 401 error/challenge, then re-submits the request with authentication. This is compliant behavior. The problem comes in that urllib2 repeats t

[issue6975] symlinks incorrectly resolved on Linux

2009-10-17 Thread Marco Buccini
Marco Buccini added the comment: I've just found a similar bug: http://bugs.python.org/issue1646838 However, does os.path.realpath's behavior have to be as the one specified by the POSIX standard ( http://www.kernel.org/doc/man-pages/online/pages/man3/realpath.3.html )? If we wanted to follow t

[issue6975] symlinks incorrectly resolved on Linux

2009-10-17 Thread Marco Buccini
Changes by Marco Buccini : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2009-10-17 Thread Marco Buccini
Changes by Marco Buccini : -- nosy: +markon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue7158] os.path.basename/split fails

2009-10-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Py

[issue7158] os.path.basename/split fails

2009-10-17 Thread Tom Kuiper
Tom Kuiper added the comment: Do I have to do that? I've never used the Python bug tracking system before. > BTW: I'm happy you solved this bug. > I guess we could consume a few beers over whether it's a bug or not. Cheers Tom -- ___ Python tr

[issue7158] os.path.basename/split fails

2009-10-17 Thread Marco Buccini
Marco Buccini added the comment: I cannot close this bug, ahah :) BTW: I'm happy you solved this bug. Bye. -- ___ Python tracker ___

[issue7158] os.path.basename/split fails

2009-10-17 Thread Tom Kuiper
Tom Kuiper added the comment: That's a good point, Marco. I'd forgotten about the distinction. Converting 'filename' to a Python string with 'str()' fixed the problem. > However, when I tried to run your example, newWF.py, and tried to open a > file from the menu, I got this: > > controls.nch

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

2009-10-17 Thread Tim Peters
Tim Peters added the comment: Mark, you needn't bother: you found the smoking gun already! From your description, I agree it would be very surprising if FMA made a significant difference in the absence of catastrophic cancellation. -- ___ Python tr

[issue7158] os.path.basename/split fails

2009-10-17 Thread Marco Buccini
Marco Buccini added the comment: > I should close this bug. I *would* close this bug. Sorry :) -- ___ Python tracker ___ ___ Python-b

[issue7158] os.path.basename/split fails

2009-10-17 Thread Marco Buccini
Marco Buccini added the comment: I think this is not a Python bug, since it concerns PyQt. You're passing a QString object to os.path.split(), while the official documentation wants you pass a Python string. However, when I tried to run your example, newWF.py, and tried to open a file from th

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

2009-10-17 Thread Mark Dickinson
Mark Dickinson added the comment: BTW, the gamma computation shouldn't be at all fragile, unless I've messed up somewhere: the Lanczos sum is evaluated as a rational function in which both numerator and denominator have only positive coefficients, so there's little danger of nasty cancellati

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

2009-10-17 Thread Mark Dickinson
Mark Dickinson added the comment: It was a stupid Mark bug. I'd missed out a '<' from the struct.unpack call that was translating floats into integers, for the purposes of computing ulps difference. Fixed in r75454 (trunk), r75455 (py3k). Thanks for reporting this, Ned. -- ___

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

2009-10-17 Thread Tim Peters
Tim Peters added the comment: Adding -mno-fused-madd would be worth trying. It usually fixes PPC bugs ;-) -- ___ Python tracker ___ ___

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

2009-10-17 Thread Mark Dickinson
Mark Dickinson added the comment: Hmm. It looks as though the gamma computation itself is fine; it's the accuracy check that's going wrong. I'm suspecting an endianness issue and/or a struct module bug. Ned, do you still get these failures with a direct single-architecture build on PPC?