Python Forum
How to correct, save, run with ptpython
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to correct, save, run with ptpython
#10
(May-29-2018, 04:43 PM)snippsat Wrote: self is always lowercase.

Formally, you can write it the way you want - or replace with any other name, since self is just a convention. Of course, that would be a very bad idea Naughty , and it will piss off any Pythonista reading that blasphemy Evil - but it will work
Test everything in a Python shell (iPython, Azure Notebook, etc.)
  • Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
  • Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
  • You posted a claim that something you did not test works? Be prepared to eat your hat.
Reply


Messages In This Thread
How to correct, save, run with ptpython - by sylas - May-29-2018, 04:28 PM
RE: How to correct, save, run with ptpython - by volcano63 - May-30-2018, 08:40 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  how to save to multiple locations during save cubangt 1 659 Oct-23-2023, 10:16 PM
Last Post: deanhystad
  How to handle "History" in ptpython sylas 4 4,171 Oct-07-2018, 11:09 PM
Last Post: Larz60+
  Cannot use functions at the bottom of ptpython sylas 1 2,285 Aug-29-2018, 12:02 PM
Last Post: sylas
  Error in a file and problem with ptpython sylas 7 4,415 Aug-25-2018, 10:17 AM
Last Post: sylas
  ptpython docstring metulburr 4 4,594 Nov-17-2017, 01:36 AM
Last Post: metulburr

Forum Jump:

User Panel Messages

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