(*args)
324 memo[id(x)] = y
325 if listiter is not None:
/Applications/sage-4.6/local/lib/python/copy_reg.pyc in __newobj__(cls, *args)
91
92 def __newobj__(cls, *args):
---> 93 return cls.__new__(cls, *args)
94
95 def _slotnames(cls):
TypeEr
From: Nat Echols
To: Lou Pecora
Cc: pythonmac-sig@python.org
Sent: Tue, April 19, 2011 1:39:27 PM
Subject: Re: [Pythonmac-SIG] Is this a reasonable way to do multiprocessing?
On Tue, Apr 19, 2011 at 10:11 AM, Lou Pecora wrote:
But as many of you probably know that raises a pickle error. I
on, on an 8 CPU MacBook Pro I get a 4X speedup (with 8 CPU
workers), not 8X (Activity Monitor shows all 8 CPUs are utilized ~100%). Is
there something about dual core processors that I should know about? (since 4 =
8/2).
Thanks for any pointers or info. -- Lou Pecora, my v
library. When I removed those libraries and rebuilt Sage it automatically
built
against the Apple tk/tcl libraries in /System/Library/Frameworks/Tk.framework/.
Then I got the Aqua windows. Might this be the case here?
-- Lou Pecora, my views are my own.
___
- Original Message
From: Ned Deily
To: pythonmac-sig@python.org
Sent: Thu, January 27, 2011 2:18:15 PM
Subject: Re: [Pythonmac-SIG] How to get a Mac OS X version of Tcl/Tk rather
than
X11 version.
In article <960836.10021...@web34405.mail.mud.yahoo.com>,
Lou Pecora wrote:
&g
- Original Message
From: Christopher Barker
To: Matthias Baas
Cc: pythonmac-sig@python.org
Sent: Tue, January 25, 2011 5:24:56 PM
Subject: Re: [Pythonmac-SIG] C++ ABI 1002/102 incompatibility with wxPython
On 1/25/11 12:19 PM, Matthias Baas wrote:
> It's not a typo, the numbers indi
interested, below is the original message I put up on the SAGE
support
group and was told it's a problem with the type of Tcl/Tk installed. -- Lou
Pecora, my views are my own.
--
I have an installation o
ibrary/Python/2.5/site-packages:
>
>
>
>
> This also does not work. I'm a bit confused on what
> to do now to get my
> paths to appear in PYTHONPATH - anybody have any
> suggestions?
-- Lou Pecora, my views are my own.
__
ich contains on each line the full path
to each of your modules' directories. You can name
the file anything, but it must have the extension
.pth . When you launch Python it will automatically
add your paths to the sys.path and you can just say
import mymodule # Import your file mymodu
umpy-discussion
Ah, yet another mailing list to join. Sigh. :-)
> Lou Pecora wrote:
>
> >> PyArrayObject *mat;
> >> PyArg_ParseTuple(args, "O!", &PyArray_Type,
> &mat);
>
> If you do this, you then need to check and see if
> the array that
YIKES. That one line should read
mat=PyArray_ContiguousFromObject(Pymat,NPY_DOUBLE,2,2);
Very sorry.
--- Lou Pecora <[EMAIL PROTECTED]> wrote:
> I've done this two ways. Which is better or safer?
>
> Say I'm passing a NumPy array (float) to a C
> extensio
_expects_ a Python object that has
contiguous data?
I've done both. Pointing C arrays to the resulting
PyArrays' data works fine, but I fear one way or the
other might be courting disaster.
BTW, I do other checks on dimension, type, etc., but I
left those out here f
This is a good idea, but I'm afraid I have no idea how
to even start this process. I've never done anything
on a Wiki. Is there some tutorial for newbies like
me? Maybe I missed a link to one there.
Thanks.
-- Lou Pecora
--- Robert Kern <[EMAIL PROTECTED]> wrote:
> T
only need to pass a
limited set of things (integers, floats, strings, and
NumPy arrays). If that's your category, this code
might help you.
-- Lou Pecora
Naval Research Lab
Washington, DC
Need
14 matches
Mail list logo