Re: Python Tutorial Questions

Jaap Vermeulen (jaap@sequent.com)
Thu, 28 Jul 94 23:19:13 GMT

In <watton-2207941525020001@132.226.104.125> watton@atc.alcoa.com (John Watton) writes:

>(1) Does Python have a garbage collector built in or do I have to
>manage my own memory with the del() operator?

Python uses reference counts, so memory is managed for most objects.
You would need to use del() to break cycles.

>(2) The tutorial mentions compiled files with the pyc extension but always
>quoted the word
>compiled. Is the code really compiled to be faster running in some way or
>does it
>just load faster?

Python uses a virtual engine with its own instruction set. Python code
is truly compiled before interpreted by the virtual engine.

$0.02

-Jaap-

-- 
Jaap Vermeulen					+--------------------------+
						| Sequent Computer Systems |
	Internet : jaap@sequent.com		| Beaverton, Oregon	   |
	Uucp	 : ...uunet!sequent!jaap	+--------------------------+