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

ANNOUNCE: wxPython 2.5.5.1

2005-04-11 Thread Robin Dunn
Announcing -- I'm pleased to announce the 2.5.5.1 release of wxPython, now available for download at http://wxpython.org/download.php. This is mostly a bug-fix release, but there are a few new features as well. See the changes list below for details. What is wxPython? -

[ANN] Release 0.29 of Task Coach

2005-04-11 Thread Frank Niessink
Hi all, I am pleased to announce release 0.29 of Task Coach. This release fixes two bugs and adds a couple of features: Bugs fixed: - New effort in the context menu did not work in release 0.28. - When selecting 'View' - 'Completed tasks' in the task tree, only completed root tasks were hidden.

ReleaseForge 0.7 - An alternative to the SourceForge File Release System

2005-04-11 Thread [EMAIL PROTECTED]
ReleaseForge 0.7 is now available for download at: http://releaseforge.sourceforge.net --- About ReleaseForge 0.7: This new version adds the ability for users to submit project news to SourceForge. This feature is available from the newly

Re: hello

2005-04-11 Thread [EMAIL PROTECTED]
Hi Mage, You can use for in instead of while break. I start from C# and I found python is wonderfull, some style is strange but it fun anyway to learn new way of thinking. Best Regards, Pujo -- http://mail.python.org/mailman/listinfo/python-list

Re: Doubt regarding sorting functions

2005-04-11 Thread Brian van den Broek
praba kar said unto the world upon 2005-04-11 00:50: Dear All, I am new to Python. I am in need of some sorting functions (eg) numerical sorting functions and alphapetical sorting functions. I have searched through net But I cannot find any regarding this so If anyone know regarding

Cleaning up after C module

2005-04-11 Thread j1k1cki
Hello, 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 Process:

Message Delivery Failure - due to attachments

2005-04-11 Thread Mailer_Daemon
The message below (subject: Server Report) that you sent was not delivered because it contained one or more prohibited attachments. The prohibited attachment filenames are below: - epclrti.zip was prohibited --- Received: from pop3.nildram.co.uk by

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

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:: ul @[for record in records]@ lia href=@record.id@record.title/a/li @[end for]@ /ul Batch expanding the template would look like something as simple as (substituting in your

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 this

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?

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

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

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 the

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 thing

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=206342postcount=10 --

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

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. Unfortunately there is

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:

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 inline: Pasted Graphic.tiffJoshua Ginsberg -- [EMAIL PROTECTED] Brainstorm Internet Network Operations 970-247-1442 x131--

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 instead

HELP ! Anybody knows where the stackless python website is ?

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

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

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 +, Sbastien 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. What exactly are

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

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 this

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.

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

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 or

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

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

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

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 the

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

Re: database in python ?

2005-04-11 Thread Pierre-Frdric 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 ):

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 quotation marks?

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

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

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 supported

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

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 variable

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 an

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

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

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 isset

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

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 grin). -Larry Bates Matt

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 +, Sbastien 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. What

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 inline: Pasted Graphic.tiffJoshua Ginsberg -- [EMAIL PROTECTED] Brainstorm Internet Network

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

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

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

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.

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

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

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.

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 method

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 grin).

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 sense

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

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

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,

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

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

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 the money in

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, you lost

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

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
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 indenting and there

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

Re: web authoring tools

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

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 all

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

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

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

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

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

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

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 machine

  1   2   >