[Tutor] a quick Q: how to use for loop to read a series of files with .doc end
Prasad, Ramit
ramit.prasad at jpmorgan.com
Thu Sep 29 17:49:53 CEST 2011
Or you can get lines 24-28, with text[24, 29] (look up slices in the Python doc)
>>> print splitext.__doc__
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'splitext' is not defined
>>> print slices.__doc__
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'slices' is not defined
>>> print slices._doc_
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'slices' is not defined
===================================================================
I think he meant something like:
http://docs.python.org/tutorial/introduction.html (see the section on strings around half way down) or
http://docs.python.org/release/2.3.5/whatsnew/section-slices.html
Ramit
Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology
712 Main Street | Houston, TX 77002
work phone: 713 - 216 - 5423
This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.
More information about the Tutor
mailing list