Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Get the module a function is defined in #310

@TransGirlCodes

Description

@TransGirlCodes

I'm getting my workplace to orgaize its code into modules and using box, and I was going to use the lifecycle package to help with deprecations and such, but I'm finding using lifecycle functions inside functions defined in modules to cause errors during deprecation warnings - it tries to do some parent.call sort of stuff to detect the package of the function that calls the lifecycle deprecation function. Rather than try and persuade the authors to support modules, I thought perhaps a simple box based module that implements similar functionality would be a cool project.

The big question I have as to whether this is possible is, is there a way to obtain the name of the module that a function is defined in?

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions