Patches item #1119423, was opened at 2005-02-09 18:00 Message generated for change (Comment added) made by birkenfeld You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1119423&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core (C code) Group: Python 2.4 >Status: Closed >Resolution: Accepted Priority: 5 Submitted By: Brian Foley (bpfoley) >Assigned to: Reinhold Birkenfeld (birkenfeld) Summary: python -c readlink()s and stat()s '-c' Initial Comment: Due to the way input arguments are processed by Py_Main when Python is invoked with the -c switch, PySys_SetArgv treats '-c' as the name of the python executable and tries to get an absolute path for it before adding it to sys.argv. This is mostly harmless, but is doing work that shouldn't be done: on UNIX it involves calling readlink() and realpath(). The patch avoids the lookup if argv0 is '-c'. ---------------------------------------------------------------------- >Comment By: Reinhold Birkenfeld (birkenfeld) Date: 2005-09-15 15:00 Message: Logged In: YES user_id=1188172 Thanks for the patch, committed in Python/sysmodule.c r2.129, r2.126.2.3. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1119423&group_id=5470 _______________________________________________ Patches mailing list [email protected] http://mail.python.org/mailman/listinfo/patches
