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

Python editors for Windows question

Hello,

I just started programming in Python last night, and I've really enjoyed my
experience so far. I would like to know if there is a Windows editor that
recognizes Python and will support a module syntax/definition lists For
instance, let's say that I set form = cgi and then when I hit the period
(".") on the keyboard, a list of objects shows up, such as FieldStorage(),
etc.. Any suggestions are appreciated. Thank you!

Dustin
Jul 18 '05 #1
11 1691
I believe what I'm looking for is an "autocomplete" capable editor :-)
"Dustin" <du****@myaddress.net> wrote in message
news:D6**********************@news.easynews.com...
Hello,

I just started programming in Python last night, and I've really enjoyed my experience so far. I would like to know if there is a Windows editor that
recognizes Python and will support a module syntax/definition lists For
instance, let's say that I set form = cgi and then when I hit the period
(".") on the keyboard, a list of objects shows up, such as FieldStorage(),
etc.. Any suggestions are appreciated. Thank you!

Dustin

Jul 18 '05 #2
Dustin wrote:
I just started programming in Python last night, and I've really enjoyed my
experience so far. I would like to know if there is a Windows editor that
recognizes Python and will support a module syntax/definition lists For
instance, let's say that I set form = cgi and then when I hit the period
(".") on the keyboard, a list of objects shows up, such as FieldStorage(),
etc.. Any suggestions are appreciated. Thank you!


SciTE can handle that: http://scintilla.sourceforge.net/SciTE.html
So can practically every other halfway decent editor these days,
most likely.

-Peter
Jul 18 '05 #3
I haven't actually checked if it does it for PHP but it says it has
autocomplete, weather it explores your classes or not I don't know.
http://www.activestate.com/Products/Komodo/index.plex
Jul 18 '05 #4
Komodo will do it. It will even autocomplete custom class information.
For example, if I type:

x.y.z = 5

the next time I type x. it will autocomplete (suggest) that I add 'y'
and so on. (woooo, aahhhhhh...)

Noah from IT Goes Click wrote:
I haven't actually checked if it does it for PHP but it says it has
autocomplete, weather it explores your classes or not I don't know.
http://www.activestate.com/Products/Komodo/index.plex

Jul 18 '05 #5
PythonWin (part of the pywin32/win32all package) has limited
autocomplete. Basically it will auto-complete for modules which are
loaded, so if you import cgi in the interactive session then you will
have autocompletion for cgi. If the module is not loaded, then PythonWin
uses a simpler algorithm that searches through the current file looking
for x.y notations where x matches your currently-begun x.

PythonWin also has very nice ctrl+space identifier completion which
searches back/forward from where you're typing, so you can type longer
identifiers with just a few keystrokes.

Would be nice to have that same set of mechanisms in all Python
editors. I believe Boa has auto-completion in much the same way. Not
sure about the other win32 editors. I think the Activestate IDEs may
have auto-completion, but again, not sure.

Good luck and welcome,
Mike

Dustin wrote:
Hello,

I just started programming in Python last night, and I've really enjoyed my
experience so far. I would like to know if there is a Windows editor that
recognizes Python and will support a module syntax/definition lists For
instance, let's say that I set form = cgi and then when I hit the period
(".") on the keyboard, a list of objects shows up, such as FieldStorage(),
etc.. Any suggestions are appreciated. Thank you!

Dustin

_______________________________________
Mike C. Fletcher
Designer, VR Plumber, Coder
http://members.rogers.com/mcfletch/

Jul 18 '05 #6
Thank you everyone. I will test out the various editors! :-)

"Dustin" <du****@myaddress.net> wrote in message
news:D6**********************@news.easynews.com...
Hello,

I just started programming in Python last night, and I've really enjoyed my experience so far. I would like to know if there is a Windows editor that
recognizes Python and will support a module syntax/definition lists For
instance, let's say that I set form = cgi and then when I hit the period
(".") on the keyboard, a list of objects shows up, such as FieldStorage(),
etc.. Any suggestions are appreciated. Thank you!

Dustin

Jul 18 '05 #7
You can also give SPE (Stani's Python Editor) a try. (http://spe.pycs.net)

---Hemanth

"Dustin" <du****@myaddress.net> wrote in message news:<vU**********************@news.easynews.com>. ..
Thank you everyone. I will test out the various editors! :-)

"Dustin" <du****@myaddress.net> wrote in message
news:D6**********************@news.easynews.com...
Hello,

I just started programming in Python last night, and I've really enjoyed

