-
Notifications
You must be signed in to change notification settings - Fork 49
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
Example code in the documentation does not work #153
Comments
Examples further down don't work either. Who wrote these? ಠ_ಠ |
Ok, I see why the examples don't work as-is. They would work from a modern IPython shell but that isn't a valid excuse. What happened here Is these documents were updated from old, legacy syntax. The biggest issue I see here is the unexpected keyword argument is interesting, and is a distinct failure. I will need to investigate why that doesn't work, as far as I am aware I didn't need to touch that part of the example. It appears async def message(self, target, message): I will set aside some time this week to review these examples. Optimally these examples would be in their own files and somehow imported into the built docs, so they can actually be tested (which is the subject of #78 ) |
In the asynchronous example, the Thanks for addressing it. |
Thats unfortunate. Perhaps a clean rewrite of these is in order. I have noticed similar issues in other modules of pydle where names are referenced before assignment and similar errors and have been fixing them as I have become aware. This is likely another case. As time allows I will investigate these examples and come up with a remediation. |
Sounds good. I'd open a PR myself, but I'm invested in another project atm. |
On this page
This bit of code
fails with
and the
on_join
bits in the following examples fail withThe text was updated successfully, but these errors were encountered: