Re: comparing alternatives to py2exe

2009-11-03 Thread Maxim Khitrov
On Tue, Nov 3, 2009 at 10:58 AM, Jonathan Hartley wrote: > Hi, > > Recently I put together this incomplete comparison chart in an attempt > to choose between the different alternatives to py2exe: > > http://spreadsheets.google.com/pub?key=tZ42hjaRunvkObFq0bKxVdg&output=html > > Columns represent m

Re: comparing alternatives to py2exe

2009-11-03 Thread Maxim Khitrov
On Tue, Nov 3, 2009 at 3:50 PM, iu2 wrote: > On Nov 3, 5:58 pm, Jonathan Hartley wrote: >> Hi, >> >> Recently I put together this incomplete comparison chart in an attempt >> to choose between the different alternatives to py2exe: >> >> http://spreadsheets.google.com/pub?key=tZ42hjaRunvkObFq0bKxV

Re: Is it possible to get the Physical memory address of a variable in python?

2009-11-10 Thread Maxim Khitrov
On Tue, Nov 10, 2009 at 6:32 AM, Ognjen Bezanov wrote: > Hey, > > Thanks for all the responses guys. In hindsight I probably should have > explained why on earth I'd need the physical address from an interpreted > language. > > I'm trying to see if there is any way I can make Python share data bet

Re: String Formatting Operations for decimals.

2010-04-01 Thread Maxim Lacrima
, i.e. 10.5 should > > result in '10.5' (not '10.50'), and 10 should result in '10' (not > > '10.00'). > > So how can I do this? > > ('%.2f' % 10).rstrip('0').rstrip('.') > > Cheers, > Chris > -- > http://blog.rebertia.com > -- with regards, Maxim -- http://mail.python.org/mailman/listinfo/python-list

constructin trees in python

2010-11-20 Thread Maxim Mercury
Hi , Iam very much new to python. Iam trying to construct a xml dom tree using the builtin HTMLParser class (on data event callbacks). Iam maintaining the childs as a list of elements and whenver the sax parser encounters a tag i push it to a local stack, my basic logic is below. ** de

Re: constructin trees in python

2010-11-20 Thread Maxim Mercury
On Nov 20, 2:03 pm, Peter Otten <__pete...@web.de> wrote: > Maxim Mercury wrote: > > here is the definintion of htmlelement > > > class HTMLElement: > >     tag=None > >     attrs={} > >     data='' > >     childs=[] > > &

strings getting unnecessarily cut in lstrip

2010-11-21 Thread Maxim Mercury
I was using the lstrip to trim the left occurance of a string, and it didnt seem to work for some cases. but when i investigated there does seem to be an issue with some combination of strings here is one case p1 = "abcd" p2 = 'def'# $abc sym = '_' str1 = p1 + sym + p2 str1

Re: no return value for threading.Condition.wait(timeout)?

2009-07-16 Thread Maxim Khitrov
On Thu, Jul 16, 2009 at 5:00 PM, Carl Banks wrote: > On Jul 16, 8:12 am, Gabriel Rossetti > wrote: >> Hello everyone, >> >> I am using threading.Condition.wait(timeout) and was surprised to see >> that there is no return value nor an exception when wait() is used w/ a >> timeout. How am I supposed

Re: Override a method but inherit the docstring

2009-07-16 Thread Maxim Khitrov
On Thu, Jul 16, 2009 at 9:13 PM, Jean-Paul Calderone wrote: > On Fri, 17 Jul 2009 11:01:49 +1000, Ben Finney > wrote: >> >> Howdy all, >> >> The following is a common idiom:: >> >>   class FooGonk(object): >>       def frobnicate(self): >>           """ Frobnicate this gonk. """ >>           basic

Re: How can I get the line number ?

2009-07-24 Thread Maxim Khitrov
On Fri, Jul 24, 2009 at 2:51 PM, kk wrote: > Hello > > I am writing some Python code that runs in another application(has > wrapper functions). Due to lack of debugging I am printing out alot of > outputs and manual messages. I want to be able to create a function > that would let me print the curr

<    1   2