Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

Python Outline does not seem to correctly understand a 'pass' statement. #2

Open
allanderek opened this issue Apr 1, 2016 · 1 comment

Comments

@allanderek
Copy link
Contributor

Attached is a picture of this bug. Note that in the source code there is an class definition which has a single 'pass' statement:

class NoPendingGamesException(Exception):
    pass`

In the outline view however the subsequent method definitions are attached to the NoPendingGamesException class, but should not be.

c9-python-pass-outline-bug-01-04-2016

@allanderek
Copy link
Contributor Author

Update: Sorry, it's not really got anything to do with pass statements. It is simply if you have method definitions at the top-level scope. In this case the top-level definitions are "captured" by the most recent class definition.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant