[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)
   February 2008
Mo Tu We Th Fr Sa Su
 1  2  3
 4  5  6  7  8  9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29

>>> calendar.setfirstweekday(4)
>>> print cal0.formatmonth(2008, 2)
   February 2008
Mo Tu We Th Fr Sa Su
 1  2  3
 4  5  6  7  8  9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29

--
components: Documentation
messages: 62090
nosy: mft
severity: normal
status: open
title: TextCalendar.formatmonth is not influenced by setfirstweekday
versions: Python 2.5, Python 2.6

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2015] Possible optimisations in kwargs handling

2008-02-06 Thread Christian Heimes

Changes by Christian Heimes:


--
components: +Interpreter Core
priority:  -> normal

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]>

__
___
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

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 <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 are created by
the program itself. The datetime module allows those dates to be
created, so I think it should be safe. 
The unmarshalling code did not change, so it's possible to receive a
date before 1900, but not to send it back...

But to answer your question. I don't know, I don't even know a platform,
which use an unsigned time_t.

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 setfirstweekday() *method*.

--
assignee:  -> doerwalter
nosy: +doerwalter
resolution:  -> accepted

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: trunk_clearfreelists.patch
keywords: patch
messages: 62097
nosy: brett.cannon, tiran
priority: normal
severity: normal
status: open
title: API to clear most free lists
versions: Python 2.6
Added file: http://bugs.python.org/file9359/trunk_clearfreelists.patch

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]>


___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 == Rational(Decimal(R))

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 directory that we have ssl installed in.

SSL=/opt/IB
_ssl _ssl.c \
   -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
   -L$(SSL)/lib -R$(SSL)/lib -lssl -lcrypto

The compiling env (on sol x86):
CC=cc
CFLAGS=-xO5 -m32 -xarch=sse3 -xcache=generic -xchip=generic
CPPFLAGS=-I/opt/IB/include
CXX=CC
CXXFLAGS=-xO5 -m32 -xarch=sse3 -xcache=generic -xchip=generic
LDFLAGS=-L/opt/IB/lib -R/opt/IB/lib
LD_RUN_PATH=/opt/IB/lib
PATH=/usr/bin:/sbin:/usr/sbin:/opt/IB/bin:/usr/ccs/bin:/opt/SUNWspro/bin

configure --prefix=/opt/IBpython/2.5.1 --without-gcc --with-threads

However, if I modify setup.py, and replace every occurrence of
"/usr/local" with "/opt/IB" (we don't use /usr/local) - then it compiles
fine, and the md5 module works correctly.

Is it possible for this to be made a configure argument, or a
environment setting?

--
components: Build
messages: 62101
nosy: [EMAIL PROTECTED]
severity: normal
status: open
title: _sha256 module missing if openssl is not in a "normal" directory.
versions: Python 2.5

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 (Lib)
files: with_NamedTemporaryFile.diff
messages: 62102
nosy: belopolsky
severity: normal
status: open
title: Turn NamedTemporaryFile into a context manager
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file9360/with_NamedTemporaryFile.diff

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2021] Turn NamedTemporaryFile into a context manager

2008-02-06 Thread Raghuram Devarakonda

Changes by Raghuram Devarakonda:


--
keywords: +patch

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 right behavior.

--
nosy: +belopolsky

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]>

__
___
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

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]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 object or as a local variable) and use that
reference instead of relying on the one defined in the global
namespace.

_
Tracker <[EMAIL PROTECTED]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tuple args, and named arguments given by the dictionary kw. If no
named arguments are needed, kw may be NULL. args must not be NULL, use
an empty tuple if no arguments are needed. Returns the result of the
call on success, or NULL on failure. 
"""

passing Py_None as kw is not allowed.  Interestingly, the documentation
also says that "args must not be NULL," while the code is clearly more
forgiving.

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--
nosy: +loewis

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 <[EMAIL PROTECTED]>

__
___
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

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.

Bill

On Feb 6, 2008 4:16 AM, Christian Heimes <[EMAIL PROTECTED]> wrote:

>
> 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 <[EMAIL PROTECTED]>
> 
> __
>

Added file: http://bugs.python.org/file9362/unnamed

__
Tracker <[EMAIL PROTECTED]>

__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.BillOn Feb 6, 2008 4:16 AM, 
Christian Heimes [EMAIL 
PROTECTED]> wrote:
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 fromhttp://wwwsearch.sf.net/"; 
target="_blank">http://wwwsearch.sf.net/--nosy: 
+tiranpriority:  -> normal
__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



[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]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, Python 3.0
Added file: http://bugs.python.org/file9368/test_cd.diff

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://mail.python.org/pipermail/python-dev/2006-June/065508.html

it seems a patch for this function would not be accepted.

--
nosy: +gpolo

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]>


___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Added file: http://bugs.python.org/file9369/test_gl.diff

__
Tracker <[EMAIL PROTECTED]>

__
___
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

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)

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: tuples are instances of collections.Sequence but do not support count() 
and index()
versions: Python 2.6, Python 3.0

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: test_largefile.py converted to unittest
type: rfe
versions: Python 2.6
Added file: http://bugs.python.org/file9370/test_largefile.diff

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1947] Exception exceptions.AttributeError '_shutdown' in

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 :
>
>
> 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
> running this.
>
> Thank you!
>
> --
> nosy: +facundobatista
> resolution:  -> invalid
> status: open -> closed
>
> __
> Tracker <[EMAIL PROTECTED]>
> 
> __
>

Added file: http://bugs.python.org/file9371/unnamed

__
Tracker <[EMAIL PROTECTED]>

__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 [EMAIL PROTECTED]>:
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 reproducethe issue, what do you expect to happen, and the system 
where you'rerunning this.Thank you!--
nosy: +facundobatistaresolution:  -> invalidstatus: open 
-> closed__Tracker [EMAIL PROTECTED]>http://bugs.python.org/issue1947>
__

___
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

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' 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)
>
> __
> Tracker <[EMAIL PROTECTED]>
> 
> __
>

Added file: http://bugs.python.org/file9372/unnamed

__
Tracker <[EMAIL PROTECTED]>

__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' 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)
__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



[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 can always implement
> work tasks by yourself.
>
>
> On Feb 6, 2008 12:49 PM, Giampaolo Rodola' <[EMAIL PROTECTED]> wrote:
>
> >
> > 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)
> >
> > __
> > Tracker <[EMAIL PROTECTED]>
> > 
> > __
> >
>
>

Added file: http://bugs.python.org/file9373/unnamed

__
Tracker <[EMAIL PROTECTED]>

__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 can always implement work 
tasks by yourself.
On Feb 6, 2008 
12:49 PM, Giampaolo Rodola' [EMAIL PROTECTED]> wrote:
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)

__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



[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 in multiple domains, well 
known and understood, and have sample implementations all over the Web, 
but are compute-intensive and prohibitively expensive when implemented 
in pure Python.

--
components: Library (Lib)
messages: 62134
nosy: mchaput
severity: normal
status: open
title: Module containing C implementations of common text algorithms
type: rfe

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]>


___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue908316] pdb should hash stdout

2008-02-06 Thread Raymond Hettinger

Changes by Raymond Hettinger:


--
status: open -> closed


Tracker <[EMAIL PROTECTED]>


___
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

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, something)

Note that "something" is any callable object ('e.g. lambda: print
"hello"'), not necessarily a fd.

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com