[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2012-04-24 Thread Martin v . Löwis
Martin v. Löwis added the comment: Brian: The patch is fine, please apply. -- stage: patch review -> commit review ___ Python tracker ___

[issue14579] Vulnerability in the utf-16 decoder after error handling

2012-04-24 Thread Huzaifa Sidhpurwala
Huzaifa Sidhpurwala added the comment: I have not tried the patch yet, but modifying the reproducer yields a different crash. This one seems to be a heap-based buffer overflow which is slightly more serious. In the reproducer, you just need to replace ascii() with str(). Again works on pytho

[issue14579] Vulnerability in the utf-16 decoder after error handling

2012-04-24 Thread Kurt Seifried
Kurt Seifried added the comment: Please use CVE-2012-2135 for this issue as per http://www.openwall.com/lists/oss-security/2012/04/25/3 -- nosy: +kseifr...@redhat.com ___ Python tracker __

[issue14667] No IDLE

2012-04-24 Thread Martin v . Löwis
Martin v. Löwis added the comment: 1. how did you look (what operating system, what mouse clicks?) 2. did you not find Python, or did you find Python, and it did not work? -- ___ Python tracker ___

[issue14667] No IDLE

2012-04-24 Thread James Lu
James Lu added the comment: 1,looked for python IDLE 2.NO python #.use text editor (hard) james On Wed, Apr 25, 2012 at 2:17 AM, Martin v. Löwis wrote: > > Martin v. Löwis added the comment: > > Please structure your bug report as follows: > > 1. this is what you did > 2. this is what happene

[issue14667] No IDLE

2012-04-24 Thread Martin v . Löwis
Martin v. Löwis added the comment: Please structure your bug report as follows: 1. this is what you did 2. this is what happened 3. this is what you want to happen instead -- nosy: +loewis ___ Python tracker

[issue14605] Make import machinery explicit

2012-04-24 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: ncoghlan -> brett.cannon stage: patch review -> commit review ___ Python tracker ___ ___ Python

[issue14605] Make import machinery explicit

2012-04-24 Thread Nick Coghlan
Nick Coghlan added the comment: Yeah, I was actually going to suggest forcing an absolute path for __main__.__file__ in runpy if you didn't want to do it in importlib itself. I'm much happier with that approach than changing the tests, so the updated patch looks good to me. -- _

[issue14665] faulthandler prints tracebacks in reverse order

2012-04-24 Thread Nick Coghlan
Nick Coghlan added the comment: Victor's argument makes sense to me. What I'd be inclined to do is shout at the reader a bit in the traceback header by making it: Traceback (most recent call FIRST): And put a comment in the source code with the gist of what Victor wrote above (i.e. inter

[issue14443] Distutils test failure

2012-04-24 Thread Éric Araujo
Éric Araujo added the comment: The most likely cause is that some code was updated to use pycache directories but other code that computes paths still uses the old way; this happened for bdist_wininst too. I’ll have a look at the code and reply to your questions tomorrow. I’ll also add link

[issue14443] Distutils test failure

2012-04-24 Thread Nick Coghlan
Nick Coghlan added the comment: It occurs to me there's a way to check my theory: if we update the failing test to explicitly check the magic cookie in at least one of the precompiled pyc files (rather than just expecting the files' existence), then it should also start failing on the 2.7 RHE

[issue14443] Distutils test failure

2012-04-24 Thread Nick Coghlan
Nick Coghlan added the comment: To answer my last question: plenty of people. Even within Fedora itself there are parallel python 2 and python 3 RPM stacks. -- ___ Python tracker _

[issue14605] Make import machinery explicit

2012-04-24 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: brett.cannon -> ncoghlan stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list ma

[issue14605] Make import machinery explicit

2012-04-24 Thread Brett Cannon
Brett Cannon added the comment: I found out why runpy was giving back an absolute file path for __file__; because pkgutil was doing that through its ImpLoader, unlike what import does by default which is just taking what path it has and appending file names (and thus not making anything absol

[issue14657] Avoid two importlib copies

2012-04-24 Thread Brett Cannon
Brett Cannon added the comment: That solves the "I'm in a checkout" problem but it doesn't tell you necessarily where the Lib directory is if you e.g. build from within another directory like Python/, which places the executable and pybuilddir.txt in the current directory. Now obviously you

[issue14605] Make import machinery explicit

2012-04-24 Thread Brett Cannon
Brett Cannon added the comment: You can see a little discussion in http://bugs.python.org/issue14642, but it has been discussed elsewhere and the automatic rebuilding was preferred (but it is not a requirement to build as importlib.h is in hg). --

[issue14605] Make import machinery explicit

2012-04-24 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue14605] Make import machinery explicit

2012-04-24 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Marc-Andre Lemburg wrote: > Looking further I found this line in the Makefile: > > > # Importlib > > Python/importlib.h: $(srcdir)/Lib/importlib/_bootstrap.py > $(srcdir)/Python/

[issue14605] Make import machinery explicit

2012-04-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset a2cf07135e4f by Marc-Andre Lemburg in branch 'default': Issue #14605: Rename _SourcelessFileLoader to SourcelessFileLoader. http://hg.python.org/cpython/rev/a2cf07135e4f -- ___ Python tracker

[issue14667] No IDLE

2012-04-24 Thread James Lu
New submission from James Lu : No IDLE 3.26 need badly! High prriority -- components: IDLE files: python.exe messages: 159243 nosy: James.Lu priority: normal severity: normal status: open title: No IDLE type: resource usage versions: Python 3.2 Added file: http://bugs.python.org/file2535

[issue14605] Make import machinery explicit

2012-04-24 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: R. David Murray wrote: > > R. David Murray added the comment: > > Hmm. Some at least of the buildbots have failed to build after that patch: > > ./python ./Python/freeze_importlib.py \ > ./Lib/importlib/_bootstrap.py Python/importlib.h > make: ./pyt

[issue14666] test_sendall_interrupted hangs on FreeBSD with a zombi multiprocessing thread

2012-04-24 Thread Richard Oudkerk
Richard Oudkerk added the comment: This patch adds a ResourceSharer.stop() method. This is called from tearDownClass() in the unittest. -- keywords: +patch Added file: http://bugs.python.org/file25357/mp_resource_sharer_stop.patch ___ Python tracke

[issue14605] Make import machinery explicit

2012-04-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset e30196bfc11d by Marc-Andre Lemburg in branch 'default': Issue #14605: Revert renaming of _SourcelessFileLoader, since it caused http://hg.python.org/cpython/rev/e30196bfc11d -- ___ Python tracker

[issue14127] add st_*time_ns fields to os.stat(), add ns keyword to os.*utime*(), os.*utimens*() expects a number of nanoseconds

2012-04-24 Thread Larry Hastings
Larry Hastings added the comment: Second round of my patch, incorporating nearly all of Victor's suggestions. Thanks, Victor! -- Added file: http://bugs.python.org/file25356/larry.utime.ns.2.patch ___ Python tracker

[issue14369] make __closure__ writable

2012-04-24 Thread Yury Selivanov
Yury Selivanov added the comment: > The patch causes crashes. Yes, that's known. First, we need to check, that we can only write tuple of cell objects or None in __closure__ (that's easy to add). Secondly, perhaps, we can check __closure__ correctness each time we start evaluating a code

[issue14605] Make import machinery explicit

2012-04-24 Thread R. David Murray
R. David Murray added the comment: Hmm. Some at least of the buildbots have failed to build after that patch: ./python ./Python/freeze_importlib.py \ ./Lib/importlib/_bootstrap.py Python/importlib.h make: ./python: Command not found make: *** [Python/importlib.h] Error 127 program finished

[issue14605] Make import machinery explicit

2012-04-24 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Brett Cannon wrote: > > I documented it explicitly so people can use it if they so choose (e.g. look > at sys._getframe()). If you want to change this that's fine, but I am > personally not going to put the effort in to rename the class, update the > tes

[issue14369] make __closure__ writable

2012-04-24 Thread Richard Oudkerk
Richard Oudkerk added the comment: The patch causes crashes. If I define def cell(o): def f(): o return f.__closure__[0] def f(): a = 1 b = 2 def g(): return a + b return g g = f() then I find g.__closure__ = None; g() -> crash

[issue14666] test_sendall_interrupted hangs on FreeBSD with a zombi multiprocessing thread

2012-04-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: The pthread_sigmask() solution would allow the use of multiprocessing all the while keeping deterministic signal delivery. -- ___ Python tracker _

[issue14666] test_sendall_interrupted hangs on FreeBSD with a zombi multiprocessing thread

