[issue20149] 'with instance' references class's __enter__ attribute rather than instance's

2014-01-06 Thread Daniel Grace
New submission from Daniel Grace: I was writing code for a class that uses one threading.RLock per object. For convenience, I wanted to be able to use that lock's context manager and acquire/release methods without referencing the lock directly, so I opted to take a shortcut by assigning

[issue15228] os.utime() docs not clear on behavior on nonexistant files

2012-06-30 Thread Daniel Grace
New submission from Daniel Grace thisgenericn...@gmail.com: The documentation for os.utime() at http://docs.python.org/py3k/library/os.html#os.utime states: Set the access and modified times of the file specified by path. [...] The effect is similar to running the Unix program touch