Re: How do you use `help` when write your code

2014-07-07 Thread Chris Angelico
On Mon, Jul 7, 2014 at 9:22 PM, Roy Smith wrote: > In article , > Chris Angelico wrote: > >> That's about it, yeah. I tend to find both strace and tcpdump rather >> too spammy for most usage, so any time I reach for those tools, it's >> usually with some tight filtering - and even that's not alw

Re: How do you use `help` when write your code

2014-07-07 Thread Roy Smith
In article , Chris Angelico wrote: > That's about it, yeah. I tend to find both strace and tcpdump rather > too spammy for most usage, so any time I reach for those tools, it's > usually with some tight filtering - and even that's not always > helpful. Usually, when I fire up strace, it's beca

Re: How do you use `help` when write your code

2014-07-06 Thread Chris Angelico
On Mon, Jul 7, 2014 at 10:52 AM, Roy Smith wrote: > In article , > Chris Angelico wrote: > >> But the important thing is that you log. > > I 'spose. Let's see. Yesterday we generated 133 GB of log files. And > Sunday is a slow day :-) Heh, that's a bit bigger in scale than most of what I wor

Re: How do you use `help` when write your code

2014-07-06 Thread Chris Angelico
On Mon, Jul 7, 2014 at 10:53 AM, Ben Finney wrote: > There are two common cases where ‘help(foo)’ is unable to help: > > * If ‘foo’ is a function written without using keyword-only args, but > needing to have a bunch of keyword arguments, the signature will often > be the uninformative ‘foo(*a

Re: How do you use `help` when write your code

2014-07-06 Thread Cameron Simpson
On 06Jul2014 15:15, Roy Smith wrote: In article , Mark Lawrence wrote: In the 21st century real programmers are using the logging module so they don't have to mess around. The problem with the logging module is you can configure it to do pretty much anything, which is another way of saying i

Re: How do you use `help` when write your code

2014-07-06 Thread Roy Smith
In article , Chris Angelico wrote: > But the important thing is that you log. I 'spose. Let's see. Yesterday we generated 133 GB of log files. And Sunday is a slow day :-) > Have you ever had a bug where someone else finds it and then doesn't > give you full repro steps? Are there people

Re: How do you use `help` when write your code

2014-07-06 Thread Ben Finney
Shiyao Ma writes: > My normal workflow is use ipython, obj? or obj?? for quick look up or > use docs.python.org for a detailed read. I don't use IPython. I'm glad it exists for those who want it. I frequently use Python on hosts not entirely under my control, where I don't have authority to ins

Re: How do you use `help` when write your code

2014-07-06 Thread Chris Angelico
On Mon, Jul 7, 2014 at 5:15 AM, Roy Smith wrote: > In article , > Mark Lawrence wrote: > >> On 06/07/2014 19:48, Rick Johnson wrote: >> > >> > *Real* programmers possess keen detective that can root out >> > bugs with nothing more than a few well placed print >> > statements and some good old fa

Re: How do you use `help` when write your code

2014-07-06 Thread Roy Smith
In article , Mark Lawrence wrote: > On 06/07/2014 19:48, Rick Johnson wrote: > > > > *Real* programmers possess keen detective that can root out > > bugs with nothing more than a few well placed print > > statements and some good old fashioned "eyeball analysis". > > > > In the 21st century rea

Re: How do you use `help` when write your code

2014-07-06 Thread Mark Lawrence
On 06/07/2014 19:48, Rick Johnson wrote: *Real* programmers possess keen detective that can root out bugs with nothing more than a few well placed print statements and some good old fashioned "eyeball analysis". In the 21st century real programmers are using the logging module so they don't

Re: How do you use `help` when write your code

2014-07-06 Thread Roy Smith
In article <53b98cf2$0$29985$c3e8da3$54964...@news.astraweb.com>, Steven D'Aprano wrote: > I have a monkey-patched version of dir() which takes a second > argument, a glob, to filter the list of names returned: Neat idea, but globs are for wimps. All the cool kids are using regexes. See tha

Re: How do you use `help` when write your code

2014-07-06 Thread Rick Johnson
On Sunday, July 6, 2014 11:36:23 AM UTC-5, Shiyao Ma wrote: > I often heard people mention use help(ob) as a way of > documentation look up. Personally I seldom/never do that. > My normal workflow is use ipython, obj? or obj?? for quick > look up or use docs.python.org for a detailed read. Do you >

Re: How do you use `help` when write your code

2014-07-06 Thread Tim Chase
On 2014-07-06 17:52, Steven D'Aprano wrote: > I have a monkey-patched version of dir() which takes a second > argument, a glob, to filter the list of names returned: > > py> len(dir(os)) # Too much! > 312 > py> dir(os, 'env') > ['_putenv', '_unsetenv', 'environ', 'environb', 'getenv', > 'getenvb'

Re: How do you use `help` when write your code

2014-07-06 Thread Steven D'Aprano
On Mon, 07 Jul 2014 00:36:23 +0800, Shiyao Ma wrote: > Hi Pythonistas > > I often heard people mention use help(ob) as a way of documentation look > up. Personally I seldom/never do that. My normal workflow is use > ipython, obj? or obj?? for quick look up or use docs.python.org for a > detailed

How do you use `help` when write your code

2014-07-06 Thread Shiyao Ma
Hi Pythonistas I often heard people mention use help(ob) as a way of documentation look up. Personally I seldom/never do that. My normal workflow is use ipython, obj? or obj?? for quick look up or use docs.python.org for a detailed read. Do you use `help`? How does it integrate into your workflo