Re: [Tutor] how to import python script in the django project

2016-02-18 Thread Alan Gauld
On 18/02/16 23:25, Xristos Sarantis wrote: > hello Hi. > newbie: > i want to import python script(with calculator functions) to django app This list is really for questions about the python language and standard library so Django is a wee bit off topic. However there are some Django users on th

Re: [Tutor] Hello! Questions

2016-02-18 Thread Alan Gauld
On 18/02/16 21:17, Marco Soldavini wrote: > *# While loop - scanning and storing OPC values at scan rate **while *(abort == 0): > > > *# ESC pressed? **if *msvcrt.kbhit() *and *ord(msvcrt.getch()) == 27: > abort = 1 > > As you can see your code is all messed up. You need to post

[Tutor] how to import python script in the django project

2016-02-18 Thread Xristos Sarantis
hello newbie: i want to import python script(with calculator functions) to django app who is the better method to do that and how to do that step by step? i want to create a web framework where the users give values take somes results from the python scripts 1.first import the script in folder a

Re: [Tutor] Hello! Questions

2016-02-18 Thread Marco Soldavini
On Wed, Feb 17, 2016 at 11:13 AM, Alan Gauld wrote: > > My first question is about data types, data structures in general and how > > to organize an efficient loop for recording data. > > > while (stop condition false) > >read data > >write data into local array or something > >wait

Re: [Tutor] invalid syntax error in Run Run Module

2016-02-18 Thread Lisa Hasler Waters
Brilliant! Thanks so much. Makes perfect sense. Onward and upward then! On Thu, Feb 18, 2016 at 1:16 PM, Alan Gauld wrote: > On 18/02/16 14:10, Lisa Hasler Waters wrote: > > Alan, > > > > Thank you so very much! This worked perfectly! > > > > Now, if you don't mind and you have the time, can you

Re: [Tutor] invalid syntax error in Run Run Module

2016-02-18 Thread Alan Gauld
On 18/02/16 14:10, Lisa Hasler Waters wrote: > Alan, > > Thank you so very much! This worked perfectly! > > Now, if you don't mind and you have the time, can you please elaborate > on when we (we being Python novices) would use the /Shell/ vs when it > is best to use the /Editor/? > You need to

Re: [Tutor] invalid syntax error in Run Run Module

2016-02-18 Thread Lisa Hasler Waters
Alan, Thank you so very much! This worked perfectly! Now, if you don't mind and you have the time, can you please elaborate on when we (we being Python novices) would use the *Shell* vs when it is best to use the *Editor*? Many, many, many thanks! Lisa On Wed, Feb 17, 2016 at 12:43 PM, Alan

Re: [Tutor] really basic - finding multiline chunk within larger chunk

2016-02-18 Thread Danny Yoo
On Wed, Feb 17, 2016 at 7:01 AM, bruce wrote: > I might just wind up stripping tabs/spaces and joining on space to pre > massage the content prior to handling it.. Hi Bruce, I want to give a second recommendation to BeautifulSoup: http://www.crummy.com/software/BeautifulSoup/ In particula