-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Python example class name #1421
Fix Python example class name #1421
Conversation
@@ -212,9 +212,9 @@ $ touch reverse.py | |||
In that file, add the following: | |||
|
|||
```python | |||
from pulsarfunction import pulsar_function | |||
from pulsar import Function |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be needed
|
||
class Reverse(pulsar_function.PulsarFunction): | ||
class Reverse(Function): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
class Reverse:
or
class Reverse(Object):
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, you're right. It won't be needed in this case. I was previously using a context object in this function but decided against it.
|
||
class Reverse(pulsar_function.PulsarFunction): | ||
class Reverse(Function): | ||
def __init__(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can get rid of __init__
as well
retest this please |
The Python interface for Pulsar Functions has changed, and the current Pulsar Functions quick start needs to be changed to reflect this.