ANN: CherryPy 3.0.2

2007-08-13 Thread Christian Wyglendowski
CherryPy 3.0.2 was released last week. It incorporates a few bug fixes that were discovered since 3.0.1. The release can be downloaded at the following URL and is also available on PyPI: http://cherrypy.org/wiki/CherryPyDownload See the list of changes here:

Python-URL! - weekly Python news and links (Aug 13)

2007-08-13 Thread Gabriel Genellina
QOTW: The first time you see twenty tons of machinery move unexpectedly because you inadvertently changed one bit in memory, you become very conservative about your software platform. - Walt Leipold Making use of the available wrappers for current Tk libraries such as BWidgets, Tile, Tablelist,

Hamburg Pythoneers Monthly Meeting: August, 15

2007-08-13 Thread Bastian Bowe
+ Hamburg Python User Group April Meeting + I am pleased to announce our next user group meeting: Wednesday, August 15, 2007 at 7:30pm (NOT 7:00pm!) Location: DDD Design GmbH, Jarrestrasse 46, 22303 Hamburg. The topic WSGI - Web Server Gateway Interface is presented by Gerhard

Python 3000 Sprint @ Google

2007-08-13 Thread Guido van Rossum
It's official! The second annual Python Sprint @ Google is happening again: August 22-25 (Wed-Sat). We're sprinting at two locations, this time Google headquarters in Mountain View and the Google office in Chicago (thanks to Brian Fitzpatrick). We'll connect the two sprints with full-screen

Re: Ligmail bug?

