boltons/TODO.rst

80 lines
2.4 KiB
ReStructuredText
Raw Normal View History

2013-03-09 10:19:46 +00:00
TODO
====
2019-05-02 16:45:30 +00:00
@tlog.wrap('critical', 'update campaign', verbose=True, inject_as='_act')
def update(self, _act, force=False):
Resulted in:
Traceback (most recent call last):
File "/home/mahmoud/virtualenvs/pacetrack/bin/pt", line 11, in <module>
load_entry_point('pacetrack', 'console_scripts', 'pt')()
File "/home/mahmoud/hatnote/pacetrack/pacetrack/cli.py", line 131, in main
cmd.run()
File "/home/mahmoud/projects/face/face/command.py", line 403, in run
ret = inject(wrapped, kwargs)
File "/home/mahmoud/projects/face/face/sinter.py", line 59, in inject
return f(**kwargs)
File "<sinter generated next_ d43eb353c6855dfc>", line 6, in next_
File "/home/mahmoud/hatnote/pacetrack/pacetrack/cli.py", line 138, in mw_cli_log
return next_()
File "<sinter generated next_ d43eb353c6855dfc>", line 4, in next_
File "/home/mahmoud/hatnote/pacetrack/pacetrack/cli.py", line 89, in update
return update_all(campaign_ids=posargs_, force=force, jsub=jsub, args_=args_)
File "/home/mahmoud/hatnote/pacetrack/pacetrack/cli.py", line 73, in update_all
cur_pt = load_and_update_campaign(campaign_dir, force=force)
File "/home/mahmoud/hatnote/pacetrack/pacetrack/update.py", line 622, in load_and_update_campaign
ptc.update(force=force)
File "<boltons.funcutils.FunctionBuilder-4>", line 2, in update
File "/home/mahmoud/virtualenvs/pacetrack/local/lib/python2.7/site-packages/lithoxyl/logger.py", line 298, in logged_func
return func_to_log(*a, **kw)
TypeError: update() got multiple values for keyword argument '_act'
2015-07-11 21:44:12 +00:00
dictutils
---------
- autoindexing list for dictionaries. As records get added, uses a
basic proportion-based heuristic to create subdictionaries as
indexes over the same data. Maybe automatically does a full-scan
option too.
- non-overwriting version of dict.update()
jsonutils
---------
* jsonl ignore blank lines
* jsonl add line number to error message
2013-04-13 02:08:01 +00:00
misc?
-----
- wrap_trace debug utility. Takes an object, looks at its dir, wraps
everything callable, with a hook. Needs an enable/disable flag.
2016-05-21 02:13:22 +00:00
- get/set/call/return/exception
- __slots__
2015-07-22 09:28:50 +00:00
- Top/Bottom singletons (greater than and less than everything)
2013-04-23 09:24:37 +00:00
cliutils
--------
2013-04-13 02:08:01 +00:00
- progress bar
2015-07-22 09:28:50 +00:00
- confirmation prompt (e.g., "Question? (Y/n)")
2013-04-23 09:24:37 +00:00
tbutils
-------
- fold repeated frames (recursive calls)
2013-04-13 02:08:01 +00:00
statsutils
----------
2013-03-09 10:19:46 +00:00
- dirty bit auto clears cache on property access
2013-04-23 09:24:37 +00:00
- geometric mean (2 ** sum(log(a, b, ...))
2017-03-21 01:15:03 +00:00
urlutils
--------
* improve usage of ``encoding`` arg (in parse_qsl for example)
* normalize unicode on input?