Changes by Carsten Grohmann carstengrohm...@gmx.de:
--
nosy: +cgrohmann
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23102
___
___
Python-bugs
Changes by Carsten Grohmann carstengrohm...@gmx.de:
--
nosy: +cgrohmann
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11159
___
___
Python-bugs
Carsten Grohmann carstengrohm...@gmx.de added the comment:
Setting dp to an empty string is only a workaround from my perspective.
I get the value of the places parameter from a configuration instance and have
to implement an additional check places == 0 every time I call the original
New submission from Carsten Grohmann carstengrohm...@gmx.de:
Hi,
the documentation of the decimal module contains a small recipe called
moneyfmt() for format decimal values. It's very usefull.
I'd like to suggest a small improvement because the output is incorrect with
given dp=. (default
Carsten Grohmann [EMAIL PROTECTED] added the comment:
current local unix seconds means seconds since the Epoch in local
timezone.
I've attached a small example to show that is no difference between the
time returned by time.localtime() and time.time(). So I assume that
time.time() also returns
New submission from Carsten Grohmann [EMAIL PROTECTED]:
The current python documentation of the time module
(http://docs.python.org/lib/module-time.html) means that time.time()
returns the seconds since the epoch, in UTC.
But in the current source documentation of the time module
(http
New submission from Carsten Grohmann [EMAIL PROTECTED]:
The current version of the receipe moneyfmt doesn't have a leading 0
for 1 value -1.
The attached patch adds a new parameter zero. The parameter is empty
per default and can set to 0 print a leading 0. The examples are
updated also
New submission from Carsten Grohmann:
The example for property() contains a typo / small bug:
class C(object):
def __init__(self): self.__x = None
[...]
should be:
class C(object):
def __init__(self): self._x = None
[...]
Source: http://docs.python.org/lib/built-in-funcs.html