[issue45756] mock raises exception when using a spec with an attribute that raises exception on access

2021-11-08 Thread Kevin Jamieson
New submission from Kevin Jamieson : In Python 3.8 and later creating a mock with a spec specifying an object containing a property that happens to raise an exception when accessed will fail, because _mock_add_spec calls getattr() on every attribute of the spec. This did not happen in Python

[issue45755] Mock spec with a specialized generic class does not mock class attributes

2021-11-08 Thread Kevin Jamieson
New submission from Kevin Jamieson : This worked in Python 3.6, but in Python 3.7 and later creating a mock with a spec specifying a subscripted generic class does not mock any of the attributes of the class, because those attributes are not returned by dir(). For example: # cat test.py

tkinter and widget placement after resizing

2009-05-07 Thread jamieson
Hello, I've got a fairly simple GUI that places pmw.EntryFields into a window starting in the upper left corner. When the first column is filled with these widgets I'd like to start a new column and continue placement, and so on. It is working now with the grid manager if I explicitly set the