Re: Thoughts on some stdlib modules

2005-04-11 Thread Fredrik Lundh
Robert Kern wrote: >> (the Linux distributors know how to do this: look for good stuff that's >> either actively maintained or simple and solid enough to live for a while, >> make sure the licenses are good enough, bundle the latest and greatest >> version, ship tested versions at regular interval

Re: Cleaning up after C module

2005-04-11 Thread Fredrik Lundh
<[EMAIL PROTECTED]> wrote: > I have a Python module written in C that spawns and kills processes > using OS-specific mechanisms. I want to kill all spawned processes when > the interpreter exits. I tried to wrap every spawned process in a > Python object like this: > >import cmodule >class

Re: templating system

2005-04-11 Thread Ksenia Marasanova
> In EmPy, your template would look something like this:: > > > @[for record in records]@ > @record.title > @[end for]@ > > > Batch expanding the template would look like something as simple as > (substituting in your example):: > > ... >

Re: Thoughts on some stdlib modules

2005-04-11 Thread Fredrik Lundh
Martin v. Löwis wrote: >> if I were in charge > > Would you like to be? I can help build an infrastructure that makes it easier to create a more complete standard distribution, sure. (and since this isn't exactly a new idea, I'm 100% confident that I don't have to do all the work myself.) if th

Re: web authoring tools

2005-04-11 Thread Fredrik Lundh
Brandon J. Van Every wrote: > 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? did you try the one frank wrote for you? http://groups-beta.google.com/group/comp.lang.lisp/ms

Re: web authoring tools

2005-04-11 Thread Ron_Adam
On Mon, 11 Apr 2005 05:14:47 GMT, "Brandon J. Van Every" <[EMAIL PROTECTED]> wrote: >As is easily noticed, my website sucks. Enough people keep ragging >on me about it, that maybe I'll up and do something about it. However, >I currently have FrontPage 2000 and I hate it. Ideally, I would like a

Re: templating system

2005-04-11 Thread Ksenia Marasanova
> > > http://www.reportlab.org/preppy.html Looks very close to what I was looking for :) Thanks! -- Ksenia -- http://mail.python.org/mailman/listinfo/python-list

Re: python modules in home dir

2005-04-11 Thread Laszlo Zsolt Nagy
[EMAIL PROTECTED] wrote: set the PYTHON_PATH to include your home directory Its correct name is 'PYTHONPATH'. Under C shell: setenv PYTHONPATH /home/yourlogin/pythonlibs Under bourne/bash: set PYTHONPATH=/home/yourlogin/pythonlibs export PYTHONPATH --

PyWin32 COM mailing list / web forum?

2005-04-11 Thread Tim N. van der Leeuw
Hi, I have some questions specifically about python win32com extensions, and I thought it might be more appropriate to ask them on a mailing list / newsgroup / webforum etc. dedicated to that. But is there such a thing anywhere? I couldn't find links to it from the pywin32 homepage or sourceforge-

Re: Python 2.4.1 install broke RedHat 9 printconf-backend

2005-04-11 Thread and-google
BrianS wrote: > File "/usr/share/printconf/util/printconf_conf.py", line 83, in ? > from xml.utils import qp_xml > ImportError: No module named utils > It seems that the xml package have been changed. Not exactly. xml.utils is part of the XML processing package PyXML - you don't get it in

Re: PyWin32 COM mailing list / web forum?

2005-04-11 Thread Simon Brunning
On 11 Apr 2005 00:45:08 -0700, Tim N. van der Leeuw <[EMAIL PROTECTED]> wrote: > I have some questions specifically about python win32com extensions, > and I thought it might be more appropriate to ask them on a mailing > list / newsgroup / webforum etc. dedicated to that. But is there such a > thi

Re: Multiple inheritance: Interface problem workaround, please comment this

2005-04-11 Thread Axel Straschil
Hallo! > Look at the comment in the code! I have posted the "decorate" module in Uuups, sorry, I'll RTFM myselfe *g* Lg, AXEL. -- "Aber naja, ich bin eher der Forentyp." Wolfibolfi's outing in http://www.informatik-forum.at/showpost.php?p=206342&postcount=10 -- http://mail.python.org/mailman/

Re: Thoughts on some stdlib modules

2005-04-11 Thread Robert Kern
Fredrik Lundh wrote: Robert Kern wrote: (the Linux distributors know how to do this: look for good stuff that's either actively maintained or simple and solid enough to live for a while, make sure the licenses are good enough, bundle the latest and greatest version, ship tested versions at regular

Re: Help understanding code

2005-04-11 Thread Duncan Booth
Fredrik Lundh wrote: > Dhruva Hein wrote: >>results = pc() >><=== what is the difference between pc and pc()? > > pc refers to an object, pc() calls it. in this case, it looks like pc is > the > portal catalog, and calling the catalog returns the contents. > Unfortunatel

Avoiding DOS Window...

2005-04-11 Thread andrea . gavana
Hello NG, I don't know if this is the right place to post this question, but noting that it is os-related probably someone will have some nice idea. I have built an application using Python+wxPython, and I have compiled it into an exe file using py2exe. In my app, I use a call: self.process

Weird...

2005-04-11 Thread Joshua Ginsberg
>>> {'a':1,'b':'2','c':[3,4]}.keys() ['a', 'c', 'b'] How come? :-) -jag Python 2.3.3 (#1, May 7 2004, 10:31:40) [GCC 3.3.3 20040412 (Red Hat Linux 3.3.3-7)] on linux2 <>Joshua Ginsberg -- [EMAIL PROTECTED] Brainstorm Internet Network Operations 970-247-1442 x131-- http://mail.python.org/mailman/l

unicode character '\N{ }'

2005-04-11 Thread Daewon YOON
I learned from http://www.jorendorff.com/articles/unicode/python.html that one can specify a unicode character by u'\N {name of the character}'. Is there any method that I do the reverse of this process? For example, when I have a unicode character 'Â', uc.method() should return the character name

Re: workaround for generating gui tools

2005-04-11 Thread flupke
Dave Cook wrote: On 2005-04-09, flupke <[EMAIL PROTECTED]> wrote: i create my GUIs mainly via wxGlade. However when you start of to program and want to do some rearranging to the gui, wxglade overwrites your file and you've got to put your own code back in. How about generating XRC files instea

HELP ! Anybody knows where the stackless python website is ?

2005-04-11 Thread Pierre-Frédéric Caillaud
Hello ! I've been trying desperately to access http://www.stackless.com but it's been down, for about a week now ! I desperatly need to download stackless python... Of course the stackless mailing list is on their server, so it's down, too. Does anybody has any info ? Does anybody

Re: unicode character '\N{ }'

2005-04-11 Thread Just
In article <[EMAIL PROTECTED]>, Daewon YOON <[EMAIL PROTECTED]> wrote: > I learned from http://www.jorendorff.com/articles/unicode/python.html that > one can specify a unicode character by u'\N {name of the character}'. > > Is there any method that I do the reverse of this process? For example,

Re: args attribute of Exception objects

2005-04-11 Thread Sebastien de Menten
Jeremy Bowers <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > On Fri, 08 Apr 2005 09:32:37 +, SÃÂbastien de Menten wrote: > > > Hi, > > > > When I need to make sense of a python exception, I often need to parse the > > string exception in order to retrieve the data. > > W

Re: database in python ?

2005-04-11 Thread [EMAIL PROTECTED]
MySQL is an excellent option is very well documented. It is also a defacto standard for OpenSource databases. You will need to install the Python module MySQLdb. --> http://sourceforge.net/projects/mysql-python There should be plenty of examples online too for using MySQLdb with Python. If you

Re: database in python ?

2005-04-11 Thread Pierre-Frédéric Caillaud
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. Postgresql is a lot better, free, and the psyc

Re: Puzzling OO design problem

2005-04-11 Thread George Sakkis
"Bengt Richter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > See if this does what you want: > > [snipped] > Yes, that's pretty much what I had in mind. I particularly liked the idea of mirroring automagically the nested class inheritance in each version. So I tried to refine th

Re: database in python ?

2005-04-11 Thread Ola Natvig
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. Postgre

Re: Weird...

2005-04-11 Thread Stephen Thorne
On Apr 11, 2005 7:57 AM, Joshua Ginsberg <[EMAIL PROTECTED]> wrote: > >>> {'a':1,'b':'2','c':[3,4]}.keys() > ['a', 'c', 'b'] > > How come? :-) Dicts are not ordered. See note (3) on this page : http://www.python.org/doc/current/lib/typesmapping.html -- Stephen Thorne Development Engineer --

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

2005-04-11 Thread Claudio Grondi
German Windows 2000, SP 4 Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)] IPython 0.6.10 -- An enhanced Interactive Python. Is it already known, that after switching the keyboard input scheme on German Windows 2000 to english USA International IPython generates \x00" instead

Re: PyWin32 COM mailing list / web forum?

2005-04-11 Thread Tim N. van der Leeuw
Thanks for the answer... I subscribed, but meanwhile found the answer to my problem via the MS-Word documentation already. cheers, --Tim -- http://mail.python.org/mailman/listinfo/python-list

How does Python call the system/primitive calls ?

2005-04-11 Thread James Yu
Dear Sirs, I am trying to learn the way Python invokes system or primitive calls. I tried to locate the function in Python's source that handles such requests, but I found it's like picking a needle in ocean. Maybe you can let me know where to look for the documents and background readings ?

How to pass a runtime license key to CreateControl()

2005-04-11 Thread wschneider
Hi I have a problem with passing a runtime license key for an ActiveX control to the method CreateControl() of the class pywin.mfc.activex.Control. Can anybody give me a hint in which form the license key string must be passed to this method? I got the license key for the ActiveX control using t

Re: Weird...

2005-04-11 Thread Jaime Wyant
Dictionary keys have no defined order. This is what the docs say about that: Keys and values are listed in random order. If items(), keys(), values(), iteritems(), iterkeys(), and itervalues() are called with no intervening modifications to the dictionary, the lists will directly correspond. jw

Re: database in python ?

2005-04-11 Thread elbertlev
[EMAIL PROTECTED] wrote: > I need to build table which need searching data which needs more > power then dictionary or list in python, can anyone help me what > kind of database suitable for python light and easy to learn. Is > mySQL a nice start with python ? It depends... mySQL is fine for more

Re: workaround for generating gui tools

2005-04-11 Thread Gabriel B.
On Apr 10, 2005 11:08 PM, Bengt Richter <[EMAIL PROTECTED]> wrote: > On Sat, 9 Apr 2005 19:22:16 +0200, "Fredrik Lundh" <[EMAIL PROTECTED]> wrote: > open('mywidget_v2.txt','w').write(repr(mywidget.textview) How about a pickle hook? You'd just unpack the pickle data, and end up with a pointer

How to pass a runtime license key to CreateControl()

2005-04-11 Thread wschneider
Hi I have a problem with passing a runtime license key for an ActiveX control to the method CreateControl() of the class pywin.mfc.activex.Control. Can anybody give me a hint in which form the license key string must be passed to this method? I got the license key for the ActiveX control using t

Re: database in python ?

2005-04-11 Thread Roy Smith
In article <[EMAIL PROTECTED]>, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hello I need to build table which need searching data which needs more > power then dictionary or list in python, can anyone help me what kind > of database suitable for python light and easy to learn. Is mySQL a > n

Re: How does Python call the system/primitive calls ?

2005-04-11 Thread Fredrik Lundh
James Yu wrote: > I am trying to learn the way Python invokes system or primitive calls. > I tried to locate the function in Python's source that handles such > requests, but I found it's like picking a needle in ocean. what "system or primitive calls"? Python's OS-level modules usually rely on

Re: Thoughts on some stdlib modules

2005-04-11 Thread Fredrik Lundh
Robert Kern wrote: > Agreed, which is why I think that proper package management and a CPyAN-type > system is the way to > go, not trying to stuff everything into a single distribution. I think we're looking at this in two different ways: you're looking at it from the "sumo python distribution

Re: database in python ?

2005-04-11 Thread Fred Pacquier
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> said : > Hello I need to build table which need searching data which needs more > power then dictionary or list in python, can anyone help me what kind > of database suitable for python light and easy to learn. Is mySQL a > nice start with python ? There ar

Re: database in python ?

2005-04-11 Thread Pierre-Frédéric Caillaud
If you want Simple you can use the following piece of code. It won't work if you have a million records, but it's a nice intelligent flatfile storage with a select where + order by and limit emulator. # # class ListMgr( object ): de

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

2005-04-11 Thread Ville Vainio
> "Claudio" == Claudio Grondi <[EMAIL PROTECTED]> writes: Claudio> Is it already known, that after switching the keyboard Claudio> input scheme on German Windows 2000 to english USA Claudio> International IPython generates \x00" instead of " when Claudio> trying to input quotat

Re: Document exchange!

2005-04-11 Thread Larry Bates
You may want to take a look at www.websafe.com. If I can be so bold (since I'm one of the developers), we belive it is both simple and secure. We provide web, WebDAV, and HTTPS interfaces (I can provide you with sample Python code). At-rest encryption is AES. It is a hosted ASP-type application

variables exist

2005-04-11 Thread fabian
how testing if a variable exists in python as isset in php?? thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Avoiding DOS Window...

2005-04-11 Thread Larry Bates
Andrea, Take a look at Win32 extensions CreateProcess method. You can control the window location/size or run minimized. win32process.CreateProcess(execute_target, commandLine, processAttributes, threadAttributes,

My stupid newbie mistake

2005-04-11 Thread Matt Feinstein
I named a file 'try.py' and then was stumped, for a while, when >>> import try gave a syntax error... So, how about a 'YouAreUsingAReservedWordStupid' exception ? Matt Feinstein -- There is no virtue in believing something that can be proved to be true. -- http://mail.python.org/mailman/listin

Re: change extensions

2005-04-11 Thread Peter Hansen
Tim Roberts wrote: "Bob Then" <[EMAIL PROTECTED]> wrote: how can i change all files from one extension to another within a direcory? In Windows, the quickest way is: os.system( "rename *.old *.new" ) I have a vague memory that this won't work on all versions of Windows... possibly it isn't supp

Re: database in python ?

2005-04-11 Thread R. C. James Harlow
On Monday 11 April 2005 11:01, Pierre-Frédéric Caillaud wrote: > psycopg ... has a dictfetchall() method which is worth its weight in > donuts ! It's very simple to write one for MySQLdb: def dictfetchall(cursor): '''Takes a MySQLdb cursor and returns the rows as dictionaries.''' col_nam

Re: variables exist

2005-04-11 Thread Fredrik Lundh
"fabian" wrote: > how testing if a variable exists in python as isset in php?? try: variable except NameError: print "variable not set" but that is really lousy Python; better make sure you always assign to all variables, and use None (or another suitable value) to mark that some variabl

Re: Thoughts on some stdlib modules

2005-04-11 Thread Peter Hansen
Martin v. Löwis wrote: I personally find the notion of "path objects" confusing. Is this a real path name on the local system, or merely a potential one? If potential, why does it have a .size attribute (what is the size of a non-existing file)? Logically (and, I feel, quite intuitively), it's a

where is python.h? / NumPy installation

2005-04-11 Thread martino
Hi, I am trying to install NumPy (v23.8) onder Macosx (panther version). Python (v2.3) is bundled into panther and I installed the IDE on top of that. After having untarred the source distribution in the desktop directory and typed >python setup.py install as recommended in the attached documenta

zlib and zipfile module in Python2.4

2005-04-11 Thread Alan Toppen
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/zlibmodule.so. Unable to find a more elegant solution, I co

Re: variables exist

2005-04-11 Thread Gerald Klix
try: myVariable except NameError: print "Not bound" else: print "Bound" If you want to distinguish between the local an the global environment: if globals().has_key( "myVariable" ): ... versus if locals().has_key( ". HTH, Gerald fabian schrieb: how testing if a variable exists in python as

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

2005-04-11 Thread John Hunter
> "syd" == syd <[EMAIL PROTECTED]> writes: syd> As for matplotlib, I checked it out. Looks amazing! I syd> really, really like what demos I tried. syd> HOWEVER, I could not find a good way to do smoothing. I like syd> the gnuplot bezier smoothing. This wouldn't be the har

Re: My stupid newbie mistake

2005-04-11 Thread Larry Bates
Because Python allows you to replace built-in methods with your own. Later you will find that this can be extremely powerful. You will stumble on this if you name a list 'list' a string 'str', integer 'int', float 'float', dictionary 'dict', ... (at least I did ). -Larry Bates Matt Feinstein wr

Re: database in python ?

2005-04-11 Thread Andy Dustman
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, Transactions available since 3.23.17 (June 2000) >

Re: args attribute of Exception objects

2005-04-11 Thread Steve Holden
Sebastien de Menten wrote: Jeremy Bowers <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... On Fri, 08 Apr 2005 09:32:37 +, SÃÂbastien de Menten wrote: Hi, When I need to make sense of a python exception, I often need to parse the string exception in order to retrieve the data.

Re: [Pythonmac-SIG] Fwd: PPC OSX vs. x86 Linux

2005-04-11 Thread Joshua Ginsberg
Well, I compiled a fresh version of Python 2.3.5 from python.org to test the datetime theory... and I'm still getting 150sec execution times. :-/ I'm gonna test the string vs. strop now... -jag <>Joshua Ginsberg -- [EMAIL PROTECTED] Brainstorm Internet Network Operations 970-247-1442 x131 On Ap

Checking for the status of a device (before connection)... -- (John McCormick)

2005-04-11 Thread Mccormick . Johnw
Hello, ... I am John McCormick (Systems Programmer ) and I am currently working on a python program which will connect (user) specified inputs and connect them to (user) selected outputs (like screen or video/audio-recording devices) and would like to know if there's a technique to "test" or "sense

Re: database in python ?

2005-04-11 Thread Roel Schroeven
Ola Natvig wrote: > MySQL has support for transactions and foreign keys in it's InnoDB > engine. In 5.0 it supports views procedures. Some people seems to hate > MySQL :-) but a whole lot of other people like it a lot. There are other problems, such as failing silently in many circumstances, as d

Re: My stupid newbie mistake

2005-04-11 Thread Peter Hansen
Larry Bates wrote: Matt Feinstein wrote: import try gave a syntax error... So, how about a 'YouAreUsingAReservedWordStupid' exception ? Because Python allows you to replace built-in methods with your own. Later you will find that this can be extremely powerful. Powerful, but not involved in this

singleton objects with decorators

2005-04-11 Thread Uwe Mayer
Hi, I've been looking into ways of creating singleton objects. With Python2.3 I usually used a module-level variable and a factory function to implement singleton objects. With Python2.4 I was looking into decorators. The examples from PEP 318 http://www.python.org/peps/pep-0318.html#examples do

Ten days to go until Python-UK...

2005-04-11 Thread andy
This is a reminder that there are just ten days left before the UK Python Conference. This is the one chance in the UK each year to hear in-depth talks on a wide variety of topics from top Python experts. It takes place at the Randolph Hotel in Oxford on 21-23 April. https://www.accu.org/co

Python 2.4 killing commercial Windows Python development ?

2005-04-11 Thread Michael Kearns
I've been using python to write a simple 'launcher' for one of our Java applications for quite a while now. I recently updated it to use python 2.4, and all seemed well. Today, one of my colleagues noted that on her machine the launcher would complain it was missing a DLL - msvcr71.dll However

ANN: Wavy Navy 1.00 (Pygame shoot 'em up)

2005-04-11 Thread Sizer
Wavy Navy 1.00 is now available at http://sizer99.com/wavy/ under BSD License. This is a Pygame shoot-em-up based on the 1983 Sirius Software game by Rodney McAuley. Created from scratch in about 3 weeks of my spare time using Python and Pygame as a test project for Pygame (which was easily up to

Re: database in python ?

2005-04-11 Thread Steve Holden
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. Postgre

Re: zlib and zipfile module in Python2.4

2005-04-11 Thread Fredrik Lundh
Alan Toppen wrote: > When running my Python script it gives a warning: > > /usr/local/lib/python2.4/zipfile.py:7: RuntimeWarning: Python C API version > mismatch for module zlib: This Python has C API version 1012, module zlib > has version 1011. > import zlib # We may need its compression metho

Re: My stupid newbie mistake

2005-04-11 Thread Fredrik Lundh
Larry Bates wrote: > Because Python allows you to replace built-in methods with > your own. Later you will find that this can be extremely > powerful. You will stumble on this if you name a list 'list' > a string 'str', integer 'int', float 'float', dictionary > 'dict', ... (at least I did ). t

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-11 Thread Thomas Heller
Michael Kearns <[EMAIL PROTECTED]> writes: > I've been using python to write a simple 'launcher' for one of our > Java applications for quite a while now. I recently updated it to use > python 2.4, and all seemed well. > > Today, one of my colleagues noted that on her machine the launcher > would

Sockets (Dave Brueck)

2005-04-11 Thread Mccormick . Johnw
Hello, ... I am John McCormick (Systems Programmer ) and I am currently working on a python program which will connect (user) specified inputs and connect them to (user) selected outputs (like screen or video/audio-recording devices) and would like to know if there's a technique to "test" or "sens

Sockets (Dan)

2005-04-11 Thread Mccormick . Johnw
## John W. McCormick, Systems Programmer / DBA High Performance Computing & Scientific Visualization Lockheed Martin Information Technology, Supporting the EPA Research Triangle Park, NC 919-541-0890 Federal Infrastructure Contact - Ravi Nair 919-541-546

Sockets (jepler@unpythonic.net)

2005-04-11 Thread Mccormick . Johnw
Hello, ... I am John McCormick (Systems Programmer ) and I am currently working on a python program which will connect (user) specified inputs and connect them to (user) selected outputs (like screen or video/audio-recording devices) and would like to know if there's a technique to "test" or "se

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-11 Thread Michael Kearns
Thomas Heller wrote: For commercial development, it should not be a problem to buy a license for MSVC 7.1, which gives you the right to distribute msvcrt71.dll. And maybe that's the reason that few people care about this issue? Hi Thomas, There are a few problems with this as I see it. In theory, t

Re: Behavioural identity - a short discussion

2005-04-11 Thread Kay Schluehr
Terry Reedy wrote: > "Kay Schluehr" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > class A(object): > >def __init__(self): > >raise NotImplemented > > > > We can regard class A as a "pure abstract" class. It is impossible to > > create instances of A. > > You see that

Re: [Pythonmac-SIG] Fwd: PPC OSX vs. x86 Linux

2005-04-11 Thread Bob Ippolito
On Apr 11, 2005, at 8:00 AM, Joshua Ginsberg wrote: On Apr 10, 2005, at 4:14 PM, Bob Ippolito wrote: On Apr 10, 2005, at 2:46 PM, Joshua Ginsberg wrote: I writing some python code to do some analysis of my mail logs. I took a 10,000 line snippet from them (the files are about 5-6 million usually)

Re: variables exist

2005-04-11 Thread Brian van den Broek
Fredrik Lundh said unto the world upon 2005-04-11 10:14: "fabian" wrote: how testing if a variable exists in python as isset in php?? try: variable except NameError: print "variable not set" but that is really lousy Python; better make sure you always assign to all variables, and use None

PyAr - Python Argentina 8th Meeting, this Thursday

2005-04-11 Thread Batista, Facundo
Title: PyAr - Python Argentina 8th Meeting, this Thursday The Argentine Python User Group, PyAr, will have its eighth meeting this Thursday, January 10th at 7:00pm. Agenda -- Despite our agenda tends to be rather open, this time we would like to cover these topics: - Conclusions of

ANNOUNCE: SiGeFi v0.3.1

2005-04-11 Thread Batista, Facundo
Title: ANNOUNCE: SiGeFi v0.3.1 We're proud to announce the 0.3.1 version of SiGeFi, which you can find at:     http://sourceforge.net/projects/sigefi     What is SiGeFi? --- SiGeFi is a Financial Management System, with focus in the needs of the administration of th

Re: Thoughts on some stdlib modules

2005-04-11 Thread Skip Montanaro
>> I guess the other thing to compare to is something like SciPy, which >> is a kind of specialized distribution of Python for scientific >> applications. Robert> No, Scipy is just a (large) package. Enthon, on the other hand, Robert> is just such a distribution. I'm sorry, y

Re: Weird...

2005-04-11 Thread Skip Montanaro
>>> {'a':1,'b':'2','c':[3,4]}.keys() ['a', 'c', 'b'] Joshua> How come? :-) Because: >>> {'A':1,'b':'2','Cat':[3,4]}.keys() ['A', 'b', 'Cat'] :-) For more detail: http://www.python.org/doc/faq/general.html#id48 Skip -- http://mail.python.org/mailman/listinfo/python-l

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-11 Thread Tim Peters
[Michael Kearns] > ... > Also, I don't believe that just 'owning' MSVC 7.1 is enough. From > cursory glances at the various redist files, I would also have to ship > the EULA, and as an end-user (of python) I can't just redistribute the > files - perhaps I could write a place holder application in

Re: web authoring tools

2005-04-11 Thread Brandon J. Van Every
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > Brandon J. Van Every wrote: > >> 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 honestly got

Re: web authoring tools

2005-04-11 Thread Brandon J. Van Every
Ron_Adam <[EMAIL PROTECTED]> wrote in >> >>http://www.igda.org/seattle/ >>http://www.cyphondesign.com/ >>http://www.alphageeksinc.com/ >>http://www.gamasutra.com > > These top three where done with text editors. If you view the source, > you will notice the formatting has good consistent indentin

Automatic response to your mail (Error)

2005-04-11 Thread Webmaster
The automatic reply to this e-mail which you should have received in response to your e-mail to [EMAIL PROTECTED] has not been defined. Please contact [EMAIL PROTECTED] for assistance. -- http://mail.python.org/mailman/listinfo/python-list

Re: [EVALUATION] - E03 - jamLang Evaluation Case Applied to Python

2005-04-11 Thread Ilias Lazaridis
Ilias Lazaridis wrote: [EVALUATION] - E02 - Support for MinGW Open Source Compiler http://groups-beta.google.com/group/comp.lang.python/msg/f5cd74aa26617f17 - In comparison to the E02 thread, now a more practical one. - Here is a simple evaluation template (first part) which can be applied to the

Re: Doubt regarding sorting functions

2005-04-11 Thread Steven Bethard
[EMAIL PROTECTED] wrote: def funcSort(myList): result = myList[:] result.sort() return result In Python 2.4, funcSort is called sorted: py> sorted([1.2,1.23,4.5,2]) [1.2, 1.23, 2, 4.5] py> sorted(["a","c","b","A","C","B"]) ['A', 'B', 'C', 'a', 'b', 'c'] STeVe -- http://mail.python.org/mailman

Re: web authoring tools

2005-04-11 Thread Pierre-Frédéric Caillaud
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 honestly got a little tired of the tone of the answers I was getting from that crowd, about what an idiot I am. My query there is

smtplib does not send to all recipients

2005-04-11 Thread dccarson
Here is a snippet of code which does not send to all recipients. However, it also does not inform me of this error. My suspicion is that this only fails for users with longer usernames. The two I seem to regularly fail on have 9 and 11 characters respectively. Most users have names <= 8 characte

Re: variables exist

2005-04-11 Thread Steven Bethard
Brian van den Broek wrote: Fredrik Lundh said unto the world upon 2005-04-11 10:14: "fabian" wrote: how testing if a variable exists in python as isset in php?? try: variable except NameError: print "variable not set" but that is really lousy Python; better make sure you always assign to al

Creating a new instance of a class by what is sent in?

2005-04-11 Thread ChinStrap
I am sorry if this is obvious, but I am not seeing it. How would I go about creating a new type that is of the same type as a class sent into the function? new = foo.__init__() refers to the current foo, not a new fresh instance of my class. The only way I can think of is to make a large if-elif

Re: singleton objects with decorators

2005-04-11 Thread Steven Bethard
Uwe Mayer wrote: Hi, I've been looking into ways of creating singleton objects. With Python2.3 I usually used a module-level variable and a factory function to implement singleton objects. With Python2.4 I was looking into decorators. The examples from PEP 318 http://www.python.org/peps/pep-0318.ht

Re: Creating a new instance of a class by what is sent in?

2005-04-11 Thread Steven Bethard
ChinStrap wrote: I am sorry if this is obvious, but I am not seeing it. How would I go about creating a new type that is of the same type as a class sent into the function? new = foo.__init__() refers to the current foo, not a new fresh instance of my class. The only way I can think of is to make

Re: smtplib does not send to all recipients

2005-04-11 Thread dccarson
I changed debuglevel to 1 and looked at the response on the recipient names. They are BOTH accepted, but still only my id (d123456) receives the e-mail. The long id (d1234567890) never gets the e-mail. Here is the excerpt of the exchange. send: 'mail FROM:<[EMAIL PROTECTED]> size=160\r\n' reply

Re: Creating a new instance of a class by what is sent in?

2005-04-11 Thread Michael Spencer
Steven Bethard wrote: > It looks like you want to create a new _instance_ of the same type as an _instance_ passed in to a function. If this is correct, you can do this by: ... If you need to support old-style classes, replace type(obj) with obj.__class__. You can use obj.__class__ for both ol

Re: Help understanding code

2005-04-11 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : Reading the language tututorial would help you a lot :( === what is the difference between pc and pc()? pc = getToolByName() - returnes a refference to a method Nope. pc is a refference to a method, Nope. pc is not 'a reference to a method', it's a callable object

Problem with import "from omniORB import CORBA, PortableServer"

2005-04-11 Thread gerald . maher
Hi, I am trying to excuate the follwong code: [ import sys from omniORB import CORBA, PortableServer ] I get the following error: [ Traceback (most recent call last): File "C:\omniORBpy-2.5-win32-python2.3\omniORBpy-2.5\examples\echoMyTest\example_echo_coloc.py", line 9, in ? from omniORB

Re: Smart help again

2005-04-11 Thread bearophileHUGS
>You can create your own Exception class, based on this recipe:< Thank you for your answer, the recipe you have suggested gives a very big output, but it doesn't contain what I've asked for... :-) I was asking to see that faulty method/function parameters (or the first line of its docstring). Prob

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-11 Thread Nemesis
Mentre io pensavo ad una intro simpatica "Michael Kearns" scriveva: > I've been using python to write a simple 'launcher' for one of our Java > applications for quite a while now. I recently updated it to use python > 2.4, and all seemed well. > Today, one of my colleagues noted that on her mach

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-11 Thread Do Re Mi chel La Si Do
Hi ! This DLL come also with MS-JVM engine, who is free. Therefore... -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: smtplib does not send to all recipients

2005-04-11 Thread Steve Holden
[EMAIL PROTECTED] wrote: I changed debuglevel to 1 and looked at the response on the recipient names. They are BOTH accepted, but still only my id (d123456) receives the e-mail. The long id (d1234567890) never gets the e-mail. Here is the excerpt of the exchange. send: 'mail FROM:<[EMAIL PROTECT

Re: Counting iterations

2005-04-11 Thread Andrew Dalke
Derek Basch wrote: > Interesting stuff Andrew. I do generally avoid string concantination > for the reason listed in the Python Performance Tips but your analysis > kinda puts that in question. Thanks. It was interesting for me to. I hadn't looked at the implementation for string % before and wa

Dr. Dobb's Python-URL! - weekly Python news and links (Apr 11)

2005-04-11 Thread Simon Brunning
QOTW: "I think my code is clearer, but I wouldn't go so far as to say I'm violently opposed to your code. I save violent opposition for really important matters like which text editor you use." - Roy Smith "You need to recursively subdivide the cake until you have a piece small enough to fit in y

  1   2   >