473,324 Members | 1,646 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,324 software developers and data experts.

Static Typing

There's some slides at http://www.python.org/~guido/static-typing/. Are
these features already in Python? I'm guessing not but if so, how do I
enable these (I get syntax errors), and why can't I find any documentation
on them? Thanks in advance.
Jul 18 '05 #1
4 973
>>>>> "publicNO" == OvErboRed <pu******@SPAMoverbored.net> writes:

publicNO> There's some slides at
publicNO> http://www.python.org/~guido/static-typing/. Are these
publicNO> features already in Python? I'm guessing not but if so,
publicNO> how do I enable these (I get syntax errors), and why
publicNO> can't I find any documentation on them? Thanks in
publicNO> advance.

Yes, they are not, and "enabling" them would probably involve more
work than you probably expect to be able to put it ;-).

For one approach to statically typed Python, check out

http://boo.codehaus.org/

We do need to have to wait a bit more to get a statically typed
CPython, unfortunately. Somehow I feel it's not going to get in during
the 2.4 alpha/beta cycle ;-).

--
Ville Vainio http://tinyurl.com/2prnb
Jul 18 '05 #2
Ville Vainio wrote:
We do need to have to wait a bit more to get a statically typed
CPython, unfortunately. Somehow I feel it's not going to get in during
the 2.4 alpha/beta cycle ;-).


It's interesting, though. I had missed it the first time around, I find
it intriguing.

--
__ Erik Max Francis && ma*@alcyone.com && http://www.alcyone.com/max/
/ \ San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
\__/ We learn from history that we do not learn from history.
-- Georg Friedrich Wilhelm Hegel
Jul 18 '05 #3
>>>>> "Erik" == Erik Max Francis <ma*@alcyone.com> writes:

Erik> Ville Vainio wrote:
We do need to have to wait a bit more to get a statically typed
CPython, unfortunately. Somehow I feel it's not going to get in
during the 2.4 alpha/beta cycle ;-).


Erik> It's interesting, though. I had missed it the first time
Erik> around, I find it intriguing.

It is - but the slides don't describe type inference, and that's
definitely what I would like to see in the future typing system.

--
Ville Vainio http://tinyurl.com/2prnb
Jul 18 '05 #4

"OvErboRed" <pu******@SPAMoverbored.net> wrote in message
news:Xn******************************@127.0.0.1...
There's some slides at http://www.python.org/~guido/static-typing/. Are
these features already in Python? I'm guessing not but if so, how do I
enable these (I get syntax errors), and why can't I find any documentation
on them? Thanks in advance.


You might notice the date on those slides. It's been almost four
years and at least three releases, and there has been no movement.
I wouldn't suggest holding your breath.

John Roth
Jul 18 '05 #5

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

Similar topics

12
by: Michael Muller | last post by:
Is there currently any plan to introduce static typing in any future version of Python? (I'm not entirely sure that "static typing" is the right term: what I'm talking about is the declaration of...
467
by: mike420 | last post by:
THE GOOD: 1. pickle 2. simplicity and uniformity 3. big library (bigger would be even better) THE BAD:
15
by: Premshree Pillai | last post by:
How do I force static typing in Python? -Premshree Pillai ===== -Premshree http://www.qiksearch.com/] ________________________________________________________________________ Yahoo! India...
8
by: Grzegorz Dostatni | last post by:
I had an idea yesterday. (Yes, I know. Sorry). If we don't need to declare variables as having a certain type, why do we need to import modules into the program? Isn't the "import sys" redundant...
19
by: bearophile | last post by:
This is my first post here, I hope this is the right place to talk about such things. I have few comments and notes on the Python language. I've just started to learn it; this is negative because...
49
by: bearophileHUGS | last post by:
Adding Optional Static Typing to Python looks like a quite complex thing, but useful too: http://www.artima.com/weblogs/viewpost.jsp?thread=85551 I have just a couple of notes: Boo...
44
by: John A. Bailo | last post by:
Dr. Dobbs has a /glowing/ article on Ruby on Rails this month. What do you guys think? Can it replace .net, php and java? And be the Open Source OOP web solution that is not bound to Sun or...
6
by: Christian Convey | last post by:
Hi guys, I'm looking at developing a somewhat complex system, and I think some static typing will help me keep limit my confusion. I.e.: ...
17
by: copx | last post by:
I don't know what to think of the following.. (from the dietlibc FAQ) Q: I see lots of uninitialized variables, like "static int foo;". What gives? A: "static" global variables are initialized...
45
by: azrael | last post by:
Hy guys, A friend of mine i a proud PERL developer which always keeps making jokes on python's cost. Please give me any arguments to cut him down about his commnets like :"keep programing i...
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
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
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...

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.