A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-January/032279.html below:

[Python-Dev] disable writing .py[co]

[Python-Dev] disable writing .py[co] [Python-Dev] disable writing .py[co]Skip Montanaro skip@pobox.com
Tue, 21 Jan 2003 07:47:14 -0600
    Michael> The idea of writing .pycs to a world writable area (say /tmp)
    Michael> on a multi-user system sounds like a Bad Thing.

As I mentioned in my original note, you'd prepend PYCROOT to the .py file
and append 'c' to create a filename for the .pyc file.  If socket.py was
found in /usr/lib/python2.3/socket.py and PYCROOT was set to /tmp, you'd try
to read from/write to /tmp/usr/lib/python2.3/socket.pyc.  The only
requirement on PYCROOT would be that /tmp would have to exist.  The user
wouldn't be responsible for creating the full directory tree underneath
/tmp.

Skip



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4