-
-
Notifications
You must be signed in to change notification settings - Fork 212
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
Public/private results depend on how cache file was persisted #66
Comments
I think the cache should always contain both public/private, and then results are filtered at runtime. |
I agree with what you said above. Cache should contain everything. It is light and makes the codebase easier to handle. |
With the current situation, all users of tldextract in a given container/pyenv/whatever have to agree whether they want public or public+private. Imagine the fun if module A and module B disagree... |
Did anyone find solution for this ? @john-kurkowski Are you working on it ? I want to use both options for include_psl_private_domains in different modules. |
Nope, I don't think anybody's worked on it. |
Addresses john-kurkowski#66 but is not backwards compatible.
Addresses john-kurkowski#66 but is not backwards compatible.
Addresses john-kurkowski#66 but is not backwards compatible.
Addresses john-kurkowski#66 but is not backwards compatible.
This is now addressed in #144 |
Addresses john-kurkowski#66 but is not backwards compatible.
Addresses john-kurkowski#66 but is not backwards compatible.
Addresses john-kurkowski#66 but is not backwards compatible.
Addresses john-kurkowski#66 but is not backwards compatible.
Addresses john-kurkowski#66 but is not backwards compatible.
Addresses john-kurkowski#66 but is not backwards compatible.
This is a second attempt at doing what was done in #144. Addresses #66. - Add `include_psl_private_domains` to the `__call__` method. This is now something you can choose on a per-call basis. The object level argument now is only a default value for each call. - The entire dataset from publicsuffix.org is saved to cache - Ensure no weird cache issues happen when using with different `suffix_list_urls` by using different filenames per `suffix_list_urls` - Use filelock to support multiprocessing and multithreading use cases - Update bundled snapshot to be the raw publicsuffix data. Need to look at performance impact of this. - Breaking change `cache_file` => `cache_dir`
Closed via #207. |
https://build.opensuse.org/request/show/843031 by user mia + dimstar_suse - Update to 3.0.0: This release fixes the long standing bug that public and private suffixes were generated separately and could not be switched at runtime, john-kurkowski/tldextract#66 * Breaking Changes + Rename `cache_file` to `cache_dir` as it is no longer a single file but a directory (john-kurkowski/tldextract#207) + Rename CLI arg also, from `--cache_file` to `--cache_dir` + Remove Python 2.7 support * Features + Can pass `include_psl_private_domains` on call, not only on construction + Use filelocking to support multi-processing and multithreading environments * Bugfixes + Select public or private suffixes at runtime (https://github.com/john-kurkowski/tldextract/issu
Repro
TLDExtract(include_psl_private_domains=True).update()
TLDExtract(include_psl_private_domains=False).extract('foo.appspot.com')
Expected: foo appspot com
Actual: foo.appspot com
The opposite order is also broken.
Related to #64.
The text was updated successfully, but these errors were encountered: