New user group: Rochester, MN, USA

2016-01-20 Thread Jonathan Hartley
http://www.meetup.com/PyRochesterMN First meeting planned for Thu 28th January 2016 -- Jonathan Hartley tart...@tartley.com +1 507-513-1101 -- https://mail.python.org/mailman/listinfo/python-list

Re: New User-Need-Help

2013-02-15 Thread Terry Reedy
On 2/15/2013 4:45 PM, Deborah Piotrowski wrote: I am very new to Python, I am using the e-book "Python Programming for the Absolute Beginner" and am starting with a simple "Game Over" Program. This is the code:which is extremely simple!\ print"Game Over" raw_input("\n\nPress Enter Key to exit")

Re: New User-Need-Help

2013-02-15 Thread Deborah Piotrowski
WAIT!! It works now, I just needed to save it in script. Thank you guys so much!! My best regards, Nicholas On Fri, Feb 15, 2013 at 4:21 PM, Joel Goldstick wrote: > Print needs parense in python 3 > On Feb 15, 2013 5:48 PM, "Bob Brusa" wrote: > >> >> >> Am Freitag, 15. Februar 2013 schrieb Joel

Re: New User-Need-Help

2013-02-15 Thread Joel Goldstick
Print needs parense in python 3 On Feb 15, 2013 5:48 PM, "Bob Brusa" wrote: > > > Am Freitag, 15. Februar 2013 schrieb Joel Goldstick : > >> >> >> >> On Fri, Feb 15, 2013 at 4:45 PM, Deborah Piotrowski < >> spiceninj...@gmail.com> wrote: >> >>> Hi, >>> >>> >>> I am very new to Python, I am using

Re: New User-Need-Help

2013-02-15 Thread John Gordon
In Deborah Piotrowski writes: > print "Game Over" > input("\n\nPress the Enter Key to Exit") > Syntax Error: Invalid Syntax You're probably using Python version 3, but the book was written for version 2. The print statement is handled a bit differently in version 3. Change your print statem

Re: New User-Need-Help

2013-02-15 Thread Bob Brusa
print uses the new syntax e.g. print("example") in 3.r Sent from my BlackBerry® wireless device -Original Message- From: Deborah Piotrowski Date: Fri, 15 Feb 2013 16:08:17 To: Bob Brusa Cc: Joel Goldstick; python-list@python.org Subject: Re: New User-Need-Help print "G

Re: New User-Need-Help

2013-02-15 Thread Deborah Piotrowski
print "Game Over" input("\n\nPress the Enter Key to Exit") Syntax Error: Invalid Syntax On Fri, Feb 15, 2013 at 3:48 PM, Bob Brusa wrote: > > > Am Freitag, 15. Februar 2013 schrieb Joel Goldstick : > > >> >> >> On Fri, Feb 15, 2013 at 4:45 PM, Deborah Piotrowski < >> spiceninj...@gmail.com> wrot

Re: New User-Need-Help

2013-02-15 Thread John Gordon
In Deborah Piotrowski writes: > This is the code:which is extremely simple! > print"Game Over" raw_input("\n\nPress Enter Key to exit") > That's it. Does your code really have everything on one line, as you posted? If so, that's the problem. It should be broken into two separate lines:

Re: New User-Need-Help

2013-02-15 Thread Bob Brusa
Am Freitag, 15. Februar 2013 schrieb Joel Goldstick : > > > > On Fri, Feb 15, 2013 at 4:45 PM, Deborah Piotrowski < > spiceninj...@gmail.com 'spiceninj...@gmail.com');>> wrote: > >> Hi, >> >> >> I am very new to Python, I am using the e-book "Python Programming for >> the Absolute Beginner" and a

Re: New User-Need-Help

2013-02-15 Thread Joel Goldstick
On Fri, Feb 15, 2013 at 4:45 PM, Deborah Piotrowski wrote: > Hi, > > > I am very new to Python, I am using the e-book "Python Programming for the > Absolute Beginner" and am starting with a simple "Game Over" Program. This > is the code:which is extremely simple! > print"Game Over" raw_input("\n\

New User-Need-Help

2013-02-15 Thread Deborah Piotrowski
Hi, I am very new to Python, I am using the e-book "Python Programming for the Absolute Beginner" and am starting with a simple "Game Over" Program. This is the code:which is extremely simple! print"Game Over" raw_input("\n\nPress Enter Key to exit") That's it. It is supposed to bring up a windo

Re: New User

2010-03-01 Thread Shashwat Anand
for beginners : http://openbookproject.net/thinkcs/python/english2e/index.html python cookbook - 2 by alex martelli is fantastic if you have your basics cleared. On Tue, Mar 2, 2010 at 8:09 AM, Niranjan Kumar Das wrote: > Hello Group, > I am starting to programme in python 1st time. Just thought

New User

2010-03-01 Thread Niranjan Kumar Das
Hello Group, I am starting to programme in python 1st time. Just thought i will ask the group members about some well known useful books. I am looking for books at two level. a) For beginers b) For Advaced user Appreciate your help and suggestion in the matter. Thanks, Niranjan -- http://mail.p

