Skip to content

Allow monkey patching on builtin types #10

Description

@cgccuser

Currently, if you try something like str.foo = 3, you get this:

Traceback (most recent call last):
  File ".code.tio", line 1, in <module>
    str.foo = 3
TypeError: can't set attributes of built-in/extension type 'str'

This "feature" may or may not be extremely hard to implement.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions