when "normal" parallel computations in CPython will be implemented at last?

2012-07-01 Thread dmitrey
hi all, are there any information about upcoming availability of parallel computations in CPython without modules like multiprocessing? I mean something like parallel "for" loops, or, at least, something without forking with copying huge amounts of RAM each time and possibility to involve unpiclab

new release 0.38 of OpenOpt, FuncDesigner, SpaceFuncs, DerApproximator

2012-03-16 Thread dmitrey
Hi all, I'm glad to inform you about new release 0.38 (2012-March-15): OpenOpt: interalg can handle discrete variables interalg can handle multiobjective problems (MOP) interalg can handle problems with parameters fixedVars/freeVars Many interalg improvements and some bugfixes

can I overload operators like "=>", "->" or something like that?

2012-04-19 Thread dmitrey
hi all, can I somehow overload operators like "=>", "->" or something like that? (I'm searching for appropriate overload for logical implication "if a then b") Thank you in advance, D. -- http://mail.python.org/mailman/listinfo/python-list

why () is () and [] is [] work in other way?

2012-04-20 Thread dmitrey
I have spent some time searching for a bug in my code, it was due to different work of "is" with () and []: >>> () is () True >>> [] is [] False (Python 2.7.2+ (default, Oct 4 2011, 20:03:08) [GCC 4.6.1] ) Is this what it should be or maybe yielding unified result is better? D. -- http://mail.p

[ANN] OpenOpt Suite release 0.34

2011-06-16 Thread dmitrey
Hi all, I'm glad to inform you about new quarterly release 0.34 of the OOSuite package software (OpenOpt, FuncDesigner, SpaceFuncs, DerApproximator) . Main changes: * Python 3 compatibility * Lots of improvements and speedup for interval calculations * Now interalg can obtain all solutions of nonl

[ANN] OpenOpt Suite release 0.34

2011-06-16 Thread dmitrey
Hi all, I'm glad to inform you about new quarterly release 0.34 of the free (even for commercial purposes, license: BSD) cross-platform OOSuite package software (OpenOpt, FuncDesigner, SpaceFuncs, DerApproximator), Main changes: * Python 3 compatibility * Lots of improvements and speedup for inter

blist question

2011-07-07 Thread dmitrey
hi all, I feel lack of native Python lists operations (e.g. taking N greatest elements with the involved key function and O(n) speed) and occasionally found blist http://pypi.python.org/pypi/blist/ Its entry says it is better than Python list. Did anyone ensure? Will it ever be merged into Python s

[ANN] OpenOpt Suite release 0.33

2011-03-16 Thread dmitrey
systems of geometric equations and numerical optimization with automatic differentiation): * Some bugfixes DerApproximator: * Adjusted with some changes in FuncDesigner For more details visit our site http://openopt.org. Regards, Dmitrey. -- http://mail.python.org/mailman/listinfo/python-list

seems like a bug in isinstance()

2011-05-06 Thread dmitrey
hi all, suppose I've created a class Point in file .../openopt/kernel/Point.py Consider the code in file .../somewhere/file1.py from openopt.kernel.Point import Point p = Point() now let's pass p into a func from .../openopt/kernel/file2.py and check from Point import Point isinstance(p, Point)

Re: seems like a bug in isinstance()

2011-05-06 Thread dmitrey
On May 6, 12:57 pm, Chris Rebert wrote: > On Fri, May 6, 2011 at 2:24 AM, dmitrey wrote: > > hi all, > > > suppose I've created a class Point in file .../openopt/kernel/Point.py > > > Consider the code in file .../somewhere/file1.py > > from openopt.k

Python 3 dict question

2011-05-06 Thread dmitrey
hi all, suppose I have Python dict myDict and I know it's not empty. I have to get any (key, value) pair from the dict (no matter which one) and perform some operation. In Python 2 I used mere key, val = myDict.items()[0] but in Python 3 myDict.items() return iterator. Of course, I could use for ke

Re: Python 3 dict question

2011-05-06 Thread dmitrey
On May 6, 10:51 pm, Chris Rebert wrote: > On Fri, May 6, 2011 at 12:40 PM, dmitrey wrote: > > hi all, > > suppose I have Python dict myDict and I know it's not empty. > > I have to get any (key, value) pair from the dict (no matter which > > one) and perform s

Python3: imports don't see files from same directory?

2011-05-07 Thread dmitrey
hi all, I try to port my code to Python 3 and somehow files don't see files from same directory, so I have to add those directories explicitly, e.g. import sys sys.path += [...] Also, it leads to bugs like this one: http://groups.google.com/group/comp.lang.python/browse_thread/thread/961a90219a61e

Re: seems like a bug in isinstance()

2011-05-07 Thread dmitrey
On May 7, 11:53 am, Gregory Ewing wrote: > Chris Rebert wrote: > > This is because you did `from Point import > > ...` in file2.py, whereas in file1.py you did `from > > openopt.kernel.Point import ...`. These 2 different ways of referring > > to the same module are sufficient to "trick"/"outsmart

[ANN} OpenOpt, FuncDesigner, DerApproximator, SpaceFuncs release 0.36 Options

2011-09-15 Thread dmitrey
Hi all, new release of our free scientific soft (OpenOpt, FuncDesigner, DerApproximator, SpaceFuncs) v. 0.36 is out: OpenOpt: Now solver interalg can handle all types of constraints and integration problems Some minor improvements and code cleanup FuncDesigner: Interval analysis now

[ANN] New free multifactor analysis tool for experiment planning

2011-10-24 Thread dmitrey
. Maybe other (alternative) engines will be available in future. See its webpage for details: http://openopt.org/MultiFactorAnalysis Regards, Dmitrey. -- http://mail.python.org/mailman/listinfo/python-list

multiprocessing module question

