Ticket #12900: trac_12900_review.patch

File trac_12900_review.patch, 2.3 KB (added by Frédéric Chapoton, 9 years ago)
  • sage/schemes/toric/variety.py

    # HG changeset patch
    # User Frederic Chapoton <chapoton at math.univ-lyon1.fr>
    # Date 1374150568 -7200
    # Node ID 6078e2e6c2687f124b7ffde3e406b8dec47a9a91
    # Parent  5a0d349b3b22eff22b71d848394a0f90d418d0aa
    trac 12900 small review patch
    
    diff --git a/sage/schemes/toric/variety.py b/sage/schemes/toric/variety.py
    a b class ToricVariety_field(AmbientSpace): 
    28262826
    28272827        ..  [Demazure]
    28282828            M. Demazure
    2829             Sous-groupes algebriques de rang maximum du groupe de Cremona.
     2829            Sous-groupes algébriques de rang maximum du groupe de Cremona.
    28302830            Ann. Sci. Ecole Norm. Sup. 1970, 3, 507–588.
    28312831
    28322832        ..  [Bazhov]
    28332833            Ivan Bazhov:
    28342834            On orbits of the automorphism group on a complete toric variety.
    2835             http://arxiv.org/abs/1110.4275,
    2836             http://dx.doi.org/10.1007/s13366-011-0084-0.
     2835            :arxiv:`1110.4275`,
     2836            :doi:`10.1007/s13366-011-0084-0`.
    28372837
    28382838        EXAMPLE::
    28392839
    class ToricVariety_field(AmbientSpace): 
    28672867            NotImplementedError: Demazure_roots() is only implemented for complete toric varieties.
    28682868        """
    28692869        if not self.is_complete():
    2870             raise NotImplementedError('Demazure_roots() is only implemented for complete toric varieties.')
     2870            raise NotImplementedError('Demazure_roots() is only implemented '
     2871                                      'for complete toric varieties.')
    28712872        antiK = -self.K()
    28722873        fan_rays = self.fan().rays()
    2873         roots = [ m for m in antiK.sections()
    2874                   if [ ray*m for ray in fan_rays ].count(-1) == 1 ]
     2874        roots = [m for m in antiK.sections()
     2875                 if [ray*m for ray in fan_rays].count(-1) == 1]
    28752876        return tuple(roots)
    28762877
    28772878
    class ToricVariety_field(AmbientSpace): 
    29092910            NotImplementedError: Aut_dimension() is only implemented for complete toric varieties.
    29102911        """
    29112912        if not self.is_complete():
    2912             raise NotImplementedError('Aut_dimension() is only implemented for complete toric varieties.')
     2913            raise NotImplementedError('Aut_dimension() is only implemented '
     2914                                      'for complete toric varieties.')
    29132915        return self.fan().lattice_dim() + len(self.Demazure_roots())
    29142916
    29152917