[issue17022] Inline assignment uses the newly created object
Gabriel Nistor added the comment: Thanks for the fast reply. The explanation seems valid, but the behavior is not consistent with other high level languages, and also with plain reasoning. I have a big java background experience and I am now with python for almost 3 years doing really hard core stuff, and I am still surprised by some solutions that you have adopted (like GIL for instance) and really happy about others, anyway thank you for a great language. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17022 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6972] zipfile.ZipFile overwrites files outside destination path
Serhiy Storchaka added the comment: Feel free to change the patch as you see fit. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6972 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17080] A better error message for float()
Serhiy Storchaka added the comment: LGTM. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17080 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17097] baseManager serve_client() not check EINTR when recv request
New submission from lvroyce: We create our customised manager which will fork child process with baseManager. Because we registered SIGCHLD to reap the zombie for manager, we found this causes baseManager raise RemoteError when called twice.(Test script attached.) After look at baseManager.py we found recv() in handling the request has been interrupted by comming SIGCHLD, not retry recv(), but raise to client side directly. try: methodname = obj = None request = recv()--this line been interrupted by SIGCHLD ident, methodname, args, kwds = request obj, exposed, gettypeid = id_to_obj[ident] if methodname not in exposed: raise AttributeError( 'method %r of %r object is not in exposed=%r' % (methodname, type(obj), exposed) ) function = getattr(obj, methodname) try: res = function(*args, **kwds) except Exception, e: msg = ('#ERROR', e) else: typeid = gettypeid and gettypeid.get(methodname, None) if typeid: rident, rexposed = self.create(conn, typeid, res) token = Token(typeid, self.address, rident) msg = ('#PROXY', (rexposed, token)) else: msg = ('#RETURN', res) except AttributeError: if methodname is None: msg = ('#TRACEBACK', format_exc()) else: try: fallback_func = self.fallback_mapping[methodname] result = fallback_func( self, conn, ident, obj, *args, **kwds ) msg = ('#RETURN', result) except Exception: msg = ('#TRACEBACK', format_exc()) except EOFError: util.debug('got EOF -- exiting thread serving %r', threading.current_thread().name) sys.exit(0) except Exception:--does not handle IOError,INTR here should retry recv() msg = ('#TRACEBACK', format_exc()) -- files: fakesupervdsm.py messages: 181074 nosy: lvroyce priority: normal severity: normal status: open title: baseManager serve_client() not check EINTR when recv request type: behavior versions: Python 3.3 Added file: http://bugs.python.org/file28930/fakesupervdsm.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17097 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1783] nonexistent data items declared as exports in sysmodule.h
Roundup Robot added the comment: New changeset 6074530b526f by Serhiy Storchaka in branch '2.7': Issue #1783: Remove declarations of nonexistent private variables. http://hg.python.org/cpython/rev/6074530b526f New changeset 349419bb6283 by Serhiy Storchaka in branch '3.2': Issue #1783: Remove declarations of nonexistent private variables. http://hg.python.org/cpython/rev/349419bb6283 New changeset 9d68f705e25f by Serhiy Storchaka in branch '3.3': Issue #1783: Remove declarations of nonexistent private variables. http://hg.python.org/cpython/rev/9d68f705e25f New changeset 905b4e3cf6d0 by Serhiy Storchaka in branch 'default': Issue #1783: Remove declarations of nonexistent private variables. http://hg.python.org/cpython/rev/905b4e3cf6d0 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1783 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1783] nonexistent data items declared as exports in sysmodule.h
Serhiy Storchaka added the comment: Thank you for the report, Jukka Laurila. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1783 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17053] pydoc should use inspect.signature instead of inspect.getfullargspec
Ronald Oussoren added the comment: The attached patch is a very rough prototype which seems to work (but wasn't tested beyond running pydoc on a number of function(-like) objects. With the patch the documentation for a callable defined in C but with a __signature__ property shows argument names in the rendered prototype instead of just '(...)' while the documentation for python functions and C functions without a __signature__ also works. Issues: * Rendering to HTML is broken if a function has POSITIONAL_ONLY arguments (the names of those arguments are rendered as 'arg' and that value is not escaped in the HTML output) * This adds a render method to inspect.Signature and inspect.Param to be able to pass custom render function for elements of a signature and I'm not convinced that this is the right solution. * There are no unittests for the new code (and I haven't run the existing tests to check if anything else has broken) -- stage: needs patch - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17053 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17097] baseManager serve_client() not check EINTR when recv request
Changes by Richard Oudkerk shibt...@gmail.com: -- nosy: +sbt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17097 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8713] multiprocessing needs option to eschew fork() under Linux
Changes by Stan Seibert s...@mtrr.org: -- nosy: +Stan.Seibert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8713 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17098] Set __loader__ on modules imported by the C level
New submission from Brett Cannon: E.g. _frozen_importlib, builtins, signal. -- components: Interpreter Core messages: 181078 nosy: brett.cannon, theller priority: normal severity: normal stage: test needed status: open title: Set __loader__ on modules imported by the C level type: behavior versions: Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17098 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17099] Raise ValueError when __loader__ not defined for importlib.find_loader()
New submission from Brett Cannon: If __loader__ is None then ValueError is raised, but if it is not defined then AttributeError is raised instead. Probably should harmonize around ValueError even in the missing attribute case since __loader__ = None is equivalent to the attribute not existing. I'm on the fence about considering this a bug, though, since the docs say if __loader__ == None then ValueError but does not directly mention what happens if the attribute is missing. Since anyone who has written code for this probably is catching both attributes (if at all since all but three modules coming from Python will have __loader__ defined ATM), it should be fine, but it is still a change in API/semantics that doesn't contradict the docs. -- components: Library (Lib) messages: 181079 nosy: brett.cannon, ncoghlan, theller priority: normal severity: normal stage: test needed status: open title: Raise ValueError when __loader__ not defined for importlib.find_loader() type: behavior versions: Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17099 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17098] Set __loader__ on modules imported by the C level
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17098 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17099] Raise ValueError when __loader__ not defined for importlib.find_loader()
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17099 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17022] Inline assignment uses the newly created object
R. David Murray added the comment: Well, it is consistent with plain reasoning if you remember that (a) python is a dynamic language and (b) python assignments do not return values (this is a core principle in the language design), which means that (c) the chained assignment form is a shorthand. Of course, you do then have to look up what it is a shorthand *for*, but if you approached another language's chained assignment with a Python mindset, you'd also have to look it up to find out what rules applied to that language. It is hard not to make assumptions based on other languages you've learned. Interestingly, when I did a quick google for what other languages do for chained assignment I didn't come up with much. Looks like most don't support it, or if they do they do so as a side effect of an assignment returning a value. So, yes, Python is a unique language. There are usually good underlying reasons for the various design decision made (not always, but very very often). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17022 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17032] Misleading error message: global name 'X' is not defined
Ram Rachum added the comment: Does fixing this ticket require anything more than making a change in the string that Python uses for this exception? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17032 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17098] Set __loader__ on modules imported by the C level
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17098 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17099] Raise ValueError when __loader__ not defined for importlib.find_loader()
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17099 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14468] Update cloning guidelines in devguide
Éric Araujo added the comment: Let’s stay friends here :) Why not remove the existing patches here, export the 8 changesets as patches, attach them here, let people comment? (I’m not keen on having discussion outside of our system) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14468 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17098] Set __loader__ on modules imported by the C level
Brett Cannon added the comment: Should probably check the state of sys.modules in importlib._bootstrap._setup() and see if the missing modules are there and then just retroactively set __loader__ to BuiltinImporter (as is already done in that function for sys and _imp): http://hg.python.org/cpython/file/905b4e3cf6d0/Lib/importlib/_bootstrap.py#l1709 . -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17098 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17099] Raise ValueError when __loader__ not defined for importlib.find_loader()
Brett Cannon added the comment: Should mention that this is probably no harder than changing a key getattr() call to None (as pointed out by Nick). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17099 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17099] Raise ValueError when __loader__ not defined for importlib.find_loader()
Changes by Brett Cannon br...@python.org: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17099 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17093] Make importlib.abc more inheritance-friendly
Brett Cannon added the comment: Blog post I wrote explaining what I plan to do: http://sayspy.blogspot.ca/2013/02/remember-to-use-super-in-your-abcs.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17093 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17100] rotating an ordereddict
New submission from Antoine Pitrou: It can be useful to rotate an OrderedDict (for example when managing a circular playlist). I haven't found any efficient way to do so from user code, without poking at the internals. Actually, I envision three methods: OrderedDict.rotate(self, n): rotate n steps to the right (similarly to deque.rotate()) OrderedDict.rotate_at(self, key): rotate so that the given key ends up in first position OrderedDict.rotate_after(self, key): rotate so that the given key ends up in last position (rotate_at, rotate_after could be merged in a single method with a last argument, if deemed more elegant) Note: another solution to the playlist problem would be to have insert_after() and insert_before() methods. -- messages: 181086 nosy: pitrou, rhettinger priority: normal severity: normal status: open title: rotating an ordereddict type: enhancement versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17100 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12502] 100% cpu usage when using asyncore with UNIX socket
Benjamin Ash added the comment: Hi, I am still seeing this issue even with the patches applied. I see 100% CPU utilization, and strace shows the process is in same kind of select() loop as msg139899. Any help would be greatly appreciated. Thanks, -ben strace output: select(4, [3], [3], [3], {30, 0}) = 1 (out [3], left {29, 98}) select(4, [3], [3], [3], {30, 0}) = 1 (out [3], left {29, 98}) select(4, [3], [3], [3], {30, 0}) = 1 (out [3], left {29, 98}) select(4, [3], [3], [3], {30, 0}) = 1 (out [3], left {29, 98}) -- nosy: +Benjamin.Ash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12502 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8094] Multiprocessing infinite loop
Philip Thiem added the comment: As an alternative, see http://bugs.python.org/issue10845 It contains a patch for the 3.X series which fixes the infinity loop. Applying it to the 2.X series will fix the issue and make a change the documentation unnecessary. -- nosy: +pthiem ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8094 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8094] Multiprocessing infinite loop
Philip Thiem added the comment: Actually sorry, now that I reread the details a second time, I'm not sure that is this the same deal. I'll just file a separate bug. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8094 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17101] Multiprocessing on Windows
New submission from Philip Thiem: http://bugs.python.org/issue10845 also applies to the 2.X series. this is multiprocessing on windows has issues with __main__.py -- components: Windows messages: 181090 nosy: pthiem priority: normal severity: normal status: open title: Multiprocessing on Windows type: behavior versions: Python 2.6, Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17101 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17101] __main__.py Multiprocessing on Windows
Changes by Philip Thiem ptth...@gmail.com: -- title: Multiprocessing on Windows - __main__.py Multiprocessing on Windows ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17101 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17098] Set __loader__ on modules imported by the C level
Brett Cannon added the comment: All cases but signal can be fixed by importlib._bootstrap._setup() by simply iterating over sys.modules and setting __loader__. Nice and simple. Thanks, abstraction! The problem is signal who gives the finger to abstraction. That module gets imported directly by C code which cheats by calling PyInit_signal() directly and then calling _PyImport_FixupBuiltin(). I tried setting __loader__ in there but I'm actually triggering a segfault in PyErr_Format()! This is probably because I/O streams are not set up yet at this point in interpreter startup. Anyway, I'm trying to simply not have the code cheat and instead just import the signal module through the proper abstractions. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17098 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17078] string.Template.safe_substitute hard-wires braces as {}
Éric Araujo added the comment: Barry, I read that passage in the PEP to explain why the default style uses ${}, but the bug here is about a Template class with an overriden placeholder pattern. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17078 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17069] HTTP result code in urllib2.urlopen() file object undocumented
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo, ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17069 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14468] Update cloning guidelines in devguide
Ezio Melotti added the comment: Because this is a patch for the devguide, so we cannot use Rietveld for the review. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14468 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17069] HTTP result code in urllib2.urlopen() file object undocumented
Changes by Senthil Kumaran sent...@uthcode.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17069 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17098] Set __loader__ on modules imported by the C level
Roundup Robot added the comment: New changeset 05747d3bcd9c by Brett Cannon in branch '3.3': Issue #17098: Make sure every module has __loader__ defined. http://hg.python.org/cpython/rev/05747d3bcd9c New changeset 1f1a1b3cc416 by Brett Cannon in branch 'default': Issue #17098: all modules should have __loader__ http://hg.python.org/cpython/rev/1f1a1b3cc416 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17098 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17098] Set __loader__ on modules imported by the C level
Brett Cannon added the comment: OK, so my solution for signal worked. All fixed now. If any other modules pop up with __loader__ not set from now on it's because they cheated on import. =) -- assignee: - brett.cannon resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17098 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17035] Use new style classes in {class, static}method examples
Éric Araujo added the comment: LGTM. -- nosy: +eric.araujo stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17035 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17099] Raise ValueError when __loader__ not defined for importlib.find_loader()
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17099 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16555] Add es_cu to locale aliases
Éric Araujo added the comment: I have a busy week-end ahead but I could sneak a little time for this. -- nosy: +doerwalter ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16555 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17083] can't specify newline string for readline for binary files
Glenn Linderman added the comment: I think Bryant's request is reasonable, for consistency in functionality. If line oriented operations are allowed on binary files, then a binary newline value should be permitted at the time of open. I think, for handling binary files, that it would also be interesting to have a version of readline that takes a binary newline file as a parameter to each readline call, because in binary files, the concept of newline can vary from section to section of the file... here, null-terminated records, there CR LF terminated encoded text records, elsewhere fixed-length records, and another place might have records delimited by some binary token of one or more bytes. Readline with a newline parameter could be useful in three of those cases, read in the fixed-length case. But this paragraph would be a new feature. However, simpler binary files, which may have only one type of terminated records, could effectively use the operations Bryant is suggesting, which seems quite reasonable to me, along with a mix of read calls for non-delimited data, fixed-length data, or data requiring complex logic to decode. -- nosy: +v+python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17083 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17083] can't specify newline string for readline for binary files
R. David Murray added the comment: Anything we do here is a new feature. I have no objection to adding features in this area myself, but I will note that I was shot down for proposing (in another issue) that the newline attribute for text files be allowed to be an arbitrary string. -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17083 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17083] can't specify newline string for readline for binary files
Bryant added the comment: While my original description of this issue discussed arbitrary strings, I'd like to limit the scope of this issue down to just supporting the newline parameter to builtin.open() for binary files, just as it's supported for regular files. This adds no real new functionality, just makes the treatment of the concept of a line consistent between binary files and regular text files, since that concept *does* exist in many cases in binary files. Given that everyone here seems to think this is at least reasonable at this point, what would the next step be given this is somewhere between a library fix and a feature addition? I haven't contributed to Python before, but the developer FAQ mentions either python-ideas or a PEP, or should this move right towards a patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17083 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6972] zipfile.ZipFile overwrites files outside destination path
Roundup Robot added the comment: New changeset 0c5fa35c9f12 by Gregory P. Smith in branch '3.2': Fixes Issue #6972: The zipfile module no longer overwrites files outside of http://hg.python.org/cpython/rev/0c5fa35c9f12 New changeset 483488a1dec5 by Gregory P. Smith in branch '3.3': Fixes Issue #6972: The zipfile module no longer overwrites files outside of http://hg.python.org/cpython/rev/483488a1dec5 New changeset 249e0b47b686 by Gregory P. Smith in branch 'default': Fixes Issue #6972: The zipfile module no longer overwrites files outside of http://hg.python.org/cpython/rev/249e0b47b686 New changeset 4d1948689ee1 by Gregory P. Smith in branch '2.7': Fixes Issue #6972: The zipfile module no longer overwrites files outside of http://hg.python.org/cpython/rev/4d1948689ee1 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6972 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17098] Set __loader__ on modules imported by the C level
Brett Cannon added the comment: Looks like I spoke too soon. I realized I had not written a test so I did it quickly and it turns out that while this is fixed for 3.3 it isn't for 3.4. -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17098 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6972] zipfile.ZipFile overwrites files outside destination path
Changes by Gregory P. Smith g...@krypto.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6972 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17098] Set __loader__ on modules imported by the C level
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17098 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17083] can't specify newline string for readline for binary files
R. David Murray added the comment: Well, it's a feature by our policy, since it currently works as documented. Probably the first thing would be to get the opinion of someone who works on the IO module, so I've nosied Antoine. Note that this was obviously a conscious design decision, as it is documented clearly. Another possible first step is the one I suggested: posting a recipe on the recipe site and seeing if there is any uptake. Python-ideas would be another option. For this level of change, I don't believe a PEP is required :) -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17083 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17100] rotating an ordereddict
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17100 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17098] Set __loader__ on modules imported by the C level
Thomas Heller added the comment: I have only tried my code with 3.4; but still get problems with the modules 'builtins' and '_frozenimportlib'. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17098 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6972] zipfile.ZipFile overwrites files outside destination path
Ralf Schmitt added the comment: does anyone know if the same issue has been fixed in the tarfile module? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6972 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12268] file readline, readlines readall methods can lose data on EINTR
Roundup Robot added the comment: New changeset a5e7b38caee2 by Gregory P. Smith in branch '2.7': Additional fix for Issue #12268: The io module file object writelines() methods http://hg.python.org/cpython/rev/a5e7b38caee2 New changeset 2fd669aa4abc by Gregory P. Smith in branch '3.2': Additional fix for Issue #12268: The io module file object writelines() methods no longer abort early when one of its write system calls is interrupted (EINTR). http://hg.python.org/cpython/rev/2fd669aa4abc New changeset 30fc620e240e by Gregory P. Smith in branch '3.3': Additional fix for issue #12268: The io module file object write methods no http://hg.python.org/cpython/rev/30fc620e240e New changeset 8f72519fd0e9 by Gregory P. Smith in branch 'default': Additional fix for issue #12268: The io module file object write methods no http://hg.python.org/cpython/rev/8f72519fd0e9 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12268 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12268] file readline, readlines readall methods can lose data on EINTR
STINNER Victor added the comment: Oh, so we can now implement a version of writelines() using writev()! 2013/2/1 Roundup Robot rep...@bugs.python.org: Roundup Robot added the comment: New changeset a5e7b38caee2 by Gregory P. Smith in branch '2.7': Additional fix for Issue #12268: The io module file object writelines() methods http://hg.python.org/cpython/rev/a5e7b38caee2 New changeset 2fd669aa4abc by Gregory P. Smith in branch '3.2': Additional fix for Issue #12268: The io module file object writelines() methods no longer abort early when one of its write system calls is interrupted (EINTR). http://hg.python.org/cpython/rev/2fd669aa4abc New changeset 30fc620e240e by Gregory P. Smith in branch '3.3': Additional fix for issue #12268: The io module file object write methods no http://hg.python.org/cpython/rev/30fc620e240e New changeset 8f72519fd0e9 by Gregory P. Smith in branch 'default': Additional fix for issue #12268: The io module file object write methods no http://hg.python.org/cpython/rev/8f72519fd0e9 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12268 ___ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12268 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12268] file readline, readlines readall methods can lose data on EINTR
Gregory P. Smith added the comment: it was easier to just take care of auditing the write calls as part of this given the code change was directly related to it. On Python 2.7 most of the write calls in the builtin file object (Objects/fileobject.c) rather than the new io module use the libc fwrite() call which, in linux man pages at least, is non-specific about what happens on EINTR (does it retry internally or does it return the number of bytes written so far?). Those could well abort leading to an error. Setting up a testcase fo to confirm that with is painful (time consuming) so I can't claim the non io module based write's do not still have an EINTR issue on 2.7. Workaround: Use the io module instead of the builtin open() or file() calls in Python 2.7. If someone can confirm that with a test case, it'd make another good issue to open. As for the writev comment... go ahead. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12268 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12268] file readline, readlines readall methods can lose data on EINTR
Changes by Gregory P. Smith g...@krypto.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12268 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17098] Set __loader__ on modules imported by the C level
Roundup Robot added the comment: New changeset 4a4688b865ff by Brett Cannon in branch '3.3': Add a test for fix of issue #17098 http://hg.python.org/cpython/rev/4a4688b865ff New changeset 19ea454ccdf7 by Brett Cannon in branch '3.3': Issue #17098: Be more stringent of setting __loader__ on early imported http://hg.python.org/cpython/rev/19ea454ccdf7 New changeset 306f066e6a33 by Brett Cannon in branch 'default': Merge w/ 3.3 more fixes thanks to issue #17098 http://hg.python.org/cpython/rev/306f066e6a33 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17098 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17098] Set __loader__ on modules imported by the C level
Brett Cannon added the comment: OK, 3.3 and 3.4 now have tests and verify everything is working fine. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17098 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17093] Make importlib.abc more inheritance-friendly
Brett Cannon added the comment: OK, rewrote that blog post as Thomas pointed out my thinking was worrying about stuff I shouldn't be: http://sayspy.blogspot.ca/2013/02/remember-to-use-super-in-your-abcs.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17093 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17098] Set __loader__ on modules imported by the C level
Thomas Heller added the comment: I confirm that the bug is fixed, my test-code works now (a modulefinder using importlib instead of imp to find modules). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17098 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17098] Set __loader__ on modules imported by the C level
Thomas Heller added the comment: Thanks for the very fast fix Brett :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17098 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17093] Make importlib.abc more inheritance-friendly
Brett Cannon added the comment: And as part of this I need to update the docstrings to mention default reactions. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17093 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13192] ImportError silences low-level OS errors
Brett Cannon added the comment: Is this still an issue in (at least) 3.4 with the new I/O exceptions? And I feel like there was another bug about this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13192 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13184] Multi-layered symlinks to python cause runtime error. sys.path is malformed.
Changes by Brett Cannon br...@python.org: -- nosy: -brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13184 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13306] Add diagnostic tools to importlib?
Brett Cannon added the comment: Did you still plan to write this code, Nick? Or were you just thinking about loud and don't need this bug here anymore? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13306 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8623] Aliasing warnings in socketmodule.c
Changes by Brett Cannon br...@python.org: -- nosy: -brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8623 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13819] _warnings settings are process-wide
Changes by Brett Cannon br...@python.org: -- nosy: -brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13819 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13829] exception error in _scproxy.so
Changes by Brett Cannon br...@python.org: -- nosy: -brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13829 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13124] Add Running a Build Slave page to the devguide
Brett Cannon added the comment: Did you want to commit this patch yourself, Eric, since you have commit privs now? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13124 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4010] configure options don't trickle down to distutils
Changes by Brett Cannon br...@python.org: -- nosy: -brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4010 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16256] permissions wrong on Mac doc dir
Roundup Robot added the comment: New changeset d64e0cf5f1a7 by Ned Deily in branch '2.7': Issue #16256: OS X installer now sets correct permissions for doc directory. http://hg.python.org/cpython/rev/d64e0cf5f1a7 New changeset e8a1b5757067 by Ned Deily in branch '3.2': Issue #16256: OS X installer now sets correct permissions for doc directory. http://hg.python.org/cpython/rev/e8a1b5757067 New changeset 1db5ed6a2dc2 by Ned Deily in branch '3.3': Issue #16256: merge from 3.2 http://hg.python.org/cpython/rev/1db5ed6a2dc2 New changeset bc2c40e84b58 by Ned Deily in branch 'default': Issue #16256: merge from 3.3 http://hg.python.org/cpython/rev/bc2c40e84b58 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16256 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8754] quote bad module name in ImportError-like messages
Brett Cannon added the comment: Over time I have fixed this issue in various patches. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8754 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12919] Control what module is imported first
Brett Cannon added the comment: This would tie into PEP 432 at this point. -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12919 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16256] permissions wrong on Mac doc dir
Ned Deily added the comment: Thanks for the report and the patch. Committed for 2.7.4, 3.2.4, and 3.3.1. -- resolution: - fixed stage: - committed/rejected status: open - closed versions: +Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16256 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14285] Traceback wrong on ImportError while executing a package
Changes by Brett Cannon br...@python.org: -- nosy: -brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14285 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11085] expose _abcoll as collections.abc
Brett Cannon added the comment: I'm closing this again as 3.3 actually starts up faster than 3.2 thanks to importlib so this slowdown is no longer noticeable. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11085 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13306] Add diagnostic tools to importlib?
Nick Coghlan added the comment: I still think it would be a good feature to offer, but have no plans to write it myself. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13306 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14580] imp.reload can fail for sub-modules
Brett Cannon added the comment: This is no longer a problem: import imp import collections import collections.abc module 'collections.abc' from '/Users/bcannon/Developer/repo/cpython/py3k/Lib/collections/abc.py' -- assignee: - brett.cannon resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14580 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12598] Move sys variable initialization from import.c to sysmodule.c
Changes by Brett Cannon br...@python.org: -- nosy: -brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12598 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13473] Add tests for files byte-compiled by distutils[2]
Changes by Brett Cannon br...@python.org: -- nosy: -brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13473 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14689] make PYTHONWARNINGS variable work in libpython
Changes by Brett Cannon br...@python.org: -- nosy: -brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14689 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14724] kill imp.load_dynamic's third argument
Brett Cannon added the comment: Turns out this was used in the wild and has now been fixed to be useful. =) -- resolution: - works for me status: open - closed superseder: - importlib.machinery.ExtensionFileLoader cannot load several modules from the same shared object ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14724 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12937] distutils2: install action should support same options as install command
Changes by Brett Cannon br...@python.org: -- nosy: -brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12937 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4011] Create DAG for PEP 101
Brett Cannon added the comment: Would this still be useful to do? Thanks to my latest import talk I have experience with graphviz but I don't want to waste my time if people don't need it. -- assignee: larry - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4011 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15344] devinabox: failure when running make_a_box multiple times
Brett Cannon added the comment: Since you got this with a clean run and I had dev_in_a_box.py work for me in November I'm closing this. -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15344 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10342] trace module cannot produce coverage reports for zipped modules
Changes by Brett Cannon br...@python.org: -- nosy: -brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15369] pybench and test.pystone poorly documented
Changes by Brett Cannon br...@python.org: -- nosy: -brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15369 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8754] quote bad module name in ImportError-like messages
Éric Araujo added the comment: Great! -- stage: patch review - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8754 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16256] permissions wrong on Mac doc dir
Christopher Barker added the comment: On Fri, Feb 1, 2013 at 2:08 PM, Ned Deily rep...@bugs.python.org wrote: Thanks for the report and the patch. Committed for 2.7.4, 3.2.4, and 3.3.1. Did I actually submit a patch? but thanks to you for getting it done -- and all else you do for pythonmac. -Chris -- resolution: - fixed stage: - committed/rejected status: open - closed versions: +Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16256 ___ -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/ORR(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception chris.bar...@noaa.gov -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16256 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17083] can't specify newline string for readline for binary files
Antoine Pitrou added the comment: I think readline() is quite clear in its current intent (it reads a line, which conventionally is delimited by '\n'). We mau want to add another method, say read_until_delimiter(), but it's not the same as readline() ;-) I think it would be best for it to be discussed, say on python-ideas (*), before any decision is made. (*) http://mail.python.org/mailman/listinfo/python-ideas -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17083 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17100] rotating an ordereddict
Ramchandra Apte added the comment: Will attach patch when I get free (10 hours from now) -- nosy: +ramchandra.apte ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17100 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17102] tarfile extract can write files outside the destination path
New submission from Gregory P. Smith: Create a malicious .tar file with entries containing absolute or relative paths and the tarfile module happily uses them as is without sanity checking. filed in response to http://bugs.python.org/issue6972 which fixed the zipfile module for this. I'm attaching an example tar file to demonstrate this (safely) but much worse things could obviously be done. -- files: absolute_path.tar messages: 181133 nosy: gregory.p.smith priority: high severity: normal status: open title: tarfile extract can write files outside the destination path type: security versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4 Added file: http://bugs.python.org/file28931/absolute_path.tar ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17102 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6972] zipfile.ZipFile overwrites files outside destination path
Gregory P. Smith added the comment: yes, tarfile appears to have the same problem. http://bugs.python.org/issue17102 filed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6972 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17097] multiprocessing BaseManager serve_client() does not check EINTR on recv
Changes by Gregory P. Smith g...@krypto.org: -- title: baseManager serve_client() not check EINTR when recv request - multiprocessing BaseManager serve_client() does not check EINTR on recv ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17097 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13192] ImportError silences low-level OS errors
Eric Snow added the comment: Are you thinking of issue 15833? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13192 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13124] Add Running a Build Slave page to the devguide
Eric Snow added the comment: Yeah, at some point I will. :) I've been pretty focused on implementing a C-OrderedDict, which I'm (hopefully) wrapping up pretty soon. Once that happens I'm going to revisit a bunch of the open tickets I have. If you want to push this sooner than that, feel free. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13124 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17102] tarfile extract can write files outside the destination path
Changes by Ralf Schmitt python-b...@systemexit.de: -- nosy: +schmir ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17102 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15587] IDLE is pixelated on the Macbook Pro with Retina Display
Roundup Robot added the comment: New changeset 2274f3196a44 by Ned Deily in branch '2.7': Issue #15587: Enable Tk high-resolution text rendering on Macs with http://hg.python.org/cpython/rev/2274f3196a44 New changeset 7dfd84021494 by Ned Deily in branch '3.2': Issue #15587: Enable Tk high-resolution text rendering on Macs with http://hg.python.org/cpython/rev/7dfd84021494 New changeset 8fbab6648309 by Ned Deily in branch '3.3': Issue #15587: merge from 3.2 http://hg.python.org/cpython/rev/8fbab6648309 New changeset d8dcf87b8e49 by Ned Deily in branch 'default': Issue #15587: merge from 3.3 http://hg.python.org/cpython/rev/d8dcf87b8e49 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15587 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13192] ImportError silences low-level OS errors
Antoine Pitrou added the comment: In 3.3 and 3.4, exceptions are not silenced anymore: import resource resource.setrlimit(resource.RLIMIT_NOFILE, (2, 100)) import encodings.idna Traceback (most recent call last): File stdin, line 1, in module File frozen importlib._bootstrap, line 1584, in _find_and_load File frozen importlib._bootstrap, line 1551, in _find_and_load_unlocked File frozen importlib._bootstrap, line 586, in _check_name_wrapper File frozen importlib._bootstrap, line 1049, in load_module File frozen importlib._bootstrap, line 1030, in load_module File frozen importlib._bootstrap, line 562, in module_for_loader_wrapper File frozen importlib._bootstrap, line 883, in _load_module File frozen importlib._bootstrap, line 1008, in get_code File frozen importlib._bootstrap, line 1058, in get_data OSError: [Errno 24] Too many open files: '/home/antoine/cpython/default/Lib/encodings/idna.py' Given that fixing the issue in bugfix branches would be a slight behaviour change, I think we can close this issue. -- resolution: - out of date stage: - committed/rejected status: open - closed versions: +Python 2.7 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13192 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15587] IDLE is pixelated on the Macbook Pro with Retina Display
Ned Deily added the comment: I've updated the plists for both IDLE.app and the framework Python.app to enable the high-resolution rendering. That should affect IDLE.app and bin/idle and any other Tkinter-based program, as long as they all are being run from a framework build of Python such as provided by the python.org OS X installers. Again, since I don't have access to a Retina display Mac, I cannot test the changes myself. The fixes will appear in the upcoming 2.7.4 and 3.2.4 releases as well as 3.3.1 and 3.4.0. It would be nice if someone with a Retina Mac could install one or both of the release candidates for 2.7.4 and 3.2.4 when available and report the results of testing. -- resolution: - fixed stage: needs patch - committed/rejected status: open - pending type: enhancement - behavior versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15587 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17100] rotating an ordereddict
Serhiy Storchaka added the comment: It is trivial. def rotate(od, n): for i in range(n): k, v = od.popitem(False) od[k] = v And those functions look too specialized. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17100 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16601] Restarting iteration over tarfile continues from where it left off.
Serhiy Storchaka added the comment: Michael, what's the status of your contributor form? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16601 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17102] tarfile extract can write files outside the destination path
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17102 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com