2012-04-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- components: +Library (Lib) stage: -> needs patch type: -> behavior ___ Python tracker ___ ___ Python-

[issue14605] Make import machinery explicit

2012-04-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8aa4737d67d2 by Marc-Andre Lemburg in branch 'default': Issue #14605: Rename _SourcelessFileLoader to SourcelessFileLoader http://hg.python.org/cpython/rev/8aa4737d67d2 -- ___ Python tracker

[issue14666] test_sendall_interrupted hangs on FreeBSD with a zombi multiprocessing thread

2012-04-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ah, this is because of the new daemon thread in ResourceSharer. That thread is never stopped and could receive signals while tests expect them to be delivered to the main thread. Either we add a (private?) facility to stop that thread, or we block signal del

[issue14666] test_sendall_interrupted hangs on FreeBSD with a zombi multiprocessing thread

2012-04-24 Thread STINNER Victor
STINNER Victor added the comment: There was a similar issue: #11753, but it was a bug in the faulthandler module. Here it looks like a bug in TestSocketSharing of test_socket which uses multiprocessing. -- ___ Python tracker

[issue14666] test_sendall_interrupted hangs on FreeBSD with a zombi multiprocessing thread

2012-04-24 Thread STINNER Victor
New submission from STINNER Victor : [233/364] test_multiprocessing ... [265/364] test_typechecks [266/364] test_socket Timeout (1:00:00)! Thread 0x000807235000: File "/usr/home/buildbot/buildarea/3.x.krah-freebsd/build/Lib/socket.py", line 135 in accept File "/usr/home/buildbot/buildar

[issue14665] faulthandler prints tracebacks in reverse order

2012-04-24 Thread STINNER Victor
STINNER Victor added the comment: faulthandler has to be as simple as possible because Python internal state may be completly corrupted. faulthandler was written to display the traceback on bugs like invalid memory read or write. I chose to print the traceback as it is stored in memory (from

[issue14632] Race condition in WatchedFileHandler leads to unhandled exception

2012-04-24 Thread Vinay Sajip
Vinay Sajip added the comment: I will leave this open for a few days and see if the buildbots throw up anything. -- resolution: -> fixed ___ Python tracker ___ ___

[issue14665] faulthandler prints tracebacks in reverse order

2012-04-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch. -- keywords: +patch nosy: +ncoghlan Added file: http://bugs.python.org/file25355/reverse_frames.patch ___ Python tracker ___ _

[issue14632] Race condition in WatchedFileHandler leads to unhandled exception

2012-04-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 15a33d7d2b50 by Vinay Sajip in branch '2.7': Issue #14632: Updated WatchedFileHandler to deal with race condition. Thanks to John Mulligan for the problem report and patch. http://hg.python.org/cpython/rev/15a33d7d2b50 New changeset 5de7c3d64f2a b

[issue14657] Avoid two importlib copies

2012-04-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Code to detect whether you're running off a checkout vs. a normal > installation by looking at even more directories ? I don't > see any in getpath.c (and that's good). Look for "pybuilddir.txt". -- ___ Python tra

[issue14657] Avoid two importlib copies

2012-04-24 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Antoine Pitrou wrote: > >> Adding more cruft to getpath.c or similar routines is just going to >> slow down startup time even more... > > The code is already there. Code to detect whether you're running off a checkout vs. a normal installation by looking

[issue14665] faulthandler prints tracebacks in reverse order

2012-04-24 Thread Antoine Pitrou
New submission from Antoine Pitrou : Python usually prints traceback from the outer to the inner function: the inner frame is printed last. But faulthandler prints the inner frame first and the outer frame last. -- components: Extension Modules messages: 159223 nosy: haypo, pitrou prio

[issue14127] add st_*time_ns fields to os.stat(), add ns keyword to os.*utime*(), os.*utimens*() expects a number of nanoseconds

2012-04-24 Thread Larry Hastings
Larry Hastings added the comment: > futimens() has nice feature: it is possible to only update atime > only update mtime, or use "now" as the new atime and/or mtime. YAGNI. Worst case, you can use call futimes twice, once with no args, then fstat() it to get the current-ish time and rewrite t

[issue14127] add st_*time_ns fields to os.stat(), add ns keyword to os.*utime*(), os.*utimens*() expects a number of nanoseconds

2012-04-24 Thread STINNER Victor
STINNER Victor added the comment: > I removed futimens because it's now extraneous. futimens() has nice feature: it is possible to only update atime only update mtime, or use "now" as the new atime and/or mtime. 3882 If *_nsec is specified as UTIME_NOW, the timestamp is updated to t

[issue14339] Optimizing bin, oct and hex

2012-04-24 Thread STINNER Victor
STINNER Victor added the comment: 2.100 -v = PyUnicode_DecodeASCII(p, &buffer[sz] - p, NULL); ... 2.104 +assert(p == PyUnicode_1BYTE_DATA(v)); 2.105 return v; 2.106 } You may call assert(_PyUnicode_CheckConsistency(v, 1)) to ensure that the newly created string is "consi

[issue14127] add st_*time_ns fields to os.stat(), add ns keyword to os.*utime*(), os.*utimens*() expects a number of nanoseconds

2012-04-24 Thread Larry Hastings
Larry Hastings added the comment: Attached is round 1 of my patch adding the ns= parameter to utime, futimes, and lutimes. Some notes: * I admit the "see utime for use of times and ns" documentation dodge (for both Doc and docstring) is lazy. Yet I'm still hoping to get away with it. * I

[issue14660] Implement PEP 420: Implicit Namespace Packages

2012-04-24 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue14657] Avoid two importlib copies

