Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Methods
#2
You already wrote two methods (init and str), although they are special class methods. But you proceed exactly the same way with writing your methods. Just give them proper names like mark_read() and is_long(), or anything you prefer.
I just stumbled upon this
https://www.python.org/dev/peps/pep-0008...-variables
you may use it to follow a naming convention for coding in Python.
Reply


Messages In This Thread
Methods - by infernoblaze - Jan-19-2017, 06:20 AM
RE: Methods - by j.crater - Jan-19-2017, 07:36 AM
RE: Methods - by infernoblaze - Jan-19-2017, 07:37 AM
RE: Methods - by j.crater - Jan-19-2017, 07:44 AM
RE: Methods - by infernoblaze - Jan-19-2017, 08:15 AM
RE: Methods - by wavic - Jan-19-2017, 07:53 AM
RE: Methods - by buran - Jan-19-2017, 08:07 AM
RE: Methods - by buran - Jan-19-2017, 08:25 AM
RE: Methods - by infernoblaze - Jan-19-2017, 10:05 AM
RE: Methods - by buran - Jan-19-2017, 12:44 PM
RE: Methods - by infernoblaze - Jan-19-2017, 03:04 PM
RE: Methods - by j.crater - Jan-19-2017, 03:08 PM
RE: Methods - by infernoblaze - Jan-19-2017, 03:10 PM
RE: Methods - by buran - Jan-19-2017, 03:36 PM

Forum Jump:

User Panel Messages

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