Re: Wrap and intercept function calls

2010-02-17 Thread Dan Yamins
> For CPython, alternative 1 is to create a custom interpreter to change > (wrap) the interpretation of the call-function bytecode in the ceval loop. > That is its 'call event', and I believe this would catch every explicit > f(args) call and only such calls. > > > Python has no general metasynta

Re: Wrap and intercept function calls

2010-02-17 Thread Dan Yamins
Really, nobody has any idea about this? (Sorry to repost.) On Tue, Feb 16, 2010 at 7:29 PM, Dan Yamins wrote: > Hi: > > I'm wondering what the best way to wrap and modify function calls is. > Essentially what I want to achieve is to have a function like this: > > d

Wrap and intercept function calls

2010-02-16 Thread Dan Yamins
Hi: I'm wondering what the best way to wrap and modify function calls is. Essentially what I want to achieve is to have a function like this: def Wrap(frame,event,arg): if event == 'call': result = PerformCheck(GetArgumentsFromFrame(frame)) if Condition(result): r

Re: PyPI upload documentation

2009-09-09 Thread Dan Yamins
On Wed, Sep 9, 2009 at 4:29 PM, Robert Kern wrote: > On 2009-09-09 15:14 PM, Dan Yamins wrote: > >> Sorry to write again, but really nobody on the Python list knows how to >> get in touch with the people running PyPI's website in an effective way? >> > > h

Re: PyPI upload documentation

2009-09-09 Thread Dan Yamins
Sorry to write again, but really nobody on the Python list knows how to get in touch with the people running PyPI's website in an effective way? Thanks! Dan On Tue, Sep 8, 2009 at 6:25 PM, Dan Yamins wrote: > Dear all: > > I'm trying to upload documentation to the PyPI sit

PyPI upload documentation

2009-09-08 Thread Dan Yamins
Dear all: I'm trying to upload documentation to the PyPI site for a project I'm working on (there's a "new feature" on the PyPI site that allows admins of projects to upload a zip file of the pages of documentation.) If you have admin access to a PyPI project, you can see this on the admin page

Re: Python -> R?

2009-05-25 Thread Dan Yamins
> > If so, what are you using? I have read about RPy, is that a good > solution? Yes, I think it's quite a good solution. It's not exactly 100% as convenient as working directly in R, but that's IMO more than compensated by the ability to use Python's syntax. Make sure you use Rpy2 (the succes

Re: Building python 64-bit on OS 10.5?

2009-03-12 Thread Dan Yamins
Dear all: I've two questions: 1) I've been trying to building python as a 64-bit version on OS 10.5. I'm not too familiar with building python from scratch, and a number of basic attempts made from piecing together things I've seen on the web have failed. (For instance, ./configure --ena

Building python 64-bit on OS 10.5?

2009-03-10 Thread Dan Yamins
Dear all: I've two questions: 1) I've been trying to building python as a 64-bit version on OS 10.5. I'm not too familiar with building python from scratch, and a number of basic attempts made from piecing together things I've seen on the web have failed. (For instance, ./configure --en

Permission Issues in python cgi scripts on Apache 2.2 on OSX Leopard

2008-11-14 Thread Dan Yamins
Using Apache 2.2 on my local OSX machine, I;ve set up a virtual host to serve a directory that a project of mine is in. In this directory, I have some python .cgi scripts that I use to dynamically generated locally-used html code. In several places,scripts that work fine when not run as .cgi scr

Good approximate static function call analyzer

2008-08-19 Thread Dan Yamins
I'm looking for a reasonable static function call analysis tool for python functions -- something that will look at code (and possibly import the module it's in) and return a reasonable guess at the functions that might be called by the code. For my purposes, approximations are totally fine -- e.g

Re: An idiom for code generation with exec

2008-06-20 Thread Dan Yamins
On Fri, Jun 20, 2008 at 3:17 AM, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: Just to make things clear: you do know that you can dynamically build > functions without exec, do you ? Actually, I don't know how to do this, but would like to. Can you point me to a place where I can read more a

Execfile issue

2008-06-17 Thread Dan Yamins
I'm having (what I assume is) a simple problem regarding the way import and execfile interact. I apologize in advance for my naivete. Lets say I have the function: def Func1(): print dir() execfile('testfile') print dir() X and the file #file: testfile X

Re: Another (perhaps similar) import question

2008-06-13 Thread Dan Yamins
>> >> > > Please keep responses to python-list discussion on python-list, not my > personal mail box. -- Thanks. > Sorry. When I hit "reply" on gmail to your message, your personal email comes up as opposed to the python list address. My apologies for not looking for closely. > I'd suggest u

Re: A package import question

2008-06-13 Thread Dan Yamins
emove all the attributes associated with a module when I reload it. Is there any way to do this? (The operation of recursively searching through the attributes of the module and deleting those first seems to be bad since when I did that and then try to _reload_ the module, the attributes I deleted ar

Another (perhaps similar) import question

2008-06-13 Thread Dan Yamins
I also have noticed another (to me) strange thing about module imports. If anyone could explain this to me, that would be great (I apologize if it's too elementary for this list.) Suppose I have a module #file: testmodule.py a = 1 When importing this module, obviously 'a' becomes an attrib

A package import question

2008-06-13 Thread Dan Yamins
I'm having a problem importing a package in python, deleting some of what's been imported, and then reimporting. (I'm the sure the problem is trivial, but I just don't understand it.) I have a directory of python modules called Operations. It contains a python module called archive.py.Here's