2012-04-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Adding more cruft to getpath.c or similar routines is just going to > slow down startup time even more... The code is already there. -- ___ Python tracker _

[issue14657] Avoid two importlib copies

2012-04-24 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Brett Cannon wrote: > > Modules/getpath.c seems to be where the C code does it when getting paths for > sys.path. So it would be possible to use that same algorithm to set some sys > attribute (e.g. in_checkout or something) much like sys.gettotalrefcount

[issue14664] Skipping a test mixin gives metaclass error

2012-04-24 Thread Michael Foord
Michael Foord added the comment: Patch looks good - thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14657] Avoid two importlib copies

2012-04-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: > That's why I was thinking of tying into Modules/getpath.c because I > assume that would work cross-platform. Is that incorrect? Windows uses PC/getpathp.c, not Modules/getpath.c (with tons of duplicate code)... So you would have to tie into both :) -

[issue14657] Avoid two importlib copies

2012-04-24 Thread Brett Cannon
Brett Cannon added the comment: That's why I was thinking of tying into Modules/getpath.c because I assume that would work cross-platform. Is that incorrect? -- ___ Python tracker

[issue14664] Skipping a test mixin gives metaclass error

2012-04-24 Thread Antoine Pitrou
New submission from Antoine Pitrou : Seen on a buildbot: test test_multiprocessing crashed -- Traceback (most recent call last): File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/test/regrtest.py", line 1229, in runtest_inner the_package = __import__(abstest, globals(), lo

[issue14579] Vulnerability in the utf-16 decoder after error handling

2012-04-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- title: Possible vulnerability in the utf-16 decoder after error handling -> Vulnerability in the utf-16 decoder after error handling ___ Python tracker

[issue14579] Possible vulnerability in the utf-16 decoder after error handling

2012-04-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch, which took into account the Martin suggestions. -- title: Vulnerability in the utf-16 decoder after error handling -> Possible vulnerability in the utf-16 decoder after error handling Added file: http://bugs.python.org/file25352/utf1

[issue14657] Avoid two importlib copies

2012-04-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Otherwise some directory structure check could be done (e.g. find > importlib/_bootstrap.py off of sys.path, and then see > if ../Modules/Setup or something also exists that would never show up > in an installed CPython). Well, the directory structure check *

[issue11618] Locks broken wrt timeouts on Windows

2012-04-24 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Here is a new patch. I've factored out the NT condittion variable code into thread_nt_cv.h which is now used by both thread_nt.h and ceval_gil.h -- Added file: http://bugs.python.org/file25351/ntlocks.patch

[issue14657] Avoid two importlib copies

2012-04-24 Thread Brett Cannon
Brett Cannon added the comment: Modules/getpath.c seems to be where the C code does it when getting paths for sys.path. So it would be possible to use that same algorithm to set some sys attribute (e.g. in_checkout or something) much like sys.gettotalrefcount is optional and only shown when b

[issue4892] Sending Connection-objects over multiprocessing connections fails

2012-04-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks, Richard. I have now committed the patch. Hopefully the Windows buildbots will be ok :) -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue4892] Sending Connection-objects over multiprocessing connections fails

2012-04-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 08d4c2fe51ea by Antoine Pitrou in branch 'default': Issue #4892: multiprocessing Connections can now be transferred over multiprocessing Connections. http://hg.python.org/cpython/rev/08d4c2fe51ea -- nosy: +python-dev _

[issue14160] TarFile.extractfile fails to extract targets of top-level relative symlinks

2012-04-24 Thread Lars Gustäbel
Lars Gustäbel added the comment: Fixed. Thanks for the report. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue14657] Avoid two importlib copies

2012-04-24 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Brett Cannon wrote: > > Brett Cannon added the comment: > > So basically if you are running in a checkout, grab the source file and > compile it manually since its location is essentially hard-coded and thus you > don't need to care about sys.path and a

[issue14160] TarFile.extractfile fails to extract targets of top-level relative symlinks

2012-04-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset aff14bea5596 by Lars Gustäbel in branch '2.7': Issue #14160: TarFile.extractfile() failed to resolve symbolic links when http://hg.python.org/cpython/rev/aff14bea5596 -- ___ Python tracker

[issue14657] Avoid two importlib copies

2012-04-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: > That's an interesting idea. How do we currently tell that the > interpreter is running in a checkout? Is that exposed in any way to > Python code? Look for _BUILDDIR_COOKIE in setup.py. But that's only for non-Windows platforms (I don't think setup.py is invo

[issue14657] Avoid two importlib copies

2012-04-24 Thread Brett Cannon
Brett Cannon added the comment: So basically if you are running in a checkout, grab the source file and compile it manually since its location is essentially hard-coded and thus you don't need to care about sys.path and all the other stuff required to do an import, while using the frozen code

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-04-24 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Another version, after Antoine feedback. Please, review. -- ___ Python tracker ___ ___ Python-bug

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-04-24 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Added file: http://bugs.python.org/file25350/ad882ba08568.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue1522400] irda socket support

2012-04-24 Thread Charles-François Natali
Charles-François Natali added the comment: Here's a cleanup up patch against default. However, I don't have any IrDA capable device neither, so I won't be able to help much. I'll ask on python-dev if someone can help. As for the manual decoding, AFAICT you'll have the same issue with CAN sockets

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-04-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: - In test_posix.py: it's better to use the "with" statement when opening a file - In Misc/NEWS: the entries should be kept in reverse chronological order -- ___ Python tracker ___

[issue14657] Avoid two importlib copies

2012-04-24 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Brett Cannon wrote: > > Brett Cannon added the comment: > > I don't quite follow what you are suggesting, MAL. Are you saying to freeze > importlib.__init__ and importlib._bootstrap and somehow have > improtlib.__init__ choose what to load, frozen or so

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-04-24 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: New version, addressing Amaury concerns and Neologix review. Please, do a final review. -- ___ Python tracker ___ ___

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-04-24 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Added file: http://bugs.python.org/file25348/0a5a40a4674a.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-04-24 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Removed file: http://bugs.python.org/file25347/34103049559f.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2012-04-24 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Added file: http://bugs.python.org/file25347/34103049559f.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue14657] Avoid two importlib copies

2012-04-24 Thread Brett Cannon
Brett Cannon added the comment: I don't quite follow what you are suggesting, MAL. Are you saying to freeze importlib.__init__ and importlib._bootstrap and somehow have improtlib.__init__ choose what to load, frozen or source? -- ___ Python tracker

[issue14605] Make import machinery explicit

2012-04-24 Thread Brett Cannon
Brett Cannon added the comment: I documented it explicitly so people can use it if they so choose (e.g. look at sys._getframe()). If you want to change this that's fine, but I am personally not going to put the effort in to rename the class, update the tests, and change the docs for this (we

[issue14656] Add a macro for unreachable code

2012-04-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: Let me explain what I meant with code. -- keywords: +patch Added file: http://bugs.python.org/file25346/unreachable.patch ___ Python tracker ___

[issue14160] TarFile.extractfile fails to extract targets of top-level relative symlinks

2012-04-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0adf4fd8df83 by Lars Gustäbel in branch '3.2': Issue #14160: TarFile.extractfile() failed to resolve symbolic links http://hg.python.org/cpython/rev/0adf4fd8df83 New changeset 38df99776901 by Lars Gustäbel in branch 'default': Merge with 3.2: Issue

[issue14662] shutil.move broken in 2.7.3 on OSX (chflags fails)

2012-04-24 Thread Hynek Schlawack
Hynek Schlawack added the comment: Now that’s odd. I just looked into the code at http://hg.python.org/cpython/file/2.7/Lib/shutil.py#l103 and there is a guard against EOPNOTSUPP: try: os.chflags(dst, st.st_flags) except OSError, why: if (not hasattr(errno, 'EOPNOTSUPP') or why.errno

[issue14661] posix module: add O_EXEC, O_SEARCH, O_TTY_INIT

2012-04-24 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue14661] posix module: add O_EXEC, O_SEARCH, O_TTY_INIT

