On May 25, 12:07 am, John Machin wrote:
> "switching" scarcely seems to be the right description. You appear to
> be running the same code from one repository simultaneously available
> to two different platforms.
>
> Try this: Instead of running your code straight from your repository,
> set up
On May 25, 12:08 am, Dave Angel wrote:
>
> Is Clearcase still around? I hope it works better than it did in 1992.
>
I don't know how it worked back then, but if it's worse than today, I
don't know how they ever managed to get people to use it. I'm not a
fan and I don't have a choice about using
On May 24, 3:58 pm, John Machin wrote:
>
> What problems? Like avoiding having to recompile your .py files makes
> your app run too fast?
>
There are real problems with this. I'm having similar problems when
switching
between Solaris and Windows.
The code is in clearcase, which uses some sort of
Well spotted :)
That does seem to be the problem. Adding removal of the .pyc file will
make the tests pass.
I guess that python doesn't use the higher resolution timestamp
you can get from at least Solaris when doing 'stat' on a file.
Thanks for the help.
/Mattias
On Apr 23, 10:28 pm, Arnaud
Hi,
I'm having problem when I'm trying to import modules using the
imp.load_module function.
At the end of this post there's some code I wrote to illustrate the
problem.
The code istself doesn't make much sense, but what I'm trying to do in
reality is allow people to customize an application by wr
On Nov 3, 2:35 pm, joa2212 <[EMAIL PROTECTED]> wrote:
> Result: Almost even worse. The application is not scaling at all.
> Every time you start a request it is hanging around on one cpu and is
> devouring it at about 90-100% load. The other 31 CPUs which are shown
> in "mpstat" are bored at 0% loa
Hi again,
Just wanted to say thanks.
I now see that I misunderstood where the problem was and I got
useful information about how importing stuff works.
My problem is solved and I'm grateful for your help.
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I've been trying to get some sort of singleton working in python, but
I struggle a bit and I thought I'd ask for advice.
The first approach was simply to use a module, and every variable in
it will be seen by all who import the module.
That works in some cases, but not if I have the following
On Apr 16, 11:44 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote:
> > Now this is what confuses me: Why does it say that I have the wrong
> > type when it's the same type as it suggests?
>
> When referring to the type, you must *always* form the address of the
> type structure, including, but not l
On Apr 16, 7:49 pm, "edfialk" <[EMAIL PROTECTED]> wrote:
> Jim: I need years too, basically from 1960-2000. Don't want to
> hardcode all those days :)
>
> Matt: Thanks, I will try this out.
>
> Paul: I don't believe we need leapseconds. Leap days definitely.
>
> I'll let you know how Matt's code
On Apr 17, 6:41 am, [EMAIL PROTECTED] (Alex Martelli) wrote:
> edfialk <[EMAIL PROTECTED]> wrote:
> > Hi, does anyone happen to know of ascriptthat would return the
> > number ofsecondsin amonthif I give it amonthand a year?
>
> > My python is a little weak, but if anyone could offer some suggestio
On Apr 16, 9:31 pm, Michael Hoffman <[EMAIL PROTECTED]> wrote:
> I can't answer your question since I have no experience
> writingextensiontypes. I know this is at least partially a learning exercise
> for you, but might I suggest that your time might be better spent
> learning Boost.Python instea
On Apr 16, 6:22 pm, "edfialk" <[EMAIL PROTECTED]> wrote:
> Hi, does anyone happen to know of a script that would return the
> number of seconds in a month if I give it a month and a year?
>
something like this might work, it should event handle DST correctly.
You could read up on mktime() if you w
Hi,
I'm having a bit of trouble when writing a python extension. I can't
seem to figure out what I did wrong.
I tried to make a minimal example, but it's still quite a bit of
code.
It would be very appreciated if anyone could tell me what I've done
wrong.
First a short description of what I've do
Sheldon wrote:
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 1077321856 (LWP 32710)]
> 0x40297b83 in mallopt () from /lib/tls/libc.so.6
> (gdb) bt
> #0 0x40297b83 in mallopt () from /lib/tls/libc.so.6
> #1 0x402958ba in free () from /lib/tls/libc.so.6
> #2 0x40
Hi python experts
In C++ I can do something like this:
class Base {
public:
void f() { this->f_(); }
private:
virtual void f_() = 0;
};
class Derived : public Base {
private:
void f_() { // Do something }
};
int main() {
Derived d;
d.f();
}
The point of this is that th
16 matches
Mail list logo