To coincide with the coverage of pydoc, I have also enhanced the command line script
motw that shows the module of the week article for a given module. The plain text output is now generated using the docutils rst-to-text converter (instead of using the rst source as plain text). The pydoc pager is used to display the text, so long articles no longer scroll off of the screen right away.There is also a
motw() function available as a built-in after you import PyMOTW. That means you can use motw(module_name) from within the interactive interpreter just like from the command line.Enjoy!
2 comments:
Congratulations!
I've translated only 7 articles yet. However, I'm enjoying and it give me motivation for learning.
Someday, I'm looking forward to adopting motw() into Python as a standard library. :)
Congratulations Doug, and thank you :-)
Post a Comment