Now What? :o)

Fred L. Drake, Jr. fdrake at acm.org
Fri Jan 7 09:50:27 EST 2000


Jeff Bauer writes:
 > 1. Use os.sep rather than slashes or backslashes
 > for your path separators.

  Even better, use the "path algebra" functions in os.path; these
result in more readable code than:

	myfile = mydirectory + os.sep + myname


  -Fred

--
Fred L. Drake, Jr.	  <fdrake at acm.org>
Corporation for National Research Initiatives




More information about the Python-list mailing list