Re: singleton objects with decorators

2005-04-12 Thread Uwe Mayer
Tuesday 12 April 2005 06:36 am Steven Bethard wrote: > Uwe Mayer wrote: >> I've been looking into ways of creating singleton objects. > > It strikes me that I've never wanted or needed a singleton object. > Would you mind sharing your use case? I'm just curious. I am using a class to manage conf

Re: web authoring tools

2005-04-12 Thread Steve Holden
Brandon J. Van Every wrote: =?iso-8859-15?Q?Pierre-Fr=E9d=E9ric_Caillaud?= <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: Ideally, I would like an open source website + html design tool implemented in Python didn't you just say that ideally, you wanted a tool written in lisp or scheme? I h

Re: HTTPSConnection script fails, but only on some servers (long)

2005-04-12 Thread Steve Holden
Paul Winkler wrote: This is driving me up the wall... any help would be MUCH appreciated. I have a module that I've whittled down into a 65-line script in an attempt to isolate the cause of the problem. (Real domain names have been removed in everything below.) SYNOPSIS: I have 2 target servers, at

How to minimize the window

2005-04-12 Thread Austin
I wrote a GUI program with wxPython. In the window, there are 3 attributes on left top. "_" could let the program to minimize to tool bar. I want to let the program minimized to the system tray. Is there any way to let the window have 4 attributes? "." "_" "O " "x" -- http://mail.python.org/m

Re: singleton objects with decorators

2005-04-12 Thread Steven Bethard
Uwe Mayer wrote: Tuesday 12 April 2005 06:36 am Steven Bethard wrote: Uwe Mayer wrote: I've been looking into ways of creating singleton objects. It strikes me that I've never wanted or needed a singleton object. Would you mind sharing your use case? I'm just curious. I am using a class to manage

Re: singleton objects with decorators

2005-04-12 Thread Reinhold Birkenfeld
Uwe Mayer wrote: > Tuesday 12 April 2005 06:36 am Steven Bethard wrote: >> Uwe Mayer wrote: >>> I've been looking into ways of creating singleton objects. >> >> It strikes me that I've never wanted or needed a singleton object. >> Would you mind sharing your use case? I'm just curious. > > I am

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-12 Thread Michael Kearns
Martin v. Löwis wrote: For developers that need msvcr71.dll on the target system which don't have a license to distribute it, the solution is simple: they just need to advise their users to install python-2.4.1.msi. This comes with msvcr71.dll included. I understand this, and it's obviously a solut

Re: NSInstaller Vs. Inno Setup

2005-04-12 Thread Stephen Kellett
In message <[EMAIL PROTECTED]>, Martin v. Löwis <[EMAIL PROTECTED]> writes dcrespo wrote: Any comments? MSI. MSI fails on every NT 4 system I've seen. Even with all the patches from Microsoft. Inno Setup wins every time in this situation. Its also a lot less hassle than MSI for what I need. Ste

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-12 Thread Michael Kearns
Do Re Mi chel La Si Do wrote: Hi ! This DLL come also with MS-JVM engine, who is free. Therefore... This is very true (and the .NET suggestion as well). However, why should I require an end-user to install MS-JVM or the .NET framework, purely for a simple little launcher application ? The main

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-12 Thread Michael Kearns
A.B., Khalid wrote: Kindly note that the Python source distribution does include project files for building Python 2.4 with MSVC6. Add to that the fact that with pyMinGW[1] one can build yet another Windows distribution not dependent on mscvr71.dll and some of the logic about not upgrading to Pytho

Re: How to minimize the window

2005-04-12 Thread vincent wehren
"Austin" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] |I wrote a GUI program with wxPython. | In the window, there are 3 attributes on left top. | "_" could let the program to minimize to tool bar. | I want to let the program minimized to the system tray. You can take look at

Re: args attribute of Exception objects

2005-04-12 Thread Sebastien de Menten
Thank you guys for those good advices (and the very interesting example of AST hacking). However, this was an example of use for Exception.args. It does not alleviate my concerns about the fact that the args attribute is poorly designed for standard Exceptions. It is as if the Exception design was

Re: variables exist

2005-04-12 Thread Richard Brodie
"Brian van den Broek" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm a hobbyist and still learning, but the claim the try/except is > "lousy Python" surprise me a bit. I think it wasn't the use of try/except as such. It's more that if you're the developer you ought to know whe

Python license (2.3)

2005-04-12 Thread Antoon Pardon
I have made a module derived from the Queue module deliverd with python 2.3. I would like to make this module (called tube) available for other people. However it is not clear to me how I can do this in accordance with the python license. First of all it seems I have to make a sumary of how my mod

Re: singleton objects with decorators

2005-04-12 Thread Fredrik Lundh
Uwe Mayer wrote: >> It strikes me that I've never wanted or needed a singleton object. >> Would you mind sharing your use case? I'm just curious. > > I am using a class to manage configuration settings in an application. This > object should only existe once so that when the user > changes a sett

Re: How to minimize the window

2005-04-12 Thread Steve Holden
Austin wrote: I wrote a GUI program with wxPython. In the window, there are 3 attributes on left top. "_" could let the program to minimize to tool bar. I want to let the program minimized to the system tray. Is there any way to let the window have 4 attributes? "." "_" "O " "x" These features

Re: Why does StringIO discard its initial value?

2005-04-12 Thread David Fraser
Raymond Hettinger wrote: [Leif K-Brooks] The obvious workaround is to call buffer.write() with the initial value instead of passing it to StringIO's constructor, More than just a workaround, it is the preferred approach. That makes is easier to switch to cStringIO where initialized objects are rea

Re: Programming Language for Systems Administrator

2005-04-12 Thread Ville Vainio
> "Sizer" == Sizer <[EMAIL PROTECTED]> writes: Sizer> Looking at my followup, I really didn't make it clear that Sizer> you'll have to learn some bash scripting to be an effective Sizer> *nix administrator, just because so many parts of the Sizer> system use bash scripting. Bu

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-12 Thread Robin Becker
Michael Kearns wrote: . I would guess from the responses so far that Python 2.4 just isn't used within commercially shipping products, or is quietly used by an product so as not to incur any legal wrath that might be found. Perhaps it isn't quite ready for what I want to achieve. I don't kno

Re: zlib and zipfile module in Python2.4

2005-04-12 Thread Bill Anderson
On Mon, 11 Apr 2005 10:38:37 -0400, Alan Toppen wrote: > I was unable to use the ZipFile class in the zipfile module in > Python2.4. I got an error that zlib could not be found. Comparing my > Python 2.2 installation I noticed Python 2.4 was missing a certain file: > /usr/lib/python2.2/lib-dynload

Re: World First Cancer Immune Booster

2005-04-12 Thread Will McGugan
Health wrote: Most people with Cancer or AIDS have no immune system left. We've developed a world first "natural immune booster" which helps people fight their disease. Our totally natural product comes from the fresh Arctic Ocean. www.protecura.com Spam rarely offends me, but this is really low. S

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-12 Thread Fredrik Lundh
Michael Kearns wrote: > I would guess from the responses so far that Python 2.4 just isn't used > within commercially > shipping products that kind of unfounded hyperbole only makes you look silly. > I don't know. exactly. now calm down, and go read the replies to this thread again. or con

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-12 Thread Fredrik Lundh
Martin v. Löwis wrote: >> What happens if I try to install Python2.4 on a system wich doesn't have >> the dll? > > It will just work. Python installs the DLL if it is missing, and leaves > it alone (just incrementing the refcount) if it is present on the target > system. installs it where? the M

Re: zlib and zipfile module in Python2.4

2005-04-12 Thread Fredrik Lundh
Bill Anderson wrote: > I recently had this issue and discovered that if zlib headers are not > there, python still builds gzip ... which imports zlib. Seems to me that > since zlib apparently depends on gzip, gzip should only be built if zlib > is. gzip is a Python module, and isn't "built". if

Re: args attribute of Exception objects

2005-04-12 Thread Bengt Richter
On 12 Apr 2005 01:57:31 -0700, [EMAIL PROTECTED] (Sebastien de Menten) wrote: >Thank you guys for those good advices (and the very interesting >example of AST hacking). > >However, this was an example of use for Exception.args. It does not >alleviate my concerns about the fact that the args attrib

Re: singleton objects with decorators

2005-04-12 Thread Michele Simionato
Steven Bethard: > It strikes me that I've never wanted or needed a singleton object. > Would you mind sharing your use case? I'm just curious. "Singleton" is the most idiotic pattern ever. If you want an instance, just instantiate your class once. If a class should have only one instance, you can

Overlapping matches in Regular Expressions

2005-04-12 Thread André Søreng
With the re/sre module included with Python 2.4: pattern = "(?Pavi)|(?Pavi|mp3)" string2match = "some string with avi in it" matches = re.finditer(pattern, string2match) ... matches[0].groupdict() {'id2': None, 'id1': 'avi'} Which was expected since overlapping matches are ignored. But I would also

[perl-python] Python documentation moronicities (continued)

2005-04-12 Thread Xah Lee
http://python.org/doc/2.4.1/lib/module-re.html http://python.org/doc/2.4.1/lib/node114.html - QUOTE The module defines several functions, constants, and an exception. Some of the functions are simplified versions of the full featured methods for compiled regular expressions. Most non-trivi

Re: singleton objects with decorators

2005-04-12 Thread Uwe Mayer
Tuesday 12 April 2005 10:01 am Steven Bethard wrote: >> I am using a class to manage configuration settings in an application. >> This object should only existe once so that when the user >> changes a setting through a configuration dialog the change imminent in >> all locations where access to con

Re: Programming Language for Systems Administrator

2005-04-12 Thread Peter Maas
Ville Vainio schrieb: If you don't need to edit already existing system scripts, you don't really need to know bash scripting. For debugging purposes, it's easy to see what commands the script executes to perform a task. This is only true for trivial bash scripts. I have seen bash scripts which wer

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-12 Thread Michael Kearns
Fredrik Lundh wrote: Michael Kearns wrote: I would guess from the responses so far that Python 2.4 just isn't used within commercially shipping products that kind of unfounded hyperbole only makes you look silly. As no-one had replied that they had found it fine to use in a commercial sense, or

Re: Overlapping matches in Regular Expressions

2005-04-12 Thread Fredrik Lundh
André Søreng wrote: > With the re/sre module included with Python 2.4: > > pattern = "(?Pavi)|(?Pavi|mp3)" > string2match = "some string with avi in it" > matches = re.finditer(pattern, string2match) > ... > matches[0].groupdict() > {'id2': None, 'id1': 'avi'} > > Which was expected since overlapp

Re: Programming Language for Systems Administrator

2005-04-12 Thread Pierre-Frédéric Caillaud
I am confused to chose between C++,Python,Perl. Writing scripts in C++, you'll just die of brain burn. Python has very good shell integration and I heard it can do funky stuff with COM/OLE with a few lines of code where you'd need a few pages worth of impossible to understand COM code to d

Re: [perl-python] Python documentation moronicities (continued)

2005-04-12 Thread Michael Hoffman
I've had enough. *PLONK* -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list

Cannot import mod_python modules

2005-04-12 Thread Mark
Hi, I've just installed the Win32 build of mod_python 3.1.4 for Python 2.4 and have setup my Apache config file with the LoadModule and PythonHandler directives and then copied "mod_python.so" to my Apache modules directory. I restarted Apache and decided to do a quick cgi.test() and it shows that

