On Tue, Oct 30, 2018 at 2:41 PM Ruchit Vithani <[email protected]> wrote: > > > Should I go and fix this?
Yes you can if you want. >> >> >> simpfunc = simplify or _simplify >> >> with the function definition as >> >> def rref(self, iszerofunc=_iszero, simplify=None, pivots=True, >> normalize_last=True): >> >> The isinstance(simplify, FunctionType) type check is not necessary. >> > This was silly! Actually I don't think I have seen such syntax before, so > this happened, and also I didn't know what to google in this case. I tried to > google, but got other awful stuff :( The docs on the "import" statement describe "import ... as ..." https://docs.python.org/3/reference/simple_stmts.html#import. Unfortunately, they also go into a lot of details on things that aren't important (the Python import system is quite complex and the vast majority of things you will never need to care about). I suppose the section in the tutorial is better for this, as it doesn't go into unnecessary details https://docs.python.org/3/tutorial/modules.html#more-on-modules Aaron Meurer >> >> > why simplify is imported as _simplify as well as nsimplify? I mean what is >> > the need of both? >> >> The simplify() function is imported as _simplify because otherwise it >> would not be accessible in rref(), because the name "simplify" is >> already used by the keyword argument. >> > -- > You received this message because you are subscribed to the Google Groups > "sympy" 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 https://groups.google.com/group/sympy. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sympy/da579ebd-bfd5-4c83-ad22-1fd6de7249ed%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sympy" 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 https://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAKgW%3D6%2B6GnGYQgX6u9DqfHhT_F%3DnJL1AD8xWn0f6a1Tr5b9W4w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
