[issue1975] signals in thread problem
Andriy Pylypenko added the comment: I'm sorry I've forgotten to add one important thing to the script - the t.setDaemon(True) call, as without it the main thread will wait for the user thread to stop explicitly. So the correct script is: some_time = 600 # seconds class MyThread(Thread): def run(self): while (True): time.sleep(some_time) t = MyThread() t.setDaemon(True) t.start() while(True): select.select(None, None, None, some_time) __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1975 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2004] tarfile extractall() allows local attacker to overwrite files while extracting
Lars Gustäbel added the comment: This was fixed in the trunk in r53526 about a year ago following issue1507247. I did not backport it to 2.5 at that time, because it would have changed existing behaviour. If there are no objections I could do this now. The os.mkdir() call in TarFile.makedir() uses the default mode, but the real mode from the TarInfo object is applied two instructions later in TarFile._extract_member(). I have nothing against using 0700 in TarFile.makedir(). The os.makedirs() call in _extract_member() (trunk) is fine. It creates missing directories that are not part of the archive with default permissions, that is mode 0777 with the current umask masked out. I attached a patchset against the release25-maint branch and the trunk that is supposed to fix the issue and harmonizes the code between the two versions. Added file: http://bugs.python.org/file9353/tarfile-diffs.tar.gz __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2004 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1183] race in SocketServer.ForkingMixIn.collect_children
David Ripton added the comment: Just noticed that this is a partial duplicate of issue 1540386. -- versions: +Python 2.5 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1183 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1657] [patch] epoll and kqueue wrappers for the select module
Changes by Giampaolo Rodola': -- nosy: +giampaolo.rodola __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1657 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2001] Pydoc interactive browsing enhancement
Changes by Ron Adam: -- versions: +Python 2.6 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2001 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1757072] Zipfile robustness
Chris Mellon added the comment: I agree that the zipfile is out of spec. Here are my arguments in favor of making the change anyway: Existing zip tools like 7zip, pkzip, and winzip handle these files as expected As far as I know, it won't break any valid zipfiles. Because the fix necessary is buried inside a private function in the zipfile module, it's difficult to monkey-patch the behavior into place and it's quite hard to figure out what needs to be done. _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1757072 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1975] signals in thread problem
Guido van Rossum added the comment: Well okay than I can confirm that OSX is *not* affected by this OS bugginess. -- keywords: +patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1975 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2006] asyncore loop lacks timers and work tasks
Christian Heimes added the comment: If you are going to spend some time with async event io you may be interested in my patch #1657. It adds epoll and kqueue. -- nosy: +tiran priority: - normal __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2006 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2007] cookielib lacks FileCookieJar class for Internet Explorer
New submission from Bill Janssen: cookielib contains an implementation of FileCookieJar for Mozilla Firefox, which will work with most of the various Mozilla browsers, but no implementation for Internet Explorer, standard on Windows and used by some 80% of computer users. -- components: Library (Lib) messages: 62046 nosy: janssen severity: normal status: open title: cookielib lacks FileCookieJar class for Internet Explorer type: behavior versions: Python 2.6, Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2007 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2008] cookielib lacks FileCookieJar class for Safari
Changes by Georg Brandl: -- type: behavior - rfe __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2008 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2007] cookielib lacks FileCookieJar class for Internet Explorer
Changes by Georg Brandl: -- type: behavior - rfe __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2007 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1090076] Defaults in ConfigParser.get overrides section values
Raghuram Devarakonda added the comment: The patch cfgdoc.diff contains changes to rst as well as to the doc string. Can some one please review it? Added file: http://bugs.python.org/file9354/cfgdoc.diff _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1090076 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__
Changes by Alexandre Vassalotti: -- nosy: +alexandre.vassalotti _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1692335 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2008] cookielib lacks FileCookieJar class for Safari
Bill Janssen added the comment: I have code to read Safari cookies, but no code to write them. I'll have to look at the FileCookieJar interface. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2008 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2004] tarfile extractall() allows local attacker to overwrite files while extracting
Martin v. Löwis added the comment: Even though it does change existing behaviour, can anybody imagine a case where extracting a tarfile now fails when it previously succeeds? If not, I would consider this a security-relevant fix, and thus a candidate for a backport. Perhaps this should be raised with [EMAIL PROTECTED] __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2004 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1572320] parser stack overflow
Ralf Schmitt added the comment: this is a duplicate of http://bugs.python.org/issue21. Please close. -- nosy: +schmir _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1572320 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1750076] Python 2.5+ skips while statements in debuggers
Amaury Forgeot d'Arc added the comment: Committed r60579 in release25-maint. -- status: pending - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1750076 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1750076] Python 2.5+ skips while statements in debuggers
Nick Coghlan added the comment: Very nice solution Amaury. As far as I can tell, this should be backported to 2.5 as well. _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1750076 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1572320] parser stack overflow
Changes by Amaury Forgeot d'Arc: -- resolution: - duplicate status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1572320 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1750076] Python 2.5+ skips while statements in debuggers
Amaury Forgeot d'Arc added the comment: I finally got rid of the entire hack, by removing the compression of the lnotab: now each (effective) call to compiler_set_lineno() will generate an entry in lnotab. The patch is even simpler. the lnotab will grow a little, but only when several statements are on the same line: semicolons, and also one-line suites (like if x: return). Commited r60575. -- status: open - pending _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1750076 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2009] Grammar change to prevent shift/reduce problem with varargslist
New submission from Andrew Dalke: I wrote a translator from the CFG used in the Grammar file into a form for PLY. I found one problem with varargslist: ((fpdef ['=' test] ',')* ('*' NAME [',' '**' NAME] | '**' NAME) | fpdef ['=' test] (',' fpdef ['=' test])* [',']) This grammar definition is ambiguous until the presence/lack of a *. PLY complains: state 469 (28) varargslist - fpdef EQUAL test COMMA . (32) varargslist_star - fpdef EQUAL test COMMA . (35) varargslist_star3 - COMMA . fpdef (36) varargslist_star3 - COMMA . fpdef EQUAL test (39) fpdef - . NAME (40) fpdef - . LPAR fplist RPAR ! shift/reduce conflict for NAME resolved as shift. ! shift/reduce conflict for LPAR resolved as shift. RPARreduce using rule 28 (varargslist - fpdef EQUAL test COMMA .) COLON reduce using rule 28 (varargslist - fpdef EQUAL test COMMA .) STARreduce using rule 32 (varargslist_star - fpdef EQUAL test COMMA .) DOUBLESTAR reduce using rule 32 (varargslist_star - fpdef EQUAL test COMMA .) NAMEshift and go to state 165 LPARshift and go to state 163 ! NAME[ reduce using rule 32 (varargslist_star - fpdef EQUAL test COMMA .) ] ! LPAR[ reduce using rule 32 (varargslist_star - fpdef EQUAL test COMMA .) ] fpdef shift and go to state 515 My fix was to use this definition when I did the translation. varargslist: ((fpdef ['=' test] (',' fpdef ['=' test])* (',' '*' NAME [',' '**' NAME] | ',' '**' NAME | [','])) | ('*' NAME [',' '**' NAME]) | ('**' NAME)) So far I've not found a functional difference between these two definitions, and the only change to ast.c is to update the comment based on this section. By making this change it would be easier for the handful of people who write parsers for Python based on a yacc-like look-ahead(1) parser to use that file more directly. -- components: None messages: 62055 nosy: dalke severity: minor status: open title: Grammar change to prevent shift/reduce problem with varargslist type: rfe __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2009 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2006] asyncore loop lacks timers and work tasks
Giampaolo Rodola' added the comment: I'm not sure to understand what do you mean by work tasks. Do you need them to have ssl module work with asyncore? I've been reading asyncore lately, and feel that it's showing its age. Absolutely. I'd have some ideas about some asyncore/chat enhancements, including writing a poller suitable with epoll and kqueue, but it seems there are not enough people who cares enough about asyncore. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2006 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2010] Link to howto section on re module documentation incorrect
New submission from Karl Norby: The link on http://docs.python.org/lib/re-syntax.html; to the HOWTO section of documentation redirects incorrectly to http://docs.python.org/dev/howto/index.html/;. It should be http://docs.python.org/dev/howto/; or http://docs.python.org/dev/howto/index.html;. -- components: Documentation messages: 62056 nosy: knorby severity: minor status: open title: Link to howto section on re module documentation incorrect versions: Python 2.5 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2010 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2011] compiler.parse(1; ) adds unexpected extra Discard(Const(None)) to parse tree
New submission from Andrew Dalke: Python 2.6a0 (trunk:60565M, Feb 4 2008, 01:21:28) [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin Type help, copyright, credits or license for more information. from compiler import parse parse(1;) Module(None, Stmt([Discard(Const(1)), Discard(Const(None))])) I did not expect the Discard(Const(None)). Instead, I expected Module(None, Stmt([Discard(Const(1))])) -- components: Library (Lib) messages: 62057 nosy: dalke severity: minor status: open title: compiler.parse(1;) adds unexpected extra Discard(Const(None)) to parse tree type: behavior versions: Python 2.6 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2011 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2009] Grammar change to prevent shift/reduce problem with varargslist
Changes by Christian Heimes: -- components: +Interpreter Core -None nosy: +ncoghlan, nnorwitz priority: - normal versions: +Python 2.6, Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2009 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2010] Link to howto section on re module documentation incorrect
Changes by Christian Heimes: -- assignee: - georg.brandl nosy: +georg.brandl priority: - low type: - behavior __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2010 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2011] compiler.parse(1; ) adds unexpected extra Discard(Const(None)) to parse tree
Changes by Christian Heimes: -- components: +Interpreter Core nosy: +gvanrossum, ncoghlan, nnorwitz priority: - low __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2011 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2012] Add migration step for DictMixin - collections.MutableMapping
New submission from Christian Heimes: See r60577 -- assignee: collinwinter components: 2to3 (2.x to 3.0 conversion tool) messages: 62058 nosy: collinwinter, tiran priority: normal severity: normal status: open title: Add migration step for DictMixin - collections.MutableMapping type: rfe versions: Python 2.6, Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2012 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2011] compiler.parse(1; ) adds unexpected extra Discard(Const(None)) to parse tree
Guido van Rossum added the comment: What on earth is this about? __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2011 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2013] Long object free list optimization
New submission from Christian Heimes: The patch adds a free list of long objects with size 1 or -1. It has quite a tremendous effect on code like list(range(1000)). $ ./python -m timeit for i in range(100): list(range(1000)) Without patch: 10 loops, best of 3: 79 msec per loop With patch: 10 loops, best of 3: 20.8 msec per loop -- components: Interpreter Core files: long_freelist.patch keywords: patch messages: 62060 nosy: tiran priority: normal severity: normal status: open title: Long object free list optimization versions: Python 2.6, Python 3.0 Added file: http://bugs.python.org/file9355/long_freelist.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2013 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2011] compiler.parse(1; ) adds unexpected extra Discard(Const(None)) to parse tree
Andrew Dalke added the comment: This really is a minor point. I don't track the 3K list and I see now that the compiler module won't be in Python 3k - good riddance - so feel free to discard this as well as the other open compiler module bugs. I want to experiment with adding instrumentation for branch coverage. To do that I want to get the character ranges of each term in the AST. The Python compiler module doesn't keep track of that so I'm developing a new parser based on PLY. I've developed it and I'm now cross-checking the generated ASTs to verify they are identical. In this case the compiler module generates an extra node in the AST so I had to add backwards compatibility support. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2011 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue846388] Check for signals during regular expression matches
Guido van Rossum added the comment: Backported to 2.5.2 as r60576. (The other deltas are not backported.) Tracker [EMAIL PROTECTED] http://bugs.python.org/issue846388 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com