|
From: Kevin A. <al...@se...> - 2002-02-07 20:43:45
|
> From: Patrick K. O'Brien > > If you examine an object in the PyCrust namespace tree you will > see that it > is easy to get the source code for a particular method of an object. So it > wouldn't be impossible to do a VB-like edit-the-code-behind-the-object IDE > environment. Or at least position the user on the relevant > starting point in > the code file. (Which Kevin's FindFiles app already does as well.) The problem in a Python editor is that because there is no type information until a variable has been evaluated it is difficult to supply documentation, a list of methods or attributes. From http://diveintopython.org/odbchelper_funcdef.html "So Python is both dynamically typed (because it doesn't use explicit datatype declarations) and strongly typed (because once a variable has a datatype, it actually matters)." The command completion I can get from a VB or Java or C++ editor is one of the things I miss most about Python. In some cases the editor could work like the shell (PyCrust) where you have a lot of clues about the objects being used and provide autocompletion for variables. PythonWin does this for a script once it has been executed, but it is haphazard and if you change the type of a variable it gets confused. This probably falls under the hard category until Python provides optional type info for variables. Ideas or corrections are welcome. ka > > -----Original Message----- > > Kevin Altis wrote: > > > [snip] > > > > We already have the Shell component, we just continue to use PyCrust. > > > > > > In the "six blind men describe the beast" thread, Neil Hodgson said: > > "Writing a small editor isn't all that hard. I don't expect > the initial > > version of an editor for PythonCard that handled the vast > > majority of needed > > features would take long at all. You can get tied up in details > > though. The > > biggest question to me would be how do you determine which files > > are part of > > a PythonCard project and where within those files are the event > > handlers? Do > > you do VB style file segmentation or just present the whole file to the > > user?" > > > > ka > > > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > |