Re: The ONE TRUE WAY to use tabs (if you must...)

2006-05-21 Thread Andy Sy
Andy Sy wrote: > Actually a couple of the responses on this newsgroup > have settled the question for me. I did learn something > new by engaging in this holy war. > > > Tabs need not be evil, but ONLY if they are used in one > particular way: > > If you really mu

The ONE TRUE WAY to use tabs (Re: Tabs versus Spaces in Source Code)

2006-05-20 Thread Andy Sy
achates wrote: > Yeah - we've got to the repeating ourselves stage. Actually a couple of the responses on this newsgroup have settled the question for me. I did learn something new by engaging in this holy war. Tabs need not be evil, but ONLY if they are used in one particular way: If you rea

Re: Tabs versus Spaces in Source Code ('semantic' vs. arbitrary indentation)

2006-05-17 Thread Andy Sy
Carl J. Van Arsdall wrote: >> Next major objection then, how can one practically use 'tabs as >> semantic indentation' without screwing up formatting of code like >> the below?? >> >> >> def sqlcall(): >> cursor.execute('select id, item, amount, field4, field5, field6'+ >>

Re: Tabs versus Spaces in Source Code (semantic vs. arbitrary indentation)

2006-05-17 Thread Andy Sy
Ed Singleton wrote: > On 5/15/06, Brian Quinlan <[EMAIL PROTECTED]> wrote: >> The problem with tabs is that people use tabs for alignment e.g. >> >> def foo(): >>->query = """SELECT * >>-> -> -> FROM sometable >>-> -> -> WHERE condition""" >> >> Now I change my editor to use 8-

Re: Tabs versus Spaces in Source Code ('semantic' vs. arbitrary indentation)

2006-05-17 Thread Andy Sy
achates wrote: > Andy Sy: >> Code with anything other than 8-space tabs will *NEVER* display >> properly using everyday unix utilities such as less and cat. > > less -x does what you want. > Ok, that tip certainly counts for something. This is definitely going to

Re: Tabs are EVIL *and* STUPID, end of discussion. (Re: Tabs versus Spaces in Source Code)

2006-05-17 Thread Andy Sy
Sybren Stuvel wrote: >> then WHAT THE HECK do you need to use tab characters in the source >> code for anyway (besides saving a measly few bytes) ??!? > > To separate layout (how much indentation is used) from semantics (how > many intentation levels). Like I said, you'll *NEVER* get that fancy s

Re: Tabs are *EVIL* AND *STUPID*, NOT 'misunderstood' (Re: Tabs versus Spaces in Source Code)

2006-05-17 Thread Andy Sy
achates wrote: > Andy Sy > >> I guess this *REALLY* is how a misguided tab user exercises his 'logic': >> Syntax replication (e.g. so-called 'argument construction') is enough, >> semantics don't matter. > > That's quite amusing.. yo

Re: Tabs are *MISUNDERSTOOD*, *EVIL* AND *STUPID*, end of discussion. (Re: Tabs versus Spaces in Source Code)

2006-05-17 Thread Andy Sy
Peter Decker wrote: > On 5/17/06, Andy Sy <[EMAIL PROTECTED]> wrote: >> Peter Decker wrote: >>> On 5/17/06, Andy Sy <[EMAIL PROTECTED]> wrote: >>> >>>> If tabs are easily misunderstood, then they are a MISfeature >>>> and they n

Re: Tabs versus Spaces in Source Code

2006-05-17 Thread Andy Sy
Peter Decker wrote: > Spaces look like crap, too, when using proportional fonts. ... and people who would even think that using proportional fonts for viewing/editing source code is anywhere remotely near being a good idea ... That's an even more advanced version of the i-think-tabs-are-good dis

Re: Tabs are *MISUNDERSTOOD*, *EVIL* AND *STUPID*, end of discussion. (Re: Tabs versus Spaces in Source Code)

2006-05-17 Thread Andy Sy
Peter Decker wrote: > On 5/17/06, Andy Sy <[EMAIL PROTECTED]> wrote: > >> If tabs are easily misunderstood, then they are a MISfeature >> and they need to be removed. > > I don't seem to understand your point in acting as a dictator. > Therefore, you are a

Re: Tabs are EVIL *and* STUPID, end of discussion. (Re: Tabs versus Spaces in Source Code)

2006-05-17 Thread Andy Sy
achates wrote: >> Andy Sy wrote: >> Don't be evil - always configure your editor to >> convert tabs to true spaces. > > Yet another space-indenter demonstrates that problem actually lies with > people who think that tab == some spaces. Wrong. I am completely aw

Re: Tabs are *MISUNDERSTOOD*, *EVIL* AND *STUPID*, end of discussion. (Re: Tabs versus Spaces in Source Code)

2006-05-17 Thread Andy Sy
If tabs are easily misunderstood, then they are a MISfeature and they need to be removed. >From the Zen of Python: "Explicit is better than implicit..." "In the face of ambiguity, refuse the temptation to guess..." "Special cases aren't special enough to break the rules..." -- It's called DOM+

Re: Web framework to recommend (don't use one, use Spyce instead)

2006-05-17 Thread Andy Sy
Jacky wrote: > Hi all, > > I just started learning Python and would like to starting writing some > web-based applications with Python. > > I did have pretty much experience with doing so with PHP and Java, but > Python seems a bit different for me. > > Do you guys have some good web framework

Tabs are *EVIL*, end of discussion. (Re: Tabs versus Spaces in Source Code)

2006-05-17 Thread Andy Sy
Please... just stop this senseless defense of a Rube-Goldberg feature. There will NEVER be a universal agreement on whether tabs should be 2, 3, 4 or 8 spaces in width, and this causes endless tweaking of editor settings (a *humongous* waste of time) to handle source code made by other programmers

Tabs are evil, end of discussion. (Re: Tabs versus Spaces in Source Code)

2006-05-17 Thread Andy Sy
Harry George wrote: > This has been discussed repeatedly, and the answer is "If you only > work alone, never use anyone else's code and no one ever uses your > codes, then do as you please. Otherwise use tab-is-4-spaces." > > When you do Agile Programming with people using emacs, vim, nedit, > x

Re: [silly] Does the python mascot have a name ?

2006-05-17 Thread Andy Sy
Steve wrote: > umm, was just wondering, does the python mascot have a name ? We are naming > the > conference rooms in our office you see :o). > > Also, is there a place I could get some neat, good quality pics of the python > ? > > - steve The Python mascot is called Odi. http://mail.python

fixedint.py enhanced for auto-coercion (fixed-width python integers)

2006-02-03 Thread Andy Sy
Hi Dan, I find that when doing bit-twiddling in pure Python, fixed-width integer support is an extremely handy capability to have in Python regardless of what the apologists (for its absence) say. I added some stuff to fixedint.py to make >>> x=SByte(80) >>> x+200 fixedint.SignedType(8)(24) th