[issue43380] Assigning function parameter to class attribute by the same name

2021-03-02 Thread jennydaman
jennydaman added the comment: Yes sorry that was a typo -- ___ Python tracker <https://bugs.python.org/issue43380> ___ ___ Python-bugs-list mailing list Unsub

[issue43380] Assigning function parameter to class attribute by the same name

2021-03-02 Thread jennydaman
jennydaman added the comment: # Example Consider these three examples, which are theoretically identical ``` a = 4 class A: a = a print(A.a) def createB(b): class B: z = b print(B.z) createB(5) def createD(d): class D: d = d print(D.d

[issue43380] Assigning function parameter to class attribute by the same name

2021-03-02 Thread jennydaman
New submission from jennydaman : # Example Consider these three examples, which are theoretically identical ``` a = 4 class A: a = a print(A.a) def createB(b): class B: z = b print(B.z) createB(5) def createD(D): class D: d = d print(D.d