211 Commits

Author SHA1 Message Date
Ram Rachum
f585746da7 Bump version 0.2.1 2019-06-18 20:35:19 +02:00
Ram Rachum
78a539a2a5 Massaging some code 2019-06-18 20:34:25 +02:00
pikez
d7d3a80c16 Fix unittest for activating pysnooper 2019-06-18 20:34:25 +02:00
pikez
b4c8c16ed9 remove setup function and description 2019-06-18 20:34:25 +02:00
pikez
a807989923 Update docs for new feature 2019-06-18 20:34:25 +02:00
pikez
f1582fc16c add unittest for activate and setup snoop 2019-06-18 20:34:25 +02:00
pikez
08375e1a86 support activate and deactivate snooper by environment variable and setup snooper global or in-scope 2019-06-18 20:34:25 +02:00
Ram Rachum
3cc81f4b7a Bump version 0.2.0 2019-06-15 15:56:34 +02:00
Ram Rachum
7687ee1c26 Fix formatting 2019-06-15 15:56:34 +02:00
Ram Rachum
f793796ad3 Removing python_toolbox test dependency 2019-06-15 15:56:34 +02:00
Ram Rachum
43bde4b8bf Bump version to 0.1.0 0.1.0 2019-05-30 09:05:47 +03:00
Ram Rachum
80fa2c965c Update AUTHORS 2019-05-30 09:05:36 +03:00
Xiang Gao
5546468d60 Update utils.py 2019-05-30 09:03:52 +03:00
Xiang Gao
25dcc9ff62 sort list of dict keys 2019-05-30 09:02:11 +03:00
Xiang Gao
77e6c54456 remove numpy from test 2019-05-30 09:02:11 +03:00
Xiang Gao
71fcb14a99 improve README, and test dependency numpy 2019-05-30 09:02:11 +03:00
Xiang Gao
7c7e7eb81a Changes according to review 2019-05-30 09:02:11 +03:00
Xiang Gao
4a32e77b33 Add support for custom repr 2019-05-30 09:02:11 +03:00
Ram Rachum
22019f16ae Bump version 2019-05-20 13:53:51 +03:00
Ram Rachum
56f22f8ffe Fix unicode issues and add test, fix #124 2019-05-20 11:42:39 +03:00
Ram Rachum
e21a31162f Formatting 2019-05-20 11:15:57 +03:00
Ram Rachum
f12d40bbe4 Massage code, bump version 2019-05-14 17:48:37 +03:00
Alexander Bersenev
4e9c29cb58 move the type difference declaration to pycompat 2019-05-14 17:47:33 +03:00
Alexander Bersenev
a73ea14f58 get rid from six module 2019-05-14 17:47:33 +03:00
Alex Hall
d200457d63 Handle overwriting in FileWriter instead of Tracer 2019-05-11 20:18:37 +03:00
Ram Rachum
57283caf47 Bump version 2019-05-11 15:10:00 +03:00
Nikita Melentev
5698d6c3e2 Support generators 2019-05-11 15:09:37 +03:00
Ram Rachum
669863a65f Formatting 2019-05-11 14:29:57 +03:00
Ram Rachum
c7b5a2e515 Move docstring to class 2019-05-11 14:29:23 +03:00
Ram Rachum
9a2889d02f Bump version 2019-05-11 14:26:00 +03:00
Alexander Bersenev
bf52d30d91 Make vars_order line a bit shorter
Co-Authored-By: Alex Hall <alex.mojaki@gmail.com>
2019-05-11 14:25:47 +03:00
Alexander Bersenev
c976a185bb Join two lines in get_local_reprs 2019-05-11 14:25:47 +03:00
Alexander Bersenev
cb280323e5 Don't always place new variables before the modified ones 2019-05-11 14:25:47 +03:00
Alexander Bersenev
49f7dd504b Move one string of code down in get_local_reprs 2019-05-11 14:25:47 +03:00
Alexander Bersenev
472985a32c Simplify parameters sorting 2019-05-11 14:25:47 +03:00
Alexander Bersenev
3121842110 Make frame_to_local_reprs a dict
Co-Authored-By: Alex Hall <alex.mojaki@gmail.com>
2019-05-11 14:25:47 +03:00
Alexander Bersenev
ca90f55d5f Make order test more reliable on pypy 2019-05-11 14:25:47 +03:00
Alexander Bersenev
1cd2dffa13 Rewrite get_local_reprs to use sort explicitely 2019-05-11 14:25:47 +03:00
Alexander Bersenev
2a6b2b4299 Variable ordering test 2019-05-11 14:25:47 +03:00
Alexander Bersenev
17d8a41b3b Restore cell vars support in the ordered printing. 2019-05-11 14:25:47 +03:00
Alexander Bersenev
e4cd9974b2 Simplify the new and modified values reporting. 2019-05-11 14:25:47 +03:00
Alexander Bersenev
92ff55d2f1 Make predictable order of items if we don't know the proper order.
Also fix tests
2019-05-11 14:25:47 +03:00
Alexander Bersenev
f4117c1565 Preserve the local variables order in the output.
The variables are outputed in the declare order, instead of alphabetical.

This causes function arguments to be printed in the declare order.
All watched variables are outputted after declared ones.
2019-05-11 14:25:47 +03:00
Alex Hall
90a1946529 Newest python versions have different repr for exceptions, avoid altogether 2019-05-11 13:34:55 +03:00
Alex Hall
dea100b929 Add test for exception 2019-05-11 13:34:55 +03:00
Alex Hall
f6001ce3b1 Fix opcode lookup in Python 2 2019-05-11 13:34:55 +03:00
Alex Hall
d24f9e3846 Log exceptions nicely 2019-05-11 13:34:55 +03:00
Ram Rachum
4b77bb6000 Update AUTHORS some more 2019-05-11 10:38:40 +03:00
Ram Rachum
fa7fa1c1c5 Update AUTHORS 2019-05-11 10:33:19 +03:00
Alex Hall
f4bae3f1a9 Unify imports 2019-05-11 09:38:09 +03:00