Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/sage/rings/padics/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -1989,6 +1989,11 @@ def create_key(self, p, prec=None, type='capped-rel', print_mode=None,
check = True
if label is not None and type not in ['lattice-cap','lattice-float']:
raise ValueError("label keyword only supported for lattice precision")
if print_mode == 'digits-unicode':
print_mode = 'digits' # Treat as digits but we'll handle unicode later
elif print_mode not in ['series', 'val-unit', 'terse', 'digits', 'bars']:
raise ValueError("invalid print_mode: %s" % print_mode)

return get_key_base(p, prec, type, print_mode, names, ram_name, print_pos, print_sep, print_alphabet,
print_max_terms, show_prec, check,
['capped-rel', 'fixed-mod', 'capped-abs', 'floating-point', 'lattice-cap', 'lattice-float', 'relaxed'],
Expand Down