2012-04-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 34de406f566d by Jesus Cea in branch 'default': Issue #14661: posix module: add O_EXEC, O_SEARCH, O_TTY_INIT http://hg.python.org/cpython/rev/34de406f566d New changeset 2023f48b32b6 by Jesus Cea in branch 'default': Closes Issue #14661: posix module

[issue14632] Race condition in WatchedFileHandler leads to unhandled exception

2012-04-24 Thread Charles-François Natali
Charles-François Natali added the comment: > I can't see why this always works, while John's script sometimes fails. It does fail consistently on my machine. I'm attaching the diff just in case. -- Added file: http://bugs.python.org/file25345/test_logging_race.diff ___

[issue14661] posix module: add O_EXEC, O_SEARCH, O_TTY_INIT

2012-04-24 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: I add some other constants too. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue13903] New shared-keys dictionary implementation

2012-04-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5d5b72a71898 by Benjamin Peterson in branch 'default': distiguish between refusing to creating shared keys and error (#13903) http://hg.python.org/cpython/rev/5d5b72a71898 -- ___ Python tracker

[issue14610] configure script hangs on pthread verification and PTHREAD_SCOPE_SYSTEM verification on Ubuntu

2012-04-24 Thread Charles-François Natali
Charles-François Natali added the comment: Your strace output looks strange :-) Unless it's truncated, we see that the wait4() doesn't return when the test pthread executable exits... Could you try building this code : """ #include void* routine(void* p){return NULL;} int main(){ pthread_t

[issue14657] Avoid two importlib copies

2012-04-24 Thread Eric Snow
Eric Snow added the comment: > would be great if we had a > command to stop module execution or code execution for a block to > make that more elegant, e.g. "break" at module scope :-) I floated that proposal on python-list a while back and the reaction was mixed. [1] Maybe it's time to try a

[issue14662] shutil.move broken in 2.7.3 on OSX (chflags fails)

2012-04-24 Thread Fabian Groffen
Fabian Groffen added the comment: > I presume Python 3.2+ have the same behavior? I cannot compile that or get it working normally, so I can't tell for sure. Judging from the code, I'd say yes. -- ___ Python tracker

[issue14662] shutil.move broken in 2.7.3 on OSX (chflags fails)

2012-04-24 Thread Hynek Schlawack
Hynek Schlawack added the comment: I guess a “best effort” approach would be best here. I presume Python 3.2+ have the same behavior? -- nosy: +hynek ___ Python tracker ___ ___

[issue14661] posix module: add O_EXEC, O_SEARCH, O_TTY_INIT

2012-04-24 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: I will take care of this. -- assignee: -> jcea nosy: +jcea ___ Python tracker ___ ___ Python-bugs

[issue14369] make __closure__ writable

2012-04-24 Thread Richard Oudkerk
Richard Oudkerk added the comment: Shouldn't test___closure__() also test what happens when the closure is replaced with None, or a tuple which is too long or too short or contains non-cell objects? All of these things seem to be checked when you create a new function using types.FunctionTyp

[issue14663] Cannot comment out comments

2012-04-24 Thread R. David Murray
R. David Murray added the comment: A comment is a comment. *All* characters after the # are ignored, including other #s. Also, Python doesn't have multiline comments. (Well, you can use a triple quoted string as a multiline comment, but it is still a string, and follows the syntax rules of

[issue14663] Cannot comment out comments

2012-04-24 Thread Nul Character
New submission from Nul Character : When attempting to comment out a comment and thus nullifying it, the interpreter just double comments the line. This behavior works with multiline comments, however, the single line comments "double-comment" the line. -- components: Interpreter Core

[issue5057] Unicode-width dependent optimization leads to non-portable pyc file

2012-04-24 Thread Armin Rigo
Armin Rigo added the comment: Sorry to re-open this issue. The following example shows that it was not fully resolved: def f(): return u'\U00023456abcdef'[3] import dis; dis.dis(f) print f() On a wide build it should print 'c' and on a narrow build it should print 'b'.

[issue14662] shutil.move broken in 2.7.3 on OSX (chflags fails)

2012-04-24 Thread Fabian Groffen
New submission from Fabian Groffen : With current working dir an NFS-mounted ZFS share, and /var/tmp (OSX default) HFS+: % echo "test" > /var/tmp/testfile % python Python 2.7.3 (default, Apr 24 2012, 19:33:45) [GCC 4.2.1 (Gentoo 4.2.1_p5666, Apple Inc. build 5666) (dot 3)] on darwin Type "help

[issue14605] Make import machinery explicit

2012-04-24 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Brett Cannon wrote: > > That initial comment is out-of-date. If you look that the commit I made I > documented importlib.machinery._SourcelessFileLoader. I am continuing the > discouragement of using bytecode files as an obfuscation technique (because >

[issue14448] Mention pytz in datetime's docs

2012-04-24 Thread Sandro Tosi
Sandro Tosi added the comment: I've reworded a bit the patch: thanks for it, Andrew -- nosy: +sandro.tosi resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

[issue14448] Mention pytz in datetime's docs

2012-04-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset e0e421133d0f by Sandro Tosi in branch '2.7': Issue #14448: mention pytz; patch by Andrew Svetlov http://hg.python.org/cpython/rev/e0e421133d0f New changeset 3aec41794584 by Sandro Tosi in branch '3.2': Issue #14448: mention pytz; patch by Andrew Sv

[issue14654] More fast utf-8 decoding

2012-04-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here are two new patches. The first one takes into account the Martin wishes about comments. The second also rejects optimization for ASCII. On the Intel Atom last patch annihilates acceleration for some cases (mostly-ascii with UCS2 data):

[issue14661] posix module: add O_EXEC, O_SEARCH, O_TTY_INIT

2012-04-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +neologix stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue14657] Avoid two importlib copies

2012-04-24 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: test me thod. Another option is we hide the source as _importlib or something to allow direct importation w/o any tricks under a protected name. Using the freeze everything approach you make things easier for the implementation, since you don't have to thi

[issue13903] New shared-keys dictionary implementation

2012-04-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset b044e0568be2 by Martin v. Loewis in branch 'default': Account for shared keys in type's __sizeof__ (#13903). http://hg.python.org/cpython/rev/b044e0568be2 -- ___ Python tracker

  1   2   >