Help me dig my way out of nested scoping

2005-04-03 Thread Brendan
#finally, call the third party function and return its result return F(AW, BW) # end code - OK, here's my problem: How do I best store and change lastX, A(lastX) and B(lastX) in FW's scope? This seems like it should be easy, but I'm stuck. Any help would

Re: Help me dig my way out of nested scoping

2005-04-03 Thread Brendan
Thanks for the tips. Making FW a callable class (choice 5) seems to be a good (if verbose) solution. I might just wrap my temporary values in a list [lastX, lastA, lastB] and mutate them as Michael suggests. Thanks to Michael especially for the explanation of the name-binding process that's at th

Re: Help me dig my way out of nested scoping

2005-04-03 Thread Brendan
F -is- in fact an iterative optimizer that minimizes A on x (B is the derivative of A). So yes, F will call A and B on mulitple 'x's. In that case, it seems the mutable object trick is the way to go. Thanks. I didn't follow your last sentence. What about the Python Cookbook? -- http://mail.

Re: Help me dig my way out of nested scoping

2005-04-03 Thread Brendan
>James Stroud Apr 3, 3:18 pm: >I think you might want to look at "python generators". I've seen discussion of generators before, but haven't invested the time to understand them yet. This might be a good excuse. -- http://mail.python.org/mailman/listinfo/python-list

Re: IDE recommendation please

2005-10-23 Thread Brendan
As mentioned, there isn't a whole lot. I've beta tested Komodo, and it looks promising. SPE might start working now that stani has a mac. For now I use TextWrangler - a free text editor with good python support. http://www.barebones.com/products/textwrangler/index.shtml For interactive python,

Newbie Alert: Help me store constants pythonically

2005-11-06 Thread Brendan
structure since I don't have the experience to decide the merits of each in advance. I get way too frustrated about these things :) Brendan -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie Alert: Help me store constants pythonically

2005-11-06 Thread Brendan
Thanks for the vote FB. The reason I'm using that method for assigning instance attributes is that the argument list for __init__ is LOOONG. (There are many constants, I only gave two for the examples). I wanted to avoid typing them out twice. -- http://mail.python.org/mailman/listinfo/python-l

Re: ? MDI depreciated

2005-11-06 Thread Brendan
This is probably a question better suited for a wxPython or MSDN newsgroup. What OS are you referring to? What GUI toolkit are you using? Microsoft's office on Windows has moved to a model where every document has its own toolbar, menubar, and taskbar entry. Windows developers tend to mimic MS

Re: Newbie Alert: Help me store constants pythonically

2005-11-07 Thread Brendan
type=3, z=8) ] ) which I'm not sure the .ini format can easily support. I could use (key buzzword voice) XML, but I fear that might send me down the 'overcomplicating things' path. Your suggestion has given me some new places to search Google (configparser, python config files), so I'll look around for better ideas. Brendan -- http://mail.python.org/mailman/listinfo/python-list

Re: XML GUI

2005-11-08 Thread Brendan
zone/element-index.htm) Brendan -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie Alert: Help me store constants pythonically

2005-11-08 Thread Brendan
ted. Otherwise, this might be a reasonable avenue for standardizing Python. (I hope that doesn't draw to many flames :) Brendan. -- http://mail.python.org/mailman/listinfo/python-list

Re: SPE IDE for Python

2005-11-08 Thread Brendan
SPE doesn't yet integrate with CVS, but it's in active development. CVS support may come sooner than later. I have been demoing Komodo which integrates with CVS, SVN and perforce. I've been very impressed. http://aspn.activestate.com/ASPN/docs/Komodo/3.1/komodo-doc-scc.html On my pc I just use t

Checking length of each argument - seems like I'm fighting Python

2005-12-03 Thread Brendan
way to check that either all arguments are scalars, or all are lists of the same length? Is this a poor way to structure things? Your advice is appreciated Brendan -- Brendan Simons -- http://mail.python.org/mailman/listinfo/python-list

Re: Checking length of each argument - seems like I'm fighting Python

2005-12-04 Thread Brendan
I am coming at this with a "C++ mindset) but at least I have tools to do it efficiently :) Brendan -- http://mail.python.org/mailman/listinfo/python-list

Re: Python IDE (was: PythonWin troubleshooting)

2005-12-16 Thread Brendan
I use Komodo now, and love it. It has all the features you'd expect: code completion, object browsing, folding, docstring previews etc. Of course it's the only full-featured, native and stable Python IDE currently available for the mac (SPE is close), so my choice is limited. Brenda

Re: New Python.org website ?

2006-01-13 Thread Brendan
ac.org/packages/ Brendan -- http://mail.python.org/mailman/listinfo/python-list

Re: Scientific Computing with NumPy

2006-02-06 Thread Brendan
As of version 0.4.x, Scipy exclusively uses the newer NumPy module instead of the older Numeric module. The confusion is inevitable in this time of transition, but their intent is to standardize on one array package. Brendan -- Brendan Simons mclaugb wrote: > This page documents

Re: Using python for a CAD program

2006-05-17 Thread Brendan
ine how useful this is. Now that I've switched to Solidworks, my drafting speed has doubled. I haven't seen anyone make a 2D cad package with this behaviour. I'm sure there's a market for one if you go that route. -Brendan -- http://mail.python.org/mailman/listinfo/python-list

Serializing / Unserializing datetime

2006-05-27 Thread Brendan
y there don't seem to be "fromstring" equivalents for datetime.ctime or datetime.isoformat. Ideally the serialized datetime should be human readable, and potentially parseable from other languages. Any suggestions? Brendan -- Brendan Simons -- http://mail.python.org/mailman/listinfo/python-list

Re: Serializing / Unserializing datetime

2006-05-28 Thread Brendan
Thanks John. I've discovered that datetime.strptime will be available in 2.5, (http://docs.python.org/dev/whatsnew/modules.html) but your example will work in the meantime. BJ -- http://mail.python.org/mailman/listinfo/python-list

Python 2.5 WinXP AMD64

2006-09-21 Thread Brendan
Hello, I just tried to use the Windows XP installer for Python 2.5 AMD64 but I get the error message: "Installation package not supported by processor type" I am running Windows XP Pro on an AMD Athon 64 Processor. Do I need to have a 64-bit OS to use this version? -- http://mail.python.org/mai

Re: Python 2.5 WinXP AMD64

2006-09-21 Thread Brendan
Thanks. Christophe wrote: > Brendan a écrit : > > Hello, > > I just tried to use the Windows XP installer for Python 2.5 AMD64 but I > > get the error message: "Installation package not supported by processor > > type" > > > > I am running Windows

Why are the topic and keyword documentation not includded in the chm?

2006-09-22 Thread Brendan
1)Why are the topic and keyword documentation not included in the Windows installation chm? I have to have both the html(with the env var PYTHONDOCS set) and the chm installed? What is the point of that? 2)Is there no simple way to open the chm docs in a browser from within python? 3)How do I op

Re: standard IDE in python 3000 (or beyond)? *semi-newbie*

2004-12-30 Thread Brendan Kohler
"mike kreiner" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Are there any plans for developing a standard IDE for python that's > included with the python installation? I found information about other > IDE's elsewhere online, but couldn't even find any mention of this > possibilit

Re: Jargons of Info Tech industry

2005-10-13 Thread Brendan Guild
Roedy Green wrote in news:[EMAIL PROTECTED]: > On Tue, 11 Oct 2005 11:45:03 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote > or quoted : > >>Jeff Poskanzer, now *he* has a spam problem. He gets a few million >>spams a day: http://www.acme.com/mail_filtering/ >. > > It is a bit like termites. If we

Re: Jargons of Info Tech industry

2005-10-13 Thread Brendan Guild
Gordon Burditt wrote in news:[EMAIL PROTECTED]: > Does the language allow Javascript to open a new window? Does the > language allow Javascript to trigger a function when a window is > closed? I believe the answer to both questions is YES. Then it > is possible to have a page that pops up two

Re: FTP Windows AS/400

2005-09-13 Thread Brendan Bispham
Hi Tim, On Tuesday 13 September 2005 17:31, Tim G. wrote: > I cannot get the script to switch from native to IFS. Yes you can... > Traceback (most recent call last): > File "C:\Python24\Tools\scripts\ftp400.py", line 9, in ? > ftp.cwd(path) It's the cwd which is having a problem > here

what's wrong here? (search script)

2006-07-06 Thread Brendan Fay
[counter + 1:] + searchhelper(initwords, 11 + counter, 1) # (I'm searchhelper2(initwords, urllist, counter + 1)# assuming this is where I have # erred; however, I'm not sure) def search(initwords): urllist = searchhelper(initwords) search

Re: what's wrong here? (search script)

2006-07-06 Thread Brendan Fay
I figured it out. Is there any way to delete your own posts? Brendan Fay wrote: > Dear Someone: > > I have written a script that accesses the googleAPI through > pygoogle and saves each of the ten documents as a .txt file by using a > specific function for each respective