A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-August/055908.html below:

[Python-Dev] Proof of the pudding: str.partition()

[Python-Dev] Proof of the pudding: str.partition() [Python-Dev] Proof of the pudding: str.partition()Terry Reedy tjreedy at udel.edu
Wed Aug 31 18:51:17 CEST 2005
<skip at pobox.com> wrote in message 
news:17173.43632.145313.858480 at montanaro.dyndns.org...
>
>    >> You can do both: make partition() return a sequence with 
> attributes,
>    >> similar to os.stat().  However, I would call the attributes 
> "before",
>    >> "sep", and "after".
>
>    Terry> One could see that as a special-case back-compatibility kludge
>    Terry> that maybe should disappear in 3.0.
>
> Back compatibility with what?

os.stat without attributes.  'that' referred to its current 'sequence with 
attributes' return.

> I'm -1 on the notion of generating groups or attributes.

We agree.  A back-compatibility kludge is not a precedent to be emulated.

>In the case of stat() there is no reason other than historic
> for the results to be returned in any particular order,

Which is why I wonder whether the sequence part should be dropped in 3.0.

Terry J. Reedy



More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4