Re: The Most Diabolical Python Antipattern

2015-01-29 Thread jtan
I would usually just log the stack trace so that I would still know that something bad happened while the app looks okay. On Fri, Jan 30, 2015 at 1:17 AM, Mark Lawrence wrote: > The author is quite clear on his views here https://realpython.com/blog/ > python/the-most-diabolical-python-antipatte

Re: Maintaining Maximum Line Length When Using Tabs Instead of Spaces?

2014-12-07 Thread jtan
On Mon, Dec 8, 2014 at 10:23 AM, Chris Angelico wrote: > On Mon, Dec 8, 2014 at 1:15 PM, Aahan Krish wrote: > > My question is to them (because I want to use tabs too) is: how do you > > maintain a line-length of 79 characters? > > > > E.g. scenario: The tab setting in your editor could be 2 or

Re: Maintaining Maximum Line Length When Using Tabs Instead of Spaces?

2014-12-07 Thread jtan
One reason why you would want max length 79 is because of working with terminals. Maybe ssh to you server and check how many spaces are consumed by a tab? In my boxes, it is usually 1 tab = 8 spaces. So perhaps just use that setting in your editor? On Mon, Dec 8, 2014 at 10:15 AM, Aahan Krish

Re: Python docs disappointing

2014-12-04 Thread jtan
On Thu, Dec 4, 2014 at 6:27 PM, Albert van der Horst < alb...@spenarnc.xs4all.nl> wrote: > In article , > Joel Goldstick wrote: > > > Plain google is far superior in finding information. > > And you tell me that writing yet another tutorial would improve that? > No, there is just one way. The p

Re: Python handles globals badly.

2014-12-04 Thread jtan
I wish him all the luck while having sleep deprivation trying to solve production issues :) On Thu, Dec 4, 2014 at 7:35 PM, Steven D'Aprano < steve+comp.lang.pyt...@pearwood.info> wrote: > jtan wrote: > > > How can Skybuck use so much globals. Wouldn't that introduc

Re: Python handles globals badly.

2014-12-04 Thread jtan
How can Skybuck use so much globals. Wouldn't that introduce a lot of thread safety problems? On Thu, Dec 4, 2014 at 9:32 AM, Mark Lawrence wrote: > On 03/12/2014 23:02, Skybuck Flying wrote: > >> >> >> "Mark Lawrence" wrote in message >> news:mailman.16534.1417610132.18130.python-l...@python.o