Hi, I don't know if I should ask this on here, or in the tutor section, but I heard that http://www.lighttable.com was an innovative IDE, so I was wondering if it works for python since I'm learning python over time..... Thanks!
On Fri, Feb 15, 2013 at 5:25 PM, <python-list-requ...@python.org> wrote: > Send Python-list mailing list submissions to > python-list@python.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.python.org/mailman/listinfo/python-list > or, via email, send a message with subject or body 'help' to > python-list-requ...@python.org > > You can reach the person managing the list at > python-list-ow...@python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Python-list digest..." > > Today's Topics: > > 1. Re: Howto parse a string using a char in python (John Gordon) > 2. Re: New User-Need-Help (John Gordon) > 3. Re: Howto parse a string using a char in python (Tim Chase) > 4. Re: Howto parse a string using a char in python (David Robinow) > 5. Re: Howto parse a string using a char in python (Mark Lawrence) > 6. Re: Howto parse a string using a char in python (Gary Chambers) > 7. Re: New User-Need-Help (Joel Goldstick) > 8. Re: New User-Need-Help (Deborah Piotrowski) > > > ---------- Forwarded message ---------- > From: John Gordon <gor...@panix.com> > To: python-list@python.org > Cc: > Date: Fri, 15 Feb 2013 23:11:52 +0000 (UTC) > Subject: Re: Howto parse a string using a char in python > In <511ebf0c$0$21334$9a6e1...@unlimited.newshosting.com> "Steve Goodwin" < > sgood...@cfl.rr.com> writes: > > > I am looking for the python2.7 function(s) to parse a string from a colon > > character ":" > > > Sounds simple enough. > > > For example, a string like "123456:789". I just need the "123456" > > substring.(left of the :) > > > I have looked at regular expressions and string functions, so far no > luck. > > Custom function required? > > Use the split() string function. > > -- > John Gordon A is for Amy, who fell down the stairs > gor...@panix.com B is for Basil, assaulted by bears > -- Edward Gorey, "The Gashlycrumb Tinies" > > > > > ---------- Forwarded message ---------- > From: John Gordon <gor...@panix.com> > To: python-list@python.org > Cc: > Date: Fri, 15 Feb 2013 23:14:20 +0000 (UTC) > Subject: Re: New User-Need-Help > In <mailman.1855.1360969699.2939.python-l...@python.org> Deborah > Piotrowski <spiceninj...@gmail.com> 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 statement to look like this: > > print("Game Over") > > -- > John Gordon A is for Amy, who fell down the stairs > gor...@panix.com B is for Basil, assaulted by bears > -- Edward Gorey, "The Gashlycrumb Tinies" > > > > > ---------- Forwarded message ---------- > From: Tim Chase <python.l...@tim.thechases.com> > To: "Steve Goodwin" <sgood...@cfl.rr.com> > Cc: python-list@python.org > Date: Fri, 15 Feb 2013 17:16:26 -0600 > Subject: Re: Howto parse a string using a char in python > On 2013-02-15 18:04, Steve Goodwin wrote: > > Hi, > > > > I am looking for the python2.7 function(s) to parse a string from a > > colon character ":" > > > > Sounds simple enough. > > > > For example, a string like "123456:789". I just need the "123456" > > substring.(left of the :) > > > > I have looked at regular expressions and string functions, so far > > no luck. Custom function required? > > With just a single character, it sounds like you want something like > > whole = "123456:789" > parts = whole.split(':') # or .split(':', 1) > interesting = parts[0] > > No custom function needed. > > -tkc > > > > > > > ---------- Forwarded message ---------- > From: David Robinow <drobi...@gmail.com> > To: Steve Goodwin <sgood...@cfl.rr.com> > Cc: python-list@python.org > Date: Fri, 15 Feb 2013 18:19:09 -0500 > Subject: Re: Howto parse a string using a char in python > On Fri, Feb 15, 2013 at 6:04 PM, Steve Goodwin <sgood...@cfl.rr.com> > wrote: > > Hi, > > > > I am looking for the python2.7 function(s) to parse a string from a colon > > character ":" > > > > Sounds simple enough. > > > > For example, a string like "123456:789". I just need the "123456" > > substring.(left of the :) > "123456:789".split(":")[0] > > > > ---------- Forwarded message ---------- > From: Mark Lawrence <breamore...@yahoo.co.uk> > To: python-list@python.org > Cc: > Date: Fri, 15 Feb 2013 23:20:06 +0000 > Subject: Re: Howto parse a string using a char in python > On 15/02/2013 23:04, Steve Goodwin wrote: > >> Hi, >> >> I am looking for the python2.7 function(s) to parse a string from a colon >> character ":" >> >> Sounds simple enough. >> >> For example, a string like "123456:789". I just need the "123456" >> substring.(left of the :) >> >> I have looked at regular expressions and string functions, so far no luck. >> Custom function required? >> >> Thank you. >> >> - Spoog98 >> >> >> > More likely a visit to the opticians :) See http://docs.python.org/2/** > library/stdtypes.html#string-**methods<http://docs.python.org/2/library/stdtypes.html#string-methods>for > the find and index methods. > > -- > Cheers. > > Mark Lawrence > > > > > ---------- Forwarded message ---------- > From: Gary Chambers <gwch...@gwcmail.com> > To: Steve Goodwin <sgood...@cfl.rr.com> > Cc: python-list@python.org > Date: Fri, 15 Feb 2013 18:13:21 -0500 > Subject: Re: Howto parse a string using a char in python > Steve, > > > I am looking for the python2.7 function(s) to parse a string from a colon > > character ":" > > > > Sounds simple enough. > > > > For example, a string like "123456:789". I just need the "123456" > > substring.(left of the :) > > How about: > > newstr = str[:str.find(':')] > > -- > GC > > ---------- Forwarded message ---------- > From: Joel Goldstick <joel.goldst...@gmail.com> > To: Bob Brusa <bob.br...@gmail.com> > Cc: "python-list@python.org" <python-list@python.org>, Deborah Piotrowski > <spiceninj...@gmail.com> > Date: Fri, 15 Feb 2013 18:21:03 -0500 > Subject: Re: New User-Need-Help > > Print needs parense in python 3 > On Feb 15, 2013 5:48 PM, "Bob Brusa" <bob.br...@gmail.com> 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 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") >>>> >>> >>> welcome Nicholas >>> >>> >>> One important thing about python is indentation is important. You have >>> presented your code in a way that can't be. Can you actually copy your >>> program and paste it into an email message. Also, Windows, Linux, Mac? >>> >>> >>> >>>> That's it. It is supposed to bring up a window that says "Game Over" >>>> and at the bottom say "Press enter Key to exit" and when you press the >>>> enter key it is supposed to exit(big suprise). >>>> But all it does is highlight "raw_input" and says "invalid syntax" Now, >>>> if I just put "print "Game Over"" then it says Game Over UNDERNEATH the >>>> code I just printed! >>>> now I am following the book to the *pixel* and that is not what is >>>> supposed to happen! >>>> Please email me back as soon as you get this...(if you are not to >>>> busy). >>>> >>>> Thanks,Nicholas >>>> >>>> -- >>>> http://mail.python.org/mailman/listinfo/python-list >>>> >>>> >>> >>> >>> -- >>> Joel Goldstick >>> http://joelgoldstick.com >>> >> >> Nicholas, >> Could it be that you use a more recent version ( e. g. 3.3) of python? I >> found that raw_input is indeed no longer recognized. Use input instead and >> your code will work - at least it did so with python 3.3 on my iPad. >> Bob >> >> >> -- >> Von Gmail Mobile gesendet >> > > > ---------- Forwarded message ---------- > From: Deborah Piotrowski <spiceninj...@gmail.com> > To: Joel Goldstick <joel.goldst...@gmail.com> > Cc: "python-list@python.org" <python-list@python.org> > Date: Fri, 15 Feb 2013 16:25:36 -0700 > Subject: Re: New User-Need-Help > 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 > <joel.goldst...@gmail.com>wrote: > >> Print needs parense in python 3 >> On Feb 15, 2013 5:48 PM, "Bob Brusa" <bob.br...@gmail.com> 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 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") >>>>> >>>> >>>> welcome Nicholas >>>> >>>> >>>> One important thing about python is indentation is important. You have >>>> presented your code in a way that can't be. Can you actually copy your >>>> program and paste it into an email message. Also, Windows, Linux, Mac? >>>> >>>> >>>> >>>>> That's it. It is supposed to bring up a window that says "Game Over" >>>>> and at the bottom say "Press enter Key to exit" and when you press the >>>>> enter key it is supposed to exit(big suprise). >>>>> But all it does is highlight "raw_input" and says "invalid syntax" >>>>> Now, if I just put "print "Game Over"" then it says Game Over UNDERNEATH >>>>> the code I just printed! >>>>> now I am following the book to the *pixel* and that is not what is >>>>> supposed to happen! >>>>> Please email me back as soon as you get this...(if you are not to >>>>> busy). >>>>> >>>>> Thanks,Nicholas >>>>> >>>>> -- >>>>> http://mail.python.org/mailman/listinfo/python-list >>>>> >>>>> >>>> >>>> >>>> -- >>>> Joel Goldstick >>>> http://joelgoldstick.com >>>> >>> >>> Nicholas, >>> Could it be that you use a more recent version ( e. g. 3.3) of python? I >>> found that raw_input is indeed no longer recognized. Use input instead and >>> your code will work - at least it did so with python 3.3 on my iPad. >>> Bob >>> >>> >>> -- >>> Von Gmail Mobile gesendet >>> >> > > > -- > Nicholas J. Piotrowski > > -- > http://mail.python.org/mailman/listinfo/python-list >
-- http://mail.python.org/mailman/listinfo/python-list