Skip to content

Feature request: Add support for :refer option in import #1154

Closed
@ikappaki

Description

@ikappaki

Hi,

I’d like to request support for the :refer option, including :refer :all if feasible, when importing Python modules into a namespace.

This feature would improve interop usage with Python libraries, mirroring the common Python pattern of using from abc import xyz , which is especially handy when trying to adapt some existing python code into Basilisp.

Contrived Examples using Python standard lib

(import [math :refer [sqrt pi])

(import [os.path :refer [join basename])

(import [datetime :refer :all])

Thanks

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions