File: TODO.rst

package info (click to toggle)
python-boltons 25.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,236 kB
  • sloc: python: 12,133; makefile: 159; sh: 7
file content (79 lines) | stat: -rw-r--r-- 2,504 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
TODO
====

@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'

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

misc?
-----

- wrap_trace debug utility. Takes an object, looks at its dir, wraps
  everything callable, with a hook. Needs an enable/disable flag.
  - get/set/call/return/exception
  - __slots__
- Top/Bottom singletons (greater than and less than everything)


cliutils
--------

- progress bar
- confirmation prompt (e.g., "Question? (Y/n)")

tbutils
-------

- fold repeated frames (recursive calls)

statsutils
----------

- dirty bit auto clears cache on property access
- geometric mean (2 ** sum(log(a, b, ...))

urlutils
--------

* improve usage of ``encoding`` arg (in parse_qsl for example)
* normalize unicode on input?