Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Trac 16158: minor formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pjbruin committed Jul 18, 2014
1 parent f86c030 commit 185b49c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/sage/schemes/generic/homset.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def create_object(self, version, key, **extra_args):
X = extra_args.pop('X')
Y = extra_args.pop('Y')
base_ring = extra_args.pop('base_ring')
if len(key) >= 4 and key[3]:
if len(key) >= 4 and key[3]: # as_point_homset=True
return Y._point_homset(X, Y, category=category, base=base_ring, **extra_args)
try:
return X._homset(X, Y, category=category, base=base_ring, **extra_args)
Expand Down
37 changes: 16 additions & 21 deletions src/sage/schemes/generic/scheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,10 +340,10 @@ def point(self, v, check=True):
INPUT:
- ``v`` -- anything that defines a point.
- ``v`` -- anything that defines a point
- ``check`` -- boolean (optional, default=``True``). Whether
to check the defining data for consistency.
- ``check`` -- boolean (optional, default: ``True``); whether
to check the defining data for consistency
OUTPUT:
Expand Down Expand Up @@ -613,14 +613,14 @@ def hom(self, x, Y=None, check=True):
INPUT:
- ``x`` -- anything hat determines a scheme morphism. If ``x``
is a scheme, try to determine a natural map to ``x``.
- ``x`` -- anything that determines a scheme morphism; if
``x`` is a scheme, try to determine a natural map to ``x``
- ``Y`` -- the codomain scheme (optional). If ``Y`` is not
given, try to determine ``Y`` from context.
- ``Y`` -- the codomain scheme (optional); if ``Y`` is not
given, try to determine ``Y`` from context
- ``check`` -- boolean (optional, default=``True``). Whether
to check the defining data for consistency.
- ``check`` -- boolean (optional, default: ``True``); whether
to check the defining data for consistency
OUTPUT:
Expand Down Expand Up @@ -648,12 +648,12 @@ def _Hom_(self, Y, category=None, check=True):
INPUT:
- ``Y`` -- a scheme. The codomain of the Hom-set.
- ``Y`` -- a scheme; the codomain of the Hom-set
- ``category`` -- a category (optional). The category of the
Hom-set.
- ``category`` -- a category (optional); the category of the
Hom-set
- ``check`` -- boolean (optional, default=``True``). Whether
- ``check`` -- boolean (optional, default: ``True``); whether
to check the defining data for consistency.
OUTPUT:
Expand Down Expand Up @@ -1071,11 +1071,7 @@ def coordinate_ring(self):

def is_noetherian(self):
"""
Test whether ``self`` is Noetherian.
OUTPUT:
Boolean. Return ``True`` if this scheme is Noetherian.
Return ``True`` if ``self`` is Noetherian, ``False`` otherwise.
EXAMPLES::
Expand Down Expand Up @@ -1163,8 +1159,8 @@ def hom(self, x, Y=None):
INPUT:
- ``x`` -- anything hat determines a scheme morphism. If ``x``
is a scheme, try to determine a natural map to ``x``
- ``x`` -- anything that determines a scheme morphism; if
``x`` is a scheme, try to determine a natural map to ``x``
- ``Y`` -- the codomain scheme (optional); if ``Y`` is not
given, try to determine ``Y`` from context
Expand Down Expand Up @@ -1210,4 +1206,3 @@ def hom(self, x, Y=None):
if Y is None and is_RingHomomorphism(x):
Y = AffineScheme(x.domain())
return Scheme.hom(self, x, Y)

1 change: 0 additions & 1 deletion src/sage/schemes/generic/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,4 +189,3 @@ def _apply_functor_to_morphism(self, f):

from sage.structure.sage_object import register_unpickle_override
register_unpickle_override('sage.schemes.generic.spec', 'Spec', AffineScheme)

0 comments on commit 185b49c

Please sign in to comment.