Opened 17 years ago
Closed 17 years ago
#5317 closed (duplicate)
__builtins__ isn't available in Jython
Reported by: | Owned by: | Malcolm Tredinnick | |
---|---|---|---|
Component: | Internationalization | Version: | dev |
Severity: | Keywords: | jython | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Jython is unable to add _
to the built-in functions, because it doesn't have __builtins__
available. Instead, it requires an explicit import of the __builtin__
module to achieve the same effect.
Attachments (1)
Change History (3)
by , 17 years ago
Attachment: | builtins.diff added |
---|
comment:1 by , 17 years ago
Has patch: | set |
---|
comment:2 by , 17 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Sorry, I hadn't noticed #5239 where this was already covered.
Note:
See TracTickets
for help on using tickets.
Uses the
__builtin__
module instead of the global__builtins__
. This is fully compatible with CPython as well.