[issue2018] TextCalendar.formatmonth is not influenced by setfirstweekday

2008-02-06 Thread MATSUI Tetsushi
New submission from MATSUI Tetsushi: TextCalendar.formatmonth is not influenced by setfirstweekday, but the argument of constructor. Documentation: Depends on the first weekday as set by setfirstweekday(). actual behavior: cal0 = calendar.TextCalendar() print cal0.formatmonth(2008, 2)

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

2008-02-06 Thread Thomas Dybdahl Ahle
Thomas Dybdahl Ahle added the comment: which means no global namespace access Does that mean that you cannot use len and range in a Thread? -- nosy: +lobais _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1722344

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

2008-02-06 Thread Christian Heimes
Christian Heimes added the comment: Does your patch also work on systems which don't allow negative values for time_t? -- keywords: +patch nosy: +tiran priority: - normal type: behavior - rfe versions: +Python 3.0 -Python 2.5 __ Tracker [EMAIL

[issue2015] Possible optimisations in kwargs handling

2008-02-06 Thread Christian Heimes
Changes by Christian Heimes: -- components: +Interpreter Core priority: - normal __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2015 __ ___ Python-bugs-list mailing

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

2008-02-06 Thread Christian Heimes
Changes by Christian Heimes: -- components: +Interpreter Core priority: - high __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2016 __ ___ Python-bugs-list mailing list

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

2008-02-06 Thread Christian Heimes
Changes by Christian Heimes: -- assignee: - georg.brandl keywords: +easy nosy: +georg.brandl priority: - normal type: - behavior __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2017 __

[issue2018] TextCalendar.formatmonth is not influenced by setfirstweekday

2008-02-06 Thread Christian Heimes
Changes by Christian Heimes: -- keywords: +easy priority: - normal type: - behavior __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2018 __ ___ Python-bugs-list

[issue2007] cookielib lacks FileCookieJar class for Internet Explorer

2008-02-06 Thread Christian Heimes
Christian Heimes added the comment: From the doc string: note that BSDDBCookieJar and the MSIE* classes are not distributed with the Python standard library, but are available from http://wwwsearch.sf.net/ -- nosy: +tiran priority: - normal __ Tracker

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

2008-02-06 Thread Ralf Schmitt
Ralf Schmitt added the comment: Well, all it basically does is changing calls to obj.strftime to a custom string formatting function (where obj is a datetime.datetime, datetime.date or datetime.time). These strftime calls are made during object marshalling. So, all the objects to be marshalled

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

2008-02-06 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc: -- nosy: +amaury.forgeotdarc _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1722344 _ ___ Python-bugs-list mailing list

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

2008-02-06 Thread Walter Dörwald
Walter Dörwald added the comment: Fixed in r60618 (trunk) and r60619 (release25-maint) -- nosy: +doerwalter resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2017 __

[issue2018] TextCalendar.formatmonth is not influenced by setfirstweekday

2008-02-06 Thread Walter Dörwald
Walter Dörwald added the comment: setfirstweekday() isn't supposed to have any influence on calendar objects created explicitely. The function setfirstweekday() is only for the module level interface. The documentation is wrong here. However you *can* change the first weekday with the

[issue2019] API to clear most free lists

2008-02-06 Thread Christian Heimes
New submission from Christian Heimes: As discussed at http://permalink.gmane.org/gmane.comp.python.python-3000.devel/11694 the patch adds several PyName_ClearFreelist() functions and extends sys._compact_freelists() to clear all free lists. -- components: Interpreter Core files:

[issue419153] Issue warning when LC_NUMERIC is not C

2008-02-06 Thread Raghuram Devarakonda
Raghuram Devarakonda added the comment: Closing as there is no activity for long time. -- nosy: +draghuram status: open - closed Tracker [EMAIL PROTECTED] http://bugs.python.org/issue419153

[issue1682] Move Demo/classes/Rat.py to Lib/rational.py and fix it up.

