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
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
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
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
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
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
> 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
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
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
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
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
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
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()
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
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
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
101 - 116 of 116 matches
Mail list logo