On 11/19/2016 01:44 PM, Xristos Xristoou wrote:
> hello
> i using python 2.7.12 on ubuntu 16.04 and i have that error with SIP :
>
> Couldn't load SIP module.
>
>
> Traceback (most recent call last):
> File "", line 1, in
> ImportError: /usr/local/lib/python2.7/site-packages/sip.so: undefined
On 11/19/2016 08:46 AM, Steve D'Aprano wrote:
> I think you're being harsh on J Fong. And for what it is worth, I think that
> I (slightly) agree with him: in my experience, many people have difficulty
> understanding object model at first, especially if they've come from a
> background of named me
Peter Otten at 2016/11/19 5:40:34PM wrote:
> And now for something completely different ;)
>
> What if you only record the changes to the list? For a long list that would
> save space at the expense of calculation time. For example:
Excellent! Although not 100% fit into my application, I must st
Ian Kelly wrote:
Is it better to introduce an extra base class?
That's one possibility. An advantage would be that it
would be easier to add methods in the future that apply
to UsualTreeNodes but not FinalTreeNodes.
Another possibility would be to just rename the classes.
Instead of FinalTreeN
hello
i using python 2.7.12 on ubuntu 16.04 and i have that error with SIP :
Couldn't load SIP module.
Traceback (most recent call last):
File "", line 1, in
ImportError: /usr/local/lib/python2.7/site-packages/sip.so: undefined symbol:
PyUnicodeUCS2_AsUTF8String
('Qt version:', '4.8.7')
('S
On Nov 19, 2016 11:22 AM, "Victor Porton" wrote:
Consider
class FinalTreeNode(object):
def childs(self):
return []
class UsualTreeNode(FinalTreeNode)
def childs(self):
return ...
In this structure UsualTreeNode derives from FinalTreeNode.
This looks odd because "final
Consider
class FinalTreeNode(object):
def childs(self):
return []
class UsualTreeNode(FinalTreeNode)
def childs(self):
return ...
In this structure UsualTreeNode derives from FinalTreeNode.
Is it better to introduce an extra base class?
class BaseTreeNode(object):
d
Peter Otten wrote:
> Victor Porton wrote:
>
>> I am developing software which shows hierarchical information (tree),
>> including issues and comments from BitBucket (comments are sub-nodes of
>> issues, thus it forms a tree).
>>
>> There are two kinds of objects in the hierarchy: a. with a (poss
Victor Porton wrote:
> I am developing software which shows hierarchical information (tree),
> including issues and comments from BitBucket (comments are sub-nodes of
> issues, thus it forms a tree).
>
> There are two kinds of objects in the hierarchy: a. with a (possibly long)
> paginated list o
On Sun, Nov 20, 2016 at 3:21 AM, Victor Porton wrote:
> Do I understand correctly, than C3 applies to particular methods, and thus
> it does not fail, if it works for every defined method, even if it can fail
> after addition of a new method?
>
> Also, at which point it fails: at definition of a c
Do I understand correctly, than C3 applies to particular methods, and thus
it does not fail, if it works for every defined method, even if it can fail
after addition of a new method?
Also, at which point it fails: at definition of a class or at calling a
particular "wrong" method?
--
Victor P
On Fri, 18 Nov 2016 03:14 pm, Michael Torrie wrote:
> On 11/17/2016 08:41 PM, jf...@ms4.hinet.net wrote:
>> The fact that most novices will stumble on Python variable many times
>> until it becomes his "second nature" proves it's different from the
>> human language:-)
>
> The fact is that most n
I am developing software which shows hierarchical information (tree),
including issues and comments from BitBucket (comments are sub-nodes of
issues, thus it forms a tree).
There are two kinds of objects in the hierarchy: a. with a (possibly long)
paginated list of childs; b. with a short list
Chris Angelico at 2016/11/19 2:58:41PM wrote:
> On Sat, Nov 19, 2016 at 3:34 PM, Steve D'Aprano
> wrote:
> > What happens if you do this?
> >
> > spam = eggs = cheese = obj
> >
> > Is that different from:
> >
> > spam = obj
> > eggs = obj
> > cheese = obj
> >
> >
> > or from this?
> >
> > spam = o
jf...@ms4.hinet.net wrote:
> I have a working list 'tbl' and recording list 'm'. I want to append 'tbl'
> into 'm' each time when the 'tbl' was modified. I will record the change
> by append it through the function 'apl'.
>
> For example:
>
tbl=[0,0]
m=[]
>
tbl[0]=1
apl(tbl)
>>>
15 matches
Mail list logo