#14748: Deal with DeprecationWarning(s) that appear when using the BoundClass
----------------------------------+-----------------------------------------
       Reporter:  strogdon        |         Owner:  jason           
           Type:  defect          |        Status:  positive_review 
       Priority:  major           |     Milestone:  sage-5.11       
      Component:  misc            |    Resolution:                  
       Keywords:                  |   Work issues:                  
Report Upstream:  N/A             |     Reviewers:  Travis Scrimshaw
        Authors:  Steven Trogdon  |     Merged in:                  
   Dependencies:                  |      Stopgaps:                  
----------------------------------+-----------------------------------------
Changes (by strogdon):

  * status:  needs_work => positive_review


Old description:

> When doctesting Sage with #14136 the following {{{DeprecationWarning}}}
> appears:
>

> {{{doctest:201: DeprecationWarning: object.__init__() takes no
> parameters}}}
>

> which was reported on sage-devel
> ([https://groups.google.com/forum/?fromgroups#!topic/sage-
> devel/wQoCEeKrZ3w]). The warning seems to be associated with the use of
> the {{{BoundClass}}} which inherits from
> functools.partial
> ([http://trac.sagemath.org/sage_trac/ticket/14136#comment:19]). The
> attached patch is an attempt to work around the warning.
>
> Apply:
>
> * [attachment:trac_14748_deprecationwarning.patch]
> * [attachment:trac_14748_doctest.patch]
> * [attachment:trac_14748-review-ts.patch]

New description:

 When doctesting Sage with #14136 the following `DeprecationWarning`
 appears:

 `doctest:201: DeprecationWarning: object.__init__() takes no parameters`

 which was reported on sage-devel
 ([https://groups.google.com/forum/?fromgroups#!topic/sage-
 devel/wQoCEeKrZ3w]). The warning seems to be associated with the use of
 the `BoundClass` which inherits from  functools.partial
 ([http://trac.sagemath.org/sage_trac/ticket/14136#comment:19]). The
 attached patch is an attempt to work around the warning.

 Apply:

  * [attachment:trac_14748-deprecationwarning_doctest_reviewer.patch]

--

Comment:

 Folded patch uploaded. Setting this back to positive review.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14748#comment:19>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to