New user documentation for ‘python-daemon ’ (was: daemon.DaemonContext and logging)

2009-12-10 Thread Ben Finney
Sean DiZazzo writes: > On Dec 10, 5:37 pm, Sean DiZazzo wrote: > > I'm finally getting around to trying out the python-daemon module > > and have hit a wall.  I'm trying to set up logging inside of the > > "with daemon.DaemonContext" block.  But when I try to use a logger > > inside the block it

Re: New User - Using tutorial and Docs - POST returns 302 Found

2009-03-06 Thread JohnV
> Sorry, I think you didn't get my later post -- than in fact was from a   > month ago... > Seehttp://article.gmane.org/gmane.comp.python.general/613312/ > urllib2 should handle a 302 redirect automatically. > > -- > Gabriel Genellina I went to the link you provided and sure enough there was your

Re: New User - Using tutorial and Docs - POST returns 302 Found

2009-03-04 Thread Gabriel Genellina
En Wed, 04 Mar 2009 14:36:21 -0200, JohnV escribió: Couldn't figure out the proper usage of the urllib2 functions to fix the 302 Found problem, but what I did was change the URL to a php page and httplib.HTTPConnection() worked fine when a "POST" was sent to that page. So, when I have learned

Re: New User - Using tutorial and Docs - POST returns 302 Found

