From 007f158568633993088e6201685c1c9bed13b8ac Mon Sep 17 00:00:00 2001 From: Ondrej Certik Date: Sat, 2 Feb 2008 10:35:03 +0100 Subject: [PATCH] Docstring of Basic fixed. --- sympy/core/basic.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sympy/core/basic.py b/sympy/core/basic.py index 6d2f223..ae4c487 100644 --- a/sympy/core/basic.py +++ b/sympy/core/basic.py @@ -155,23 +155,23 @@ class Basic(AssumeMeths): When you want to access parameters of some instance, always use []. Example: - In [2]: cot(x)[:] + In [2]: cot(x).args Out[2]: (x,) - In [3]: cot(x)[0] + In [3]: cot(x).args[0] Out[3]: x - In [4]: (x*y)[:] + In [4]: (x*y).args Out[4]: (x, y) - In [5]: (x*y)[1] + In [5]: (x*y).args[1] Out[5]: y 2) Never use internal methods or variables (the ones prefixed with "_"). Example: - In [6]: cot(x)._args #don't use this, use cot(x)[:] instead + In [6]: cot(x)._args #don't use this, use cot(x).args instead Out[6]: (x,) -- 2.11.4.GIT