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
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
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
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
, but the book has the recipe in
chapter
20.15.
malv
--
http://mail.python.org/mailman/listinfo/python-list
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
Sorry, the above link should read:
http://shfs.sourceforge.net
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
remain fully functional.
Thank you!
malv
--
http://mail.python.org/mailman/listinfo/python-list
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
appreciated.
malv
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
Thank you kindly, Erik.
malv
--
http://mail.python.org/mailman/listinfo/python-list
"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
,
malv
--
http://mail.python.org/mailman/listinfo/python-list
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
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
Thanks Scott. I missed that doing cut & paste.
--
http://mail.python.org/mailman/listinfo/python-list
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
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/
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
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
ython 2.3.
malv
--
http://mail.python.org/mailman/listinfo/python-list
idea.
malv
--
http://mail.python.org/mailman/listinfo/python-list
at Gentoo. Novell is kind of a mess.
FWIW, that's my honest opinion.
malv
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
st though.
Would there be anything special with sleep?
Regards,
malv
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
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
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
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
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
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
60 matches
Mail list logo