Re: input record sepArator (equivalent of "$|" of perl)

2005-01-04 Thread Steve Holden
Dennis Lee Bieber wrote: On Mon, 03 Jan 2005 19:14:54 -0500, Steve Holden <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: Plus the builders quite routinely ask suppliers for things like "a meter of two (inches) by four (inches)". They don;t care that they're

Re: modpython, apache and windows

2005-01-05 Thread Steve Holden
ython print """Content-Type: text/plain Hello, world""" and see if you can call it from a web browser. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 4

Re: modpython, apache and windows

2005-01-05 Thread Steve Holden
"""Content-Type: text/plain Hello, world""" and see if you can call it from a web browser. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -

Re: Cookbook 2nd ed Credits (was Re: The Industry choice)

2005-01-05 Thread Steve Holden
7; 9: 5 u'Scott David Daniels' 10: 5 u'Paul Prescod' 11: 5 u'Michele Simionato' 12: 5 u'Mark Nenadov' 13: 5 u'Jeff Bauer' 14: 5 u'Brent Burley' ....but each still gets ONE free copy...!-) And I *still* think we deserve to be t

Re: Other notes

2005-01-06 Thread Steve Holden
l or acceptable, and having come to jeer they remain to whitewash, to use an analogy from "Tom Sawyer" [1]. All in all a very pleasant change from "F*&% off and die, noob". regards Steve [1]: http://www.cliffsnotes.com/WileyCDA/LitNote/id-2,pageNum-10.html -- Steve Holden

Re: Python evolution: Unease

2005-01-06 Thread Steve Holden
tle time to see how the existing projects go before we can evaluate the success or failure of the process (at least on the existing projects, whose outcomes may or may not be related to the grant process). regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming htt

Re: navigating/changing directories

2005-01-06 Thread Steve Holden
l expansion sequence (assuming Unix-like shell environments), as in: cd `myprogram.py` and then if your program outputs the path to a directory your shell's current working directory will be chaged as you require. there's-always-a-way-ly y'rs - steve -- Steve Holden h

Re: The Industry choice