2008-02-06 Thread Facundo Batista
Facundo Batista added the comment: I'm +0 to make Decimal(Rational(x,y)) available. I'd make it something like: Decimal(R) == Decimal(R.numerator) / Decimal(R.denominator) Note, as Raymond says, that this division implies the use of the context. So the following will NOT be true: R ==

[issue2018] TextCalendar.formatmonth is not influenced by setfirstweekday

2008-02-06 Thread MATSUI Tetsushi
MATSUI Tetsushi added the comment: Thank you for the clarification. But then, where is the documentation about the setfirstweekday() method? __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2018 __

[issue2020] _sha256 module missing if openssl is not in a normal directory.

2008-02-06 Thread Peter Saunders
New submission from Peter Saunders: When compiling python 2.5.1 on Solaris 10 (sparc and x86), with openssl 0.9.8e - test_md5 fails with No module named _sha256. (As does doing an import md5) When compiling, setup.dist was modified, the ssl parts were uncommented, and modified to use the

[issue2021] Turn NamedTemporaryFile into a context manager

2008-02-06 Thread Alexander Belopolsky
New submission from Alexander Belopolsky: In the spirit of files becoming context managers in 2.5, the attached patch defines __enter__ and __exit__ methods for tempfile.NamedTemporaryFile. BTW, I was not able to add a patch keyword which seems appropriate here. -- components: Library

[issue2021] Turn NamedTemporaryFile into a context manager

2008-02-06 Thread Raghuram Devarakonda
Changes by Raghuram Devarakonda: -- keywords: +patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2021 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue2018] TextCalendar.formatmonth is not influenced by setfirstweekday

2008-02-06 Thread MATSUI Tetsushi
MATSUI Tetsushi added the comment: There is another wrong documentation about firstweekday. In the part of Calendar.iterweekdays, a method firstweekday appered. But indeed it means the method getfirstweekday(), since firstweekday is merely an uncallable integer attribute of Calendar objects.

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

2008-02-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It also appears that the tuple and dict checks in function_call are redundant. If there is a use case that results in function_call getting anything (non null) other than dict and tuple in arg and kw, I don't think silently ignoring such arguments is the

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

2008-02-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This could be turned into an assertion. But beware that some extension writers may use code like PyObject_Call(callable, args, Py_None) which works perfectly today. __ Tracker [EMAIL PROTECTED]

[issue2013] Long object free list optimization

2008-02-06 Thread Christian Heimes
Christian Heimes added the comment: The updated patch limits the free list. -- type: - rfe Added file: http://bugs.python.org/file9361/py3k_longfreelist.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2013

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

2008-02-06 Thread Brett Cannon
Brett Cannon added the comment: which means no global namespace access Does that mean that you cannot use len and range in a Thread? No, it means you have to be careful if you do. Shutting down properly will take care of things. Otherwise you need to save a reference locally (either on an

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

2008-02-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Sorry, please ignore my last comment about arg. The null and tuple checks are for argdefs, not arg. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2016 __

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

2008-02-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: According to http://docs.python.org/api/object.html, PyObject* PyObject_Call(PyObject *callable_object, PyObject *args, PyObject *kw) Return value: New reference. Call a callable Python object callable_object, with arguments given by the

[issue1979] Make Decimal comparisons with NaN less arbitrary

2008-02-06 Thread Facundo Batista
Facundo Batista added the comment: I'm +0 regarding this. If this will go in, a comment should explicit all this in the code, as this behaviour doesn't come from Decimal spec or the PEP. Thanks! __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1979

[issue2020] _sha256 module missing if openssl is not in a normal directory.

2008-02-06 Thread Christian Heimes
Changes by Christian Heimes: -- priority: - normal type: - rfe __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2020 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue2021] Turn NamedTemporaryFile into a context manager

2008-02-06 Thread Christian Heimes
Christian Heimes added the comment: Thanks for the patch! It even has a unit test, very good. :) The __future__ statement isn't necessary for Python 2.6. The with statement is always available. -- nosy: +tiran priority: - normal type: behavior - rfe __

[issue2020] _sha256 module missing if openssl is not in a normal directory.

2008-02-06 Thread Martin v. Löwis
Martin v. Löwis added the comment: You need to add _hashopenssl to Setup.dist/Setup.local; then it should provide the missing module. Apparently, when _hashopenssl was added, nobody put it into Setup.dist. Once you have tested an appropriate change to Setup.dist, please provide it as a patch.

[issue1951] test_wave.py converted to unittest

2008-02-06 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: You're right. It seems that TortoiseSVN generated diff files are different than using the original svn cmd line tool (probably I'm using TortoiseSVN in the wrong way). I'll update the other patches. __ Tracker [EMAIL

[issue1960] test_gdbm.py converted to unittest

2008-02-06 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: The diff file in attachment was generated by using TortoiseSVN and it seems to be different than using svn diff. The new diff file is in attachment. Added file: http://bugs.python.org/file9363/test_gdbm.diff __ Tracker [EMAIL

[issue1959] test_contains.py converted to unittest

2008-02-06 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: The diff file in attachment was generated by using TortoiseSVN and it seems to be different than using svn diff. The new diff file is in attachment. Added file: http://bugs.python.org/file9364/test_contains.diff __ Tracker

[issue2007] cookielib lacks FileCookieJar class for Internet Explorer

2008-02-06 Thread Bill Janssen
Bill Janssen added the comment: Yes, I saw that, but it doesn't really help. Batteries not included. It suggests an approach to addressing this problem, though: see if the author will contribute the code under an appropriate licence. I intend to write an instance of FileCookieJar for Safari.

[issue1952] test_select.py converted to unittest

2008-02-06 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: In attachment is the patch including the sys.platform change discussed above. Added file: http://bugs.python.org/file9365/test_select.diff __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1952

[issue1949] test_ntpath.py converted to unittest

2008-02-06 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: The diff file in attachment was generated by using TortoiseSVN and it seems to be different than using svn diff. The new diff file is in attachment. Added file: http://bugs.python.org/file9366/test_ntpath.diff __ Tracker

[issue2022] test_al converted to unittest

2008-02-06 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola': In attachment. -- files: test_al.diff messages: 62119 nosy: giampaolo.rodola severity: normal status: open title: test_al converted to unittest Added file: http://bugs.python.org/file9367/test_al.diff __ Tracker

[issue1959] test_contains.py converted to unittest

2008-02-06 Thread Facundo Batista
Facundo Batista added the comment: Commited in r60622. Thank you!! -- nosy: +facundobatista resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1959 __

[issue2022] test_al converted to unittest

2008-02-06 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola': -- components: +Tests type: - rfe versions: +Python 2.6, Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2022 __ ___

[issue2023] test_cd converted to unittest

2008-02-06 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola': In attachment. All existent tests are unchanged. -- components: Tests files: test_cd.diff messages: 62121 nosy: facundobatista, giampaolo.rodola severity: normal status: open title: test_cd converted to unittest type: rfe versions: Python 2.6,

[issue1916] Add inspect.isgenerator

2008-02-06 Thread Guilherme Polo
Guilherme Polo added the comment: Is this wanted at all ? After checking http://www.python.org/dev/summary/2006-06-01_2006-06-15/#inspect-isgenerator that points to: http://mail.python.org/pipermail/python-dev/2006-May/065334.html

[issue908316] pdb should hash stdout

2008-02-06 Thread Guilherme Polo
Guilherme Polo added the comment: Isn't this fixed on trunk already ? Shouldn't this be marked as closed ? -- nosy: +gpolo Tracker [EMAIL PROTECTED] http://bugs.python.org/issue908316

[issue2024] test_gl.py converted to unittest

2008-02-06 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola': In attachment. All existing tests are unchanged. -- components: Tests files: test_gl.diff messages: 62124 nosy: facundobatista, giampaolo.rodola severity: normal status: open title: test_gl.py converted to unittest type: rfe versions: Python 2.6

[issue2006] asyncore loop lacks timers and work tasks

