Re: merits of Lisp vs Python

2006-12-09 Thread Bill Atkins
"mystilleef" <[EMAIL PROTECTED]> writes: > Mark Tarver wrote: >> How do you compare Python to Lisp? What specific advantages do you >> think that one has over the other? >> >> Note I'm not a Python person and I have no axes to grind here. This is >> just a question for my general education. >> >

Re: merits of Lisp vs Python

2006-12-09 Thread Bill Atkins
Steven D'Aprano <[EMAIL PROTECTED]> writes: > Dude. Turing Complete. Don't you Lisp developers know anything about > computer science? "Can you imagine if carpenters were like computer scientists? Some of them would argue that it's not necessary to own a hammer because the butt of a screwdri

Re: merits of Lisp vs Python

2006-12-09 Thread Bill Atkins
Paul Rubin writes: > There is just not that much boilerplate in Python code, so there's > not so much need to hide it. Well, of course there is. There are always going to be patterns in the code you write that could be collapsed. Language has nothing to do with it; Li

Re: merits of Lisp vs Python

2006-12-09 Thread Bill Atkins
Steven D'Aprano <[EMAIL PROTECTED]> writes: > With Lisp macros, even that isn't guaranteed. Now, if Lispers would say > "Oh yes, macros give you great power, and with great power comes great > responsibility. Be careful." then, no doubt, we'd take you guys more > seriously. But we don't hear that

Re: merits of Lisp vs Python

2006-12-09 Thread Bill Atkins
Bill Atkins <[EMAIL PROTECTED]> writes: > "every corner of the language"? Please. Why are you so post-happy > when it's quite obvious that you don't know enough about Lisp to > attack it? In addition to macros that define classes or methods, a common macro

Re: merits of Lisp vs Python

2006-12-09 Thread Bill Atkins
"mystilleef" <[EMAIL PROTECTED]> writes: > Bill Atkins wrote: >> Are any of these not subjective? > > Objectivity is in the eye of the beholder. Well, for example, "Lisp uses a fully-parenthesized notation for writing programs" and "Python has si

Re: merits of Lisp vs Python

2006-12-09 Thread Bill Atkins
"mystilleef" <[EMAIL PROTECTED]> writes: >> Macros are not a substitute for libraries, nor are libraries a >> substitute for macros. Having macros lets you build more powerful and >> more expressive libraries. >> > And not having them helps you build less powerful and expressive > libraries? If

Re: merits of Lisp vs Python

2006-12-09 Thread Bill Atkins
Bill Atkins <[EMAIL PROTECTED]> writes: > worried about the future of Lisp libraries. We already have some: > > - CL-PPCRE, a pure-Lisp regular expression package that is faster than Perl's > - Hunchentoot, a complete web server and web development framework >

Re: merits of Lisp vs Python

2006-12-09 Thread Bill Atkins
"Carl Banks" <[EMAIL PROTECTED]> writes: >> You're right, in part: My implicitly linking Python's pros or cons with >> its stupid marketing hype is, I think, an ad hominem argument. > > Ahem. Calling Python programmers "flies". For what it's worth, I don't think this was called for, either. > W

Re: merits of Lisp vs Python

2006-12-09 Thread Bill Atkins
Paul Rubin <http://[EMAIL PROTECTED]> writes: > Bill Atkins <[EMAIL PROTECTED]> writes: >> Lest anyone interpret that list as exhaustive: http://www.cl-user.net/ > > What have you got for concurrency? How would you write a > multi-threaded web server in Lisp? Mu

Re: merits of Lisp vs Python

2006-12-09 Thread Bill Atkins
"Paddy" <[EMAIL PROTECTED]> writes: > Fast. Very fast! You hit it on the head. Interpreted langauges were the efficiency breakthrough we've all been waiting for. -- http://mail.python.org/mailman/listinfo/python-list

Re: merits of Lisp vs Python

2006-12-09 Thread Bill Atkins
Steven D'Aprano <[EMAIL PROTECTED]> writes: > On Sat, 09 Dec 2006 17:01:15 -0500, Ken Tilton wrote: > >>> How's this a good thing? I don't need a Python environment to grok >>> Python code. >> >> How would that be a bad thing? Do you do a lot of programming without a >> Python environment. But I

Re: merits of Lisp vs Python

2006-12-09 Thread Bill Atkins
Steven D'Aprano <[EMAIL PROTECTED]> writes: >> Or (defmethod name :after ..)? > > I don't even know what that means. And yet you continue to post as if you know Common Lisp... -- http://mail.python.org/mailman/listinfo/python-list

Re: merits of Lisp vs Python

2006-12-11 Thread Bill Atkins
"Paddy" <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] wrote: > >> > Python has to rely more on using the right algorithm... >> >> This sound familiar: "Macros are dangerous!" > Yes. I changed my opinion on advocating Python having macros in one > of our long threads on the subject. Maintainance

Re: merits of Lisp vs Python

2006-12-11 Thread Bill Atkins
greg <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] wrote: >> compilers are GREATLY facilitated by having a >> macro facility because (at first blush) all you need to do is to >> macro-expand down to something you know how to turn into code. > > There's no way you could compile Python to efficien

Re: merits of Lisp vs Python

2006-12-11 Thread Bill Atkins
greg <[EMAIL PROTECTED]> writes: > When moving a set of statements in Python, you > are usually selecting a set of complete lines, > cutting them out and then pasting them in > between two other lines somewhere else. You're missing Ken's point, which is that in Lisp an s-expression represents a s

Re: Why does wx.Window.CaptureMouse() send EVT_PAINT

2006-12-12 Thread Bill Jackson
Tim Roberts wrote the following on 12/09/2006 08:27 PM: > The source code could answer that question for sure, but I doubt that it is > CaptureMouse doing it, and I know the SetCapture API (which it eventually > calls) does not. Is it possible that your clicking caused some part of the > app to be

Re: merits of Lisp vs Python

2006-12-12 Thread Bill Atkins
greg <[EMAIL PROTECTED]> writes: >> A compiler shifts a lot of decisions that an >> interpreter would have to make at runtime to compile-time. There is >> no reason a dynamic language can't enjoy this efficiency. > > I'm not saying that it's impossible to compile > Python, only that's there's a l

Re: merits of Lisp vs Python

2006-12-12 Thread Bill Atkins
greg <[EMAIL PROTECTED]> writes: >>>Having edited both Lisp and Python code fairly >>>extensively, >> >> How extensively? > > Enough to know what I'm talking about. Tens > of thousands of lines of Lisp and Scheme, and > hundreds of thousands of lines of Python, I > would estimate. > > Seeing as yo

Re: merits of Lisp vs Python

2006-12-12 Thread Bill Atkins
Paul Rubin writes: > Pascal Costanza <[EMAIL PROTECTED]> writes: >> May you have tried the wrong Lisp dialects so far: >> >> (loop for i from 2 to 10 by 2 >>do (print i)) > > The loop language is so complicated and confusing that I never > bothered trying to lea

Re: merits of Lisp vs Python

2006-12-12 Thread Bill Atkins
I V <[EMAIL PROTECTED]> writes: > On Sun, 10 Dec 2006 03:18:07 -0500, Bill Atkins wrote: >> We're not counting lines here, you goon. We're talking about how >> expressive constructs are and how closely they match your concept of >> what you want to do. T

Re: merits of Lisp vs Python

2006-12-16 Thread Bill Atkins
greg <[EMAIL PROTECTED]> writes: > Ken Tilton wrote: > >> McCarthy: "Is code also data in Python?" >> Norvig: "No." > > I don't think that was the right answer. He should have > said "Yes", and then shown McCarthy eval() and exec. > > Code isn't quite as *convenient* to work with as data > in Pyth

Re: merits of Lisp vs Python

2006-12-16 Thread Bill Atkins
greg <[EMAIL PROTECTED]> writes: > André Thieme wrote: >> (aif (timeConsumingCalculation) >> (use it)) > > I think the answer is that you just wouldn't do > that in Python at all. Having magic variables > spring into existence in your local namespace > as a side effect of calling something i

Re: merits of Lisp vs Python

2006-12-17 Thread Bill Atkins
Paul Rubin writes: >> In fact, all previously correct programs continue to work as before, >> and in addition, some hitherto incorrect programs become correct. >> That's an increase in power: new programs are possible without losing >> the old ones. > > There's more to p

Re: merits of Lisp vs Python

2006-12-17 Thread Bill Atkins
Paul Rubin writes: > [EMAIL PROTECTED] writes: >> I should assume you meant Common Lisp, but there isn't really any >> reason you couldn't >> >> (poke destination (peek source)) > > That breaks the reliability of GC. I'd say you're no longer writing > in Lisp if y

Re: merits of Lisp vs Python

