Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
59e19d57
Commit
59e19d57
authored
Jun 10, 1999
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a few more bugs to the doc string; reformatted existing bugs.
parent
6872025f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
8 deletions
+23
-8
Lib/pyclbr.py
Lib/pyclbr.py
+23
-8
No files found.
Lib/pyclbr.py
View file @
59e19d57
...
@@ -29,14 +29,29 @@ are recognized and imported modules are scanned as well, this
...
@@ -29,14 +29,29 @@ are recognized and imported modules are scanned as well, this
shouldn't happen often.
shouldn't happen often.
BUGS
BUGS
Continuation lines are not dealt with at all.
- Continuation lines are not dealt with at all.
While triple-quoted strings won't confuse it, lines that look like
- While triple-quoted strings won't confuse it, lines that look like
def, class, import or "from ... import" stmts inside backslash-continued
def, class, import or "from ... import" stmts inside backslash-continued
single-quoted strings are treated like code. The expense of stopping
single-quoted strings are treated like code. The expense of stopping
that isn't worth it.
that isn't worth it.
Code that doesn't pass tabnanny or python -t will confuse it, unless
- Code that doesn't pass tabnanny or python -t will confuse it, unless
you set the module TABWIDTH vrbl (default 8) to the correct tab width
you set the module TABWIDTH vrbl (default 8) to the correct tab width
for the file.'''
# ' <-- bow to font lock
for the file.
PACKAGE RELATED BUGS
- If you have a package and a module inside that or another package
with the same name, module caching doesn't work properly since the
key is the base name of the module/package.
- The only entry that is returned when you readmodule a package is a
__path__ whose value is a list which confuses certain class browsers.
- When code does:
from package import subpackage
class MyClass(subpackage.SuperClass):
...
It can't locate the parent. It probably needs to have the same
hairy logic that the import locator already does. (This logic
exists coded in Python in the freeze package.)
'''
# ' <-- bow to font lock
import
os
import
os
import
sys
import
sys
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment