[issue12084] os.stat() on windows doesn't consider relative symlink

2011-05-15 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith, jaraco ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue12084] os.stat() on windows doesn't consider relative symlink

2011-05-15 Thread Georg Brandl
Georg Brandl added the comment: It's quite a large patch... :) I now own a new laptop that had Windows 7 preinstalled, so I'll try to get set up VC++ Express, and then test the patch. Still I'm nosying Martin as well. For the future, it's much easier to just attach both files individually, th

[issue1746656] IPv6 Interface naming/indexing functions

2011-05-15 Thread Nadeem Vawda
Nadeem Vawda added the comment: All the buildbots are back to normal. It looks like FreeBSD was having the same problem as OS X. -- ___ Python tracker ___

[issue12079] decimal.py: TypeError precedence in fma()

2011-05-15 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1615158] POSIX capabilities support

2011-05-15 Thread Ross Lagerwall
Ross Lagerwall added the comment: > I would say either posixcap or capabitilies. The problem with capabilities is that it's easy to misspell, as I did :-) -- ___ Python tracker _

[issue1615158] POSIX capabilities support

2011-05-15 Thread Ross Lagerwall
Ross Lagerwall added the comment: > > I think it would be better if they are added to a separate module > Can you propose a name for the module? I would say either posixcap or capabitilies. -- ___ Python tracker

[issue12082] Python/import.c still references fstat even with DONT_HAVE_FSTAT/!HAVE_FSTAT

2011-05-15 Thread STINNER Victor
STINNER Victor added the comment: Oh, so it's possible to not have the fstat() syscall. I asked me the question when I modified import.c (and other files related to importing a module). -- nosy: +haypo ___ Python tracker

[issue12084] os.stat() on windows doesn't consider relative symlink

2011-05-15 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- nosy: +nadeem.vawda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue12085] subprocess.Popen.__del__ raises AttributeError if __init__ was called with an invalid argument list

2011-05-15 Thread Oleg Oshmyan
New submission from Oleg Oshmyan : If subprocess.Popen is called with a keyword argument whose name is undefined or simply too many arguments, an instance of the Popen class is created but its __init__ method call fails due to the invalid argument list. (Immediately) afterwards, the new instan

[issue9927] Leak around GetFinalPathNameByHandle (Windows)

2011-05-15 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I'll close this entry because #12084 contains this fix. -- status: open -> closed superseder: -> os.stat() on windows doesn't consider relative symlink ___ Python tracker _

[issue12084] os.stat() on windows doesn't consider relative symlink

2011-05-15 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : Hello. I noticed os.stat() on windows may traverse wrong path on relative symbolic when current working directory != the directory where symbolic link is in. This is because the relative path DeviceIoControl() returns is just passed to win32_xstat withou

[issue7969] shutil.copytree error handling non-standard and partially broken

2011-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I also found the doc confusing. Does "This exception collects exceptions that raised during a multi-file operation." that Error is used for .rmtree or .move? If so, what format. If not, revise. And I also wondered how to access and use an Error. -- n

[issue11898] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-05-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: The bug was about sending Binary "data" via httplib. In the example you wrote, you are sending a unicode "url" and experiencing a failure for certain examples. In the 2.7, the urls should be str type, we don't have function to deal with unicode url separately

[issue6715] xz compressor support

2011-05-15 Thread Dan Stromberg
Dan Stromberg added the comment: Interesting thing to consider: maybe it'd be better to add support for libarchive, which includes xz support among other things. http://code.google.com/p/libarchive/ -- ___ Python tracker

[issue7656] test_hashlib fails on some installations (specifically Neal's regression test runner)

2011-05-15 Thread R. David Murray
R. David Murray added the comment: AFAIK build.sh is only as out of date as the svn/hg switchover. I believe this particular issue was dealt with, but I haven't checked. It runs the refcount tests for 2.7 (Antoine has a separate script that runs them for 3.x). -- __

[issue12083] Compile-time option to avoid writing files, including generated bytecode

2011-05-15 Thread Martin v . Löwis
Martin v. Löwis added the comment: This request is out of scope for 2.7. It is a new feature, and no new features can be added to 2.7. -- nosy: +loewis resolution: -> wont fix status: open -> closed ___ Python tracker

[issue12083] Compile-time option to avoid writing files, including generated bytecode

2011-05-15 Thread Josh Triplett
New submission from Josh Triplett : PEP 304 provides a runtime option to avoid saving generating bytecode files. However, for embedded usage, it would help to have a compile-time option to remove all the file-writing code entirely, hardcoding PYTHONBYTECODEBASE="". I ran into this when porti

[issue12082] Python/import.c still references fstat even with DONT_HAVE_FSTAT/!HAVE_FSTAT

2011-05-15 Thread Josh Triplett
New submission from Josh Triplett : Even if pyconfig.h defines DONT_HAVE_STAT and DONT_HAVE_FSTAT (which prevents the definitions of HAVE_STAT and HAVE_FSTAT), Python still references fstat in Python/import.c, along with struct stat and constants like S_IXUSR. I ran into this when attempting

[issue11197] information leakage with SimpleHTTPServer

2011-05-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: unassigning, i don't have time for this one right now. doubtful anyone is going to jump in for 3.2.1 given rc1 is being prepared right now. :) General recommendation: don't use SimpleHTTPServer in production. -- assignee: gregory.p.smith -> _

[issue7656] test_hashlib fails on some installations (specifically Neal's regression test runner)

2011-05-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: Misc/build.sh seems obsolete... its full of references to svn and we have had buildbots for many years now. The buildbots do not seem to be hitting this issue. Is there a real failure you can point at somewhere? if so please reopen this with a pointer to

[issue9667] NetBSD curses KEY_* constants

2011-05-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: unassigning, i don't have time to tackle netbsd issues right now. -- assignee: gregory.p.smith -> ___ Python tracker ___

[issue1615158] POSIX capabilities support

2011-05-15 Thread Martin v . Löwis
Martin v. Löwis added the comment: > The development headers for these are not installed by default on > some distributions. This is not an issue at all - that's what autoconf is for. > Adding this to the posix module would enforce linking with lcap and > lattr always. That's a more serious p

[issue12080] decimal.py: performance in _power_exact

2011-05-15 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue12081] Remove distributed copy of libffi

2011-05-15 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Has the patch been sent to libffi upstream? What was the response from libffi upstream? -- ___ Python tracker ___ ___

[issue12081] Remove distributed copy of libffi

2011-05-15 Thread Roumen Petrov
Roumen Petrov added the comment: On windows work with patched version of library . Unpatched does not work but I cannot remember python issue number. -- nosy: +rpetrov ___ Python tracker _

[issue11877] Change os.fsync() to support physical backing store syncs

2011-05-15 Thread Charles-François Natali
Charles-François Natali added the comment: (I'm not sure Rietveld sent the message so I post it here, sorry in case of duplicate). Steffen, I've made a quick review of your patch, in case you're interested. I think that this functionality can be really useful to some people, and it'd be nice i

[issue6721] Locks in python standard library should be sanitized on fork

2011-05-15 Thread Charles-François Natali
Charles-François Natali added the comment: > Is it possible the following issue is related to this one? It's hard to tell, the original report is rather vague. But the comment about the usage of the maxtasksperchild argument reminds me of issue #10332 "Multiprocessing maxtasksperchild results

[issue6721] Locks in python standard library should be sanitized on fork

2011-05-15 Thread Charles-François Natali
Changes by Charles-François Natali : Removed file: http://bugs.python.org/file21991/reinit_locks.diff ___ Python tracker ___ ___ Python-bugs-li

[issue1746656] IPv6 Interface naming/indexing functions

2011-05-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset b6aafb20e5f5 by Gregory P. Smith in branch 'default': issue #1746656: Fix for OS X. configure and #include changes so that the socket http://hg.python.org/cpython/rev/b6aafb20e5f5 -- ___ Python tracker

[issue12080] decimal.py: performance in _power_exact

2011-05-15 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue6721] Locks in python standard library should be sanitized on fork

2011-05-15 Thread Nir Aides
Nir Aides added the comment: Is it possible the following issue is related to this one? http://bugs.python.org/issue10037 - "multiprocessing.pool processes started by worker handler stops working" -- ___ Python tracker

[issue12080] decimal.py: performance in _power_exact

2011-05-15 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the report; I'll try to find some time to look at this. This isn't the first time that I've thought that it might be better just to abandon the aim of getting correctly-rounded results for pow. -- assignee: -> mark.dickinson

[issue11898] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-05-15 Thread Jiri Horky
Jiri Horky added the comment: I have the same problem as the original submitter. The reason it previously worked for you was probably because you didn't utilize a "right" unicode string in the urllib2.request. The following code will raise the exception (I enclose the data file for completene

[issue1746656] IPv6 Interface naming/indexing functions

2011-05-15 Thread Nadeem Vawda
Nadeem Vawda added the comment: OK, that's great. It'll be another couple of hours before I can do anything from the FreeBSD side; I'm still waiting for the ISO to finish downloading :/ -- ___ Python tracker ___

[issue1746656] IPv6 Interface naming/indexing functions

2011-05-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: thanks i'll take a look at OS X here. obviously i did development and testing on linux. -- ___ Python tracker ___

[issue12081] Remove distributed copy of libffi

2011-05-15 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue10756] Error in atexit._run_exitfuncs [...] Exception expected for value, str found

2011-05-15 Thread STINNER Victor
STINNER Victor added the comment: Oh, I forgot the issue. I backported the fix to Python 3.1. Python 2.7 doesn't have the bug. -- resolution: -> fixed status: open -> closed ___ Python tracker __

