-
-
Notifications
You must be signed in to change notification settings - Fork 186
Add options to exclude objects from dump_session() #475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
leogama
wants to merge
118
commits into
uqfoundation:master
Choose a base branch
from
leogama:session-excludes
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,566
−521
Open
Changes from 2 commits
Commits
Show all changes
118 commits
Select commit
Hold shift + click to select a range
a650f62
Move dump_session(), load_session() and everything related to session.py
leogama de1943f
Add options to exclude objects from dump_session()
leogama 3c87ae9
Simplify AttrDict and create a separated Settings class
leogama 8341f19
use typing.Pattern instead of re.Pattern for annotations
leogama de5c467
split module imports into separated lines
leogama 6f479e6
session: size filter
leogama 2a85d7b
size filter: option to recurse in size estimate
leogama 61bf520
use __dict__
leogama 6bf135c
mostly naminng changes
leogama 05a9844
Merge branch 'master' into session-excludes
leogama 656ae30
developmental changes
leogama 9781f19
move session things to session.py
leogama d7004d0
Merge branch 'master' into session-excludes
leogama 65157a9
small fixes
leogama 17a3b50
complete merge with master
leogama 51c23bc
fixes
leogama e6adf30
sync with master
leogama 06f9f54
unroll the filtering loop
leogama ab13325
code formatting changes
leogama a829849
sync with master
leogama 33ca2ed
remove unnecessary '_main_modified' attribute from pickler
leogama ad8db21
new _open() function to handle file names and file-like objects
leogama da4cc07
merge function _make_peekable() with _open()
leogama 1732e3d
new function is_module_pickle()
leogama 2fdd31d
move session-related code to session.py submodule
leogama 6b55755
session: deal with modules with unpickleable objects
leogama aac47b5
disable framing when using the 'refonfail' option
leogama e3ad465
namespace filtering: tests
leogama 5e4d912
rename is_module_pickle() to is_pickled_module(); fix _dill's __all__
leogama 699f30a
sync with branch 'session-excludes'
leogama 5ab70b6
move code and sync with branch 'document-session'
leogama a00a8a2
Merge branch 'master' into session-excludes
leogama 429e55a
fix bad merge
leogama 04968f3
refonfail: save modules by reference using save_reduce()
leogama a596126
unpickleable ctypes objects raise ValueError...
leogama bbb7623
sync with branch session-submodule
leogama 3abae56
standardize argument/setting retrieving
leogama d494973
Merge branch 'master' into session-excludes
leogama d3837cf
Merge branch 'master' into document-session
leogama 8fd687e
fixes
leogama add61ba
move common autodoc options to conf.py
leogama f46d399
move common autodoc options to conf.py and exclude some special members
leogama bef5795
don't document trace() twice
leogama b26a100
don't document trace() twice
leogama 0e25f14
complete session documentation
leogama a0e4a7c
optimize FilterSet._match_type()
leogama 55d5386
add _firt_pass and _original_main attributes to Pickler class
leogama a73801b
FilterSet: substitute the add_type method by a special string syntax …
leogama 10369b1
rename FilterRules.filter_vars() to FilterRules.apply_filters()
leogama 953b5e0
fix is_pickled_module()
leogama d30e7c3
add dill.read_settings() to read INI files
leogama f535978
rename method in tests
leogama e5da1c8
deteail the effects of 'module' argument in load_module() and rename …
leogama 2e4887c
Better describe the side effects and the usage of the returned value …
leogama be319c8
describe session module behavior and use cases
leogama a9ea883
add Python License and copyright notice for modified code as specifie…
leogama b722431
revert addition of PSF license; add link to license
leogama 2a7e984
_open(): cover all the possible file opening modes
leogama fa4fa85
grammar
leogama 92318a7
better document Pickler.save() and Pickler._save_module_dict()
leogama 4fc2f5f
Merge branch 'master' into document-session
leogama 0e365f5
move session settings to session.py; changes to refonfail
leogama 9c54e34
add _TruncatableWriter to handle 'refonfail' with non-seekable streams
leogama ffdd180
update 'refonfail' example
leogama d5b1701
Merge branch 'master' into document-session
leogama e5006f7
Merge branch 'document-session' into session-excludes
leogama f60d239
merge the two save() methods and save_module_dict() with _save_module…
leogama 4fe577b
minor
leogama d059d84
grammar; keep __weakref__ attribute in docs
leogama 35cd4a0
Merge branch 'document-session' into session-excludes
leogama 20f04e2
settings updates and tests
leogama 5b8ca48
Merge branch 'master' into session-excludes
leogama d2a023b
fix test that doesn't apply to PyPy
leogama 3c7291e
minor changes to settings docs
leogama f5b9ecf
review code; complement annotation; clean up imports; some extra methods
leogama 9ec9ae0
Move file-related functions and classes from session to _utils
leogama 86b59d6
complete refonfail behavior for unpickleables, plus tests
leogama d5fd37e
small optimization for opcode strings
leogama e9e5b69
Merge branch 'document-session' into session-excludes
leogama 58e2af9
minor
leogama 0e7e7a8
_getopt: no more settings with composed names like 'dump_module.refon…
leogama 3dce5b8
use StockPickler instead of super() by now
leogama dc9c758
minor fix
leogama 8cf5949
TraceAdapter: check trace() arguments and complement documentation
leogama 41bf44a
moved config file stuff to a new PR
leogama 4ad1527
restore settings.py from master
leogama 035360b
update documentation of session settings
leogama 2a3788f
is_pickled_module(): distinguish between modules saved with dump() an…
leogama 106e283
tests for is_pickled_module()
leogama b05a0e0
removed outdated comments
leogama d1b9156
fixup
leogama 234d96c
minor
leogama 9823396
minor
leogama 2f189f5
docs: hide __weakref__
leogama 23e9593
remove duplicate __init__ documentation
leogama fb247d8
remove added variables after _stash_modules() and _filter_vars()
leogama f5804f2
fix load_module_asdict() and _filter_var() corner cases
leogama 7c87a67
add parameter 'identify' to is_pickled_module()
leogama 6456c03
improve documentation and code annotation
leogama 6de1c51
show variable name in trace; fix IPYTHON_SINGLETONS bug
leogama f9ba8d4
help me Travis
leogama c7176cd
don't execute __main__ dump/load test with COVERAGE
leogama e26647b
coverage, some tests, remove unreachable branch, "fix last fix"
leogama 0e796a7
fix test that failed on Travis
leogama a091024
tests for _open(); fix corner case
leogama 785f419
tests for _format_bytes_size()
leogama a624f44
tests for module-specific filters and fallbacks
leogama a7fe25e
Renamed .logger to .logging and new TRACE log level
leogama 04c8378
allow trace() to set a custom log level for showing INFO messages
leogama 6d70653
complement warning about modules saved by reference
leogama 5264279
refonfail/refimported: exceptions to saving as reference to other mod…
leogama 989ebe4
refimported: use original_main for building modmap; exclude small int…
leogama 6650a99
dump_module: also list variables saved by reference with 'refimported'
leogama c802c5d
minor
leogama 56beb89
test dump and load of StdLib modules; fix missing flag test
leogama 71b4f77
minor
leogama 4244d3b
fix _stash_modules() arguments
leogama 78f5e2d
tests: FilterSet methods; added extra filter type check
leogama File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.