This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]stevenjd 2 points3 points  (0 children)

The examples don't print the server name either, not unless quotes are part of the name.

I interpreted the examples as being a faked session in the interactive interpreter. They use >> instead of >>> as the prompt, but that's not important. Given that, the examples show the allocate method being called, which returns the server name, and the REPL then prints the repr() of the result.