Python Forum
meaning of -> syntax in function definition
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
meaning of -> syntax in function definition
#6
Thanks guys,

When I did a python --version it was showing me Python 3.9.7, so the original code should have worked. But I was running the code in VScode, so I guess it was using an earlier version.

In the settings of VSCode, I changed the interpreter from Python3 (which was defaulting to /usr/bin/python3 --version Python 3.8.10) to Python 3.9.7 and then the code ran fine in vscode also.

again, thank you for your help, very much appreciated!
Reply


Messages In This Thread
RE: meaning of -> syntax in function definition - by DrakeSoft - Apr-09-2022, 07:45 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  class definition and problem with a method HerrAyas 2 433 Apr-01-2024, 03:34 PM
Last Post: HerrAyas
  Unable to understand the meaning of the line of code. jahuja73 0 452 Jan-23-2024, 05:09 AM
Last Post: jahuja73
  mutable argument in function definition akbarza 1 622 Dec-15-2023, 02:00 PM
Last Post: deanhystad
  error occuring in definition a class akbarza 3 923 Nov-26-2023, 09:28 AM
Last Post: Yoriz
  determine parameter type in definition function akbarza 1 707 Aug-24-2023, 01:46 PM
Last Post: deanhystad
  [split] Explain the python code in this definition Led_Zeppelin 1 835 Jan-13-2023, 10:20 PM
Last Post: deanhystad
  [Solved] unkown (to me) function def parm "name1:name2" syntax. MvGulik 5 1,256 Nov-11-2022, 11:21 AM
Last Post: MvGulik
  Explain the python code in this definition Led_Zeppelin 1 1,212 Oct-27-2022, 04:04 AM
Last Post: deanhystad
  Csv writer meaning of quoting mg24 2 1,292 Oct-01-2022, 02:16 PM
Last Post: Gribouillis
Star I'm getting syntax error while using input function in def. yecktmpmbyrv 1 2,095 Oct-06-2021, 09:39 AM
Last Post: menator01

Forum Jump:

User Panel Messages

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