x27;s "Programming Pearls" is a great book to read)
Regards
Francis Girard
2008/6/18 brad <[EMAIL PROTECTED]>:
> Just wondering if anyone has ever solved this efficiently... not looking
> for specific solutions tho... just ideas.
>
> I have one thousand words and one
On 11 avr, 12:14, bdsatish <[EMAIL PROTECTED]> wrote:
> The built-in function round( ) will always "round up", that is 1.5 is
> rounded to 2.0 and 2.5 is rounded to 3.0.
>
> If I want to round to the nearest even, that is
>
> my_round(1.5) = 2# As expected
> my_round(2.5) = 2# Not 3
On 11 avr, 14:14, Gerard Flanagan <[EMAIL PROTECTED]> wrote:
> On Apr 11, 2:05 pm, Gerard Flanagan <[EMAIL PROTECTED]> wrote:
>
> > On Apr 11, 12:14 pm, bdsatish <[EMAIL PROTECTED]> wrote:
>
> > > The built-in function round( ) will always "round up", that is 1.5 is
> > > rounded to 2.0 and 2.5 is
On 14 avr, 17:23, Janto Dreijer <[EMAIL PROTECTED]> wrote:
> It seems eval is modifying the passed in locals/globals. This is
> behaviour I did not expect and is really messing up my web.py app.
>
> Python 2.5.1 (r251:54863, Mar 7 2008, 04:10:12)
> [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16
On 14 avr, 18:05, Duncan Booth <[EMAIL PROTECTED]> wrote:
> Janto Dreijer <[EMAIL PROTECTED]> wrote:
> > It seems eval is modifying the passed in locals/globals. This is
> > behaviour I did not expect and is really messing up my web.py app.
>
> > Python 2.5.1 (r251:54863, Mar 7 2008, 04:10:12)
> >
On 14 avr, 20:02, Thomas Dybdahl Ahle <[EMAIL PROTECTED]> wrote:
> On Fri, 2008-04-11 at 03:14 -0700, bdsatish wrote:
> > The built-in function round( ) will always "round up", that is 1.5 is
> > rounded to 2.0 and 2.5 is rounded to 3.0.
>
> > If I want to round to the nearest even, that is
>
> > m
On 15 avr, 17:27, Reckoner <[EMAIL PROTECTED]> wrote:
> would it be possible to use one of an object's methods without
> initializing the object?
>
> In other words, if I have:
>
> class Test:
> def __init__(self):
> print 'init'
> def foo(self):
> print 'foo'
>
> and I want to use
On 15 avr, 17:43, Robert Bossy <[EMAIL PROTECTED]> wrote:
> Reckoner wrote:
> > would it be possible to use one of an object's methods without
> > initializing the object?
>
> > In other words, if I have:
>
> > class Test:
> > def __init__(self):
> > print 'init'
> > def foo(self):
> >
On 16 avr, 09:42, "Prashant" <[EMAIL PROTECTED]> wrote:
> I was wondering is there any way to do this:
>
> I have written a class in python and __init__ goes like this:
>
> def __init__(self):
>
> self.name = 'jack'
> self.age = 50
>
> import data
>
> now here there is data.py in the same directory
On 16 avr, 15:31, [EMAIL PROTECTED] wrote:
> Hi everyone,
>
> I'm new to Python and the notion of lambda, and I'm trying to write a
> function that would have a varying number of nested for loops
> depending on parameter n. This just smells like a job for lambda for
> me, but I can't figure out how
On 17 avr, 00:49, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
> En Wed, 16 Apr 2008 19:21:18 -0300, John Machin <[EMAIL PROTECTED]>
> escribió:
>
> > [EMAIL PROTECTED] wrote:
> >> also i found a link which states 0^0 isnt 1 even though every
> >> calculator ive tried says it is.
> >> it doesnt s
On 17 avr, 14:43, [EMAIL PROTECTED] wrote:
> On 17 Apr, 04:22, tgiles <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi, All!
>
> > I started back programming Python again after a hiatus of several
> > years and run into a sticky problem that I can't seem to fix,
> > regardless of how hard I try- it it start
On 17 avr, 17:40, [EMAIL PROTECTED] wrote:
> > Yuck! No way!! If you *want* to make your code that hard to read, I'm
> > sure you can find lots of ways to do so, even in Python, but don't
> > expect Python to change to help you toward such a dubious goal.
>
> Well, my actual code doesn't look lik
On 17 avr, 18:19, [EMAIL PROTECTED] wrote:
> On Apr 17, 10:54 am, [EMAIL PROTECTED] wrote:
>
> > On 17 avr, 17:40, [EMAIL PROTECTED] wrote:
>
> > Out of sheer curiosity, why do you need thirty (hand-specified and
> > dutifully commented) names to the same constant object if you know
> > there will
I was really inspired by this discussion thread! :-)
After much tinkering, I think I have a simpler solution. Just make
the inverse mapping accessible via an attribute, -AND- bind the
inverse of -THAT- mapping back to the original. The result is a
python dict with NO NEW METHODS except this inve
[In re R. Hettinger's critiques]
> * it extends the language with arcane syntax tricks...
I think most of these in the current version of J. Bronson's "bidict"
can be left unused, or removed altogether. In almost all cases, a
bidict should be accessed as an ordinary python dict.
> * we've alrea
> I would like to propose that it be made impossible in the Python
> source to import two instances of the same module.
A fully-automatic solution is more difficult than it might seem at
first:
http://www.python.org/dev/peps/pep-0328/
But there is a simple code-discipline solution: never ever us
Hello,
I'm looking at gcmodule.c and in move_unreachable() function, the code
assumes that if an object has its gc.gc_refs stuff to 0 then it *may*
be unreachable.
How can an object tagged as unreachable could suddenly become
reachable later ?
Thanks
--
http://mail.python.org/mailman/listinfo/p
On Oct 3, 11:58 pm, ryles wrote:
>
> Only objects with GC_TENTATIVELY_UNREACHABLE still set are
> candidates for collection. If it's decided not to collect such an object
> (e.g., it has a __del__ method), its gc_refs is restored to GC_REACHABLE
> again.
Ok so it happens _only_ w
Hmmm. I am trying some algorithms, and timeit reports that a
list.extend variant is fastest... WTH?! Really this seems like it
must be a "bug" in implementing the "[None]*x" idiom.
As expected, appending one-at-a-time is slowest (by an order of
magnitude):
% python -m timeit -s "N=100" \
> I can't believe the code editing situation today is in a such sorry
> state.
I can't believe an old coder is feeling so sorry for himself.
> Today, I tried to understand the twisted.web.client code and I found 3
> methods I couldn't find by who were called.
>
> I asked on the mailing list and t
On Jun 11, 6:23 pm, Mensanator wrote:
> Removing the duplicates could be a big problem.
It is fairly easy to ignore duplicates in a sorted list:
from itertools import groupby
def unique(ordered):
"""Yield the unique elements from a sorted iterable.
"""
for key,_ in groupby(ordered):
ercise for the double array, the hex form will look
like: [0807060504030201].
And the decimal value would be: [5.784376957523072e+17].
Where does the 5.447603722011605e-270 value comes from ?
Thanks for your help,
Francis
--
http://mail.python.org/mailman/listinfo/python-list
hp files). But still, GNU M4 is
a decent piece of technology.
Agreed. The terror that most people feel when hearing "m4" is because
m4 was associated with sendmail, not because m4 was inherently awful.
It has problems, but you'd only encounter them when doing something
_very_ abs
n Graham's Number but still
inconceivably ginormous.)
You don't even need to go that high. Even a run-of-the-mill googol
(10^100) is far larger than the total number of elementary particles in
the observable Universe.
--
Erik Max Francis && m...@alcyone.com && http://w
On 07/20/2012 02:05 AM, Virgil Stokes wrote:
On 20-Jul-2012 10:27, Steven D'Aprano wrote:
The fellow looked relived and said "Oh thank god, I thought you said
*million*!"
How does this relate to the python list?
It's also a seriously old joke.
--
Erik Max Francis
On 07/20/2012 03:28 AM, BartC wrote:
"Erik Max Francis" wrote in message
news:gskdnwoqpkoovztnnz2dnuvz5s2dn...@giganews.com...
On 07/20/2012 01:11 AM, Steven D'Aprano wrote:
On Thu, 19 Jul 2012 13:50:36 -0500, Tim Chase wrote:
I'm reminded of Graham's Number, whi
as syntactic significance.
Thank you!
PEP 8 says this is bad form. What do you think?
Where does it say that?
--
Erik Max Francis && m...@alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM/Y!M/Jabber erikmaxfrancis
Giampaolo Rodolà wrote:
Il 21 gennaio 2012 22:13, Erik Max Francis ha scritto:
The real reason people still use the `while 1` construct, I would imagine,
is just inertia or habit, rather than a conscious, defensive decision. If
it's the latter, it's a case of being _way_ too defensi
ite a different thing, not simply a Kronecker delta extended to the
reals. Kronecker deltas are used all the time over the reals; for
instance, in tensor calculus. Just because the return values are either
0 or 1 doesn't mean that their use is incompatible over reals (as
integers
onsist of mostly definitions. Modules can
interact with each other, be called recursively, etc., and so at an
arbitrary point saying, "break out of this module" doesn't have a great
deal of meaning.
--
Erik Max Francis && m...@alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM/Y!M/Skype erikmaxfrancis
There is _never_ no hope left. Remember.
-- Louis Wu
--
http://mail.python.org/mailman/listinfo/python-list
eak".
To me, too -- too bad it doesn't work:
c:\temp>\python32\python early_abort.py
File "early_abort.py", line 7
return
^
SyntaxError: 'return' outside function
Nor should it. There's nothing to return out of.
--
Erik Max Francis && m.
Eric Snow wrote:
On Tue, Jun 14, 2011 at 5:51 PM, Erik Max Francis wrote:
Ethan Furman wrote:
To me, too -- too bad it doesn't work:
c:\temp>\python32\python early_abort.py
File "early_abort.py", line 7
return
^
SyntaxError: 'return' outside funct
lookup where the keys are functions,
and execute the value. Even then, unless there are quite a lot of
cases, this may be overkill.
--
Erik Max Francis && m...@alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM/Y!M/Skype erikmaxf
Chris Angelico wrote:
On Fri, Jun 17, 2011 at 8:07 AM, Erik Max Francis wrote:
It's quite consistent on which control structures you can break out of --
it's the looping ones.
Plus functions.
No:
>>> def f():
... break
...
File "", line 2
SyntaxError:
Chris Angelico wrote:
On Fri, Jun 17, 2011 at 9:29 AM, Erik Max Francis wrote:
Chris Angelico wrote:
On Fri, Jun 17, 2011 at 8:07 AM, Erik Max Francis wrote:
It's quite consistent on which control structures you can break out of --
it's the looping ones.
Plus functions.
N
`. If you want to
conditionally execute some code, use `if`. If you want to indicate an
exceptional condition, raise an exception.
--
Erik Max Francis && m...@alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM/Y!M/Skype eri
t you're
just being difficult.
--
Erik Max Francis && m...@alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM/Y!M/Skype erikmaxfrancis
Winners are men who have dedicated their whole lives to winning.
-- Woody Hayes
--
http://mail.python.org/mailman/listinfo/python-list
Ian Kelly wrote:
On Thu, Jun 16, 2011 at 7:21 PM, Erik Max Francis wrote:
Neither makes sense. `break` exits out of looping structures, which the
top-level code of a module most certainly is not.
Why does that matter? It seems a bit like arguing that the `in`
keyword can't be use
Ian Kelly wrote:
On Thu, Jun 16, 2011 at 10:24 PM, Erik Max Francis wrote:
True. So let's use `in` to represent breaking out of the top-level code of
a module. Why not, it's not the first time a keyword has been reused,
right?
The point is, if it's not obvious already from
Steven D'Aprano wrote:
On Thu, 16 Jun 2011 22:20:50 -0700, Erik Max Francis wrote:
[...]
Yes, which could be rephrased as the fact that `break` and `continue`
are restricted to looping control structures, so reusing `break` in this
context would be a bad idea. You know, kind of like the
ero sig figures value is ever useful.)
Yes. They're order of magnitude estimates. 1 x 10^6 has one
significant figure. 10^6 has zero.
--
Erik Max Francis && m...@alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM/Y
igure would be an order of magnitude estimate only.
These aren't usually done in the "e" scientific notation, but it would
be something like 10^3 (if we assume ^ is exponentiation, not the Python
operator).
c^2 is 9 x 10^16 m^2/s^2 to one significant figure. It's 10^17 m^2/
Mel wrote:
Erik Max Francis wrote:
Chris Angelico wrote:
On Tue, Jun 28, 2011 at 12:56 PM, Steven D'Aprano
wrote:
Zero sig figure: 0
That's not really zero significant figures; without further
qualification, it's one.
Is 0.0 one sig fig or two?
Two.
(Just vaguely curiou
t 2 x 10^-8 kg, or on the order of 10^-8 kg (zero
significant figures). To convert to energy, multiply by c^2. c = 3 x
10^8 m/s, so c^2 = 9 x 10^16 m^2/s^2, or about 10^17 m^2/s^2, so the
Planck energy is on the order of 10^9 J. That's a calculation to zero
significant figures.
--
Mel wrote:
Erik Max Francis wrote:
Mel wrote:
By convention, nobody ever talks about 1 x 9.97^6 .
Not sure what the relevance is, since nobody had mentioned any such thing.
If it was intended as a gag, I don't catch the reference.
I get giddy once in a while.. push things to limits
f.append(obj.__name__)
return obj
__all__ = AllList()
@__all__
def api(): pass
@__all__
def db(): pass
@__all__
def input(): pass
@__all__
def output(): pass
@__all__
def tcl(): pass
Bravo!
--
Erik Max Francis && m...@alcyone.com && http://www.alcyone.com/max/
San Jose,
quency. In all bases.
--
Erik Max Francis && m...@alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM/Y!M/Skype erikmaxfrancis
They love too much that die for love.
-- (an English proverb)
--
http://mail.python.org/mailman/listinfo/python-list
nan}
{nan}
It's fundamentally because NaN is not equal to itself, by design.
Dictionaries and sets rely on equality to test for uniqueness of keys or
elements.
>>> nan = float("nan")
>>> nan == nan
False
In short, don't do that.
--
Erik Max Francis &&
he IEEE standard.
--
Erik Max Francis && m...@alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM/Y!M/Skype erikmaxfrancis
There was never a good war or a bad peace.
-- Benjamin Franklin, 1706-1790
--
http://mail.python.org/mailman/listinfo/python-list
regards,
Francis Esmonde-White
###
*Bug 1:*
In the Python 3 tutorial section 9.8 for iterators
<https://docs.python.org/3/tutorial/classes.html#iterators>, the example
code for the iterator class Reverse has the iterator self.index defined
only in the __init__
Ron Adam wrote:
> When you call a method of an instance, Python translates it to...
>
> leader.set_name(leader, "John")
It actually translates it to
Person.set_name(leader, "John")
--
Erik Max Francis && [EMAIL PROTECTED] && http://ww
; formatting , so I've taken a stab at it:
BOTEC at
http://www.alcyone.com/software/botec/
contains a class called SI which does this formatting (and supports all
SI prefixes).
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA,
research on Google?
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
The people are to be taken in very small doses.
-- Ralph Waldo Emerson
--
http://mail.python.org/mailman/listinfo/python-list
ing if I (and nobody else) answered
his question and just rudely pointed him to Google. But since I
actually answered his question, looks to me like someone just wanted to
stand on his soapbox today.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.co
made him change his mind? When the debates raged over PEP 308,
he seemed pretty dead set against it (at least by proxy) ...
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
a search engine won't be the most
practical way to do research. This was _certainly_ not one of those cases.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
No mistaking / Just
the text, but then discards it. You
meant:
for badWord in badWords:
textToFilter = textToFilter.replace(badWord, '<)!&%(#&)%>')
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 12
Matt Garrish wrote:
> Even if you weren't an incredibly offensive and petulant poster, what makes
> you think anyone would write a script from you?
Because in addition to being offensive and petulant, he's also an idiot.
--
Erik Max Francis && [EMAIL PROTECTED] &
=None): self.value = value
...def get(self): return self.value
...def set(self, value): self.value = value
...
>>> one = Container(1)
>>> myDictionary = {}
>>> myDictionary['a'] = one
>>> myDictionary['b'] = one
>>> myDictionary['b
he pbmplus library, and so forth.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
Every human being is a problem in search of a solution.
-- Ashley Montagu
--
http://mail.python.org/mailman/listinfo/python-list
Andy Leszczynski wrote:
> So how does it correspond to other piece of the code:
>
> 2 def notfound(self, pagename):
> 3 return dict(pagename=pagename, data="", new=True)
>
> new is a boolean here?
It comes through as a CGI query.
--
Erik Max Francis
ield 0
x = 1
while True:
yield x
yield -x
x += 1
... which is also not a bad demonstration of how the integers are
countably infinite.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
S
tr.split('_| '), but this gave me:
>
> ['this_NP is_VL funny_JJ']
>
> It is not splitted at all.
Use re.split:
>>> re.split('_| ', s)
['this', 'NP', 'is', 'VL', 'funny', 'JJ']
Madhusudan Singh wrote:
> Thanks. Now, a slightly more complicated question.
>
> Say I have two lists of floats. And I wish to generate a list of floats that
> is a user defined function of the two lists.
result = [sqrt(x**2 + y**2) for x, y in zip(xs, ys)]
--
Erik
chr(x) for x in range(32) + [124])
aNewString = aString.translate(IDENTITY_MAP, BAD_MAP)
Note that ASCII 31 is also a control character (US).
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W &&
generates a ValueError.
Did you want to only split once at most? Then it's s.split('|', 1).
Did you want to assign the first element to the first variable and the
rest to the next? Then it's x = s.split('|'); a, b = x[0], x[1:].
--
Erik Max Francis && [EMAIL
executed in it would have no effect on
the state of another.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
Success and failure are equally disastrous.
-- Tennessee Wi
Help on function index in module string:
index(s, *args)
index(s, sub [,start [,end]]) -> int
Like find but raises ValueError when the substring is not found.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 2
terminals respond by beeping. Since, when you're logged into a remote
machine, it's your terminal that's displaying the output of your remote
session, that's why you hear the beep on your local machine.
--
Erik Max Francis && [EMAIL PROTECTED] && http://
is. Look up XML DOM.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
An ounce of hypocrisy is worth a pound of ambition.
-- Michael Korda
--
http://mail.python.org/mailman/listinfo/python-list
Xah Lee wrote:
> This is my learning notes on Haskell. I call it a-Haskell-a-day.
Another day, another community to completely piss of, huh, Xah?
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W &&
s can't handle these, of course).
If it's a relatively straightforward class where the entire state is
exposed through the constructor, then a friendly repr is possible.
Otherwise, it's not, and trying to otherwise do so may just be confusing.
--
Erik Max Francis &&
on the circumstances. There is no uniform solution here.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
We must all hang together, or, most assuredly, we will all hang
sepa
aum wrote:
> The Vaults of Parnassus site:
> http://www.vex.net/parnassus/
> has been down for several days, with no resolution available for the
> vex.net domain.
It's working fine here.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
pically, in C or C++, I would use an enum for that:
> enum OBJECT_STATE
> {
> opened, closed, error
> }
OPENED, CLOSED, ERROR = range(3)
object.state = OPENED
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA &a
now why it's doing this as I'm trying to
> open a JPEG, and not a tiff. I tried with a .bmp with similar results.
> Any ideas? Thanks!
Install libtiff.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121
David T wrote:
> Individuals, and perhaps groups of individuals are the creators of
> works.
When someone pays you to create a work, then they own the copyright, not
you. It's called work for hire.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone
Mike Meyer wrote:
> Further, recent evidence is that this is no longer true in that
> country, assuming it ever was.
Oh, please. Take the political crap elsewhere.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA &
Bruno Desthuilliers wrote:
> Depends on the country's laws and the exact agreement.
Work for hire is part of the Berne convention.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erik
ame. Often, in fact, they are not.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
Life is painting a picture, not doing a sum.
-- Oliver Wendell Holmes, Jr.
--
http://mail.python.org/mailman/listinfo/python-list
s already easy enough to do this
within the language, by just assigning it a value, even if it's an
integer from range/xrange or a new sentinel like object().
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121
have paid you if you didn't (implicitly) transfer the
copyright to them. So copyright is just as relevant whether it's a work
for hire or not.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM er
Micah Elliott wrote:
> On Nov 21, David Isaac wrote:
>
>> What's the good way to produce a cumulative sum?
>
>>>> import operator
>>>> x = 1,2,3
>>>> reduce(operator.add, x)
> 6
Or just sum(x).
--
Erik Max Francis && [EMAIL P
ltin method. The usual way is to just wrap a class
around two dictionaries, one for mapping keys to values and the other
for mapping values back to keys.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W &&a
* taken seriously
> using names that aren't what you'd call a "real name".
The fact that it obviously isn't always true without exception doesn't
mean it's never true. Or did that not occur to you?
--
Erik Max Francis && [EMAIL PROTECTED] &
ut it looks like only
genetic algorithms are supported, not full genetic programming. Is this
not the case?
I've been planning on releasing my stack-based genetic programming
system Psi (implemented in Python) at some point in the future, FYI.
--
Erik Max Francis && [EMAIL PROTE
d in. You can't teach all things
simultaneously; I'm not sure creating a genetic programming (or genetic
algorithms) system that's useful to "newbies" (whatever that means) is
even a useful goal in and of itself.
--
Erik Max Francis && [EMAIL PROTECTED] &a
tic algorithm system, not genetic a programming
system, hence his response. It was only my interpretation of his
introductory comment that led anyone to believe otherwise.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 1
enetic algorithm).
Recent developments, with stack-based languages like those used by
Spector, have allowed the introduction of types naturally into genetic
programming, which has a great deal of promise for allowing even more
involves solutions to complex problems.
--
Erik Max Francis
iquette. ;-)
His "points" have about the same legitimacy as banging on the keyboard
until it breaks and then crying for an hour. At least if he did that,
we'd have to hear from him less.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
Sa
rea. Thanks again for the comments.
Sure thing. Obviously I'll post an announcement here when it's ready.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
Heaven and
ts), but beyond intermixing ideas they really aren't related.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
I never could have predicted / That I'd feel this way
malv wrote:
> Thank you kindly, Erik.
Sure thing.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
It is only the poor who are forbidden to beg.
-- Anatole France
dead on arrival.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
There's a reason why we / Keep chasing morning
-- Sandra St. Victor
--
http://mail.python.org/mailman/listinfo/python-list
and edit your settings to select just the 'peps' topic.
Maybe someone could roll this into an RSS feed?
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
There'
back of my mind that languages that can easily support massive
(especially automatic) parallelization will have their day in the sun,
at least someday.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AI
Peter Hansen wrote:
So why duplicate the posts by posting them to the newsgroups?
Because he's a well-known pest.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
Yes I
[since 0.2]
- 0.3, 2005 Jan 15. Separate transfers from maneuvers; support
Oberth maneuvers.
- 0.2.1, 2005 Jan 8. Various collected modifications.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W &&
he need to post it here for?
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
Make it come down / Like molasses rain
-- Sandra St. Victor
--
http://mail.python.org/mailman/listinfo/python-list
101 - 200 of 664 matches
Mail list logo