Re: [NTG-context] Check brackets and parentheses

2012-07-06 Thread Pontus Lurcock
On Fri 06 Jul 2012, Hongwen Qiu wrote: > >def count(filename, opening, closing): > > print opening, closing > > f = open(sys.argv[1], 'r') > Shouldn't this line be > f = open(filename, 'r') > otherwise the 'filename' parameter will not be used Oops, you're quite correct. Of cours

Re: [NTG-context] Check brackets and parentheses

2012-07-06 Thread Hongwen Qiu
On 07/06/2012 03:38 PM, Pontus Lurcock wrote: brace-lint.py #!/usr/bin/python import sys '''Count opening and closing braces in a file.''' def count(filename, opening, closing): print opening, closing f = open(sys.argv[1], 'r') Shouldn't this line be f = open(filename, 'r

Re: [NTG-context] Check brackets and parentheses

2012-07-06 Thread Pontus Lurcock
On Thu 05 Jul 2012, Gilbert Houtekamer wrote: > I sometimes find myself looking for misplaced and missing brackets for a long > time, as context may given errors about a completely different location. > > For example this one took me a while >\goto{\url[localhost20381}[url(localhost20381)] >

Re: [NTG-context] Check brackets and parentheses

2012-07-06 Thread Hans Hagen
On 5-7-2012 20:40, Gilbert Houtekamer wrote: Hi, I sometimes find myself looking for misplaced and missing brackets for a long time, as context may given errors about a completely different location. For example this one took me a while \goto{\url[localhost20381}[url(localhost20381)] (mis

Re: [NTG-context] Check brackets and parentheses

2012-07-06 Thread Henning Hraban Ramm
2012/7/5 Gilbert Houtekamer : > Hi, > > I sometimes find myself looking for misplaced and missing brackets for a long > time, as context may given errors about a completely different location. > > For example this one took me a while >\goto{\url[localhost20381}[url(localhost20381)] > > (missin

[NTG-context] Check brackets and parentheses

2012-07-06 Thread Gilbert Houtekamer
Hi, I sometimes find myself looking for misplaced and missing brackets for a long time, as context may given errors about a completely different location. For example this one took me a while \goto{\url[localhost20381}[url(localhost20381)] (missing ] after this localhost20381). Is there a