my
experience so far. I would like to know if there is a Windows editor that
recognizes Python and will support a module syntax/definition lists For
instance, let's say that I set form = cgi and then when I hit the period
(".") on the keyboard, a list of objects shows up, such as FieldStorage(),
etc.. Any suggestions are appreciated. Thank you!

Dustin

Jul 18 '05 #8
The best auto-completion you can get for Python is: WingIde
http://wingide.com/

Normally WingIDE is quite good at auto-completion but sometimes it needs
some help:

if wingIde does not "recognize" a class you may add:

assert isinstance(btnHello, wxButton)

and after that point it will handle this for you too...

Good luck,
Marco


Jul 18 '05 #9
Marco Aschwanden <PP**********@spammotel.com> wrote in message news:<ma**************************************@pyt hon.org>...
The best auto-completion you can get for Python is: WingIde
http://wingide.com/

Normally WingIDE is quite good at auto-completion but sometimes it needs
some help:

if wingIde does not "recognize" a class you may add:

assert isinstance(btnHello, wxButton)

and after that point it will handle this for you too...


But keep in mind that auto-completion is by concepts miles away from
what you see in Java. The problem for us who try to implement this
feature is always that most people don't understand why this is
impossible in a dynamically typed language.
Jul 18 '05 #10
PyPE seems like a really nice piece of work as well.

Dustin wrote:
Thank you everyone. I will test out the various editors! :-)

"Dustin" <du****@myaddress.net> wrote in message
news:D6**********************@news.easynews.com...
Hello,

I just started programming in Python last night, and I've really enjoyed

my
experience so far. I would like to know if there is a Windows editor that
recognizes Python and will support a module syntax/definition lists For
instance, let's say that I set form = cgi and then when I hit the period
(".") on the keyboard, a list of objects shows up, such as
FieldStorage(), etc.. Any suggestions are appreciated. Thank you!

Dustin


Jul 18 '05 #11
> But keep in mind that auto-completion is by concepts miles away from
what you see in Java. The problem for us who try to implement this
feature is always that most people don't understand why this is
impossible in a dynamically typed language.


Not quite impossible, but very difficult. It is impossible in a
practical sense for editors that don't use a parser capable of creating
an abstract syntax tree (generally compiler.ast or the tokenizer module
are used in editors written in Python).

Furthermore, it usually involves questions like "how many levels of
imports should we deal with, and how much namespace emulation should be
done", which involves potentially expensive namespace creation,
modification, and later recreation ("from module import *" becoming
"import module" being one of them) in more than a single level of
namespace. Quite an ugly problem that you're hard-pressed to find an
editor (for dynamically typed languages) with a decent implementation.

WingIDE's method for getting past some inference checks is nifty, though
I would be a bit irked if I used autocompletion (I don't) and needed to
pepper my code with (unneeded) assert statements just to get it to work
all the time.

- Josiah
Jul 18 '05 #12

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

Similar topics

0
by: Emile van Sebille | last post by:
QOTW: "Have you ever used the copy module? I am *not* a beginner, and have used it *once* (and I can't remember what for, either)." -- Michael Hudson "It will likely take a little practice...
3
by: Kenneth McDonald | last post by:
After looking around at various editors, I've finally decided on (I think :-) ) Vim for my future work. (jed is a great editor, but doesn't do neat things like allow me to write python code to add...
49
IDE
by: Thomas Lindgaard | last post by:
Hello I am probably going to start a war now... but so be it :) I just want to hear what all you guys who eat pythons for breakfast use for python coding. Currently I use Kate, but I would...
37
by: Carlos Ribeiro | last post by:
Oh well. A mailing list is not the most appropriate place for rants (a blog is better), but it's still better than keeping it for myself. I'm frustrated. My search for a good IDE to support my...
35
by: Michael Kearns | last post by:
I've been using python to write a simple 'launcher' for one of our Java applications for quite a while now. I recently updated it to use python 2.4, and all seemed well. Today, one of my...
23
by: gord | last post by:
As a complete novice in the study of Python, I am asking myself where this language is superior or better suited than others. For example, all I see in the tutorials are lots of examples of list...
122
by: Edward Diener No Spam | last post by:
The definition of a component model I use below is a class which allows properties, methods, and events in a structured way which can be recognized, usually through some form of introspection...
20
by: W. Watson | last post by:
I downloaded python-2.5.msi and installed it. I believe its editor is IDE. I understand there's a Win editor called pythonwin. I believe it's in the download pywin32-210.win32-py2.5.exe, but I'm...
3
by: mmm | last post by:
I am looking for advice on Python Editors and IDEs I have read other posts and threads on the subject and my two questions at this time are mainly about the IDLE-like F5-run facilities. While I...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.