Re: are there internal functions for these ?

2005-10-11 Thread Robert Kern
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

Re: calling matlab

2005-10-12 Thread Robert Kern
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

Re: how to make this code faster

2005-10-12 Thread Robert Kern
(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

Re: 1-liner to iterate over infinite sequence of integers?

2005-10-13 Thread Robert Kern
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

Re: matching elements of numeric arrays

2005-10-13 Thread Robert Kern
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

Re: Numeric array equivalent of index ?

2005-10-14 Thread Robert Kern
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

Re: Reading IEEE 754 format strings directly into a floating point array

2005-10-14 Thread Robert Kern
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

Re: Problem splitting a string

2005-10-14 Thread Robert Kern
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('_', ' ').

Re: how to improve simple python shell script (to compile list of files)

2005-10-15 Thread Robert Kern
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

Re: A Logging System for Python

2005-10-17 Thread Robert Kern
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

Re: Hygenic Macros

2005-10-17 Thread Robert Kern
, 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

Re: Hygenic Macros

2005-10-18 Thread Robert Kern
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 --

Re: Python variables are bound to types when used?

2005-10-19 Thread Robert Kern
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

Re: fun with lambdas

2005-10-20 Thread Robert Kern
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

Re: Python extension module segmentation fault

2005-10-21 Thread Robert Kern
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

Re: Should i pick up Numeric, Numarray or SciPy.core?

2005-10-21 Thread Robert Kern
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

Re: C extension modules in Python

2005-10-22 Thread Robert Kern
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

Re: execution order in list/generator expression

2005-10-23 Thread Robert Kern
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."

Re: Generic utility class for passing data

2005-10-28 Thread Robert Kern
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

Re: Python's website does a great disservice to the language

2005-11-01 Thread Robert Kern
[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

Re: lists <-> tuple

2005-11-02 Thread 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

Re: [OT] Gmane/Tunderbird users: is g.c.p.general too big?

2005-11-02 Thread Robert Kern
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

Re: reading internet data to generate random numbers.

2005-11-02 Thread Robert Kern
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

Re: Multiples of a number

2005-11-05 Thread Robert Kern
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

Re: Map of email origins to Python list

2005-11-07 Thread Robert Kern
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." --

Re: overloading *something

2005-11-07 Thread Robert Kern
... 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

Re: any python module to calculate sin, cos, arctan?

2005-11-08 Thread Robert Kern
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

Re: any python module to calculate sin, cos, arctan?

2005-11-08 Thread Robert Kern
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: >> >>

Re: overloading *something

2005-11-08 Thread Robert Kern
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

Re: triangulation

2005-11-09 Thread Robert Kern
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

Re: overloading *something

2005-11-09 Thread Robert Kern
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

Re: triangulation

2005-11-09 Thread Robert Kern
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

Re: struct, IEEE-754 and internal representation

2005-11-09 Thread Robert Kern
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

Re: [Tutor] triangulation

2005-11-10 Thread Robert Kern
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

Re: Hash map with multiple keys per value ?

2005-11-11 Thread Robert Kern
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

Re: about array,arange

2005-11-12 Thread Robert Kern
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

Re: about array,arange

2005-11-12 Thread Robert Kern
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

Re: circle and point

2005-11-12 Thread Robert Kern
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

Re: open source and pure python

2005-11-13 Thread Robert Kern
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."

Re: Copyright

2005-11-13 Thread Robert Kern
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-

Re: circle and point

2005-11-14 Thread Robert Kern
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

Re: 3-dimensional plot in Python?

2005-11-15 Thread Robert Kern
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

Re: is parameter an iterable?

2005-11-15 Thread Robert Kern
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

Re: 3-dimensional plot in Python?

2005-11-15 Thread Robert Kern
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"

Re: Web-based client code execution

2005-11-20 Thread Robert Kern
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

Re: best cumulative sum

2005-11-20 Thread Robert Kern
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

Re: Any royal road to Bezier curves...?

2005-11-20 Thread Robert Kern
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

Re: best cumulative sum

2005-11-20 Thread Robert Kern
> > 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

Re: Numeric array in unittest problem

2005-11-21 Thread Robert Kern
. 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

Re: Numeric array in unittest problem

2005-11-21 Thread Robert Kern
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

Re: PIL FITs image decoder

2005-11-22 Thread Robert Kern
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

Re: PIL FITs image decoder

2005-11-22 Thread Robert Kern
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

Re: wxPython Licence vs GPL

2005-11-22 Thread Robert Kern
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

Re: PIL FITs image decoder

2005-11-22 Thread Robert Kern
] = 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

Re: email module documentation

2005-11-22 Thread Robert Kern
> > 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

Re: wxPython installation issues on Debian

2005-11-23 Thread Robert Kern
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

[OT] Enough! [was: wxPython Licence vs GPL]

2005-11-23 Thread Robert Kern
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

Re: [OT] Enough! [was: wxPython Licence vs GPL]

2005-11-23 Thread Robert Kern
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

Re: Which License Should I Use?

2005-11-25 Thread Robert Kern
/~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

Re: Which License Should I Use?

2005-11-26 Thread Robert Kern
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

Re: 2d array slicing problem

2005-11-26 Thread Robert Kern
.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

Re: Syntax

2005-11-26 Thread Robert Kern
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

Re: Which License Should I Use?

2005-11-27 Thread Robert Kern
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 >>

Re: Which License Should I Use?

2005-11-27 Thread Robert Kern
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

Re: General question about Python design goals

2005-11-27 Thread Robert Kern
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

Re: General question about Python design goals

2005-11-27 Thread Robert Kern
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

Re: General question about Python design goals

2005-11-27 Thread Robert Kern
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

Re: Long integer arrays in Python; how? /Carl

2005-11-28 Thread Robert Kern
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

Re: Looking for small, impressive 3D-related Python script

2005-11-28 Thread Robert Kern
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

Re: Which License Should I Use?

2005-11-29 Thread Robert Kern
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

Re: Which License Should I Use?

2005-11-29 Thread Robert Kern
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

Re: Which License Should I Use?

2005-11-29 Thread Robert Kern
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

Re: Which License Should I Use?

2005-11-29 Thread Robert Kern
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

Re: Which License Should I Use?

2005-11-30 Thread Robert Kern
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

Re: wxPython installation issues on Debian

2005-11-30 Thread Robert Kern
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

Re: wxPython installation issues on Debian

2005-11-30 Thread Robert Kern
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 >>

Re: mailing list removal

2005-12-01 Thread Robert Kern
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

Re: Python package installing rationale

2005-12-03 Thread Robert Kern
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: Howto Extract PNG from binary file @ 0x80?

2005-01-03 Thread Robert Kern
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

Re: Howto Extract PNG from binary file @ 0x80?

2005-01-03 Thread Robert Kern
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

Re: Python evolution: Unease

2005-01-04 Thread Robert Kern
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

Re: coding conventions, PEP vs. practice

2005-01-04 Thread Robert Kern
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."

Re: Python evolution: Unease

2005-01-05 Thread Robert Kern
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

Re: Python evolution: Unease

2005-01-05 Thread Robert Kern
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

Re: Python evolution: Unease

2005-01-06 Thread Robert Kern
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

Re: Python evolution: Unease

2005-01-06 Thread Robert Kern
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

Re: Excluded and other middles in licensing

2005-01-06 Thread Robert Kern
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

Re: Excluded and other middles in licensing

2005-01-07 Thread Robert Kern
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

Re: The Industry choice

2005-01-07 Thread Robert Kern
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

Re: Python evolution: Unease

2005-01-07 Thread Robert Kern
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

Re: Python3: on removing map, reduce, filter

2005-01-09 Thread Robert Kern
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

Re: Python3: on removing map, reduce, filter

2005-01-09 Thread Robert Kern
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

Re: complex numbers

2005-01-11 Thread Robert Kern
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

Re: complex numbers

2005-01-12 Thread 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

Matrix-SIG archives

2005-01-12 Thread Robert Kern
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

Re: News Reader

2005-01-13 Thread Robert Kern
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

Re: News Reader

2005-01-13 Thread Robert Kern
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

Re: What strategy for random accession of records in massive FASTA file?

2005-01-13 Thread Robert Kern
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

Re: hash patent by AltNet; Python is prior art?

2005-01-15 Thread Robert Kern
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

Re: Zen of Python

2005-01-19 Thread Robert Kern
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

<    1   2   3   4   5   6   7   8   9   10   >