Chicago Python Users Group, April 14

2005-04-12 Thread Ian Bicking
The Chicago Python User Group, ChiPy, will have its next meeting on Thursday, April 14th, starting at 7pm. For more information on ChiPy see http://chipy.org Michael Tobis, who is organizing this meeting, needs to give the building a list of names. If you think it's possible you will come, send

NetworkX first public release (NX-0.2)

2005-04-12 Thread Aric Hagberg
NetworkX is a Python package for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks. The potential audience includes mathematicians, physicists, biologists, computer scientists, and social scientists. http://networkx.sourceforge.net Aric Hagberg

SoCal Python Interest Group, April 19

2005-04-12 Thread Grig Gheorghiu
If you live in the Los Angeles/Orange County area and would like to meet fellow Pythonistas, please consider attending the SoCal Piggies meeting on Tuesday April 19 at 7:30 PM, at the Kerckhoff Marine Lab in Newport Beach. Details are available at http://agile.unisonis.com/socalpiggies . There's

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-12 Thread Do Re Mi chel La Si Do
And, also, with dotNET-framework -- http://mail.python.org/mailman/listinfo/python-list

Module for handling Nested Tables in HTML

2005-04-12 Thread Gurpreet Sachdeva
Hi guys, Can anyone suggest some good tool for handling nested tables in a HTML page... BeautifulSoup is somehow not working with Nested Tables. Thanks and Regards, Garry -- http://mail.python.org/mailman/listinfo/python-list

Re: Best editor?

2005-04-12 Thread Fredrik Lundh
Mike Meyer wrote: Yup, that's why emacs stands for Eighty Megabytes And Constantly Swapping. ;-) Gee, it's changed from eight to eighty. Probably because eight is a small app by todays standards. Then again, it's not like 80 is large these days. my emacs starts in no time at all, and

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

2005-04-12 Thread Paul Winkler
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 https://A.com

Problem with downloading from www

2005-04-12 Thread NewFilmFan
I use Python 2.3 on Windows XP. I wrote this program: import httplib conn = httplib.HTTPConnection(www.x.net) conn.request(GET, /x/y.jpg) r1 = conn.getresponse() print r1.status, r1.reason data = r1.read() datei = open('test.jpg','w') datei.write(data) datei.close() It is almost a copy of the

Re: Module for handling Nested Tables in HTML

2005-04-12 Thread Fredrik Lundh
Gurpreet Sachdeva wrote: Can anyone suggest some good tool for handling nested tables in a HTML page... BeautifulSoup is somehow not working with Nested Tables. sounds strange. have you tested the latest release? (2.0) http://www.crummy.com/software/BeautifulSoup/ if you

some sort of permutations...

2005-04-12 Thread Bernard A.
hello, 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 ? for example, from : l = [0, 1, 2, 3, 4] and searching for n-uples of 3, i should produce : (

Re: Problem with downloading from www

2005-04-12 Thread Fredrik Lundh
NewFilmFan [EMAIL PROTECTED] wrote: I wrote this program: import httplib conn = httplib.HTTPConnection(www.x.net) conn.request(GET, /x/y.jpg) r1 = conn.getresponse() print r1.status, r1.reason data = r1.read() datei = open('test.jpg','w') datei.write(data) datei.close() if all you

Re: semicolons

2005-04-12 Thread Andrei
Mage mage at mage.hu writes: I amafraid of I will stop using semicolons in other languages after one or two months of python. However I see that python simply ignores the semicolons atd the end of the lines. I notice that when switching between Python and Delphi I'll sometimes type if ...

Re: some sort of permutations...

2005-04-12 Thread Fredrik Lundh
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 ? did you try googling for python permutations ? here's the first hit:

Re: NSInstaller Vs. Inno Setup

2005-04-12 Thread Miki Tebeka
Hello dcrespo, Any comments? I'm happy with Inno. Bye. -- Miki Tebeka [EMAIL PROTECTED] http://tebeka.bizhat.com The only difference between children and adults is the price of the toys pgpdEFt0Cm0o9.pgp Description: PGP

Re: I've broken PythonWin2.4 - Dialogs don't pop up!

2005-04-12 Thread Neil Hodgson
Michael Murdock: Rebooting does not help. I uninstalled and removed everything from c:\python2.4 and then downloaded and installed the latest version. Right after installing it, everything worked fine. But when I rebooted, the problem came back. Do you have a copy of win32ui.pyd on the

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

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

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,

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 --

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 using a class

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

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.

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

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

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 whether

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

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 setting

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 of

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

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. But python is

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

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:

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.

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

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 MS docs

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 zlib

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 attribute

Overlapping matches in Regular Expressions

2005-04-12 Thread André Søreng
With the re/sre module included with Python 2.4: pattern = (?Pid1avi)|(?Pid2avi|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

[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

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 config

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

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 = (?Pid1avi)|(?Pid2avi|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

Re: Programming Language for Systems Administrator

2005-04-12 Thread Pierre-Frdric 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

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 . a

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 not

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 modified

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. Sounds like the USA 2005.

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 ... fuckheads

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, just

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 instantiate your

./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

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 add

Re: semicolons

2005-04-12 Thread Pierre-Frdric 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 global

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?

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 more

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

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 ? did you

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

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, etc.

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 about the code I

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 Tk window

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

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 przykadu... :( -- 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, [], {}, False] [505014288,

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 przykadu... :( Sorry, I wanted to send to

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 accordance

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: Copyright (c)

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

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 its just a

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 myself,

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

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

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: file.h static PyObject* py_print( PyObject* self, PyObject* args ) { const char* msg; if( !PyArg_ParseTuple( args, s, msg ) ) return 0; EventLog::log( msg );

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

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 a

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 it

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 ... fucking

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

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 though,

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

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

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

  1   2   3   >