Python Forum
Python 3 Function Annotations
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python 3 Function Annotations
#7
(Mar-13-2017, 03:09 PM)charlesprince Wrote: why it's not available in python or else is there any way to make it. please let me know

Python follows a different philosophy. If it has the attributes/methods of the required object, you let it work. That's what allows the sum function to handle integers, strings, and lists. You can type check if you want, but you have to write it yourself. See my previous post.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
Python 3 Function Annotations - by charlesprince - Feb-28-2017, 08:03 AM
RE: Python 3 Function Annotations - by stranac - Feb-28-2017, 10:35 AM
RE: Python 3 Function Annotations - by stranac - Mar-01-2017, 06:21 AM
RE: Python 3 Function Annotations - by ichabod801 - Mar-01-2017, 11:08 PM
RE: Python 3 Function Annotations - by ichabod801 - Mar-14-2017, 12:41 AM
RE: Python 3 Function Annotations - by wavic - Mar-14-2017, 03:01 AM
RE: Python 3 Function Annotations - by Larz60+ - Mar-14-2017, 05:43 AM

Forum Jump:

User Panel Messages

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