Patches item #1119423, was opened at 2005-02-09 17:00
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1119423&group_id=5470

Category: Core (C code)
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Brian Foley (bpfoley)
Assigned to: Nobody/Anonymous (nobody)
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'.



----------------------------------------------------------------------

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

Reply via email to