[Python-Dev] Add os.path.resolve to simplify the use of os.readlink

Oleg Broytman phd at phdru.name
Thu Jun 21 13:34:10 CEST 2012


On Thu, Jun 21, 2012 at 11:10:44AM -0000, Armin Ronacher <armin.ronacher at active-4.com> wrote:
> would have to check the POSIX spec for a
> reasonable value

   POSIX allows 8 links:

http://infohost.nmt.edu/~eweiss/222_book/222_book/0201433079/ch02lev1sec5.html

_POSIX_SYMLOOP_MAX - number of symbolic links that can be traversed
during pathname resolution: 8

   The constant _POSIX_SYMLOOP_MAX from unistd.h:

#define _POSIX_SYMLOOP_MAX 8

Oleg.
-- 
     Oleg Broytman            http://phdru.name/            phd at phdru.name
           Programmers don't die, they just GOSUB without RETURN.


More information about the Python-Dev mailing list