Re: Questions about extending Python...

2006-06-10 Thread malv
Redefined Horizons wrote: > I've got a third-part application that exposes a C API. I'd like to > wrap it in Python. Is there a specific forum that covers extending and > embedding Python, or are those type of questions O.K. on this list? > > Scott Huey Over the years, many posts (and questions) h

Re: using import * with GUIs?

2006-05-31 Thread malv
John Salerno wrote: > Terry Reedy wrote: > > > If I were to use Tkinter, I would 'import Tkinter as tk'. > > Good idea! > > I was kind of excited about Tkinter for a little while...seems very > easy, and it has an event delegation system that I understand! But then > I saw that for a toolbar you us

Re: Programming language productivity

2006-05-19 Thread malv
John Bokma wrote: > Connelly Barnes <[EMAIL PROTECTED]> wrote: > > > http://barnesc.blogspot.com/2006/05/programming-language-productivity.h > > tml > > C:3 hours to write the program, 5 hours to track down the memory leaks > Java: 4 hours to write the program, 6 hours to get all the exception

Re: interactive shell -- reload definitions?

2006-05-10 Thread malv
This is a question that comes up almost continuously for at least six years now. For Python users having to deal with major real-life applications, this may make them think twice about the future suitability of Python as a competitive development tool. Ruby is featuring a software modify and go fea

Re: Upgrading Class Instances Automatically on Reload

2006-05-09 Thread malv
, but the book has the recipe in chapter 20.15. malv -- http://mail.python.org/mailman/listinfo/python-list

Re: Can Python installation be as clean as PHP?

2006-05-09 Thread malv
If this bothers you, why don't you stick to a linux distro with Python installed. Very few don't. -- http://mail.python.org/mailman/listinfo/python-list

Re: Upgrading Class Instances Automatically on Reload

2006-05-09 Thread malv
Rene, No, I couldn't get it to work. Sorry, I should have included that information. At the statement b = Bar(), the following error occurs: The debugged program raised the exception unhandled AttributeError "type object 'Bar' has no attribute '__instance

Upgrading Class Instances Automatically on Reload

2006-05-09 Thread malv
Upgrading Class Instances Automatically on Reload: Recipe 20.15 out of Python Cookbook #2. Did anybody get this recipe to work? The original example by Michael Hudson works without problems. I'm using Python 2.4.1 malv -- http://mail.python.org/mailman/listinfo/python-list

Re: Python editor recommendation.

2006-05-09 Thread malv
Look at eric: http://www.die-offenbachs.de/detlev/eric3.html Editor is QScintalla I tried everithing and prefer eric. (it's free) malv -- http://mail.python.org/mailman/listinfo/python-list

Re: Binary File Reading : Metastock

2006-05-03 Thread malv
gt;> 7; /* An ieee exponent of 0xfe overflows in MBF*/ if (msbin_exp == 0xfe) return (FALSE); msbin_exp += 2; /* actually, -127 + 128 + 1 */ for (i=0; i<4; i++) msbin[i] = 0; msbin[3] = msbin_exp; msbin[2] |= sign; msbin[2] |= ieee[2] & 0x7f; msbin[1] = ieee[1]; msbin[0] = ieee[0]; return (TRUE); } Good luck, malv -- http://mail.python.org/mailman/listinfo/python-list

Re: UDP max datagram size

2006-04-12 Thread malv
I seem to recall from UDP datagram tests between linux and XP I ran a few years ago that XP maximum datagram sizes are indeed smaller than linux. -- http://mail.python.org/mailman/listinfo/python-list

Re: Programming Tutorial for absolute beginners

2006-04-08 Thread malv
Looks pretty good, except for your difficult to read examples. Don't use black backrounds with green characters. A plain white background with black text would be a major improvement. -- http://mail.python.org/mailman/listinfo/python-list

Re: Difference in Python and Ruby interactive shells

2006-04-04 Thread malv
I think reload should be preceded by import. Example: Online code modification: upon modifying and saving mytest.py issue on the interactive shell: >>>import mytest >>>reload(mytest) The shell should respond with "" (NOT:mytest.pyc) Note that modules importing mytest should not

Re: Is python very slow compared to C

2006-02-12 Thread malv
That's why Microsoft is bringing IronPython on board to have something more decent available with .NET -- http://mail.python.org/mailman/listinfo/python-list

Re: Tracking down memory leaks?

2006-02-12 Thread malv
Hi Steven, Is there any way for making Python return memory no longer needed to the OS? Cases may arise where you indeed need a big memory block temporarily without being able to split it up into smaller chunks. Thank you. malv Steven D'Aprano wrote: > Objects return memory to Python w

Re: Dual Core outlook

2006-02-08 Thread malv
it confuses and frustrates people new to Python." Possibly things are not much brighter for other languages. I'll keep on trying malv -- http://mail.python.org/mailman/listinfo/python-list

Re: Dual Core outlook

2006-02-07 Thread malv
any speed up? Is a Java program capable of this "out of the box" or does this require specific additional code? malv -- http://mail.python.org/mailman/listinfo/python-list

Dual Core outlook

2006-02-07 Thread malv
clear. The old days will never come back and the processor multiplication is likely to increase. malv -- http://mail.python.org/mailman/listinfo/python-list

Re: Numeric and matlab

2006-02-07 Thread malv
A convincing experience is to 'translate' some substantial matlab matrix code into python. You will at once see the difference between a true programming language and matlab Further, also look at matplotlib. malv -- http://mail.python.org/mailman/listinfo/python-list

Re: Accessing Windows Serial Port

2006-02-07 Thread malv
Hi All, Would anybody know whether PySerial would work over an usb/serial adapter? (what about usb/parallel adapters?) Thx. malv -- http://mail.python.org/mailman/listinfo/python-list

Re: Copying files between different linux machines

2006-01-09 Thread malv
Sorry, the above link should read: http://shfs.sourceforge.net -- http://mail.python.org/mailman/listinfo/python-list

Re: Copying files between different linux machines

2006-01-08 Thread malv
Best is shfs. This uses the safety of ssh and allows you to mount filesystems on an external computer locally with commands like mount & umount: shfsmount & shfsumount. http://shfs.sourceforge.net/ malv -- http://mail.python.org/mailman/listinfo/python-list

Re: BUG trace realtime

2005-12-29 Thread malv
f involves quite a bit of code, there are probably several if not many reasons why problems could arise. It was never my intention to reenter this function and make it thread safe. Problem solved. I was indeed a surprise for me to see Python quit this way. Thanks again for your commentary. malv

Re: BUG trace realtime

2005-12-29 Thread malv
enabled me to trace the path of the externally triggered events without too much of a hassle. Thanks again, malv -- http://mail.python.org/mailman/listinfo/python-list

BUG trace realtime

2005-12-29 Thread malv
remain fully functional. Thank you! malv -- http://mail.python.org/mailman/listinfo/python-list

Re: Wingide is a beautiful application

2005-12-18 Thread malv
Good idea. Try several. I did. Many of the above don't have either no gui designer or a rather poor one. eric is by far the best! http://www.die-offenbachs.de/detlev/eric3.html malv -- http://mail.python.org/mailman/listinfo/python-list

Re: Robotics and parallel ports

2005-12-16 Thread malv
appreciated. malv -- http://mail.python.org/mailman/listinfo/python-list

Re: Visual Python, really "Visual"?

2005-12-13 Thread malv
Look at eric3. Has the QtDesigner. In my view Qt beats anything. http://www.die-offenbachs.de/detlev/eric3.html -- http://mail.python.org/mailman/listinfo/python-list

Rpy: displaying multivariate data with pairs() and coplot()

2005-12-12 Thread malv
Did anybody manage to use pairs() or coplot() from python using the rpy module? In fact any information going a bit beyond Tim Churches' very useful examples on plot() usage in rpy would be highly welcome. Thx. malv -- http://mail.python.org/mailman/listinfo/python-list

Rpy: displaying multivariate data with pairs() and coplot()

2005-12-12 Thread malv
Did anybody manage to use pairs() or coplot() from python using the rpy module? In fact any information going a bit beyond Tim Churches' very useful examples on plot() usage in rpy would be highly welcome. Thx. malv -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: pygene - genetic algorithms package

