Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add support for method on instance as function name with '.' separator syntax#74

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
ksmoore17 wants to merge1 commit intoHDE:master
base:master
Choose a base branch
Loading
fromksmoore17:nested-functions

Conversation

ksmoore17
Copy link
Contributor

This allows providinginstance.method to the -f flag to indicate that the function is nested in another object.

It could also allow multiple levels of nesting as it loops into the '.' separated names to resolve the object.

Resolves#73

Copy link
Collaborator

@freedomofkeimafreedomofkeima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Hi, thank you for the pull request!

Sorry for the late reply... So far it looks good, could you also update the README file about this specific usage?

Thank you!

@ksmoore17
Copy link
ContributorAuthor

Sorry for ghosting. I've worked with this more and I don't think it's a good pattern. Specifically, the python extension for the serverless framework implements similar behavior, except that it will go into nested modules, but not into nested python objects. I think this library handles that.

Either way I've found that a more standard approach just forwards the invocation from a handler.py type file to the desired method, if anyone is interested in doing something similar with grouping lambdas' handling logic in a python class.

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

@freedomofkeimafreedomofkeimafreedomofkeima approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Instance method as function name in command line
2 participants
@ksmoore17@freedomofkeima

[8]ページ先頭

©2009-2025 Movatter.jp