Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs
[issue14657] Avoid two importlib copies
 

Index | Next | Previous | View Flat


report at bugs

Apr 25, 2012, 5:06 AM


Views: 408
Permalink
[issue14657] Avoid two importlib copies [In reply to]

Marc-Andre Lemburg <mal [at] egenix> added the comment:

Antoine Pitrou wrote:
>
> Antoine Pitrou <pitrou [at] free> added the comment:
>
>>> Look for "pybuilddir.txt".
>>
>> Oh dear. Another one of those hacks... why wasn't this done using
>> constants passed in by the configure script and simple string
>> comparison ?
>
> How would that help distinguish between an installed Python and a
> non-installed Python? If you have an idea about that, please open an
> issue and explain it precisely :)

The question pybuildir.txt apparently tries to solve is whether Python
is running from the build dir or not. It's not whether Python was
installed or not. Checking for the build dir can be done by looking
at the argv[0] of the executable and comparing that to the build dir.
This can be compiled into the interpreter using a constant, say
BUILDIR. At runtime, you'd simply compare the current argv[0] to
the BUILDDIR. If it matches, you know that you can assume the
build dir layout with reasonable certainty and proceed accordingly.
No need for extra joins, file reads, etc.

But given the enormous startup time of Python 3.3, those few stats
won't make a difference anyway. This would need a completely different
holistic approach. Perhaps something for SoC project.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14657>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Subject User Time
[issue14657] Avoid two importlib copies report at bugs Apr 23, 2012, 3:34 PM
    [issue14657] Avoid two importlib copies report at bugs Apr 23, 2012, 3:42 PM
    [issue14657] Avoid two importlib copies report at bugs Apr 23, 2012, 3:42 PM
    [issue14657] Avoid two importlib copies report at bugs Apr 23, 2012, 3:43 PM
    [issue14657] Avoid two importlib copies report at bugs Apr 23, 2012, 3:50 PM
    [issue14657] Avoid two importlib copies report at bugs Apr 23, 2012, 4:01 PM
    [issue14657] Avoid two importlib copies report at bugs Apr 23, 2012, 5:09 PM
    [issue14657] Avoid two importlib copies report at bugs Apr 23, 2012, 5:41 PM
    [issue14657] Avoid two importlib copies report at bugs Apr 23, 2012, 5:56 PM
    [issue14657] Avoid two importlib copies report at bugs Apr 23, 2012, 9:40 PM
    [issue14657] Avoid two importlib copies report at bugs Apr 23, 2012, 9:48 PM
    [issue14657] Avoid two importlib copies report at bugs Apr 24, 2012, 1:10 AM
    [issue14657] Avoid two importlib copies report at bugs Apr 24, 2012, 2:06 AM
        [issue14657] Avoid two importlib copies report at bugs Apr 24, 2012, 2:14 AM
    [issue14657] Avoid two importlib copies report at bugs Apr 24, 2012, 8:10 AM
    [issue14657] Avoid two importlib copies report at bugs Apr 24, 2012, 8:16 AM
    [issue14657] Avoid two importlib copies report at bugs Apr 24, 2012, 10:37 AM
    [issue14657] Avoid two importlib copies report at bugs Apr 24, 2012, 11:40 AM
    [issue14657] Avoid two importlib copies report at bugs Apr 24, 2012, 12:23 PM
    [issue14657] Avoid two importlib copies report at bugs Apr 24, 2012, 12:51 PM
    [issue14657] Avoid two importlib copies report at bugs Apr 24, 2012, 1:25 PM
    [issue14657] Avoid two importlib copies report at bugs Apr 24, 2012, 1:39 PM
    [issue14657] Avoid two importlib copies report at bugs Apr 24, 2012, 1:42 PM
    [issue14657] Avoid two importlib copies report at bugs Apr 24, 2012, 2:13 PM
    [issue14657] Avoid two importlib copies report at bugs Apr 24, 2012, 2:15 PM
    [issue14657] Avoid two importlib copies report at bugs Apr 24, 2012, 2:36 PM
    [issue14657] Avoid two importlib copies report at bugs Apr 24, 2012, 2:37 PM
    [issue14657] Avoid two importlib copies report at bugs Apr 24, 2012, 2:46 PM
        [issue14657] Avoid two importlib copies report at bugs Apr 24, 2012, 2:52 PM
            [issue14657] Avoid two importlib copies report at bugs Apr 24, 2012, 3:21 PM
                [issue14657] Avoid two importlib copies report at bugs Apr 24, 2012, 3:29 PM
                    [issue14657] Avoid two importlib copies report at bugs Apr 25, 2012, 2:07 AM
                        [issue14657] Avoid two importlib copies report at bugs Apr 25, 2012, 4:49 AM
                            [issue14657] Avoid two importlib copies report at bugs Apr 25, 2012, 5:06 AM
                                [issue14657] Avoid two importlib copies report at bugs Apr 25, 2012, 5:12 AM
                                    [issue14657] Avoid two importlib copies report at bugs Apr 25, 2012, 5:28 AM
                                        [issue14657] Avoid two importlib copies report at bugs Apr 25, 2012, 5:38 AM
    [issue14657] Avoid two importlib copies report at bugs Apr 24, 2012, 6:13 PM
    [issue14657] Avoid two importlib copies report at bugs Apr 25, 2012, 5:32 AM
    [issue14657] Avoid two importlib copies report at bugs Apr 25, 2012, 5:46 AM
    [issue14657] Avoid two importlib copies report at bugs Apr 25, 2012, 7:58 AM
    [issue14657] Avoid two importlib copies report at bugs Apr 25, 2012, 8:14 AM
    [issue14657] Avoid two importlib copies report at bugs Apr 25, 2012, 8:25 AM
        [issue14657] Avoid two importlib copies report at bugs Apr 25, 2012, 8:38 AM
        [issue14657] Avoid two importlib copies report at bugs Apr 25, 2012, 8:41 AM
        [issue14657] Avoid two importlib copies report at bugs Apr 25, 2012, 8:52 AM
        [issue14657] Avoid two importlib copies report at bugs Apr 25, 2012, 8:55 AM
        [issue14657] Avoid two importlib copies report at bugs Apr 25, 2012, 8:58 AM
        [issue14657] Avoid two importlib copies report at bugs Apr 25, 2012, 9:02 AM
        [issue14657] Avoid two importlib copies report at bugs Apr 25, 2012, 9:40 AM
        [issue14657] Avoid two importlib copies report at bugs Apr 25, 2012, 9:46 AM
            [issue14657] Avoid two importlib copies report at bugs Apr 25, 2012, 10:46 AM
        [issue14657] Avoid two importlib copies report at bugs Apr 25, 2012, 6:21 PM
        [issue14657] Avoid two importlib copies report at bugs Apr 29, 2012, 1:24 AM
        [issue14657] Avoid two importlib copies report at bugs May 4, 2012, 12:20 PM
            [issue14657] Avoid two importlib copies report at bugs May 17, 2012, 8:25 AM
        [issue14657] Avoid two importlib copies report at bugs May 5, 2012, 9:50 PM
        [issue14657] Avoid two importlib copies report at bugs May 6, 2012, 12:04 AM
        [issue14657] Avoid two importlib copies report at bugs May 6, 2012, 12:06 AM
        [issue14657] Avoid two importlib copies report at bugs May 6, 2012, 12:23 AM
        [issue14657] Avoid two importlib copies report at bugs May 6, 2012, 12:28 AM
        [issue14657] Avoid two importlib copies report at bugs May 6, 2012, 9:13 AM
        [issue14657] Avoid two importlib copies report at bugs May 6, 2012, 9:24 AM
        [issue14657] Avoid two importlib copies report at bugs May 6, 2012, 9:33 AM
        [issue14657] Avoid two importlib copies report at bugs May 6, 2012, 12:05 PM
        [issue14657] Avoid two importlib copies report at bugs May 6, 2012, 11:50 PM
        [issue14657] Avoid two importlib copies report at bugs May 7, 2012, 8:01 AM
        [issue14657] Avoid two importlib copies report at bugs May 7, 2012, 8:05 AM
        [issue14657] Avoid two importlib copies report at bugs May 7, 2012, 8:11 AM
        [issue14657] Avoid two importlib copies report at bugs May 7, 2012, 8:23 AM
        [issue14657] Avoid two importlib copies report at bugs May 7, 2012, 8:42 AM
        [issue14657] Avoid two importlib copies report at bugs May 7, 2012, 8:47 AM
        [issue14657] Avoid two importlib copies report at bugs May 7, 2012, 12:31 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.