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/2002-December/030913.html below:

[Python-Dev] zipimport & import hooks

[Python-Dev] zipimport & import hooks [Python-Dev] zipimport & import hooksGuido van Rossum guido@python.org
Fri, 06 Dec 2002 09:56:15 -0500
> Has anyone presented any hard data, or are people just guessing?

I found two uses in the Zope 3 codebase that would break for
non-strings.

            cwd = os.getcwd()
            for path in sys.path[1:]: # Yeah, we need to exclude the
            cwd itself
                if path != '' and cwd.startswith(path):
                    name = os.path.join(cwd[len(path)+1:], name)
                    name = os.path.normpath(name)
                    break

        d['PYTHONPATH'] = os.pathsep.join(sys.path)

    def getPythonPath(self):
        'See Zope.App.OFS.ApplicationControl.IRuntimeInfo.IRuntimeInfo'
        return tuple(sys.path)
    # The interface promises a tuple of strings

--Guido van Rossum (home page: http://www.python.org/~guido/)



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