2005-01-06 Thread Steve Holden
n we see some numbers to support this "impression"? -- It's a man's life in a Python Programming Association. Since I'm taking issue with you, I will end by gently pointing out that there's a substantial minority (? - my impression) of people who might find your tag line (whic

Re: The Industry choice

2005-01-06 Thread Steve Holden
Of course, I have no proof for such an assertion. [and on, and on, and on ...] regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: Embedding a restricted python interpreter

2005-01-06 Thread Steve Holden
ny hosted sites. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: spacing of code in Google Groups

2005-01-06 Thread Steve Holden
to do the job faster if I'd been using Python at the time... Or even used cut(1) from the command line. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://

Re: Developing Commercial Applications in Python

2005-01-06 Thread Steve Hughes
Can somebody there to point me any good commercial applications developed using python ? Yet another game but it's a huge one with a massive DB behind it. http://www.eve-online.com -- Steve Hughes -- http://mail.python.org/mailman/listinfo/python-list

Re: curses is not imported under Linux (and Python 2.4)

2005-01-06 Thread Steve Holden
rses? I get the same thing under Windows: _curses is the compiled extension supporting the curses library, so I must presume that isn't supported by default on Windows. No problems under Cygwin or on Linux. Googling for "python curses windows" might provide a few point

Re: The Industry choice

2005-01-06 Thread Steve Holden
Bulba! wrote: On Thu, 06 Jan 2005 09:42:42 -0500, Steve Holden <[EMAIL PROTECTED]> wrote: You see, I'm not disagreeing with you that your model applies _where it applies_. I only disagree that it applies in face of stronger forces. Now what kind of forces is dominant in most frequen

Re: Other notes

2005-01-07 Thread Steve Holden
ical analysis that I didn't want to leave unsharpened. The fact that Python's existing tokenizer doesn't allow multi-character tokens beginning with a dot after a digit (roughly speaking) is what makes the whole syntax proposal infeasibly hard to adapt to. regards Steve -- Steve Ho

Re: Asyncore

2005-01-07 Thread Steve Holden
def handle_write(self): sent = self.send(self.buffer) self.buffer = self.buffer[sent:] if len(self.buffer) == 0: self.close() self.server.decrement() server = http_server('', 8080) asyncore.loop(timeout=4.0) regards Steve -- Steve Holden

Re: Securing a future for anonymous functions in Python

2005-01-07 Thread Steve Holden
he most enthusiastic evangelical approach to functional programming I've ever heard :-) Perhaps what we really need is a good Lisp subsystem for Python? regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC

Re: "A Fundamental Turn Toward Concurrency in Software"

2005-01-07 Thread Steve Horsley
more work done. So the author's "MHz plateau" graph isn't all Moore's law breaking down, it is the result of Intel's marketing dept breaking down. You may be right, but I agree with the thrust of the article that multicore looks to be the new in thing at the moment. Steve -- http://mail.python.org/mailman/listinfo/python-list

Re: The limitation of the Photon Hypothesis

2005-01-08 Thread Steve Horsley
quantum in origin, and not just an artifact of classical mechanics applied to clumsy measurement. You don't convince me. Also, I think you probably accidentally posted to the wrong newsgroup. Steve -- http://mail.python.org/mailman/listinfo/python-list

Re: tuples vs lists

2005-01-08 Thread Steve Horsley
upted if that internal data was modified by malicious code. If tuples were mutable (lists) then it would be necessary to return a copy instead. Also, do you say 'too-ple' or 'chu-ple' - if you get my drift. (tomato or tomato kind of thing) Try 'Two-pull'. Steve -- http

Re: DOS problem (simple fix??)

2005-01-08 Thread Steve Holden
ave that for another time. Welcome to Python! regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: The limitation of the Photon Hypothesis

2005-01-08 Thread Steve Holden
Steve Horsley wrote: bill wrote: Please reply to [EMAIL PROTECTED], thank you ! No - I'll reply to the newsgroup, if you don't mind. The limitation of the Photon Hypothesis THE UNCERTAINTY PRINCIPLE IS UNTENABLE You cannot use classical theory to disprove quantum theory that e

Re: tuples vs lists

2005-01-08 Thread Steve Holden
ople say "tuppl". So, basically, say whatever you want. Language is about communication :-) you-say-tomato-ly y'rs - steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: Returning same type as self for arithmetic in subclasses

2005-01-08 Thread Steve Holden
me and timedelta and then auto-create methods wrapping the base types' methods in a "myxxx" conversion. left-as-an-exercise-for-the-reader-ly y'rs - steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web L

Re: The best way to do web apps with Python?

2005-01-08 Thread Steve Holden
using existing functionality in either language over a just-for-the-sake-of-it rewrite in Python. But that could just be because I don't like re-inventing wheels. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC

Re: Working with recordsets

2005-01-08 Thread Steve Holden
won't be memory-efficient but it will be easy to do. AdSR Or, if this doesn't suit, try creating two separate cursors from the same connection and execute the same query on each. There's some chance that your database driver/backend combination will optimize the queries then.

Re: windows mem leak

2005-01-08 Thread Steve Holden
ithout any trouble at all to Windows, but once it runs flawlessly on Linux it starts to leak memory on Windows. The PSU suspects a plot in Redmond, the basic details of which ar -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web L

Re: python3: 'where' keyword

2005-01-09 Thread Steve Holden
experience, annyway) to the use of "where" in BCPL (heavens, *that* was a long time ago). I never found that entirely natural either. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861

Re: python3: accessing the result of 'if'

2005-01-09 Thread Steve Holden
utility of deferred expressions. Here's a version using my preferred syntax from the AlternateLambdaSyntax page: if test(something(), (def x < 10 from x)) as m: print "Case 1:", m elif test(something(), (def x > 20 from x)) as m: print "Case 2:", m e

