Python

Moderators: None (Apply to moderate this forum)
Number of threads: 473
Number of posts: 1172

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Expanding out Posted by imbo on 28 Mar 2004 at 11:10 AM
ok so i can do the basics in python, make programs run within it like maths programs etc, how do i create programs which will run outwith the python GUI (outwith any python program entirly).
Could you tell me simply as i ain't the sharpest knife in the cupboard and am still young(in school -not uni-)
Cheers.
Report
Re: Expanding out Posted by infidel on 29 Mar 2004 at 7:48 AM
: ok so i can do the basics in python, make programs run within it like maths programs etc, how do i create programs which will run outwith the python GUI (outwith any python program entirly).
: Could you tell me simply as i ain't the sharpest knife in the cupboard and am still young(in school -not uni-)

Are you asking how to create scripts or if you can create scripts that don't need the interpreter?


infidel

$ select * from users where clue > 0
no rows returned


Report
Re: Expanding out Posted by imbo on 1 Apr 2004 at 10:14 AM
: : ok so i can do the basics in python, make programs run within it like maths programs etc, how do i create programs which will run outwith the python GUI (outwith any python program entirly).
: : Could you tell me simply as i ain't the sharpest knife in the cupboard and am still young(in school -not uni-)
:
: Are you asking how to create scripts or if you can create scripts that don't need the interpreter?

yes, so that i dont have to run the interpreter for my program to work. e.g. i could send a friend a maths program i have written (they dont have python) and it would be able to run freely without the interpreter.
:
:
: infidel
:
:
: $ select * from users where clue > 0
: no rows returned
: 

:
:

Report
Re: Expanding out Posted by infidel on 1 Apr 2004 at 11:02 AM
: : : ok so i can do the basics in python, make programs run within it like maths programs etc, how do i create programs which will run outwith the python GUI (outwith any python program entirly).
: : : Could you tell me simply as i ain't the sharpest knife in the cupboard and am still young(in school -not uni-)
: :
: : Are you asking how to create scripts or if you can create scripts that don't need the interpreter?
:
: yes, so that i dont have to run the interpreter for my program to work. e.g. i could send a friend a maths program i have written (they dont have python) and it would be able to run freely without the interpreter.

That's not possible. By "don't need the interpreter", I meant "in interactive mode". Sorry for the confusion. To run a python script, you must have the interpreter even if you aren't running it interactively. You could probably send him only the python.exe and whichever DLLs it needs, but it's easier just to have your friend install python, especially if your script uses a lot of modules from the standard lib.


infidel

$ select * from users where clue > 0
no rows returned


Report
Re: Expanding out Posted by imbo on 3 Apr 2004 at 4:38 AM
: : : : ok so i can do the basics in python, make programs run within it like maths programs etc, how do i create programs which will run outwith the python GUI (outwith any python program entirly).
: : : : Could you tell me simply as i ain't the sharpest knife in the cupboard and am still young(in school -not uni-)
: : :
: : : Are you asking how to create scripts or if you can create scripts that don't need the interpreter?
: :
: : yes, so that i dont have to run the interpreter for my program to work. e.g. i could send a friend a maths program i have written (they dont have python) and it would be able to run freely without the interpreter.
:
: That's not possible. By "don't need the interpreter", I meant "in interactive mode". Sorry for the confusion. To run a python script, you must have the interpreter even if you aren't running it interactively. You could probably send him only the python.exe and whichever DLLs it needs, but it's easier just to have your friend install python, especially if your script uses a lot of modules from the standard lib.

cheers, its just something i thought to myself one day and didn't know if it was possible. Thanks for the info. -imbo-
:
:
: infidel
:
:
: $ select * from users where clue > 0
: no rows returned
: 

:
:

Report
Re: Expanding out Posted by JmysterCDS on 4 Apr 2004 at 2:37 AM
: : : : : ok so i can do the basics in python, make programs run within it like maths programs etc, how do i create programs which will run outwith the python GUI (outwith any python program entirly).
: : : : : Could you tell me simply as i ain't the sharpest knife in the cupboard and am still young(in school -not uni-)
: : : :
: : : : Are you asking how to create scripts or if you can create scripts that don't need the interpreter?
: : :
: : : yes, so that i dont have to run the interpreter for my program to work. e.g. i could send a friend a maths program i have written (they dont have python) and it would be able to run freely without the interpreter.
: :
: : That's not possible. By "don't need the interpreter", I meant "in interactive mode". Sorry for the confusion. To run a python script, you must have the interpreter even if you aren't running it interactively. You could probably send him only the python.exe and whichever DLLs it needs, but it's easier just to have your friend install python, especially if your script uses a lot of modules from the standard lib.
:
: cheers, its just something i thought to myself one day and didn't know if it was possible. Thanks for the info. -imbo-
: :
: :
: : infidel
: :
: :
: : $ select * from users where clue > 0
: : no rows returned
: : 

: :
: :
:
:
This is possible but it is not very reliable. you can use py2exe. search google for it. it works on basic programs but as you get more complex you will see that it will start to fail.
Report
Re: Expanding out Posted by infidel on 5 Apr 2004 at 8:26 AM
: This is possible but it is not very reliable. you can use py2exe. search google for it. it works on basic programs but as you get more complex you will see that it will start to fail.

That's a good point. I forgot about that. Thanks


infidel

$ select * from users where clue > 0
no rows returned


Report
Re: Expanding out Posted by imbo on 7 Apr 2004 at 5:51 AM
: : This is possible but it is not very reliable. you can use py2exe. search google for it. it works on basic programs but as you get more complex you will see that it will start to fail.
:
: That's a good point. I forgot about that. Thanks

Cheers i just got it. i will look up how to use it. No doubt i will be posting another message on how to use it properly. Anyway thanks for that, i'll give it a try.
:
:
: infidel
:
:
: $ select * from users where clue > 0
: no rows returned
: 

:
:




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.