Re: Case-insensitive dict, non-destructive, fast, anyone?

2005-04-05 Thread Ville Vainio
> "Bengt" == Bengt Richter <[EMAIL PROTECTED]> writes: Bengt> I wonder if a dict with a general override hook for hashing Bengt> all keys would be useful. E.g., a dict.__keyhash__ that Bengt> would take key as arg and default as now returning Bengt> key.__hash__() but that you

Re: Add System Path?!?

2005-04-05 Thread Fouff
[EMAIL PROTECTED] a écrit : Hello NG, I have a GUI (written in wxPython) that calls some external exe files. Some of them requires that I add to the PATH variable 1 directory. Basically, the exe are located in: /MyApp/Solvers/FirstExe /MyApp/Solvers/SecondExe And so on, while the dll needed by

Re: "specialdict" module

2005-04-05 Thread Steven Bethard
Georg Brandl wrote: Georg Brandl wrote: Hello, in follow-up to the recent "dictionary accumulator" thread, I wrote a little module with several subclassed dicts. Comments (e.g. makes it sense to use super), corrections, etc.? Is this PEP material? Docstrings, Documentation and test cases are to be

Re: Python IDE like NetBeans/Delphi IDE

2005-04-05 Thread Axel Straschil
Hello! > WingIDE (commercial, slower than PythonWin but has many features) You can use and reactivate a trial licence for WingIDE for a realy long term, give it a try, i bought a licence last week and realy love it! Lg, AXEL. -- "Aber naja, ich bin eher der Forentyp." Wolfibolfi's outing in ht

fastcgi

2005-04-05 Thread jason_
Hi Is anyone using fastcgi (the fastcgi.py file floasting around, or jonpy) in a poduction environment? I'm just wondering how stable python would be with fastvgi and lightttpd thanks Jason -- http://mail.python.org/mailman/listinfo/python-list

Re: "specialdict" module

2005-04-05 Thread Georg Brandl
Georg Brandl wrote: > Hello, > > in follow-up to the recent "dictionary accumulator" thread, I wrote a > little module with several subclassed dicts. > > Comments (e.g. makes it sense to use super), corrections, etc.? Is this > PEP material? > > Docstrings, Documentation and test cases are to be

Re: Best editor?

2005-04-05 Thread Mike L.G.
"ChinStrap" <[EMAIL PROTECTED]> writes: > Opinions on what the best is? Or reading I could get to maybe sway me > to Emacs (which has the major advantage of being on everyone's system). When I first started using emacs, progress was slow, but through my persistence, I was able to harness the powe

Re: Decorator Base Class: Needs improvement.

2005-04-05 Thread Ron_Adam
On Wed, 06 Apr 2005 16:33:24 +1200, Greg Ewing <[EMAIL PROTECTED]> wrote: >Ron_Adam wrote: >> I would have preferred the @ symbol to be used as an inline assert >> introducer. Which would have allowed us to put debug code anywhere we >> need. Such as @print total @. > >Don't lose heart, there

Re: tkinter destroy()

2005-04-05 Thread [EMAIL PROTECTED]
Macs: "if we follow your advice we should do: immagine_1a = PhotoImage() instead, but it doesn't work. why? " Images are a special case. You need to create an object instance of them through the self. construction or else Tkinter seems to forget about them within a couple of lin

Re: Gnuplot.py and, _by far_, the weirdest thing I've ever seen on my computer

2005-04-05 Thread Fernando Perez
syd wrote: > Thanks for all the help, guys! > Fernando, that's a creative solution, I'll try it as well... > while 1: > if os.path.isfile(your_plot_filename): > break > time.sleep(1) More like a desperate brute force one, but it gets the job done :) You mentioned having ipython, so you

Re: Decorator Base Class: Needs improvement.

2005-04-05 Thread Greg Ewing
Ron_Adam wrote: I would have preferred the @ symbol to be used as an inline assert introducer. Which would have allowed us to put debug code anywhere we need. Such as @print total @. Don't lose heart, there are still two unused characters left, $ and ?. ? might even be more mnemonic for this pu

Re: Does IronPython indicate MS interest in dynamic languages?

2005-04-05 Thread Mike Rovner
Thomas Gagne wrote: Assuming (I don't know for certain) that MS's PR approves all messages that leave the building, I'm wondering if this foray into dynamic languages doesn't signal something greater on MS' part. While Sun and Java (and C# for the most part) have remained statically-typed, do y

Re: authentication in zope server & Python

2005-04-05 Thread Michele Simionato
Not to be rude, but you are on the wrong list and your question is ill formulated: http://www.catb.org/~esr/faqs/smart-questions.html http://www.zope.org/Resources/MailingLists Michele Simionato -- http://mail.python.org/mailman/listinfo/python-list

Re: Best editor?

2005-04-05 Thread Michael George Lerner
Aahz <[EMAIL PROTECTED]> wrote: > Use vim. 80% of the power of emacs at 20% of the learning curve. A system administrator said this to me about unix a long time ago, but it applies equally well to emacs: Emacs is a great place to live, but I'd hate to visit. -michael, an (x)emacs user -- htt

Re: Best editor?

2005-04-05 Thread jstroud
On Tuesday 05 April 2005 11:22 am, ChinStrap wrote: > I keep hearing everyone say Emacs, but I can't understand it at all. Both emacs and vi suffer from the fact that they can not be used by ordinary humans. Thus, I recommend using either to impress your friends. James -- http://mail.python.org/

Re: Installing Python 2.4 on Linux

2005-04-05 Thread Simon John
Marcin Stepnicki wrote: > It's rather Fedora related, I have Python 2.2, 2.3 and 2.4 on my Ubuntu > box and they seem to coexist without problems. It's not a Fedora problem at all. The 2.4.1 RPM's just move the default /usr/bin/python symlink to point to the new Python24 instead of Python23 that

Re: Lambda: the Ultimate Design Flaw

2005-04-05 Thread Ivan Van Laningham
Hi All-- Aahz wrote: > Given the tension of the various > requirements, I think that Python has broken "only one way" as little as > possible, with the full intention of getting closer to its ideal when the > time comes to break backward compatibility. > I wrote my mayalib package under 1.3.0.

Does IronPython indicate MS interest in dynamic languages?

2005-04-05 Thread Thomas Gagne
Cameron Laird wrote: And now, for something completely different, I'll tender a personal view: I think Mr. Gates and Python are actually destined to get along uncharacteristically well. Roughly, I suspect the habits and motivations of the two are so skew, that the usual "embrace and extend" simp

Re: authentication in zope server & Python

2005-04-05 Thread Raghul
Pls help Guys no idea? -- http://mail.python.org/mailman/listinfo/python-list

Re: Super Newbie Question

2005-04-05 Thread Greg Ewing
Joey C. wrote: the issue with the temporary file is that when I write something new to it, if the old contents of the file was larger, not all of it will be overwritten. Not if you open it with f = open(filename, "w") which will delete any previous contents the file may have had. -- Greg Ewing, C

Re: getting text from WinXP console

2005-04-05 Thread Chris Maloof
On Tue, 22 Mar 2005 13:11:59 -0800, "Mark T." <[EMAIL PROTECTED]> wrote: > >"Chris Maloof" <[EMAIL PROTECTED]> wrote in message >news:[EMAIL PROTECTED] >> Hello, >> >> Does anyone know how I can read the ASCII text from a console window >> (from another application) in WinXP? It doesn't sound lik

Calling a Perl Module from Python

2005-04-05 Thread gf gf
I've recently made the switch. Wow, is Python great! One thing which I haven't been able to do is replace Perl's great lib collection (HTML::Parser, for instance, can do a lot that Soup just can't). Is there anyway to call Perl modules from Python? Thanks PS Please cc me on all responses

Re: os.path query functions behavior incorrect?

2005-04-05 Thread Simon Percivall
> These to me are I/O errors that should result in an exception. > Doing a command line dir a:\ reports "The system cannot find > the path specified." The functions use the underlying C library, and in this case, the result is not guaranteed by the standard. -- http://mail.python.org/mailman/lis

Re: Best editor?

2005-04-05 Thread Paul McGuire
SciTE (Scintilla Text Editor) is just right for me too. Low overhead, great just as a Notepad alternative, but with good coding support too. -- Paul -- http://mail.python.org/mailman/listinfo/python-list

Re: Installing Python 2.4 on Linux

2005-04-05 Thread Edward Diener
Marcin Stêpnicki wrote: > Dnia Tue, 05 Apr 2005 21:21:37 +, Edward Diener napisal(a): > >> I can install Python 2.4 on the Fedora 3 Linux system, but after I >> do a number of Linux utilities and commands, like yum, stop working >> because they were dependent on the Python 2.3 installation. Wha

Re: Decorator Base Class: Needs improvement.

2005-04-05 Thread Ron_Adam
On Tue, 05 Apr 2005 19:38:38 -0400, Steve Holden <[EMAIL PROTECTED]> wrote: >> >So what you are saying is that you would like to be able to use >arbitrarily complex expressions after the :at" sign, as long as they >return a decorator? If so, you've been "pronounced" :-) > >regards > Steve No

Re: Decorator Base Class: Needs improvement.

2005-04-05 Thread El Pitonero
Scott David Daniels wrote: > Ron_Adam wrote: > > ... > > def tweakdoc(name): > def decorator(function): > function.__doc__ = 'Tweak(%s) %r' % (name, function.__doc__) > return function > return decorator > > What is confusing us about what you write is tha

Re: Lambda: the Ultimate Design Flaw

2005-04-05 Thread Aahz
In article <[EMAIL PROTECTED]>, =?iso-8859-1?Q?Fran=E7ois?= Pinard <[EMAIL PROTECTED]> wrote: >[Aahz] >> =?iso-8859-1?Q?Fran=E7ois?= Pinard <[EMAIL PROTECTED]> wrote: >>> >>>No doubt it once was true, but I guess this ideal has been >>>abandoned a few years ago. My honest feeling is that it woul

Re: IronPython 0.7 released!

2005-04-05 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Steve Holden <[EMAIL PROTECTED]> wrote: . . . >Presumably when we get past the embracing and on to the extending Barry >can finally retrain Spambayes to reject penis enlargement emails?

Re: unittest vs py.test?

2005-04-05 Thread Bengt Richter
On Tue, 5 Apr 2005 14:02:49 GMT, Michael Hudson <[EMAIL PROTECTED]> wrote: >Roy Smith <[EMAIL PROTECTED]> writes: > >> In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Bengt Richter) >> > Is there a package that is accessible without svn? >> >> That seems to be its weak point right now. >> >>

Re: math - need divisors algorithm

2005-04-05 Thread David Eppstein
> > Does anyone have suggested code for a compact, efficient, elegant, most of > > all pythonic routine to produce a list of all the proper divisors of an > > integer (given a list of prime factors/powers) I have code for this in (look for t

Re: Docorator Disected

2005-04-05 Thread Ron_Adam
On Wed, 06 Apr 2005 00:23:01 GMT, [EMAIL PROTECTED] (Bengt Richter) wrote: >I don't know of anything other than the compiler and cpython sources. >The byte codes are not all the same from version to version, since >added language features may require new byte code operations, at least >for efficie

Re: Best editor?

2005-04-05 Thread François Pinard
[Aahz] > Use vim. 80% of the power of emacs at 20% of the learning curve. I used Emacs for a long while, and learned it a bit thoroughly. I also learned Vim mor recently, and still have many things to study. See http://pinard.progiciels-bpi.ca/opinions/editors.html for some (incomplete) thought

Re: Lambda: the Ultimate Design Flaw

2005-04-05 Thread Sunnan
T.D. Lassagne wrote: Please consider joining the International Sarcasm Society. Our motto is "Like We Need YOUR Support". I *recognize* sarcasm; I just don't think it's very funny. Now parody, which this turned out to be, I can appreciate. -- http://mail.python.org/mailman/listinfo/python-list

Re: oracle interface

2005-04-05 Thread Grig Gheorghiu
I subscribe to the other posters' opinion: cx_Oracle is what I use on Windows, Linux and Solaris. Works great cross-platform and across Oracle versions (I use it with Oracle 9 and 10, haven't tried 8 yet). Grig -- http://mail.python.org/mailman/listinfo/python-list

Re: How to get rid of FutureWarning: hex/oct constants...

2005-04-05 Thread J Correia
Assuming you're just trying to get rid of the message each time the program runs, the following suppresses it: import warnings warnings.filterwarnings('ignore', category=FutureWarning) HTH, -- http://mail.python.org/mailman/listinfo/python-list

Re: Propagating poorly chosen idioms

2005-04-05 Thread Roy Smith
"Raymond Hettinger" <[EMAIL PROTECTED]> wrote: > The remainder of the unittest docs are somewhat obtuse and uninspiring. QOTW, perhaps? -- http://mail.python.org/mailman/listinfo/python-list

Re: Decorator Base Class: Needs improvement.

2005-04-05 Thread Steve Holden
Ron_Adam wrote: On Tue, 05 Apr 2005 02:55:35 -0400, Steve Holden <[EMAIL PROTECTED]> wrote: Ron_Adam wrote: Ok, that post may have a few(dozen?) problems in it. I got glitched by idles not clearing variables between runs, so it worked for me because it was getting values from a previous run. This

Re: Is it possible to distinguish between system environment variables and the user ones?

2005-04-05 Thread Kartic
There is nothing that plainly differentiates whether an environment variable is the system's or the current user's. What you could do is: 1. Get the list of environment variables for the user the script is executing as. 2. Use the pywin32 extensions to access the registry key HKCU\Environment 3. L

Re: Best editor?

2005-04-05 Thread Steve Holden
ChinStrap wrote: When not using the interactive prompt, what are you using? I keep hearing everyone say Emacs, but I can't understand it at all. I keep trying to learn and understand why so many seem to like it because I can't understand customization even without going through a hundred menus that

Re: Propagating poorly chosen idioms

2005-04-05 Thread Raymond Hettinger
[Skip Montanaro] > This reminded me of something I noticed awhile ago. If you're learning > something new, there is a tendency to find a working example to start from, > then modify it to suit your needs. This is fine as far as it goes, however, > if the idioms used in the code you're cloning are

Re: (win32) speedfan api control

2005-04-05 Thread Almico
"Claudio Grondi" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > your script works ok on my W2K box :-). > > It makes me curious if I can get also the > temperatures into Python script for > further processing as easy as the setting > of the checkbox is done? (I have not > much

Re: Best editor?

2005-04-05 Thread Ivan Van Laningham
Hi All-- Aahz wrote: > > Use vim. 80% of the power of emacs at 20% of the learning curve. > I think Aahz has it dead on. Umpty-mumble years ago I spent six weeks learning emacs lisp and customizing emacs until it did EXACTLY what I wanted. It was a great user interface, logical, consistent,

Re: Installing Python 2.4 on Linux

2005-04-05 Thread John Ridley
--- Edward Diener <[EMAIL PROTECTED]> wrote: [snip] > I do not know whether this is a Python problem or a Fedora 3 problem > but > I thought I would ask here first and see if anybody else had the same > > problem. I imagine the problem might exist on other Linux systems. On my Mandrake 10.1 sys

Re: IronPython 0.7 released!

2005-04-05 Thread Steve Holden
Tim Peters wrote: [Thomas Gagne] Does the Python community think Microsoft's embrace is a good or bad thing? All things in this world unfold exactly according to Guido's secret Master Plan. So it depends on whether you think Guido is good or bad. Members of the Python community are required to t

Re: Docorator Disected

2005-04-05 Thread Bengt Richter
On Tue, 05 Apr 2005 18:59:32 GMT, Ron_Adam <[EMAIL PROTECTED]> wrote: >On Tue, 05 Apr 2005 06:52:58 GMT, [EMAIL PROTECTED] (Bengt Richter) wrote: > >>>Ok, yes, besides the globals, but I figured that part is obvious so I >>>didn't feel I needed to mention it. The function call works the same >>>e

Re: Decorator Base Class: Needs improvement.

2005-04-05 Thread Ron_Adam
On Tue, 05 Apr 2005 14:32:59 -0700, Scott David Daniels <[EMAIL PROTECTED]> wrote: >Ron_Adam wrote: >> What I was referring to is the case: >> @decorator(x,y,z) >> As being a decorator expression with more than one argument. >But, we generally say this is a call to a function named decorato

Re: Installing Python 2.4 on Linux

2005-04-05 Thread Marcin Stępnicki
Dnia Tue, 05 Apr 2005 21:21:37 +, Edward Diener napisal(a): > I can install Python 2.4 on the Fedora 3 Linux system, but after I do a > number of Linux utilities and commands, like yum, stop working because > they were dependent on the Python 2.3 installation. What happens is that > Python

Re: Best editor?

2005-04-05 Thread Aahz
In article <[EMAIL PROTECTED]>, ChinStrap <[EMAIL PROTECTED]> wrote: > >When not using the interactive prompt, what are you using? I keep >hearing everyone say Emacs, but I can't understand it at all. I keep >trying to learn and understand why so many seem to like it because I >can't understand cus

Re: Best editor?

2005-04-05 Thread Michael Hoffman
ChinStrap wrote: Opinions on what the best is? The best editor? Ed is the standard text editor. Accept no substitutes. -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Re: playing with pyGoogle - strange codec error

2005-04-05 Thread Brian Blazer
On 2005-04-05 13:55:48 -0500, Erik Max Francis <[EMAIL PROTECTED]> said: Thank you, that worked. Brian -- Nail a post to the Spalted Board. Free WW'ing software and forums. Regular freebies! http://www.spaltedboard.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Decorator Base Class: Needs improvement.

2005-04-05 Thread Scott David Daniels
Ron_Adam wrote: What I was referring to is the case: @decorator(x,y,z) As being a decorator expression with more than one argument. But, we generally say this is a call to a function named decorator that returns a decorator. If you called it: @make_decorator(x,y) def . We'd be s

Re: Decorator Maker is working. What do you think?

2005-04-05 Thread Ron_Adam
On 5 Apr 2005 00:35:45 -0700, "Kay Schluehr" <[EMAIL PROTECTED]> wrote: >Ron_Adam wrote: >> Ok... it's works! :) >> >> So what do you think? > >Not much. As long as You do not present any nontrivial examples like >Guidos MultiMethod decorator or an implementation of the dispatching >"case" decorat

Re: optparse and negative numbers as positional arguments

2005-04-05 Thread Grant Edwards
On 2005-04-05, Tomi Silander <[EMAIL PROTECTED]> wrote: > this must have been asked 1000 times (or nobody is as stupid as me), > but since I could not find the answer, here is the question. [...] > $ python2.4 ./mitvit.py -1.1 [optparse error] > How is one supposed to give negative numbers as

Installing Python 2.4 on Linux

2005-04-05 Thread Edward Diener
I can install Python 2.4 on the Fedora 3 Linux system, but after I do a number of Linux utilities and commands, like yum, stop working because they were dependent on the Python 2.3 installation. What happens is that Python 2.4 replaces the /usr/bin/python module with the Python 2.4 version. If

optparse and negative numbers as positional arguments

2005-04-05 Thread Tomi Silander
Hi, this must have been asked 1000 times (or nobody is as stupid as me), but since I could not find the answer, here is the question. My program mitvit.py: -- import optparse optparse.OptionParser().parse_args() -- gives me $ python2.4 ./mitvit.py -1.1 usage: mitvit.py [opti

RE: Class, object question.

2005-04-05 Thread Ian Sparks
Use the *args positional-argument to catch all the positional arguments in the constructor then test them to see what you have and call a kind of sub-init based on that : class Point:     def __init__(self,x,y,z):    self.x = x    self.y = y    self.z = z   class Vector:    de

Re: Best editor?

2005-04-05 Thread Ivan Van Laningham
Hi All-- [EMAIL PROTECTED] wrote: > > Windows: textpad > Linux: vim > Windows: gvim Linux: gvim, or vim if I have to. Other unices: gvim, vim, vi SlickEdit doesn't suck. Emacs doesn't suck, either. Metta, Ivan -- Ivan Van Laningham God N Locomotiv

Re: IronPython 0.7 released!

2005-04-05 Thread Ivan Van Laningham
Hi All-- Tim Peters wrote: > > not-mentioning-that-i-don't-feel-particularly-embraced-yet-ly y'rs - tim > Don't worry, Tim. You will. -ly y'rs, Ivan Meta: <1984-in-what-base-was-that?>-ly y'rs, Ivan -- Ivan Van Laningham God N Locomotive Works ht

Re: oracle interface

2005-04-05 Thread infidel
cx_Oracle rocks -- http://mail.python.org/mailman/listinfo/python-list

Re: Add System Path?!?

2005-04-05 Thread rbt
[EMAIL PROTECTED] wrote: Hello NG, I have a GUI (written in wxPython) that calls some external exe files. Some of them requires that I add to the PATH variable 1 directory. Basically, the exe are located in: /MyApp/Solvers/FirstExe /MyApp/Solvers/SecondExe And so on, while the dll needed by the

Add System Path?!?

2005-04-05 Thread andrea_gavana
Hello NG, sorry, I forgot to mention that I am on Windows... 2000 or XP, I don't think there will be any difference. Thank you! Andrea. -- http://mail.python.org/mailman/listinfo/python-list

Re: Gnuplot.py and, _by far_, the weirdest thing I've ever seen on my computer

2005-04-05 Thread syd
Thanks for all the help, guys! The affected computer is at home, but I'll address all these issues before I post again with my fix. James: It's on my personal box, and I've got reiserfs. David: OS: GNU/Linux 2.4 (Gentoo) Python 2.3 GNUplot 1.6 I just checked the Gentoo Portage tree and 1.7 is l

Re: Add System Path?!?

2005-04-05 Thread "Martin v. Löwis"
[EMAIL PROTECTED] wrote: These exe files do not work if I don't set the PATH variable also to that adress. I know I can do it by hand (and also my users can), but I wonder if there is a way to do it in Python... You didn't mention what operating system you are using. On Unix, PATH is an environment

Re: Change between Python 2.3 and 2.4 under WinXP

2005-04-05 Thread "Martin v. Löwis"
Fredrik Lundh wrote: > have you used exemaker? have you compared the behaviour of the resulting executables to batch files using different environments, shells, and OS versions? or are you just guessing here? I have invoked it once, but that was some time ago, and I did not do a full case study

Re: oracle interface

2005-04-05 Thread Bernard Delmée
We're so satisfied with cx_Oracle (HP-UX & Win32) that we have not even bothered checking the other ones. Highly recommended. -- http://mail.python.org/mailman/listinfo/python-list

Re: Best editor?

2005-04-05 Thread elbertlev
Windows: textpad Linux: vim -- http://mail.python.org/mailman/listinfo/python-list

Re: Best editor?

2005-04-05 Thread Georg Brandl
[EMAIL PROTECTED] wrote: > ChinStrap wrote: >> When not using the interactive prompt, what are you using? I keep >> hearing everyone say Emacs, but I can't understand it at all. I keep >> trying to learn and understand why so many seem to like it because I >> can't understand customization even wit

Re: regexp weirdness (bug?)

2005-04-05 Thread Andrà Malo
* Fredrik Lundh wrote: > André Malo wrote: > >> No, I suppose they shouldn't compile. >> _re_pair should be (?P=plus). > > the (?(NAME)RE|RE) form was added in 2.4. > > looks like a bug to me; the "plus" group is set to "+" in all four cases, > so the > final pattern should match. but I might

Add System Path?!?

2005-04-05 Thread andrea_gavana
Hello NG, I have a GUI (written in wxPython) that calls some external exe files. Some of them requires that I add to the PATH variable 1 directory. Basically, the exe are located in: /MyApp/Solvers/FirstExe /MyApp/Solvers/SecondExe And so on, while the dll needed by these exe are located in:

Re: IronPython 0.7 released!

2005-04-05 Thread Tim Peters
[Thomas Gagne] > Does the Python community think Microsoft's embrace is a good or bad thing? All things in this world unfold exactly according to Guido's secret Master Plan. So it depends on whether you think Guido is good or bad. Members of the Python community are required to think Guido is go

Re: Best editor?

2005-04-05 Thread beliavsky
ChinStrap wrote: > When not using the interactive prompt, what are you using? I keep > hearing everyone say Emacs, but I can't understand it at all. I keep > trying to learn and understand why so many seem to like it because I > can't understand customization even without going through a hundred >

Re: Propagating poorly chosen idioms

2005-04-05 Thread Steven Bethard
Skip Montanaro wrote: Unittest's API is difficult enough for me to remember (at least the initial framework I need to put together) that I generally hunt down some previous unittest usage, clone it and start from there. I no longer have any idea what the original unittest example was that got me s

Re: Decorator Base Class: Needs improvement.

2005-04-05 Thread Ron_Adam
On Tue, 05 Apr 2005 02:55:35 -0400, Steve Holden <[EMAIL PROTECTED]> wrote: >Ron_Adam wrote: >> Ok, that post may have a few(dozen?) problems in it. I got glitched >> by idles not clearing variables between runs, so it worked for me >> because it was getting values from a previous run. >> >> Thi

Re: os.path query functions behavior incorrect?

2005-04-05 Thread Georg Brandl
[EMAIL PROTECTED] wrote: > It works fine under linux > [EMAIL PROTECTED]:~ $ python > Python 2.3.4 (#2, Feb 2 2005, 11:10:56) > [GCC 3.3.4 (Debian 1:3.3.4-9ubuntu5)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. import os.path os.path.exists('/blah')

Re: os.path query functions behavior incorrect?

2005-04-05 Thread [EMAIL PROTECTED]
It works fine under linux [EMAIL PROTECTED]:~ $ python Python 2.3.4 (#2, Feb 2 2005, 11:10:56) [GCC 3.3.4 (Debian 1:3.3.4-9ubuntu5)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import os.path >>> os.path.exists('/blah') False >>> os.path.isdir('/blah') Fals

Re: Best editor?

2005-04-05 Thread [EMAIL PROTECTED]
I use gedit under gnome, works perfect, it is very easy to use, it has the colours - it also supports other languages. -- http://mail.python.org/mailman/listinfo/python-list

Re: Lambda: the Ultimate Design Flaw

2005-04-05 Thread T.D.Lassagne
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Artie Gold wrote: > > Torsten Bronger wrote: > >> The whole text seems to be a variant of > >> . > >> > >> Tschö, > >> Torsten. > >> > > Ya think? ;-) > > Heh. I was glad that Tor

(no subject)

2005-04-05 Thread python-list-bounces+archive=mail-archive . com
#! rnews 1227 Newsgroups: comp.lang.python Path: news.xs4all.nl!newsspool.news.xs4all.nl!transit.news.xs4all.nl!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.abs.net!attws2!ip.att.net!NetNews1!xyzzy!nntp From: Harry George <[EMAIL PROTECTED]> Subject: Re: IronPython 0.7 released! X-Nntp-Pos

Re: oracle interface

2005-04-05 Thread [EMAIL PROTECTED]
We use cx_oracle, for us it has proven to be very stable running on Solaris. -- http://mail.python.org/mailman/listinfo/python-list

Re: re module non-greedy matches broken

2005-04-05 Thread John Ridley
--- lothar <[EMAIL PROTECTED]> wrote: > a non-greedy match is implicitly defined in the documentation to be > one such > that there is no proper substring in the return which could also > match the regex. > If I understand this correctly, what you are asking is for re to look for, or rather, ant

Re: Docorator Disected

2005-04-05 Thread Ron_Adam
On Tue, 05 Apr 2005 06:52:58 GMT, [EMAIL PROTECTED] (Bengt Richter) wrote: >>Ok, yes, besides the globals, but I figured that part is obvious so I >>didn't feel I needed to mention it. The function call works the same >>even though they are not nested functions. > >I am afraid that is wrong. But

Re: playing with pyGoogle - strange codec error

2005-04-05 Thread Erik Max Francis
Brian Blazer wrote: You know, I am beginning to think that I MAY have stumbled on a bug here. At first I was thinking that this issue was related to the offending character being out of range for the Mac. Then I tried it on A MS machine and a linux box; all with the same error. The problem, co

oracle interface

2005-04-05 Thread Andrew Dalke
In searching I find there several different ways to connect to an Oracle server on MS Windows: mxODBC - http://www.egenix.com/files/python/mxODBC.html built on top of the ODBC drivers for a given database DCOracle2 - http://www.zope.org/Members/matt/dco2/ last update is 1.3 beta relea

ANN : Columbus OH Meetup Group

2005-04-05 Thread Kartic
Announcing the creation of a Columbus/Dublin Ohio Meetup group. http://python.meetup.com/161/ Hope to see Pythonistas from the Columbus/Dublin areas, and vicinity, sign up for this group and enrich our collective Python experience! Thanks, --Kartic -- http://mail.python.org/mailman/listinfo/py

Re: os.path query functions behavior incorrect?

2005-04-05 Thread Mike Rovner
Beman Dawes wrote: So are these os.path functions specified and implemented incorrectly? Should they instead throw exceptions for the above examples? Works for me. (Win XP SP2, Py 2.4, only have c and d drives) >>> os.path.exists('d:\\') True >>> os.path.exists('e:\\') False >>> os.path.exists('a:

Best editor?

2005-04-05 Thread ChinStrap
When not using the interactive prompt, what are you using? I keep hearing everyone say Emacs, but I can't understand it at all. I keep trying to learn and understand why so many seem to like it because I can't understand customization even without going through a hundred menus that might contain th

Re: playing with pyGoogle - strange codec error

2005-04-05 Thread Brian Blazer
On 2005-04-04 10:06:23 -0500, Brian Blazer <[EMAIL PROTECTED]> said: You know, I am beginning to think that I MAY have stumbled on a bug here. At first I was thinking that this issue was related to the offending character being out of range for the Mac. Then I tried it on A MS machine and a l

Re: Decorator Base Class: Needs improvement.

2005-04-05 Thread Kay Schluehr
Bengt Richter wrote: > From the 2.4 Grammar, the key part seems to be > > decorator: '@' dotted_name [ '(' [arglist] ')' ] NEWLINE > decorators: decorator+ > funcdef: [decorators] 'def' NAME parameters ':' suite > > and further on > > dotted_name: NAME ('.' NAME)* > > So the Python

Testing threading

2005-04-05 Thread George Sakkis
How one goes on testing a threaded program, apart from doing a few successful runs and crossing his fingers that it at least follows the 'correct 99.% of the time' rule ? I've written a stripped-down python version of Doug Lea's PooledExecutor thread pool class (http://gee.cs.oswego.edu/dl/clas

Re: Decorator Base Class: Needs improvement.

2005-04-05 Thread Kay Schluehr
Bengt Richter wrote: > From the 2.4 Grammar, the key part seems to be > > decorator: '@' dotted_name [ '(' [arglist] ')' ] NEWLINE > decorators: decorator+ > funcdef: [decorators] 'def' NAME parameters ':' suite > > and further on > > dotted_name: NAME ('.' NAME)* > > So the Python

Re: Python Google Server

2005-04-05 Thread vegetax
Fuzzyman wrote: > Of course - sorry. Thanks for the fix. Out of interest - why are you > using this... just for curiosity, or is it helpful ? because is fun to surf on the google cache, =) -- http://mail.python.org/mailman/listinfo/python-list

Re: re module non-greedy matches broken

2005-04-05 Thread Fredrik Lundh
"lothar" wrote: >a non-greedy match is implicitly defined in the documentation to be one such > that there is no proper substring in the return which could also match the > regex. no, that's not what it says. this is what is says: Adding "?" after the qualifier makes it perform the match in

Re: redundant imports

2005-04-05 Thread max(01)*
Mike Meyer wrote: "max(01)*" <[EMAIL PROTECTED]> writes: Peter Hansen wrote: max(01)* wrote: hi everybody. suppose that code-1.py imports code-2.py and code-3.py (because it uses names from both), and that code-2.py imports code-3.py. if python were c, code-1.c should only *include* code-2.c, bec

Re: instance name

2005-04-05 Thread max(01)*
many many thanks to each and everyone who bothered to answer my op. best regards macs -- http://mail.python.org/mailman/listinfo/python-list

Re: redundant importr

2005-04-05 Thread max(01)*
Peter Hansen wrote: max(01)* wrote: Peter Hansen wrote: No it doesn't. I thought I was clear, but I can reword it for you: the files are compiled *in-memory* and the results are never written to disk. > *if* they are compiled, where are they put, if the corresponding *.py files are on a non-write

Re: re module non-greedy matches broken

2005-04-05 Thread Andrà Malo
* lothar wrote: As already said by Georg, regexes are the wrong tool for such tasks, but anyway... > give an re to find every innermost "table" element: ]*)?>[^<]*(?:<(?!/table>|table(?:\s[^>]*)?>)[^<]*)* > give an re to find every "pre" element directly followed by an "a" > element: ]*)?>[^<]

Propagating poorly chosen idioms

2005-04-05 Thread Skip Montanaro
Peter> unitttest is surely not the be all and end all of Python unit Peter> testing frameworks... but it's one of the batteries included in Peter> the standard distribution, and it's pretty trivial to get started Peter> using it, unless maybe you try to go by the documentation ins

Reminder: Vanouver Python Meeting Tonight

2005-04-05 Thread Paul Prescod
DateTime: April 5, 2005, 7:00 PM Place: http://www.vanpyz.org/ActiveState Topic: Python Quirks, Warts and Complaints Nothing is perfect: even Python. This meeting will be an opportunity for Python programmers to get together and learn from each other. We'll go through issues we've run into and th

Re: re module non-greedy matches broken

2005-04-05 Thread Georg Brandl
lothar wrote: > give an re to find every innermost "table" element: > > innertabdoc = """ > > > >n > > > > > > > > > >y z > > > > > > > > > > > > > """ REs are Regular Expressions, not parsers. There are problems for which there is no RE

  1   2   >