[python] [wingide-users] [IDEA] auto-completion helper
Michael Foord
fuzzyman at voidspace.org.uk
Sat Nov 17 07:17:04 MST 2007
ArShAm Shirvani wrote:
> Hi there,
> Maybe this helps for dynamic resolutions , for auto-completion :
> Assume you have a function :
>
> def myFunction(name , number , flag):
>
> family = getFromADynamicReturner(name,number)
> dunno = getFromADynamicReturner(flag)
>
> return [(name,number),not flag]
>
Uhm - above is nice readable code, below is unreadable mess. Just my
opinion...
Michael
http://www.manning.com/foord
> If you define some kind of standard comments right before the
> definition starts ( like what ZDE does with phpdocs ):
>
> ##
> # @var name str
> # @var number int
> # @var flag bool
> # @return list [(name:str,number:int),reverted flag:bool]
> ##
> def myFunction(name , number , flag):
> # @var family str : this is a real note , and for you , this is
> where you can drop a tip for type of variable
> family = getFromADynamicReturner(name,number)
> # @var dunno () : again another situation witht he type of ()
> dunno = getFromADynamicReturner(flag)
>
> return [(name,number),not flag]
>
> It could be a great helper and also forces developers to learn how to
> document their code.
>
> It may override the original auto-completer for complex situations.
>
> Keep on great work
> Arsham
> _________________________________________________
> Wing IDE users list
> http://wingware.com/lists/wingide
>
>
More information about the wingide-users
mailing list