2020-04-12

mindstalk: (Default)
I was writing some code, in a file called 'code.py'. I tried adding doctests and running them; this would hang, or complain about circular imports. It seems that 'import doctest' will run a file in the directory called 'code.py' -- e.g. make a 'code.py' file like

while True:
    pass


start python, import doctest, and watch it hang.

This seems poor, and undocumented. Probably I should file a bug later.

I guess I have a new candidate for interview questions about problem solving.

Profile

mindstalk: (Default)
mindstalk

July 2025

S M T W T F S
  12345
6789101112
13141516171819
20212223242526
272829 3031  

Page Summary

Most Popular Tags

Expand Cut Tags

No cut tags

Style Credit

Page generated 2025-08-14 19:39
Powered by Dreamwidth Studios