First, allow me to begin with saying, I'm a fairly novice Python user. I've been learning over the last year and loving it, but I have no programming background whatsoever. I realize there are (and have been) instances where a CS background really would have helped. I'm hoping this isn't one of those 'obvious' cases.
I was creating a class when I started to write something resembling the following snippet:
I realized that I was referencing self.morestuff before I had instantiated it. To run this results in an AttributeError: test instance has no attribute 'morestuff'.
My question is should the PyCharm editor have caught this? Normally if I refer to a variable before instantiating it, the editor complains but in this case the . Am I correct in assuming this is a bug? If so, I'll submit it to YouTrack.