elijahqi
575e78426f
Merge 70f69a5cb7 into 4be5c156ff
2026-06-21 07:42:19 -10:00
Ram Rachum
4be5c156ff
Include kigland in AUTHORS
2026-06-08 22:44:59 +03:00
kigland
19f39a00a4
Add generator close regression test
2026-06-08 11:57:40 -07:00
kigland
d5257380b2
Guard against f_lasti == -1 when detecting exception returns
...
The tracer reads co_code[frame.f_lasti] to decide whether a 'return' event was
caused by an exception. f_lasti can be -1 (e.g. a frame that hasn't executed
an instruction), and co_code[-1] reads the last byte -- the wrong opcode --
which can misreport a normal return as "Call ended by exception". Extract the
check into call_ended_by_exception() and return False when f_lasti < 0.
2026-06-08 11:57:40 -07:00
Ram Rachum
f82c4607c5
Add CITATION.cff
2026-05-02 11:42:25 +03:00
Ram Rachum
4bff1205c8
Format ExceptionGroup gracefully on Python 3.11+
2026-03-08 12:51:15 +02:00
Ram Rachum
90b2e96ef0
Add support for Python 3.12-3.15 in setup.py classifiers
2026-03-07 13:22:09 +02:00
Ram Rachum
0561a89c0e
Bump version to 1.2.3
2025-05-31 16:21:24 -07:00
Ram Rachum
05212d3092
Don't write color escape characters to file
2025-05-31 16:21:06 -07:00
Ram Rachum
3c0f9eb65a
Include Andrej730 in AUTHORS
2025-04-10 23:56:22 +03:00
Ram Rachum
eee41b20f8
Bump version to 1.2.2
2025-04-10 23:54:31 +03:00
Ram Rachum
2931e1374a
Upgrade Wing to 11
2025-04-10 23:53:59 +03:00
Andrej730
8bf06d25a1
Allow forcing color output on Windows using color=True
2025-04-10 23:52:31 +03:00
Ram Rachum
57472b4677
Bump version to 1.2.1
2024-09-09 10:41:35 +03:00
Ram Rachum
d91fd2b255
Update authors
2024-09-09 10:41:10 +03:00
sizhky
05f1359427
Compatibility with jupyter notebooks
2024-09-09 10:39:53 +03:00
Ram Rachum
ac74c8f020
Upgrade to Wing 10
2024-09-09 10:36:47 +03:00
Ram Rachum
f2c60de87f
Fix citation
2024-01-13 09:27:19 -08:00
Ram Rachum
0b96becd1b
Change tabs to spaces
2024-01-06 12:07:35 +02:00
Ram Rachum
591341e973
Add citation
2024-01-06 12:04:17 +02:00
Ram Rachum
206ae83b4f
Fix title formatting
2024-01-06 12:02:49 +02:00
Ram Rachum
8c35d81835
Add Python 3.12 to trove classifiers
2023-07-15 16:04:46 +01:00
Ram Rachum
23d3e43f0e
Bring back setup.py for universal wheels
2023-07-15 16:02:46 +01:00
Ram Rachum
e1a927311b
Version bump
2023-07-15 15:58:35 +01:00
Ram Rachum
60775ff71f
Use Thread.name instead of deprecated getName
2023-07-15 17:57:35 +03:00
Ram Rachum
4224cf9694
Python 3.12 compat: Include new return opcodes
2023-07-15 17:53:09 +03:00
Elijah Qi
70f69a5cb7
Add infinite depth support for function call tracing
...
This commit adds a new feature that enables infinite depth support for function call tracing in pysnooper. The test_infinite_depth_support test case has been added to verify the correct behavior of the feature. The test case covers the case of tracing a recursive function call with unlimited depth and checks the output against the expected values. The feature works by setting the depth parameter to float('inf') in the pysnooper.snoop function.
2023-04-15 23:46:27 -04:00
Elijah Qi
c84286c189
test_infinite_depth_support.py
2023-04-15 23:00:13 -04:00
Elijah Qi
8f5c2e3f85
Merge branch 'master' of github.com:elijahqi/PySnooper
2023-04-15 22:58:46 -04:00
AndreaYanglq
93eecf679e
add test_depth_inf
2023-04-15 22:57:04 -04:00
Elijah Qi
24a83765dd
Title: Replace deprecated getName() method with name attribute
...
Body:
This commit resolves a DeprecationWarning in the tracer.py file. The deprecated getName() method, which is used to get the name of the current_thread object, has been replaced with the recommended name attribute.
Changes:
- Updated line 473 in tracer.py to use current_thread.name instead of current_thread.getName()
With this change, the deprecation warning will no longer appear when running tests, and the code will be compatible with future releases of Python that may remove the deprecated method.
2023-04-15 22:22:08 -04:00
Elijah Qi
b9f35dbcb2
Modify depth to depth_iterator to support float('inf') and also break if _frame_candidate is internal_frame
2023-04-15 22:11:25 -04:00
Ram Rachum
caf4ec584a
Upgrade to Wing 9
2023-04-12 12:10:26 +03:00
Lumir Balhar
231969074e
Add pyproject.toml and switch setup.py to setup.cfg
2023-01-03 15:15:29 +02:00
Ram Rachum
1ad8ae08b0
Add Trove classifier for Python 3.11
2022-12-11 15:01:28 +02:00
Ram Rachum
7ca28af18d
Update authors
2022-04-02 16:07:32 +01:00
Ram Rachum
f3d7f39af4
Bump version
2022-04-02 16:02:58 +01:00
Lukas Klenk
4e277a5a1f
Add support for Ansible zipped source files ( #226 )
...
Add support for Ansible zipped source files
2022-04-02 17:58:48 +03:00
Ram Rachum
bea7c7a965
Bump version to 1.1.0
2022-01-14 20:37:05 +02:00
Ram Rachum
0f1e67b26b
Show colored output
2022-01-14 20:36:54 +02:00
Ram Rachum
31bfc637bc
Bump version to 1.0.0
2021-09-11 12:46:36 +03:00
Ram Rachum
8b0d6db21a
Bump version to 0.5.0
2021-05-19 11:23:53 +03:00
Lumir Balhar
219bfc98bf
Allow Python 3.10 to fail until we have a beta on Travis
2021-05-19 11:21:58 +03:00
Lumir Balhar
1c94b1af52
Make tests compatible with Python 3.10
2021-05-19 11:21:58 +03:00
Lumir Balhar
c539cbc520
Improve tests/CI configuration
...
- Add Python 3.10
- Fix DeprecationWarning for pytest and --strict option
- Install typing for Python 3.4
- Allow passing arguments to pytest command in tox
2021-05-19 11:21:58 +03:00
Lumír 'Frenzy' Balhar
03a51fd897
Add Fedora Linux to installation options
2021-05-14 21:46:34 +03:00
Ram Rachum
5abece033b
Remove Python 3.4 tests from Travis, dependency error
2021-05-09 14:59:03 +03:00
Ram Rachum
3469baccbb
Revert "Readme: Remove deleted Reddit page"
...
This reverts commit 887f82805f .
2021-05-09 14:48:38 +03:00
Ram Rachum
887f82805f
Readme: Remove deleted Reddit page
2021-04-04 15:13:54 +03:00
Ram Rachum
a5184c30e2
Bump version to 0.4.3
2021-02-27 11:14:08 +02:00