* *

Coding

Welcome, Guest. Please login or register.
Did you miss your activation email?
December 16, 2017, 04:14:42 AM

Login with username, password and session length

Menu

Members
Stats
  • Total Posts: 12183
  • Total Topics: 1737
  • Online Today: 40
  • Online Ever: 195
  • (February 11, 2014, 01:46:08 PM)
Users Online
Users: 1
Guests: 31
Total: 37
King64
Yahoo!
Sogou
Google
Baidu (2)

Author Topic: learning python  (Read 7262 times)

0 Members and 1 Guest are viewing this topic.

Offline TEKnome

  • Newbie
  • *
  • Posts: 5
  • Bananas: 0
learning python
« on: August 26, 2007, 09:35:13 PM »
does anybody use python ?
-

I'm not an expert but I'm willing to help where i can.
-

I use the activestate install -activepython standard-
it can be found here:

http://www.activestate.com/Products/ActivePython/

it also has access to additional libraries and utilities.
-

i have found the komodo IDE to be one of the best editors around ( commercial) and they have released a free version -komodo edit- ( free - noncommercial)
you'll find them here:

http://www.activestate.com/

-
more info on python and the python language can be found here:

http://wiki.python.org/moin/BeginnersGuide

Offline Blue Steel

  • Administrator
  • Hero Member
  • *****
  • Posts: 903
  • Bananas: 75
  • Gender: Male
  • Wheres My Coffee ????
    • Coding Monkeys
Re: learning python
« Reply #1 on: August 26, 2007, 10:05:00 PM »
Great Thanks Teknome ;) welcome aboard

MikeHunt

  • Guest
Re: learning python
« Reply #2 on: August 26, 2007, 10:19:52 PM »
I've recently become interested in Python....

I've downloaded Python 2.5 and I am starting to learn it.

Looks very interesting!

Offline MikeHart

  • Sr. Member
  • ****
  • Posts: 319
  • Bananas: 4
  • Gender: Male
Re: learning python
« Reply #3 on: August 27, 2007, 01:38:48 AM »
I had to code in Python to create an Blender export script for thinBASIC. Python is really powerful, but you can pull your hair out for silly bugs that are not obvious. Example, when you don't use a proper IDE, sometimes Python has problem to identifiy the right indention. Like mixed spaces and tabs.

I recomment having whitespaces allways visible and using Programmers Notepad 2.

Offline kryton9

  • Hero Member
  • *****
  • Posts: 971
  • Bananas: 6
  • Gender: Male
Re: learning python
« Reply #4 on: August 27, 2007, 04:21:13 PM »
I hope to use python for blender script writing too. So nice to have this area to talk about it and ask for help etc.

Offline Bizzy

  • Jr. Member
  • **
  • Posts: 66
  • Bananas: 3
  • Gender: Male
Re: learning python
« Reply #5 on: August 27, 2007, 06:02:31 PM »
A while back I was interested in Python so read up on it a bit.

It appeared to me at the time that Python di dnot compile into an EXE and that u needed to send your Source Code to a suer so they could run your programs.

Is this still the case with Python?

Offline TEKnome

  • Newbie
  • *
  • Posts: 5
  • Bananas: 0
Re: learning python
« Reply #6 on: August 27, 2007, 06:12:27 PM »
yes - python is a scripting language, and interprets code on the fly.

having said that...
it is possible to include python in an executable as a scripting engine.
you could then include your source as data inside the executable.
this would hide your code from prying eyes.

I have no experience in this area - can anyone help fill in the blanks?
Ill have a look and see what i can find.

Offline MikeHart

  • Sr. Member
  • ****
  • Posts: 319
  • Bananas: 4
  • Gender: Male
Re: learning python
« Reply #7 on: August 28, 2007, 01:36:49 AM »
There are also Python compilers out there, but I never try to use them.

Offline TEKnome

  • Newbie
  • *
  • Posts: 5
  • Bananas: 0
Re: learning python
« Reply #8 on: August 28, 2007, 04:26:59 AM »
there is a compile statement within python.
in the standard documentation , library reference, built-in functions.
this will compile source code to bytecode, this can then be executed with the exec statement

thats the theory - Ill dig further

does anyone have more info?

Offline MikeHart

  • Sr. Member
  • ****
  • Posts: 319
  • Bananas: 4
  • Gender: Male
Re: learning python
« Reply #9 on: August 28, 2007, 08:09:25 AM »
Look here, again I didn't test this:

http://www.py2exe.org/

Offline Bizzy

  • Jr. Member
  • **
  • Posts: 66
  • Bananas: 3
  • Gender: Male
Re: learning python
« Reply #10 on: August 28, 2007, 05:30:07 PM »
It clearly states that it converts the code to an EXE to run on Windows. Good.

Quote
converts Python scripts into executable Windows programs, able to run without requiring a Python installation.

I notice Python well implemented on Ubuntu Linux. Would be nice if they also had the same type of conversion program?

Offline ts-soft

  • Jr. Member
  • **
  • Posts: 62
  • Bananas: 2
  • Gender: Male
    • realsource
Re: learning python
« Reply #11 on: August 28, 2007, 05:55:10 PM »
I notice Python well implemented on Ubuntu Linux. Would be nice if they also had the same type of conversion program?
For what? Python is always available on linux. There is nothing faster with the tool  ;)
« Last Edit: August 28, 2007, 05:56:55 PM by ts-soft »
sorry for my bad english

Unix is user friendly... it's just selective about who its friends are!

Offline Bizzy

  • Jr. Member
  • **
  • Posts: 66
  • Bananas: 3
  • Gender: Male
Re: learning python
« Reply #12 on: August 29, 2007, 01:03:05 AM »
Quote
For what? Python is always available on linux. There is nothing faster with the tool

For what?  Py2Exe makes EXE for Windows and I like that idea  because the user does not get the source. With source they can change it and then complain that the prog doesnt work. No thanks!


Offline DrCharbonneau

  • http://jootbox.forumchitchat.com/
  • Full Member
  • ***
  • Posts: 183
  • Bananas: 0
    • Just Out Of The BOX
Re: learning python
« Reply #13 on: October 14, 2013, 07:11:37 AM »
Dredging this up from the ancient... :)
 
I use Blender, but have become a bit disenchanted with it and a number of other CG apps, so plan to write a new one based around the skeleton instead of rigging. From what I'm reading here, Python looks promising, still I want an exe as the final product. In others opinions, does Python (I DL'd 3.3.2) have the capability to develop a program like Blender or DAZ? I've noticed both these have Python scripting engines included with them
We have the right to believe whatever we want, still there is always an absolute truth. Dark matter isn't.  E=MC^2 only applies to the dimensions where light exists. F=MA is universal. The universe is a hairball. It was created by Fritz the Cat. Einstein called it spaghetti... after a row with Elsa.

Offline copex

  • Full Member
  • ***
  • Posts: 149
  • Bananas: 18
Re: learning python
« Reply #14 on: October 14, 2013, 01:34:54 PM »
i started to learn python, via codecademy its free and teaches the basics well, ive compleated 38% of the cource and coded a game of tic tac toe.

http://www.codingmonkeys.com/index.php?topic=2388.msg13569#msg13569

any one looking to learn its a good place to start.
-
Except where otherwise noted, content Posted By Copex is
licensed under a Creative Commons Attribution 3.0 License

http://creativecommons.org/licenses/by/3.0/

Offline DrCharbonneau

  • http://jootbox.forumchitchat.com/
  • Full Member
  • ***
  • Posts: 183
  • Bananas: 0
    • Just Out Of The BOX
Re: learning python
« Reply #15 on: October 14, 2013, 01:59:33 PM »
Might be an interesting possibility. As of now, I wouldn't know how to run the game you created. The download I got from Python has a pretty extensive PDF manual with it, so I'll probably start my learning there. Mostly I wanted to see how many of us coding monkeys were using it and what can be done with it.
I'll checkout that course though...  :)
We have the right to believe whatever we want, still there is always an absolute truth. Dark matter isn't.  E=MC^2 only applies to the dimensions where light exists. F=MA is universal. The universe is a hairball. It was created by Fritz the Cat. Einstein called it spaghetti... after a row with Elsa.

Offline kryton9

  • Hero Member
  • *****
  • Posts: 971
  • Bananas: 6
  • Gender: Male
Re: learning python
« Reply #16 on: October 14, 2013, 02:34:57 PM »
DrCharbonneau, Python also has a lot of special versions for scientists and mathematicians. I think you can also get these libraries to add to your own Python, but can't say that with certainty.
http://www.scipy.org/


http://www.python-academy.com/courses/python_course_scientists.html

Offline DrCharbonneau

  • http://jootbox.forumchitchat.com/
  • Full Member
  • ***
  • Posts: 183
  • Bananas: 0
    • Just Out Of The BOX
Re: learning python
« Reply #17 on: October 14, 2013, 02:48:47 PM »
Now THAT sounds encouraging. From what I've read so far it looks as if it would interface well with Pascal or vice versa. Since it appears it will compile into an exe, it could be brought in using the "shell" command. Winter and programming time is near :)
We have the right to believe whatever we want, still there is always an absolute truth. Dark matter isn't.  E=MC^2 only applies to the dimensions where light exists. F=MA is universal. The universe is a hairball. It was created by Fritz the Cat. Einstein called it spaghetti... after a row with Elsa.

Offline DrCharbonneau

  • http://jootbox.forumchitchat.com/
  • Full Member
  • ***
  • Posts: 183
  • Bananas: 0
    • Just Out Of The BOX
Re: learning python
« Reply #18 on: October 14, 2013, 03:06:47 PM »
We have the right to believe whatever we want, still there is always an absolute truth. Dark matter isn't.  E=MC^2 only applies to the dimensions where light exists. F=MA is universal. The universe is a hairball. It was created by Fritz the Cat. Einstein called it spaghetti... after a row with Elsa.

Offline kryton9

  • Hero Member
  • *****
  • Posts: 971
  • Bananas: 6
  • Gender: Male
Re: learning python
« Reply #19 on: October 15, 2013, 01:39:06 AM »
I am not pythoning at the moment, but would love to hear how that works. So fill us in when you get a chance to try it out. Thanks for the great find!

Offline MikeHart

  • Sr. Member
  • ****
  • Posts: 319
  • Bananas: 4
  • Gender: Male
Re: learning python
« Reply #20 on: October 15, 2013, 02:47:51 AM »
Me too. Had the "joy" of coding a Belnder export script a few years ago. The most strange thing aboput Python for me is how you have to indent coding blocks instead of encapsulating them with instructions.

Offline DrCharbonneau

  • http://jootbox.forumchitchat.com/
  • Full Member
  • ***
  • Posts: 183
  • Bananas: 0
    • Just Out Of The BOX
Re: learning python
« Reply #21 on: October 15, 2013, 05:09:04 AM »
It'll definitely be a month or two before I delve into it all. If you dudes had been through what I've endured this past year, you'd have torn your hair out. Then this blasted debt ceiling nonsense adding insult to injury...
Still, when the snow flies I should be tucked away next to the fireplace in my home THAT I OWN now (deed in my name :)  ) happily coding away. For now I'm playing around with a new 32" monitor, more home improvement and some graphics in Blender.
What did you script in Blender, Mike? Anything we've seen in the add-on archives?
We have the right to believe whatever we want, still there is always an absolute truth. Dark matter isn't.  E=MC^2 only applies to the dimensions where light exists. F=MA is universal. The universe is a hairball. It was created by Fritz the Cat. Einstein called it spaghetti... after a row with Elsa.

Offline MikeHart

  • Sr. Member
  • ****
  • Posts: 319
  • Bananas: 4
  • Gender: Male
Re: learning python
« Reply #22 on: October 15, 2013, 05:58:07 AM »
No, not here. Was an Blender to M15 export script for thinBasic.
Also it doesn't work in the new versions anymore.
« Last Edit: October 15, 2013, 05:58:32 AM by MikeHart »

Offline copex

  • Full Member
  • ***
  • Posts: 149
  • Bananas: 18
Re: learning python
« Reply #23 on: October 15, 2013, 12:57:27 PM »
As of now, I wouldn't know how to run the game you created.

as long as you have python installed correctly copy and past the code to a text editor and rename or save it as "tictactoe.py" you should then be able to run the game by double clicking. 
-
Except where otherwise noted, content Posted By Copex is
licensed under a Creative Commons Attribution 3.0 License

http://creativecommons.org/licenses/by/3.0/

Offline DrCharbonneau

  • http://jootbox.forumchitchat.com/
  • Full Member
  • ***
  • Posts: 183
  • Bananas: 0
    • Just Out Of The BOX
Re: learning python
« Reply #24 on: October 15, 2013, 03:07:49 PM »
As of the moment, I'm not doing much more than getting my winter ducks in a row. When I sit back, crack my back and knuckles, then settle in for a good winter's study, I'll c&p the code to give it a whirl. In the meantime, I'd be interested in knowing whether there are any advanced, say drag and drop, IDE's written for Python. That would be a really famous duck to have around. ;)
We have the right to believe whatever we want, still there is always an absolute truth. Dark matter isn't.  E=MC^2 only applies to the dimensions where light exists. F=MA is universal. The universe is a hairball. It was created by Fritz the Cat. Einstein called it spaghetti... after a row with Elsa.

Offline DrCharbonneau

  • http://jootbox.forumchitchat.com/
  • Full Member
  • ***
  • Posts: 183
  • Bananas: 0
    • Just Out Of The BOX
Re: learning python
« Reply #25 on: October 15, 2013, 04:51:11 PM »
http://sourceforge.net/projects/visualtkinter/?source=pdlp
 
Found a duck! Better yet, it isn't a bad one named Theodore. Certainly anyone would know such would be ab duck Ted.  ::)
We have the right to believe whatever we want, still there is always an absolute truth. Dark matter isn't.  E=MC^2 only applies to the dimensions where light exists. F=MA is universal. The universe is a hairball. It was created by Fritz the Cat. Einstein called it spaghetti... after a row with Elsa.

Offline stevenp

  • Sr. Member
  • ****
  • Posts: 293
  • Bananas: 1
Re: learning python
« Reply #26 on: October 18, 2013, 03:23:58 PM »
Have you checked out http://www.wxpython.org/?

Offline DrCharbonneau

  • http://jootbox.forumchitchat.com/
  • Full Member
  • ***
  • Posts: 183
  • Bananas: 0
    • Just Out Of The BOX
Re: learning python
« Reply #27 on: October 18, 2013, 03:48:38 PM »
I went to download the software and my smartfilter blocked it as unsafe.
We have the right to believe whatever we want, still there is always an absolute truth. Dark matter isn't.  E=MC^2 only applies to the dimensions where light exists. F=MA is universal. The universe is a hairball. It was created by Fritz the Cat. Einstein called it spaghetti... after a row with Elsa.

 

To link to us use this code/button on your site

http://www.codingmonkeys.com/images/cm_link.gif

ShoutBox!

 

Blue Steel

December 09, 2017, 02:46:53 AM
:) ty fingers crossed
 

Larry McCaughn

December 08, 2017, 04:10:56 PM
I'll give you a Shout out in the Shout Box for being able to put it back up.
 

lurkalot

September 20, 2017, 01:57:54 PM
Hey that's my job. Didn't choose this username for nothing you know.  :)
 

Larry McCaughn

September 19, 2017, 12:24:13 AM
lurking in the shadows, lurkalot.
 

lurkalot

September 16, 2017, 04:39:43 PM
Good evening all.  Where is everyone?
 

lurkalot

September 12, 2017, 12:57:36 PM
Good to hear, it's nice to see a empty error log. ;)
 

Blue Steel

September 12, 2017, 05:04:25 AM
running sites log files overnight heres the result (I know mainly spiners) "There are currently no error log entries." :)
 

lurkalot

September 12, 2017, 03:19:33 AM
Morning all.  :)
 

Blue Steel

September 12, 2017, 01:12:33 AM
Let it all out ..
these are the things I can't do without  ;)

MikeHart

September 11, 2017, 11:14:22 PM
SHOUT SHOUT  :)
 

GWS

September 11, 2017, 08:16:02 PM
Shouting is Go !  ;D
 

Blue Steel

September 11, 2017, 06:54:02 PM
gradually getting there
 

lurkalot

September 11, 2017, 05:22:46 PM
Yay, you found it.  ;)
 

Larry McCaughn

September 11, 2017, 01:07:13 PM
looks like you're making good progress
 

Blue Steel

September 07, 2017, 10:34:19 PM
yay recent topics are working again in the center of the home page :)
 

Larry McCaughn

July 12, 2017, 05:46:33 PM
Blue Steel is back running the show.  Maybe he'll be able to build some steam in the ole place!
 

Blue Steel

June 26, 2017, 04:58:41 AM
hope i didn't scare too many of you
 

Blue Steel

June 26, 2017, 04:58:12 AM
Boo, i'm still here alive and well , see my post in introductions

MikeHart

July 25, 2016, 01:43:24 AM
That sounds cool. Have to chekc out IWBasic in the next days.
 

Larry McCaughn

July 22, 2016, 11:47:00 PM
I'm hoping to issue a new maintenance release to the IWBasic 3.x IDE in the next few weeks and Larry Sikes has released an update to the Linux version of IWBasic and is currently working on the 64bit version of IWBasic.  Progress should speed up since he has retired and has apparently resolved his m

MikeHart

July 19, 2016, 02:53:02 PM
Anything interesting going on around BASIC?
 

Larry McCaughn

July 18, 2016, 09:14:12 AM
Hello Mike

MikeHart

July 16, 2016, 04:33:25 PM
Hi there all!
 

pistol350

June 24, 2016, 03:41:10 AM
Hello all!
I'm still around although less active!