[Pythonmac-SIG] Deepcopy failure. How to find what failed?

2011-04-28 Thread Lou Pecora
(*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

Re: [Pythonmac-SIG] Is this a reasonable way to do multiprocessing?

2011-04-19 Thread Lou Pecora
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

[Pythonmac-SIG] Is this a reasonable way to do multiprocessing?

2011-04-19 Thread Lou Pecora
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

Re: [Pythonmac-SIG] Framework Python and X11

2011-03-10 Thread Lou Pecora
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. ___

Re: [Pythonmac-SIG] How to get a Mac OS X version of Tcl/Tk rather than X11 version.

2011-01-27 Thread Lou Pecora
- 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

Re: [Pythonmac-SIG] C++ ABI 1002/102 incompatibility with wxPython

2011-01-26 Thread Lou Pecora
- 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

[Pythonmac-SIG] How to get a Mac OS X version of Tcl/Tk rather than X11 version.

2011-01-24 Thread Lou Pecora
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

Re: [Pythonmac-SIG] problems with sys.path

2008-03-09 Thread Lou Pecora
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. __

Re: [Pythonmac-SIG] Problems with PYTHONPATH using MacPorts Python 2.4 & 2.5

2007-05-10 Thread Lou Pecora
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

Re: [Pythonmac-SIG] [SciPy-user] Best/Safest way to parse NumPy array in C extension?

2006-12-12 Thread Lou Pecora
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

Re: [Pythonmac-SIG] [SciPy-user] Best/Safest way to parse NumPy array in C extension?

2006-12-12 Thread Lou Pecora
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

[Pythonmac-SIG] Best/Safest way to parse NumPy array in C extension?

2006-12-12 Thread Lou Pecora
_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

Re: [Pythonmac-SIG] [SciPy-user] C-extensions for NumPy code available.

2006-12-08 Thread Lou Pecora
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

[Pythonmac-SIG] [SciPy-user] C-extensions for NumPy code available.

2006-12-08 Thread Lou Pecora
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