On 1/13/2014 4:06 PM, Greg Ewing wrote:
of text methods -- together with a text-like literal
syntax and default repr(), even though at least half
the time they're completely inappropriate!
Better said as 'half the time they're coincidentally helpful!'
My $.01 :)
Emile
__
On Mon, Jan 13, 2014 at 07:58:43PM -0500, Terry Reedy wrote:
> This discussion strikes me as more appropriate for python-ideas. That
> said, I am leery of a heuristics module in the stdlib. When is a change
> a 'bug fix'? and when is it an 'enhancement'?
Depends on the nature of the heuristic.
On 1/13/2014 4:32 PM, Guido van Rossum wrote:
> I will doggedly keep posting to this thread rather than creating more
threads.
Please permit to to doggedly keep pointing you toward the possible
solution I posted on the tracker last October.
But formatb() feels absurd to me. PEP 460 has nei
Has anyone actually used __bytes__ yet? What for?
--
~Ethan~
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.c
On 1/13/2014 5:14 PM, Guido van Rossum wrote:
On Mon, Jan 13, 2014 at 2:05 PM, Brett Cannon wrote:
I have been going on the assumption that bytes.format() would change what
'{}' meant for itself and would only interpolate bytes. That convenient
between Python 2 and 3 since it represents what we
On 2014-01-14 02:25, Terry Reedy wrote:
On 1/13/2014 4:32 PM, Guido van Rossum wrote:
> I will doggedly keep posting to this thread rather than creating more
threads.
Please permit to to doggedly keep pointing you toward the possible
solution I posted on the tracker last October.
But format
On 1/13/2014 7:48 PM, Chris Angelico wrote:
And now for something completely different.
My root buildbot is finally now able to telnet out and get "Connection
refused" errors. (For the curious, the VirtualBox "NAT" mode doesn't
work properly, but the new "NAT Network" mode does. Why? I have no
i
On Mon, Jan 13, 2014 at 6:48 PM, Chris Angelico wrote:
> And secondly, how can I run the tests manually? I can't find a binary
> inside the buildarea tree. Does it get deleted afterward?
Yes, that's the 'clean' step of the buildbot build process. I'd
suggest making another clone elsewhere (you c
On 2014-01-14 03:03, Terry Reedy wrote:
On 1/13/2014 7:48 PM, Chris Angelico wrote:
And now for something completely different.
My root buildbot is finally now able to telnet out and get "Connection
refused" errors. (For the curious, the VirtualBox "NAT" mode doesn't
work properly, but the new
On Tue, Jan 14, 2014 at 2:14 PM, Zachary Ware
wrote:
> On Mon, Jan 13, 2014 at 6:48 PM, Chris Angelico wrote:
>> And secondly, how can I run the tests manually? I can't find a binary
>> inside the buildarea tree. Does it get deleted afterward?
>
> Yes, that's the 'clean' step of the buildbot buil
On Tue, Jan 14, 2014 at 2:03 PM, Terry Reedy wrote:
> On 1/13/2014 7:48 PM, Chris Angelico wrote:
>>
>> ValueError: max() arg is an empty sequence
>
>
> try:
>
> g = max(self.saved_groups) + 1
> except ValueError:
> g = 1
>
>
> Unless someone says that it is a bug for posix.getgroups to return
On Mon, Jan 13, 2014, at 05:38 PM, Ethan Furman wrote:
> Has anyone actually used __bytes__ yet? What for?
In the stdlib itself:
email.message
wsgiref
pathlib
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/py
On Tue, Jan 14, 2014 at 2:16 PM, MRAB wrote:
> Alternatively:
>
> g = max(self.saved_groups, [1])
>
> or even:
>
> g = max(self.saved_groups or [1])
Patch created and tracker issue opened. I've used something similar to
MRAB's idea as it looks compact. Thanks all!
http://bugs.python.org/issue202
Glenn Linderman writes:
> On 1/13/2014 6:43 AM, Stephen J. Turnbull wrote:
>> Glenn Linderman writes:
>>> "smuggled binary" (great term borrowed from a different
>>> subthread) muddies the waters of what you are dealing with.
>> Not really. The "mud" is one or more of the serious deficiencie
On Mon, Jan 13, 2014 at 6:25 PM, Terry Reedy wrote:
> On 1/13/2014 4:32 PM, Guido van Rossum wrote:
>
>> I will doggedly keep posting to this thread rather than creating more
>> threads.
>
> Please permit to to doggedly keep pointing you toward the possible solution
> I posted on the tracker last
Sorry to butt in, but can you post a link to the asciistr code? Google
has too many hits for other things to be useful to find it, it seems.
--
--Guido van Rossum (python.org/~guido)
___
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.
Greg Ewing writes:
> I don't think of my viewpoint as being PBP. That term
> assumes there is purity there to be beaten. To my mind,
> any notion of purity with respect to bytes objects
> went out the window as soon as it was given a pile
> of text methods -- together with a text-like literal
On 1/13/2014 9:06 PM, Guido van Rossum wrote:
Sorry to butt in, but can you post a link to the asciistr code? Google
has too many hits for other things to be useful to find it, it seems.
https://github.com/jeamland/asciicompat
___
Python-Dev mailing l
On 1/13/2014 9:03 PM, Guido van Rossum wrote:
Of course, nobody in their right mind would use a format string
containing UTF-16 or EBCDIC. And that is precisely my point. When
you're using a format string, all of the format string (not just the
part between { and }) had better use ASCII or an ASC
On 14 January 2014 15:03, Guido van Rossum wrote:
> I don't think it's that easy. Just searching for '{' is enough to
> break in surprising ways unless the format string is encoded in an
> ASCII superset. I can think of two easy examples to illustrate this
> (they're similar to the example I poste
On 01/13/2014 09:06 PM, Guido van Rossum wrote:
Sorry to butt in, but can you post a link to the asciistr code? Google
has too many hits for other things to be useful to find it, it seems.
https://github.com/jeamland/asciicompat
--
~Ethan~
___
Pytho
On 14 January 2014 15:15, Stephen J. Turnbull wrote:
> The purity position is probably going to lose in the end, since Guido
> is clearly in the PBP camp at this point, and that's a strong
> indicator (especially since Nick has given up on convincing
> python-dev). But that does not mean it's ent
On 01/13/2014 09:06 PM, Guido van Rossum wrote:
In contrast, here's the tests I drew up for what I thought bytes should do for
us (no code, just tests):
https://bitbucket.org/stoneleaf/bytestring
--
~Ethan~
___
Python-Dev mailing list
Python-Dev@p
On 01/13/2014 09:12 PM, Ethan Furman wrote:
On 01/13/2014 09:06 PM, Guido van Rossum wrote:
In contrast, here's the tests I drew up for what I thought bytes should do for
us (no code, just tests):
https://bitbucket.org/stoneleaf/bytestring
Ugh. Ignore for now, I need to update them to re
On 1/13/2014 8:58 PM, Stephen J. Turnbull wrote:
Glenn Linderman writes:
> On 1/13/2014 6:43 AM, Stephen J. Turnbull wrote:
>> Glenn Linderman writes:
>>> "smuggled binary" (great term borrowed from a different
>>> subthread) muddies the waters of what you are dealing with.
>> Not rea
On Mon, Jan 13, 2014 at 9:34 PM, Nick Coghlan wrote:
> On 14 January 2014 15:15, Stephen J. Turnbull wrote:
>> The purity position is probably going to lose in the end, since Guido
>> is clearly in the PBP camp at this point, and that's a strong
>> indicator (especially since Nick has given up on
On 1/13/2014 9:25 PM, Nick Coghlan wrote:
since this observation makes it clear that there's*no* coherent way
to offer a pure binary interpolation API - the only general purpose
combination mechanism for segments of binary data that can avoid
making assumptions about the encodings of metacharact
On 1/13/2014 10:16 PM, MRAB wrote:
On 2014-01-14 03:03, Terry Reedy wrote:
On 1/13/2014 7:48 PM, Chris Angelico wrote:
And now for something completely different.
My root buildbot is finally now able to telnet out and get "Connection
refused" errors. (For the curious, the VirtualBox "NAT" mode
On 14 January 2014 16:04, Guido van Rossum wrote:
> On Mon, Jan 13, 2014 at 9:34 PM, Nick Coghlan wrote:
> I've now looked at asciistr. (Thanks Glenn and Ethan for the link.)
>
> Now that I (hopefully) understand it, I'm worried that a text
> processing algorithm that uses asciistr might under ha
101 - 129 of 129 matches
Mail list logo