Re: THE GREATEST NEWS EVER ! °º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°` (newsgroup

2005-04-12 Thread sheltech
"Soy Bomb" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "The Holy Bible descibes Hell as a place of > eternal torment, suffering, pain and agony > for all those who have rejected Jesus Christ. " > > Sounds like the USA 2005. > and what's worse is that it smells like teen spirit .

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-12 Thread Fredrik Lundh
Michael Kearns wrote: > As for consulting a lawyer, this is exactly what I'm trying to avoid. My > usage of python in a > commercial sense is as a small utility - a helper, if you will. It has no > business value > whatsoever, compared to the product that it ships with, and certainly does > n

Re: [perl-python] Python documentation moronicities (continued)

2005-04-12 Thread Joe Smith
Xah Lee wrote: of motherf***ing irrevalent drivel? I am greatly amused. A troll impersonating Xah Lee has made xah look like a total moron. LOL -- http://mail.python.org/mailman/listinfo/python-list

Re: [perl-python] Python documentation moronicities (continued)

2005-04-12 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2005-04-12 03:25:33 -0700: > QUOTE > compile( > pattern[, flags]) > > Compile a regular expression pattern into a regular expression object, > which can be used for matching using its match() and search() methods, > described below. > > The expression's behaviour can be mo

Re: THE GREATEST NEWS EVER ! °º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°`°º·...·°` (newsgroup

2005-04-12 Thread beelzabubba
"sheltech" <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > > "Soy Bomb" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> "The Holy Bible descibes Hell as a place of >> eternal torment, suffering, pain and agony >> for all those who have rejected Jesus Christ. " >> >> Sound

Re: [perl-python] Python documentation moronicities (continued)

2005-04-12 Thread Richie Hindle
[Xah] > motherfucking ... fucking ... fucking ... fucking ... fuck ... fucking > fucking ... fucking ... mother fucking ... fucking ... piece of shit ... > motherfucking ... fucking ... fucking ... big asshole ... masturbation ... > Fucking morons ... fucking stupid ... fuckhead coders ... fuckhea

Re: singleton objects with decorators

2005-04-12 Thread Bengt Richter
On 12 Apr 2005 03:09:48 -0700, "Michele Simionato" <[EMAIL PROTECTED]> wrote: >Steven Bethard: >> It strikes me that I've never wanted or needed a singleton object. >> Would you mind sharing your use case? I'm just curious. > >"Singleton" is the most idiotic pattern ever. If you want an instance,

Re: singleton objects with decorators

2005-04-12 Thread Uwe Mayer
Tuesday 12 April 2005 12:09 pm Michele Simionato wrote: > Steven Bethard: >> It strikes me that I've never wanted or needed a singleton object. >> Would you mind sharing your use case? I'm just curious. > > "Singleton" is the most idiotic pattern ever. If you want an instance, > just > instantia

./pyconfig.h?

2005-04-12 Thread Magnus Lie Hetland
It seems that in my Solaris installation, sysconfig.get_config_h_filename() returns './pyconfig.h', which is, of course, in most cases just wrong... :) Shouldn't this return an absolute path (in all cases)? I've use an absolute path in the --prefix of ./configure -- but I guess I was standing in t

Re: workaround for generating gui tools

2005-04-12 Thread Diez B. Roggisch
Hi, > So, instead, with this new system (note I wasn't involved with the old > system), I do everything with metadata. (Credit where credit is due, the > other programmer was starting to do some of this, though he couldn't quite > take it down to the interface and there are some things I had to ad

Re: semicolons

2005-04-12 Thread Pierre-Frédéric Caillaud
sometimes i'll write if( key in myarray ) { ... in PHP and then realize I have to use array_key_exists and curse that the parameters are key then array, and bless scite auto-api-display for saving me each time... -- http://mail.python.org/mailman/listinfo/python-list

Re: singleton objects with decorators

2005-04-12 Thread Fredrik Lundh
Bengt Richter wrote: > But isn't bool supposed to be a singleton class/type ? > > >>> [bool(x) for x in 0, 0.0, [], {}, False] > [False, False, False, False, False] > >>> [id(bool(x)) for x in 0, 0.0, [], {}, False] > [505014288, 505014288, 505014288, 505014288, 505014288] "False" is an ordinary

Re: IPython - problem with using US international keyboard input scheme on W2K

2005-04-12 Thread Claudio Grondi
Considering what I found in the ipython mailing archives and the fact, that after the fix with displaying colors on bright backgrounds Gary had no time yet to get in touch with me about the code I have sent him, I suppose, that there will be no new releases addressing this problem soon, right? Cla

Re: [perl-python] Python documentation moronicities (continued)

2005-04-12 Thread Diez B. Roggisch
> Can we paypal you a hundred dollars to leave us alone? I'll pledge $10. > Are there another nine people here who'll do the same? Me, me. I'm good for ten, too. The current euro-dollar exchange course makes that the price of a normal size McDonalds Menu - so sparing that makes me healthier both

Re: Programming Language for Systems Administrator

2005-04-12 Thread beliavsky
Ville Vainio wrote: > If you don't need to edit already existing system scripts, you don't > really need to know bash scripting. For debugging purposes, it's easy > to see what commands the script executes to perform a task. > > You just need to know about `backticks` and $ENV_VARS, but that's mor

Re: [perl-python] Python documentation moronicities (continued)

2005-04-12 Thread Pokerface
Gotta say, is we let this man write the docs for us, they'll sure as sugar be more colorful than the ones we presently have, even if he doesn't manage to make them better. "The [insert relation]ing Python interpreter is usually installed as /usr/local/bin/python on those g*dd*mn machines wher

Re: some sort of permutations...

2005-04-12 Thread Bill Mill
On Apr 12, 2005 2:37 AM, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > "Bernard A." wrote: > > > i'm looking for a way to have all possible length fixed n-uples from a > > list, i think generators can help, but was not able to do it myself, > > maybe some one could point me out to an idea to do it ?

Re: Can't Stop Process On Windows

2005-04-12 Thread Dave Brueck
Dan wrote: I have a python script running under Windows XP that I need to terminate from the keyboard. A control-c works fine under Linux, but not under Windows. I'm pretty sure that the culprit is 'select' that I'm using to multiplex socket i/o, which seems to be blocking the keyboard interrupt.

Re: database in python ?

2005-04-12 Thread Uwe Grauer
Pierre-Frédéric Caillaud wrote: > >> MySQL is an excellent option is very well documented. It is also a >> defacto standard for OpenSource databases. > > > MySQL sucks for anything but very very basic stuff as it supports > no transactions, foreign keys, procedures, triggers, concurrency,

Re: Python license (2.3)

2005-04-12 Thread Steve Holden
Antoon Pardon wrote: I have made a module derived from the Queue module deliverd with python 2.3. I would like to make this module (called tube) available for other people. However it is not clear to me how I can do this in accordance with the python license. First of all it seems I have to make a

Re: IPython - problem with using US international keyboard input scheme on W2K

2005-04-12 Thread Ville Vainio
> "Claudio" == Claudio Grondi <[EMAIL PROTECTED]> writes: Claudio> Considering what I found in the ipython mailing archives Claudio> and the fact, that after the fix with displaying colors Claudio> on bright backgrounds Gary had no time yet to get in Claudio> touch with me abou

Re: Cannot import mod_python modules

2005-04-12 Thread Steve Holden
Mark wrote: Hi, I've just installed the Win32 build of mod_python 3.1.4 for Python 2.4 and have setup my Apache config file with the LoadModule and PythonHandler directives and then copied "mod_python.so" to my Apache modules directory. I restarted Apache and decided to do a quick cgi.test() and it

Re: [perl-python] Python documentation moronicities (continued)

2005-04-12 Thread rbt
Xah Lee wrote: What does a programer who wants to use regex gets out from this piece of motherf**king irrevalent drivel? Any resume that ever crosses my desk that includes 'Xah Lee' anywhere in the name will be automatically trashed. -- http://mail.python.org/mailman/listinfo/python-list

Tkinter "withdraw" and "askstring" problem

2005-04-12 Thread Miki Tebeka
Hello All, The following script "hangs" on win32 system: from Tkinter import * from tkSimpleDialog import askstring root = Tk() root.withdraw() # <<< Problem here askstring("Yap", "What's up?") If I remove the problematic "withdraw" line the script works but there is another

Re: Programming Language for Systems Administrator

2005-04-12 Thread Kanthi Kiran Narisetti
Hi All, Thank You for your suggestionsI request you all to eloborate the Uses(In Practical) for systems administrator.Some of my questions regarding the same follows. 1)Can i build web applications in Python ? If so how. I am planning to build a web application for intranet use which deals wi

os.open() i flaga lock

2005-04-12 Thread JZ
Szukam jakiegoś odpowiednika fcntl na win32. W manualu napisali że os.open() z odpowiednią flagą jest bardziej uniwersalne od fcntl. Niestety zero informacji na temat tej flagi oraz brak jakiegokolwiek przykładu... :( -- JZ -- http://mail.python.org/mailman/listinfo/python-list

Re: singleton objects with decorators

2005-04-12 Thread Bengt Richter
On Tue, 12 Apr 2005 13:26:54 +0200, "Fredrik Lundh" <[EMAIL PROTECTED]> wrote: >Bengt Richter wrote: > >> But isn't bool supposed to be a singleton class/type ? >> >> >>> [bool(x) for x in 0, 0.0, [], {}, False] >> [False, False, False, False, False] >> >>> [id(bool(x)) for x in 0, 0.0, [], {}, Fa

Re: os.open() i flaga lock

2005-04-12 Thread JZ
Dnia Tue, 12 Apr 2005 15:14:25 +0200, JZ napisał(a): > Szukam jakiegoś odpowiednika fcntl na win32. W manualu napisali że > os.open() z odpowiednią flagą jest bardziej uniwersalne od fcntl. Niestety > zero informacji na temat tej flagi oraz brak jakiegokolwiek przykładu... :( Sorry, I wanted to s

BayPIGgies REMINDER: April 14, 7:30pm (FIRST meeting at IronPort)

2005-04-12 Thread Aahz
NOTE: we are no longer meeting at Stanford; the April meeting is at IronPort in San Bruno The next meeting of BayPIGgies will be Thurs, April 14 at 7:30pm. Guido van Rossum (and any other BayPIGgies who wish to contribute) will review the activities at PyCon 2005. BayPIGgies meetings alternate

Re: Python license (2.3)

2005-04-12 Thread Antoon Pardon
Op 2005-04-12, Steve Holden schreef <[EMAIL PROTECTED]>: > Antoon Pardon wrote: >> I have made a module derived from the Queue module deliverd >> with python 2.3. I would like to make this module (called >> tube) available for other people. However it is not clear >> to me how I can do this in acco

Re: Python license (2.3)

2005-04-12 Thread R. C. James Harlow
On Tuesday 12 April 2005 09:51, Antoon Pardon wrote: > It seems I have to include the following in > my code: > > "Copyright (c) 2001, 2002 Python Software Foundation; >All Rights Reserved" > > Do I understand correctly? You are of course allowed to *add* your own copyright statement: "Copy

Re: some sort of permutations...

2005-04-12 Thread Scott David Daniels
Bill Mill wrote: On Apr 12, 2005 2:37 AM, Fredrik Lundh <[EMAIL PROTECTED]> wrote: "Bernard A." wrote: i'm looking ... to have all possible length fixed n-uples from a list... ... http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/190465 And, while I'm asking that question, is there a good ref

Re: singleton objects with decorators

2005-04-12 Thread Michele Simionato
Uwe Mayer wrote: > "Singleton" is simple (like the wheel), but that does not make it stupid. > There are two aspects that are important: > > 1. a Singleton has one, very simple property and virtually everyone knows > what you talk about when you explain that you used a "Singleton". In this > case i

Re: some sort of permutations...

2005-04-12 Thread Jack Diederich
On Tue, Apr 12, 2005 at 08:41:15AM -0400, Bill Mill wrote: > On Apr 12, 2005 2:37 AM, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > > "Bernard A." wrote: > > > > > i'm looking for a way to have all possible length fixed n-uples from a > > > list, i think generators can help, but was not able to do it

Re: Programming Language for Systems Administrator

2005-04-12 Thread Gerald Klix
Kanthi Kiran Narisetti schrieb: Hi All, Thank You for your suggestionsI request you all to eloborate the Uses(In Practical) for systems administrator.Some of my questions regarding the same follows. 1)Can i build web applications in Python ? If so how. I am planning to build a web application

printing with wxPython

2005-04-12 Thread Fabio Pliger
Hi! I'm using wxPython to handle my application gui.. So, I have a notebook widget and i have to print the object inside it's tab ... Maybe doing a preview before printing... I know that wx has many objects to handle printing.. i've tryied to use them, but i wasn't able to... Any hint? By now, i s

Why won't someone step up and make use of the Free tools (was Re: Python 2.4 killing commercial Windows Python development ?)

2005-04-12 Thread Jeff Epler
I'm sorry that this is going to come out sounding like a flame, but it seems to me that there today only a few technical problems remaining with Python when built with mingw32. If one of the people who has expressed such deep concern about this "msvcr71.dll" problem would simply install the Free t

Extending an embeded Python

2005-04-12 Thread Mikin von Flap
I'm trying to embed Python in a Windows exe, and extend it with some functions in the same program. So far I only add one function: static PyObject* py_print( PyObject* self, PyObject* args ) { const char* msg; if( !PyArg_ParseTuple( args, "s", &msg ) ) return 0; EventLog::log( msg ); Py_INCREF(

Re: Programming Language for Systems Administrator

2005-04-12 Thread Laszlo Zsolt Nagy
Hello, I have some answers but for some of your questions, there are many (possibly good) answers. 1)Can i build web applications in Python ? If so how. I am planning to build a web application for intranet use which deals with workflow of Internal office communication. I believe you want som

Re: Tkinter "withdraw" and "askstring" problem

2005-04-12 Thread Jeff Epler
The answer has to do with a concept Tk calls "transient". wm transient window ?master? If master is specified, then the window manager is informed that window is a transient window (e.g. pull-down menu) working on behalf of master (where master is the path name for

Re: HELP ! Anybody knows where the stackless python website is ?

2005-04-12 Thread cfbolz
Hi! Pierre-Frédéric Caillaud wrote: > I've been trying desperately to access http://www.stackless.com but > it's been down, for about a week now ! The stackless webpage is working again. Regards, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: singleton objects with decorators

2005-04-12 Thread Uwe Mayer
Tuesday 12 April 2005 14:51 pm Michele Simionato wrote: > No. Not everybody knows about Singleton. It is an acquired knowledge. Well, what isn't? What I ment to say, but failed to do so more explicitly, was that it is a term I felt which was generally known to "the programming society". Or that

Northampton, UK

2005-04-12 Thread Fuzzyman
Just on the off chance I thought I'd ask if there were any Pythoneers out there local to Northampton UK ? Best Regards, Fuzzy http://www.voidspace.org.uk/python -- http://mail.python.org/mailman/listinfo/python-list

Re: [perl-python] Python documentation moronicities (continued)

2005-04-12 Thread Ivan Van Laningham
Hi All-- Richie Hindle wrote: > > [Xah] > > motherfucking ... fucking ... fucking ... fucking ... fuck ... fucking > > fucking ... fucking ... mother fucking ... fucking ... piece of shit ... > > motherfucking ... fucking ... fucking ... big asshole ... masturbation ... > > Fucking morons ... fuc

Informixdb: New maintainer, new version

2005-04-12 Thread Carsten Haese
Hi Everybody: Since the current maintainer of the informixdb module appears to have gone missing, I have decided to take over the project. The new home of the informixdb module is http://sourceforge.net/projects/informixdb . Version 1.4 features the following improvements: * Build uses distutils

Re: singleton objects with decorators

2005-04-12 Thread Steven Bethard
Fredrik Lundh wrote: Or if you're using an application object (you should), just add a config object to the application object (app.config.param = ...). Do you have a link or two that describe what you mean by an "application object"? The "you should" comment makes me think this is something of a

Re: [perl-python] Python documentation moronicities (continued)

2005-04-12 Thread Richard Gration
On Tue, 12 Apr 2005 04:02:20 -0700, Joe Smith wrote: > Xah Lee wrote: > >> of motherf***ing irrevalent drivel? > > I am greatly amused. > A troll impersonating Xah Lee has made xah look like a total moron. LOL "The fucking doc cannot be possibly fucking worsely written." This is very Xahish th

Re: singleton objects with decorators

2005-04-12 Thread Steven Bethard
Uwe Mayer wrote: Tuesday 12 April 2005 10:01 am Steven Bethard wrote: I am using a class to manage configuration settings in an application. This object should only existe once so that when the user changes a setting through a configuration dialog the change imminent in all locations where access t

exporting imports to reduce exe size?

2005-04-12 Thread Ron_Adam
In looking at ways to reduce the size of exe's created with py2exe, I've noticed that it will include a whole library or module even if I only need one function or value from it. What I would like to do is to import individual functions and then export 'write' them to a common resource file and

Re: Programming Language for Systems Administrator

2005-04-12 Thread Terry Reedy
"Kanthi Kiran Narisetti" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >.Some of my questions > regarding the same follows. Most of these have been discussed many times. You can use Google to search the archives of this newsgroup. I strongly recommend that you learn to use that

Re: Python / Win32 extensions compatibility with Windows XP

2005-04-12 Thread Jim Sizelove
Matthew wrote: Hi: I recently installed Python 2.4 and the Win 32 extensions on Windows XP. I had some problems with the COM makepy utility for the Excel COM libraries. I reported this problem to the sourceforge bug tracker. My question is , is python 2.3 and the win32 extensions more stable than

Re: Extending an embeded Python

2005-04-12 Thread Fredrik Lundh
Mikin von Flap wrote: > PyObject* res0 = Py_InitModule( "stoneage", StoneAgeMethods ); > res1 = PyRun_SimpleString( "stoneage.log( \"test\" )\n" ); // FAIL > res2 = PyRun_SimpleString( "log( \"test\" )\n" ); // FAIL > res3 = PyRun_SimpleString( "print \"test\"\n" ); // OK > Py_Finalize(); > This

chaco and wx 2.5....

2005-04-12 Thread Fabio Pliger
anyone know if it's possibile to run chaco with wx 2.5.3 or grater? -- http://mail.python.org/mailman/listinfo/python-list

[OT] Re: Programming Language for Systems Administrator

2005-04-12 Thread Brian van den Broek
[EMAIL PROTECTED] said unto the world upon 2005-04-12 08:11: I actually like the Windows cmd language (it's an acquired taste), but I have read it is going away in Windows Longhorn (WH). That's an argument for writing more complicated scripts in Python. WH is supposed to get a much better shell, c

Python / Win32 extensions compatibility with Windows XP

2005-04-12 Thread Matthew
Hi: I recently installed Python 2.4 and the Win 32 extensions on Windows XP. I had some problems with the COM makepy utility for the Excel COM libraries. I reported this problem to the sourceforge bug tracker. My question is , is python 2.3 and the win32 extensions more stable than Python 2.4?

Better access to database search results

2005-04-12 Thread Gabriel Cooper
Usually when I access db search results it's something like this: cursor.execute("select A1,A2,A3,A4 from B where C") for (a1,a2,a3,a4) in cursor.fetchall(): stuff() But sometimes the point at which I use the data returned is not with the search, and so having the ability to access the results

Re: singleton objects with decorators

2005-04-12 Thread Uwe Mayer
Tuesday 12 April 2005 17:00 pm Michele Simionato wrote: > I did not put memoize on __new__. I put it on the metaclass __call__. > Here is my memoize: [...] Clever, thanks! :) Ciao Uwe -- http://mail.python.org/mailman/listinfo/python-list

Northampton, UK

2005-04-12 Thread Fuzzyman
Just on the off chance I thought I'd ask if there were any Pythoneers out there local to Northampton UK ? Best Regards, Fuzzy http://www.voidspace.org.uk/python -- http://mail.python.org/mailman/listinfo/python-list

Re: singleton objects with decorators

2005-04-12 Thread Michele Simionato
I did not put memoize on __new__. I put it on the metaclass __call__. Here is my memoize: def memoize(func): memoize_dic = {} def wrapped_func(*args): if args in memoize_dic: return memoize_dic[args] else: result = func(*args) mem

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-12 Thread Terry Reedy
"Michael Kearns" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I understand this, and it's obviously a solution. Unfortunately it defeats >the whole point of me 'freezing' my code in the first place. >The main feature (for me) of the way I could use this, was to create a >simple

Re: The convenient compiler for Python Apps and Distribution of it

2005-04-12 Thread dcrespo
the question is "is there an application that can compiles standalone python applications for running under Windows?" and "is there an application that can compile standalone python applications for running under Linux?". So I want a compiler for each platform, but that works. -- http://mail.pyth

Re: Better access to database search results

2005-04-12 Thread Simon Brunning
On Apr 12, 2005 4:32 PM, Gabriel Cooper <[EMAIL PROTECTED]> wrote: > Usually when I access db search results it's something like this: > > cursor.execute("select A1,A2,A3,A4 from B where C") > for (a1,a2,a3,a4) in cursor.fetchall(): > stuff() > > But sometimes the point at which I use the dat

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-12 Thread Thomas Heller
"Terry Reedy" <[EMAIL PROTECTED]> writes: [...] > Also, I think it a bit 'anti-social' to hide usage of Python. If all > Python Windows programs ran with a normal, communally installed Python, > then users would gradually get the idea that having Python installed is > much like having Shockwav

Re: IPython - problem with using US international keyboard input scheme on W2K

2005-04-12 Thread Fernando Perez
Claudio Grondi wrote: > Considering what I found in the ipython mailing archives > and the fact, that after the fix with displaying colors on > bright backgrounds Gary had no time yet to get in touch > with me about the code I have sent him, I suppose, that > there will be no new releases addressi

Re: exporting imports to reduce exe size?

2005-04-12 Thread Chris Cioffi
My first thought is what if the function you are using uses other functions(maybe not exported by the module/package)? For example: if some_func() makes a call to _some_weird_module_specific_func(), how are you going to make sure you get the _some_weird_module_specific_func function? This doesn'

  1   2   3   >