473,320 Members | 1,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Python internal design

Hi Folks,

I am designing a tool, in which there are dynamic types and
variables with these types. In this respect, it is more like an
interpreted language design.

I wonder how these issues are implemented in Python are there any
documents or articles about it, which I can read and get an idea.

Thanks,

emre
Jul 19 '05 #1
3 1594
Emre Turkay wrote:
Hi Folks,

I am designing a tool, in which there are dynamic types and
variables with these types. In this respect, it is more like an
interpreted language design.

I wonder how these issues are implemented in Python are there any
documents or articles about it, which I can read and get an idea.

Thanks,

emre


Hi,

I've been trying to look that up as well, in CoRR, ACM digital library
but not much luck. I've got only peripheral hits using "python virtual
machine" as search term. If you are looking for something at the level
of "python language specification" and "python virtual machine
specification", I am unable to find anything yet.

Please tell me if you managed to find something useful.

Cheers
Maurice
Jul 19 '05 #2
>>>>> "Emre" == Emre Turkay <tu*****@ldre.Vanderbilt.Edu> writes:

Emre> Hi Folks,

Emre> I am designing a tool, in which there are dynamic types and
Emre> variables with these types. In this respect, it is more like
Emre> an interpreted language design.

Emre> I wonder how these issues are implemented in Python are
Emre> there any documents or articles about it, which I can read
Emre> and get an idea.

It's built around string lookup.

obj.stuff() -> look up what object is associated with string 'stuff',
get the object, see how it can be called, call it.

--
Ville Vainio http://tinyurl.com/2prnb
Jul 19 '05 #3

"Maurice LING" <ma*********@acm.org> wrote in message
news:d4**********@domitilla.aioe.org...
I am designing a tool, in which there are dynamic types and
variables with these types. In this respect, it is more like an
interpreted language design.

I wonder how these issues are implemented in Python are there any
documents or articles about it, which I can read and get an idea.


There is no single doc other that the source, but lots of bits and pieces
scattered thru clp archives. The CPython interpreter, tokenizes, parses,
and compiles Python to CPython bytecode. The library manual chapter on the
dis module defines the stack-based CPython virtual machine. The bytecode
is interpreted in a loop with a giant switch (ceval.c). Python objects
have a common header and a type-specific value section. For builtin type
objects, the value section is a standard set of slots for functions
corresponding to the various operators and builtins. For more, see the
source or persistently search Google's archive for the group.

Terry J. Reedy

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Paul Prescod | last post by:
I skimmed the tutorial and something alarmed me. "Strings are a powerful data type in Prothon. Unlike many languages, they can be of unlimited size (constrained only by memory size) and can hold...
36
by: Andrea Griffini | last post by:
I did it. I proposed python as the main language for our next CAD/CAM software because I think that it has all the potential needed for it. I'm not sure yet if the decision will get through, but...
23
by: Antoon Pardon | last post by:
I have had a look at the signal module and the example and came to the conclusion that the example wont work if you try to do this in a thread. So is there a chance similar code will work in a...
24
by: John Salerno | last post by:
Since Python does so many things different, especially compared to compiled and statically typed languages, do most of the basic design patterns still apply when writing Python code? If I were to...
0
by: follower | last post by:
This post is mostly Google-bait for anyone else that might want to compile SpiderMonkey ( libjs / libjs.so / libjs.dylib ) for OS X (10.4.5 in my case) and then use it with Python's ctypes. I can't...
112
by: mystilleef | last post by:
Hello, What is the Pythonic way of implementing getters and setters. I've heard people say the use of accessors is not Pythonic. But why? And what is the alternative? I refrain from using them...
122
by: Edward Diener No Spam | last post by:
The definition of a component model I use below is a class which allows properties, methods, and events in a structured way which can be recognized, usually through some form of introspection...
17
by: chewie54 | last post by:
Hello, As an electronics engineer I use some very expensive EDA CAD tool programs that are scriptable using Tcl. I was wondering why these companies have choose to use Tcl instead of Python. ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.