On Sat, 18 Dec 2010 00:08:47 +, MRAB wrote:
> I had a thought about locale-specific formatting.
>
> Currently, when we want to do locale-specific formatting we use the
> locale module like this:
>
> >>> locale.format("%d", 12345, grouping=False)
> '12345'
> >>> locale.format("%d", 12345, g
Hi,
In 2008, I proposed a patch to raise a Python exception on SIGSEVG
signal. In some cases, it's possible to catch the exception, log it, and
continue the execution. But because in some cases, the Python internal
state is corrupted, the idea was rejected (see the issue #3999).
Someone aske
I had a thought about locale-specific formatting.
Currently, when we want to do locale-specific formatting we use the
locale module like this:
>>> locale.format("%d", 12345, grouping=False)
'12345'
>>> locale.format("%d", 12345, grouping=True)
'12,345'
This makes it harder to use more than one
On Fri, Dec 17, 2010 at 12:33 PM, Benjamin Peterson wrote:
..
>> Another +1 for the same reasons. Also, since global does not allow
>> assignment, neither should nonlocal.
>
> Note that the PEP stated that global would also be extended.
I missed that, so for future reference, the PEP says:
"""
2010/12/17 Alexander Belopolsky :
> On Fri, Dec 17, 2010 at 11:52 AM, Laurens Van Houtven
> wrote:
>> +1 for throwing it out of the PEP. Assignment is a thing,
>> nonlocal/global is a thing, don't mix them up :) (That in addition to
>> the grammar cleanliness argument Stephan already made)
>
> An
On Fri, Dec 17, 2010 at 11:52 AM, Laurens Van Houtven wrote:
> +1 for throwing it out of the PEP. Assignment is a thing,
> nonlocal/global is a thing, don't mix them up :) (That in addition to
> the grammar cleanliness argument Stephan already made)
Another +1 for the same reasons. Also, since g
ACTIVITY SUMMARY (2010-12-10 - 2010-12-17)
Python tracker at http://bugs.python.org/
To view or respond to any of the issues listed below, click on the issue.
Do NOT respond to this message.
Issues counts and deltas:
open2537 (-20)
closed 19971 (+72)
total 22508 (+52)
Open issues wit
+1 for throwing it out of the PEP. Assignment is a thing,
nonlocal/global is a thing, don't mix them up :) (That in addition to
the grammar cleanliness argument Stephan already made)
cheers
lvh.
___
Python-Dev mailing list
Python-Dev@python.org
http://ma
2010/12/17 Stefan Behnel :
> Hi,
>
> it seems that Py3 doesn't support setting a "nonlocal" value as part of the
> "nonlocal" command
>
> Python 3.2a4+ (py3k:86480, Nov 16 2010, 16:43:22)
> [GCC 4.4.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>