Skip to main content
6 events
when toggle format what by license comment
Aug 29, 2018 at 0:28 comment added user132955 Thanks! With the isinstancetype(), if the Marhsel class had a property of 'type' as well as its 'name', and wanted to determine if its type was 1, would I then have three different classes and use them like 'Marshel(type_1)' and then isinstancetype(marshal, type_1) to determine if its type one? Or can I do something easier?
Aug 29, 2018 at 0:23 vote accept CommunityBot
Aug 28, 2018 at 15:36 history edited Sᴀᴍ Onᴇᴌᴀ CC BY-SA 4.0
correct spelling, formatting
Aug 28, 2018 at 12:09 history edited Ludisposed CC BY-SA 4.0
deleted 7 characters in body
Aug 28, 2018 at 12:05 comment added Gareth Rees According to PEP8, ALL_CAPS is only for constants; global variables should be named like functions, that is, in snake_case.
Aug 28, 2018 at 11:59 history answered Ludisposed CC BY-SA 4.0