homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients BreamoreBoy, ezio.melotti, georg.brandl, hynek, markon, o11c, pitrou, r.david.murray, serhiy.storchaka, swarecki, tzimmo
Date 2013年01月13日.17:51:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1358099488.2.0.233207786239.issue6975@psf.upfronthosting.co.za>
In-reply-to
Content
I don't really understand your algorithm. Why do you need a stack? It should be simply iterative:
- if the symlink is relative, prepend the symlink target to the rest
- if the symlink is absolute, discard the current path and prepend the symlink target to the rest
Here is how pathlib does it:
https://bitbucket.org/pitrou/pathlib/src/67a2524b057f1af5b3cba26370b1353e73cdda16/pathlib.py?at=default#cl-227 
History
Date User Action Args
2013年01月13日 17:51:28pitrousetrecipients: + pitrou, georg.brandl, swarecki, ezio.melotti, r.david.murray, markon, BreamoreBoy, hynek, serhiy.storchaka, o11c, tzimmo
2013年01月13日 17:51:28pitrousetmessageid: <1358099488.2.0.233207786239.issue6975@psf.upfronthosting.co.za>
2013年01月13日 17:51:28pitroulinkissue6975 messages
2013年01月13日 17:51:28pitroucreate

AltStyle によって変換されたページ (->オリジナル) /