Message159043
> The semantics of "associated application" change considerably from
> operating system to operating system. As an example,
> ``os.startfile("a.py")`` will usually run `a.py` in the Python
> interpreter, while ``xdg-open a.py`` it will usually open the source
> code in an editor on Linux.
Outch. I think the behavior should be more similar than that, i.e. that the function should use startfile with the edit action on Windows.
About the name: I thought about “edit”; it really means open_file_in_editor. BTW shutil feels the wrong place for this but I don’t think we have anything better. |
|
Date |
User |
Action |
Args |
2012-04-23 16:30:10 | eric.araujo | set | recipients:
+ eric.araujo, pitrou, vstinner, giampaolo.rodola, benjamin.peterson, ganadist, Arfrever, r.david.murray, cvrebert, rosslagerwall, smarnach, Roman.Evstifeev, Hobson.Lane |
2012-04-23 16:30:10 | eric.araujo | set | messageid: <1335198610.17.0.449791242444.issue3177@psf.upfronthosting.co.za> |
2012-04-23 16:30:09 | eric.araujo | link | issue3177 messages |
2012-04-23 16:30:09 | eric.araujo | create | |
|