Re: How to run self-contained Python scripts who don't need Python installation?

2017-06-09 Thread Akira Li
"Juan C." writes: > I need to run some Python 3.6.0 scripts on the users' machines (W7 and > W10) in an enterprise environment, but I can't install Python on those > machines. I tried looking for those "py to exe", but sadly they don't > support Python 3.6.0. I've tried PyInstaller (development

Re: Bug or intended behavior? (Posting On Python-List Prohibited)

2017-06-09 Thread Steve D'Aprano
On Fri, 9 Jun 2017 02:23 pm, Lawrence D’Oliveiro wrote: > The indentation itself doesn’t provide enough grouping, cf > . Your argument is: "Now, what happens if these pieces of code get posted online somewhere,

Re: Bug or intended behavior? (Posting On Python-List Prohibited)

2017-06-09 Thread Steve D'Aprano
On Fri, 9 Jun 2017 02:13 pm, Lawrence D’Oliveiro wrote: > On Sunday, June 4, 2017 at 9:59:11 AM UTC+12, Sean DiZazzo wrote: >> Looking at operator precedence, I only see the % operator in regards to >> modulus. Nothing in regards to string formatting. > > Operators in Python have no intrinsic me

Re: Is An Element of a Sequence an Object?

2017-06-09 Thread Steve D'Aprano
On Fri, 9 Jun 2017 02:04 pm, Lawrence D’Oliveiro wrote: > I generally have very little use for “is” in my code. I do try it out for > testing sometimes, to ensure consistency of semantic behaviour in library > bindings for example, but I don’t think I have ever written an “is”-construct > in produ

In which order many functions are executed in a python code

2017-06-09 Thread sondes kalboussi
Am a bit confused I was thinking that the order of execution of functions in a code is from the first to the last function but sometimes it is the opposite, for instance, some parameters or outputs from the second function are called in the first one even thou they are not global, any hints ? -

Re: In which order many functions are executed in a python code

2017-06-09 Thread Thomas Nyberg
On 06/09/2017 11:39 AM, sondes kalboussi wrote: > > Am a bit confused I was thinking that the order of execution of functions in > a code is from the first to the last function but sometimes it is the > opposite, for instance, some parameters or outputs from the second function > are called in

Re: In which order many functions are executed in a python code

2017-06-09 Thread Joel Goldstick
On Fri, Jun 9, 2017 at 2:46 PM, Thomas Nyberg wrote: > On 06/09/2017 11:39 AM, sondes kalboussi wrote: >> >> Am a bit confused I was thinking that the order of execution of functions in >> a code is from the first to the last function but sometimes it is the >> opposite, for instance, some param

Re: Time Calculation to Tag a Sentence/File (Posting On Python-List Prohibited)

2017-06-09 Thread subhabangalore
On Friday, June 9, 2017 at 1:18:35 PM UTC+5:30, Lawrence D’Oliveiro wrote: > On Thursday, June 8, 2017 at 9:57:40 AM UTC+12, subhaba...@gmail.com wrote: > > ... (with Python2.7 on MS-Windows 7) ... > > Why? Are you asking why not Python3? My Java based colleagues say it clashes with Java, so we

Re: Time Calculation to Tag a Sentence/File (Posting On Python-List Prohibited)

2017-06-09 Thread Paul Barry
This is a strange statement. Python 3 doesn't even clash with Python 2, so I can't think of how it might cause problems with Java. I've run 2 and 3 on Windows 7, Vista, and 10 without any issues. Paul. On 9 June 2017 at 20:14, wrote: > On Friday, June 9, 2017 at 1:18:35 PM UTC+5:30, Lawrence

Re: Time Calculation to Tag a Sentence/File (Posting On Python-List Prohibited)

2017-06-09 Thread subhabangalore
On Saturday, June 10, 2017 at 1:53:07 AM UTC+5:30, Paul Barry wrote: > This is a strange statement. Python 3 doesn't even clash with Python 2, so > I can't think of how it might cause problems with Java. I've run 2 and 3 > on Windows 7, Vista, and 10 without any issues. > > Paul. > > On 9 June

Re: In which order many functions are executed in a python code

2017-06-09 Thread Erik
On 09/06/17 19:39, sondes kalboussi wrote: Am a bit confused I was thinking that the order of execution of functions in a code is from the first to the last function but sometimes it is the opposite, for instance, some parameters or outputs from the second function are called in the first one eve

Re: In which order many functions are executed in a python code

2017-06-09 Thread Terry Reedy
On 6/9/2017 6:00 PM, Erik wrote: On 09/06/17 19:39, sondes kalboussi wrote: Am a bit confused I was thinking that the order of execution of functions in a code is from the first to the last function but sometimes it is the opposite, for instance, some parameters or outputs from the second functi

Re: In which order many functions are executed in a python code

2017-06-09 Thread Erik
On 10/06/17 00:18, Terry Reedy wrote: On 6/9/2017 6:00 PM, Erik wrote: On 09/06/17 19:39, sondes kalboussi wrote: Am a bit confused I was thinking that the order of execution of functions in a code is from the first to the last function but sometimes it is the opposite, for instance, some param

Re: Access flles on a Android device from Windows PC

2017-06-09 Thread Fred Fishbin
Um, no. I *now* understand that USB Mass drive is no longer supported, but it was a legit question. I'd still love if someone could post a code sample, or point me in the direction to a code snippet that would show me how to access the phone. I know it can be done, its just not simple anymore

Re: Passing arguments to & executing, a python script on a remote machine from a python script on local machine (using ssh ?)

2017-06-09 Thread niteesh . k80
hey did you find the answer for this -- https://mail.python.org/mailman/listinfo/python-list

Re: Access flles on a Android device from Windows PC (Posting On Python-List Prohibited)

2017-06-09 Thread Fred Fishbin
Lawrence_D?Oliveiro wrote: >On Thursday, June 8, 2017 at 3:41:35 PM UTC+12, Fred Fishbin wrote: >> Yup, that seems to be the deal, and there doesn't seem tpo be a really >>simple >> way to deal with this. > >The preferred way to do file transfers to/from Android devices over USB seems >to be vi

Re: In which order many functions are executed in a python code

2017-06-09 Thread Terry Reedy
On 6/9/2017 8:14 PM, Erik wrote: On 10/06/17 00:18, Terry Reedy wrote: On 6/9/2017 6:00 PM, Erik wrote: On 09/06/17 19:39, sondes kalboussi wrote: Am a bit confused I was thinking that the order of execution of functions in a code is from the first to the last function but sometimes it is the

Re: Access flles on a Android device from Windows PC (Posting On Python-List Prohibited)

2017-06-09 Thread Fred Fishbin
Lawrence_D?Oliveiro wrote: >On Thursday, June 8, 2017 at 3:41:35 PM UTC+12, Fred Fishbin wrote: >> Yup, that seems to be the deal, and there doesn't seem tpo be a really >>simple >> way to deal with this. > >The preferred way to do file transfers to/from Android devices over USB seems >to be vi