Re: how to move cursor in Interactive Interpreter

2007-08-13 Thread Peter Otten
[EMAIL PROTECTED] wrote: > i have a question. > when i run Interactive Interpreter in linux command promt,how can i > move the cursor. > for example,when i enter a string,i often enter the quotation mark "" > first,and the move the cursor inside the mark to enter the string,in > windows,it is ok

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

how to move cursor in Interactive Interpreter

2007-08-13 Thread yan . python
i have a question. when i run Interactive Interpreter in linux command promt,how can i move the cursor. for example,when i enter a string,i often enter the quotation mark "" first,and the move the cursor inside the mark to enter the string,in windows,it is ok.but when i do that in linux,pressing t

IDLE path browser not recognizing my PYTHONPATH

2007-08-13 Thread Brisingman
Hi, I set PYTHONPATH to /home/me/bin in bash.bashrc, however the IDLE path browser is not recognizing this. Not sure why. Grateful for any insight. Best -- http://mail.python.org/mailman/listinfo/python-list

Re: Binary, Hex, and Decimal string conversions

2007-08-13 Thread Dick Moores
At 07:35 AM 8/13/2007, Robert Dailey wrote: 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. I didn't roll my

Re: decorators - more than just syntactic sugar

2007-08-13 Thread Michele Simionato
On Aug 13, 7:46 pm, Alexander Schmolck <[EMAIL PROTECTED]> wrote: > Michele Simionato <[EMAIL PROTECTED]> writes: > > Well, I argued may times that syntactic sugar is important (all Turing > > complete languages differs by syntactic sugar only) > > Although I agree that "mere" syntactic sugar matte

Memory leak when creating lots of object

2007-08-13 Thread Godzilla
Hello, I have a program that create and pop an object off a queue, but it is experiencing some memory leakage. I have been unable to detect where the memory leakage occur. The strange thing is when i replace the object creation with a plain integer/string, the leak goes away... Here's the code I u

Re: Car Air Conditioners

2007-08-13 Thread Neil Cerutti
On 2007-08-14, greg <[EMAIL PROTECTED]> wrote: > Robert Coe wrote: >> It's hard to imagine anything more OT in this newsgroup > > It's on topic as long as the air conditioner > can be programmed in Python. With the amount > of electronics being used in cars these days, > that's not entirely beyond

Re: Icons for GUI development

2007-08-13 Thread Yu-Xi Lim
Benjamin wrote: > I'm developing a mail client. Since GUI are usually improved with some > icons, I'm looking for some. Because I'm not a very gifted artist I'm > searching for a library of GPL or public domain icons. Any suggestions? > I frequently use the Crystal icon set. http://www.everaldo.c

Re: Python script for mobile platforms -- suggested?

2007-08-13 Thread Jay Loden
Robert Dailey wrote: > I'm currently developing a game for a cell phone. The game has a GUI > system that's currently using XML to define the individual menus. > Basically this means that for every single menu the user goes to, it > loads and parses an XML file. Would using Python S

Re: Configuring apache to execute python scripts using mod_python handler

2007-08-13 Thread joe jacob
On Aug 13, 9:44 pm, 7stud <[EMAIL PROTECTED]> wrote: > 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 > > > > > Ad

Re: wxPython before MainLoop

2007-08-13 Thread [david]
Steve, it wasn't me that raised the comparison with MFC. If you don't think that's a helpful comparison, why not reply to that post instead? I don't mind Björn's suggestion that I don't know what I'm talking about, because I started it by telling him he was wrong. But you don't have that excuse.

Duke's Bank Equivalent?