Re: Python Installation

2005-01-09 Thread Steve Holden
ll do much of what is required. Google for his name and "python registry" to find out more. Hmm, effbot.org seems to be down just now. Sure it'll be back soon, though. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb

Re: Python3: on removing map, reduce, filter

2005-01-09 Thread Steve Holden
imply that straightforward code is to be preferred unless speed requirements override that. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailma

Re: use a file as a database, access rights

2005-01-09 Thread Steve Holden
ts to certain parts of the database. Several people should work on it and NEED to have different access rights. Can anybody give me some recommendations on what to use? Sounds to me like you need to add a rights layer to gadfly. regards Steve -- Steve Holden http://www.holdenwe

Re: Python serial data aquisition

2005-01-09 Thread Steve Holden
bits from the first byte's integer value, shifts them up seven bits, and then adds the rightmost seven bits of the second byte's integer value. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1

Re: use a file as a database, access rights

2005-01-09 Thread Steve Holden
Kartic wrote: Steve Holden wrote: Sounds to me like you need to add a rights layer to gadfly. Aha...I did not consider that possibility. I have not gone indepth into Gadfly...is that a straigtforward thing to implement? Gadfly has been a very straightforwad installation for me. Of course the

Re: Python3: on removing map, reduce, filter

2005-01-09 Thread Steve Holden
[EMAIL PROTECTED] wrote: Steve Holden wrote: No he didn't. I think you will find you are attributing Steven Bethard's comments to me. [...] The Numeric and Numarray Python modules have predefined ufunc's that are essentially elemental functions with one or two arguments. It would

Re: path to python file given module

2005-01-09 Thread Steve Holden
y to be, and a littel further manipulation should be able to confirm that. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: Python serial data aquisition

2005-01-10 Thread Steve Holden
Flavio codeco coelho wrote: [EMAIL PROTECTED] (Michael Fuhr) wrote in message news:<[EMAIL PROTECTED]>... If the actual byte and/or bit order is different then you'll have to modify the expression, but this should at least give you ideas. Thanks Michael and Steve, I'll put your I

Re: 20050119: quoting strings

2005-01-10 Thread Steve Holden
ed, and "quotes" needn't be quoted.]; print "$a\n$b"; #to see more about perl strings, do on shell prompt #perldoc -tf qq Xah [EMAIL PROTECTED] http://xahlee.org/PageTwo_dir/more.html Well, that gets that sorted out, then. Tomorrow: using single quotes. Using single quotes. The

Re: Securing a future for anonymous functions in Python

2005-01-10 Thread Steve Holden
ak the wrong end of their boiled eggs). BTW - I am *quite* happy with the proposal for "where:" syntax - I think it handles the problems I have with lambda quite handily. Whereas I find it to be an excrescence, proving (I suppose) that one man's meat is another person

Re: python3: 'where' keyword

2005-01-10 Thread Steve Holden
trachey's GPM) why somebody doesn't produce a really useful set of (say) M4 macros to prove how much they'd improve Python. Now that's something that would be a bit less ignorable than this apparently interminable thread. regards Steve PS: Your continued use of the NOSPAM.inva

Re: Port blocking

2005-01-10 Thread Steve Holden
n't, IMHO, anything with the polish of (say) Microsoft Access, or even Microsoft SQL Server's less brilliant interfaces. Some things Microsoft *can* do well, it's a shame they didn't just stick to the knitting. regards Steve -- Steve Holden http://www.holdenweb.co

Re: Port blocking

2005-01-10 Thread Steve Holden
ess known to be legitimate corporate services to the external world. Firewalling web services effectively is just an additional pain for the network manager. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: exceptions and items in a list

2005-01-10 Thread Steve Holden
... except AttributeError: ... print "Caught exception" ... continue ... 1 2 Caught exception 3 >>> To terminate the loop on the exception you would use "break" instead of "continue". regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: Chicago Python Users Group: Thu 13 Jan Meeting

2005-01-10 Thread Steve Holden
ike to mention that I'd be up for a beer and/or meal and a natter with any Chicago Pythonistas who happen to fancy it. Anyone who so wishes can then email me. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web

Re: Newbie: Pythonwin

2005-01-12 Thread Steve Holden
minimizes! Any way I can do what I want here? Sorry, I think you'll need to ask Mark Hammond to have PythonWin pump events more aggressively or some such. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web L

Re: shutil.move has a mind of its own

2005-01-12 Thread Steve Holden
't included in the pasted snippet. Also, "data" appears to be a global variable, which leaves us lacking some useful information. Does the debugMess() call show the full destination path for the file? regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web P

Re: python and macros (again) [Was: python3: 'where' keyword]

2005-01-12 Thread Steve Holden
le language. If you really see the need for Python macros then a preprocessor would surely be the best way to prove the validity of such ideas? regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: python and macros (again) [Was: python3: 'where' keyword]

2005-01-12 Thread Steve Holden
not so bizarre if what you want is to have access to Python from Lisp/Scheme in the same sense Jython has access to Java. Why not just use a foreign function interface? regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holde

Re: else condition in list comprehension

2005-01-12 Thread Steve Holden
ces. I presume the point of this is to avoid polluting the local namespace with "newval". I further presume you also have plans to do something about "i"? ;-) regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holde

Re: Why would I get a TypeEror?

2005-01-12 Thread Steve Holden
d way to write this would be: a = 3 b = 1 if isinstance(a,(list,tuple,dict)): b = len(a) Is code length *really* so important? Think carefully ... regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC

Re: Unclear On Class Variables

2005-01-13 Thread Steve Holden
.. def getCt(self): ... return self.count ... def inc(self): ... self.count += 1 ... >>> x1 = X() >>> x2 = X() >>> id(x1.count) 168378284 >>> x1.inc() >>> id(x1.count) 168378272 >>> id(x2.count) 168378284 >>> id(X.count)

Re: Octal notation: severe deprecation

2005-01-13 Thread Steve Holden
ng-new-under-the-sun-ly y'rs - steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: python and macros (again) [Was: python3: 'where' keyword]

2005-01-13 Thread Steve Holden
en *nobody* would be listening to me :-) regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: newbie q

2005-01-13 Thread Steve Holden
ments of list Any statement of the form for i in [x for x in something]: can be rewritten as for i in something: Note that this doesn't mean you never want to iterate over a list comprehension. It's the easiest way, for example, to iterate over the first item of

[Fwd: Re: Embedding Multiplr Python interpreter in C++]

2005-01-14 Thread Steve Holden
t; >> How can I embed two python interpreters in one C++ program ? >> >> Thanks > Take a look at mod_python's code: that allows several independent interpreters in the same Apache process using Py_NewInterpreter(), which may well be what you want - initially, see http://ww

Re: import problems *newbie*

2005-01-14 Thread Steve Holden
is from my_scripts import PolyDraw Let's not recommend this as a way around the problem - let's find out what the problem actually *is* and fix it ;-) regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web L

Re: lambda

2005-01-14 Thread Steve Holden
correctly it was Alex Martelli. "A foolish consistency is the hobgoblin of little minds". Rules are made to be broken. Besides which, if you don't understand the language environment, rules alone will do you very little good. Try to focus a little more on principles and a little less o

Re: newbie ?s

2005-01-14 Thread Steve Holden
ous. I was hoping to build a cleaner solution around the CGIHTTPServer variant instead of say something like mini-httpd/OpenSSL/Python. I'd appreciate any pointers. I believe the Twisted package may be your best alternative, though this is at best hearsay since I am not (yet) an active user.

Re: newbie q

2005-01-14 Thread Steve Holden
Bengt Richter wrote: On Thu, 13 Jan 2005 09:16:40 -0500, Steve Holden <[EMAIL PROTECTED]> wrote: [...] Any statement of the form for i in [x for x in something]: can be rewritten as for i in something: Note that this doesn't mean you never want to iterate over a list comprehensio

Re: why are people still using classic classes?

2005-01-14 Thread Steve Holden
gs stay sane. Remembering that the MO for classic classes and types are rather different, how many cases do you think it will matter? regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: Refactoring; arbitrary expression in lists

2005-01-14 Thread Steve Holden
liest way to express that thought? regards-li-er y'rs - steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: why are people still using classic classes?

2005-01-14 Thread Steve Holden
compelling reason to put in the effort to change my habits. Since the only effort is the addition of __meta class__ = type at the head of your modules you could probably automate this without breaking too much code. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web

Re: query python env

2005-01-14 Thread Steve Holden
AIL PROTECTED] sholden]$ python Python 2.2.1 (#1, Aug 30 2002, 12:15:30) [GCC 3.2 20020822 (Red Hat Linux Rawhide 3.2-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> os.environ["

Re: Python.org, Website of Satan

2005-01-14 Thread Steve Holden
be made look stupid or be insulted. And here was me just thinking that the burn would result from the inevitable flames. Newsgroups really re a continual surprise. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Hol

Re: (objects as) mutable dictionary keys

2005-01-14 Thread Steve Holden
ouraged you from shooting yourself in the foot would you do that too? some-people-just-won't-be-told-ly y'rs - steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http

Re: python and macros (again) [Was: python3: 'where' keyword]

2005-01-14 Thread Steve Holden
ussing how many angels can dance on the head of a pin? or-something-interesting-like-that-sly y'rs - steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

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

2005-01-14 Thread Steve Holden
between representations might militate against more efficient representations. Or, of course, it might not :-) it's-only-storage-ly y'rs - steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC

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

2005-01-14 Thread Steve Holden
east a fifth base to represent, which means you need at least three bits per base, which means only two bases per byte (or else base-encodings split across byte-boundaries) That gets ugly real fast.) Right! regards Steve -- Steve Holden http://www.holdenweb.com

Re: [perl-python] 20050115, for statement

2005-01-15 Thread Steve Holden
s. Both agree he's a nuisance who is ill-informed about Perl *and* Python ;-) I can only presume it's egocentricity that keeps him cross-posting this nonsense to c.l.py and c.l.pe.misc despite the many deficiencies that have been remarked upon in both newsgroups. fraternal-greetings-to-t

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

2005-01-15 Thread Steve Holden
long as you don't mix file and string operations. The programming convenience is amazing. -- I have come to kick ass, chew bubble gum and do the following: from __future__ import py3k And it doesn't work. So make it work :-) regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: python mode indentation problem

2005-01-15 Thread Steve Holden
Xah Lee wrote: [...] © © who the fuck coded the python mode in emacs? fuckhead please peruse: © http://xahlee.org/UnixResource_dir/writ/responsible_license.html © Pure egotism. Not to mention bad language. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web

Re: Integration with java (Jpype vs. JPE)

2005-01-16 Thread Steve Menard
et, Iterator). Of course, the above is based on the JPE documentation, because I havent been able to get JPE to work. About Cameron's suggestion, sure. I'll do it as soon as I (or someone else) can get both JPype and JPE to work so they can be compared through more than just their res

Re: nntplib: abstraction of threads

2005-01-16 Thread Steve Holden
->', re_dic[b][0] print ' ', re_dic[b][1] print Better still, do a Google search on "mail threading algorithm", implement the algorithm described in http://www.jwz.org/doc/threading.html and post your implementation back to the newsgroup :-) regard

Re: protecting the python code.

2005-01-16 Thread Steve Holden
nell wrote: Hi Steve, First the "10x in advance" means thanks in advance. The main importance of protecting my code is to save headache of customers that want to be smart and change it and then complain on bugs and problems. 10x I'd have understood "tnx", never seens 10x

Re: import problems *newbie*

2005-01-17 Thread Steve Holden
cting bytecode files to specific locations are picked up, it would seem like a good idea to point out the desirability of using separate copies of Python module sources for different interpreters. Anyway Mike, I'm glad you have a reliable solution to your problem. regards Steve -- Steve

Re: lambda

2005-01-17 Thread Steve Holden
Principle: "Ten angels can dance on the head of a pin". Minutiae: "Well, if they'd all recently been on a diet and they hold on to each other very carefully you can get 10.3. I got eleven once by adding a hash function". regards Steve -- Steve Holden

Re: [perl-python] 20050117, filter, map

2005-01-17 Thread Steve Holden
seems unlikely to ever appear. Or, better yet, not posting it at all. He's got his mailing list, what does he need to post it here for? As I may have mentioned before, egotism can be the only possible reason. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Program

Re: Writing huge Sets() to disk

2005-01-17 Thread Steve Holden
ook in one of the twenty temp dicts, and if you don;t find something you read it back in form disk? This whole thing seems a little disorganized. Perhaps if you started with a small dataset your testing and development work would proceed more quickly, and you'd be less intimidated by the clear

Re: lambda

2005-01-17 Thread Steve Holden
Antoon Pardon wrote: Op 2005-01-17, Steve Holden schreef <[EMAIL PROTECTED]>: Antoon Pardon wrote: [...] "A foolish consistency is the hobgoblin of little minds". Rules are made to be broken. Like only use immutables as dictionary keys. Fair enough, but don;t go advising newbies

Re: lambda

2005-01-17 Thread Steve Holden
Antoon Pardon wrote: Op 2005-01-17, Steve Holden schreef <[EMAIL PROTECTED]>: Antoon Pardon wrote: Op 2005-01-17, Steve Holden schreef <[EMAIL PROTECTED]>: Antoon Pardon wrote: [...] "A foolish consistency is the hobgoblin of little minds". Rules are made to be

Re: Native widgets for Python

2005-01-17 Thread Steve Holden
the intention of being able to replace wxPython with other GUI kits at a later date. So, there should be a simpler graphical API, but since I haven't yet done more than dabble (dabole?) with dabo I can't be sure. regards Steve -- Steve Holden http://www.ho

Re: lambda

2005-01-17 Thread Steve Holden
Antoon Pardon wrote: Op 2005-01-17, Steve Holden schreef <[EMAIL PROTECTED]>: Antoon Pardon wrote: I don't see a big difference between these principles and the hash key principle, so in the end may be we should just stick with the more general principle: Don't use mutables! and

Re: How to prevent the script from stopping before it should

2005-01-17 Thread Steve Holden
available for earlier versions. You will need to import the socket module and then call socket.setdefaulttimeout() to ensure that communication with non-responsive servers results in a socket exception that you can trap. regards Steve -- Steve Holden http://www.holdenweb.com/ Pyt

Re: Adjusting the 1024 byte stdin buffer limit

2005-01-17 Thread Steve Holden
? regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: Integration with java (Jpype vs. JPE)

2005-01-17 Thread Steve Menard
ions, feel free to post them on the feedback list on sourceforge. I check it every day and I try to answer as quickly as possible. Steve, aka devilwolf on sourceforge, maintainer of JPype -- http://mail.python.org/mailman/listinfo/python-list

Re: generator expressions: performance anomaly?

2005-01-18 Thread Steve Holden
the individual items until they are required and thereby relieve stress on memory. As an edge case to demonstrate the point, what about a constant but infinite sequence? regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Ho

Re: Integration with java

2005-01-18 Thread Steve Holden
evelopment *does* focus mostly on the library, there's a sporting chance that Jython can be fully up to date for the 2.5 release. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 70

Re: lambda

2005-01-18 Thread Steve Holden
f thumb" and "general principle". preferably-in-less-than-three-thousand-words-ly y'rs - steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: generator expressions: performance anomaly?

2005-01-18 Thread Steve Holden
Stephen Thorne wrote: On Tue, 18 Jan 2005 07:12:18 -0500, Steve Holden <[EMAIL PROTECTED]> wrote: Since it doesn't yet optimize 2+5 to a constant-folded 7 you should realize that you are suggesting a large increase in the compiler's analytical powers. As in interesting aside to th

Re: generator expressions: performance anomaly?

2005-01-18 Thread Steve Holden
ut their behaviors vis a vis side effects. Python is *designed* as a dynamic language. I wish you would embrace this aspect rather than continually trying to shoehorn it into a static straitjacket. Efficiency is good. Flexibility is better. regards Steve -- Steve Holden http://www.ho

Re: generator expressions: performance anomaly?

2005-01-18 Thread Steve Holden
Antoon Pardon wrote: Op 2005-01-18, Steve Holden schreef <[EMAIL PROTECTED]>: Python is *designed* as a dynamic language. I wish you would embrace this aspect rather than continually trying to shoehorn it into a static straitjacket. Efficiency is good. Flexibility is better. Flexibil

Re: bind error!!!!!

2005-01-18 Thread Steve Holden
the socket.SO_REUSEADDR option when you open your server socket. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: file copy portability

2005-01-18 Thread Steve Holden
Bob Smith wrote: Is shutil.copyfile(src,dst) the *most* portable way to copy files with Python? I'm dealing with plain text files on Windows, Linux and Mac OSX. Thanks! Yes. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenwe

Re: Integration with java (Jpype vs. JPE)

2005-01-18 Thread Steve Menard
Istvan Albert wrote: Steve Menard wrote: To asnwer your question more fully, the jpype-specific cide is only for looking up the Classes and startting/stopping the environment. For everything else, Java objects and classes are used as regular Python objects. Thanks for the response. Currently I

Re: generator expressions: performance anomaly?

2005-01-19 Thread Steve Holden
Paul Rubin wrote: Steve Holden <[EMAIL PROTECTED]> writes: You probably already know that sensible compiled language systems have used constant folding since time immemorial, but Python has always eschewed it. That's what comes of being a pragmatist's language: if such optimiza

Re: generator expressions: performance anomaly?

2005-01-19 Thread Steve Holden
Antoon Pardon wrote: Op 2005-01-18, Steve Holden schreef <[EMAIL PROTECTED]>: [...] But you do have a point that I have a tendency to put salt on any snail. I'll try to restrain myself a bit more in the future. Finally! :-) I find I like you much better after this reflective response.

Re: a question

2005-01-19 Thread Steve Holden
obably complaining because it needs six values to fill out the format and you only provided four. In future, by the way, always include the error message in such posts! regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: Accessing MDB files on Windows

2005-01-19 Thread Steve Holden
ys to skin this particular cat. regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC +1 703 861 4237 +1 800 494 3119 -- http://mail.python.org/mailman/listinfo/python-list

Re: a question

2005-01-19 Thread Steve Holden
nside. Sometimes that feels like a wart to me, but now I know it, sometimes not. That has very little to do with tuples. You could just as easily write 'this is a '\ 'long string' It's the dangling comma that's required to specify a tuple: >>> 1,

Re: Has apparent 2.4b1 bug been fixed? flatten in Lib\compiler\ast.py overloads 'list' name

2005-01-19 Thread Steve Holden
brary (which he then provided himself by finding a bug report). Hence his use of the phrase "overloads 'list' name" in the subject line! regards Steve -- Steve Holden http://www.holdenweb.com/ Python Web Programming http://pydish.holdenweb.com/ Holden Web LLC

<    12   13   14   15   16   17   18   19   20   21   >