Re: [Tutor] Python 3.6.5 for MAC

2018-04-24 Thread Alan Gauld via Tutor
On 24/04/18 03:34, Kentaro Hori wrote: > Hi > > can you take a screenshot after rebooting and trying one aging? Although you will need to post a link to the image since the list server will not send binary attachments. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ h

[Tutor] Python Debugger shortcut to go to the last frame

2018-04-24 Thread AS via Tutor
Hi Please consider the following script: #!/usr/bin/env python3.6 #pdb_last_frame.py import pdb def recursive_function(n=5, output='default print'):     if n > 0:     recursive_function(n - 1)     else:     pdb.set_trace()     print(output)     return if __name__ == '__main__':   

[Tutor] threading for each line in a large file, and doing it right

2018-04-24 Thread Evuraan
Greetings! Please consider this situation : Each line in "massive_input.txt" need to be churned by the "time_intensive_stuff" function, so I am trying to background it. import threading def time_intensive_stuff(arg): # some code, some_conditional return (some_conditional) with open("massi

Re: [Tutor] threading for each line in a large file, and doing it right

2018-04-24 Thread Danny Yoo
> Please consider this situation : > Each line in "massive_input.txt" need to be churned by the > "time_intensive_stuff" function, so I am trying to background it. > > import threading > > def time_intensive_stuff(arg): ># some code, some_conditional >return (some_conditional) > > with open