[issue13918] locale.atof documentation is missing func argument

2012-02-01 Thread Cédric Krier

New submission from Cédric Krier :

atof has a func argument used to instantiate the result but it is missing in 
the documentation.

--
assignee: docs@python
components: Documentation
messages: 152430
nosy: ced, docs@python
priority: normal
severity: normal
status: open
title: locale.atof documentation is missing func argument
type: enhancement

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



[issue13918] locale.atof documentation is missing func argument

2012-02-02 Thread Cédric Krier

Cédric Krier  added the comment:

Indeed I find it useful to use to get a Decimal instead of a float.
So I was wondering if I can rely on it or not in my application?

--
status: pending -> open

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



[issue7980] time.strptime not thread safe

2012-04-19 Thread Cédric Krier

Changes by Cédric Krier :


--
nosy: +ced

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



[issue7502] All DocTestCase instances compare and hash equal to each other

2011-01-30 Thread Cédric Krier

Cédric Krier  added the comment:

Here is a patch that defines __eq__ and __hash__ on DocTestCase.

--
keywords: +patch
nosy: +ced
Added file: http://bugs.python.org/file20618/doctestcase_eq_hash.patch

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



[issue15421] Calendar.itermonthdates OverflowError

2012-07-22 Thread Cédric Krier

New submission from Cédric Krier :

itermonthdates fails when working on the last month of 
Here is a patch that catch the OverflowError.

--
components: Library (Lib)
files: calendar.patch
keywords: patch
messages: 166137
nosy: ced
priority: normal
severity: normal
status: open
title: Calendar.itermonthdates OverflowError
type: enhancement
Added file: http://bugs.python.org/file26478/calendar.patch

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



[issue15435] Strange behavior when AttributeError raise inside a property get function

2012-07-23 Thread Cédric Krier

New submission from Cédric Krier :

When a AttributeError is raised inside the get function of a property and if 
the class has a __getattr__ method defined then this method is called.
It is strange behavior because when looking at the traceback it looks like 
Python doesn't find the property.

--
components: Interpreter Core
files: test.py
messages: 166234
nosy: ced
priority: normal
severity: normal
status: open
title: Strange behavior when AttributeError raise inside a property get function
type: behavior
Added file: http://bugs.python.org/file26489/test.py

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



[issue15435] Strange behavior when AttributeError raise inside a property get function

2012-07-24 Thread Cédric Krier

Cédric Krier  added the comment:

The problem is that the code of the property could raise an AttributeError. So 
this error is not showed by the traceback.

--

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



[issue15421] Calendar.itermonthdates OverflowError

2012-09-20 Thread Cédric Krier

Cédric Krier added the comment:

Fix haypo comments

--
Added file: http://bugs.python.org/file27239/calendar.patch

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



[issue7652] Merge C version of decimal into py3k.

2011-11-24 Thread Cédric Krier

Changes by Cédric Krier :


--
nosy: +ced

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



[issue7502] All DocTestCase instances compare and hash equal to each other

2011-12-18 Thread Cédric Krier

Cédric Krier  added the comment:

New patch with test

--
Added file: http://bugs.python.org/file24028/issue7502.patch

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



[issue7502] All DocTestCase instances compare and hash equal to each other

2011-12-18 Thread Cédric Krier

Cédric Krier  added the comment:

New patch to add __hash__ and __eq__ to DocTest

--
Added file: http://bugs.python.org/file24029/issue7502.patch

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



[issue7502] All DocTestCase instances compare and hash equal to each other

2011-12-18 Thread Cédric Krier

Cédric Krier  added the comment:

Update patch to not use hash in __eq__

--
Added file: http://bugs.python.org/file24031/issue7502.patch

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



[issue7502] All DocTestCase instances compare and hash equal to each other

2011-12-18 Thread Cédric Krier

Cédric Krier  added the comment:

Add test for "!="

--
Added file: http://bugs.python.org/file24033/issue7502.patch

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



[issue7502] All DocTestCase instances compare and hash equal to each other

2011-12-18 Thread Cédric Krier

Cédric Krier  added the comment:

Add also __eq__ to Example and add __ne__ method.

--
Added file: http://bugs.python.org/file24036/issue7502.patch

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



[issue7502] All DocTestCase instances compare and hash equal to each other

2011-12-18 Thread Cédric Krier

Cédric Krier  added the comment:

Patch to add __hash__ to prevent warnings in 2.7

--
Added file: http://bugs.python.org/file24039/issue7502-hash.patch

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



[issue7502] All DocTestCase instances compare and hash equal to each other

2011-12-18 Thread Cédric Krier

Cédric Krier  added the comment:

Add test for __hash__

--
Added file: http://bugs.python.org/file24040/issue7502-hash.patch

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



[issue9625] argparse: Problem with defaults for variable nargs when using choices

2012-11-03 Thread Cédric Krier

Cédric Krier added the comment:

Here is a new version of the patch with tests

--
nosy: +ced
Added file: http://bugs.python.org/file27858/issue9625.patch

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



[issue6090] zipfile DeprecationWarning Python 2.6.2

2009-08-21 Thread Cédric Krier

Changes by Cédric Krier :


--
nosy: +ced

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



[issue13918] locale.atof documentation is missing func argument

2013-03-13 Thread Cédric Krier

Cédric Krier added the comment:

Then I think we miss a locale.atod to parse string to Decimal

--
status: pending -> open

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



[issue13918] locale.atof documentation is missing func argument

2013-03-14 Thread Cédric Krier

Cédric Krier added the comment:

locale.atof is not about formatting but parsing string into float following the 
locale.
For now, the only ways I see to parse a string to get a Decimal is to first 
convert it into float (which is not good if precision matters) or to use the 
undocumented parameter.

--
status: closed -> open

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



[issue13918] locale.atof documentation is missing func argument

2013-03-15 Thread Cédric Krier

Cédric Krier added the comment:

Here is a patch for the documentation.

--
keywords: +patch
resolution: wont fix -> 
Added file: http://bugs.python.org/file29414/doc_atof.patch

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



[issue9625] argparse: Problem with defaults for variable nargs when using choices

2013-06-15 Thread Cédric Krier

Cédric Krier added the comment:

ping

--

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