Stupid string.split question 
Author Message
 Stupid string.split question

Quote:



> > Now, as for old chesnuts and long hot summers, if one could just do:

> > "".join(list("ABCDEF").reverse())

> In what way would that be an improvement on writing

>  "ABCDEF"[::-1]

In-place reverse *and* returning the result.

*stands proudly tall, smug expression on face*

TIm Delaney



Tue, 24 Jan 2006 07:36:31 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Stupid string.split question

2. string.split and re.split inconsistency

3. re.split vs. string.split

4. splitting strings with more than one splitting char

5. Stupid string formatting question

6. stupid newbie question about string and re

7. Stupid String Question

8. Awk question re splitting strings

9. question about String.split

10. String splitting question

11. String#split converts string args to regexes -- ?

12. splitting a string into 2 new strings

 

 
Powered by phpBB® Forum Software