Why would anyone want to type: def variable = value
when they could just type: variable = value instead? Perhaps if I was being paid by the character typed... def my__really__good__variable = ( value ) # Assign value to my__really__good__variable. *wink* But all joking aside, what benefit would this "def" statement have? Why would I want to use it? On Sat, Oct 23, 2021 at 04:37:20PM -0000, blek blek wrote: > I was thinking of a "def" statement in Python. > Its really weird that it can define only method, since it means "define". It means *define function*, not just "define anything". We don't use def to define classes, or modules, or lists, or other objects. -- Steve _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/D6ALT2A35PJFD64ZBZTMOLRBVDW27AF6/ Code of Conduct: http://python.org/psf/codeofconduct/