Re: [Tutor] subprocess.Popen help

2014-01-28 Thread eryksun
On Tue, Jan 28, 2014 at 2:52 PM, leam hall wrote: > Python tutorial for 2.6 (using 2.4 -- don't ask), first code blurb under > 17.1.1 > > http://docs.python.org/2.6/library/subprocess.html?highlight=subprocess#subprocess.Popen > > How would you make an ssh to another box put data back in "p"? The

Re: [Tutor] When is = a copy and when is it an alias

2014-01-28 Thread spir
On 01/29/2014 02:10 AM, Dave Angel wrote: Denis Heidtmann Wrote in message: What is going on? I am more confused than I was a week ago. Simple. spir has copy/paste editing errors. Oops! sorry d ___ Tutor maillist - Tutor@python.org To u

Re: [Tutor] If, elif, else

2014-01-28 Thread Alan Gauld
On 28/01/14 22:46, Michael L. Pierre wrote: I am a newbie with Python (programming in general) Welcome to the list. I have gotten it resolved to the point that it understands leap years and gives the correct age. OK, I'll believe you, at least for now... :-) My problem arises when a dat

Re: [Tutor] Importing Pygame

2014-01-28 Thread Alan Gauld
On 28/01/14 20:47, Glenn Lester wrote: I think you typed a comma instead of a period when you coded import pygame.sys Or it may be my display. Check it out. No, it was deliberate. He was importing pygame *and* sys. A comma separated import list is fine. I agree with Dave it looks like there ar

Re: [Tutor] Can't figure out why I'm getting no output??

2014-01-28 Thread Alan Gauld
On 28/01/14 20:45, scurvy scott wrote: import requests from bs4 import BeautifulSoup as beautiful payload = {'username': 'X', 'password': 'XX'} r = requests.post("http://dogehouse.org/index.php?page=login";, data=payload) soup = beautiful(r.text) confirmed = str(soup.findAll('span',{'cl

Re: [Tutor] subprocess.Popen help

2014-01-28 Thread Alan Gauld
On 28/01/14 19:52, leam hall wrote: Python tutorial for 2.6 (using 2.4 -- don't ask), first code blurb under 17.1.1 http://docs.python.org/2.6/library/subprocess.html?highlight=subprocess#subprocess.Popen How would you make an ssh to another box put data back in "p"? The goal is to run a shell

Re: [Tutor] When is = a copy and when is it an alias

2014-01-28 Thread Alan Gauld
On 28/01/14 19:00, Denis Heidtmann wrote: On Tue, Jan 28, 2014 at 12:28 AM, spir This is getting confusing with two times Denis! > wrote: a = [1,[2,3]] I think the above line is a mistake. If Denis(spir) had missed this out his code would work a

Re: [Tutor] When is = a copy and when is it an alias

2014-01-28 Thread Dave Angel
Denis Heidtmann Wrote in message: > > What is going on?  I am more confused than I was a week ago. Simple. spir has copy/paste editing errors. -- DaveA ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https

Re: [Tutor] Installing Python on osx 10.9.1

2014-01-28 Thread Dave Angel
Dave Angel Wrote in message: > Aubri Sandlin Wrote in message: >> I have installed Python. When I open IDLE I get this warning: >>> WARNING: >> The version of Tcl/Tk (8.5.9) in use may be unstable. >> Visit http://www.python.org/download/mac/tcltk/ for current information. >> >> >> I have

Re: [Tutor] When is = a copy and when is it an alias

2014-01-28 Thread Danny Yoo
Hi Denis, Ok, stop for a moment. Visit:http://pythontutor.com/visualize.html Specifically, here's your program: http://pythontutor.com/visualize.html#code=a%3D%5B1,%5B1,2%5D%5D%0Ab%3Da%0Aa%3D%5B1,%5B2,3%5D%5D%0Aa%5B0%5D%3D0%0Aa%5B1%5D%3D%5B0,0%5D&mode=display&cumulative=false&heapPrimitive

Re: [Tutor] Installing Python on osx 10.9.1

2014-01-28 Thread Dave Angel
Aubri Sandlin Wrote in message: > I have installed Python. When I open IDLE I get this warning: >>> WARNING: > The version of Tcl/Tk (8.5.9) in use may be unstable. > Visit http://www.python.org/download/mac/tcltk/ for current information. > > > I have downloaded and installed the latest ver

Re: [Tutor] If, elif, else

2014-01-28 Thread spir
On 01/28/2014 11:46 PM, Michael L. Pierre wrote: I am a newbie with Python (programming in general) and I am trying to create a program that will take user name and dob and pump out their age, while on a person's birthday the output not only states their name and age, but also prints out ***HA

Re: [Tutor] Can't figure out why I'm getting no output??

2014-01-28 Thread Dave Angel
scurvy scott Wrote in message: > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > https://mail.python.org/mailman/listinfo/tutor > Please post as text, not html. Try putting a print at the top of the code.

Re: [Tutor] If, elif, else

2014-01-28 Thread Dave Angel
"Michael L. Pierre" Wrote in message: > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > https://mail.python.org/mailman/listinfo/tutor > Start by posting in text form, since this is a text group. You appa

[Tutor] If, elif, else

2014-01-28 Thread Michael L. Pierre
I am a newbie with Python (programming in general) and I am trying to create a program that will take user name and dob and pump out their age, while on a person's birthday the output not only states their name and age, but also prints out ***HAPPY BIRTHDAY*** I have gotten it resolved to the po

Re: [Tutor] Importing Pygame

2014-01-28 Thread Glenn Lester
I think you typed a comma instead of a period when you coded import pygame.sys Or it may be my display. Check it out. Best of Luck On Tue, Jan 28, 2014 at 1:13 PM, myles broomes wrote: > I am trying to import pygame but everytime I do, I get an ImportError. > Here is the code I'm trying to run:

[Tutor] Can't figure out why I'm getting no output??

2014-01-28 Thread scurvy scott
Hey all.. First of all here is my code: import requests from bs4 import BeautifulSoup as beautiful payload = {'username': 'X', 'password': 'XX'} r = requests.post("http://dogehouse.org/index.php?page=login";, data=payload) soup = beautiful(r.text) confirmed = str(soup.findAll('span',{'cl

[Tutor] subprocess.Popen help

2014-01-28 Thread leam hall
Python tutorial for 2.6 (using 2.4 -- don't ask), first code blurb under 17.1.1 http://docs.python.org/2.6/library/subprocess.html?highlight=subprocess#subprocess.Popen How would you make an ssh to another box put data back in "p"? The goal is to run a shell command on a remote box and work with

[Tutor] Installing Python on osx 10.9.1

2014-01-28 Thread Aubri Sandlin
I have installed Python. When I open IDLE I get this warning: >>> WARNING: The version of Tcl/Tk (8.5.9) in use may be unstable. Visit http://www.python.org/download/mac/tcltk/ for current information. I have downloaded and installed the latest version of TCL/TK and rebooted my computer. I s

Re: [Tutor] When is = a copy and when is it an alias

2014-01-28 Thread Denis Heidtmann
On Tue, Jan 28, 2014 at 12:28 AM, spir wrote: > > > a = [1, [1,2]] b = a b >>> [1, [1, 2]] > >> b is a >>> True > > a's and b's values are a single, unique object... as long as I only > modified them (the values) partly: > > a = [1,[2,3]] a[0] = 0 b >>> [0, [

Re: [Tutor] Importing Pygame

2014-01-28 Thread Dave Angel
myles broomes Wrote in message: > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > https://mail.python.org/mailman/listinfo/tutor > I'm guessing you're attempting to post here in this text newsgroup using h

[Tutor] Importing Pygame

2014-01-28 Thread myles broomes
I am trying to import pygame but everytime I do, I get an ImportError. Here is the code I'm trying to run: import pygame,sys from pygame.locals import * pygame.init() DISPLAYSURF=pygame.display.set_mode((400,300)) pygame.display.set_caption('Hello World!') while True: #main game loop for eve

Re: [Tutor] Coordinates TK and Turtle

2014-01-28 Thread eryksun
On Tue, Jan 28, 2014 at 4:48 AM, Ian D wrote: > > I have some weird results when I run my code which is meant to display a > canvas and a turtle and some text with the turtles coordinates. > > Basically the turtle coordinates do not seem to correspond with the TK > create_text coordinates. > > t1.

[Tutor] Coordinates TK and Turtle

2014-01-28 Thread Ian D
Hello I have some weird results when I run my code which is meant to display a canvas and a turtle and some text with the turtles coordinates. Basically the turtle coordinates do not seem to correspond with the TK create_text coordinates. t1.goto(100,100) canvas_id = cv1.create_text(t1.x

Re: [Tutor] When is = a copy and when is it an alias

2014-01-28 Thread spir
On 01/27/2014 06:04 PM, Denis Heidtmann wrote: Apparently a[0]=b[0] does not qualify as "symbolic assignment" in this case. a[0] is not a reference to b[0]. I think I see the essential distinction. Experience will complete the picture for me. "symolic assignment" is my term, so whatever I mea