http://docs.python.org/3/library/binascii.html#binascii.b2a_...
In Python function description is often just unscannable short blob of prose.
edit: I feel like the real life examples in the PHP docs are very nice, but not really missing in Python (there are a lot examples in the Python documentation but not for such trivial functions). In python you just start the interactive interpreter and do "import module", "module.function(xyz)" and you see exactly what's going on. It's then a copy&paste away from your shell to your editor.
It's bit strange strange that you gave undocumented function as an example of how PHP functions are documented. :-)
This difference between Python docs and PHP docs is just the thing I noticed when I started having fun with Python which is btw awesome language though finding which lib to use for given task sometimes is hard.
Good thing to do to find out what python function does is running help(module_name.function_name) in interpreter.
Everything just felt easier, many task where you had to repeat yourself got abstracted away (forms) and the documentation was just awesome one of the main selling points at the time and it still is.
The ORM took me a while to get used to it but after the initial hump i learned it was very powerful and easy to use.
Overall my efficiency went up a lot i was able to prototype in days instead of weeks for feature rich applications. It made me able to toy around with ideas and the first time in my life i had this experience that i hadn't had to fight the framework to get something i wanted.
And you can express yourself so much better in python than php and till today i enjoy the community which is nice and helpful across the board.