Java Virtal Machine.net

[ News ] rss

March 15, 2010

Joe Darcy: Beware of Covariant Overriding in Interface Hierarchies. One of the changes to the Java programming language made back in JDK 5 was the introduction of covariant returns, that is, the ability in a subtype to override a method in a supertype and return a more specific type. For example,

More »

March 14, 2010

Stephen Colebourne: Java language design by use case. In a blog in 2006 Neal Gafter wrote about how language design was fundamentally different to API design and how use cases were a bad approach to language design. This blog questions some of those conclusions in the context of the Java language.

More »

March/2010
SunMonTueWedThuFriSat
 1 2 3 456
789 1011 12 13
14 15 16 17181920
21222324252627
28293031   

[ Archives News
for 'Developers' ]

home > news > developers > netbeans screenshot of the week #36: python code completion

NetBeans Screenshot of the Week #36: Python Code Completion

Here are some screenshots of the code completion working for Python. First, let's try it from an import statement: Note that the documentation for the module is shown. Next, let's try completing on imported symbols - again we've got the documentation: I'm writing a unit test, extending TestCase. Now let's try overriding some methods - completion after typing def: Obviously, invoking methods on self. will show the inherited methods - and their documentation: Here's completion in my function (not on self) showing the local variables, imported symbols and builtins. Notice that deprecated methods are marked with strikethrough (and deprecated modules are in imports as well, though I didn't show that above). Notice also that the documentation here looks better - it has links, colors, etc. This is because NetBeans supports the reStructuredText Docstring Format (see PEP 287). System libraries are being documented in this way now, so more of the documentation will start looking like this. When NetBeans finds embedded code, it will also syntax highlight the code fragments in the documentation: You can use this in your own documentation as well obviously. Here's a file where I have restructured text. As I'm writing it, I can -immediately- preview the text myself by just pressing Ctrl-Shift-Space (Show Documentation - for those who don't know, you can do this on regular code as well if you want to just get the document...


Date: November, 14 2008
Url: http://blogs.sun.com/tor/entry/netbeans_screenshot_of_the_week3


Others News

Leave a Reply

Name (required)
Mail (will not be published) (required)
Website
You don't see letters?

Enter the code shown above (required)


Related

©2002-2008Java-Virtual-Machine.net