]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
my_basename(): Removes the leading path components from a path name,
authorFred Drake <fdrake@acm.org>
Tue, 15 Aug 2000 16:20:36 +0000 (16:20 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 15 Aug 2000 16:20:36 +0000 (16:20 +0000)
commit185a29b08ffcb1370e469f25173f185ed0a60d39
treea8f8bed01bff3ad473445b1145ae48b3b6aebf37
parenta811a5b13a095d61d0560b95259a957a2c0a4c47
my_basename():  Removes the leading path components from a path name,
returning a pointer to the start of the file's "base" name;
similar to os.path.basename().

SyntaxError__str__():  Use my_basename() to keep the length of the
file name included in the exception message short.
Python/exceptions.c