ferringb

Results 35 issues of ferringb

This relates to #762; in that, one must hardcode certain eclasses into pkgcheck. The source being examined, it already knows what it's doing and where it may cause QA issues....

Slotting is both faster in access (drastically), [faster in pickling](https://github.com/pkgcore/snakeoil/issues/117), and simplifies freezing which would prevent code mistakes [mutating the results](https://github.com/pkgcore/pkgcheck/commit/4589289e7689d2cd79c89df0e0da5d41e1b9a5d3) during consumption. The point of this is more to...

enhancement

The invocation is below; this is being ran against a github mirror clone of gentoo-x86. Admittedly with my snakeoil and pkgcore modifications, but nothign in them is involved here (I...

Argparse flow is first value conversion (validate and convert), then action invocation (store it). `ParseNonblockingStdin` is an action which is actually a `type` arg- it converts `-` into a stream...

enhancement

Every codebase at one point winds up with factory registries, or instance maps, etc. W/in the ecosystem we have the following registries exist- even if people may not call them...

The api of that predates `subprocess` (literally, py2.2 or py2.3); there are things I did in there that subprocess still lacks (the FD juggling for pipes for example) that will...

refactor

See https://github.com/pkgcore/snakeoil/blob/47d756214d27477d23bdbccca6a95b29d77345a7/src/snakeoil/deprecation.py ; the usage of this is actually straight forward. For snakeoil we create our project registry in `_internals` and then just do thus: https://github.com/pkgcore/snakeoil/commit/47d756214d27477d23bdbccca6a95b29d77345a7 . This annotates all...

documentation

Py3k supports pickling directly from the slot structure of a class, without requiring a `__getstate__` override. Thus https://github.com/pkgcore/snakeoil/blob/d3438ebf23b639093dd0d432f9f9fe88040eefc5/src/snakeoil/klass/__init__.py#L420-L430 is unneeded. That code exists- I think- as part of the bridge...

enhancement
performance

The current code has an explicit fallback that uses a list for unhashable items, which is a quadratic search for unhashable N. Not awesome, in short, but a byproduct of...

refactor

Roughly, via checking the stack we can see if we're in a module parsing- thus demandload can detect if it just got reify'ied during a module parse, and should flag...

enhancement