Re: New user's initial thoughts / criticisms of Python

2013-11-09 Thread John von Horn
On Sat, 09 Nov 2013 07:08:25 -0600, John von Horn wrote:

Thanks so much for the replies. I'll get my head down and keep on going. 
Sometimes it's great to be wrong. I have a good feeling about this 
language. It's also nice that I can tap into this pool of knowledge that 
is comp.lang.python - I'll be heading down to that watering hole on a 
regular basis. *Help, Help - the python's got me, I've been ambushed*

And a "thank you" [guys] - alright!

My next program:

print 'And a '"thank you"' [guys] to the screen, expanding the list of 
guys to their individual names that have replied to my opening comment.
displayed as a comma delimited list.

Time to say "goodbye" to "Hello World" and take it to the next level. 
First floor, here I come.

We are on a mission! I'm lovin' it.

JvH

-- 
https://mail.python.org/mailman/listinfo/python-list


New user's initial thoughts / criticisms of Python

2013-11-09 Thread John von Horn
Hi Everyone,

I'm Mr. Noobie here, I've just started easing into Python (2.7.4) and am 
enjoying working along to some youtube tutorials. I've done a little 
programming in the past.

I've just got a few thoughts I'd like to share and ask about:

* Why not allow floater=float(int1/int2) - rather than floater=float
(int1)/float(int2)?

Give me a float (or an error message) from evaluating everything in the 
brackets. Don't make me explicitly convert everything myself (unless I 
want to)

* No sign of a select .. case statement

Another useful tool in the programmer's toolbox

Select DayofWeek

case "mon"

...

end select

* Call me pedantic by why do we need a trailing comma for a list of one 
item? Keep it intuitive and allow lstShopping=[] or ["Bread"] or 
["Bread", "Milk","Hot Chocolate"] I don't like ["Bread",]. It bugs me.

Just some initial thoughts. I just wanted to know the reasoning behind 
the above, be shown the shortcomings of my ignorance, pointed in the 
right direction. Let the High Priests of Python come forth and speak wise 
words and show me the ignorance of thy ways. Let my cup be filled to 
overflowing with your kind knowledge and wisdom.

Is everyone happy with the way things are? Could anyone recommend a good, 
high level language for CGI work? Not sure if I'm going to be happy with 
Perl (ahhh, get him, he's mentioned Perl and is a heretic!) or Python. I 
would very much value any constructive criticism or insights.

And a "thank you", ["sirs","madams"] but pls, not just ["sirs",]

JvH
-- 
https://mail.python.org/mailman/listinfo/python-list