Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: a splitting headache

Reply
Thread Tools

Re: a splitting headache

 
 
John Posner
Guest
Posts: n/a
 
      10-22-2009
[resend, with Subject line corrected and formatting crud deleted]

Mensanator wrote:
> That's interesting. If string.splitfields(delim) was equivalent to
> str.split(sep), it would have been useful to add the phrase
> "str.split(sep) is equivalent to the old string.splitfields(delim)
> which no longer exists." to the docs. That way, a search on
> "splitfields" would direct the user to str.split(sep) rather than
> simply throw a dialog box saying "No topics found". No one ever
> considers making life easy for the user.
>


I'm not sure what Python documentation you're consulting. I have Python
2.6.3rc1 on Windows XP. I launched the ...\doc\python263c1.chm help
file, and searched for "splitfields". Here's what I got:

string.splitfields(/s/[, /sep/[, /maxsplit/]])
This function behaves identically to split(). (In
the past, split() was only used with one argument,
while splitfields() was only used with two
arguments.)


-John


 
Reply With Quote
 
 
 
 
Mensanator
Guest
Posts: n/a
 
      10-22-2009
On Oct 22, 4:35*pm, John Posner <jjpos...@optimum.net> wrote:
> [resend, with Subject line corrected and formatting crud deleted]
>
> Mensanator wrote:
> > That's interesting. If string.splitfields(delim) was equivalent to
> > str.split(sep), it would have been useful to add the phrase
> > "str.split(sep) is equivalent to the old string.splitfields(delim)
> > which no longer exists." to the docs. That way, a search on
> > "splitfields" would direct the user to str.split(sep) rather than
> > simply throw a dialog box saying "No topics found". No one ever
> > considers making life easy for the user.

>
> I'm not sure what Python documentation you're consulting. I have Python
> 2.6.3rc1 on Windows XP. I launched the ...\doc\python263c1.chm help
> file, and searched for "splitfields". Here's what I got:
>
> *string.splitfields(/s/[, /sep/[, /maxsplit/]])
> * *This function behaves identically to split(). (In
> * *the past, split() was only used with one argument,
> * *while splitfields() was only used with two
> * *arguments.)


I got "No Topics Found" in the 3.1 docs. Still, the possibility
exists that someone has an old Python source code that they want
to convert to 3.1. I for one, never had a copy of Python 1.3.

>
> -John


 
Reply With Quote
 
 
 
 
Gabriel Genellina
Guest
Posts: n/a
 
      10-23-2009
En Thu, 22 Oct 2009 19:45:54 -0300, Mensanator <>
escribió:
> On Oct 22, 4:35 pm, John Posner <jjpos...@optimum.net> wrote:
>> Mensanator wrote:
>> > That's interesting. If string.splitfields(delim) was equivalent to
>> > str.split(sep), it would have been useful to add the phrase
>> > "str.split(sep) is equivalent to the old string.splitfields(delim)
>> > which no longer exists." to the docs.

>> I'm not sure what Python documentation you're consulting.

>
> I got "No Topics Found" in the 3.1 docs. Still, the possibility
> exists that someone has an old Python source code that they want
> to convert to 3.1. I for one, never had a copy of Python 1.3.


Those relics from the past has been removed in Python 3.x (in both code
and documentation). Also, all notes like 'New in version 1.x' or 'New in
version 2.x' have been removed too.

--
Gabriel Genellina

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
a splitting headache Mensanator Python 29 10-26-2009 10:52 PM
Re: a splitting headache John Posner Python 3 10-22-2009 10:46 PM
There's no LIMIT to my SPLITting headache. use63net@yahoo.com Perl Misc 25 06-13-2005 11:14 AM
Re: Splitting up the definitions of a class into different files (splitting public from private)? Mark C++ 0 07-19-2003 04:24 PM
Re: Splitting up the definitions of a class into different files (splitting public from private)? John Ericson C++ 0 07-19-2003 04:03 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57