Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!217.188.199.168.MISMATCH!takemy.news.telefonica.de!telefonica.de!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'syntax': 0.04; 'argument': 0.05; '"""': 0.07; 'defaults': 0.07; 'elements.': 0.07; 'indices': 0.07; 'wednesday,': 0.07; 'subject:help': 0.08; '[0,': 0.09; 'arguments': 0.09; 'explanation': 0.09; 'function,': 0.09; 'integers': 0.09; 'so?': 0.09; 'subject:command': 0.09; 'cc:addr :python-list': 0.11; 'python': 0.11; '...,': 0.16; 'argument.': 0.16; 'brackets': 0.16; 'given,': 0.16; 'googling': 0.16; 'increment': 0.16; 'integers.': 0.16; 'ivan': 0.16; 'mean,': 0.16; 'optional': 0.16; 'optional.': 0.16; 'progression': 0.16; 'subject:description': 0.16; 'module': 0.19; 'message-----': 0.19; "python's": 0.19; 'command': 0.22; 'cc:addr:python.org': 0.22; 'specifies': 0.24; 'tells': 0.24; '(or': 0.24; '---': 0.24; 'question': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'function': 0.29; 'correct': 0.29; '----': 0.29; 'start,': 0.30; "i'm": 0.30; 'reply.': 0.31; 'them?': 0.31; 'way?': 0.31; 'class': 0.32; 'url:python': 0.33; '-----': 0.33; 'received:google.com': 0.35; 'there': 0.35; 'doing': 0.36; 'thanks': 0.36; 'url:org': 0.36; 'example,': 0.37; 'wrong': 0.37; 'list': 0.37; 'email addr:python.org': 0.37; 'step': 0.37; 'message-id:@gmail.com': 0.38; 'thank': 0.38; 'subject:needed': 0.38; 'url:library': 0.38; 'version,': 0.38; 'needed': 0.38; 'skip:- 10': 0.38; 'explain': 0.39; 'does': 0.39; 'subject:': 0.39; 'help,': 0.39; 'subject:" ': 0.39; 'sure': 0.39; 'either': 0.39; 'how': 0.40; 'skip:u 10': 0.60; 'range': 0.61; 'you.': 0.62; 'information': 0.63; 're:': 0.63; 'email name:python-list': 0.65; 'talking': 0.65; 'here': 0.66; 'notice:': 0.67; 'person,': 0.68; 'containing': 0.69; 'privileged.': 0.69; 'received:109': 0.72; 'disclose': 0.74; 'actually,': 0.84; 'concept.': 0.84; 'offline.': 0.84; 'medium.': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-type:content-transfer-encoding:thread-index :content-language; bh=PbYT+XbQRSrbLyjJiFP/aQ3OD6FCrBh0mJyVo/oDKGg=; b=GBFktxByyMIth52zQraziK3qZASHzo4kYmtfepILdZMAQJ9t5l1nIC1sThd+dYuuHB eiwgrzOgs3BTnTtgAdd+UzdL9jtNbJRCiLFKTH2rqw69mJmFtX3v6JFNEXJOTlWyzQMj siJhDYfTbnj0JMDNFkK5QSfDtHXBgBeVIMJyG+0hsDiM2tVQY/OkZVhstTv6KU9AQgXl 6W6Vf3U7fYXcfYdznXFx923eGmF8nMp3z6kX3P62UnVud6gKXrKFIiHOxEmN86n7HFDK RASFq2s1miroEITEUyYpiknZtD6BRNTA1Vjk/n2glvh9+t7sWt3l1Xh+fogZJJABmzdP rV2Q== X-Received: by 10.194.187.164 with SMTP id ft4mr63621502wjc.76.1415189659237; Wed, 05 Nov 2014 04:14:19 -0800 (PST) From: "Ivan Evstegneev" To: "'Jean-Michel Pichavant'" References: <000001cff8e7$af51ef30$0df5cd90$@gmail.com> <88543346.5460.1415188500802.JavaMail.root@sequans.com> In-Reply-To: <88543346.5460.1415188500802.JavaMail.root@sequans.com> Subject: RE: Understanding "help" command description syntax - explanation needed Date: Wed, 5 Nov 2014 14:13:35 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQFpfniLO0w+r0cBMAQRx7YJyit39J0e46Lw Content-Language: en-us Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 97 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1415189667 news.xs4all.nl 2944 [2001:888:2000:d::a6]:40971 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:80261 Firtst of all thanks for reply. >>brackets [] means that the argument is optional. That's what I'm talking about (asking actually), where do you know it = from?=20 I mean, if there are some resources, which explain all these syntax = abbreviations? The general concept. Like this one(just for example): class bytearray([source[, encoding[, errors]]]) --- What does it mean?=20 Is that I can use it in optional way?=20 Like: class bytearray(source) or class bytearray(encoding) ? or just write down all three of them?=20 In which format do I do so?=20 Sincerely, Ivan. =20 -----Original Message----- From: Jean-Michel Pichavant [mailto:jeanmichel@sequans.com]=20 Sent: Wednesday, November 5, 2014 13:55 To: Ivan Evstegneev Cc: python-list@python.org Subject: Re: Understanding "help" command description syntax - = explanation needed ---- Original Message ----- > From: "Ivan Evstegneev" > To: python-list@python.org > Sent: Wednesday, 5 November, 2014 12:00:16 PM > Subject: Understanding "help" command description syntax - explanation = > needed So here is the question itself: >=20 > If I use the help command to check the =E2=80=9Crange=E2=80=9D command = I get this > info: >=20 >=20 >=20 > range(stop) -> range object >=20 > range(start, stop[, step]) -> range object With python 2.7, when I type help(range), I get """ Help on built-in function range in module __builtin__: range(...) range([start,] stop[, step]) -> list of integers =20 Return a list containing an arithmetic progression of integers. range(i, j) returns [i, i+1, i+2, ..., j-1]; start (!) defaults to = 0. When step is given, it specifies the increment (or decrement). For example, range(4) returns [0, 1, 2, 3]. The end point is = omitted! These are exactly the valid indices for a list of 4 elements. """ range([start,] stop[, step]) tells you how to call the range function, = there's a start, stop and step argument. The purpose of these arguments are given by the longer description. brackets [] means that the argument is optional. Though there's nothing wrong with googling the function for help, I'm = doing it all the time. Actually, the python documentation is a better place to get help on a = particular function, just make sure you hit the correct version, for = either python 2 or 3: https://docs.python.org/2/library/functions.html#range I'm using python's help function only when working offline. JM -- IMPORTANT NOTICE:=20 The contents of this email and any attachments are confidential and may = also be privileged. If you are not the intended recipient, please notify = the sender immediately and do not disclose the contents to any other = person, use it for any purpose, or store or copy the information in any = medium. Thank you.