[issue14130] memoryview: add multi-dimensional indexing and slicing

2014-02-10 Thread Ian Beaver
Ian Beaver added the comment: Its not multi-dimensional slicing to get a subset of objects as in Numpy, but more the ability to slice a buffer containing a multi-dimensional array as raw bytes. Buffer objects in Python2.7 are dimensionality naive so it works fine. You were correct that I

[issue14130] memoryview: add multi-dimensional indexing and slicing

2014-02-07 Thread Ian Beaver
Ian Beaver added the comment: If there is any way to get this implemented, it is needed. For one, the docs on memoryview make no mention that indexing and slicing doesn't work with multi-dimensional data which led me to believe it was supported until I tried using it. A second reas

[issue1230540] sys.excepthook doesn't work in threads

2009-08-03 Thread Ian Beaver
Ian Beaver added the comment: Instead of using decorators, this is a slightly simpler modification to the proposed workaround that allows for any subclassed run method to also be caught. def installThreadExcepthook(): """ Workaround for sys.excepthook thread bu

[issue1230540] sys.excepthook doesn't work in threads

2009-08-03 Thread Ian Beaver
Ian Beaver added the comment: I found that the workaround suggested doesn't work when you have a subclass of threading.Thread and you want to catch everything in the module that contains the class to a common log. Say you have a module with a socket server that spawns a thread on accep