Steven D'Aprano <[EMAIL PROTECTED]> writes: > On Sat, 23 Jul 2005 17:51:31 -0600, John Roth wrote: > >> I also like to know the number of elements, which seems to make >> sense as len(path). Again, the number of characters in the path seems >> to be utterly useless information - at least, I can't imagine a use for >> it. > There are (were?) operating systems that could only deal with a maximum > length for pathnames. If I recall correctly, and I probably don't, Classic > Mac (pre-OS X) was limited to file names of 31 or fewer characters and no > more than 250-odd for the entire pathname. At the very least, some file > manager routines would work and some would not.
Are. But I think they're a lot longer now. bhuda% grep PATH_MAX /usr/include/sys/syslimits.h #define PATH_MAX 1024 /* max bytes in pathname */ <mike -- Mike Meyer <[EMAIL PROTECTED]> http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list