John Plevyak

Results 13 issues of John Plevyak

``` class A: x = 2 def __init__(self): self.x = self.x + 1 print(A().x) ``` python3 says "3" codon says: x.py:4:9-13: error: 'A' object has no attribute 'x' ╰─ x.py:5:7-12:...

``` class A: n = 2 class B(A): o = 3 print(B().n) ``` python3 produces '3' while codon produces: error: 'B' object has no attribute 'n' If I rewrite it...

``` class A: x = 2 print(x) print(A().x) ``` It does not like the print(x) statement in the class definition.