2007-08-13 Thread kcfmartinez
Hi, The J2EE tutorial provides developers with "The Duke's Bank", which can be used for implementing a banking application (customer's make deposits, withdrawls, earn interest, etc.). Does anyone know of an equivalent in Python? Thanks in advance. -- http://mail.python.org/mailman/listin

Re: Car Air Conditioners

2007-08-13 Thread greg
Robert Coe wrote: > It's hard to imagine anything more OT in this newsgroup It's on topic as long as the air conditioner can be programmed in Python. With the amount of electronics being used in cars these days, that's not entirely beyond the realms of possibility... -- Greg -- http://mail.pytho

Re: output object fields into a file

2007-08-13 Thread Zentrader
On Aug 13, 6:17 pm, Alex <[EMAIL PROTECTED]> wrote: > Hello, I am rather new to python. Maybe my thinking is in the > paradigm of C++, that makes me hard to make sense of some python > scripts (interacting with C# code) written by my colleague. I am > thinking of outputting all objects and their

pyserial win32 port numbering

2007-08-13 Thread [david]
http://pyserial.sourceforge.net/ "port numbering starts at zero, no need to know the port name in the user program" But the implementation in SerialWin32 is just (Portnum +1) So there is no 'start' to the port numbering at all: there is no assurance that you will have a pySerial serial

Icons for GUI development

2007-08-13 Thread Benjamin
I'm developing a mail client. Since GUI are usually improved with some icons, I'm looking for some. Because I'm not a very gifted artist I'm searching for a library of GPL or public domain icons. Any suggestions? -- http://mail.python.org/mailman/listinfo/python-list

Re: Car Air Conditioners

2007-08-13 Thread Robert Coe
On Mon, 13 Aug 2007 08:18:40 -, Lepi Duja <[EMAIL PROTECTED]> wrote: : All the informations about car air conditioners can be found on this : website... : : http://car-air-conditioning.blogspot.com/ It's hard to imagine anything more OT in this newsgroup, but FWIW my 2003 Kia has the most pow

Re: check if var is dict

2007-08-13 Thread simohayha
check String is def isStringLike(anobj): try: anobj + '' except: return False else: return True -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython before MainLoop

2007-08-13 Thread Steve Holden
[david] wrote: > Well yes, I have tried this app with native windows, > and I know how to do it. > > But if all wxPython can offer is a poor imitation > of MFC, I'm better off using MFC aren't I? > > And too all those people who wrote back to insist > that users MUST explicitly build a multi-thre

output object fields into a file

2007-08-13 Thread Alex
Hello, I am rather new to python. Maybe my thinking is in the paradigm of C++, that makes me hard to make sense of some python scripts (interacting with C# code) written by my colleague. I am thinking of outputting all objects and their fields of each script into a file. The tricky part is I am

Re: Assignments and Variable Substitution

2007-08-13 Thread Steve Holden
Evan Klitzke wrote: > 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 va

Re: chmod g+ Equivalent

2007-08-13 Thread Steve Holden
milan_sanremo wrote: > I've read the documentation on os.chmod() and can implement all the > standard commands, but what is the syntax for the equivalent of chmod g > + to set the group id? > I assume when you say "to set the group id" you actually mean "to assert the setgid bit"? I further pres

Re: wxPython before MainLoop

2007-08-13 Thread [david]
Well yes, I have tried this app with native windows, and I know how to do it. But if all wxPython can offer is a poor imitation of MFC, I'm better off using MFC aren't I? And too all those people who wrote back to insist that users MUST explicitly build a multi-threaded framework for wxPython: I

Re: import * is not allowed ??

2007-08-13 Thread Miki
Hello Stef, > can anyone explain a little bit more what this error message means: > > import * is not allowed in function 'JAL_MAIN_RUN' because it contains > a nested function with free variables (JAL_simulation_file.py, line 22) > > what are "free variables" ? http://mitpress.mit.edu/sicp/full

Re: Python script for mobile platforms -- suggested?

2007-08-13 Thread Robert Dailey
*bump* On 8/12/07, Robert Dailey <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm currently developing a game for a cell phone. The game has a GUI > system that's currently using XML to define the individual menus. Basically > this means that for every single menu the user goes to, it loads and parses >

AttributeError: 'module' object has no attribute 'HTTPSHandler'

2007-08-13 Thread Matt McCredie
> > I am using Fedora Core 4 linux. Where should I look for _ssl.pyd ? I > am trying to build and use Python-2.5.1 > I don't have access to that type of system. I do know that you need OpenSSL to use ssl. It might be as simple as just finding and installing OpenSSL for fedora. You can also find t

import * is not allowed ??

2007-08-13 Thread stef mientki
hello, can anyone explain a little bit more what this error message means: import * is not allowed in function 'JAL_MAIN_RUN' because it contains a nested function with free variables (JAL_simulation_file.py, line 22) what are "free variables" ? thanks, Stef Mientki -- http://mail.python.o

Re: chmod g+ Equivalent

2007-08-13 Thread Lawrence Oluyede
milan_sanremo <[EMAIL PROTECTED]> wrote: > I understand that for setting the standard rwx permissions, but how do > these affect the ability to change the setgid bit? Under Solaris you > cannot do it from the command line in absolute mode, so perhaps it is > not possible in python > > I'm trying

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

2007-08-13 Thread Steve Holden
[EMAIL PROTECTED] wrote: > On Aug 13, 2:22 pm, Ricardo Aráoz <[EMAIL PROTECTED]> wrote: >> 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 f

Re: (sort of) deterministic timing in Python

2007-08-13 Thread [EMAIL PROTECTED]
On Aug 13, 5:16 pm, [EMAIL PROTECTED] (John Fisher) wrote: > I am working on a framework for data acquisition in Python 2.5, am > trying to get a structure going more like this: > > mark start time > start event > event finishes > count time until next interval > start second event... > > r

Re: (sort of) deterministic timing in Python

2007-08-13 Thread Matimus
> Do you see the difference? I get a true fixed interval from the first, > including the time to accomplish the event task(s). In the second case, > the sleep just gets tacked on at the end of the events, not very > deterministic (timing-wise). Check out the sched (scheduler) module http://docs.p

Re: JPype - passing to Java main

2007-08-13 Thread Ian Clark
[EMAIL PROTECTED] wrote: > I am trying to get JPype to pass a String into a Java class main > function. Demonstration code below: > > =JAVA > package com; > > public class JPypeTest { > >public static void main(String args[]) { > System.out.println(args[0]);

Re: ANN: Compyler 0.1

2007-08-13 Thread Irmen de Jong
Thanks Grant for the very informative response. -irmen -- http://mail.python.org/mailman/listinfo/python-list

Problem with Thread.join()

2007-08-13 Thread Robert Dailey
Hi, I have a class that derives from threading.Thread. To signal the thread to exit its infinite loop, I set an Event. Once the thread checks Event.isSet() and it is true, it proceeds to break out of the loop and exit the function. In the main thread, right after calling Event.set(), I call Thread

Re: chmod g+ Equivalent

2007-08-13 Thread milan_sanremo
On Aug 13, 6:33 pm, [EMAIL PROTECTED] (Lawrence Oluyede) wrote: > milan_sanremo <[EMAIL PROTECTED]> wrote: > > I've read the documentation on os.chmod() and can implement all the > > standard commands, but what is the syntax for the equivalent of chmod g > > + to set the group id? > > chmod() [1] t

Re: chmod g+ Equivalent

2007-08-13 Thread milan_sanremo
On Aug 13, 6:42 pm, Bjoern Schliessmann wrote: > milan_sanremo wrote: > > I've read the documentation on os.chmod() and can implement all > > the standard commands, but what is the syntax for the equivalent > > of chmod g + to set the group id? > > Group ID is set using os.chown. > > Regards, > >

Re: wxPython - drawing without paint event

2007-08-13 Thread Bjoern Schliessmann
[EMAIL PROTECTED] wrote: > I guess I haven't looked up any wxPython tutorials. I typically > use a combination of the wxPython wiki, the demo and the WIA book > for my work. Me too (except the mailing list, occasionally), and it works quite well. Regards, Björn -- BOFH excuse #306: CPU-ang

Re: chmod g+ Equivalent

2007-08-13 Thread Bjoern Schliessmann
milan_sanremo wrote: > I've read the documentation on os.chmod() and can implement all > the standard commands, but what is the syntax for the equivalent > of chmod g + to set the group id? Group ID is set using os.chown. Regards, Björn -- BOFH excuse #190: Proprietary Information. -- htt

Re: chmod g+ Equivalent

2007-08-13 Thread Lawrence Oluyede
milan_sanremo <[EMAIL PROTECTED]> wrote: > I've read the documentation on os.chmod() and can implement all the > standard commands, but what is the syntax for the equivalent of chmod g > + to set the group id? chmod() [1] takes as the second parameter a bitwise or-ed combination of a series of val

(sort of) deterministic timing in Python

2007-08-13 Thread John Fisher
I am working on a framework for data acquisition in Python 2.5, am trying to get a structure going more like this: mark start time start event event finishes count time until next interval start second event… rather than this: start event event finishes sleep for interval start

chmod g+ Equivalent

2007-08-13 Thread milan_sanremo
I've read the documentation on os.chmod() and can implement all the standard commands, but what is the syntax for the equivalent of chmod g + to set the group id? -- http://mail.python.org/mailman/listinfo/python-list

JPype - passing to Java main

2007-08-13 Thread unlikeablePorpoise
I am trying to get JPype to pass a String into a Java class main function. Demonstration code below: =JAVA package com; public class JPypeTest { public static void main(String args[]) { System.out.println(args[0]); } public void printArgument(String a

Re: negative polar axis

2007-08-13 Thread John K Masters
On 10:58 Mon 13 Aug , Erik Max Francis wrote: > 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

Re: Getting started with JPype

2007-08-13 Thread Ian Clark
Disclaimer: I have never used (or even heard of) JPype before... porter wrote: (snip) > > "Package myclass.HelloWorld is not Callable" > (snip) > > from jpype import * > > startJVM(getDefaultJVMPath(), "-ea", "-Djava.class.path=D:/tmp/jpype- > reli/test/dist/test.jar'' ) > > package = JPackag

Re: wxPython - drawing without paint event

2007-08-13 Thread kyosohma
On Aug 13, 3:15 pm, Bjoern Schliessmann wrote: > [EMAIL PROTECTED] wrote: > > While the book does have issues, it is better (in my opinion) than > > the only published Tkinter book, although both books are now > > outdated. > > Outdated to a certain limit. It's quite a bit more recent than those

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

2007-08-13 Thread kyosohma
On Aug 13, 2:22 pm, Ricardo Aráoz <[EMAIL PROTECTED]> wrote: > 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" > >> p

Re: wxPython - drawing without paint event

2007-08-13 Thread Bjoern Schliessmann
[EMAIL PROTECTED] wrote: > While the book does have issues, it is better (in my opinion) than > the only published Tkinter book, although both books are now > outdated. Outdated to a certain limit. It's quite a bit more recent than those many tutorials around still today using "from wxpython.w

Re: decorators - more than just syntactic sugar

2007-08-13 Thread Bjoern Schliessmann
BJörn Lindqvist wrote: > unpedagogically not separated from ordinary functions. Decorators _are_ ordinary functions. Remember the "syntactic sugar" in this thread? Regards, Björn -- BOFH excuse #338: old inkjet cartridges emanate barium-based fumes -- http://mail.python.org/mailman/listin

Re: python + XUL

2007-08-13 Thread Bjoern Schliessmann
Madhu Alagu wrote: > Has anyone had any success in getting XUL to work with python? Yes. http://www.google.de/search?q=xul+python http://en.wikipedia.org/wiki/Search_engine Björn -- BOFH excuse #74: You're out of memory -- http://mail.python.org/mailman/listinfo/python-list

Re: Dictionary viewer and editor

2007-08-13 Thread Paddy
On Aug 13, 8:10 pm, Thomas Jollans <[EMAIL PROTECTED]> wrote: > 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: > >

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/

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

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

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

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

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

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

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

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

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

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

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

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

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

  1   2   >