2005-12-08 Thread malv
Thank you kindly, Erik. malv -- http://mail.python.org/mailman/listinfo/python-list

Re: Calculating Elapsed Time

2005-12-07 Thread malv
"Note that even though the time is always returned as a floating point number, not all systems provide time with a better precision than 1 second." says the doc. Can anything be said about precision if indeed your system returns figures after the decimal point? Thx. malv

Re: ANN: pygene - genetic algorithms package

2005-12-06 Thread malv
, malv -- http://mail.python.org/mailman/listinfo/python-list

Re: Favorite flavor of Linux? (for python or anything else)

2005-12-06 Thread malv
Where did I suggest that "[distros should] come with nearly everything installed"? This is utterly ridiculous. Common sense could helped you with that one. malv -- http://mail.python.org/mailman/listinfo/python-list

Re: Favorite flavor of Linux? (for python or anything else)

2005-12-05 Thread malv
It depends what you are looking for in Python. Many new features have been introduced in Python2.4 It would seem that you don't have any use for these. As I am still relatively young in Python, I am very eager to keep up. If you would have followed the posts on this board over last year or so, you

Re: Installing Eric?

2005-12-05 Thread malv
Thanks Scott. I missed that doing cut & paste. -- http://mail.python.org/mailman/listinfo/python-list

Re: Eclipse best/good or bad IDE for Python?

2005-12-05 Thread malv
sonally, I have never felt any need in Python to have to fall back on Java tools in order to program in a more efficient manner. The less clutter, the better! malv -- http://mail.python.org/mailman/listinfo/python-list

Re: Favorite flavor of Linux? (for python or anything else)

2005-12-05 Thread malv
Any popular distro would. No one is really superior from this angle. You will always find that you will from time to time have to download software and/or versions that didn't come with your distro. This is mostly no problem, especially not with python related software. -- http://mail.python.org/

Re: Eclipse best/good or bad IDE for Python?

2005-12-05 Thread malv
As "bicycle repair man integration" keeps popping up as a distinct feature of jave-based PyDev, let it be known that other IDE's also have this. For example, non-java Eric has had " bicycle repair man" integration for a very long time. Personally, in spite of intense programming in python, I've ne

Re: Installing Eric?

2005-12-05 Thread malv
ttp://kde-cygwin.sourceforge.net/) Sip 4.1.1 QScintilla 1.62 PyQt 3.13 After this get http://prdownloads.sourceforge.net/eric-ide/eric-3.8.0.tar.gz?download Unpack into a directory under your python2.4 directory. Then issue 'python install.py' and you should be ready to go (eric

Re: Favorite flavor of Linux? (for python or anything else)

2005-12-04 Thread malv
ython 2.3. malv -- http://mail.python.org/mailman/listinfo/python-list

Re: Favorite flavor of Linux? (for python or anything else)

2005-12-04 Thread malv
idea. malv -- http://mail.python.org/mailman/listinfo/python-list

Re: Favorite flavor of Linux? (for python or anything else)

2005-12-04 Thread malv
at Gentoo. Novell is kind of a mess. FWIW, that's my honest opinion. malv -- http://mail.python.org/mailman/listinfo/python-list

Re: Eclipse best/good or bad IDE for Python?

2005-12-04 Thread malv
signer. If you run linux, you get Qt and PyQt with KDE. You can keep on running gnome if you want. For windows, Qt4 is supposed to be free. Further, very extensive and attractive extensions exist: qwt and qwt3d for graphics. This is my experience. If I find better, I'll change. malv -- htt

Re: something wrong in wx

2005-12-01 Thread malv
error messages about missing definitions in _libfann. I have read about supposed disultils problems and workarounds, but I didn't manage yet. Thank you for any suggestion, malv -- http://mail.python.org/mailman/listinfo/python-list

Re: Computer Language Shootout

2005-11-30 Thread malv
Hi bearophileH, Thank you for the code example. Could you post some more information about ShedSkink? malv -- http://mail.python.org/mailman/listinfo/python-list

Re: exception KeyboardInterrupt and os.system command

2005-11-29 Thread malv
Indeed, I did the experiment again with while 1: y = os.system("sleep 1") print y and it ALWAYS returns 0, with control-c or without. >From past experience, I am pretty sure that in other cases I have been getting non-zero return values. So I would hesitate to believe that what you observe i

Re: exception KeyboardInterrupt and os.system command

2005-11-28 Thread malv
st though. Would there be anything special with sleep? Regards, malv -- http://mail.python.org/mailman/listinfo/python-list

Tablelist-tcl-tk-tile

2005-11-27 Thread malv
ppose the 8.4 versions have to be removed. Do I have to remove and recompile python 2.4 as well? Is there any compact writup on how to get going without having to delve into the inner workings and wrapping of tcl? Thx. malv -- http://mail.python.org/mailman/listinfo/python-list

Re: How to get started in GUI Programming?

2005-11-25 Thread malv
I suggest you take a look at Qt3, much superior to Tkinter or PyGtk. With Python, you have to use PyQt bindings. [EMAIL PROTECTED] wrote: > I am trying to learn GUI programming in Python, but have to confess I > am finding it difficult. > > I am not an experienced programmer - just someone who fro

Re: Using Which Version of Linux

2005-11-05 Thread malv
0 (Novell). It has kde-Python bindings to Qt installed. It also has eric3 available. So without any additional cost or trouble, you'll have a powerful, dream developer's system. malv -- http://mail.python.org/mailman/listinfo/python-list

Re: searching python/gui developper in germany

2005-10-12 Thread malv
3 or SuSE 10.0, everything is there. Simply install eric or eric3. There is also a great gui design utility in the installation. You'll be going in no time. malv -- http://mail.python.org/mailman/listinfo/python-list

How to program efficient pattern searches in a list of float numbers?

2005-09-19 Thread malv
Simple case: In this list, how to find all occurences of intervals of n adjacent indexes having at least one list-member with a value between given limits. Visualizing the list as a two-dimensional curve, this is like horizontally dragging a given rectangle over the curve and finding the x coordina

Re: some advice about Python GUI apps

2005-09-15 Thread malv
ver. I use eric3 with Novell/SuSE Pro 9.3. All you need is already there. Good luck, malv -- http://mail.python.org/mailman/listinfo/python-list

Re: Installation question

2005-09-07 Thread malv
I can't give you an exact answer, but maybe this helps a bit: I tried running both Python 2.3 and 2.4 (both 32) with Qt3 on two other distros. It never really worked and gave me lots of problems. It certainly "messed up" a few things here and there. I never managed to get things straightened out. I

Re: Online Modification of Python Code

2005-09-06 Thread malv
Your algoreload() is of the hand of a master. I'll give it a try. Thank you Bengt! -- http://mail.python.org/mailman/listinfo/python-list

Re: Online Modification of Python Code

2005-09-05 Thread malv
Diez, You are quite right on using module.name when importing module objects. This happened to be the way I ran my initial successful tests. Later I modified things by using 'import * from algotest' and my modifications stopped from coming through. In my case reload comes in very handy. I can see

Re: Online Modification of Python Code

2005-09-05 Thread malv
Hi Robert: (1) Things are not that simple. In fact in setting up a run, extensive database backup is already involved. Subsequently, data structures are built at runtime of typically 0.5Gbytes. Although saving this should work, it would require quite some debug/verification to check out the validit

Re: Online Modification of Python Code

2005-09-05 Thread malv
I wrote a module testalgo.py with some functions to be modified. After modification I typed to the interactive shell: >>>import testalgo >>>reload(testalgo) ... and things seem to workout as you suggested. At least I modified some quickie print statements to check. I use eric3 and nothing in this I

Re: Considering moving from PowerBuilder to Python

2005-09-01 Thread malv
Norm Goertzen wrote: > I've posted a previous question about IDEs and got some good feedback, > thanks, but it does seem that everyone has their own favourite IDE -- in > other words, no IDE was repeatedly recommended. > > So, is there any data on the popularity of IDEs (most users), or is > there