Is pythonic version of scanf() or sscanf() planned?

2009-10-13 Thread ryniek90
In article , ryniek90 wrote: But I remember that lambda function also was unwelcome in Python, but finally it is and is doing well. So maybe someone, someday decide to put in Python an alternative, really great implementation of scanf() ? How long have you been using Python? lambd

Re: Is pythonic version of scanf() or sscanf() planned?

2009-10-13 Thread Aahz
In article , ryniek90 wrote: > >But I remember that lambda function also was unwelcome in Python, but >finally it is and is doing well. So maybe someone, someday decide to >put in Python an alternative, really great implementation of scanf() ? How long have you been using Python? lambda has bee

Re: Is pythonic version of scanf() or sscanf() planned?

2009-10-11 Thread r
On Oct 3, 8:17 pm, Grant Edwards wrote: (--snip--) > One of the fist things I remember being taught as a C progrmmer > was to never use scanf.  Programs that use scanf tend to fail > in rather spectacular ways when presented with simple typos and > other forms of unexpected input.   > > Given the

Re: Is pythonic version of scanf() or sscanf() planned?

2009-10-11 Thread TerryP
On Oct 9, 5:59 pm, Joshua Kugler wrote: > ryniek90 wrote: > > So maybe someone, someday decide to > > put in Python an alternative, really great implementation ofscanf() ? > > My idea of a "greatscanf() function" would be a clever combination of > re.match(), int(), and float(). > > j Actually, t

Re: Is pythonic version of scanf() or sscanf() planned?

2009-10-09 Thread Joshua Kugler
ryniek90 wrote: > So maybe someone, someday decide to > put in Python an alternative, really great implementation of scanf() ? My idea of a "great scanf() function" would be a clever combination of re.match(), int(), and float(). j -- http://mail.python.org/mailman/listinfo/python-list

Re: Is pythonic version of scanf() or sscanf() planned?

2009-10-08 Thread Terry Reedy
ryniek90 wrote: On 6 Paź, 06:37, Dennis Lee Bieber wrote: On Sun, 4 Oct 2009 15:48:16 -0700 (PDT), TerryP declaimed the following in gmane.comp.python.general: In the last 4 years, I have never missed functions like .*scanf() or atoi(). It's probably a greeaaat thing that Python provides net

Re: Is pythonic version of scanf() or sscanf() planned?

2009-10-08 Thread Simon Brunning
2009/10/8 ryniek90 : > Ok thanks all for answers. Not counting .split() methods and regexps, > there's nothing interesting. > But I remember that lambda function also was unwelcome in Python, but > finally it is and is doing well. So maybe someone, someday decide to > put in Python an alternative,

Re: Is pythonic version of scanf() or sscanf() planned?

2009-10-08 Thread Ben Sizer
On Oct 3, 11:06 pm, ryniek90 wrote: > Hi > > I know that in python, we can do the same with regexps or *.split()*, > but thats longer and less practical method than *scanf()*. I also found > that (http://code.activestate.com/recipes/502213/), but the code > doesn't looks so simple for beginners. S

Re: Is pythonic version of scanf() or sscanf() planned?

2009-10-08 Thread ryniek90
On 6 Paź, 06:37, Dennis Lee Bieber wrote: > On Sun, 4 Oct 2009 15:48:16 -0700 (PDT), TerryP > declaimed the following in gmane.comp.python.general: > > > In the last 4 years, I have never missed functions like .*scanf() or > > atoi(). > > > It's probably a greeaaat thing that Python provides neth

Re: Is pythonic version of scanf() or sscanf() planned?

2009-10-05 Thread TerryP
In the last 4 years, I have never missed functions like .*scanf() or atoi(). It's probably a greeaaat thing that Python provides nether as built ins (per se). -- http://mail.python.org/mailman/listinfo/python-list

Re: Is pythonic version of scanf() or sscanf() planned?

2009-10-04 Thread Martien Verbruggen
On Sun, 4 Oct 2009 13:18:22 -0400, Simon Forman wrote: > On Sun, Oct 4, 2009 at 5:29 AM, Martien Verbruggen > wrote: >> On Sun, 4 Oct 2009 01:17:18 + (UTC), >>        Grant Edwards wrote: >>> On 2009-10-03, ryniek90 wrote: >>> So, whether it is or has been planned the core Pytho

Re: Is pythonic version of scanf() or sscanf() planned?

2009-10-04 Thread Simon Forman
On Sun, Oct 4, 2009 at 5:29 AM, Martien Verbruggen wrote: > On Sun, 4 Oct 2009 01:17:18 + (UTC), >        Grant Edwards wrote: >> On 2009-10-03, ryniek90 wrote: >> >>> So, whether it is or has been planned the core Python >>> implementation of *scanf()* ? >> >> One of the fist things I remem

Re: Is pythonic version of scanf() or sscanf() planned?

2009-10-04 Thread Martien Verbruggen
On Sun, 4 Oct 2009 01:17:18 + (UTC), Grant Edwards wrote: > On 2009-10-03, ryniek90 wrote: > >> So, whether it is or has been planned the core Python >> implementation of *scanf()* ? > > One of the fist things I remember being taught as a C progrmmer > was to never use scanf. Program

Re: Is pythonic version of scanf() or sscanf() planned?

2009-10-03 Thread Grant Edwards
On 2009-10-03, ryniek90 wrote: > So, whether it is or has been planned the core Python > implementation of *scanf()* ? One of the fist things I remember being taught as a C progrmmer was to never use scanf. Programs that use scanf tend to fail in rather spectacular ways when presented with simp

Re: Is pythonic version of scanf() or sscanf() planned?

2009-10-03 Thread MRAB
ryniek90 wrote: Hi I know that in python, we can do the same with regexps or *.split()*, but thats longer and less practical method than *scanf()*. I also found that ( http://code.activestate.com/recipes/502213/ ), but the code doesn't looks so simple for beginners. So, whether it is or has b

Is pythonic version of scanf() or sscanf() planned?

2009-10-03 Thread ryniek90
Hi I know that in python, we can do the same with regexps or *.split()*, but thats longer and less practical method than *scanf()*. I also found that ( http://code.activestate.com/recipes/502213/ ), but the code doesn't looks so simple for beginners. So, whether it is or has been planned the