2008-02-06 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I still don't get it. Maybe you're talking about something like call a function at the next select() loop which in Twisted is equal to: reactor.callLater(0, something) By using my patched asyncore you can do the same with: self.call_later(0, something)

[issue1979] Make Decimal comparisons with NaN less arbitrary

2008-02-06 Thread Mark Dickinson
Mark Dickinson added the comment: Okay: I checked in this change in r60630. The checkin includes comments in the code and an extra paragraph describing this behavior in the documentation. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1979

[issue2025] tuples are instances of collections.Sequence but do not support count() and index()

2008-02-06 Thread Raymond Hettinger
New submission from Raymond Hettinger: Remineder to self to add the two missing methods. http://mail.python.org/pipermail/python-3000/2008-February/012021.html -- assignee: rhettinger components: Interpreter Core messages: 62127 nosy: rhettinger severity: normal status: open title:

[issue2026] test_largefile.py converted to unittest

2008-02-06 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola': In attachment. The original tests are unchanged. Tested under Windows XP and Linux Ubuntu 7.04. -- components: Tests files: test_largefile.diff messages: 62128 nosy: facundobatista, giampaolo.rodola severity: normal status: open title:

[issue2025] tuples are instances of collections.Sequence but do not support count() and index()

2008-02-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: Checked-in. Revs 60635 and 60636. -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2025 __

[issue1514428] NaN comparison in Decimal broken

2008-02-06 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed for Python 2.6 in r60630. -- resolution: - fixed status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1514428 _

[issue1947] Exception exceptions.AttributeError '_shutdown' in module 'threading'

2008-02-06 Thread shore.cloud
shore.cloud added the comment: hi Facundo Batista thx very much for replying this thread the affair with me is that all my thread related .py programme end with this saying '*Exception exceptions.AttributeError '_shutdown' in module 'threading'* ' I'm running in winXP,version 2.5 and I've

[issue2006] asyncore loop lacks timers and work tasks

2008-02-06 Thread Bill Janssen
Bill Janssen added the comment: Yes, that's it exactly. So things without work tasks can still get done. But timers are the important thing. With timers you can always implement work tasks by yourself. On Feb 6, 2008 12:49 PM, Giampaolo Rodola' [EMAIL PROTECTED] wrote: Giampaolo Rodola'

[issue2006] asyncore loop lacks timers and work tasks

2008-02-06 Thread Bill Janssen
Bill Janssen added the comment: Sorry, I meant to say, so things without input FDs can make progress. On Feb 6, 2008 8:08 PM, Bill Janssen [EMAIL PROTECTED] wrote: Yes, that's it exactly. So things without work tasks can still get done. But timers are the important thing. With timers you

[issue2027] Module containing C implementations of common text algorithms

2008-02-06 Thread Matt Chaput
New submission from Matt Chaput: Add a module to the standard library containing fast (C) implementations of common text/language related algorithms, to begin specifically Porter (and perhaps other) stemming and Levenshtein (and perhaps other) edit distance. Both these algorithms are useful

[issue908316] pdb should hash stdout

2008-02-06 Thread Miki Tebeka
Miki Tebeka added the comment: Looks closed to me, tried `./t.py t.py`, it worked Added file: http://bugs.python.org/file9374/t.py Tracker [EMAIL PROTECTED] http://bugs.python.org/issue908316

[issue1696444] Adding an index method to tuples

2008-02-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: Py2.6 and Py3.0 now how have tuple.index() and tuple.count(). -- resolution: - out of date status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1696444

[issue908316] pdb should hash stdout

2008-02-06 Thread Raymond Hettinger
Changes by Raymond Hettinger: -- status: open - closed Tracker [EMAIL PROTECTED] http://bugs.python.org/issue908316 ___ Python-bugs-list mailing list Unsubscribe:

[issue2006] asyncore loop lacks timers and work tasks

2008-02-06 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Yes, that's it exactly. So things without input FDs can make progress. But timers are the important thing. With timers you can always implement work tasks by yourself. I have the feeling that you're talking about the same thing. self.call_later(0,