> You should move these 'import ...' statements to your *script* so
that
> py2exe doesn find them, not to the setup script.
>
> Thomas
Removing import statements only returns this error message before the
package compiles:
= "custdb",
'setup' is not defined
No files are returned.
--
http://ma
Adam wrote:
We are running a numbers game at our retirement village and using a roulette
wheel to generate the numbers. but this wheel is only about 12 in diameter
and is little more than a toy. So we came up with the idea of using a random
number generator to generate numbers from 0 to 36 and d
Viktor wrote:
I just noticed that wxPython is leaking memory?! Playing with
wxPython-demo, I started with 19MB used, and ended whith almost 150MB
used?!
It's wxPython 2.5.3.1 running on Python 2.4.
On which platform?
And how are you measuring this apparent memory consumption?
And what happens (assu
"Nevertheless, perhaps you'll still post the answer here so
that others who come along later can benefit from your
experience in the same way that you benefited from reading
whatever page you found (even if you didn't benefit from
my suggestions...). "
Your funny :) Perhaps you should take your ow
jdonnell wrote:
"Nevertheless, perhaps you'll still post the answer here so
that others who come along later can benefit from your
experience in the same way that you benefited from reading
whatever page you found (even if you didn't benefit from
my suggestions...). "
Your funny :) Perhaps you shou
I've installed Python 2.4 under WinXP and am attempting to
create an extension module using the steps outlined here:
http://python.org/doc/2.4/ext/win-cookbook.html
I'm specifically trying to perform step 6. Creating a brand
new project using VC6.
The trouble I have is that there are no PC or PCbui
I am running:
Fedora Core 1
Python 2.4
Apache 1.3.3
mod_python 2.7.11
When I try to access the test mptest.py file I receive:
> Internal Server Error
When starting apache in my error_log I find:
> [Wed Feb 16 20:41:44 2005] [warn] Loaded DSO libexec/mod_python.so
uses plain Apache 1.3 API, thi
On Wed, 16 Feb 2005 20:57:18 -0500, Scott
<[EMAIL PROTECTED]> wrote:
>I've installed Python 2.4 under WinXP and am attempting to
>create an extension module using the steps outlined here:
>http://python.org/doc/2.4/ext/win-cookbook.html
>
>I'm specifically trying to perform step 6. Creating a bran
Paul Rubin wrote:
Fred Pacquier <[EMAIL PROTECTED]> writes:
KirbyBase sounds like something that could fit the bill.
Hmm, this looks kind of nice. However, when used in embedded mode,
the overview blurb doesn't say anything about concurrency control.
I don't want to use it in client/server mode,
John Machin wrote:
> On Wed, 16 Feb 2005 20:57:18 -0500, Scott
> <[EMAIL PROTECTED]> wrote:
>
>
>>I've installed Python 2.4 under WinXP and am attempting to
>>create an extension module using the steps outlined here:
>>http://python.org/doc/2.4/ext/win-cookbook.html
>>
>>I'm specifically trying to
I'm trying to use the 'numarray' package (v1.1.1) under Python 2.4
running under CygWin.
I initially downloaded the Windows executable version of the numarray
package, and installed it under C:\program
files\python\lib\site-packages. That works with the Windows version of
Python, but not the CygW
rbt wrote:
## for fs in fs_objects:
##
##for f in fs[2]:
##if f in file_skip_list:
##print f
##fs[2].remove(f)
##
##for d in fs[1]:
##if d in dir_skip_list:
##print d
##
Jamey Cribbs <[EMAIL PROTECTED]> writes:
> Either of these server scripts would have to be running as a process
> either on your web server or on another server on your network in
> order for them to work. I don't know if that would be an issue for you.
Yes, that's the whole point. I don't want
This could have been a really unique thread: 15 messages, 1 author
--
http://mail.python.org/mailman/listinfo/python-list
Paul Rubin wrote:
Jamey Cribbs <[EMAIL PROTECTED]> writes:
Either of these server scripts would have to be running as a process
either on your web server or on another server on your network in
order for them to work. I don't know if that would be an issue for you.
Yes, that's the whole point. I
Several people have told you about dispatching to the different methods
based on the different parameters. Another technique is to have the
different initialisation methods be static or class methods. For
example, the python dictionary type can be instantiated in a variety of
ways:
dict(a=1, b=2,
Paul Rubin:
> Oh yow, it looks pretty complicated. Do you have any example code
> around that uses the transaction stuff? If not I can try to figure
it
> out, but it looks like it would take significant effort.
This was my impression too :-( The ZODB is way much easier to use so
at the end I use
Jamey Cribbs <[EMAIL PROTECTED]> writes:
> The only time there might be trouble is if two clients try to write to
> the same table (physical file) at the same time.
Yes, that's what I'm concerned about.
> When it writes to a file, KirbyBase opens it in append mode (r+, I
> think). My guess woul
"Michele Simionato" <[EMAIL PROTECTED]> writes:
> This was my impression too :-( The ZODB is way much easier to use so
> at the end I used just that. Apparently the bsddb stuff is more
> complicated than needed and the documentation sucks. However,
> it does satisfy your requirements of being alrea
Terry Reedy wrote:
"Michael Spencer" <[EMAIL PROTECTED]> wrote in message
We are both interested in the murky edges at and beyond conventional usage.
...
I am quite aware that multiple iterators for the same iterable (actual or
conceptual) can be useful (cross products, for example). But I am d
On Tue, Feb 15, 2005 at 06:57:47PM -0800, Paul Rubin wrote:
> I've started a few threads before on object persistence in medium to
> high end server apps. This one is about low end apps, for example, a
> simple cgi on a personal web site that might get a dozen hits a day.
> The idea is you just wa
John Lenton <[EMAIL PROTECTED]> writes:
> flock(fp, LOCK_EX) # block until can write ...
> Of course I'm probably overlooking something, because it really can't
> be this easy, can it?
Yes, maybe so. I'm just way behind the times and didn't realize flock
would block until existing inc
Adam DePrince wrote:
How is a spencerator [an iterator that doesn't return itself unmodified on iter]
> different than itertools.tee?
Taking your question literally, it changes the behavior of an itertools.tee
object 'tee', so that iter(tee) returns tee.__copy__(), rather than tee itself.
It wa
Hi
If I derive a class (eg Matrix) from list I presume this implies the classic
OOP 'is a' relation between the derived and super class.
I therefore presume I can use a derived class in any context that I can use
the superclass.
In the given example I want to apply deepcopy() to the Matrix ins
peter wrote:
brain reset and understood
thx a lot for all your answers
Peter
Now that you've got reset, you might want to consider an alternative solution:
def fA(input):
return input
oldfA = fA # Hold a reference to the the old function
def newFA(input):
"Do something new"
return oldfA
What's the difference between ctypes, SWIG and SIP?
I've used SWIG to "convert" C source to Python (as I believe SIP
does?), so does ctypes wrap functions from binaries (e.g. DLL's)?
--
http://mail.python.org/mailman/listinfo/python-list
The Error:
(Most recent call last):
C:\Documents and Settings\Gateway User\ Desktop\custdb\setup.py", line
1,
name = "custdb",
'setup' is not defined
There may be a single word infront of 'setup' on the fourth line, it
scramble on my screen because I have to use a screen capture to read
th
Michael Spencer wrote:
Steven Bethard wrote:
So, I have a list of lists, where the items in each sublist are of
basically the same form. It looks something like:
...
Can anyone see a simpler way of doing this?
Steve
You just make these up to keep us amused, don't you? ;-)
Heh heh. I wish. It's
What happens if for any reason the application crashes?
Locked files will stay locked or not? And if yes, how do I
unlock them?
Michele Simionato
--
http://mail.python.org/mailman/listinfo/python-list
Michael Spencer wrote:
>>> def resample2(data):
... bag = {}
... random.shuffle(data)
... return [[(item, label)
... for item, label in group
... if bag.setdefault(label,[]).append(item)
... or len(bag[label]) < 3]
...
Actually the "windows" running very good under the xbox-NTOS via
xboxmediacenter. its just limited functions(not easy to programming the
"windows" prog.), if we can find WxPython-like can be ported (I can import *
from it to my xboxPython) )it will be a great great . You will have
HD scre
Steven Bethard wrote:
Michael Spencer wrote:
Steven Bethard wrote:
So, I have a list of lists, where the items in each sublist are of
basically the same form. It looks something like:
...
Can anyone see a simpler way of doing this?
Steve
You just make these up to keep us amused, don't you? ;-)
Paul Rubin wrote:
> The issue with using an rdbms is not with the small amount of code
> needed to connect to it and query it, but in the overhead of
> installing the huge piece of software (the rdbms) itself, and keeping
> the rdbms server running all the time so the infrequently used app can
Adam wrote:
> "Adam" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> >
> > "BOOGIEMAN" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> >> On Tue, 15 Feb 2005 21:22:43 GMT, Adam wrote:
> >>
> >>> Please help me.
> >>> How do you clear the screen and then display a
I've done some C++ and Java in the past, and have recently learned
a fair amount of Python. One thing I still really don't get though
is the difference between class methods and instance methods. I
guess I'll try to narrow it down to a few specific questions, but
any further input offered on the su
I'm writing a PyQt network client for XMMS, using the InetCtrl plugin,
that on connection receives a track length.
To save on bandwidth, I don't want to be continually querying the
server for updates (e.g. has the current track finished yet?) so I
figured the best thing to do is just update after
"Adam" <[EMAIL PROTECTED]> wrote:
> So we came up with the idea of using a random number generator to
> generate numbers from 0 to 36 and display them in large figures on my
> laptop. This is for the benefit of those people who are hard of hearing.
> They like to see what is happening.
here's on
"Simon John" <[EMAIL PROTECTED]> writes:
> So, how would I make a Python program automatically call a function
> after a preset period of time, without the Python process running in
> the foreground (effectively single-tasking)?
See the signal module and use the alarm signal.
--
http://mail.pytho
John M. Gabriele wrote:
1. Are all of my class's methods supposed to take 'self' as their
first arg?
If by "class's methods" you mean methods on which you called
classmethod, then no, they shouldn't take a 'self' parameter, they
should take a 'cls' parameter because the first argument to the func
"Scott" <[EMAIL PROTECTED]> wrote:
> >>The trouble I have is that there are no PC or PCbuild
> >>subdirectories in C:\Python24. Where do I find these?
> >
> >
> > As the quoted URL says (2nd para):
> > """
> > To build extensions using these instructions, you need to have a copy
> > of the Python
201 - 240 of 240 matches
Mail list logo