Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python as First Langauge
#11
Thanks for the hint to Type Annotations. I missed that till now. It is used in none of the books I looked into or in sample code. For a guy like me that has written tens of thousands of lines of code in strictly typed languages, it looks like an absolute necessity.

And yes, my Spyder environment issues the warning message that w is assigned (w=8) but never used, which is correct. The example is not a good one because it is the same in Java and Python. You can change any element of a compound object, but the object itself. You can achieve that only in C/C++. It was just an example of a weak point in Zeller's arguments.

Thanks so far. Have not decided yet.
Reply


Messages In This Thread
Python as First Langauge - by mga010 - Jul-02-2020, 10:09 AM
RE: Python as First Langauge - by Larz60+ - Jul-02-2020, 11:03 AM
RE: Python as First Langauge - by Gribouillis - Jul-02-2020, 11:26 AM
RE: Python as First Langauge - by ndc85430 - Jul-02-2020, 11:53 AM
RE: Python as First Langauge - by mga010 - Jul-02-2020, 03:04 PM
RE: Python as First Langauge - by Larz60+ - Jul-02-2020, 03:16 PM
RE: Python as First Langauge - by Gribouillis - Jul-02-2020, 06:34 PM
RE: Python as First Langauge - by perfringo - Jul-02-2020, 07:39 PM
RE: Python as First Langauge - by mga010 - Jul-04-2020, 02:33 PM
RE: Python as First Langauge - by snippsat - Jul-04-2020, 10:52 PM
RE: Python as First Langauge - by mga010 - Jul-05-2020, 05:34 PM
RE: Python as First Langauge - by voidptr - Jul-25-2020, 04:59 AM
RE: Python as First Langauge - by Larz60+ - Jul-25-2020, 02:00 PM
RE: Python as First Langauge - by mga010 - Jul-27-2020, 04:03 PM
RE: Python as First Langauge - by Gribouillis - Jul-27-2020, 04:30 PM
RE: Python as First Langauge - by mga010 - Jul-28-2020, 04:46 PM
RE: Python as First Langauge - by Larz60+ - Jul-29-2020, 12:08 AM
RE: Python as First Langauge - by voidptr - Aug-02-2020, 07:02 AM
RE: Python as First Langauge - by millpond - Jul-31-2020, 06:49 AM
RE: Python as First Langauge - by elenaflorence87 - Jul-31-2020, 12:20 PM
RE: Python as First Langauge - by anne - Jul-31-2020, 06:06 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020