2009-03-04 Thread JohnV
On Mar 2, 10:13 pm, JohnV wrote: > Thanks for your suggestion, but I am not able to get it to work for > me. > > My original script was: > > f = open('C:\Users\Owner\Desktop\mydata.txt', 'r') > read_data = f.read() > > f.close() > > import httplib, urllib > params = urllib.urlencode({'textarea1':

Re: New User - Using tutorial and Docs - POST returns 302 Found

2009-03-03 Thread Gabriel Genellina
En Tue, 03 Mar 2009 04:13:46 -0200, JohnV escribió: Thanks for your suggestion, but I am not able to get it to work for me. My original script was: f = open('C:\Users\Owner\Desktop\mydata.txt', 'r') read_data = f.read() f.close() \ is the escape character in Python. You must double it when

Re: New User - Using tutorial and Docs - POST returns 302 Found

2009-03-02 Thread JohnV
Thanks for your suggestion, but I am not able to get it to work for me. My original script was: f = open('C:\Users\Owner\Desktop\mydata.txt', 'r') read_data = f.read() f.close() import httplib, urllib params = urllib.urlencode({'textarea1': read_data}) headers = {"Content-type": "application/x-

Re: New User - Using tutorial and Docs - POST returns 302 Found

2009-03-02 Thread Gabriel Genellina
En Mon, 02 Mar 2009 23:02:10 -0200, JohnV escribió: I have to run the program one time just to get the dynamically generated redirect URL for the POST (it looks like this) The document has moved http://www.thenational.us/pages/htmlos/ 001863.1.059070780420726458"> I then paste the redirected U

Re: New User - Using tutorial and Docs - POST returns 302 Found

2009-03-02 Thread JohnV
I got it! You can see the code at the bottom of this post. Sorry for three posts on this question. I have to run the program one time just to get the dynamically generated redirect URL for the POST (it looks like this) The document has moved http://www.thenational.us/pages/htmlos/ 001863.1.05907

Re: New User - Using tutorial and Docs - POST returns 302 Found

2009-03-02 Thread JohnV
Here is what var data collected: 302 Found Found The document has moved http://www.thenational.us/pages/ htmlos/001863.1.059070780420726458">here. Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8b mod_mono/ 2.2 FrontPage/5.0.2.2635 mod_bwlimited/1.4 mod_auth_passthrough/2.1 Server at thenation

New User - Using tutorial and Docs - POST returns 302 Found

2009-03-02 Thread JohnV
I am using Python 2.5 r25:51908 MSC v.1318 32 bit (Intel) on wind32 I am totally new to Python and started yesterday going over a couple of examples I found in the documentation which address a problem I am trying to solve. I have successfully opened a file and read the results adapting this code

new user

2008-04-25 Thread [EMAIL PROTECTED]
Hi ! This is my first message . I new here . I like python , blender 3d and opengl and is a hobby for me. I have a site www.catalinfest.xhost.ro where i write about me and python , blender ... I hope learning more on this group . Have a nice day ! -- http://mail.python.org/mailman/listinfo/pyth

Re: new user needs help!

2008-04-10 Thread Chris
' and matches[a][0]==1: > > >         print "    1  1:0 2:0 3:0 4:0 5:0 6:0 7:0 8:0 9:0 10:0 11:1 12:0 > > 13:0 14:0 15:0 16:0 17:0 18:0 19:0 20:0 21:0" > >     if matches[a][1]=='N' and matches[a][0]==1: > > >         print "    

Re: new user needs help!

2008-04-10 Thread Chris
9:0 10:0 11:0 12:0 > 13:1 14:0 15:0 16:0 17:0 18:0 19:0 20:0 21:0" >     if matches[a][1]=='Q' and matches[a][0]==1: > >         print "    1  1:0 2:0 3:0 4:0 5:0 6:0 7:0 8:0 9:0 10:0 11:0 12:0 > 13:0 14:1 15:0 16:0 17:0 18:0 19:0 20:0 21:0" >     if matc

Re: new user needs help!

2008-04-09 Thread Steve Holden
drjekil wrote: > I have done something so far about that problem,but its not the good way to > do it > > need ur comments about that > Well, at least you can see that your approach is not satisfactory, so that means you have some sense of what's good and bad programming/ > > from string im

Re: new user needs help!

2008-04-09 Thread drjekil
]==1: print "1 1:0 2:0 3:0 4:0 5:0 6:0 7:0 8:0 9:0 10:0 11:0 12:0 13:0 14:0 15:0 16:1 17:0 18:0 19:0 20:0 21:0" if matches[a][1]=='T' and matches[a][0]==1: print "1 1:0 2:0 3:0 4:0 5:0 6:0 7:0 8:0 9:0 10:0 11:0 12:0 13:0 14:0 15

Re: new user needs help!

2008-04-08 Thread Steve Holden
drjekil (or should that be mrhyde?): Once again, *please* make sure you reply to the list. Personal replies are much less likely to get attention. regards Steve drjekil sayer wrote: > u got it! > thats what i am trying to explain with my bad english! > thanks once again. > > > On 4/9/08, *S

Re: new user needs help!

2008-04-08 Thread drjekil
u got it! thats the thing i am trying to explain by my bad english! thanks for the help. -- View this message in context: http://www.nabble.com/new--user-needs-help%21-tp16571823p16578029.html Sent from the Python - python-list mailing list archive at Nabble.com. -- http://mail.python.org

Re: new user needs help!

2008-04-08 Thread Steve Holden
[EMAIL PROTECTED] wrote: > thanks! Please keep all replies on the list: somebody else may also wish to help (and they will also pick up mistakes I make ;-) > I am working with a text filelooks like this: > #NAME AA TOPO ACCESS DSSP STRIDE Z-COORD > 1lghB A i 79.8 H H -24.58 > 1lghB V i 79.6 H H

Re: new user needs help!

2008-04-08 Thread Steve Holden
Tim Chase wrote: >> f = open("/tmp/data.txt", 'w') >> >> will open that file. >> >> You can throw the first line away with >> >> headings = f.next() >> >> Then you can loop over the rest with >> >> for name, aa, topo, access, dssp, stride, z in file: >> # >> # Then process each line here

Re: new user needs help!

2008-04-08 Thread Tim Chase
> f = open("/tmp/data.txt", 'w') > > will open that file. > > You can throw the first line away with > > headings = f.next() > > Then you can loop over the rest with > > for name, aa, topo, access, dssp, stride, z in file: > # > # Then process each line here Small caveat here...Ste

Re: new user needs help!

2008-04-08 Thread Mike Driscoll
On Apr 8, 3:38 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > drjekil wrote: > > I am totally new in biopython and its my first program.so may be i am asking > > stupid question. > > New? Most questions are sensible. > > Let's suppose that the four lines you give below are stored in a text > file ca

Re: new user needs help!

2008-04-08 Thread Mike Driscoll
ave to cheek all the lins in the file and print it. > u have to tell simply otherwise i cant understand even,so stupid am i! > I will be really greatful!Thanks in advance > -- > View this message in > context:http://www.nabble.com/new--user-needs-help%21-tp16571823p16571823.html > S

Re: new user needs help!

2008-04-08 Thread Steve Holden
drjekil wrote: > I am totally new in biopython and its my first program.so may be i am asking > stupid question. New? Most questions are sensible. Let's suppose that the four lines you give below are stored in a text file called "/tmp/data.txt". > I am working with a text filelooks like this: >

new user needs help!

2008-04-08 Thread drjekil
!Thanks in advance -- View this message in context: http://www.nabble.com/new--user-needs-help%21-tp16571823p16571823.html Sent from the Python - python-list mailing list archive at Nabble.com. -- http://mail.python.org/mailman/listinfo/python-list

new user needs help!

2008-04-08 Thread drjekil
advance -- View this message in context: http://www.nabble.com/new--user-needs-help%21-tp16571784p16571784.html Sent from the Python - python-list mailing list archive at Nabble.com. -- http://mail.python.org/mailman/listinfo/python-list

Re: Setting up a new user and environment from within a python script

2008-02-07 Thread Henry Hollenberg
On Feb 7, 3:30 pm, [EMAIL PROTECTED] wrote: > On Feb 7, 11:15 am, Henry Hollenberg <[EMAIL PROTECTED]> wrote: > > > > > Hello, > > > I have written a script that uses environment variables set during > > a particular users login in ".bash_profile" and ".profile". > > > I have changed to that users

Re: Setting up a new user and environment from within a python script

2008-02-07 Thread ericbrunson
On Feb 7, 11:15 am, Henry Hollenberg <[EMAIL PROTECTED]> wrote: > Hello, > > I have written a script that uses environment variables set during > a particular users login in ".bash_profile" and ".profile". > > I have changed to that users uid and gid in my python script using: > > import os > os.se

Setting up a new user and environment from within a python script

2008-02-07 Thread Henry Hollenberg
Hello, I have written a script that uses environment variables set during a particular users login in ".bash_profile" and ".profile". I have changed to that users uid and gid in my python script using: import os os.setegid os.setgid os.seteuid os.setuid but I still am not picking up the needed

Re: Fwd: Python new user question - file writeline error

2007-02-08 Thread Gabriel Genellina
En Thu, 08 Feb 2007 14:20:57 -0300, Shawn Milo <[EMAIL PROTECTED]> escribió: > On 8 Feb 2007 09:05:51 -0800, Gabriel Genellina <[EMAIL PROTECTED]> > wrote: >> On 8 feb, 12:41, "Shawn Milo" <[EMAIL PROTECTED]> wrote: >> >> > I have come up with something that's working fine. However, I'm fairly

Re: Fwd: Python new user question - file writeline error

2007-02-08 Thread James
On Feb 8, 3:26 pm, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > Shawn Milo a écrit : > > > > > To the list: > > > I have come up with something that's working fine. However, I'm fairly > > new to Python, so I'd really appreciate any suggestions on how this > > can be made more Pythonic. > > > T

Re: Fwd: Python new user question - file writeline error

2007-02-08 Thread Bruno Desthuilliers
Shawn Milo a écrit : > To the list: > > I have come up with something that's working fine. However, I'm fairly > new to Python, so I'd really appreciate any suggestions on how this > can be made more Pythonic. > > Thanks, > Shawn > > > > > > > Okay, here's what I have come up with: > > >

Re: Fwd: Python new user question - file writeline error

2007-02-08 Thread Shawn Milo
On 2/8/07, Jussi Salmela <[EMAIL PROTECTED]> wrote: > Shawn Milo kirjoitti: > > To the list: > > > > I have come up with something that's working fine. However, I'm fairly > > new to Python, so I'd really appreciate any suggestions on how this > > can be made more Pythonic. > > > > Thanks, > > Shaw

Re: Fwd: Python new user question - file writeline error

2007-02-08 Thread Jussi Salmela
Shawn Milo kirjoitti: > To the list: > > I have come up with something that's working fine. However, I'm fairly > new to Python, so I'd really appreciate any suggestions on how this > can be made more Pythonic. > > Thanks, > Shawn > > > > > > > Okay, here's what I have come up with: What f

Re: Fwd: Python new user question - file writeline error

2007-02-08 Thread Shawn Milo
On 8 Feb 2007 09:05:51 -0800, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > On 8 feb, 12:41, "Shawn Milo" <[EMAIL PROTECTED]> wrote: > > > I have come up with something that's working fine. However, I'm fairly > > new to Python, so I'd really appreciate any suggestions on how this > > can be made

Re: Fwd: Python new user question - file writeline error

2007-02-08 Thread Gabriel Genellina
On 8 feb, 12:41, "Shawn Milo" <[EMAIL PROTECTED]> wrote: > I have come up with something that's working fine. However, I'm fairly > new to Python, so I'd really appreciate any suggestions on how this > can be made more Pythonic. A few comments: You don't need the formatDatePart function; delete

Fwd: Python new user question - file writeline error

2007-02-08 Thread Shawn Milo
To the list: I have come up with something that's working fine. However, I'm fairly new to Python, so I'd really appreciate any suggestions on how this can be made more Pythonic. Thanks, Shawn Okay, here's what I have come up with: #! /usr/bin/python import sys import re month ={'JAN':

Re: Python new user question - file writeline error

2007-02-07 Thread Bruno Desthuilliers
James a écrit : > On Feb 7, 4:59 pm, "Shawn Milo" <[EMAIL PROTECTED]> wrote: > (snip) >>I'm pretty new to Python myself, but if you'd like help with a >>Perl/regex solution, I'm up for it. For that matter, whipping up a >>Python/regex solution would probably be good for me. Let me know. >> >>Shaw

Re: Python new user question - file writeline error

2007-02-07 Thread Jerry Hill
On 7 Feb 2007 11:31:32 -0800, James <[EMAIL PROTECTED]> wrote: > I have this code: ... > infile.close > outfile.close ... > 1. the outfile doesn't complete with no error message. when I check > the last line in the python interpreter, it has read and processed the > last line, but the output file

Re: Python new user question - file writeline error

2007-02-07 Thread James
On Feb 7, 4:59 pm, "Shawn Milo" <[EMAIL PROTECTED]> wrote: > On 7 Feb 2007 11:31:32 -0800, James <[EMAIL PROTECTED]> wrote: > > > > > Hello, > > > I'm a newbie to Python & wondering someone can help me with this... > > > I have this code: > > -- > > #! /usr/bin/python > > >

Re: Python new user question - file writeline error

2007-02-07 Thread Shawn Milo
On 7 Feb 2007 11:31:32 -0800, James <[EMAIL PROTECTED]> wrote: > Hello, > > I'm a newbie to Python & wondering someone can help me with this... > > I have this code: > -- > #! /usr/bin/python > > import sys > > month ={'JAN':1,'FEB':2,'MAR':3,'APR':4,'MAY':5,'JUN':6,'JUL':7

Re: Python new user question - file writeline error

2007-02-07 Thread Bruno Desthuilliers
James a écrit : > Hello, > > I'm a newbie to Python & wondering someone can help me with this... > > I have this code: > -- > #! /usr/bin/python > > import sys > > month ={'JAN':1,'FEB':2,'MAR':3,'APR':4,'MAY':5,'JUN':6,'JUL':7,'AUG': > 8,'SEP':9,'OCT':10,'NOV':11,'DEC':

Python new user question - file writeline error

2007-02-07 Thread James
Hello, I'm a newbie to Python & wondering someone can help me with this... I have this code: -- #! /usr/bin/python import sys month ={'JAN':1,'FEB':2,'MAR':3,'APR':4,'MAY':5,'JUN':6,'JUL':7,'AUG': 8,'SEP':9,'OCT':10,'NOV':11,'DEC':12} infile=file('TVA-0316','r') outfile=

Re: New User

2005-10-24 Thread Steve Holden
thatchmatic wrote: > I just downloaded and I think installed python. I am not sure if I > did cause it does'nt respond to the commands that the read me file > told me to use. Also can someone suggest a trial program I can maybe > write for fun? > > Thanks. > > > 1: http://www.python.org/do

Re: New User

2005-10-24 Thread Christoph Haas
On Sunday 23 October 2005 03:46, thatchmatic wrote: > I just downloaded and I think installed python. I am not sure if I > did cause it does'nt respond to the commands that the read me file > told me to use. Also can someone suggest a trial program I can maybe > write for fun? Try http://diveint

Re: New User

2005-10-24 Thread Fredrik Lundh
"thatchmatic" wrote: > I just downloaded and I think installed python. I am not sure if I > did cause it does'nt respond to the commands that the read me file > told me to use. Also can someone suggest a trial program I can maybe > write for fun? what happens when you type python at a com

New User

2005-10-24 Thread thatchmatic
I just downloaded and I think installed python. I am not sure if I did cause it does'nt respond to the commands that the read me file told me to use. Also can someone suggest a trial program I can maybe write for fun? Thanks. -- http://mail.python.org/mailman/listinfo/python-list