[issue6721] Locks in python standard library should be sanitized on fork

2011-05-15 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: @ Charles-François Natali wrote (2011-05-15 01:14+0200): > So if we really wanted to be safe, the only solution would be to > forbid fork() in a multi-threaded program. > Since it's not really a reasonable option But now - why this? The only really acc

[issue10756] Error in atexit._run_exitfuncs [...] Exception expected for value, str found

2011-05-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 461e37a60187 by Victor Stinner in branch '3.1': Issue #10756: atexit normalizes the exception before displaying it. Patch by http://hg.python.org/cpython/rev/461e37a60187 -- nosy: +python-dev ___ Python

[issue11877] Change os.fsync() to support physical backing store syncs

2011-05-15 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: > Finally, depending on the workload, it could have a significant > performance impact. Oh yes (first replaces os.fsync() with an in-python wrapper): 18:12 ~/tmp $ ll mail ls: mail: No such file or directory 18:12 ~/tmp $ ll X-MAIL 312 -rw-r- 1 st

[issue10466] locale.py resetlocale throws exception on Windows (getdefaultlocale returns value not usable in setlocale)

2011-05-15 Thread Tim Lyons
Tim Lyons added the comment: Surely the user of getlocale as the right to expect that the same thing (i.e. ISO language codes) would be returned on all platforms. I am looking at some code that provides special purpose date handling routines. The appropriate routine is selected by a language

[issue12081] Remove distributed copy of libffi

2011-05-15 Thread Georg Brandl
Georg Brandl added the comment: Sounds reasonable. How will this work on Windows? -- nosy: +georg.brandl ___ Python tracker ___ ___

[issue11614] import __hello__ is broken in Python 3

2011-05-15 Thread Georg Brandl
Changes by Georg Brandl : -- priority: release blocker -> deferred blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue12081] Remove distributed copy of libffi

2011-05-15 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue12081] Remove distributed copy of libffi

2011-05-15 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- nosy: +nadeem.vawda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue12081] Remove distributed copy of libffi

2011-05-15 Thread Benjamin Peterson
New submission from Benjamin Peterson : I believe the bugs which the patched version of libffi used have been fixed in recent versions. We should stop distributing an old version. -- components: ctypes messages: 136034 nosy: benjamin.peterson priority: normal severity: normal status: op

[issue9516] sysconfig: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.3" but "10.5" during configure

2011-05-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've applied the patches to 3.3, 3.2 and 2.7 -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker

[issue9516] sysconfig: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.3" but "10.5" during configure

2011-05-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9874f213edb2 by Ronald Oussoren in branch '2.7': Issue #9516: avoid errors in sysconfig when MACOSX_DEPLOYMENT_TARGET is set in shell. http://hg.python.org/cpython/rev/9874f213edb2 New changeset 5b108229a978 by Ronald Oussoren in branch '3.2': Iss

[issue1615158] POSIX capabilities support

2011-05-15 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: posix module has many optional functions, which are available only on some systems. -- ___ Python tracker ___ _

[issue10639] reindent.py converts newlines to platform default

2011-05-15 Thread Jason R. Coombs
Jason R. Coombs added the comment: Re msg125818, I agree that the mixed EOLs is also a potential problem, though the proposed solution behaves better than the status quo, where the EOLs get converted without warning. It would be desirable for the patch to be more robust in that situation (pr

[issue11802] filecmp.cmp needs a documented way to clear cache

2011-05-15 Thread Nadeem Vawda
Nadeem Vawda added the comment: OK. I'll try to put together something cleaner just for 3.3, then. -- assignee: -> nadeem.vawda stage: patch review -> needs patch versions: -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker

[issue1746656] IPv6 Interface naming/indexing functions

2011-05-15 Thread Nadeem Vawda
Nadeem Vawda added the comment: The OpenIndiana bots are now green, but the BSD and OS X bots are still failing. It seems that on those systems, depends on and maybe some other headers, so the current configure script detects it as "present but not usable". I'm currently setting up a FreeBSD

[issue1746656] IPv6 Interface naming/indexing functions

2011-05-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 434dfe42fde1 by Nadeem Vawda in branch 'default': Fix _socket compilation failures on non-Linux buildbots (cf. issue #1746656). http://hg.python.org/cpython/rev/434dfe42fde1 -- ___ Python tracker

[issue1746656] IPv6 Interface naming/indexing functions

2011-05-15 Thread Nadeem Vawda
Nadeem Vawda added the comment: Also failing to compile on OS X: http://www.python.org/dev/buildbot/all/builders/AMD64%20Leopard%203.x/builds/1385/steps/test/logs/stdio The problem seems to be that is not being included on these non-Linux systems. Looking at Modules/socketmodule.h reveals tha

[issue11963] Remove human verification from test suite (test_parser and test_subprocess)

2011-05-15 Thread Éric Araujo
Éric Araujo added the comment: I had a shot at test_subprocess but it’s harder than test_parser. The method that outputs to stdout tests the behavior of Popen(..., stdout=None). Putting another layer of indirection with script_helper could obfuscate it to the point of making it unreadable (

[issue12079] decimal.py: TypeError precedence in fma()

2011-05-15 Thread Stefan Krah
Stefan Krah added the comment: Ok, I'll write a patch. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue12060] Python doesn't support real time signals

2011-05-15 Thread STINNER Victor
STINNER Victor added the comment: > if someone comes up with a situation where this is a real problem, > feel free to reopen it. Ok I agree, no problem. But I commited at least Charles's patch ;-) -- ___ Python tracker

[issue12080] decimal.py: performance in _power_exact

2011-05-15 Thread Stefan Krah
New submission from Stefan Krah : I found another performance issue in _power_exact: >>> Decimal(4) ** Decimal("-1.2e-9") ^CTraceback (most recent call last): File "", line 1, in File "/home/stefan/pydev/cpython/Lib/decimal.py", line 2343, in __pow__ ans = self._power_exact(othe

[issue12060] Python doesn't support real time signals

2011-05-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 945ca78c38b1 by Victor Stinner in branch '3.1': Issue #12060: Use sig_atomic_t type and volatile keyword in the signal module. http://hg.python.org/cpython/rev/945ca78c38b1 New changeset b74999f561ca by Victor Stinner in branch '3.2': (Merge 3.1) I

[issue12075] python3.2 memory leak when setting integer key in dictionary

2011-05-15 Thread kai zhu
kai zhu added the comment: explicit gc.collect() doesn't seem to fix the leak in my application. my current fix is to not re-instantiate the class attribute (which cost ~7mb) during reload & instead reference one created earlier. i haven't pinpointed y, but i suspect its a corner case, which w

[issue1746656] IPv6 Interface naming/indexing functions

2011-05-15 Thread STINNER Victor
STINNER Victor added the comment: > The _socket module doesn't compile on OpenIndiana anymore Same problem of FreeBSD 8.2: http://www.python.org/dev/buildbot/all/builders/AMD64%20FreeBSD%208.2%203.x/builds/291/steps/test/logs/stdio -- ___ Python tra

[issue12079] decimal.py: TypeError precedence in fma()

2011-05-15 Thread Mark Dickinson
Mark Dickinson added the comment: > cause fma(2, 3, snan) ... Gah! That was nonsense. Please ignore. -- ___ Python tracker ___ ___

[issue12079] decimal.py: TypeError precedence in fma()

2011-05-15 Thread Mark Dickinson
Mark Dickinson added the comment: Yes, I agree. Do you have a patch? I guess the only mildly tricky part here is making sure that the patch doesn't cause fma(2, 3, snan) (for example) to raise. -- ___ Python tracker

[issue1746656] IPv6 Interface naming/indexing functions

2011-05-15 Thread STINNER Victor
STINNER Victor added the comment: > New changeset c2515cb23d9b by Gregory P. Smith in branch 'default': > Issue #1746656: Add if_nameindex, if_nametoindex, if_indextoname The _socket module doesn't compile on OpenIndiana anymore: http://www.python.org/dev/buildbot/all/builders/AMD64%20OpenIndia

[issue10756] Error in atexit._run_exitfuncs [...] Exception expected for value, str found

2011-05-15 Thread Georg Brandl
Georg Brandl added the comment: Well, Victor still wanted to backport it. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue12079] decimal.py: TypeError precedence in fma()

2011-05-15 Thread Stefan Krah
New submission from Stefan Krah : Hi, I think that TypeError should take precedence over InvalidOperation in these two cases: >>> Decimal('Infinity').fma(Decimal('0'), (3.91224318126786e+19+0j)) Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.2/decimal.py

[issue10756] Error in atexit._run_exitfuncs [...] Exception expected for value, str found

2011-05-15 Thread kai zhu
kai zhu added the comment: should this bug b closed? it seems fixed in python3.2 for me. -- ___ Python tracker ___ ___ Python-bugs-li

[issue1746656] IPv6 Interface naming/indexing functions

2011-05-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: I added these with conditional compilation via autoconf for use on posix systems. These methods are not IPv6 specific. Anyone who wants to see them supported on windows will need to add whatever conditional compilation magic is required to enable that on a

[issue1746656] IPv6 Interface naming/indexing functions

2011-05-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset c2515cb23d9b by Gregory P. Smith in branch 'default': Issue #1746656: Add if_nameindex, if_nametoindex, if_indextoname http://hg.python.org/cpython/rev/c2515cb23d9b -- nosy: +python-dev ___ Python tracke