Development Articles
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherDevelopment Articles

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 November 6th, 2001, 11:01 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Python....

Thanks I enjoyed the Python tutorial and
look forward to the next one. I'm a real
newbie and saw python as an interesting
language to use for any task, I just need
to read more about it. So again thanks for the artical.

Regards,

Steve Drake

Reply With Quote
  #2  
Old November 7th, 2001, 08:41 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Thank you

At last, something that actually talks about the basis of python. This is exactly what I needed, as I had reached a level where I was just confused with this language. Now I understand Object Orientation, the rest just seems to fall into place.

Thanks again

Reply With Quote
  #3  
Old November 7th, 2001, 10:26 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
but what can it DO?

First, thanks for a great article...I always appreciate what you guys do.

But the thing for me is that I already KNOW that python is a structurally amazing language, but I have seen very little of what it can do from a more pragmatic perspective...Does anybody have an info on this? Does python have an API for windowing? Can it act as an embedded scripting language? Or is the worlds coolest language that is forever damned to CGI and the command prompt?

Reply With Quote
  #4  
Old November 7th, 2001, 10:50 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
re: but what can id DO?

check out www.zope.org, quite possibly the coolest use of python out there. Devshed seems to have made the migration.

Great Artical looking forward to part II.

Reply With Quote
  #5  
Old November 8th, 2001, 03:53 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
cool!

I downloaded zope and have started playing with it. Hot damn that's some powerful stuff! I'm thoughouly impressed. Thanks for the link!

Reply With Quote
  #6  
Old November 8th, 2001, 09:28 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
check it out!!!

The most used windowing toolkit for python is tkinter, which when you check it out is very simple, especially if your used to guis made in java or a more complex language. Check out python.org or www.onlamp.com for some good python info. If you want embedded scripting then check out jython at www.jython.org
Jython is a 100% pure java implementation which allows to use the java api in your python programs and also to quickly generate java classes using jythonc- a compiling tool. I've only recently been playing with python/jython but you can do some cool stuff. Database integration is almost as easy as php, and i've started making some python classes for that purpose. It was quick and easy, just like finding some info on how to use python for that and other purposes.

Reply With Quote
  #7  
Old November 14th, 2001, 01:49 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Nice article!!

When will you post the part2? I am a new user in python.
thanks.

Reply With Quote
  #8  
Old November 14th, 2001, 06:49 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
what about me!?

Please give us the second part and don't let this turn into the python cgi articles again which never seemed to continue

Reply With Quote
  #9  
Old November 16th, 2001, 12:50 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Thats it!

Python is the No1 pure OOP scripting language and nothing else compares to it. The shortest joke for us Pythoneers is "Object-Oriented Perl"!

Reply With Quote
  #10  
Old November 21st, 2001, 10:09 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
test.

>>> alpha = test.veryBigSnake()
>>> veryBigSnake.set_snake_name
(alpha, "Peter Python")
>>> alpha.name
'Peter Python'
>>>

The test. in this snippet threw me off a bit. I am unfamiliar enough with Python that I did not know it was _not_ a method. I am guessing test is just another object and veryBigSnake() is a property of it.

Thanks for your otherwise lucid tutorial on OO,
Chris.

X-No-archive: yes

Reply With Quote
  #11  
Old January 28th, 2002, 06:51 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:

Reply With Quote
  #12  
Old February 22nd, 2002, 03:51 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:

Reply With Quote
  #13  
Old June 28th, 2002, 04:51 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
What a tutorial!

As a programming newby, I was beginning to think that OOP was beyond me. But this tutorial has fixed that, praise be to devshed!

One small criticism. I found that the examples given didn't quite work in my Windows edition of IDLE. Code like this ......

# some useful methods
def eat(self):
# code goes here

... tended to return an indentation error. In some cases, I actually found it easier to save the script to my lib directory, then import it from the command line.

Other newbies might be completely confounded by this, I daresay.

netvegetable

Reply With Quote
  #14  
Old July 13th, 2002, 03:59 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
parameters vs. arguments

In the article, the author refers to passing a parameter with a name, something like "Peter Python".

The author makes use of incorrect terminology. One passes arguments to parameters, i.e., one makes an argument to a function. Many people make this mistake, including computer science Ph.D. holders, computer book authors, computer engineers, etc.

Theoretically, a parameter, not to be confused with the word perimeter, is something that bounds the functioning of something else. No doubt, you have heard the expression, "operate within these parameters", or something similar. One passes arguments to a function so that the function will operate within its parameters using the arguments supplied.


A function makes use of parameters that control the operation of the function.

Reply With Quote
  #15  
Old November 7th, 2002, 04:26 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Great tutorial

This is great tutorial. It is as simple as that. Thanks!

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDevelopment Articles > Object Oriented Programming With Python (part 1)


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 5 hosted by Hostway