Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 9th, 2002, 07:35 AM
liorde's Avatar
liorde liorde is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Posts: 0 liorde User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to liorde Send a message via Yahoo to liorde
Question A newbie question about Python

Hello all,
I am new to Python.
-I would like to know please what editor do you recommend to
work with Python.
-Do we compile the programs in Python like we do in C or C++ ?
-Besides this great forum is there another good place for online
documentation regarding Python?

Thank-you in advance,
LIOR

Reply With Quote
  #2  
Old September 9th, 2002, 08:17 AM
OB_redemption's Avatar
OB_redemption OB_redemption is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Posts: 32 OB_redemption User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
editor: use IDLE which comes with Python... or you can use vim or emacs (Unix)

compilation: no you dun really compile Python scripts... Python scripts are run like Perl scripts (passed to the Python interpreter) which _also_ compiles your .py files into Python bytecode .pyc... but no - there is no compile step like in C/C++

online docs: check the main site www.python.org... the best documentation is all there

Reply With Quote
  #3  
Old September 9th, 2002, 08:21 AM
liorde's Avatar
liorde liorde is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Posts: 0 liorde User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to liorde Send a message via Yahoo to liorde
thanks...!

Well that was a quick reply, thank-you for that.
What is this IDLE editor?
I guess actually any good editor will do if no compiling is needed here.
I currently use Visual Slick Edit which is quite a nice tool for any editing actually, I guess I will wtick to that one.

Thanks again,
LIOR

Reply With Quote
  #4  
Old September 9th, 2002, 08:29 AM
OB_redemption's Avatar
OB_redemption OB_redemption is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Posts: 32 OB_redemption User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
heh i just happened to pop by just after you posted i guess

IDLE stands for Integrated DeveLopment Environment... it's an editor that comes with Python and is written by one of the Python guys... it comes with most distributed Python binaries...

read more about it here -> http://www.python.org/idle/

and yes just about any editor would do, though one thing you have to be careful of is that you don't mix tabs and spaces, since Python is scoped using whitespace (i'm sure you already know that)

Reply With Quote
  #5  
Old September 9th, 2002, 08:33 AM
liorde's Avatar
liorde liorde is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Posts: 0 liorde User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to liorde Send a message via Yahoo to liorde
Thank-you again...

Hi there...
Thanks for the additional information.
Actually I do not know of what you said about whitespaces and tabs.....
Could you please explain more about this.
I am sorry to be so ignorant here, but I really am ...!
Thank you again, and you can contact me via ICQ or my regular e-mail...

LIOR

Reply With Quote
  #6  
Old September 9th, 2002, 10:20 AM
bapolis bapolis is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Posts: 257 bapolis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 34 m 2 sec
Reputation Power: 7
editor...

I use TextPad (www.textpad.com) and Notepad (www.microsoft.com)

Reply With Quote
  #7  
Old September 11th, 2002, 09:55 PM
wabirdman wabirdman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: Australia
Posts: 111 wabirdman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 19 sec
Reputation Power: 8
Quote:
Actually I do not know of what you said about whitespaces and tabs.....
Could you please explain more about this


i do not know a lot about python, but I do know that it interprets spaces in the code. A whole file can not run because of incorrect spacing.

wabirdman
__________________
Real programmers code in binary

Reply With Quote
  #8  
Old September 12th, 2002, 12:09 AM
OB_redemption's Avatar
OB_redemption OB_redemption is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Posts: 32 OB_redemption User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Python doesn't really interpret whitespace... it uses whitespace the way we use braces in most other programming languages (C, Java) to group statements or form scoping rules

Code:
if(condition)
{
  if(othercondition)
  {
    do this;
    do that;
  }
}

whereas in python, this is how you structure your code with whitespace:
Code:
if condition:
  if othercondition:
    do this
    do that

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > A newbie question about Python


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway