Re: Newbie: returning dynamicly built lists (using win32com)

2006-06-06 Thread Nick Smallbone
I'm afraid I don't have a Windows machine to test on, but.. Ransom wrote: > I get an error like: > [ 0x15450880>] > This isn't an error. This is a list with one element, where the element apparently represents a range of Excel cells. So by using that element you can do things like changing the fo

Re: __getattr__ and functions that don't exist

2006-05-25 Thread Nick Smallbone
Erik Johnson wrote: > Maybe I just don't know the right special function, but what I am wanting to > do is write something akin to a __getattr__ function so that when you try to > call an object method that doesn't exist, it get's intercepted *along with > it's argument*, in the same manner as __ge

Re: C-API: A beginner's problem

2006-03-19 Thread Nick Smallbone
Duncan Booth wrote: > Heikki Salo wrote: > > > > > And closer look tells that the code should not even compile. Is the > > code cut & pasted directly? Line "list[i] = item;" tries to assign a > > pointer to an int-array, which should not compile. There are other > > similar oddities. > > ... such a

Re: About IDLE?

2006-03-09 Thread Nick Smallbone
Dr. Pastor wrote: > Any reply? > ahem. three replies, when i counted: http://groups.google.com/group/comp.lang.python/browse_frm/thread/ab0c8455251e616c/ -- http://mail.python.org/mailman/listinfo/python-list

Re: About IDLE?

2006-03-09 Thread Nick Smallbone
Sybren Stuvel wrote: > Dr. Pastor enlightened us with: > > When I select Run Module in the Edit window, I got only > > two >>> after the RESTART line. > > I expected to see the output of several commands! > > You never gave it any commands that print output. > > I suggest reading the Python tutoria

Re: How to force creation of a .pyc?

2006-02-22 Thread Nick Smallbone
mrstephengross wrote: > I would like to distribute a python program, but only in .pyc form (so > that people cannot simply look at my code). Is there a way to do this? > I've read up a little on the logic by which python creates .pyc's, and > it sounds like python requires the main executed program

Re: Clarity: GIL, processes and CPUs etc

2006-02-15 Thread Nick Smallbone
[EMAIL PROTECTED] wrote: > I have been reading many of the posting on the GIL and impact on > threading etc. > I have found is confusing and would welcome some clarity on this. > > I understand that embedding the interpreter in a C/C++ application > limits it to one CPU. > If the application is mul

Re: func(*params)

2005-11-18 Thread Nick Smallbone
David Duerrenmatt wrote: > Hi there > > For some reasons, I've to use Python 1.5.2 and am looking for a workaround: > > In newer Python versions, I can call a function this way: > > func = some_function > func(*params) > I think the "apply" function is what you want: apply(object[, args[, kwargs]

Re: PySizer 0.1

2005-11-14 Thread Nick Smallbone
Claudio Grondi wrote: > A small hint about the Web-site: > At least to me, the links to the documentation as e.g. > > http://pysizer.8325.org/doc/auto/home/nick/sizer-trunk/doc/auto/scanner.html > are broken (no big thing, because the distro has it anyway). > Oops. That should be fixed now. --

ANN: PySizer 0.1

2005-11-13 Thread Nick Smallbone
I'd like to announce the first release of PySizer, a memory usage profiler for Python code. PySizer was written as part of Google's Summer of Code. The source, documentation and so on are at http://pysizer.8325.org. The current release is at http://pysizer.8325.org/dist/sizer-0.1.tar.gz. The code