PyDev 1.3.9 code compleition trouble

2007-10-09 Thread Vyacheslav Maslov
Hi! I use Pydev 1.3.9 and notice issue related to code completion. I give an example BaseClass.py: class BaseClass: def someMethod(x): return x+x DerivedClass.py: import BaseClass class DerivedClass(BaseClass.BaseClass): def newMethod(self): print self.someMethod(

Re: reliable unit test logging

2007-10-03 Thread Vyacheslav Maslov
Ben Finney wrote: > Vyacheslav Maslov <[EMAIL PROTECTED]> writes: > >> I understand your opinion > > Hopefully you mean "explanation", not "opinion". I gave what appear to > me to be facts, not opinion, about the definition of a unit test. Yes, i

Re: reliable unit test logging

2007-10-02 Thread Vyacheslav Maslov
Ben Finney wrote: > Vyacheslav Maslov <[EMAIL PROTECTED]> writes: > >> I have many many many python unit test, which are used for testing >> some remote web service. > > Part of your confusion comes from the fact that "test a remote > service" isn'

reliable unit test logging

2007-10-01 Thread Vyacheslav Maslov
Hi all! I have many many many python unit test, which are used for testing some remote web service. The most important issue here is logging of test execution process and result. I strongly need following: 1. start/end timestamp for each test case (most important) 2. immediate report about exce

Re: Large Amount of Data

2007-05-25 Thread Vyacheslav Maslov
ack' Rintsch >> > Purchase more memory. It is REALLY cheap these days. Not a solution at all. What about if amount of data exceed architecture memory limits? i.e. 4Gb at 32bit. Better solution is to use database for data storage/processing -- Vyacheslav Maslov -- http://mail.python.org/mailman/listinfo/python-list

Re: using google search api for python

2007-05-23 Thread Vyacheslav Maslov
Gerardo Herzig wrote: > Hi all. Im looking for the pyGoogle for making google searchs y a python > script. The thing is, all im founding is an AJAX api, but the > application ill use is NOT a web app. So, someone know if there is a > pure python api that i can download and use? > > Thanks! > Ge

multi threaded SimpleXMLRPCServer

2007-05-14 Thread Vyacheslav Maslov
Hi, all! I need multi threaded version of SimpleXMLRPCServer. Does python library already have implementation of this one? Or i need to implement multi threading by myself? Which way is the simpliest? -- http://mail.python.org/mailman/listinfo/python-list

Re: assisging multiple values to a element in dictionary

2007-05-07 Thread Vyacheslav Maslov
'dataPackageID' or the name > 'LocalId'. In general dictionary define strong relation between keys and values, key should have only one associated value, but in your case value can be a tuple or list. Anyway, i think that your question contradict to dictionary concept, because is impossilbe to assign for some key multiple values. -- Vyacheslav Maslov -- http://mail.python.org/mailman/listinfo/python-list

Re: default test method name in unittest framework

2007-05-07 Thread Vyacheslav Maslov
uld explicitly pass testMethod name when create object of test case class: unittest.TextTestRunner().run(SomeTest("run")) Why i should do this? 2007/5/7, Gabriel Genellina <[EMAIL PROTECTED]>: En Sun, 06 May 2007 22:17:44 -0300, Vyacheslav Maslov <[EMAIL PROTECTED]> escribió:

Re: Help creating Tiger hash function in Python

2007-05-06 Thread Vyacheslav Maslov
. First of all you should create an instance of you Tiger class, you try to do this by line: x = Tiger.Tiger But this is wrong, because you should call constructor and pass all necessary parameters, in very simple case: x = Tiger.Tiger() (if there is no constructor parameters) -- Vya

Re: unable to construct tuple with one item

2007-05-06 Thread Vyacheslav Maslov
Guys, thanks a lot for you answers -- http://mail.python.org/mailman/listinfo/python-list

default test method name in unittest framework

2007-05-06 Thread Vyacheslav Maslov
Hi, all! i have question related to python's unit testing framework. Take a look at unittest.TestCase class. The main method which contains all code related to test case execution have name "run". But in the same time constructor of unittest.TestCase class have param methodName with default valu

[python 2.4] unable to construct tuple with one item

2007-05-06 Thread Vyacheslav Maslov
Hi, all! I found out different behavior of python interpeter related to tuples and lists with one item only. I have simple example print type(()) it's ok, we have just constructed empty tuple print type((4)) but when i add exactly one item to my tuple i get atomaric int instead of tuple!!