Re: Newbie : checking semantics

2005-05-17 Thread Antoon Pardon
Op 2005-05-16, Bengt Richter schreef <[EMAIL PROTECTED]>: > On Mon, 16 May 2005 18:40:43 +0200, Stefan Nobis <[EMAIL PROTECTED]> wrote: > >>rbt <[EMAIL PROTECTED]> writes: >> >>> True beginners (no programming experience whatsoever) don't have >>> to deal with unlearning stuff such as the bracket p

Re: Newbie : checking semantics

2005-05-17 Thread Stefan Nobis
[EMAIL PROTECTED] (Bengt Richter) writes: [block end statements] > Training wheels do no belong as a permanent part of a bicycle, Yes, but they would be useful for example in web programming (embedding Python into HTML), too. So they are not only training wheels. But that's not so important. Wha

Re: Newbie : checking semantics

2005-05-16 Thread Bengt Richter
On Mon, 16 May 2005 18:40:43 +0200, Stefan Nobis <[EMAIL PROTECTED]> wrote: >rbt <[EMAIL PROTECTED]> writes: > >> True beginners (no programming experience whatsoever) don't have >> to deal with unlearning stuff such as the bracket plague. > >That's true. But they also not very used to give nothin

Re: Newbie : checking semantics

2005-05-16 Thread Stefan Nobis
Andrew Dalke <[EMAIL PROTECTED]> writes: > See the program "pindent.py" Thanks for the hint, i didn't know about it. -- Stefan. -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie : checking semantics

2005-05-16 Thread Andrew Dalke
Stefan Nobis wrote: > From time to time I teach some programming (in an institution > called "Volkshochschule" here in Germany -- inexpensive courses > for adults). My Python course is for absolute beginners with no > previous programming experience of any kind. I also taught a beginning programmi

Re: Newbie : checking semantics

2005-05-16 Thread rbt
Stefan Nobis wrote: > rbt <[EMAIL PROTECTED]> writes: > > >>True beginners (no programming experience whatsoever) don't have >>to deal with unlearning stuff such as the bracket plague. > > > That's true. But they also not very used to give nothing (-> > whitespace) a meaning. I teached quite so

Re: Newbie : checking semantics

2005-05-16 Thread Stefan Nobis
rbt <[EMAIL PROTECTED]> writes: > True beginners (no programming experience whatsoever) don't have > to deal with unlearning stuff such as the bracket plague. That's true. But they also not very used to give nothing (-> whitespace) a meaning. I teached quite some beginners and most of them had pr

Re: Newbie : checking semantics

2005-05-16 Thread Stefan Nobis
Andrew Dalke <[EMAIL PROTECTED]> writes: > When you say "beginners" is that people with no previous > programming experience >From time to time I teach some programming (in an institution called "Volkshochschule" here in Germany -- inexpensive courses for adults). My Python course is for absolute

Re: Newbie : checking semantics

2005-05-16 Thread rbt
Andrew Dalke wrote: > Stefan Nobis wrote: > >>The other point is a missing (optional) statement to end blocks >>(so you optional don't have to mark block via whitespace). IMHO >>this comes very handy in some cases (like mixing Python and HTML >>like in PSP). From my experience i also would say beg

Re: Newbie : checking semantics

2005-05-16 Thread Andrew Dalke
Stefan Nobis wrote: > The other point is a missing (optional) statement to end blocks > (so you optional don't have to mark block via whitespace). IMHO > this comes very handy in some cases (like mixing Python and HTML > like in PSP). From my experience i also would say beginners have > quite some

Re: Newbie : checking semantics

2005-05-16 Thread Stefan Nobis
"LDD" <[EMAIL PROTECTED]> writes: > The fact that python doesn't check if the symbol > AFunctionThatIsntDefined is defined, is really bad when you > develop big pieces of code. Yes, that's one of my two points, that i think are misfeatures in Python, too. The problem is, that Python don't disting

Re: Newbie : checking semantics

2005-05-16 Thread Mike Meyer
Dennis Lee Bieber <[EMAIL PROTECTED]> writes: > Or the infamous, and maybe urban legend, of the early FORTRAN > compiler in which literal constants weren't... > > call inc(1) > write(6, 100) 1 > 100 format("I5") > > > subroutine inc(i) > i = i + 1 > retur

Re: Newbie : checking semantics

2005-05-15 Thread beliavsky
[EMAIL PROTECTED] wrote: > 2. Trust me (and other Python programmers most likely would agree) this > type of error happens much more seldom then newbies (especially coming > from strongly typed languages) imagine while adjusting to the language. > > 3. Python advantages "overpower" drawbacks 10

Re: Newbie : checking semantics

2005-05-08 Thread Bengt Richter
On 8 May 2005 02:59:22 -0700, "LDD" <[EMAIL PROTECTED]> wrote: >Be reassured, I'm not working in any business related to pacemakers, >avionics or railway signalling equipement ... :) > >I'm just a guy who is learning Python because to me it seems to be the >best alternative to Perl, and trying

Re: Newbie : checking semantics

2005-05-08 Thread LDD
>To win this point, you need to produce evidence that doesn't exist. I was not trying to win any point when I put my naive question on this forum. I'm just learning Python and trying to know what it is best made for. So far I've learnt that Python is lazy about tyche-checking, it is dynamic by na

Re: Newbie : checking semantics

2005-05-08 Thread LDD
Be reassured, I'm not working in any business related to pacemakers, avionics or railway signalling equipement ... :) I'm just a guy who is learning Python because to me it seems to be the best alternative to Perl, and trying to know what it is fit for. -- http://mail.python.org/mailman/listi

Re: Newbie : checking semantics

2005-05-07 Thread John Machin
On 7 May 2005 15:05:20 -0700, "LDD" <[EMAIL PROTECTED]> wrote: >Hi everyone, > >I am new to python and was very enthustic about its possibilities when >I discover that python is really what it is : just a scripting >language. > >What disappoints me is that pyton will happily accept and execute thi

Re: Newbie : checking semantics

2005-05-07 Thread elbertlev
> I am new to python and was very enthustic about its possibilities when > I discover that python is really what it is : just a scripting > language. .. > The fact that python doesn't check if the symbol ... is defined, is really bad ... 1. For a language like Python full static checking is IM

Re: Newbie : checking semantics

2005-05-07 Thread George Sakkis
> What disappoints me is that pyton will happily accept and execute this > code : > > if ( aConditionThatIsFalse ): > AFunctionThatIsntDefined() > > print "Hello world" > > The fact that python doesn't check if the symbol > AFunctionThatIsntDefined is defined, is really bad when you develop bi

Re: Newbie : checking semantics

2005-05-07 Thread Bengt Richter
On 7 May 2005 15:05:20 -0700, "LDD" <[EMAIL PROTECTED]> wrote: >Hi everyone, > >I am new to python and was very enthustic about its possibilities when >I discover that python is really what it is : just a scripting >language. Not "just." > >What disappoints me is that pyton will happily accept an

Re: Newbie : checking semantics

2005-05-07 Thread Mike Meyer
"LDD" <[EMAIL PROTECTED]> writes: > I am new to python and was very enthustic about its possibilities when > I discover that python is really what it is : just a scripting > language. That "just" covers a *very* big application space. So-called scripting languages are being used in an ever-wideni

Re: Newbie : checking semantics

2005-05-07 Thread [EMAIL PROTECTED]
I do not know of a check like the one you desire. But you always can use some clever testing, e.g. facilitated with the unittest module to prevent situations like yours, see http://docs.python.org/lib/module-unittest.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie : checking semantics

2005-05-07 Thread Jeremy Bowers
On Sat, 07 May 2005 15:05:20 -0700, LDD wrote: > The fact that python doesn't check if the symbol > AFunctionThatIsntDefined is defined, is really bad when you develop big > pieces of code. You will never be sure that your code is free of this > kind of dummy errors and testing every possible execu

Newbie : checking semantics

2005-05-07 Thread LDD
Hi everyone, I am new to python and was very enthustic about its possibilities when I discover that python is really what it is : just a scripting language. What disappoints me is that pyton will happily accept and execute this code : if ( aConditionThatIsFalse ): AFunctionThatIsntDefined()