Skip to content

How to deal with is? #64

Open
Open
@emiel

Description

@emiel

I have run in to the following:

p = Proxy(..)

if p is None:
  """Always false"""

I don't know that there is a way to proxy is (identity) but it would be nice to have a way to ensure the proxy is evaluated.

Now I'm using:

p = Proxy(..)

if p.__wrapped__ is None:
    pass

But that looks a bit ugly? Any suggestions? Perhaps something in "utils.py" to force evaluation?

Thanks!

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