Opened 17 years ago

Closed 17 years ago

#5317 closed (duplicate)

__builtins__ isn't available in Jython

Reported by: Marty Alchin <gulopine@…> 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)

builtins.diff (1.2 KB ) - added by Marty Alchin <gulopine@…> 17 years ago.
Uses the __builtin__ module instead of the global __builtins__. This is fully compatible with CPython as well.

Download all attachments as: .zip

Change History (3)

by Marty Alchin <gulopine@…>, 17 years ago

Attachment: builtins.diff added

Uses the __builtin__ module instead of the global __builtins__. This is fully compatible with CPython as well.

comment:1 by Marty Alchin <gulopine@…>, 17 years ago

Has patch: set

comment:2 by Marty Alchin <gulopine@…>, 17 years ago

Resolution: duplicate
Status: newclosed

Sorry, I hadn't noticed #5239 where this was already covered.

Note: See TracTickets for help on using tickets.
Back to Top