#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
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
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.
>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
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,
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
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
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
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
zone/element-index.htm)
Brendan
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
ac.org/packages/
Brendan
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
"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
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
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
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
[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
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
29 matches
Mail list logo