Skip to content
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

weird pickling bug in padics #305

Closed
sagetrac-dmharvey mannequin opened this issue Mar 3, 2007 · 2 comments
Closed

weird pickling bug in padics #305

sagetrac-dmharvey mannequin opened this issue Mar 3, 2007 · 2 comments

Comments

@sagetrac-dmharvey
Copy link
Mannequin

sagetrac-dmharvey mannequin commented Mar 3, 2007

sage: K = pAdicField(5)
sage: x = K(0)
sage: y = loads(dumps(x))
sage: x.parent().print_prec()
 Infinity
sage: y.parent().print_prec()
 <class 'sage.rings.padic_field.pAdicField_generic'>

Component: basic arithmetic

Issue created by migration from https://trac.sagemath.org/ticket/305

@sagetrac-dmharvey
Copy link
Mannequin Author

sagetrac-dmharvey mannequin commented Mar 3, 2007

comment:1

Two more examples of weirdness:

sage: K = pAdicField(5)
sage: x = K(0)
sage: x.prec()
 Infinity
sage: y = loads(dumps(x))
sage: y.prec()
 <class 'sage.rings.padic_field.pAdicField_generic'>

and

sage: K = pAdicField(5)
sage: x = K(42)
sage: x.prec()
 Infinity
sage: y = loads(dumps(x))
sage: y.prec()
 '_pAdicField_generic__p'

@williamstein
Copy link
Contributor

comment:2

This is fixed by David Roe's new p-adics in SAGE-2.3.

tobiasdiez pushed a commit to tobiasdiez/sage that referenced this issue Feb 22, 2024
* add a warning for license match percentage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant