From 29891783f80a1c2a5ec3bab66aaf4065905b011c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Wobst?= Date: Mon, 12 May 2003 08:32:59 +0000 Subject: [PATCH] added missing docstring git-svn-id: https://pyx.svn.sourceforge.net/svnroot/pyx/trunk/pyx@934 069f4177-920e-0410-937b-c2a4a81bcd90 --- pyx/helper.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pyx/helper.py b/pyx/helper.py index 3fca9147..0ec8041e 100644 --- a/pyx/helper.py +++ b/pyx/helper.py @@ -76,6 +76,9 @@ def ensurelist(arg): return [arg] def getitemno(arg, n): + """get item number n if arg is a sequence (when the sequence + is not long enough, None is returned), otherweise arg is + returned""" if issequence(arg): try: return arg[n] except: return None @@ -89,8 +92,9 @@ def issequenceofsequences(arg): def getsequenceno(arg, n): - """get sequence number n if arg is a sequence of sequences, - otherwise it gets just arg""" + """get sequence number n if arg is a sequence of sequences (when + the sequence is not long enough, None is returned), otherwise + arg is returned""" if issequenceofsequences(arg): try: return arg[n] except: return None -- 2.11.4.GIT