2006-12-18 Thread Bill Atkins
the DEFINE-INTERFACE syntax closely resembles the syntax of the standard DEFCLASS macro, so newcomers have a basic idea of what DEFINE-INTERFACE is going to do 2) the expansion ( http://galoot.org/~bill/code/rss-reader/expanded.lisp ) of just the DEFINE-INTERFACE is quite involved, a testament

Re: Learning to program in Python

2007-01-05 Thread Bill Scherer
27;t provide the metric prefixes in this example, but thats easy enough to code oneself) They have tutorial which you may find useful. HTH, Bill -- http://mail.python.org/mailman/listinfo/python-list

ANN: pyfuncgen

2006-02-06 Thread Bill Scherer
edit that for your particular hardware setup. I am also looking for some help from interested parties; see the NOTES file for more info. You can find it here:     http://pyfuncgen.sourceforge.net Thanks! Bill Scherer -- http://mail.python.org/mailman/listinfo/python-list

Re: [Numpy-discussion] Re: calculating on matrix indices

2006-02-16 Thread Bill Baxter
Howdy,On 2/17/06, Brian Blais <[EMAIL PROTECTED]> wrote: Colin J. Williams wrote:> Brian Blais wrote:>> In my attempt to learn python, migrating from matlab, I have the>> following problem. Here is what I want to do, (with the wrong syntax):>> >> from numpy import * t=arange(0,20,.1)>> x=zeros(

Re: Python Oracle Interace on Solaris

2006-02-17 Thread Bill Scherer
[EMAIL PROTECTED] wrote: > I am trying to use Python to do queries on a Oracle database using a > Solaris box. I have seen tools such as cx_Oracle which would be good > except that my Solaris box does not have an Oracle installation. Do I > need to have an Oracle installation on my Solaris box to

Re: Python Oracle Interace on Solaris

2006-02-20 Thread Bill Scherer
Kenny wrote: > Thanks... Im not sure if you would know how to solve this one, but when > I ran my setup python scripts I got the error: library -lclntsh not > found. In the instantclient folder the library exists... is this a > matter of just copying the libraries to a different spot or just > set

Re: graph display(please help)

2006-02-22 Thread Bill Scherer
questions? wrote: > I heard from my friend who used to program in JAVA, it is really easy > to do graph display in JAVA. > > I wonder whether there are similiar packages in Python I can use. Since > I know a little bit Python syntax already, I can easily learn more in > Python. > > I want to disp

Re: how do you move to a new line in your text editor?

2006-03-02 Thread Bill Scherer
John Salerno wrote: > This is a real small point, but I'd like to hear what others do in this > case. It's more an 'administrative' type question than Python code > question, but it still involves a bit of syntax. > > One thing I like to do is use tabs for my indentation, because this > makes it e

Re: how do you move to a new line in your text editor?

2006-03-02 Thread Bill Scherer
earn to ride a Huffy than a Schwinn, Hondas are easier to drive than Toyotas, and Evian is easier to drink than Poland Spring. Do yourself a favor and learn them both. Then decide which is best for you. Bill -- http://mail.python.org/mailman/listinfo/python-list

Re: forcing exceptions

2006-03-03 Thread Bill Scherer
Nikola Skoric wrote: > Is there a way to tell the interpreter to display exceptions, even those > which were captured with except? > I believe you are looking for "raise". For example: Try: some.code() except SomeError: do.whatever() raise - Bill -- http://mail

Re: Write a GUI for a python script?

2006-03-04 Thread Bill Maxwell
ago, and the very first thing I wanted to do doesn't seem to be supported. I tried to create a simple application with a Notebook control inside a frame. The Notebook control doesn't appear to be supported yet. Is that right, or am I just not looking in the right places? Bill -- http://mail.python.org/mailman/listinfo/python-list

Re: Write a GUI for a python script?

2006-03-05 Thread Bill Maxwell
On Sat, 4 Mar 2006 13:08:35 -0500, "Peter Decker" <[EMAIL PROTECTED]> wrote: >On 3/4/06, Bill Maxwell <[EMAIL PROTECTED]> wrote: > >> Dabo does look really nice, but seems like it has a ways to go yet. >> >> I downloaded it a couple of weeks ago, and

Re: trouble with lists

2005-05-03 Thread Bill Mill
for i in range(3)] >>> y [[], [], []] >>> [id(b) for b in y] [168611980, 168612300, 168611916] Or, replace x[0] with a new list, instead of modifying the one already there: >>> x[0] = [2] >>> x [[2], [], []] Peace Bill Mill bill.mill at gmail.com -- http://mail.python.org/mailman/listinfo/python-list

SWIG/Python2.4.1: "ImportError: dynamic module does not define init function (initSHIP)"

2005-05-04 Thread Bill Davy
HIP.py (as made by SWIG) but it does seem to be missing something, or am I? Thanks in advance, Bill PS I gave up trying to use IDLE with a locally compiled debug version of Python - that's for another day (or week), but thanks for the assorted help I was given. -- http://mail.python.org/mailman/listinfo/python-list

Re: dictionary comparison

2005-05-05 Thread Bill Mill
key(patch): print "Sun recommends patch %s" % patch for patch in serverx: if not sun.has_key(patch): print "Serverx has unnecessary patch %s" % patch def diff_revs(sun, serverx): for patch, rev in sun.iteritems(): if serverx.has_key(

Re: hard memory limits

2005-05-06 Thread Bill Mill
n the system is > heavily loaded. Otherwise, you're going to hit per-process limits. In > the latter case, adding RAM or swap won't help at all. Raising the > per-process limits is the solution. > A quick google shows it to be mac os X, and a pretty frequent error messa

Re: Getting number of iteration

2005-05-06 Thread Bill Mill
element %s" % (n, x) Earlier: n = 0 for x in lst: print "iteration %d on element %s" % (n, x) n += 1 And you shouldn't use list as a variable name; list() is a built-in function which you'll clobber if you do. Peace Bill Mill bill.mill at gmail.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting number of iteration

2005-05-06 Thread Bill Mill
On 5/6/05, Bill Mill <[EMAIL PROTECTED]> wrote: > On 5/6/05, Florian Lindner <[EMAIL PROTECTED]> wrote: > > Hello, > > when I'm iterating through a list with: > > > > for x in list: > > > > how can I get the number of the current iteratio

replace string patern with different value

2005-05-09 Thread Bill Mill
got xyzzy text xyzzy yeah yeah yeah" >>> token 'xyzzy' >>> for rep in L: ... source = source.replace(token, rep, 1) ... >>> source "11 text we've got 22 text 33 yeah yeah yeah" And, if I may, I recommend the Python Tutorial at http://docs.python.org/tut/tut.html . Peace Bill Mill bill.mill at gmail.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Listing of declared variables and functions

2005-05-09 Thread Bill Mill
t; import re >>> locals() {'__builtins__': , 're': , 'x': 12, '__name__': '__main__', 'z': 13, '__doc__': N one} >>> locals().keys() ['__builtins__', 're', 'x', '__nam

Does anybody know the status of PyCon recordings?

2005-05-09 Thread Bill Mill
w if these recordings exist and, if so, where they are? Peace Bill Mill bill.mill at gmail.com -- http://mail.python.org/mailman/listinfo/python-list

Re: A Faster Way...

2005-05-10 Thread Bill Mill
y different format: >>> zip(range(10), range(20, 30)) [(0, 20), (1, 21), (2, 22), (3, 23), (4, 24), (5, 25), (6, 26), (7, 27), (8, 28) , (9, 29)] > Sorry if it seems an homework assignment. It'd be one heck of a short homework assignment. I hope you've read the python

Re: Python Graphing Utilities.

2005-05-10 Thread Bill Mill
form to at least linux and windows. Peace Bill Mill bill.mill at gmail.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Graphing Utilities.

2005-05-11 Thread Bill Mill
willl recursively search any directory in AFMPATH, so you only need to specify a base directory if multiple subdirectories contaning '*.afm' files. Peace Bill Mill bill.mill at gmail.com > > Tschö, > Torsten. > > [*] because of the "pslatex" backend, which means t

Re: Python Graphing Utilities.

2005-05-11 Thread Bill Mill
On 5/11/05, Torsten Bronger <[EMAIL PROTECTED]> wrote: > Hallöchen! > > Bill Mill <[EMAIL PROTECTED]> writes: > > > On 5/11/05, Torsten Bronger <[EMAIL PROTECTED]> wrote: > > > >> Fernando Perez <[EMAIL PROTECTED]> writes: > >&

SWIG/IDLE/Python: F5 SHIP.py works but "import SHIP" gives "ImportError: dynamic module does not define init function (initSHIP)"

2005-05-12 Thread Bill Davy
to access my OO interface. IDLE and Python are ideal but I want to make it easy for them to load the interface (i.e. SHIP) between Python and my OO interface. Many thanks in advance for any helpful suggestions, Bill PS I posted this to [EMAIL PROTECTED] but it did not seem to get through.

Re: Python Documentation (should be better?)

2005-05-12 Thread Bill Mill
uiltin types, so that you'd find "float (builtin)", "string > > (builtin)", "dict (builtin)", etc. in the appropriate alphabetical > > positions. > > +1 > > TJR > +1 Bill Mill bill.mill at gmail.com -- http://mail.python.org/mailman/listinfo/python-list

Re: How "return" no return ?

2005-05-12 Thread Bill Mill
re writing your own interpreter, it should still be syntactically invalid. Could you perhaps repeat your question with an example of what behavior is surprising you? Peace Bill Mill bill.mill at gmail.com > > "Fredrik Lundh" <[EMAIL PROTECTED]> escribió en el mensaje > ne

Re: increment bits

2005-05-12 Thread Bill Mill
x27;, '0x13', '0x14', '0x15', '0x16', '0x17', '0x18', '0x19', '0x1a', '0x1b', '0x1c', '0x1d', '0x1e', '0x1f', '0xe8', '0xe9', '0xea', '0xeb', '0xec', '0xed', '0xee', '0xef', '0xf0', '0xf1', '0xf2', '0xf3', '0xf4', '0xf5', '0xf6', '0xf7', '0xf8', '0xf9', '0xfa', '0xfb', '0xfc', '0xfd', '0xfe', '0xff'] Peace Bill Mill bill.mill at gmail.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Convert from numbers to letters

2005-05-19 Thread Bill Mill
On 19 May 2005 06:56:45 -0700, rh0dium <[EMAIL PROTECTED]> wrote: > Hi All, > > While I know there is a zillion ways to do this.. What is the most > efficient ( in terms of lines of code ) do simply do this. > > a=1, b=2, c=3 ... z=26 > > Now if we really want some bonus points.. > > a=1, b=2,

Re: Convert from numbers to letters

2005-05-19 Thread Bill Mill
hon. > for i, digraph in enumerate(sorted([''.join((x, y)) for x in alpha for > y in [''] + [z for z in alpha]], key=len)): >globals()[digraph]=i+1 > > How do you implement this sucker?? Works just fine for me. Let me know what error you're getting

Re: Convert from numbers to letters

2005-05-19 Thread Bill Mill
ord2tuple('ZZ14') (13, 701) >>> coord2tuple('ZZ175') (174, 701) >>> coord2tuple('A2') (1, 0) Are there cols greater than ZZ? I seem to remember that there are not, but I could be wrong. Hope this helps. Peace Bill Mill [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Convert from numbers to letters

2005-05-19 Thread Bill Mill
7;key'] l2.sort(lambda a,b: cmp(f(a), f(b))) return l2 l2.sort() return l2 And from your other email: > I need to go the other way! tuple2coord Sorry, I only go one way. It should be transparent how to do it backwards. Peace Bill Mill [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Convert from numbers to letters

2005-05-19 Thread Bill Mill
On 5/19/05, Peter Otten <[EMAIL PROTECTED]> wrote: > Bill Mill wrote: > > >> Traceback (most recent call last): > >>File"",line1,in? > >> NameError: name 'sorted' is not defined > >> > >> I think you're probably usi

Re: Convert from numbers to letters

2005-05-20 Thread Bill Mill
rly used. I like it especially for signatures like "def change_coord((x, y))". It was one of those features, for me, where I just tried it without knowing of its existence, assuming it would work, and I was pleasantly surprised that it did. Peace Bill Mill bill.mill at gmail.com [1] htt

DLL load failed: The specified procedure could not be found

2005-05-31 Thread Bill Davy
sys.path: H:\Husky\HostPC\V1\SHIP\Debug H:\Husky\HostPC\V1\SHIP E:\Bill\Python-2.4.1\PCbuild\python24_d.zip C:\Python24\Lib C:\Python24\DLLs C:\Python24\Lib\lib-tk H:\Husky\HostPC\V1\RunSHIP H:\Husky\HostPC\V1\Debug C:\Python24 C:\Python24\lib\site-packages Traceback (most recent call

Re: DLL load failed: The specified procedure could not be found

2005-06-01 Thread Bill Davy
see where all your > imports are resolved. I've not been able to find where sys.path finds its components and would happily sort them out. It does not seem to be PYTHONPATH or PATH or PYTHON_LIB. I had to make Python as I wanted a debug build for Win32 (and hence E:\Bill\Python-2.4.1\P

Re: \r\n or \n notepad editor end line ???

2005-06-08 Thread Bill Mill
ome things you might not expect, including changing /r/n to /n. Try: >>> f = file('d:/deleteme.txt', 'rb') >>> f.read() 'testing\r\n1\r\n2\r\n3' >>> f = file('d:/deleteme.txt', 'r') >>> f.read() 'testing\n1\n2\n3' Peace Bill Mill bill.mill at gmail.com -- http://mail.python.org/mailman/listinfo/python-list

Re: computer algebra packages

2005-06-08 Thread Bill Mill
rivate > contract. But it's doable. > What about http://library.wolfram.com/infocenter/MathSource/585/ ? Seems to be non-proprietary, or something different, but does it work? I don't have Mathematica, so I don't know. Peace Bill Mill bill.mill at gmail.com -- http://mail.python.org/mailman/listinfo/python-list

Re: What is different with Python ? (OT I guess)

2005-06-14 Thread Bill Mill
ists working like this, and I believe that they need to recognize themselves as a separate discipline with separate rules. I'd like to see them open source their code when they publish papers as a matter of standard procedure. I'd like to see them publish reports much more like biolo

Re: Back to the future - python to C++ advice wanted

2005-06-17 Thread Bill McClain
yers books. And another which I no longer have -- something like "The C++ Memory Model" -- was very instructive. -Bill -- Sattre PressIn the Quarter http://sattre-press.com/ by Robert W. Chambers [EMAIL PROTECTED] http://sattre-pr

Re: PythonCard or Dabo?

2007-06-01 Thread Bill Maxwell
On 19 Mar 2007 10:40:03 -0700, [EMAIL PROTECTED] wrote: ... >You might want to submit this to the wxpython news-group. ... What is the name of this newsgroup? I can't seem to locate it on my news server. Thanks, Bill -- http://mail.python.org/mailman/listinfo/python-list

Which class's comparison function is called?

2007-06-05 Thread Bill Jackson
For example, class A: def __init__(self,a): self.a = a def __eq__(self, other): return self.a == other.a class B: def __init__(self,b): self.b = b def __eq__(self, other): return self.b == other.b A(1) == B(1) ---> AttributeError: B instance has no attribute a B

Re: Tabbed windows Support in Python

2007-06-27 Thread Bill Scherer
senthil arasu wrote: > Hi, > Currently iam implementing GUI Framework for supporting Tabbed > windows to render different HTML Pages. > A row of tabs facilitated for navigation of pages. > > Iam expecting some classes like "QTabWidget" whick provided by Qt > Libarary. > After starting my implem

Better dict of dicts

2007-04-19 Thread Bill Jackson
I have a dictionary of dictionaries where the keys are typically very long tuples and repeated in each inner dictionary. The dictionary representation is nice because it handles sparseness well...and it is nice to be able to look up values based on a string rather than a number. However, sinc

Re: Better dict of dicts

2007-04-19 Thread Bill Jackson
Martin v. Löwis wrote the following on 04/19/2007 02:43 PM: > Bill Jackson schrieb: >> I have a dictionary of dictionaries where the keys are typically very >> long tuples and repeated in each inner dictionary. > > What I don't understand here: you say the keys are tup

When to clear a dictionary...

2007-04-20 Thread Bill Jackson
What is the benefit of clearing a dictionary, when you can just reassign it as empty? Similarly, suppose I generate a new dictionary b, and need to have it accessible from a. What is the best method, under which circumstances? >>> import some_function >>> a = {1:2,3:4} >>> b = {1:2:4:3}

Re: When to clear a dictionary...

2007-04-20 Thread Bill Jackson
Bill Jackson wrote the following on 04/20/2007 09:48 AM: > >>> import some_function > > >>> a = {1:2,3:4} > >>> b = {1:2:4:3} > >>> a.clear() > >>> a.update(b) > > >>> a = {1:2,3:4} > >>> b = {1

Re: *** Dr G Polya BRILLIANTLY analyses the Virgina Shooting Incident ***

2007-04-22 Thread bill . sloman
. Note that Dr. Polya comes from Tasmania - the Australian state where I was born. Meanwhile, Jim's decline continues - he has now committed top posting. Institutionalisation can't be far away. -- Bill Sloman, Nijmegen -- http://mail.python.org/mailman/listinfo/python-list

Re: *** Dr G Polya BRILLIANTLY analyses the Virgina Shooting Incident ***

2007-04-24 Thread bill . sloman
r. Polya actually lives - and Tanzania which is a country in Africa with a name similar enough to confuse semi- literate Americans. Tasmania is a reasonably large island (about the same size as Ireland) a couple of hundred miles south of the Australian mainland. It is a state of Australia (not Austr

Re: *** Dr G Polya BRILLIANTLY analyses the Virgina Shooting Incident ***

2007-04-24 Thread bill . sloman
- which would be an eccentric habit, even in Austria, where the flower doesn't form part of the normal diet. -- Bill Sloman, Nijmegen -- http://mail.python.org/mailman/listinfo/python-list

Re: Video: Professor of Physics Phd at Cal Tech says: 911 Inside Job

2007-04-25 Thread Bill Habr
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Cal Tech is the ELITE of ELITE in physics. > > If Feynman were alive, he would point his finger straight at the 911 > criminal operators, the yank bastards themselves ... > > http://www.911blogger.com/node/8101 > > No self-respectin

Preferred Random Library

2007-04-25 Thread Bill Jackson
Is there a preferred random library? scipy.random random Besides scipy's library returning ndarrays, is there any other advantage/disadvantage? -- http://mail.python.org/mailman/listinfo/python-list

random.py

2007-04-25 Thread Bill Jackson
In random.py (Python 2.5.1), line 86 says: VERSION = 2# used by getstate/setstate Then, in the definition of Random.setstate, we have: if version == 2: Why is it not: if version == self.VERSION: -- http://mail.python.org/mailman/listinfo/python-list

Re: Preferred Random Library

2007-04-25 Thread Bill Jackson
Paul Rubin wrote the following on 04/25/2007 10:17 PM: > Bill Jackson <[EMAIL PROTECTED]> writes: >> Is there a preferred random library? > > Preferred for what? Maybe you want os.urandom(). How about for general usage...I am just asking for a very broad descript

Re: *** Dr G Polya BRILLIANTLY analyses the Virgina Shooting Incident ***

2007-04-27 Thread bill . sloman
te Americans do tend to confuse the two places, as they > > also tend confuse Australia and Austria. Oddly enough, edelweiss grows > > in Austria, so Dr. Polya would have to import it from Europe if he > > were in the habit of dining on edelweiss - which would be an eccentric &g

Import Problems

2007-04-27 Thread Bill Jackson
Once again, I am having issues with imports... Until now, I thought the general guidelines were to rarely use 'from x import y' syntax, except when you really want to copy names over. However, I have run into issues by following this guideline. So... 1) What is going wrong in the example below

Re: Import Problems

2007-04-27 Thread Bill Jackson
Bill Jackson wrote the following on 04/27/2007 12:49 PM: > # importtest/test2/__init__.py > from someclass import * > from test2 import * Sorry typo here: # importtest/test2/__init__.py from someclass import * from mytest import * -- http://mail.python.org/mailman/listinfo/python-list

mod_python not found properly by Apache (win32)

2007-05-04 Thread bill . simoni
I'm unable to get mod_python to work properly on my Windows XP box. Any help would be appreciated. Here is what is installed: Apache 2.2.4 Python 2.5.1 mod_python 3.3.1 for python 2.5 and apache 2.2 Here is the error I get when trying to start apache: Event Type: Error Event Source: Apache

Re: append

2007-05-10 Thread Bill Pursell
On 10 May, 18:02, HMS Surprise <[EMAIL PROTECTED]> wrote: > Trying not to be a whiner but I sure have trouble finding syntax in > the reference material. I want to know about list operations such as > append. Is there a pop type function? I looked in tutorial, language > reference, and lib for list

Re: installing cx_Oracle.

2007-05-24 Thread Bill Scherer
Carl K wrote: > I am trying to use this: > http://python.net/crew/atuining/cx_Oracle/html/cx_Oracle.html > it is a real module, right? > It is indeed. > sudo easy_install cx_Oracle did not easy_install cx_Oracle. > > http://www.python.org/pypi/cx_Oracle/4.3.1 doesn't give me any clue. > > I got

Re: installing cx_Oracle.

2007-05-24 Thread Bill Scherer
Bill Scherer wrote: > Carl K wrote: > >> I am trying to use this: >> http://python.net/crew/atuining/cx_Oracle/html/cx_Oracle.html >> it is a real module, right? >> >> > It is indeed. > >> sudo easy_install cx_Oracle did not easy_ins

Re: installing cx_Oracle.

2007-05-24 Thread Bill Scherer
Carl K wrote: > Getting closer, thanks Bill and Diez. > > $ export ORACLE_HOME > $ ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/client > $ python setup.py build > $ sudo python setup.py install > > $ python -c "import cx_Oracle" > Traceback (most re

matplotlib, usetex

2007-05-25 Thread Bill Jackson
Hi, I'm having some trouble plotting with the following matplotlibrc: text.usetex : True I tried clearing the cache files under ~/.matplotlib, but this did not help the problem. I'd post on the matplotlib mailing list, but I have a hard enough time browsing sourceforge's achives (frequen

Re: matplotlib, usetex

2007-05-25 Thread Bill Jackson
Alexander Schmolck wrote the following on 05/25/2007 02:33 PM: > (BTW what happens if you do axis([0,128,0,128])). In [1]: import pylab In [2]: pylab.axis([0,128,0,128]) In [3]: pylab.show() --- Traceback (most recent cal

Re: matplotlib, usetex

2007-05-26 Thread Bill Jackson
Alexander Schmolck wrote the following on 05/25/2007 02:33 PM: > I have no idea whether this will resolve your problem, but you could try > updating to 0.90 (BTW what happens if you do axis([0,128,0,128])). The problem appears to be with a matplotlibrc file. If I delete the matplotlibrc file, th

Re: Where do they tech Python officialy ?

2007-07-31 Thread bill . punch
On Jul 31, 11:37 am, [EMAIL PROTECTED] (Alex Martelli) wrote: > NicolasG <[EMAIL PROTECTED]> wrote: > >... > > > The problem is that I would like to work as a Python programmer but > > all the job vacancies I can find requires a couple of years of > > professional experience ... that I don't ha

Re: This bit of code hangs Python Indefinitely

2007-08-08 Thread Bill Scherer
then you would get an error. By default, put() will block when the specified limit is reached. When the queue is no longer full, the put will proceed. See the Queue module docs for complete info. HTH, Bill -- http://mail.python.org/mailman/listinfo/python-list

Re: Google Conspiracy Revealed!

2007-08-08 Thread Bill Sornson
[EMAIL PROTECTED] wrote: > http://www.nasaconspiracy.net/2007/06/content-generator-recognizing-generated.html > - Amazing Google Conspiracies Revealed from CIA, NSA and Government > conspiracies and Dr.Kevorkians magic pills. Ironically, forwarded to Gmail Abuse -- E-mail Address(es): [EMAIL PROT

Re: Puzzled by "is"

2007-08-09 Thread Bill Scherer
Dick Moores wrote: > >>> () is () > True > >>> (1,) is (1,) > False > > Why? > >>> a = () >>> b = () >>> c = (1,) >>> d = (1,) >>> a is b True >>> c is d False >>> id(a) 3086553132 >>> id(b) 3086553132 >>> id(c) 3086411340 >>> id(d) 3086390892 There is only one empty tuple. Does that clear

Re: sentance containg the string or symbol Ω

2007-08-23 Thread Bill Scherer
yadin wrote: > how can i print a sentance containg the string or symbol Ω in python > and also lambda? > > >>> "Ω" '\xce\xa9' >>> print '\xce\xa9' Ω >>> ...works on my terminal anyway. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.5, problems reading large ( > 4Gbyes) files on win2k

2007-03-03 Thread Bill Tydeman
Just curious, but since the file size limitation on NTFS is 4 GB, have you confirmed that it isn't some other part of the interaction that is causing the problem? What FS is hosting the files? On 2 Mar 2007 10:09:15 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Folks, I've a Python 2.5

Re: Python 2.5, problems reading large ( > 4Gbyes) files on win2k

2007-03-05 Thread Bill Tydeman
On 3/4/07, Paul Duffy <[EMAIL PROTECTED]> wrote: Bill Tydeman wrote: > Just curious, but since the file size limitation on NTFS is 4 GB, have > you confirmed that it isn't some other part of the interaction that is > causing the problem? What FS is hosting the files? I

Re: windows blinds

2007-03-14 Thread Bill Mill
going to need to use the Win32 API. As for how to use the win32 API, you could try asking on comp.os.ms- windows.programmer.win32 ( http://groups.google.com/group/comp.os.ms-windows.programmer.win32/topics?lnk=srg ), because that's some fiendish stuff. -Bill Mill bill.mill at gmail.com -

Re: Compiler-AST-Walk-Visitor: Any Examples or Documentation?

2007-03-23 Thread Bill Mill
nd walk would be helpful? http://www.google.com/codesearch?q=compiler+walk+lang%3Apython&hl=en&btnG=Search+Code It seems from a superficial look that some of those files would be helpful as examples. -Bill Mill bill.mill at gmail.com http://billmill.org -- http://mail.python.org/mailman/listinfo/python-list

<    1   2   3   4   5   6   7   >