Re: python for everyday tasks

2013-11-27 Thread Chris Angelico
On Thu, Nov 28, 2013 at 5:05 AM, Pavel Volkov wrote: > "Got a switch statement? The Python translation is a hash table, not a bunch > of if-then statments. Got a bunch of if-then's that wouldn't be a switch > statement in Java because strings are involved? It's still a hash table. " I actually di

Re: python for everyday tasks

2013-11-27 Thread Jean-Michel Pichavant
- Original Message - > On Saturday 23 November 2013 02:01:26 Steven D'Aprano wrote: > > * Python is not Java, and Java is not Python either: > > > > http://dirtsimple.org/2004/12/python-is-not-java.html > > http://dirtsimple.org/2004/12/java-is-not-python-either.html > > Thanks for all th

Re: python for everyday tasks

2013-11-27 Thread Michael Torrie
On 11/27/2013 11:05 AM, Pavel Volkov wrote: > Thanks for all those references. > There's this statement in the first article: > > "Got a switch statement? The Python translation is a hash table, not a bunch > of if-then statments. Got a bunch of if-then's that wouldn't be a switch > statement in

Re: python for everyday tasks

2013-11-27 Thread Pavel Volkov
On Saturday 23 November 2013 02:01:26 Steven D'Aprano wrote: > * Python is not Java, and Java is not Python either: > > http://dirtsimple.org/2004/12/python-is-not-java.html > http://dirtsimple.org/2004/12/java-is-not-python-either.html Thanks for all those references. There's this statement in t

Re: python for everyday tasks

2013-11-25 Thread Chris Angelico
On Tue, Nov 26, 2013 at 10:35 AM, Ben Finney wrote: > Chris Angelico writes: > >> (Fifteen years. It's seventeen years since Unicode 2.0, when 16-bit >> characters were outmoded. It's about time _every_ modern language >> followed Python's and Pike's lead and got its Unicode support right.) > > M

Re: python for everyday tasks

2013-11-25 Thread Ben Finney
Chris Angelico writes: > (Fifteen years. It's seventeen years since Unicode 2.0, when 16-bit > characters were outmoded. It's about time _every_ modern language > followed Python's and Pike's lead and got its Unicode support right.) Most languages that already have some support for Unicode have

Re: python for everyday tasks

2013-11-25 Thread wxjmfauth
Le lundi 25 novembre 2013 16:11:22 UTC+1, Michael Torrie a écrit : > I only respond here, as unicode in general is an important concept that > > the OP will to make sure his students understand in Python, and I don't > > want you to dishonestly sow the seeds of uncertainty and doubt. > > > > O

Re: python for everyday tasks

2013-11-25 Thread Chris Angelico
On Tue, Nov 26, 2013 at 2:11 AM, Michael Torrie wrote: > Have you encountered a real-world situation > where you are impacted by Python's FSR? Python 3.3 was released back in September 2012, over a year ago. As far as python-list can be aware, nobody - but nobody - has had any problem with it exc

Re: python for everyday tasks

2013-11-25 Thread Michael Torrie
I only respond here, as unicode in general is an important concept that the OP will to make sure his students understand in Python, and I don't want you to dishonestly sow the seeds of uncertainty and doubt. On 11/25/2013 03:12 AM, wxjmfa...@gmail.com wrote: > Your paragraph is mixing different co

Re: python for everyday tasks

2013-11-25 Thread Mark Lawrence
On 25/11/2013 10:12, wxjmfa...@gmail.com wrote: Le samedi 23 novembre 2013 03:01:26 UTC+1, Steven D'Aprano a écrit : * Python 3 (although not Python 2) is one of the few languages that get Unicode *right*. Strings in Python 3 are text, sequences of Unicode characters, not a thinly disguised b

Re: python for everyday tasks

2013-11-25 Thread wxjmfauth
Le samedi 23 novembre 2013 03:01:26 UTC+1, Steven D'Aprano a écrit : > > > > * Python 3 (although not Python 2) is one of the few languages that get > > Unicode *right*. Strings in Python 3 are text, sequences of Unicode > > characters, not a thinly disguised blob of bytes. Starting with Pyt

Re: python for everyday tasks

2013-11-23 Thread koch . mate
Thank you very much, that's much more detailed than I dared to hope for, it's going to be a great help. :) Since the course will begin in January, I'm just starting to prepare, I'm happy to hear any other ideas, comments. Thank you all, Mate -- https://mail.python.org/mailman/listinfo/python-

Re: python for everyday tasks

2013-11-22 Thread Chris Angelico
On Sat, Nov 23, 2013 at 5:28 PM, Dan Stromberg wrote: > Teach that python has builtins, not keywords - IOW, you can redefine list or > int, but you probably shouldn't. pylint helps with this. Well, Python has keywords, but uses builtins for many things that other languages use keywords (or magic

Re: python for everyday tasks

2013-11-22 Thread Dan Stromberg
I almost forgot: Talk about pypi and pip (or similar) too. On Fri, Nov 22, 2013 at 3:59 PM, wrote: > >> Hello, >> >> I'm about held a short course with the title indicated in the subjects. >> The students are very experienced programmers of our company, with deep >> knoledge on C, C++, C#, Perl a

Re: python for everyday tasks

2013-11-22 Thread Dan Stromberg
Teach that Python emphasizes readability. Perhaps talk about bugs / lines_of_code being roughly a constant. Then talk about the fact that Python generally takes fewer lines of code to express the same thing. This implies fewer bugs for many projects. Teach the fundamental types, with difference

Re: python for everyday tasks

2013-11-22 Thread Ned Batchelder
On Friday, November 22, 2013 6:59:19 PM UTC-5, koch...@gmail.com wrote: > Hello, > > I'm about held a short course with the title indicated in the subjects. The > students are very experienced programmers of our company, with deep knoledge > on C, C++, C#, Perl and similar languages, but very li

Re: python for everyday tasks

2013-11-22 Thread Steven D'Aprano
On Fri, 22 Nov 2013 15:59:19 -0800, koch.mate wrote: > Hello, > > I'm about held a short course with the title indicated in the subjects. > The students are very experienced programmers of our company, with deep > knoledge on C, C++, C#, Perl and similar languages, but very limited, or > absolute

python for everyday tasks

2013-11-22 Thread koch . mate
Hello, I'm about held a short course with the title indicated in the subjects. The students are very experienced programmers of our company, with deep knoledge on C, C++, C#, Perl and similar languages, but very limited, or absolutely no knowledge on python. what would you teach to such a grou