This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: add type defintion support
Type: enhancement Stage:
Components: Interpreter Core Versions: Python 2.6
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: djnet, georg.brandl, josiahcarlson
Priority: normal Keywords:

Created on 2007-01-18 21:53 by djnet, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg54991 - (view) Author: djnet (djnet) Date: 2007-01-18 21:53
Hi,

I'm used to java language.
When i use a good java ide, the autocompletion is very effective (python cannot be such effective).
ex, if i enter following text:
  Date lDate=new Date();
  lDate.[TAB_KEY]
then the editor can display all the methods available for my 'lDate' object; it can because it knows the object's type.
This is very convenient and allows to use a new API without browsing the API documentation !


I think such autocompletion could be achieved in python simply: it only need a "type definition" syntax.
Of course, the type definition should NOT be MANDATORY !

So, is this a good idea ?

David



msg54992 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2007-01-19 18:10
If what you're suggesting is static typing, please go to the python-ideas mailing list and discuss it there. Changes of a scope that large shouldn't be discussed in a issue tracker.
msg54993 - (view) Author: Josiah Carlson (josiahcarlson) * (Python triager) Date: 2007-01-20 18:43
FYI, WingIDE and a few other Python IDEs/editors offer a pseudo-syntax for defining such things to help with such introspection.  Sometimes it is code that is actually executed when the program is run, sometimes it is comments.  You may consider looking into this stuff further before posting on the python-ideas list.
History
Date User Action Args
2022-04-11 14:56:22adminsetgithub: 44490
2007-01-18 21:53:59djnetcreate