2011-12-12 Thread dmitrey
hi all, suppose I have a func F, list [args1,args2,args3,...,argsN] and want to obtain r_i = F(args_i) in parallel mode. My difficulty is: if F returns not None, than I should break calculations, and I can't dig in multiprocessing module documentation how to do it. Order doesn't matter for me (I ha

Ann: OpenOpt and FuncDesigner 0.37

2011-12-15 Thread dmitrey
Hi all, I'm glad to inform you about new release 0.37 (2011-Dec-15) of our free software: OpenOpt (numerical optimization): IPOPT initialization time gap (time till first iteration) for FuncDesigner models has been decreased Some improvements and bugfixes for interalg, especially for "sea

Re: How to get function string name from i-th stack position?

2011-12-30 Thread dmitrey
On Dec 30, 8:35 pm, Tim Chase wrote: > On 12/30/11 11:51, dmitrey wrote: > > > how to get string name of a function that is n levels above > > the current Python interpreter position? > > Use the results of traceback.extract_stack() > >    from traceback impor

Re: How to get function string name from i-th stack position?

2011-12-31 Thread dmitrey
On Dec 30, 11:48 pm, Ian Kelly wrote: > On Fri, Dec 30, 2011 at 11:43 AM, dmitrey wrote: > > Thank you. And what should I do to get function by itself instead of > > its string name, e.g. I want to know does this function is my_func or > > any other? For example, I would

how to get id(function) for each function in stack?

2012-01-06 Thread dmitrey
hi all, how to get id(func) for each func in stack? (I mean memory address, to compare it with id(some known funcs)) Thank you in advance, D. -- http://mail.python.org/mailman/listinfo/python-list

Re: how to get id(function) for each function in stack?

2012-01-06 Thread dmitrey
On Jan 6, 8:28 pm, Ian Kelly wrote: > On Fri, Jan 6, 2012 at 11:02 AM, dmitrey wrote: > > hi all, > > how to get id(func) for each func in stack? (I mean memory address, to > > compare it with id(some known funcs)) > > Thank you in advance, D. > > The answer hasn

PEP: add __sum__ method

2012-01-22 Thread dmitrey
hi all, could you consider adding __sum__ method, e.g. Python sum(a) checks does a have attribute __sum__ and if it has, then a.__sum__() is invoked instead of Python sum(a). (for my soft FuncDesigner it would be very essential, I guess for many other soft as well, e.g. for PuLP, who has to use lpS

howto obtain directory where current (running) py-file is placed?

2007-06-06 Thread dmitrey
Hi all, I guess this question was asked many times before, but I don't know keywords for web search. Thank you in advance, D. -- http://mail.python.org/mailman/listinfo/python-list

Re: howto obtain directory where current (running) py-file is placed?

2007-06-07 Thread dmitrey
On Jun 7, 10:18 am, Gerard Flanagan <[EMAIL PROTECTED]> wrote: > On Jun 7, 8:39 am, dmitrey <[EMAIL PROTECTED]> wrote: Thank you. And what is the simplest way (without split/join, if exist) to obtain name of directory parent to directory my_directory_name? Thx, D. > > >

easiest way to count memory eaten by call to Python func?

2007-06-07 Thread dmitrey
hi all, which way is the simplest for now to obtain the memory amount eaten by call to Python 'myfunc' function? Thx, D -- http://mail.python.org/mailman/listinfo/python-list

howto run a function w/o text output?

2007-06-22 Thread dmitrey
hi all, I have a y = some_func(args) statement, and the some_func() produces lots of text output. Can I somehow to suppress the one? Thx in advance, D. -- http://mail.python.org/mailman/listinfo/python-list

howto resend args and kwargs to other func?

2007-07-01 Thread dmitrey
I need something like this: def func1(*args, **kwargs): if some_cond: return func2(*args, **kwargs) else: return func3(some_other_args, **kwargs) Thank you in advance, D. -- http://mail.python.org/mailman/listinfo/python-list

Re: howto resend args and kwargs to other func?

2007-07-01 Thread dmitrey
On Jul 1, 12:00 pm, Duncan Booth <[EMAIL PROTECTED]> wrote: > You 'need something like this', so write something like that. > Did you intend to ask a question? I would gladly write the one, but the example doesn't work, and I don't know any easy way (moreover any way) to make it work correctly. D

Re: howto resend args and kwargs to other func?

2007-07-01 Thread dmitrey
Thanks all, I have solved the problem. D. -- http://mail.python.org/mailman/listinfo/python-list

howto check is object a func, lambda-func or something else?

2007-04-29 Thread dmitrey
hi all, howto check is object Arg1 - a func, lambda-func - something else? I tried callable(Arg1), but callable(lambda-func) returnes False Thx, D. -- http://mail.python.org/mailman/listinfo/python-list

Re: howto check is object a func, lambda-func or something else?

2007-04-29 Thread dmitrey
Thank you, I have fixed the bug -- http://mail.python.org/mailman/listinfo/python-list

howto make Python list from numpy.array?

2007-05-06 Thread dmitrey
howto make Python list from numpy.array? Thx, D. -- http://mail.python.org/mailman/listinfo/python-list

Re: howto make Python list from numpy.array?

2007-05-06 Thread dmitrey
Thanks all. I tried all the approaches but they don't work in my situation I have a variable x that can be x = 1 x = [1, 2, 3] x = numpy.array([1,2,3]) so all troubles are with 1st case >>> x=1 >>> list(x) Traceback (most recent call last): File "", line 1, in TypeError: iteration over non-seque

matplotlib: howto redraw figure automatically, without stop in show()/draw()?

2007-05-07 Thread dmitrey
Hi all, here is a question already mentioned below, and I'm also interested in that one very much. unfortunatly, I can't write anything to matplotlib mailing lists because I constantly get server internal error (500) Does anyone knows the answer? (howto redraw figure automatically (for example upda

matplotlib: howto set title of whole window?

2007-05-11 Thread dmitrey
hi all, does anyone know howto set title of whole window? (I mean not just area above plot but string in the same line where buttons 'close', 'iconify', 'fullscreen' are situated) Thx, D. -- http://mail.python.org/mailman/listinfo/python-list

Re: matplotlib: howto set title of whole window?

2007-05-12 Thread dmitrey
No, it's just another one title it produces a figure with name "Figure 1" but I should somehow replace the string. It is possible in MATLAB via set(figureHandler, 'Name', 'my_string_here') D. On May 12, 2:52 am, [EMAIL PROTECTED] wrote: > On May 11, 3:44

howto get function from module, known by string names?

2007-05-15 Thread dmitrey
hi all, can anyone explain howto get function from module, known by string names? I.e. something like def myfunc(module_string1, func_string2, *args): eval('from ' + module_string1 + 'import ' + func_string2') return func_string2(*args) or, if it's impossible, suppose I have some modules

Re: howto get function from module, known by string names?

2007-05-21 Thread dmitrey
And howto check does module 'asdf' exist (is available for import) or no? (without try/cache of course) Thx, D. Carsten Haese wrote: > On 15 May 2007 04:29:56 -0700, dmitrey wrote > > hi all, > > can anyone explain howto get function from module, known by string > >

Re: howto get function from module, known by string names?

2007-05-21 Thread dmitrey
And howto check does module 'asdf' exist (is available for import) or no? (without try/cache of course) Thx, D. Carsten Haese wrote: > On 15 May 2007 04:29:56 -0700, dmitrey wrote > > hi all, > > can anyone explain howto get function from module, known by string > >

Re: howto get function from module, known by string names?

2007-05-21 Thread dmitrey
And howto check does module 'asdf' exist (is available for import) or no? (without try/cache of course) Thx, D. Carsten Haese wrote: > On 15 May 2007 04:29:56 -0700, dmitrey wrote > > hi all, > > can anyone explain howto get function from module, known by string > >

howto check does module 'asdf' exist? (is available for import)

2007-05-21 Thread dmitrey
howto check does module 'asdf' exist (is available for import) or no? (without try/cache of course) Thx in advance, D. -- http://mail.python.org/mailman/listinfo/python-list

Re: howto get function from module, known by string names?

2007-05-21 Thread dmitrey
Sorry, some problems with internet connection yield these messages -- http://mail.python.org/mailman/listinfo/python-list

howto compile recursively all *.py files to *.pyc (from a directory my_dir)?

2007-09-01 Thread dmitrey
howto compile recursively all *.py files to *.pyc (from a directory my_dir)? Thank you in advance, D. -- http://mail.python.org/mailman/listinfo/python-list

howto reload Python module?

2007-09-02 Thread dmitrey
my Python module was changed in HDD (hardware disk drive), moreover, changed its location (but still present in sys.path). how can I reload a func "myfunc" from the module? (or howto reload whole module)? Thank you in advance, D. -- http://mail.python.org/mailman/listinfo/python-list

(beginners) howto ascribe _all_ fields of parent class to child class?

2007-03-14 Thread dmitrey
cause field a is absent so how can I wrote the code that I'll got all class C1 fields (not only funcs) Thank you in advance, Dmitrey -- http://mail.python.org/mailman/listinfo/python-list

Python equivalents to MATLAB str2func, func2str, ischar, isfunc?

2007-03-14 Thread dmitrey
I can't find these via web serch thank you in advance, Dmitrey -- http://mail.python.org/mailman/listinfo/python-list

Re: Python equivalents to MATLAB str2func, func2str, ischar, isfunc?

2007-03-14 Thread dmitrey
cName = , param else: func, funcName = param, param.__name__ what should I type instead of ? D. On Mar 14, 7:06 pm, Alexander Schmolck <[EMAIL PROTECTED]> wrote: > "dmitrey" <[EMAIL PROTECTED]> writes: > > I can't find these via web serch > > > thank

what are Python equivalent to MATLAB persistent or C++ static?

2007-03-14 Thread dmitrey
Thank you in advance, Dmitrey -- http://mail.python.org/mailman/listinfo/python-list

right-format of integer output as text

2007-03-15 Thread dmitrey
hi all, I need printing the following: 1 2 3 ... 9 10 ... 99 100 ... 999 1000 1001 ... how can I implement this one in the simpliest way? Thank you in advance, D. -- http://mail.python.org/mailman/listinfo/python-list

right-format of integer output as text

2007-03-15 Thread dmitrey
hi all, I need printing the following: 1 2 3 ... 9 10 ... 99 100 ... 999 1000 1001 ... how can I implement this one in the simpliest way? Thank you in advance, D. -- http://mail.python.org/mailman/listinfo/python-list

Re: right-format of integer output as text

2007-03-15 Thread dmitrey
There are some errors occured in displaing previous message, I meant all right borders are the same, + some number of spaces before integer numbers, according to the number of digits D. -- http://mail.python.org/mailman/listinfo/python-list

Re: right-format of integer output as text

2007-03-15 Thread dmitrey
Thank you Marc, it is exactly the same I asked for. D. -- http://mail.python.org/mailman/listinfo/python-list

looking for a fastest parallel approach for quick executing of lots small routines

2007-03-19 Thread dmitrey
s included into the scipy module or Python core, for to minimize additional software dependences. So what is the best choise? And if noone is included in Python standard distribution - why it is so and is anything intended in future Python versions: 2.6 or later? Thank you in advance, Dmitrey

Re: looking for a fastest parallel approach for quick executing of lots small routines

2007-03-19 Thread dmitrey
I forgot to add: first of all I need sinchronious parallel calculations, not asinchronious D. -- http://mail.python.org/mailman/listinfo/python-list

why brackets & commas in func calls can't be ommited? (maybe it could be PEP?)

2007-03-21 Thread dmitrey
Hi all, I looked to the PEPs & didn't find a proposition to remove brackets & commas for to make Python func call syntax caml- or tcl- like: instead of result = myfun(param1, myfun2(param5, param8), param3) just make possible using result = myfun param1 (myfun2 param5 param8) param3 it would redu

Re: why brackets & commas in func calls can't be ommited? (maybe it could be PEP?)

2007-03-21 Thread dmitrey
I think it should result result = func1(func2, arg) if you want result = func1(func2(arg)) you should use result = func1 (func2 arg) if ... = word1 word2 word3 ... then only word "word1" should be call to func "word1" with parameters word2, word3 etc > If you have > result = func1 func2 arg > is

Re: why brackets & commas in func calls can't be ommited? (maybe it could be PEP?)

2007-03-21 Thread dmitrey
>foo bar baz >foo(bar,baz) 1st still is shorter by 1 char; considering majority of people use space after comma & number of parameters can be big it yileds foo bar baz bar2 bar3 bar4 vs foo(bar, baz, bar2, bar3, bar4) > result = func1 for this case should using result = func1() should remain + re

Re: PyPy 1.0: JIT compilers for free and more

2007-03-28 Thread dmitrey
Hi! Suppose I have a py-written module. Is it possible somehow run PyPy on the whole module? I didn't find it in documentation. And if yes (or if just run in every module func) what will be after computer restart? Should I restart PyPy on the module once again? And are there any chances/intends fo

problem with Python class creating

2007-10-18 Thread dmitrey
self) # i.e pass the class instance to other func named ooIter field2 = val2 field3 = val3 # etc I suspect it has better solution, is it? Thank you in advance, Dmitrey -- http://mail.python.org/mailman/listinfo/python-list

Re: problem with Python class creating

2007-10-19 Thread dmitrey
Thanks all for these detailed explanations. On Oct 18, 10:48 pm, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > dmitrey a écrit : > Not unless these classes define their own initializers. But that's > another problem > > > and there are lots of > > those one

Python strings question (vertical stack)

2007-11-20 Thread dmitrey
Hi all, I have some strings, let it be string1, string2, string3. So how could String= """ string1 string2 string3 """ be obtained? Thank you in advance, D. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python strings question (vertical stack)

2007-11-20 Thread dmitrey
Thanks all, I have solved the problem: a=""" %s %s %s """ % ('asdf', 'asdf2', 'asdf3') print a D. -- http://mail.python.org/mailman/listinfo/python-list

Re: OpenOpt install

2007-12-17 Thread dmitrey
Use python setup.py install Regards, D On Dec 16, 2:27 pm, Neal Becker <[EMAIL PROTECTED]> wrote: > What do I need to do? I have numpy, scipy (Fedora F8) > > cdopenopt/ > [EMAIL PROTECTED] python setup.py build > running build > running config_cc > unifing config_cc, config, build_clib, build_e

Re: OpenOpt install

2007-12-17 Thread dmitrey
those changes and write my own, for to have OO py-files being compiled when installed, because next time when they will be run user may not have root permissions, so he will recompile source files each time OO starts. On Dec 17, 10:27 pm, Robert Kern <[EMAIL PROTECTED]> wrote: > dmitrey wrote

Re: OpenOpt install

2007-12-18 Thread dmitrey
thank you, I'll try to fix the issue when I'll have more time, I'm short of the one for now because of some other urgent work. D. On Dec 18, 10:53 am, Robert Kern <[EMAIL PROTECTED]> wrote: > dmitrey wrote: > > When earlier OpenOpt versions had been installed there

Re: ANN: eric4 4.1.0 released

2008-02-03 Thread dmitrey
Hi all, I prefer the Eric Python IDE to all other, however, unfortunately, Eric4.x (as well as the latest snapshot mentioned in the ann) fails to debug any py-file (while Eric3.9.5 from Kubuntu software channel works ok): The debugged program raised the exception unhandled TypeError "not all argum

Re: future multi-threading for-loops

2008-02-05 Thread dmitrey
On Feb 5, 5:22 am, [EMAIL PROTECTED] wrote: > Some iterables and control loops can be multithreaded. Worries that > it takes a syntax change. > > for X in A: > def f( x ): > normal suite( x ) > start_new_thread( target= f, args= ( X, ) ) > > Perhaps a control-flow wrapper, or metho

Re: future multi-threading for-loops

2008-02-05 Thread dmitrey
On Feb 5, 6:11 pm, Christian Heimes <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Multi-threaded control flow is a worthwhile priority. > > It is? That's totally new to me. Given the fact that threads don't scale > I highly doubt your claim, too. I would propose "for X IN A" for parall

IronPython vs CPython: faster in 1.6 times?

2008-02-05 Thread dmitrey
Hi all, the url http://torquedev.blogspot.com/2008/02/changes-in-air.html (blog of a game developers) says IronPython is faster than CPython in 1.6 times. Is it really true? If yes, what are IronPython drawbacks vs CPython? And is it possible to use IronPython in Linux? D. -- http://mail.python.o

ANN: OpenOpt 0.17 (free numerical optimization framework)

2008-03-16 Thread dmitrey
Greetings, We're pleased to announce: OpenOpt 0.17 (release), free (license: BSD) optimization framework for Python language programmers, is available for download. Brief introduction to numerical optimization problems and related software: http://scipy.org/scipy/scikits/wiki/OOIntroduction Chan

memory allocation for Python list

2008-03-26 Thread dmitrey
good approximation, for example 400. So, how can I optimize a code for the sake of calculations speedup? Currently I just use myList = [] for i in some_range: ... myList.append(element) ... Thank you in advance, Dmitrey -- http://mail.python.org/mailman/listinfo/python-list

OpenOpt 0.21 (free optimization framework)

2008-12-15 Thread dmitrey
Hi all, OpenOpt 0.21, free optimization framework (license: BSD) with some own solvers and connections to tens of 3rd party ones, has been released. All details here: http://openopt.blogspot.com/2008/12/openopt-release-021.html Regards, OpenOpt developers. -- http://mail.python.org/mailman/listi

Tkinter question: howto redirect text output (stdout) to Text widget?

2008-10-14 Thread dmitrey
hi all, could anyone post an example how to redirect text output (stdout) to Text widget? Thank you in advance, Dmitrey. -- http://mail.python.org/mailman/listinfo/python-list

[numerical optimization] Poll "what do you miss in OpenOpt framework"

2009-02-26 Thread dmitrey
ramework: http://openopt.org I intend to take you opinions into account till next OpenOpt release 0.23 (2009-03-15) Thank you in advance, Dmitrey -- http://mail.python.org/mailman/listinfo/python-list

multiprocessing module - isn't it a bug?

2009-03-14 Thread dmitrey
# THIS WORKS OK from multiprocessing import Pool N = 400 K = 800 processes = 2 def costlyFunction2(z): r = 0 for k in xrange(1, K+2): r += z ** (1 / k**1.5) return r class ABC: def __init__(self): pass def testParallel(self): po = Pool(processes=processes)

ANN: OpenOpt 0.23 - free numerical optimization framework

2009-03-15 Thread dmitrey
Hi all, OpenOpt 0.23, a free numerical optimization framework (license: BSD) with some own solvers and connections to tens of 3rd party ones, has been released. Our new homepage: http://openopt.org Introduction to the framework: http://openopt.org/Foreword All release details are here: http://op

howto use pylint from Eric IDE?

2008-05-18 Thread dmitrey
Hi all, I have Eric 4.1.1, pylint and Eric pylint plugin installed, but I cannot find how to use pylint from Eric IDE GUI. Does anyone know? Thank you in advance, D. -- http://mail.python.org/mailman/listinfo/python-list

Re: Using Python for programming algorithms

2008-05-18 Thread dmitrey
Along with numpy & scipy there is some more Python scientific soft worse to be mentioned: http://scipy.org/Topical_Software http://pypi.python.org/pypi?:action=browse&show=all&c=385 On 18 Тра, 06:25, Henrique Dante de Almeida <[EMAIL PROTECTED]> wrote: > once I > looked for linear programming too

Re: howto use pylint from Eric IDE?

2008-05-18 Thread dmitrey
Since I have no project (and willing to create the one), just several py-files, the Project->Check button is disabled. Are there any other methods in v4.1.1 or more recent? Thx, D. On 18 Тра, 16:48, Detlev Offenbach <[EMAIL PROTECTED]> wrote: > dmitrey wrote: > > Hi all, >

howto split string with both comma and semicolon delimiters

2008-06-12 Thread dmitrey
hi all, howto split string with both comma and semicolon delimiters? i.e. (for example) get ['a','b','c'] from string "a,b;c" I have tried s.split(',;') but it don't work Thx, D. -- http://mail.python.org/mailman/listinfo/python-list

write Python dict (mb with unicode) to a file

2008-06-14 Thread dmitrey
hi all, what's the best way to write Python dictionary to a file? (and then read) There could be unicode field names and values encountered. Thank you in advance, D. -- http://mail.python.org/mailman/listinfo/python-list

ANN: OpenOpt 0.18 (numerical optimization framework)

2008-06-15 Thread dmitrey
Greetings, We're pleased to announce: OpenOpt 0.18 (release), free (license: BSD) optimization framework (written in Python language) with connections to lots of solvers (some are C- or Fortran-written) is available for download. Changes since previous release 0.17 (March 15, 2008): * connec

howto check is function capable of obtaining **kwargs?

2008-07-21 Thread dmitrey
hi all, howto check is function capable of obtaining **kwargs? i.e. I have some funcs like def myfunc(a,b,c,...):... some like def myfunc(a,b,c,...,*args):... some like def myfunc(a,b,c,...,*args, **kwargs):... some like def myfunc(a,b,c,...,zz=zz0):... So I need to know is the given function

Re: Genetic programming: pygene, pygp, AST, or (gasp) Lisp?

2008-07-21 Thread dmitrey
also, you could look at the simple openopt example provided by GA "galileo" solver (connected to OO framework) http://projects.scipy.org/scipy/scikits/browser/trunk/openopt/scikits/openopt/examples/glp_1.py http://scipy.org/scipy/scikits/wiki/GLP Regards, D -- http://mail.python.org/mailman/listinf

howto print binary number

2008-05-07 Thread dmitrey
hi all, could you inform how to print binary number? I.e. something like print '%b' % my_number it would be nice would it print exactly 8 binary digits (0-1, with possible start from 0) Thank you in advance, D -- http://mail.python.org/mailman/listinfo/python-list

simple question about Python list

2008-05-09 Thread dmitrey
hi all, suppose I have 2 lists list1 = ['elem0', 'elem1', 'elem2', 'elem3', 'elem4', 'elem5'] and list2 = [0, 2, 4] # integer elements howto (I mean most simple recipe, of course) form list3 that contains elements from list1 with indexes from list2, i.e. list3 = ['elem0', 'elem2', 'elem4']? Than

Re: How to kill Python interpreter from the command line?

2008-05-09 Thread dmitrey
in addition to killall and kill funcs mentioned above you could be interested in pkill see "man pkill" from terminal for more details pkill python or pkill pyt or pkill py -- http://mail.python.org/mailman/listinfo/python-list

Re: simple question about Python list

2008-05-09 Thread dmitrey
Ok, I use Python 2.5 but I try my code to remain Python 2.4 and (preferable) 2.3 compatible. Are there other solutions? D. On 9 Тра, 13:17, Paul Hankin <[EMAIL PROTECTED]> wrote: > On May 9, 11:04 am, dmitrey <[EMAIL PROTECTED]> wrote: > > > list1 = ['elem0',

Re: simple question about Python list

2008-05-09 Thread dmitrey
Hmm... I thought this issue is available from Python2.5 only. I have no other interpreters in my recently installed KUBUNTU 8.04. Thanks all, D. On 9 Тра, 13:41, Duncan Booth <[EMAIL PROTECTED]> wrote: > dmitrey <[EMAIL PROTECTED]> wrote: > > On 9 ôÒÁ, 13:17, Paul Han

PYPI, some troubles

2008-09-17 Thread dmitrey
thon.org/simple/ Reading http://pypi.python.org/simple/OpenOpt/ Reading http://scipy.org/scipy/scikits/wiki/OpenOpt No local packages or download links found for openopt error: Could not find suitable distribution for Requirement.parse('openopt') Does anyone know what shoul I do? Thank yo

how to do easy_install to source code, not egg?

2008-09-18 Thread dmitrey
Hi all, how to do easy_install to source code, not egg? (I don't mean "develop" option, it shouldn't call compiled egg-file). Thank you in advance, Dmitrey. -- http://mail.python.org/mailman/listinfo/python-list

How to kill threading.Thread instance?

2008-09-21 Thread dmitrey
hi all, Is there a better way to kill threading.Thread (running) instance than this one http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496960 (it's all I have found via google). BTW, it should be noticed that lots of threading module methods have no docstrings (in my Python 2.5), for exam

Re: How to kill threading.Thread instance?

2008-09-21 Thread dmitrey
I wonder why something like myThread.exit() or myThread.quit() or threading.kill(myThread) can't be implemented? Is something like that present in Python 3000? Regards, D. -- http://mail.python.org/mailman/listinfo/python-list

[Tkinter] how to keep a window above all other OS windows?

2008-09-23 Thread dmitrey
Hi all, how to keep a Tkinter window above all other OS windows (i.e. including those ones from other programs)? Thank you in advance, Dmitrey -- http://mail.python.org/mailman/listinfo/python-list

Re: how to keep a window above all other OS windows?

2008-09-23 Thread dmitrey
On Sep 23, 11:21 pm, dmitrey <[EMAIL PROTECTED]> wrote: > Hi all, > how to keep a Tkinter window above all other OS windows (i.e. > including those ones from other programs)? > > Thank you in advance, > Dmitrey I have put [Tkinter] into topic of my message but someho

how to get a class instance name during creation?

2008-10-03 Thread dmitrey
hi all, I have a code z = MyClass(some_args) can I somehow get info in MyClass __init__ function that user uses "z" as name of the variable? I.e. to have __init__ function that creates field z.name with value "z". Thank you in advance, D. -- http://mail.python.org/mailman/listinfo/python-list

Re: how to get a class instance name during creation?

2008-10-04 Thread dmitrey
On Oct 3, 9:46 pm, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > dmitrey a écrit : > > > hi all, > > I have a code > > z = MyClass(some_args) > > can I somehow get info in MyClass __init__ function that user uses "z" > > as name of the variabl

__mul__ vs __rmul__ (and others) priority for different classes

2009-12-11 Thread dmitrey
hi all, I have created a class MyClass and defined methods like __add__, __mul__, __pow__, __radd__, __rmul__ etc. Also, they are defined to work with numbers, Python lists and numpy.arrays. Both Python lists and numpy arrays have their own methods __add__, __mul__, __pow__, __radd__, __rmul__ etc

[ANN] OpenOpt 0.27 (optimization), FuncDesigner 0.17 (auto differentiation)

2009-12-16 Thread dmitrey
Hi all, I'm glad to inform you about release of OpenOpt 0.27 (numerical optimization framework), FuncDesigner 0.17 (CAS with automatic differentiation, convenient modelling of linear/nonlinear functions, can use convenient modelling for some OpenOpt optimization problems and systems of linear/nonli

  1   2   >