2007-08-13 Thread Gabriel Genellina
En Sun, 12 Aug 2007 22:14:08 -0300, Ed Leafe [EMAIL PROTECTED] escribi�: On Aug 12, 2007, at 7:06 AM, Steve Holden wrote: [Please reply via the list when a response is made via the list. The default behavior for this list should be to reply to the list, as you have pointed out. Yet

Re: Querying Graphics Card Name

2007-08-13 Thread Benjamin Goldenberg
On Aug 12, 2:18 pm, Jorgen Grahn [EMAIL PROTECTED] wrote: On Thu, 09 Aug 2007 21:58:54 -, Benjamin Goldenberg [EMAIL PROTECTED] wrote: On Aug 9, 3:26 pm, Bjoern Schliessmann usenet- [EMAIL PROTECTED] wrote: Benjamin Goldenberg wrote: I would like to find out the name of the

Re: Complexity of methods etc

2007-08-13 Thread Paddy
On Aug 13, 1:04 am, Nathan Harmston [EMAIL PROTECTED] wrote: Hi, I was wondering if anyone knew of any resources, where I might be able to find information about the complexity of certain python functions or little tips on how to reduce complexity. I mean like the .join(), kind of thing? I

Re: Pausing and Unpausing Threads

2007-08-13 Thread Gabriel Genellina
En Sun, 12 Aug 2007 21:45:47 -0300, Aaron J. M. [EMAIL PROTECTED] escribi�: Uhg, I thought of something I didn't consider before: how to cleanly end the Server/DirectedControl(l)er process. Use the same Queue; put a special kind of Action, or just a None object, to tell the thread that

Re: Colored text

2007-08-13 Thread Rohan
On Aug 12, 10:01 pm, ianaré [EMAIL PROTECTED] wrote: On Aug 12, 10:05 pm, Rohan [EMAIL PROTECTED] wrote: Hello, Can some one tell me how do I get colored text. Say when I want to write something in a text file , how do I get it colored. Plain text files don't have color. You could output

Re: Colored text

2007-08-13 Thread Michael Bentley
On Aug 12, 2007, at 7:05 PM, Rohan wrote: Can some one tell me how do I get colored text. Say when I want to write something in a text file , how do I get it colored. You can use ANSI escape codes -- http://en.wikipedia.org/wiki/ ANSI_escape_code: colorCodes = [ \033[0mAll attributes

Re: decorators - more than just syntactic sugar

2007-08-13 Thread Michele Simionato
On Aug 11, 8:30 pm, Helmut Jarausch [EMAIL PROTECTED] wrote: Hi, are decorators more than just syntactic sugar in python 2.x and what about python 3k ? Well, I argued may times that syntactic sugar is important (all Turing complete languages differs by syntactic sugar only) and having or not

Re: decorators - more than just syntactic sugar

2007-08-13 Thread Kay Schluehr
On Aug 11, 8:30 pm, Helmut Jarausch [EMAIL PROTECTED] wrote: How can I find out the predefined decorators? I dare to say that's not easy. Since decorators are just(?) syntactical sugar they don't obtain a particular semantics expressed by distinctive declarative elements. Unlike generators

Re: Colored text

2007-08-13 Thread ianaré
On Aug 13, 1:50 am, Rohan [EMAIL PROTECTED] wrote: On Aug 12, 10:01 pm, ianaré [EMAIL PROTECTED] wrote: On Aug 12, 10:05 pm, Rohan [EMAIL PROTECTED] wrote: Hello, Can some one tell me how do I get colored text. Say when I want to write something in a text file , how do I get it

Re: is there anybody using __del__ correctly??

2007-08-13 Thread Michele Simionato
On Aug 12, 9:14 pm, Steven Bethard [EMAIL PROTECTED] wrote: Michele Simionato wrote: On Aug 10, 7:09 pm, Steven Bethard [EMAIL PROTECTED] wrote: There were also a few recipes posted during this discussion that wrap weakrefs up a bit nicer so it's easier to use them in place of __del__:

Re: which IDE is highly recommended in Windows OS

2007-08-13 Thread ychjiang
On 8 13 , 10 09 , Ge Chunyuan [EMAIL PROTECTED] wrote: hi Group: I am a new comer for Python, I wonder which IDE is recommended in Windows OS. Can anyone give some suggestion. Thanks indeed Ge Chunyuan javaeclipse pydev eclipse --

Re: Module imports during object instantiation

2007-08-13 Thread Bruno Desthuilliers
Ritesh Raj Sarraf a écrit : Hi, I've been very confused about why this doesn't work. I mean I don't see any reason why this has been made not to work. class Log: def __init__(self, verbose, lock = None): if verbose is True: Don't use an identity test here. There are

Re: Module imports during object instantiation

2007-08-13 Thread Bruno Desthuilliers
Ritesh Raj Sarraf a écrit : On Aug 11, 3:17 am, James Stroud [EMAIL PROTECTED] wrote: You do realize your import statement will only be called for nt and dos systems don't you? Yes. I would like to load a Windows Python Module (which is, say a specific implementation for Windows only) in

Car Air Conditioners

2007-08-13 Thread Lepi Duja
All the informations about car air conditioners can be found on this website... http://car-air-conditioning.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: which IDE is highly recommended in Windows OS

2007-08-13 Thread Ge Chunyuan
On Aug 13, 10:24 am, _spitFIRE [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ge Chunyuan wrote: hi Group: I am a new comer for Python, I wonder which IDE is recommended in Windows OS. Can anyone give some suggestion. Thanks indeed Ge Chunyuan - -

verify whether str is still callable in Python 2.5.1

2007-08-13 Thread Ge Chunyuan
hi Group: Once use ActivePython latest version for Python 2.5.1. I happened to find function str is not callable, but it is available for Python 2.5. Can anybody give some comments about it? Any response is highly appreciated. Thanks Ge Chunyuan --

Re: verify whether str is still callable in Python 2.5.1

2007-08-13 Thread Peter Otten
Ge Chunyuan wrote: Once use ActivePython latest version for Python 2.5.1. I happened to find function str is not callable, but it is available for Python 2.5. If it's not callable it's not the str() function, but something else with a badly chosen variable name. callable(str) True str =

Re: verify whether str is still callable in Python 2.5.1

2007-08-13 Thread Ge Chunyuan
On Aug 13, 4:48 pm, Peter Otten [EMAIL PROTECTED] wrote: Ge Chunyuan wrote: Once use ActivePython latest version for Python 2.5.1. I happened to find function str is not callable, but it is available for Python 2.5. If it's not callable it's not the str() function, but something else with

Re: verify whether str is still callable in Python 2.5.1

2007-08-13 Thread Lawrence Oluyede
Ge Chunyuan [EMAIL PROTECTED] wrote: Once use ActivePython latest version for Python 2.5.1. I happened to find function str is not callable, but it is available for Python 2.5. Can anybody give some comments about it? I don't really understand what your asking. str is a callable, it has

Re: wx.ListBox drag and drop

2007-08-13 Thread 7stud
On Aug 12, 11:06 pm, ianaré [EMAIL PROTECTED] wrote: Hey all, I see plenty of drag and drop examples but they are all for wx.ListCtrl. Anyone know of examples or tutorials for wx.ListBox? Specifically, I would like to be able to drag a selection from one ListBox to another. Thanks in

Adventure-Engines in Python

2007-08-13 Thread Wildemar Wildenburger
Are there any? I've set out to make an adventure game and now I'm trying to find a set of python-modules to help me do that. I know of the usual non-python suspects (AGAST, AGS, Wintermute, ...) and while I they are really good, I'd like one that is cross platform. I've found pyScumm and

Re: retrieving ATOM/FSS feeds

2007-08-13 Thread Lawrence Oluyede
_spitFIRE [EMAIL PROTECTED] wrote: I'm using feedparser library to parser ATOM/RSS feeds. However, I don't get the entire post! but only summaries! How do I retrieve the entire feed? I believe that the parser library should have support for doing that or the specification should detail how

Eclipse/PyDev question

2007-08-13 Thread king kikapu
Hi, i am using Eclipse (Platform Runtime binary) with PyDev and i was wondering if someone can help me with this: 1. I set breakpoints to a .py file and i have told Eclipse to open the Debug perspective when it sees that some .py file(s) of my project indeed contains breakpoints. So, i press F9,

check if var is dict

2007-08-13 Thread Astan Chee
Hi, I have a variable, I want to check if it is a dictionary or a string. Is there any better way to do this than I've done. How I did it is by doing a .items() and catching a AttributeError that it raises if its not a dictionary. How do i properly do it? Thanks Astan --

Re: Complexity of methods etc

2007-08-13 Thread [EMAIL PROTECTED]
On Aug 13, 1:04 am, Nathan Harmston [EMAIL PROTECTED] wrote: Hi, I was wondering if anyone knew of any resources, where I might be able to find information about the complexity of certain python functions or little tips on how to reduce complexity. I mean like the .join(), kind of thing? I

Re: retrieving ATOM/FSS feeds

2007-08-13 Thread _spitFIRE
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lawrence Oluyede wrote: If the content producer doesn't provide the full article via RSS/ATOM there's no way you can get it from there. Search for full content feeds if any, otherwise get the article URL and feed it to BeautifulSoup to scrape the

negative polar axis

2007-08-13 Thread yadin
hi! how can i do polar plot in python with negative axes that is the value of the magnitude is negative -- http://mail.python.org/mailman/listinfo/python-list

Re: Adventure-Engines in Python

2007-08-13 Thread Richard Jones
Wildemar Wildenburger wrote: Are there any? An adventure game was written for one of the PyWeek challenges: http://www.pyweek.org/e/aerunthar/ You might be able to use that as a starting point. Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: retrieving ATOM/FSS feeds

2007-08-13 Thread Lawrence Oluyede
_spitFIRE [EMAIL PROTECTED] wrote: For the same feed (where the content producer doesn't provide the full article!) I was able to see the complete post in other RSS aggregators (like Blam). I wanted to know how they were able to collect the feed! Perhaps in the feed itself there's the link for

Re: check if var is dict

2007-08-13 Thread Lawrence Oluyede
Astan Chee [EMAIL PROTECTED] wrote: I have a variable, I want to check if it is a dictionary or a string. Is there any better way to do this than I've done. How I did it is by doing a .items() and catching a AttributeError that it raises if its not a dictionary. How do i properly do it? One

Re: Eclipse/PyDev question

2007-08-13 Thread Fabio Zadrozny
On 8/13/07, king kikapu [EMAIL PROTECTED] wrote: Hi, i am using Eclipse (Platform Runtime binary) with PyDev and i was wondering if someone can help me with this: 1. I set breakpoints to a .py file and i have told Eclipse to open the Debug perspective when it sees that some .py file(s) of

Re: Module imports during object instantiation

2007-08-13 Thread Steve Holden
Ritesh Raj Sarraf wrote: Hi, I've been very confused about why this doesn't work. I mean I don't see any reason why this has been made not to work. class Log: def __init__(self, verbose, lock = None): if verbose is True: self.VERBOSE = True else:

Re: check if var is dict

2007-08-13 Thread Bruno Desthuilliers
Astan Chee a écrit : Hi, I have a variable, I want to check if it is a dictionary or a string. Is there any better way to do this than I've done. How I did it is by doing a .items() and catching a AttributeError that it raises if its not a dictionary. How do i properly do it? Checking the

Re: Process Control Help

2007-08-13 Thread Cameron Laird
In article [EMAIL PROTECTED], Azazello [EMAIL PROTECTED] wrote: On Jul 31, 12:45 pm, Walt Leipold [EMAIL PROTECTED] wrote: . . . It has nothing to do with 'proprietary issues'. A lot of it has to do with the perception of

Re: check if var is dict

2007-08-13 Thread Jeff McNeil
You could use 'isinstance' to determine whether or not your object is an instance of a particular class. isinstance({}, dict) True isinstance(, basestring) True Note the use of 'basestring', which will catch unicode as well. -Jeff On 8/13/07, Astan Chee [EMAIL PROTECTED] wrote: Hi, I have

Air conditioners for free!??!?!!!

2007-08-13 Thread fritz
http://airconlinks.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Process Control Help

2007-08-13 Thread Cameron Laird
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: I'm attempting to start some process control using Python. I've have . . . Is there an existing forum on this already? .

Re: decorators - more than just syntactic sugar

2007-08-13 Thread BJörn Lindqvist
On 8/11/07, Helmut Jarausch [EMAIL PROTECTED] wrote: How can I find out the predefined decorators? There are two in the standard library, @classmethod for declaring class methods and @staticmethod for declaring static methods. They are listed at the built ins page

Configuring apache to execute python scripts using mod_python handler

2007-08-13 Thread joe jacob
I configured apache to execute python scripts using mod_python handler. I followed below mentioned steps to configure apache. 1. In http.conf I added Directory D:/softwares/Apache2.2/htdocs AddHandler mod_python .py PythonHandler mptest PythonDebug On /Directory 2. Then I added the

Re: check if var is dict

2007-08-13 Thread Wildemar Wildenburger
Astan Chee wrote: Hi, I have a variable, I want to check if it is a dictionary or a string. Is there any better way to do this than I've done. How I did it is by doing a .items() and catching a AttributeError that it raises if its not a dictionary. How do i properly do it? The way you

Re: decorators - more than just syntactic sugar

2007-08-13 Thread Duncan Booth
BJörn Lindqvist [EMAIL PROTECTED] wrote: On 8/11/07, Helmut Jarausch [EMAIL PROTECTED] wrote: How can I find out the predefined decorators? There are two in the standard library, @classmethod for declaring class methods and @staticmethod for declaring static methods. They are listed at the

Re: Eclipse/PyDev question

2007-08-13 Thread gatti
On Aug 13, 11:48 am, king kikapu [EMAIL PROTECTED] wrote: Hi, i am using Eclipse (Platform Runtime binary) with PyDev and i was wondering if someone can help me with this: 1. I set breakpoints to a .py file and i have told Eclipse to open the Debug perspective when it sees that some .py

Re: decorators - more than just syntactic sugar

2007-08-13 Thread Duncan Booth
Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: On Sat, 11 Aug 2007 20:30:54 +0200, Helmut Jarausch wrote: are decorators more than just syntactic sugar in python 2.x and what about python 3k ? They are just syntactic sugar. @spam def ham(): pass is the same as def ham():

Re: Configuring apache to execute python scripts using mod_python handler

2007-08-13 Thread [EMAIL PROTECTED]
Hi Joe You'd probably have better luck posting this to the mod python mailing list. Did you name your python script mptest.py and did you remember to restart Apache when you edited the httpd.conf file? If so then I don't see any reason why it shouldn't work although I've never tried mod_python

Re: Air conditioners for free!??!?!!!

2007-08-13 Thread Paul Heslop
fritz wrote: http://goodgrief -- Paul (We won't die of devotion) --- Stop and Look http://www.geocities.com/dreamst8me/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Adventure-Engines in Python

2007-08-13 Thread David Boddie
On Mon Aug 13 11:33:14 CEST 2007, Wildemar Wildenburger wrote: Are there any? I've set out to make an adventure game and now I'm trying to find a set of python-modules to help me do that. I know of the usual non-python suspects (AGAST, AGS, Wintermute, ...) and while I they are really

Python-URL! - weekly Python news and links (Aug 13)

2007-08-13 Thread Gabriel Genellina
QOTW: The first time you see twenty tons of machinery move unexpectedly because you inadvertently changed one bit in memory, you become very conservative about your software platform. - Walt Leipold Making use of the available wrappers for current Tk libraries such as BWidgets, Tile, Tablelist,

Re: Eclipse/PyDev question

2007-08-13 Thread king kikapu
On Aug 13, 1:44 pm, [EMAIL PROTECTED] wrote: On Aug 13, 11:48 am, king kikapu [EMAIL PROTECTED] wrote: Hi, i am using Eclipse (Platform Runtime binary) with PyDev and i was wondering if someone can help me with this: 1. I set breakpoints to a .py file and i have told Eclipse to open

Re: Fatest standard way to sum bytes (and their squares)?

2007-08-13 Thread Hrvoje Niksic
Erik Max Francis [EMAIL PROTECTED] writes: Hrvoje Niksic wrote: For ordinalSum, using imap is almost twice as fast: $ python -m timeit -s 'data=[chr(x) for x in xrange(256)]' 'sum(ord(x) for x in data)' 1 loops, best of 3: 92.4 usec per loop $ python -m timeit -s 'data=[chr(x) for x in

Re: Extending logging module

2007-08-13 Thread Vinay Sajip
On Aug 9, 9:08 pm, jay [EMAIL PROTECTED] wrote: It actually worked, but this is not the way I would like to handle the problem. I would prefer to extend the classes instead. However, I'm not too familiar with that, and I had to change things in so many places, I'm wondering if its even

Re: Adventure-Engines in Python

2007-08-13 Thread Tommy Nordgren
On 13 aug 2007, at 11.33, Wildemar Wildenburger wrote: Are there any? I've set out to make an adventure game and now I'm trying to find a set of python-modules to help me do that. I know of the usual non-python suspects (AGAST, AGS, Wintermute, ...) and while I they are really good,

Re: Adventure-Engines in Python

2007-08-13 Thread Neil Cerutti
On 2007-08-13, Richard Jones [EMAIL PROTECTED] wrote: Wildemar Wildenburger wrote: Are there any? An adventure game was written for one of the PyWeek challenges: http://www.pyweek.org/e/aerunthar/ You might be able to use that as a starting point. Here's an abondoned (since Python 2.2),

Re: Colored text

2007-08-13 Thread Neil Cerutti
On 2007-08-13, Michael Bentley [EMAIL PROTECTED] wrote: On Aug 12, 2007, at 7:05 PM, Rohan wrote: Can some one tell me how do I get colored text. Say when I want to write something in a text file , how do I get it colored. You can use ANSI escape codes -- http://en.wikipedia.org/wiki/

Re: retrieving ATOM/FSS feeds

2007-08-13 Thread Diez B. Roggisch
_spitFIRE wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lawrence Oluyede wrote: If the content producer doesn't provide the full article via RSS/ATOM there's no way you can get it from there. Search for full content feeds if any, otherwise get the article URL and feed it to

Re: Eclipse/PyDev question

2007-08-13 Thread king kikapu
Ah, i forgot another one: as any project evolves, you need to organize it in directories. So, i have a project named Dev and Eclipse has provided me (in Navigator) with Dev and Src. Inside Src i put my .py files. Let's say that i want to create a directory there (will i make it in Src or in Dev)

Re: Something in the function tutorial confused me.

2007-08-13 Thread Neil Cerutti
On 2007-08-12, Alex Martelli [EMAIL PROTECTED] wrote: Neil Cerutti [EMAIL PROTECTED] wrote: ... OK, I've thought about this some more and I think the source of my confusion was I thought assignment in Python meant binding a name to something, not mutating an object. But in the case of

Drawing a graph

2007-08-13 Thread Ghirai
Hello list, I need to draw a graph, 2 axes, 2D, nothing fancy. One of the axes is time, the other one is a series of integers. I don't care much about the output format. Are there any specialized libraries for this, or should i use PIL? Thanks. -- Regards, Ghirai. --

strftime in python 2.2

2007-08-13 Thread Flyzone
I'm trying to make work this code in python 2.2.3: check=datetime.datetime.today().strftime(%H%M) but datetime is not supported in that version but just in the later. I can't upgrade python, too many dependencies in a critical system. How can i convert that string to have the same result? Hope

Re: check if var is dict

2007-08-13 Thread Bruno Desthuilliers
Jeff McNeil a écrit : (top-post corrected) On 8/13/07, Astan Chee [EMAIL PROTECTED] wrote: Hi, I have a variable, I want to check if it is a dictionary or a string. Is there any better way to do this than I've done. How I did it is by doing a .items() and catching a AttributeError that it

Re: negative polar axis

2007-08-13 Thread Steve Holden
yadin wrote: hi! how can i do polar plot in python with negative axes that is the value of the magnitude is negative Surely a negative magnitude doesn't make sense in polar coordinates, since the magnitude is supposed to represent the distance from the center. About the best interpretation

Re: Pausing and Unpausing Threads

2007-08-13 Thread Aaron J. M.
On Aug 13, 2:31 am, Gabriel Genellina [EMAIL PROTECTED] wrote: Use the same Queue; put a special kind of Action, or just a None object, to tell the thread that there are no more things to process. From the main thread, you can join() the others, waiting for them to finish. Ah, thank you very

Getting started with JPype

2007-08-13 Thread porter
Hi, For nefarious javaesque reasons I've been trying to get started with jpype (http://jpype.sourceforge.net). This looks like a potentially useful tool for integrating java classes into C-python, but frustratingly I've run into immediate problems. The documentation on the project really doesn't

Re: Drawing a graph

2007-08-13 Thread Helmut Jarausch
Ghirai wrote: Hello list, I need to draw a graph, 2 axes, 2D, nothing fancy. One of the axes is time, the other one is a series of integers. I don't care much about the output format. Are there any specialized libraries for this, or should i use PIL? What about Gnuplot.py

Re: Getting started with JPype

2007-08-13 Thread porter
Gah - I hate it when that happens: Just after posting I figured out my silly mistake: my package is called myclasses and I was referencing 'myclass' apologies for wasting your time Hi, For nefarious javaesque reasons I've been trying to get started with jpype

Re: Drawing a graph

2007-08-13 Thread Larry Bates
Ghirai wrote: Hello list, I need to draw a graph, 2 axes, 2D, nothing fancy. One of the axes is time, the other one is a series of integers. I don't care much about the output format. Are there any specialized libraries for this, or should i use PIL? Thanks. ReportLab graphics

Re: Binary, Hex, and Decimal string conversions

2007-08-13 Thread Robert Dailey
Just curious Dick, why are you making your own to_base method? Doesn't the source I provided in my earlier email give you all that you need? I was hoping my source might be useful to a few people, even though it's pretty trivial code. On 8/12/07, Dick Moores [EMAIL PROTECTED] wrote: At 07:04 PM

Re: Database intensive application

2007-08-13 Thread Erik Jones
On Aug 12, 2007, at 7:44 AM, Viewer T. wrote: and Yes, Python has awesome database support and can satisfy almost all database needs. Wow. Nobody ever told me Python was *that* kind of language :) Erik Jones Software Developer | Emma® [EMAIL PROTECTED] 800.595.4401 or 615.292.5888

Re: Something in the function tutorial confused me.

2007-08-13 Thread Alex Martelli
Neil Cerutti [EMAIL PROTECTED] wrote: ... Then we get into unpacking assignments and augmented assignments, but I don't really want to write two more pages worth of summary...;-). Thanks very much for taking the time to help clear up my erroneous model of assignment in Python. I'd

Help with optimisation

2007-08-13 Thread special_dragonfly
Hello, I know this might be a little cheeky, and if it is, please say, but I need a little hand optimising some code. For the simple reason that this is 'company' code and I have no idea what I'm allowed to release and not as the case may be I've changed anything that could give an indication

Re: Car Air Conditioners

2007-08-13 Thread codey45
On Aug 13, 1:18 am, Lepi Duja [EMAIL PROTECTED] wrote: All the informations about car air conditioners can be found on this website... http://car-air-conditioning.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Dictionary viewer and editor

2007-08-13 Thread Ariel Balter
http://mail.python.org/pipermail/python-list/2001-August/100288.html Did you ever finish writing this? -- 00 Ariel Balter Swain Hall West 025 Department of Physics Indiana University, Bloomington 737 E Third Street, 47404 [EMAIL PROTECTED] Office: (812) 855-2441 Home: (812) 332-2721

Re: Adventure-Engines in Python

2007-08-13 Thread Wildemar Wildenburger
Wildemar Wildenburger wrote: I've set out to make an adventure game and now I'm trying to find a set of python-modules to help me do that. I know of the usual non-python suspects (AGAST, AGS, Wintermute, ...) and while I they are really good, I'd like one that is cross platform. OK,

Re: Help with optimisation

2007-08-13 Thread Alex Martelli
special_dragonfly [EMAIL PROTECTED] wrote: ... dom=xml.dom.minidom.parseString(text_buffer) If you need to optimize code that parses XML, use ElementTree (some other parsers are also fast, but minidom ISN'T). Alex -- http://mail.python.org/mailman/listinfo/python-list

Re: Mixing Python and C threads

2007-08-13 Thread Stéphane Larouche
Aahz aahz at pythoncraft.com writes: In article mailman.430.1183825935.22759.python-list at python.org, =?utf-8?b?U3TDqXBoYW5l?= Larouche stephane.larouche at polymtl.ca wrote: Aahz aahz at pythoncraft.com writes: Can you reproduce your problem with stub code that only creates threads?

Re: strftime in python 2.2

2007-08-13 Thread Martin Blume
Flyzoneschrieb I'm trying to make work this code in python 2.2.3: check=datetime.datetime.today().strftime(%H%M) but datetime is not supported in that version but just in the later. I can't upgrade python, too many dependencies in a critical system. How can i convert that string to

Re: Fatest standard way to sum bytes (and their squares)?

2007-08-13 Thread Alexander Schmolck
Erik Max Francis [EMAIL PROTECTED] writes: Alexander Schmolck wrote: Is this any faster? ordSum, orsSumSq = (lambda c:c.real,c.imag)(sum(complex(ord(x),ord(x)1) for x in data)) That's pretty clever, but I neglected to mention that I need to accumulate the sums as ints/longs to avoid

Re: Dictionary viewer and editor

2007-08-13 Thread Paddy
On Aug 13, 7:09 pm, Ariel Balter [EMAIL PROTECTED] wrote: http://mail.python.org/pipermail/python-list/2001-August/100288.html Did you ever finish writing this? -- 00 Ariel Balter Swain Hall West 025 Department of Physics Indiana University, Bloomington 737 E Third Street,

Re: Drawing a graph

2007-08-13 Thread markacy
On 12 Sie, 21:09, Ghirai [EMAIL PROTECTED] wrote: Hello list, I need to draw a graph, 2 axes, 2D, nothing fancy. One of the axes is time, the other one is a series of integers. I don't care much about the output format. Are there any specialized libraries for this, or should i use PIL?

►ENJOY free satellite tv on your pc◄

2007-08-13 Thread Lisa Jones
The New Way To Enjoy Satellite TV on your PC! • Watch all your favorite shows on your Computer from anywhere in the World! • Save 1000's of $$$ over many years on cable and satellite bills • Plus Get FREE Unlimited Downloads Movies, MP3s Music, etc !!! • INSTANT DOWNLOAD For More Details:

Re: ANN: Compyler 0.1

2007-08-13 Thread olsongt
Grant Olson wrote: Compyler is a pre-alpha x86 native code compiler. In what ways is this similar or different to Shed Skin?http://mark.dufour.googlepages.com/ --Irmen I've never actually downloaded shedskin, but my understanding is that it: + does type inference for speed, but means

Re: ANN: Compyler 0.1

2007-08-13 Thread olsongt
+ has the exact same semantics as compiler code. I was more This should read exact same semantics as python code -- http://mail.python.org/mailman/listinfo/python-list

Re: Eclipse/PyDev question

2007-08-13 Thread Fabio Zadrozny
On 8/13/07, king kikapu [EMAIL PROTECTED] wrote: Ah, i forgot another one: as any project evolves, you need to organize it in directories. So, i have a project named Dev and Eclipse has provided me (in Navigator) with Dev and Src. Inside Src i put my .py files. Let's say that i want to

Re: Help with optimisation

2007-08-13 Thread Bruno Desthuilliers
special_dragonfly a écrit : Hello, (snip) The function doesn't return anything, but it's called often enough and depending on the optimisation I'll be able to use the same style in other areas of the program. previous code: def CreatePerson(text_buffer):

Re: is there anybody using __del__ correctly??

2007-08-13 Thread Steven Bethard
Michele Simionato wrote: SPECIALMETHODS = ['__%s__' % name for name in ''' abs add and call concat contains delitem delslice div eq floordiv ge getitem getslice gt iadd iand iconcat idiv ifloordiv ilshift imod imul index inv invert ior ipow irepeat irshift isub iter itruediv ixor le len

Re: Drawing a graph

2007-08-13 Thread Kurt Smith
On 8/12/07, Ghirai [EMAIL PROTECTED] wrote: Hello list, I need to draw a graph, 2 axes, 2D, nothing fancy. One of the axes is time, the other one is a series of integers. I don't care much about the output format. Are there any specialized libraries for this, or should i use PIL? Thanks.

Re: Configuring apache to execute python scripts using mod_python handler

2007-08-13 Thread 7stud
On Aug 13, 5:16 am, joe jacob [EMAIL PROTECTED] wrote: I configured apache to execute python scripts using mod_python handler. I followed below mentioned steps to configure apache. 1. In http.conf I added Directory D:/softwares/Apache2.2/htdocs AddHandler mod_python .py PythonHandler

Re: which IDE is highly recommended in Windows OS

2007-08-13 Thread James Matthews
www.wingide.com On 8/13/07, Ge Chunyuan [EMAIL PROTECTED] wrote: On Aug 13, 10:24 am, _spitFIRE [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ge Chunyuan wrote: hi Group: I am a new comer for Python, I wonder which IDE is recommended in Windows OS.

Assignments and Variable Substitution

2007-08-13 Thread brad
I'd like to do something like this: var = '123' %s = [], %var So that, in the end, var is '123' and an empty list is named '123' as well. The list assignments are created during a loop. Thanks, Brad -- http://mail.python.org/mailman/listinfo/python-list

Re: Assignments and Variable Substitution

2007-08-13 Thread srage
On Aug 13, 1:00 pm, brad [EMAIL PROTECTED] wrote: I'd like to do something like this: var = '123' %s = [], %var So that, in the end, var is '123' and an empty list is named '123' as well. The list assignments are created during a loop. Thanks, Brad You probably want to use a dictionary

Re: is there anybody using __del__ correctly??

2007-08-13 Thread Michele Simionato
On Aug 13, 6:26 pm, Steven Bethard [EMAIL PROTECTED] wrote: I doubt I'd want to slow down all attribute access on my class just to do some cleanup, when it's probably better to just tell everyone to use a ``with`` block. ;-) Amen. The point is that finding an easy upgrade path for current code

C++ Binding with Threads

2007-08-13 Thread Pablo Yabo
Hello, I want to embed Python in an application and use an API of the application from Python. The application uses a library that creates several threads and I the users of the application will write Python scripts handling this events. The problem is that I having problems with threads. I saw

C++ Binding with Threads

2007-08-13 Thread Pablo Yabo
Hello, I want to embed Python in an application and use an API of the application from Python. The application uses a library that creates several threads and I the users of the application will write Python scripts handling this events. The problem is that I having problems with threads. I saw

Python in Chinese

2007-08-13 Thread Paul McGuire
Back in May, there was quite an extensive discussion of whether or not Python should support Unicode identifiers (with the final result being that this would be supported in Python 3). In my periodic googling for pyparsing users, I stumbled upon Zhpy, a preprocessor that renders on the fly

Re: decorators - more than just syntactic sugar

2007-08-13 Thread Alexander Schmolck
Michele Simionato [EMAIL PROTECTED] writes: On Aug 11, 8:30 pm, Helmut Jarausch [EMAIL PROTECTED] wrote: Hi, are decorators more than just syntactic sugar in python 2.x and what about python 3k ? Well, I argued may times that syntactic sugar is important (all Turing complete languages

Re: Fatest standard way to sum bytes (and their squares)?

2007-08-13 Thread Alexander Schmolck
Alexander Schmolck [EMAIL PROTECTED] writes: Erik Max Francis [EMAIL PROTECTED] writes: Alexander Schmolck wrote: Is this any faster? ordSum, orsSumSq = (lambda c:c.real,c.imag)(sum(complex(ord(x),ord(x)1) for x in data)) That's pretty clever, but I neglected to mention that I need to

Re: Python in Chinese

2007-08-13 Thread Martin v. Löwis
Paul McGuire schrieb: Back in May, there was quite an extensive discussion of whether or not Python should support Unicode identifiers (with the final result being that this would be supported in Python 3). In my periodic googling for pyparsing users, I stumbled upon Zhpy, a preprocessor that

  1   2   >