General Discussions

What do you like most about Python? – CPUFreak91

CPUFreak91

Member

Posts: 2337
From:
Registered: 02-01-2005
What do you like most about the Python programming language?
I love it's syntax, easy of use, easy to learn, variety of things you can do with it.

What are you favorite 3rd party modules?
Pygame, PyQT

What are your most used "in-house" (the standard ones that come with python automatically) modules?
sys
os
random
urllib2

------------------
All Your Base Are Belong To Us!!! chown -r us ./base
"After three days without programming, life becomes meaningless.'' -- Tao of Programming Book 2

buddboy

Member

Posts: 2220
From: New Albany, Indiana, U.S.
Registered: 10-08-2004
Ease of use, syntax, easy to learn, ability to do a lot with it (i know i took what CPU said, but i like them too ) ... i love the way it's integrated into Linux very much.. I LOVE GOOGLE (google uses python a lot)... i like that i am making my Motion detection game with Python... and how easy it is to do that... i like Tuples!

My favorite 3P modules:
Pygame, PIL, VideoCapture...

Budd.
boy.

------------------
In the stock market, you must buy high and sell low...Wait! That's not right!
--------------
Yes, I can be intelligent at times!!

Ereon

Member

Posts: 1018
From: Ohio, United States
Registered: 04-12-2005
Never used Python......what uses does it have exactly, and is it usful for commeercial quality games?

------------------

"I am very good at hiding, so if you don't see me, that's where I am." Orc Outlaw, TES III Morrowind

crazyishone

Member

Posts: 1685
From:
Registered: 08-25-2004
Python is usefull as a scripting language in commercial quality games.

------------------
quit posting on CCN? nope. I havn't been driven off yet.

CPUFreak91

Member

Posts: 2337
From:
Registered: 02-01-2005
quote:
Originally posted by Ereon:
Never used Python......what uses does it have exactly, and is it usful for commeercial quality games?


The Civilization 4 game uses Python. (www.python.org/Quotes.html)

------------------
All Your Base Are Belong To Us!!! chown -r us ./base
"After three days without programming, life becomes meaningless.'' -- Tao of Programming Book 2

buddboy

Member

Posts: 2220
From: New Albany, Indiana, U.S.
Registered: 10-08-2004
it could be used... i don't know how good the game would be, or the challenges of making it... tho it does have a great open source engine (Pygame) which was used to make Bible Dave! lol... it's really easy to use, especially if you already know a language (especially BB, there's similarities, tho not much)...

------------------
In the stock market, you must buy high and sell low...Wait! That's not right!
--------------
Yes, I can be intelligent at times!!

CoolJ

Member

Posts: 354
From: ny
Registered: 07-11-2004
what IDE does anyone recommend for python for linux?
CPUFreak91

Member

Posts: 2337
From:
Registered: 02-01-2005
quote:
Originally posted by coolj:
what IDE does anyone recommend for python for linux?


If you're a KDE fan, eric3 is good. If you don't care about good looks (or don't use KDE) Stani's Python Editor is great. I use it even though I use KDE

Check your distro's repositories incase SPE or Eric3 is already included there. I will definitely mean less work.

------------------
All Your Base Are Belong To Us!!! chown -r us ./base
"After three days without programming, life becomes meaningless.'' -- Tao of Programming Book 2

CoolJ

Member

Posts: 354
From: ny
Registered: 07-11-2004
quote:
Originally posted by CPUFreak91:

If you're a KDE fan, eric3 is good. If you don't care about good looks (or don't use KDE) Stani's Python Editor is great. I use it even though I use KDE

Check your distro's repositories incase SPE or Eric3 is already included there. I will definitely mean less work.


Thanks!!!
I'm not sure if those included or not. I'm using Yellow Dog Linux on my old powerbook, but its an older version. i did get python installed which is cool. Though when I tried to install pygame it compains about missing numeric and font modules, so I must be missing something else..


luke

Member

Posts: 311
From: I use your computer as my second Linux box
Registered: 10-30-2005
You know, I have never really understood this scripting thing... Could some1 point out a tutorial or some such thing?

------------------
Omnia Vos Estis Cordatis

CPUFreak91

Member

Posts: 2337
From:
Registered: 02-01-2005
quote:
Originally posted by coolj:
Though when I tried to install pygame it compains about missing numeric and font modules, so I must be missing something else..

Google for 'em. Because your version of Pygame requires those packages.

quote:
Originally posted by luke:
You know, I have never really understood this scripting thing... Could some1 point out a tutorial or some such thing?

www.abyteofpython.info
www.ibiblio.org/obp/thinkCSpy/

Those can be helpful.
Scripting in python's case means:

quote:
A scripting language differentiates itself from other typical languages in that they are usually simpler to learn and use as well as not needing to be compiled. The language is interpreted at run-time so you can execuate instructions immediately.
www.davidgould.com/Glossary/Glossary.htm

EDIT: I noticed you're a Java person, Luke, Java is also a scripting language (you may disagree). JSP definitely is a a scripting language.

You 3d graphics game or designer freaks (no insult intended) might like Py3d (www.py3d.org)and PyOpen GL (http://pyopengl.sourceforge.net)

------------------
All Your Base Are Belong To Us!!! chown -r us ./base
"After three days without programming, life becomes meaningless.'' -- Tao of Programming Book 2

[This message has been edited by CPUFreak91 (edited April 25, 2006).]

Ereon

Member

Posts: 1018
From: Ohio, United States
Registered: 04-12-2005
I don't know any tutorials but I can explain the principles. Pretty much scripting is a simplified form of coding, usually consisting of events (triggers) and effects. So, in a script that is run repeatedly by a program it might have something like a mathematical rectangle event.

IF playerposition(x) is <5 and >-5 AND IF playerposition(y) is <5 and >-5 AND IF playerposition(z) is <5 and >-5 THEN trigger boulderfall

The end result is if a player steps inside that 10x10x10 box then it will trigger the event (in this case boulderfall). Scripting engines can be very complex and control a wide variety of game actions and such, and allow of simplified editing and "coding" by making repetetive engine features or actions much simpler by allowing the user to take a sort of shortcut if you will.

------------------

"I am very good at hiding, so if you don't see me, that's where I am." Orc Outlaw, TES III Morrowind

[This message has been edited by Ereon (edited April 25, 2006).]

luke

Member

Posts: 311
From: I use your computer as my second Linux box
Registered: 10-30-2005
Oh, that kindof scripting. I thought you meant a custom made script ie your game engine looks at some txt file and does stuff... I didnt connect the dots lol... and I think Java is a semi-scripted language, with JIT compilation its pretty close to an 'exe' language, but close only counts with shotguns, hand gernades, and nukes.

------------------
Omnia Vos Estis Cordatis

buddboy

Member

Posts: 2220
From: New Albany, Indiana, U.S.
Registered: 10-08-2004
no, close counts with horseshoes and handgrenades! lol..

------------------
In the stock market, you must buy high and sell low...Wait! That's not right!
--------------
Yes, I can be intelligent at times!!