I got an evaluation version of Qt for Windows and installed PyQt.
However, it gives me this error message:
"ImportError: DLL load failed:"
It doesn't seem to see the "qt-mteval" DLL, even though I made
sure that the paths to "lib" and "bin" subfolders of Qt are there in
the PATH.
I installed Qt
Dan Sommers wrote:
On 29 Dec 2004 21:03:59 GMT,
Grant Edwards <[EMAIL PROTECTED]> wrote:
On 2004-12-29, Reinhold Birkenfeld <[EMAIL PROTECTED]> wrote:
Perl6 experiments with the use of guillemots as part of the syntax.
As if Perl didn't look like bird-tracks already...
http://www.seabird.org/educa
As a tester, my vote goes to extending the "Testing" subsection of the
"Testing, debugging and optimizing". I'd like to see more testing tools
discussed there. Maybe py.test, PyFIT, and possibly others.
Grig
--
http://mail.python.org/mailman/listinfo/python-list
Aahz <[EMAIL PROTECTED]> wrote:
> In article <[EMAIL PROTECTED]>,
> Alex Martelli <[EMAIL PROTECTED]> wrote:
> >
> >Hmmm - have you looked at Deitel, Deitel, Liperi, Wiedermann, "Python
> >how to program", chapters 18 (Process Management) and 19
> >(Multithreading), pages 613-687? They seem to do
RM wrote:
Alex Martelli wrote:
I still
believe Tkinter coverage is going to help more readers.
Alex,
I know this can be a can of worms. But honestly, I wonder what do you
base that idea on.
-Ruben
Tkinter is a part of the Python core, and so will be available to the
majority of beginners. Tkinte
Craig Ringer <[EMAIL PROTECTED]> wrote:
> On Wed, 2004-12-29 at 23:54, Thomas Heller wrote:
>
> > I found the discussion of unicode, in any python book I have, insufficient.
>
> I couldn't agree more. I think explicit treatment of implicit
> conversion, the role of sysdefaultencoding, the u'' co
<[EMAIL PROTECTED]> wrote:
> As a Python beginner, I had a difficult time with the section on
> "Slicing a sequence" (p. 47). In particular, a better explanation and
> examples of negative indicies would be helpful.
Good point, thanks.
> This is nitpicking in what I consider to be a very good
Fernando Perez <[EMAIL PROTECTED]> wrote:
> Alex Martelli wrote:
>
> > the coverage of Twisted and adding just a few things (numarray --
> > perhaps premature to have it _instead_ of Numeric, though; dateutils,
>
> You might want to keep in touch with the scipy/numarray gang on this
> particular
What you say is true. However, I didn't think the target audience of
this book was newbies. Python newbies yes, but not programming
newbies. For programming newbies I would recommend the "Learning
Python" book instead.
The availability argument, however, is a good point.
--
http://mail.python.
Russell E. Owen <[EMAIL PROTECTED]> wrote:
> In article <[EMAIL PROTECTED]>,
> [EMAIL PROTECTED] (Alex Martelli) wrote:
>
> >I'm considering proposing to O'Reilly a 2nd edition of "Python in a
> >Nutshell", that I'd write in 2005, essentially to cover Python 2.3 and
> >2.4 (the current 1st editi
On Wed, Dec 29, 2004 at 07:57:53PM -0200, Gabriel Cosentino de Barros wrote:
> i'm writting an app to display images without X... i'm scared just to think
> about writting it in C... The hardware won't run X. and the CPU is very
> humble, around 20Mhz (and it must have fade outs). it run a minimali
c d saunter <[EMAIL PROTECTED]> wrote:
> Probably not a practical sugestion, but have you considered
> ctypes? I know it's proved invaluable to our group at university - we
> like to make Python work with so many bits of weird hardware with vendor
> supplied libraries etc ...
Yes, I was c
In article <[EMAIL PROTECTED]>,
Roy Smith <[EMAIL PROTECTED]> wrote:
>In article <[EMAIL PROTECTED]>,
> Reinhold Birkenfeld <[EMAIL PROTECTED]> wrote:
>>
>> >>+<< being an operator
>
>Looks more like a smiley for "guy wearing a bowtie"
You know Ben Yalow?
--
Aahz ([EMAIL PROTECTED]) <*
In article <[EMAIL PROTECTED]>,
Alex Martelli <[EMAIL PROTECTED]> wrote:
>Aahz <[EMAIL PROTECTED]> wrote:
>> In article <[EMAIL PROTECTED]>,
>> Alex Martelli <[EMAIL PROTECTED]> wrote:
>>>
>>>Hmmm - have you looked at Deitel, Deitel, Liperi, Wiedermann, "Python
>>>how to program", chapters 18 (Proc
RM <[EMAIL PROTECTED]> wrote:
> Alex Martelli wrote:
> > I still
> > believe Tkinter coverage is going to help more readers.
>
> Alex,
>
> I know this can be a can of worms. But honestly, I wonder what do you
> base that idea on.
Availability, simplicity, stability, to name three reasons. The
Grig Gheorghiu <[EMAIL PROTECTED]> wrote:
> As a tester, my vote goes to extending the "Testing" subsection of the
> "Testing, debugging and optimizing". I'd like to see more testing tools
> discussed there. Maybe py.test, PyFIT, and possibly others.
Thanks! Very helpful input. Testing surely
On 2004-12-29, Dan Sommers <[EMAIL PROTECTED]> wrote:
> They're guillemets (with an "e"); this is a [relatively] well-known
> Adobe SNAFU.
Ah. Googling for "guillemots punctuation" did turn up enough
hits that it didn't occur to me that I was using the wrong
spelling.
--
Grant Edwards
RM <[EMAIL PROTECTED]> wrote:
> What you say is true. However, I didn't think the target audience of
> this book was newbies. Python newbies yes, but not programming
> newbies. For programming newbies I would recommend the "Learning
> Python" book instead.
Sure (or any of the other excellent t
John Roth wrote:
"Roy Smith" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
If Python had originally been invented in a unicode world, I suppose we
wouldn't have this problem. We'd just be using guillemots for tuples
(and have keyboards which made it easy to type them).
I suppose t
On Sat, 25 Dec 2004 11:37:42 +0100, Georg Brandl <[EMAIL PROTECTED]>
wrote:
>what features would you expect of a Python package manager, similar to
>CPAN or rubygems?
IMVHO it would be nice if it had a feature for "upload package/module
I have just developed" - maybe PyPi would fill up faster if
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Aahz)
wrote:
> In article <[EMAIL PROTECTED]>,
> Roy Smith <[EMAIL PROTECTED]> wrote:
> >In article <[EMAIL PROTECTED]>,
> > Reinhold Birkenfeld <[EMAIL PROTECTED]> wrote:
> >>
> >> >>+<< being an operator
> >
> >Looks more like a smiley for "gu
David M. Cooke wrote:
Ideally, I think the better way is if getattr, when raising
AttributeError, somehow reused the old traceback (which would point
out the original problem). I don't know how to do that, though.
Maybe a solution could be to put the attribute name in the
AttributeError exception
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Alex Martelli) wrote:
>Russell E. Owen <[EMAIL PROTECTED]> wrote:
>
>> In article <[EMAIL PROTECTED]>,
>> [EMAIL PROTECTED] (Alex Martelli) wrote:
>>
>> >I'm considering proposing to O'Reilly a 2nd edition of "Python in a
>> >Nutshell", that I'
I would like to exclude some files from Plone control within the same
virtual host. The problem is, I cannot use mod_rerwite because Plone needs
mod_proxy for working correctly. So the following rule does not work for
*.php files at all:
RewriteEngine on
RewriteRule \.php - [L]
ProxyPass /
http://
This may be a dumb question, but are there any practical advantages of
compiling a python application to *.pyo, or *.pyc? I haven't noticed any
difference in the performance of text *.py or a bytecompiled file.
--
http://mail.python.org/mailman/listinfo/python-list
Dnia 29 Dec 2004 23:57:14 GMT, LutherRevisited napisał(a):
> I haven't noticed any difference in the performance of text *.py
> or a bytecompiled file.
Importing modules works faster.
--
JZ ICQ:6712522
http://zabiello.com
--
http://mail.python.org/mailman/listinfo/python-list
LutherRevisited wrote:
This may be a dumb question, but are there any practical advantages of
compiling a python application to *.pyo, or *.pyc? I haven't noticed any
difference in the performance of text *.py or a bytecompiled file.
For a large application, the startup cost may be noticable, as i
Mike Meyer wrote:
Python's threading models is pretty primitive. You get the C
model (which is error-prone), the Java model (in 2.4, and also
error-prone), or Queues.
Can you please expand on your words above? I have no idea
what you are talking about with the "Java model" and your
implication tha
LutherRevisited wrote:
This may be a dumb question, but are there any practical advantages of
compiling a python application to *.pyo, or *.pyc? I haven't noticed any
difference in the performance of text *.py or a bytecompiled file.
The main script is generally not compiled, but all imported
scri
I would not think that a generic deepcopy would work for all cases. An
object can be as simple as a number, for instance, but can also be as
complex as the universe. I can't imagine anybody would know how to copy a
complex object otherthen the object itself.
I always think that a well designed
On Wed, 29 Dec 2004 22:47:55 +1000, Nick Coghlan <[EMAIL PROTECTED]> wrote:
>said>
>
>Bengt Richter wrote:
>> A second time a key may be hashed is when it is used as a lookup key. This
>> can be a reference to
>> the identical key object first used, or it can be a new object. A new object
>> has
Hi,
i tried to find the file and line in the C sources of python
where the command "import" is implemented. Can anybody give
me some hint on this?
Thanks,
Torsten.
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
The Tkinter OptionMenu widget has me a bit confused. I have set up an
OptionMenu to expand along the X axis as the window expands. What I
find though is that the width of the submenu displaying the list of
items in the menu does not expand.
This is the object I'm talking about:
popup =
hello all,
I am planning to start coding a nanoscale design software in
python with QT interface.I have to do this in windows or linux.Intially
windows would be fine.
I have struggled almost full day today trying to make
from import qt *
execute...I have the basic python cor
I discovered the hardway what inspect.isclass() is doing. Consider this no
brainer code:
###
import inspect
class Abc:
def Hello(self):
return
an_instance=Abc()
print inspect.isclass(an_instance)
###
It took me a while to understand how I can get inspect.isclass to return a
True (l
Alex Martelli wrote:
Fernando Perez <[EMAIL PROTECTED]> wrote:
A mention of the particular problems with numarray might be a good idea, so
that readers are aware of Numeric and where it may still be preferable to
numarray, but with the understanding that it's a (shrinking) niche. Hopefully
one da
Thanks for the responses! And sorry for the late reply, I had to force
myself away from the computer for a day.
M.E.Farmer,
Yes I've been having a little bit of trouble with name spaces, but this
self thing is actually starting to make sense the more I think about it
-- I hadn't thought too much a
free ebook python download at http://www.free-
itebooks.com/free_ebook_python_free_ebooks_python
Ebook is splitted in 1 mb each for ease download
--
http://mail.python.org/mailman/listinfo/python-list
Hello. I am sorry if this has been asked before,
but I am new here.
If I recall correctly, Python can be used as a
scripting language for other programs, as if
the program had a builtin Python interpreter.
I wish to extend my programs by making them
scriptable with Python scripts.
Is this possib
Assuming your program is written in C/C++, I would recommend that you start
with SWIG.
http://www.swig.org
You can play around with that as a start. If later you decided that SWIG is
not for you, you can always do it natively. There are plenty of
information at www.python.org.
"Squirrel Havoc
In article <[EMAIL PROTECTED]>,
Roy Smith <[EMAIL PROTECTED]> wrote:
>In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Aahz)
>wrote:
>> In article <[EMAIL PROTECTED]>,
>> Roy Smith <[EMAIL PROTECTED]> wrote:
>>>In article <[EMAIL PROTECTED]>,
>>> Reinhold Birkenfeld <[EMAIL PROTECTED]> wrote:
I haven't play with the thread stuff in Python (yet) but in general terms
(from a C mind), one should not expect read/write actions to be sequential
across threads. I would assume the Python threads eventually goes back to
some system calls for thread handling. If that were the case, you should
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Aahz)
wrote:
> In article <[EMAIL PROTECTED]>,
> Roy Smith <[EMAIL PROTECTED]> wrote:
> >In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Aahz)
> >wrote:
> >> In article <[EMAIL PROTECTED]>,
> >> Roy Smith <[EMAIL PROTECTED]> wrote:
> >>>In
On Wed, 29 Dec 2004 11:42:00 -0600, Mike Meyer <[EMAIL PROTECTED]> wrote:
>[EMAIL PROTECTED] writes:
>
>> @infix
>> def interval(x, y): return range(x, y+1) # 2 parameters needed
>>
>> This may allow:
>> assert 5 interval 9 == interval(5,9)
>
>I don't like the idea of turning words into operators.
Just looking it appears you are trying to install SPE in Python24, which I
don't think will work. Myself I'm still on Python23 because IDEs haven't
caught up yet. I believe if you put Python23 in and install it there it will
work. On another note you may want to get Boa-constructor instead. Not
Torsten Mohr <[EMAIL PROTECTED]> writes:
> i tried to find the file and line in the C sources of python
> where the command "import" is implemented. Can anybody give
> me some hint on this?
Well, there are several levels, depending on what you are looking for.
The literal "import" syntax in a so
Thanks, yielding has solved all remaining problems I had with this gui.
--
http://mail.python.org/mailman/listinfo/python-list
> "Squirrel" == Squirrel Havoc <[EMAIL PROTECTED] (takeout) (takeout)>
> writes:
Squirrel> Hello. I am sorry if this has been asked before, but I
Squirrel> am new here.
Welcome
Squirrel> If I recall correctly, Python can be used as a scripting
Squirrel> language for othe
Few questions. I have a module "combin" which contains "Combin" and "Prob"
classes. This is the "Prob" class:
class Prob:
def binprob(self,n,k,p):
fewerthan = sum([Combin().kcomb(n,i)*((p**i)*(1-p)**(n-i)) for i in
range(k)])
exact = Combin().kcomb(n,k)*((p**k)*(1-p)**(n-k))
Hi,
I have the following situation where I only open the file on the Search
class (where it should be used more often) and I want to reutilize search
methods to find the exact location of where the changes should occur. In
code terms, I have something like:
an_instance=Abc()
But what good is that? Of course I know Abc is a class, why would I want to
inspect it so that it would tell me what I already know?
Well, for no reason in that case. For the same reason you would not
call isinstance(an_instance, Abc) if you already know an_instance is an
ins
Bengt Richter:
> OTOH, there is precedent in e.g. fortran (IIRC) for named operators of the
> form .XX. -- e.g., .GE. for >= so maybe there could be room for both.
> Hm, you could make
>
> x .infix. y
> x .op1. y .op2. z => op2(op1(x, y), z)
The problem being that that's already legal s
Nicolas,
Thanks for the response. Please see comment below.
"Nicolas Fleury" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > an_instance=Abc()
>
> > But what good is that? Of course I know Abc is a class, why would I
want to
> > inspect it so that it would tell me what I already
Hi
Im 22 and I really need someone to take care of me. Please take a look at my
home page, you can email me and maybe we could get in touch and have some fun.
My home page is herehttp://www.sonicboards.com/dianehome.htm -
Please get in touch soon :)
On Wed, 29 Dec 2004 13:11:43 -0500, Steve Holden <[EMAIL PROTECTED]> wrote:
>Mike Meyer wrote:
>
>> [EMAIL PROTECTED] writes:
>>
>>
>>>@infix
>>>def interval(x, y): return range(x, y+1) # 2 parameters needed
>>>
>>>This may allow:
>>>assert 5 interval 9 == interval(5,9)
>>
>>
>> I don't like t
Steve Holden wrote:
> I've tried a number of these tools, including BlackAdder, wxDesigner,
> wxGlade and BoaConstructor. I even paid money for some of them.
I have also tried each of these and paid money for the first two. My
personal favorite is wxDesigner. It is very polished and worth every
On Thu, 30 Dec 2004 03:37:38 GMT, Andrew Dalke <[EMAIL PROTECTED]> wrote:
>Bengt Richter:
>> OTOH, there is precedent in e.g. fortran (IIRC) for named operators of the
>> form .XX. -- e.g., .GE. for >= so maybe there could be room for both.
>
>> Hm, you could make
>>
>> x .infix. y
>
>
>>
On Thu, 30 Dec 2004 03:55:12 GMT, [EMAIL PROTECTED] (Bengt Richter) wrote:
[.. buncha stuff alzheimersly based on x.attr not being parsed as
x.attr ;-/ ]
> from rational import rat as RAT
>
> if x .RAT. y > 1 .RAT. 3: do_it()
>
>or
> your turn ;-)
>
Andrew got there first ;-)
Still, see my
Jon wrote:
Obviously I don't need PeekNamedPipe here but I know the pipe has something
in it and wanted to try it out. The code all works fine if I comment out
PeekNamedPipe.
The pipes returned by the win32pipe.popen calls are standard file-like objects,
rather than win32 Named Pipes. The only way
I wrote:
>>> Also the difference of time is not much...
>>> How do we best optimize our task by using threads... please help...
Duncan Booth Wrote:
>The only times when it may result in a decrease
>in the running time... are when the time the task...when
> multiple CPU's are involved.
I fotgot to
On Thu, 30 Dec 2004 04:46:25 GMT, [EMAIL PROTECTED] (Bengt Richter) wrote:
[...]
>Ok, well, that's happened to me before ;-)
>We'll have to find a way to make it illegal, but it's not likely to be quite
>as clean.
>
>x ..OP y
>x ./OP y
>x .x .. y
>X ._OP_. y
Bzzzt! ;-/
>x
LutherRevisited wrote:
> Thanks, yielding has solved all remaining problems I had with this
gui.
Thank you for the followup, glad to have helped.
Study, learn , pass it on.
M.E.Farmer
--
http://mail.python.org/mailman/listinfo/python-list
"Gurpreet Sachdeva" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> So That means blindly using threads on any process won't help!
>
It depends on what "help" means to you. Both Windows and Unix (and it's
variances) are considered "thread-weak" OSes. So, using thread will come
Thanks for the followup,
I just wanted to mention that you still need to read that stuff thru
several times, because...
there are no variables in python (yea I know others will say otherwise
;)
Yep, I said it, none.
There are NAMES, thats why there are NAMESPACES.
A name is just a reference or 'han
It's me wrote:
I guess another example would be an assert on the type of argument:
def foo(someClass):
assert inspect.isclass(someClass)
# rest of code
But that would always fail! (I just tried it).
Are you sure you haven't pass an instance instead of a class? Remember,
classes are also
>>> So That means blindly using threads on any process won't help!
> It depends on what "help" means to you.
Help means to improve processing speed in achieving a particular
task... *Help* here also means that I have a processor farm, how do I
best use them to get maximum processing speed out of t
M.E.Farmer wrote:
there are no variables in python
While it's true that in Python it's more appropriate to talk about names
and bindings instead of variables and values, there is a parallel, and
you can get a fair distance without having to fully convert to the
names/bindings terminology.
That
Are there any plans for developing a standard IDE for python that's
included with the python installation? I found information about other
IDE's elsewhere online, but couldn't even find any mention of this
possibility.
I'm still relatively new to Python--I switched over from VB--and I
found it dif
Bengt Richter wrote:
Essentially syntactic sugar to avoid writing id(obj) ? (and to get a little
performance
improvement if they're written in C). I can't believe this thread came from the
lack of such sugar ;-)
The downside of doing it that way is you have no means of getting from the id()
store
Terry Reedy wrote:
"Nick Coghlan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
This *is* a bug (since Guido called it such), but one not yet fixed as
the obvious solution (removing object.__hash__) causes problems for
Jython,
and a non-obvious solution has not been identified.
S
Thomas Bartkus schrieb:
When run under Linux, my wxPython programs follow the look and feel of my
Gnome desktop. When the same program is run on Windows, it follows that
desktop theme. Both Gnome and Windows XP alter the the controls design
according to user preferences. wxPython GUIs reflect thi
101 - 171 of 171 matches
Mail list logo