You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the example for AC How-To is the method _pickle.Pickler.dump. I think it is not proper since it cannot cover all cases and makes readers confused. A more intuitive example should be considered to replace the current one.
I think it is not proper since it cannot cover all cases and makes readers confused. A more intuitive example should be considered to replace the current one.
Can you elaborate? Which cases are not covered, what is confusing, and what is a more intuitive example? :)
I think it is not proper since it cannot cover all cases and makes readers confused. A more intuitive example should be considered to replace the current one.
Can you elaborate? Which cases are not covered, what is confusing, and what is a more intuitive example? :)
(Our example docstring consists solely of a summary line, so the sample code doesn’t have to change for this step.)
In step 9, it says:
(_pickle.Pickler.dump has neither, so our sample is unchanged.)
I picked another function _asyncio.Future.add_done_callback and it can cover these steps rightly. Actually, I refered this function when I was learning AC.
Activity
gh-106799: pick another method to illustrate AC
erlend-aasland commentedon Jul 17, 2023
Can you elaborate? Which cases are not covered, what is confusing, and what is a more intuitive example? :)
littlebutt commentedon Jul 17, 2023
In the chapter Converting Your First Function, some steps don't have Sample. For example, in step 5, it says:
In step 9, it says:
I picked another function
_asyncio.Future.add_done_callbackand it can cover these steps rightly. Actually, I refered this function when I was learning AC.