Re: Is there a maximum size to a Python program?

2009-04-26 Thread John Machin
On Apr 27, 2:34 pm, "Paul Hemans" wrote: [snip] > exists = session.query(schema.BILLS).filter(schema.BILLS.REFNO==u"1") > if exists.count == 0: >     entry.REFNO = u"1" >     entry.THRDPTY = u"""C5""" >     entry.AMOUNT = 0 >     entry.TIMESTAMP = 0 >     entry.ALLOCATED = 0 >     session.add(en

Re: ActiveState Komodo Edit?

2009-04-26 Thread George Sakkis
On Apr 26, 11:08 pm, John Doe wrote: > Having trouble tabifying a section of Python code. > Code -- Tabify Region > Does it work for anyone else? Yes it does, you have to select a region before (e.g. ctrl+A for the whole file). Regardless, the common standard indentation is 4 spaces; avoid tabs

Re: ActiveState Komodo Edit?

2009-04-26 Thread Dave Angel
John Doe wrote: Having trouble tabifying a section of Python code. Code -- Tabify Region Does it work for anyone else? Thanks. Hello JD, I'm using Komodo IDE 5.1.1, and tabify works fine, with a column setting of 4. However, I'd never tabify Python source code, not sure why you need t

Re: Lisp mentality vs. Python mentality

2009-04-26 Thread Ciprian Dorin, Craciun
On Mon, Apr 27, 2009 at 2:14 AM, Dan Sommers wrote: > On Sun, 26 Apr 2009 12:30:40 +0300, Ciprian Dorin, Craciun wrote: > >> On Sun, Apr 26, 2009 at 12:08 PM, "Martin v. Löwis" >> wrote: > >>> No, the problem is that you are using way too many functions, that do >>> too little. The problem with t

Re: ActiveState Komodo Edit?

2009-04-26 Thread John Doe
George Sakkis wrote: > John Doe wrote: >> Having trouble tabifying a section of Python code. >> Code -- Tabify Region >> Does it work for anyone else? > > Yes it does, you have to select a region before (e.g. ctrl+A for > the whole file). Regardless, the common standard indentation is 4 > spac

Re: Is there a maximum size to a Python program?

2009-04-26 Thread Emmanuel Surleau
On Monday 27 April 2009 05:01:22 Carbon Man wrote: > I have a program that is generated from a generic process. It's job is to > check to see whether records (replicated from another system) exist in a > local table, and if it doesn't, to add them. I have 1 of these programs for > every table in th

Re: [Python-Dev] PEP 383: Non-decodable Bytes in System Character Interfaces

2009-04-26 Thread Martin v. Löwis
> How about another str-like type, a sequence of char-or-bytes? That would be a different PEP. I personally like my own proposal more, but feel free to propose something different. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a maximum size to a Python program?

2009-04-26 Thread Paul Hemans
Thanks John, I understand where you are coming from and will try and digest it all. One problem though that I didn't mention in my original posting was that the replication may only require updating one or more fields, that is a problem with a generating a single SQL statement to cover all reque

getting linux distro used...

2009-04-26 Thread deostroll
Hi, I just found that you could use platform.system() to get the underlying os used. But is there a way to get the distro used...? --deostroll -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a maximum size to a Python program?

2009-04-26 Thread Steven D'Aprano
On Sun, 26 Apr 2009 21:51:00 -0700, John Machin wrote: > ἐδάκρυσεν ὁ Ἰησοῦς Alright, I give up. Is that APL code? *grin* -- Steven -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a maximum size to a Python program?

2009-04-26 Thread John Machin
On Apr 27, 3:31 pm, "Paul Hemans" wrote: > Thanks John, I understand where you are coming from and will try and digest > it all. One problem though that I didn't mention in my original posting was > that the replication may only require updating one or more fields, that is a > problem with a gener

Re: Re: ActiveState Komodo Edit?

2009-04-26 Thread Dave Angel
John Doe wrote: George Sakkis wrote: John Doe wrote: Having trouble tabifying a section of Python code. Code -- Tabify Region Does it work for anyone else? Yes it does, you have to select a region before (e.g. ctrl+A for the whole file). Regardless, the common standard i

Re: getting linux distro used...

2009-04-26 Thread Benjamin Kaplan
On Mon, Apr 27, 2009 at 1:35 AM, deostroll wrote: > Hi, > > I just found that you could use platform.system() to get the > underlying os used. But is there a way to get the distro used...? > > --deostroll > -- > http://mail.python.org/mailman/listinfo/python-list > platform.linux_distribution()

Re: Is there a maximum size to a Python program?

2009-04-26 Thread John Machin
On Apr 27, 3:48 pm, Steven D'Aprano wrote: > On Sun, 26 Apr 2009 21:51:00 -0700, John Machin wrote: > > ἐδάκρυσεν ὁ Ἰησοῦς > > Alright, I give up. Your googler cactus? > Is that APL code? *grin* No but +1 anyway :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: getting linux distro used...

2009-04-26 Thread David Lyon
perphaps platform.uname()? On Sun, 26 Apr 2009 22:35:29 -0700 (PDT), deostroll wrote: > Hi, > > I just found that you could use platform.system() to get the > underlying os used. But is there a way to get the distro used...? > > --deostroll > -- > http://mail.python.org/mailman/listinfo/python

Re: Is there a maximum size to a Python program?

2009-04-26 Thread John Machin
On Apr 27, 2:34 pm, "Paul Hemans" wrote: > entry = schema.BILLS() > exists = session.query(schema.BILLS).filter(schema.BILLS.REFNO==u"1") > if exists.count == 0: >     entry.REFNO = u"1" >     entry.THRDPTY = u"""C5""" >     entry.AMOUNT = 0 >     entry.TIMESTAMP = 0 >     entry.ALLOCATED = 0 In

<    1   2