You left out 3CPO, Dave.

Names with numerals are not unreasonable in some circumstances.

But programming languages are not a full spectrum of real life. They can have 
reserved words too so you may not be able to use "while" and if you choose to 
create a function that masks another, you cannot complain that you assumed the 
computer would be smart enough to figure out which one you wanted. Yes, some 
languages encourage multiple functions with the same name but different 
signatures. Bottom line is each has RULES and some serious SUGGESTIONS. It is 
what it is, not what you want it to be.
But although starting with a numeral is verboten for variable names, may I 
suggest that a relatively invisible character can make a name like _3CPO that 
will be allowed. But be careful as Python programs often have conventions on 
use of the underscore and don't even think about a dundering name like __init__ 
...


-----Original Message-----
From: dn <pythonl...@danceswithmice.info>
To: python-list@python.org
Sent: Sat, May 14, 2022 12:33 am
Subject: Re: .0 in name

This is not what @Avi menat by "silly variable names" but:

3D_position

2nd_floor_area

3M_PostIt_size

3rd_degree_polynomial

360_degree_view

12_hours_later

and ???
2_fast_2_furious

-- 
Regards,
=dn
-- 
https://mail.python.org/mailman/listinfo/python-list
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to