[issue1985] Bug/Patch: Problem with xml/__init__.py when using freeze.py

2008-02-05 Thread Toni Brkic
Toni Brkic added the comment: I still think the __init__ file should be changed and use the extend_path function instead of extend. Se below for answer I got on the python list. The extend_path function (found in the pkgutil standard module) can handle this. http://docs.python.org/lib/modu

[issue2017] Calendar.yeardatescalendar etc. do not take 'month' argument

2008-02-05 Thread MATSUI Tetsushi
New submission from MATSUI Tetsushi: Similar to the issue 1046, The documentation of Calendar.year*calendar incorrectly have 'month' argument. >>> cal = calendar.Calendar(5) >>> cal.yeardatescalendar(2008,2,3) Traceback (most recent call last): File "", line 1, in TypeError: yeardatescalendar

[issue705836] struct.pack of floats in non-native endian order

2008-02-05 Thread Mark Dickinson
Mark Dickinson added the comment: I'm stealing this issue from Tim, and downgrading the priority to normal (it was the original bug that was high priority). -- assignee: tim_one -> marketdickinson priority: high -> normal versions: +Python 2.6, Python 3.0 __

[issue2016] Crash when modifying the **kwargs passed to a function.

2008-02-05 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc: The following script exploits a comment in funcobject.c: /* XXX This is broken if the caller deletes dict items! */ Because the code only borrows references to the items, it is possible to have them destroyed before they are copied into the called fram

[issue2015] Possible optimisations in kwargs handling

2008-02-05 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc: This is a reminder for the comment on top of ceval.c: /* XXX TO DO: XXX speed up searching for keywords by using a dictionary XXX document it! */ It was also suggested to disallow subclasses of str in variable names, in order to optimize compari

[issue1722344] Thread shutdown exception in Thread.notify()

2008-02-05 Thread Brett Cannon
Brett Cannon added the comment: OK, I will re-open to see if some other core developer wants to take this on, but personally I am passing. -- resolution: wont fix -> status: closed -> open _ Tracker <[EMAIL PROTECTED]>

[issue1722344] Thread shutdown exception in Thread.notify()

2008-02-05 Thread Adam Olsen
Adam Olsen added the comment: I disagree. sys.exit() attempts to gracefully shutdown the interpreter, invoking try/finally blocks and the like. If you want to truly force shutdown you should use os.abort() or os._exit(). Note that, as python doesn't call a main function, you have to use sys.ex

[issue2014] xmlrpclib cannot send datetime objects with dates before 1900

2008-02-05 Thread Ralf Schmitt
New submission from Ralf Schmitt: xmlrpclib uses datetime.strftime which cannot handle dates before 1900. this patch adds a custom date formatting function, which does not have this restriction. It also contains 2 additional unit tests, which both fail with the unpatched version. -- comp

[issue1722344] Thread shutdown exception in Thread.notify()

2008-02-05 Thread Brett Cannon
Brett Cannon added the comment: Hold on, why is that wrong? What if the threads block forever, preventing shutdown? sys.exit() is not exactly some namby-pamby function but a forced shutdown of the interpreter that should guarantee that the interpreter quits. Changing its semantics now would take

[issue1722344] Thread shutdown exception in Thread.notify()

2008-02-05 Thread Adam Olsen
Adam Olsen added the comment: To put it another way: SystemExit turns non-daemon threads into daemon threads. This is clearly wrong. Brent, could you reopen the bug? _ Tracker <[EMAIL PROTECTED]>

[issue1722344] Thread shutdown exception in Thread.notify()

2008-02-05 Thread Adam Olsen
Adam Olsen added the comment: Py_Main calls WaitForThreadShutdown before calling Py_Finalize, which should wait for all these threads to finish shutting down before it starts wiping their globals. However, if SystemExit is raised (such as via sys.exit()), Py_Exit is called, and it directly calls

[issue1722344] Thread shutdown exception in Thread.notify()

2008-02-05 Thread Brett Cannon
Brett Cannon added the comment: I think the general idea of the problem has been stated, but I figured I would state the official issue. When Python begins to shutdown it takes each module and sets each variable in the global namespace to None. If a thread has not terminated before the interpret

[issue1951] test_wave.py converted to unittest

2008-02-05 Thread Facundo Batista
Facundo Batista added the comment: Applied in r60602. Thank you very much! Note that I had to apply the patch by hand... I think that the problem was in the header: if I get a svn diff, it starts differently than you patch: [EMAIL PROTECTED]:~/devel/reps/python/trunk$ svn diff -r 60601 Lib/test

[issue2006] asyncore loop lacks timers and work tasks

2008-02-05 Thread Bill Janssen
Bill Janssen added the comment: *I'm not sure to understand what do you mean by "work tasks".* They're low-priority tasks that need to get run sometime, but aren't associated with an input source. In ILU, we had a function called "do_soon", and you could call it with a function that should be c

[issue1947] Exception exceptions.AttributeError '_shutdown' in

2008-02-05 Thread Facundo Batista
Facundo Batista added the comment: This is not a bug report. I've run your code, didn't see any exception, and works as expected (in linux and win2k). Please, if still happens to you, provide what are you doing to reproduce the issue, what do you expect to happen, and the system where you're ru

[issue1946] re.search hangs on this

2008-02-05 Thread Facundo Batista
Facundo Batista added the comment: [EMAIL PROTECTED]:~$ time python -c "import re;re.search(r'a(b[^b]*b|[^c])*cxxx','abbcacacabbcabbcacabbcacac')" real0m2.510s user0m2.308s sys 0m0.028s [EMAIL PROTECTED]:~$ This is a Python 2.5.1 (r251:54863, Oct

[issue1722344] Thread shutdown exception in Thread.notify()

2008-02-05 Thread James Cooper
James Cooper added the comment: Though these exceptions while shutting down are mostly harmless, they are very noisy and must be squelched in a production application. Here is the patch which we at Solido Design (www.solidodesign.com) are using to hide the exceptions. Note that this doesn't fix

[issue619222] os.listdir-alike that includes file type

2008-02-05 Thread Raghuram Devarakonda
Raghuram Devarakonda added the comment: No activity for long time. -- nosy: +draghuram status: open -> closed Tracker <[EMAIL PROTECTED]> __

[issue1391] Adds the .compact() method to bsddb db.DB objects

2008-02-05 Thread Ismail Donmez
Changes by Ismail Donmez: -- nosy: +cartman __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue2009] Grammar change to prevent shift/reduce problem with varargslist

2008-02-05 Thread Nick Coghlan
Nick Coghlan added the comment: Sorry, I misread slightly (or else just got confused as to which of the 3 Grammar files I was looking at on my local machine). What you've posted already is indeed the relevant change for 2.6 - it's only 3.0 that is slightly different because it allows the definiti

[issue2004] tarfile extractall() allows local attacker to overwrite files while extracting

2008-02-05 Thread Georg Brandl
Georg Brandl added the comment: Closing as fixed. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __

[issue2004] tarfile extractall() allows local attacker to overwrite files while extracting

2008-02-05 Thread Lars Gustäbel
Lars Gustäbel added the comment: I took the liberty of applying my patches to the trunk (r60588) and the release25-maint branch (r60589). __ Tracker <[EMAIL PROTECTED]> __ _

[issue2010] Link to howto section on re module documentation incorrect

2008-02-05 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r60590. -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bu

[issue2011] compiler.parse("1; ") adds unexpected extra Discard(Const(None)) to parse tree

2008-02-05 Thread Nick Coghlan
Nick Coghlan added the comment: Marking this as Won't Fix. I'd suggest looking at the _ast module (http://docs.python.org/dev/library/_ast.html) as a reference rather than the compiler module. The maintenance on the latter has been sketchy at best, and as you note, it is scheduled for a well ear

[issue2009] Grammar change to prevent shift/reduce problem with varargslist

2008-02-05 Thread Andrew Dalke
Andrew Dalke added the comment: I've been working from the Grammar file from CVS for 2.6 ... I thought. For example, I see "# except_clause: 'except' [test [('as' | ',') test]]" which is a 2.6-ism. "svn log" says it hasn't changed since 2007-05-19, when except/as was added. What did I miss?

[issue2009] Grammar change to prevent shift/reduce problem with varargslist

2008-02-05 Thread Nick Coghlan
Nick Coghlan added the comment: I don't have any objection in principle, but I would like to see the updated rules based on the 2.6 and 3.0 Grammar files (they should only be minor variants of what you have already done for 2.5) __ Tracker <[EMAIL PROTECTED]>

[issue2004] tarfile extractall() allows local attacker to overwrite files while extracting

2008-02-05 Thread Lars Gustäbel
Lars Gustäbel added the comment: os.mkdir() and os.makedirs() always apply the current umask to the mode. We cannot be responsible for poorly chosen umasks. In general, tarfile and zipfile create directories with reasonable modes. So, IMO the zipfile-dirperm.diff is not needed and Michael's probl

[issue2012] Add migration step for DictMixin -> collections.MutableMapping

2008-02-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: The difference is the underlying methods. DictMixin depended on getitem, setitem, delitem, and keys. MutableMapping doesn't need keys but wants __iter__ and __len__. Also, DictMixin did not insist on all of those being present, while MutableMapping won't