how many objects are loaded for hello world?

Chris Rebert clp at rebertia.com
Wed Sep 17 02:19:07 EDT 2008


On Tue, Sep 16, 2008 at 11:13 PM, belred <belred at gmail.com> wrote:
> i just read this blog about how many objects (types) are loaded for a
> hello world program in C#.
>
> http://blogs.msdn.com/abhinaba/archive/2008/09/15/how-many-types-are-loaded-for-hello-world.aspx
>
> how can you find out how many are loaded for a python program:  print
> 'hello'

Python 2.5.1 (r251:54863, Feb  4 2008, 21:48:13)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> len(dir(__builtins__))
134

Regards,
Chris

>
>
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
Follow the path of the Iguana...
http://rebertia.com



More information about the Python-list mailing list