p://docs.python.org/lib/module-shutil.html
This is the second hit for the google search:
site:docs.python.org copy
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
--
http://mail.p
on how interactive it is, you should look at the subprocess
module in the stdlib or pexpect.
http://docs.python.org/lib/module-subprocess.html
http://pexpect.sourceforge.net/
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves o
(x*y) + 8*x
def main():
n = 2000
ycoor = linspace(0.0, 1.0, n)
xcoor = transpose(atleast_2d(ycoor))
a = f(xcoor, ycoor)
print a[1000, 1000]
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
--
http://mail.python.org/mailman/listinfo/python-list
Neal Becker wrote:
> I can do this with a generator:
>
> def integers():
> x = 1
> while (True):
> yield x
> x += 1
>
> for i in integers():
>
> Is there a more elegant/concise way?
from itertools import count
for
Numeric.searchsorted(b, a).
Otherwise:
In [28]: import Numeric as N
In [29]: a = N.array([2,4,6])
In [30]: b = N.array([2,3,4,5,6])
In [31]: match = N.equal.outer(a, b)
In [32]: idx = N.compress(N.sum(match), N.arange(len(b)))
In [33]: idx
Out[33]: array([0, 2, 4])
--
Robert Kern
[EMA
wers there.
http://numeric.scipy.org/
And no, no one has bothered adding a .index() equivalent for general,
unsorted arrays.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
--
http://mail.python.org/mailman/listinfo/python-list
se directly into a floating point array of the
> size of the string ?
>
> Alternatively, I could write a routine to do it, but wanted to find out if
> there was a simpler solution.
http://docs.python.org/lib/module-array.html
http://numeric.scipy.org
--
Robert Kern
[EMAIL PROTECTED]
&q
27; and '_' as
> the delimiters at once?
You could use regular expressions as Jason Stitt mentions, or you could
replace '_' with ' ' and then split.
In [2]: mystr = 'this_NP is_VL funny_JJ'
In [3]: mystr.replace('_', ' ').
Jari Aalto wrote:
> Thanks, is there equivalent to this Perl statement in Python?
>
>@list = @ARGV[1 .. @ARGV];
>
> or something similar so that I could avoid the 1 > 1 (sys.argv) check
> altogether?
for arg in sys.argv[1:]:
...
--
Robert Kern
[EMAIL PROTECTE
on.
>
> Am I correct and if so is there any trend to include it in Python 2.5 ?
http://docs.python.org/lib/module-logging.html
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harte
, I have to type
>
> import Numeric
> matrixmultiply(A,B)
>
> which makes my code almost unreadable.
Well, dot(A, B) is better. But if you must:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/384122
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the gr
ple was trivial. When you have more
complicated matrix expressions with transposes and conjugations and more
matrixmultiplies than you can shake a stick at, it gets ugly pretty fast.
F = dot(dot(Z, F),transpose(conjugate(Z)))
versus
from scipy import *
F = mat(F)
Z = mat(Z)
F = Z*F*Z.H
--
d Pythonistas, no I don't think it's
wrong. When you're talking about Python versus other languages where
"variable" corresponds with "a possibly typed memory location", or
you're talking with someone who is coming from such a language, then
it's probably be
ct in [0,1,2] once the iteration is finished.
Try this (although I'm sure there are better ways):
In [4]: fs = [lambda x, o=o: f(x, o) for o in [0,1,2]]
In [5]: fs[0](0)
Out[5]: 0
In [6]: fs[0](1)
Out[6]: 1
In [7]: fs[0](2)
Out[7]: 2
--
Robert Kern
[EMAIL PROTECTED]
"In the fields
lude/python2.4/Numeric mytest_wrap.cpp -o mytest_wrap.o
>
> g++ -shared -L/usr/local/lib/python2.4/config/ mytest_wrap.o
> -lpython2.4 -lm -o _mytest.so
>
>
> the Python file reads:
>
> import _mytest
> from Numeric import *
> mat = ones(100,Float64)
> print
ing
and port your code to scipy_core using the provided conversion script.
The API on the Python side hasn't changed too dramatically.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
--
http://mail.python.org/mailman/listinfo/python-list
the "-lnumarray" option to the linker)? You shouldn't be.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
--
http://mail.python.org/mailman/listinfo/python-list
s used up on the first time.
In [7]: a=(x for x in [1,2,3,4])
In [8]: p = [4, 5, 2, 3]
In [9]: c=[x for x in p if x in list(a)]
In [10]: c
Out[10]: [4]
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
the record, my favorite variation is as follows:
class Bunch(dict):
def __init__(self, *args, **kwds):
dict.__init__(self, *args, **kwds)
self.__dict__ = self
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams
[EMAIL PROTECTED] wrote:
> So the first thing you do when you go to a web page is to google if
> they are going to redesign it?
No one is suggesting that it should be. However, Googling before coming
to a newsgroup to complain about anything is usually a good idea.
--
Robert Kern
?
You'll probably want to use scipy_core. It's a package designed
specifically to deal with multidimensional arrays of homogeneous,
(usually) numeric data.
http://numeric.scipy.org
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves
one else noticed this, or is it specific to my setup? Does anyone
> have a solution?
You can specify a policy for keeping old messages for each server
account. Go to your "Account Settings" for GMane and look in "Offline &
Disk Space". You can choose to keep all messages
ine as a source of randomness. It does not work as a
stream of uniform random bytes, which is a different thing altogether
(and to be fair, Mike made that distinction fairly clearly). It's
perfectly good as one of many sources to draw on to rekey a
cryptographically strong PRNG, though. C.f.
h
ing something substantive on every 1-increment; he
just needs to do something extra (like print some diagnostic
information) on every 100-increment.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harte
e server that's registered under the domain
> name?
Most of AOL's offices are in Dulles, VA. Google's headquarters are in
Mountain View, CA.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
--
...
myargs = myclass()
mykwds = myclass()
doit(*myargs.totuple(), **mykwds.todict())
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
--
http://mail.python.org/mailman/listinfo/python-list
Matt Feinstein wrote:
> On Tue, 08 Nov 2005 12:30:35 GMT, "Raymond L. Buvel"
> <[EMAIL PROTECTED]> wrote:
>>http://calcrpnpy.sourceforge.net/clnumManual.html
>
> Unless you're using Windows.
Why? Have you tried compiling it and failed?
--
Robert Kern
[E
Matt Feinstein wrote:
> On Tue, 08 Nov 2005 06:43:51 -0800, Robert Kern
> <[EMAIL PROTECTED]> wrote:
>
>>Matt Feinstein wrote:
>>
>>>On Tue, 08 Nov 2005 12:30:35 GMT, "Raymond L. Buvel"
>>><[EMAIL PROTECTED]> wrote:
>>
>>
o me.
UserDict only exists for backwards compatibility with old code that used
it before one could subclass from dict directly. Don't use it if you can
avoid it. UserDict only ever exposed the Python-side interface of dicts.
It couldn't expose the C-side interface, and it's the C-sid
Shi Mu wrote:
> is there any sample code to triangulation? many thanks!
Triangulation of what? Scattered points in a plane? 2D manifolds
embedded in a 3D space?
Delaunay triangulations? Constrained triangulations?
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the gra
hat needs a bona fide dictionary is PyObject_Call in
Objects/abstract.c . If you can work up a patch, Guido will probably
consider it although I would suggest searching python-dev for previous
discussions first.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
implementations of Delaunay triangulation in
pure Python, though, if that's what you want. You can easily find more
sample code in other languages by googling.
http://svn.scipy.org/svn/scipy/branches/newscipy/Lib/sandbox/delaunay/
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell whe
usly not understanding something...
> help?
Yes, Python uses C double precision floats for float objects.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
--
http://mail.python.org/mailman/listinfo/python-list
ython and abandoned it for
being unusably slow.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
--
http://mail.python.org/mailman/listinfo/python-list
hat everybody else does. You may want to use sets instead of
lists, but otherwise I think your approach is pretty standard.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
--
http://mail.python.org/mailman/listinfo/python-list
away once we're done converting
to the needed array.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
--
http://mail.python.org/mailman/listinfo/python-list
Shi Mu wrote:
> On 11/12/05, Robert Kern <[EMAIL PROTECTED]> wrote:
>
>>Shi Mu wrote:
>>
>>>i got confused by the use of array and arange.
>>>arange get array and range get list, why we need the two different types?
>>
>>When you're aski
x1, y1, x2, y2)
return ((x-centerx)**2 + (y-centery)**2 <=
(x0-centerx)**2 + (y0-centery)**2)
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
--
http://mail.python.o
Ben Bush wrote:
> Is there any package written in pure python code?
Quite a lot. Browse through the Package Index.
http://cheeseshop.python.org/pypi
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
sewhere.
>
> It's got as much right to be here as the copyright crap. And I'm
> trying to keep it to the minimum required to refute the political crap
> I'm answering.
Off-topic responses are just as off-topic as the off-topic posts they
are responding to. Take 'em off-
ach other, stop extending.
> how can i use python to implement this in Tkinter?
Work out the formula on paper. Or google('line intersection').
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Rich
Those interfaces are long since deprecated. Please use matplotlib instead.
http://matplotlib.sf.net
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
--
http://mail.python.org/mailman/listinfo/python-list
I can't catch it during testing since this is
> going to be used by other people.
Then *they'll* catch it during testing.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
--
http://mail.python.org/mailman/listinfo/python-list
Frithiof Andreas Jensen wrote:
> "Robert Kern" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
>>Those interfaces are long since deprecated. Please use matplotlib instead.
>>
>>http://matplotlib.sf.net
>
> "Long since"
Paul Watson wrote:
> I have read some about AJAX. Is there an APAX coming for Python?
Not until browsers have embedded Python interpreters. There's been talk
about doing this in Mozilla, but I don't think the talk has turned into
usable code, yet.
--
Robert Kern
[EMAIL PROTEC
David Isaac wrote:
> What's the good way to produce a cumulative sum?
> E.g., given the list x,
> cumx = x[:]
> for i in range(1,len(x)):
> cumx[i] = cumx[i]+cumx[i-1]
>
> What's the better way?
Define better. More accurate? Less code?
--
Robert Kern
[EMAIL PRO
wonderful, but I could jimmy-rig something if I could just
> get 2D...
There's some 2D code (which could be trivially adapted to 3D) in
PIDDLE/Sping. In the latest Sping download, look in the file pid.py at
the Canvas.curvePoints() method.
http://piddle.sourceforge.net/
> Are bezier cu
>
> Or just sum(x).
That just gives you the tail end. The OP asked for a cumulative sum;
that is, a list with all of the intermediate sums, too.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
--
http://mail.python.org/mailman/listinfo/python-list
. To get a boolean from a==b, use Numeric.alltrue(a==b).
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
--
http://mail.python.org/mailman/listinfo/python-list
ll generally return
> a true value for ANY comparison of Numeric arrays, causing a very
> frequent beginner's bug to be sure.
Indeed. This is why numarray and scipy_core have made arrays raise an
exception when someone tries to use them as truth values.
--
Robert Kern
[EMAIL PROT
sci.edu/resources/software_hardware/pyfits
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
--
http://mail.python.org/mailman/listinfo/python-list
be possible to
> import the data into a numarray object and turn that into something PIL
> can read, though.
If you can bear having two copies in memory, Image.frombuffer()
generally does the trick.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
A
t's also a good idea to document exactly what changes
you have made and what is originally someone else's.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
--
http://mail.python.org/mailman/listinfo/python-list
] = 255
In [11]: img = Image.frombuffer('L', (256,256), z)
That creates a black image with a white, horizontal line in the middle.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
--
http://mail.python.org/mailman/listinfo/python-list
>
> Any idea what I am missing?
That's not what I have on OS X with Python 2.4.1.
In [1]: import email
In [2]: dir(email)
Out[2]:
['__all__',
'__builtins__',
'__doc__',
'__file__',
'__name__',
'__path__',
'__versi
lib/python2.3/site-packages.
>
> Does anyone know how I can force it to install in 2.4's site-packages
> directory?
Install the right package: python2.4-wxgtk2.4
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed
Take your off-topic argument off-list.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano wrote:
> Robert Kern wrote:
>
>>Take your off-topic argument off-list.
>
> You don't think questions of the legality of when and
> how you can write and distribute Python programs are of
> interest to Python developers?
The OP's questi
/~esr/faqs/Licensing-HOWTO.html
It's a draft, but it contains useful information. Also, Larry Rosen's
book _Open Source Licensing_ is quite helpful (and free!).
http://rosenlaw.com/oslbook.htm
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are t
t;work made for hire"
doctrine. You should probably have a chat with a lawyer soon (I am not
one! TINLA!).
As Steve Holden said, being open with your client and putting an
agreement in your contract is probably the best way to ensure that your
work will belong to you or, failing that, continue
.sourceforge.net/lists/listinfo/numpy-discussion
[2] http://permalink.gmane.org/gmane.comp.python.numeric.general/2690
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
--
http://mail.python.org/mailman/listinfo/python-list
king Path: %s" % os.getcwd()
>
> One of these two ways you're not supposed to use for security reasons,
> but I'm spacing on which one.
I don't think there are any *security* reasons, but stylistically,
"import os" is greatly preferred. When someone else reads you
Andrew Koenig wrote:
> "Robert Kern" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
>>You're in something of a gray area, but one that has seen a lot of
>>litigation. Although you are "technically" a consultant, you are
>>
any deliverable, it's yours.
Please stop saying things that are demonstrably untrue and could get
people into legal trouble if they believed you.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richa
ests, then you'll probably get responses
along the lines of "Thank you!", instead.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
--
http://mail.python.org/mailman/listinfo/python-list
Paul Rubin wrote:
> Robert Kern <[EMAIL PROTECTED]> writes:
>
>>Yes. If it's not going to be used, then there's not much point.
>>Practicality beats purity, and all that.
>
> Geez man, "practicality beats purity" only means that if maintai
Christoph Zwerschke wrote:
>>>Let me ask back: Do I really need to bother and justify it with a use
>>>case in a case where the language can be easily made more consistent or
>>>orthogonal without breaking anything?
>
> Robert Kern wrote:
>
>>Yes. If i
ch is not valid, since the integer is
> on the right hand side is to large to be assigned to an array element.
Use Numeric.UnsignedInt32 as the data type.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die.&qu
est bet might be to trawl through the various
Python scripts that people have written for Blender to find something
impressive.
http://www.blender3d.org/cms/Python_Scripts.3.0.html
Oh look, L-systems:
http://jmsoler.free.fr/util/blenderfile/images/lsystem/lsystem.htm
--
Robert Kern
[EMAIL P
Andrew Koenig wrote:
> "Robert Kern" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
>>Andrew Koenig wrote:
>
>>>I'm pretty sure that there was a change to the copyright laws a few years
>>>ago (perhaps as part of the
Paul Rubin wrote:
> Robert Kern <[EMAIL PROTECTED]> writes:
>
>>It's a draft, but it contains useful information. Also, Larry Rosen's
>>book _Open Source Licensing_ is quite helpful (and free!).
>>
>> http://rosenlaw.com/oslbook.htm
>
> Th
Aahz wrote:
> In article <[EMAIL PROTECTED]>,
> Robert Kern <[EMAIL PROTECTED]> wrote:
>
>>Don't listen to schmucks on USENET when making legal decisions. Hire
>>yourself a competent schmuck.
>
> Mind if I .sig this? How would you like to be a
ow):
>
> http://creativecommons.org/license/publicdomain-direct
This is the current URL:
http://creativecommons.org/licenses/publicdomain/
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
--
http://mail.python.org/mailman/listinfo/python-list
ournal.com/article/6225
Among other places where Rosen has said it, like his book.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
--
http://mail.python.org/mailman/listinfo/python-list
why I erroneously recommended installing the apparently
nonexistant python2.4-wxgtk2.4). However, it appears that the maintainer
of the Debian wxPython is not building packages for both Python 2.3 and
2.4. The maintainer of the Ubuntu wxPython package apparently is.
--
Robert Kern
[EMAIL PROTECTE
Paul McNett wrote:
> Robert Kern wrote:
>
>>Although Ubuntu is a Debian derivative, it does have different packages.
>>At the moment, Debian's default Python is 2.3 although one can also
>>install Python 2.4, and most Python packages in Debian have been built
>>
Xray wrote:
> I would like to be removed from the Python mailing list..can someone
> instruct me on how to do this?
Look on the bottom of this page:
http://mail.python.org/mailman/listinfo/python-list
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grow
e one
place for them. Fedora Core another. Windows has none at all. And so on.
distutils doesn't try to guess although sometimes authors do.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Har
re running into is that the chunk you are passing
in does not have 8 characters. Is your input truncated somehow?
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
--
http://mail.python.org/mailman/listinfo/python-list
seek to position 96.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
--
http://mail.python.org/mailman/listinfo/python-list
ey are
as builtin as anything else. Several other packages build on top of them.
And one of the goals of numarray (which is a complete rewrite of
Numeric) *is* entry into the standard library.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the grave
ython distribution."
It is not intended to be a style guide for all Python code although many
groups do adopt all or part of it for their own style guides.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
facilities like the csv module
will help numarray become more suited for inclusion into the standard
library.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
--
http://mail.python.org/mailman/listinfo/python-list
our day to day IDE. It might be useful to you right now
as a platform to build a dynamic GUI application (Envisage's intended
use) if you are willing to get your hands dirty and help us build
Envisage. Hence, it is not being advertised widely.
But Alex is right; Envisage does hold a lot of
Alex Martelli wrote:
Robert Kern <[EMAIL PROTECTED]> wrote:
...
I love eric3, but if you're an eclipse fan, look at enthought's
"envisage" IDE -- it seems to me that it has superb promise.
...
Is it available for download somewhere?
Alex is, I think, jumping the
Bulba! wrote:
On Wed, 05 Jan 2005 17:25:08 -0800, Robert Kern <[EMAIL PROTECTED]>
wrote:
I still think numarray is a good start for this. It handles more than
just numbers. And RecArray (an array that has different types in each
column, as you seem to require) can be subclassed to add
ry strict
about this aspect.
Alex
With my mathematical background, I'm consistent about calling
these "non-open" rather than "closed". I don't insist others
adopt my nomenclature ...
I'm with Cameron on this one.
--
Robert Kern
[EMAIL PROTECTED]
"In the
Alex Martelli wrote:
Robert Kern <[EMAIL PROTECTED]> wrote:
...
While most people may not think of such programs as "closed source",
they most definitely ARE: the definition of open source is very strict
about this aspect.
...
With my mathematical background, I'm con
at you
found out quickly and avoid getting sued even though you might end up
winning. You also avoid inadvertantly stepping on anyone's toes and
garnering ill-will even if you never go to court.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the g
onal sense of whimsy.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
--
http://mail.python.org/mailman/listinfo/python-list
return x*x
map(square, range(1000))
versus
[x*x for x in range(1000)]
Hint: function calls are expensive.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
--
http://mail.python.org/mailman/listinfo/python-list
nd filter would be removed?"
Since Python 3.0 is currently mythical and will involve a complete
rewrite of the language and interpreter, I don't think that you should
expect any optimization advice to carry over.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the gr
interpreter, writing C extensions that use
complex objects is a little simpler. You don't have to include special
header files and make sure the correct module is imported before using
complex objects in the C code (like you have to do with Numeric, for
example).
--
Robert Kern
It's me wrote:
"Robert Kern" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
That's *it*.
So, how would you overload an operator to do:
With native complex support:
def twice(a):
return 2*a
print twice(3+4j), twice(2), twice("abc")
Let's
tions of a particular design decision in Numeric.
Thanks in advance.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
--
http://mail.python.org/mailman/listinfo/python-list
Daniel Bowett wrote:
Is anyone reading this list through thunderbird as news? If so - how did
you set it up?
I subscribed to comp.lang.python under my USENET news server account.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams al
Robert Kern wrote:
Daniel Bowett wrote:
Is anyone reading this list through thunderbird as news? If so - how
did you set it up?
I subscribed to comp.lang.python under my USENET news server account.
I guess I should add that that's all I did. There's nothing special to
set up.
--
R
aries) That gets
ugly real fast.)
Not to mention all the IUPAC symbols for incompletely specified bases
(e.g. R = A or G).
http://www.chem.qmul.ac.uk/iubmb/misc/naseq.html
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allo
rior art with respect
to cryptographic hashes, too.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
--
http://mail.python.org/mailman/listinfo/python-list
your "gist" is a
different meaning. It's not that "Flat is better than nested" it's
that "Too flat is bad and too flat is nested so be as nested (or as
flat) as you have to be and no more." Perhaps Tim Peters is far too
concise for my feeble mind
If it were s
201 - 300 of 2667 matches
Mail list logo