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 -- http://mail.python.or

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

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

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 Ch

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 -- http://mail.python.org/mailman/listinfo/py

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

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 somethi

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 ha

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

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 pyAdv

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

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 -- http://mail.python.org/m

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

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 t

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

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?

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 fi

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 >

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

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 perc

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:

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 http://docs.python.org/dev/li

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 AddHandler mod_python .py PythonHandler mptest PythonDebug On 2. Then I added the line "LoadModule python_module modules/ mod_python.s

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 wa

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

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

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 a

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 und

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

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 Eclip

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=[ch

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

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 Pyth

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

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 t

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 i

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

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. -- http://mail.python.org/m

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 t

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 interpretati

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 y

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 d

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 htt

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 (http://jpype.sourceforge.

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 gra

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

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 61

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 Pytho

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 of

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? -- <>0<>0<>0<>0<>0<>0<>0<>0<>0<>0 Ariel Balter Swain Hall West 025 Department of Physics Indiana University, Bloomington 737 E Third Street, 47404 [EMAIL PROTECTED] Office: (812) 855-2441 H

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 pythoncraft.com> writes: > > In article python.org>, > =?utf-8?b?U3TDqXBoYW5l?= Larouche polymtl.ca> wrote: > >Aahz pythoncraft.com> writes: > >> > >> Can you reproduce your problem with stub code that only creates threads? > >> If yes, that indicates that you're messing with a thread s

Re: strftime in python 2.2

2007-08-13 Thread Martin Blume
"Flyzone"schrieb > 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 st

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

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? > > -- > <>0<>0<>0<>0<>0<>0<>0<>0<>0<>0 > > Ariel Balter > > Swain Hall West 025 > Department of Physics > Indiana University, Blo

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

►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: http://

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

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

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): > dom=xml.dom.minidom.p

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 l

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?

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 > > > AddHandler mod_python .py > PythonHandler mptest > PythonDebug On >

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

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

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

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 t

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 t

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 Chinese

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

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 neglecte

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 t

Re: negative polar axis

2007-08-13 Thread Erik Max Francis
Steve Holden wrote: > About the best interpretation I can think of is to add 180 degrees to > the angle and reverse the sign of the magnitude, but this would be a > hack. Where are those coordinates coming from? Well, sometimes in polar coordinates (r, theta), r is allowed to be negative. The

Re: Colored text

2007-08-13 Thread pyscottishguy
On Aug 13, 10:37 am, Neil Cerutti <[EMAIL PROTECTED]> wrote: > 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

Re: Adventure-Engines in Python

2007-08-13 Thread Paul Boddie
Wildemar Wildenburger wrote: > > OK, thanks. I should, of course, have been more specific. By saying > "adventure" I mean the graphical variant (say, Monkey Island or Broken > Sword), preferably but not necessarily in 2D. Perhaps you could get a start from this game: http://www.pygame.org/project

Re: Process Control Help

2007-08-13 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, I mused: >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 iss

Re: Module imports during object instantiation

2007-08-13 Thread Ritesh Raj Sarraf
Bruno Desthuilliers wrote: > Ritesh Raj Sarraf a écrit : >> >> if lock is None or lock != 1: >> self.DispLock = False >> else: >> self.DispLock = threading.Lock() >> self.lock = True >> >> if os.name == 'posix': >>self.platf

Re: Module imports during object instantiation

2007-08-13 Thread Ritesh Raj Sarraf
Bruno Desthuilliers wrote: > Ritesh Raj Sarraf a écrit : > > The initializer will be called *each time* you instanciate the class. > And nothing prevents client code from calling it explicitelly as many > times as it wants - ok, this would be rather strange, but this is still > technically possi

Re: Module imports during object instantiation

2007-08-13 Thread Ritesh Raj Sarraf
Steve Holden wrote: > Ritesh Raj Sarraf wrote: >> class Log: >> >> def __init__(self, verbose, lock = None): >> >> if verbose is True: >> self.VERBOSE = True >> else: self.VERBOSE = False >> > Better: > > self.VERBOSE = verbose > > or, if you suspect verbose mi

Re: programmatically define a new variable on the fly

2007-08-13 Thread osiris43
> Anyway, I don´t see the point in this. Why don´t you just use > something like X['g'] instead? While it's not what the original author is intending, it seems to me that dynamically adding fields could be useful when something like a database schema changed frequently. For example, a row in a da

Re: Dictionary viewer and editor

2007-08-13 Thread Thomas Jollans
On Monday 13 August 2007, Ariel Balter wrote: > http://mail.python.org/pipermail/python-list/2001-August/100288.html > > Did you ever finish writing this? YAML (without flow style) could qualify as "tree format". example: yaml.dump ( {"alpha": 1, "beta": 2, "otherstuff": {"bug": None, "cool": T

Re: Drawing a graph

2007-08-13 Thread Ghirai
I ended up using matplotlib (http://matplotlib.sourceforge.net). Thanks for the input everyone. -- Regards, Ghirai. -- http://mail.python.org/mailman/listinfo/python-list

Re: python 2.5 bug

2007-08-13 Thread Ricardo Aráoz
Dustan wrote: > On Aug 11, 12:32 am, Thorsten Kampe <[EMAIL PROTECTED]> wrote: >> 4. don't do something you don't fully understand (in this case >>installing Python 2.5 and uninstalling Python 2.4) > > If we were all limited by that rule, none of us would never have used > a computer in the fi

Re: Finding gurus (was Re: Something in the function tutorial confused me.)

2007-08-13 Thread Ricardo Aráoz
Aahz wrote: > In article <[EMAIL PROTECTED]>, > Alex Martelli <[EMAIL PROTECTED]> wrote: >> Because of this, a Google search for >> >> " " python >> >> may sometimes help; when you get 116,000 hits, as for "Steve Holden" >> python, that may be a reasonable indication that the poster is one of >> t

Re: Assignments and Variable Substitution

2007-08-13 Thread Evan Klitzke
On 8/13/07, 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. You can't assign a variable whose name is 123, but you

Re: The Future of Python Threading

2007-08-13 Thread Seun Osewa
On Aug 11, 12:59 pm, Kay Schluehr <[EMAIL PROTECTED]> wrote: > Have you checked out the processing [1] package? I've currently the > impression that people want to change the whole language before they > checkout a new package. It would be nice to read a review. > > [1]http://cheeseshop.python.org/

  1   2   >