-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve handling of default values (#336)
- Disallow numbers where the string representation is >7 characters long - Disallow strings or bytes where the string representation is >50 characters long - Allow a small number of special constants from the `sys` module, such as `sys.maxsize` and `sys.executable` I've also changed a bunch of methods so that they're now functions. These are all pure, stateless functions, so there's no need to have them inside the body of the `PyiVisitor` class.
- Loading branch information
1 parent
cbc447e
commit 29ba4e3
Showing
4 changed files
with
138 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters