Re: [Python-Dev] str.format bug again

2012-09-29 Thread Ben Wolfson
On Sat, Sep 29, 2012 at 10:59 AM, Benjamin Peterson wrote: > 2012/9/28 Ben Wolfson : >> There's a patch for this bug: http://bugs.python.org/issue12014 that >> needs reviewed. Petri Lehtinen made some (very minor) comments back in >> May; otherwise it's been

[Python-Dev] str.format bug again

2012-09-28 Thread Ben Wolfson
umbs up or down (or say what needs to be changed, or whatever). -- Ben Wolfson "Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume drinks for

Re: [Python-Dev] Counting collisions for the win

2012-01-20 Thread Ben Wolfson
zation for new feature releases? (Brett made it here: <http://mail.python.org/pipermail/python-dev/2012-January/115740.html>.) -- Ben Wolfson "Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social

[Python-Dev] str.format implementation

2011-12-12 Thread Ben Wolfson
I personally would prefer (1) to (2) or (3), and (3) to (2), had I my druthers, but it doesn't matter a *whole* lot to me; I'd prefer any of them to nothing (or to changing the docs to reflect the current batty behavior). -- Ben Wolfson "Human kind has used its intelligence to va

Re: [Python-Dev] Warnings

2011-12-07 Thread Ben Wolfson
t words with the correct meanings.  If > someone is willing to fix it, let them. I'm sure this hypothetical reader will then look "assure" up in the OED and find this: 5. To make certain the occurrence or arrival of (an event); to ensure. -- Ben Wolfson "Human kind has used

Re: [Python-Dev] Handling linker scripts reached when dynamically loading a module

2011-09-10 Thread Ben Wolfson
ot;, line 353, in __init__ self._handle = _dlopen(self._name, mode) OSError: /usr/lib/libpthread.so: invalid ELF header >>> cdll.LoadLibrary('libpthread.so.0') >>> $ cat /usr/lib/libpthread.so /* GNU ld script Use the shared library, but some functions are only in the st

Re: [Python-Dev] PEP 3101 implementation vs. documentation

2011-07-06 Thread Ben Wolfson
_name, attribute_name, and element_index sections. On Fri, Jun 10, 2011 at 2:15 PM, Ben Wolfson wrote: > Hello, > > I'm writing because discussion in a bug report I submitted > (<http://bugs.python.org/issue12014>) has suggested that, insofar as > at least part of the issue rev

Re: [Python-Dev] PEP 3101 implementation vs. documentation

2011-06-13 Thread Ben Wolfson
On Mon, Jun 13, 2011 at 5:36 PM, Greg Ewing wrote: > Ben Wolfson wrote: > >> If by "item selector" you mean (using the names from the grammar in >> the docs) the element_index, I don't see why this should be the case; >> dictionaries can contain non-identif

Re: [Python-Dev] PEP 3101 implementation vs. documentation

2011-06-13 Thread Ben Wolfson
On Sat, Jun 11, 2011 at 4:29 PM, Greg Ewing wrote: > Ben Wolfson wrote: >> >> You can't have an internal replacement >> field in this part of the replacement field, so '{' can always safely >> be assumed to be Just a Brace and not the start of a replac

Re: [Python-Dev] PEP 3101 implementation vs. documentation

2011-06-11 Thread Ben Wolfson
On Sat, Jun 11, 2011 at 2:16 AM, Nick Coghlan wrote: > On Sat, Jun 11, 2011 at 7:15 AM, Ben Wolfson wrote: > To summarise (after both the above post and the discussion on the tracker) Thanks for the summary! > > That would leave us with the following set of rules for name f

[Python-Dev] PEP 3101 implementation vs. documentation

2011-06-10 Thread Ben Wolfson
ch case we might have had this: (g') "{0[{][}]}".format(range(10), **{'][':4}) --> '3' or this: (g'') "{0[{][}]}".format({'4':3}, **{'][':4}) --> '3' or something with that general flavor. As far as I can tell, t