Opened 8 years ago

Closed 8 years ago

#5317 closed (duplicate)

__builtins__ isn't available in Jython

Reported by: Marty Alchin <gulopine@…> Owned by: mtredinnick
Component: Internationalization Version: master
Severity: Keywords: jython
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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@…> 8 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)

Changed 8 years ago by Marty Alchin <gulopine@…>

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

comment:1 Changed 8 years ago by Marty Alchin <gulopine@…>

  • Has patch set
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 8 years ago by Marty Alchin <gulopine@…>

  • Resolution set to duplicate
  • Status changed from new to closed

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

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