Re: [Tutor] comp.lang.python on gmane

2016-10-27 Thread Wolfgang Maier
On 28.10.2016 04:49, Jim Byrnes wrote: On 10/27/2016 08:09 PM, Danny Yoo wrote: On Thu, Oct 27, 2016 at 5:40 PM, Jim Byrnes wrote: Is comp.lang.python available on gmane? I've googled and found references to it being on gmane but I can't find it there. I'd like to use gmane because Comcast do

Re: [Tutor] comp.lang.python on gmane

2016-10-27 Thread Jim Byrnes
On 10/27/2016 08:09 PM, Danny Yoo wrote: On Thu, Oct 27, 2016 at 5:40 PM, Jim Byrnes wrote: Is comp.lang.python available on gmane? I've googled and found references to it being on gmane but I can't find it there. I'd like to use gmane because Comcast doesn't do usenet anymore. Hi Jim, I t

Re: [Tutor] New to Python

2016-10-27 Thread Danny Yoo
> program-they just do it. Also noticed-when starting new file sometimes I > see run at the top sometimes not? Lots of questions. Familiar with > programming in C. If you're a database and C developer, then you probably have enough experience to go through the Python tutorial, as it is aimed for

Re: [Tutor] comp.lang.python on gmane

2016-10-27 Thread Danny Yoo
On Thu, Oct 27, 2016 at 5:40 PM, Jim Byrnes wrote: > Is comp.lang.python available on gmane? > > I've googled and found references to it being on gmane but I can't find it > there. I'd like to use gmane because Comcast doesn't do usenet anymore. Hi Jim, I think Gmane is still recovering: h

Re: [Tutor] New to Python

2016-10-27 Thread Alan Gauld via Tutor
On 28/10/16 01:05, Rusty Bayles wrote: > Thanks for the reply Alan, > Could you please tell me more detail on the videos? Like who made them. Some are just amateurs others are professional (or at least Youtube regulars) Here are a couple of links, but to be honest just about any of them would mee

[Tutor] comp.lang.python on gmane

2016-10-27 Thread Jim Byrnes
Is comp.lang.python available on gmane? I've googled and found references to it being on gmane but I can't find it there. I'd like to use gmane because Comcast doesn't do usenet anymore. Thanks, Jim ___ Tutor maillist - Tutor@python.org To unsub

Re: [Tutor] New to Python

2016-10-27 Thread Alan Gauld via Tutor
On 27/10/16 23:41, Rusty Bayles wrote: > I just installed 3.5.2 interpreter and cannot figure out how to run > program. I strongly suggest you go to Youtube and search for IDLE. There are several short (3-10min) videos there that should make it clear where you are going wrong. Watch a couple

[Tutor] New to Python

2016-10-27 Thread Rusty Bayles
I just installed 3.5.2 interpreter and cannot figure out how to run program. I am a database developer and my first attempt at sqllite3 has beeen a disasterr! When I run a program (after importinh sqllite and doing connection setups and attempting to setup table. When I press run (F5?) the firs

Re: [Tutor] run local script on a remote machine

2016-10-27 Thread Alex Kleider
On 2016-10-27 00:22, Cameron Simpson wrote: On 26Oct2016 10:44, Alex Kleider wrote: command = ( "ssh -p22 alex@10.10.10.10 python3 -u - one two three < {}" .format(script)) ret = subprocess.call(shlex.split(command)) This is not fine. .. http://bobby-tables.com/ Thanks for the

Re: [Tutor] run local script on a remote machine

2016-10-27 Thread Alex Kleider
On 2016-10-27 00:57, Wolfgang Maier wrote: The structure of the command you are trying to execute would require you to set the "shell" argument of subprocess.call to True. Specifically, the "<" redirection operator is shell functionality. Thank you Wolfgang. Simply eliminating the call to shl

Re: [Tutor] String within a string solution (newbie question)

2016-10-27 Thread Matt Ruffalo
On 10/26/2016 02:06 PM, Wish Dokta wrote: > Hello, > > I am currently writing a basic program to calculate and display the size of > folders with a drive/directory. To do this I am storing each directory in a > dict as the key, with the value being the sum of the size of all files in > that directo

Re: [Tutor] String within a string solution (newbie question)

2016-10-27 Thread Bob Gailer
BubOn Oct 27, 2016 8:38 AM, "Wish Dokta" wrote: > > Hello Alan, > > Thank you for the reply. > > I have actually fixed that bug. If you are bored or for some other reason > would like to assist a newbro my code is here: > > main: http://pastebin.com/LgbeywiB > functions: http://pastebin.com/vU7zzJ

Re: [Tutor] String within a string solution (newbie question)

2016-10-27 Thread Wish Dokta
Thank you Bob, While you were correct adding "\\" helped, I also needed to add "\\" to the dict key so it would also pic up the root directory. Many thanks, Glen On 26 October 2016 at 19:43, Bob Gailer wrote: > On Oct 26, 2016 2:07 PM, "Wish Dokta" wrote: > > > > Hello, > > > > I am currently

Re: [Tutor] String within a string solution (newbie question)

2016-10-27 Thread Wish Dokta
Hello Alan, Thank you for the reply. I have actually fixed that bug. If you are bored or for some other reason would like to assist a newbro my code is here: main: http://pastebin.com/LgbeywiB functions: http://pastebin.com/vU7zzJKe I'd be very grateful for any feedback on improvements to the c

Re: [Tutor] run local script on a remote machine

2016-10-27 Thread Wolfgang Maier
On 26.10.2016 19:44, Alex Kleider wrote: I've got three files as follows: keeping just the relevant lines ... 2: #!/bin/bash # # file: call.sh # Demonstrates running a local python script on another host # with command line arguments specified locally. ssh -p22 alex@10.10.10.10 python3 -u

Re: [Tutor] run local script on a remote machine

2016-10-27 Thread Cameron Simpson
On 26Oct2016 10:44, Alex Kleider wrote: [... snipped experiment.py and the demo call.sh script ...] 3: #!/usr/bin/env python3 # # file: call.py import os import shlex import subprocess script = "/home/alex/Py/BackUp/Sandbox/Scripted/experiment.py" This is fine. if os.path.isfile(script):