Changelog History
Page 5
-
v1.0.0 Changes
December 24, 2015- Implemented fast tracer and query objects in Cython. MAY BE BACKWARDS INCOMPATIBLE
To force using the old pure-python implementation set the
PUREPYTHONHUNTER
environment variable to non-empty value.โ Added filtering operators:
contains
,startswith
,endswith
andin
. Examples:Q(module_startswith='foo'
will match events fromfoo
,foo.bar
andfoobar
.Q(module_startswith=['foo', 'bar']
will match events fromfoo
,foo.bar
,foobar
,bar
,bar.foo
andbaroo
.Q(module_endswith='bar'
will match events fromfoo.bar
andfoobar
.Q(module_contains='ip'
will match events fromlipsum
.Q(module_in=['foo', 'bar']
will match events fromfoo
andbar
.Q(module_regex=r"(re|sre.*)\b") will match events from
re,
re.foobar,
srefoobarbut not from
repr``.
โ Removed the
merge
option. Now when you callhunter.trace(...)
multiple times only the last one is active. BACKWARDS INCOMPATIBLEโ Remove the
previous_tracer
handling. Now when you callhunter.trace(...)
the previous tracer (whatever was insys.gettrace()
) is disabled and restored whenhunter.stop()
is called. BACKWARDS INCOMPATIBLE๐ Fixed
CodePrinter
to show module name if it fails to get any sources.
-
v0.6.0 Changes
October 10, 2015- Added a
clear_env_var
option on the tracer (disables tracing in subprocess). - โ Added
force_colors
option on :class:hunter.actions.VarsPrinter
and :class:hunter.actions.CodePrinter
. - ๐ Allowed setting the
stream
to a file name (option on :class:hunter.actions.VarsPrinter
and :class:hunter.actions.CodePrinter
). - โฌ๏ธ Bumped up the filename alignment to 40 cols.
- ๐ If not merging then
self
is not kept as a previous tracer anymore. Closes#16 <https://github.com/ionelmc/python-hunter/issues/16>
_. - ๐ Fixed handling in VarsPrinter: properly print eval errors and don't try to show anything if there's an AttributeError.
Closes
#18 <https://github.com/ionelmc/python-hunter/issues/18>
_. - โ Added a
stdlib
boolean flag (for filtering purposes). Closes#15 <https://github.com/ionelmc/python-hunter/issues/15>
_. - ๐ Fixed broken frames that have "None" for filename or module (so they can still be treated as strings).
- Corrected output files in the
install_lib
command so that pip can uninstall the pth file. This only works when it's installed with pip (sadly,setup.py install/develop
andpip install -e
will still leave pth garbage onpip uninstall hunter
).
- Added a
-
v0.5.1 Changes
April 15, 2015- ๐ Fixed :attr:
hunter.event.Event.globals
to actually be the dict of global vars (it was just the locals).
- ๐ Fixed :attr:
-
v0.5.0 Changes
April 06, 2015- ๐ Fixed :func:
hunter.And
and :func:hunter.Or
"single argument unwrapping". - Implemented predicate compression. Example:
Or(Or(a, b), c)
is converted toOr(a, b, c)
. - ๐ Renamed :attr:
hunter.event.Event.source
to :attr:hunter.event.Event.fullsource
. - โ Added :attr:
hunter.event.Event.source
that doesn't do any fancy sourcecode tokenization. - ๐ Fixed :attr:
hunter.event.Event.fullsource
return value for situations where the tokenizer would fail. - ๐ฐ Made the print function available in the
PYTHONHUNTER
env var payload. - Added a repr for :class:
hunter.event.Event
.
- ๐ Fixed :func:
-
v0.4.0 Changes
March 29, 2015- Disabled colors for Jython.
Contributed by Claudiu Popa in
#12 <https://github.com/ionelmc/python-hunter/pull/12>
_. - ๐ Test suite fixes for Windows.
Contributed by Claudiu Popa in
#11 <https://github.com/ionelmc/python-hunter/pull/11>
_. - โ Added an introduction section in the docs.
- Implemented a prettier fallback for when no sources are available for that frame.
- Implemented fixups in cases where you use action classes as a predicates.
- Disabled colors for Jython.
Contributed by Claudiu Popa in
-
v0.3.1 Changes
March 29, 2015- ๐ Forgot to merge some commits ...
-
v0.3.0 Changes
March 29, 2015- โ Added handling for internal repr failures.
- ๐ Fixed issues with displaying code that has non-ascii characters.
- ๐ Implemented better display for
call
frames so that when a function has decorators the function definition is shown (instead of just the first decorator). See:#8 <https://github.com/ionelmc/python-hunter/issues/8>
_.
-
v0.2.1 Changes
March 28, 2015- โ Added missing color entry for exception events.
- โ Added :attr:
hunter.event.Event.line
property. It returns the source code for the line being run.
-
v0.2.0 Changes
March 27, 2015- โ Added color support (and
colorama
as dependency). - โ Added support for expressions in :class:
hunter.actions.VarsPrinter
. ๐ฅ Breaking changes:
- Renamed
F
to :func:hunter.Q
. And :func:hunter.Q
is now just a convenience wrapper for :class:hunter.predicates.Query
. - Renamed the
PYTHON_HUNTER
env variable toPYTHONHUNTER
. - Changed :class:
hunter.predicates.When
to take positional arguments. - Changed output to show 2 path components (still not configurable).
- Changed :class:
hunter.actions.VarsPrinter
to take positional arguments for the names.
- Renamed
๐ Improved error reporting for env variable activation (
PYTHONHUNTER
).๐ Fixed env var activator (the
.pth
file) installation withsetup.py install
(the "egg installs") andsetup.py develop
/pip install -e
(the "egg links").
- โ Added color support (and
-
v0.1.0 Changes
March 22, 2015- ๐ First release on PyPI.