Re: Python license (2.3)

2005-04-12 Thread Robert Kern
Antoon Pardon wrote: Op 2005-04-12, Robert Kern schreef <[EMAIL PROTECTED]>: Antoon Pardon wrote: What licence can I use? Somewhere they say you can combine python code with GPL code. Does that mean that the resulting code has to have both the GPL license as the PSF license, as both seem to want t

win32 readline maintenance (was Re: IPython - problem with...

2005-04-12 Thread Ville Vainio
> "Fernando" == Fernando Perez <[EMAIL PROTECTED]> writes: Fernando> Bummer. I wonder, if the changes are minor and easy, Fernando> perhaps you (or someone else) could offer Gary to take Fernando> over maintenance of readline/win32? It sounds Someone on the ipython mailing list

Re: Doubt regarding sorting of a list specific field

2005-04-12 Thread vincent wehren
"praba kar" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] | Dear All, | |I have doubt regarding sorting. I have a list | that list have another list (eg) | | list = [[1234,'name1'],[2234,'name2'],[0432,'name3']] -> Be careful, 0432 is octal notation for 282. | | I want to

Re: Python license (2.3)

2005-04-12 Thread Antoon Pardon
Op 2005-04-12, Robert Kern schreef <[EMAIL PROTECTED]>: > Antoon Pardon wrote: > >> What licence can I use? Somewhere they say you can combine python >> code with GPL code. Does that mean that the resulting code has >> to have both the GPL license as the PSF license, as both seem >> to want that de

Re: Global Variables

2005-04-12 Thread George Sakkis
Use 'global': def change_filename(): global filename filename=raw_input() def change_path(): global path path=raw_input() Even better, don't use globals at all; in 99% if the time, there are better ways to achieve the same effect. George -- http://mail.python.org/mailman/listinf

Doubt regarding sorting of a list specific field

2005-04-12 Thread praba kar
Dear All, I have doubt regarding sorting. I have a list that list have another list (eg) list = [[1234,'name1'],[2234,'name2'],[0432,'name3']] I want to sort only numeric value having array field. How I need to do for that. with regards Prabahar __

Read the windows event log

2005-04-12 Thread Austin
My codes are below: *** import win32evtlog def check_records(records): for i in range(0,len(records)): print records[i].SourceName h = win32evtlog.OpenEventLog(None,"System") flags = win32evtlog.EVENTLOG_BACKWARD_READ|win32evtlog.EVENTLOG_SEQUENTIAL_R

Global Variables

2005-04-12 Thread Bob Then
If I have a module File which has some fucontions but I need globals filename and path how can I set them so I can change them because I tryed. filename="log.txt" path="/home/Bob/" def change_filename(): filename=raw_input() def change_path(): path=raw_input() they don't change and witho

Re: sort of a beginner question about globals

2005-04-12 Thread Steven Bethard
fred.dixon wrote: i have read the book and searched the group too -- im not gettin it. i want to read a global (OPTIONS) from file1 from a class method (func1) in file2 i want to understand how this works. -- #f

Re: singleton objects with decorators

2005-04-12 Thread Steven Bethard
James Stroud wrote: Other than using modules, I thought @classmethod took care of this kind of need: class SingleThing: some_values = {"fanciness":0} def __init__(self): raise Exception, "not enough preceding stars to be fancy enough" @classmethod def why_so_fancy(self): print "wh

RE: os.path.walk

2005-04-12 Thread Tony Meyer
> If I have os.path.walk(name, processDirectory, None) and > processDirectory needs three arguments how can I ass them > because walk only takes 3? Assuming that processDirectory is a function of yours that returns a bool, then you'd do something like: os.path.walk(name, processDirectory(a,b,

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-12 Thread Raymond Hettinger
[Robin Becker] > People have mentioned the older v6 build scripts/tools still work. Last time I > tried they seemed a bit out of date. I routinely use the current CVS to build Py2.4 and Py2.5 with MSC6. It is effortless and I've had no problems. Raymond Hettinger -- http://mail.python.org/mai

os.path.walk

2005-04-12 Thread Micheal
If I have os.path.walk(name, processDirectory, None) and processDirectory needs three arguments how can I ass them because walk only takes 3? -- http://mail.python.org/mailman/listinfo/python-list

Re: Why does StringIO discard its initial value?

2005-04-12 Thread Raymond Hettinger
[David Fraser] > Others may find this helpful ; it's a pure Python wrapper for cStringIO > that makes it behave like StringIO in not having initialized objects > readonly. Would it be an idea to extend cStringIO like this in the > standard library? It shouldn't lose performance if used like a stand

Re: permission

2005-04-12 Thread Skip Montanaro
James> Is it possible to check if you have permission to access and or James> change a directory or file? Yes, but it's generally much easier to try, then recover from any errors: try: f = open(somefile, "a") except IOError, msg: print "can't open", somefile, "for

Re: templating system

2005-04-12 Thread Erik Max Francis
Ksenia Marasanova wrote: Thanks! I've read "Known issues and caveats" on the website: """ EmPy was primarily intended for static processing of documents, rather than dynamic use, and hence speed of processing was not the primary consideration in its design. """ Have you noticed any speed problem

permission

2005-04-12 Thread James
Is it possible to check if you have permission to access and or change a directory or file? -- http://mail.python.org/mailman/listinfo/python-list

Re: Web Application Client Module

2005-04-12 Thread Chung Leong
"Raffi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi All, > > I hope I'm posting this question to the correct newsgroups. We have a > web based database application that's accessed using IE. The > application opens a popup window to run in. With all the popup blockers > and com

Re: Missing Module when calling 'Import' _omnipy

2005-04-12 Thread Stefan Seefeld
[EMAIL PROTECTED] wrote: I found the fike _omnipy.pyd is that what you mean? yep. Here is my Lib Path: [...] As a first step you may consider adding the directory containing '_omnipy.pyd' to your PYTHONPATH variable. Second, you may read any documentation you can find at http://omniorb.sourceforge.

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-12 Thread Steve Holden
Jimmy Retzlaff wrote: Terry Reedy wrote: I guess I don't understand some people's determination to not have users install fully useable Python on their Windows machines. Doing so seems no different to me than having to install (or upgrade) Shockwave, or Apple's Quicksomething for Windows (not use

Re: [perl-python] Python documentation moronicities (continued)

2005-04-12 Thread Steve Holden
Xah Lee wrote: [mountains of irrelevant drivel which normal people would boil down to "I don't understand the doicumentation]. Even then, I'd still be on the side of the documentation. The answer to the questions are resounding yeses, you fucking asses. paypal me a hundred dollars and i'll rewri

sort of a beginner question about globals

2005-04-12 Thread fred.dixon
i have read the book and searched the group too -- im not gettin it. i want to read a global (OPTIONS) from file1 from a class method (func1) in file2 i want to understand how this works. -- #file1.py import f

Re: Python documentation moronicities (continued)

2005-04-12 Thread peufeu
I sympathize with you and also think there should be an "add comment" in the Python documentation website, so that users could post their code snippets in the relevant places. I found the Howto through Google. Somehow I didn't see that link in the documentation. And please do not make any as

Re: singleton objects with decorators

2005-04-12 Thread James Stroud
Other than using modules, I thought @classmethod took care of this kind of need: class SingleThing: some_values = {"fanciness":0} def __init__(self): raise Exception, "not enough preceding stars to be fancy enough" @classmethod def why_so_fancy(self): print "why make every thing s

Re: problem with the logic of read files.. Thanks to all for your help

2005-04-12 Thread m_tach
Everything is fine now, thanks to all for your time -- http://mail.python.org/mailman/listinfo/python-list

RE: Python 2.4 killing commercial Windows Python development ?

2005-04-12 Thread Tony Meyer
> installs it where? the MS docs seem to indicate that they > want you to install it in the program directory, rather than > in a "shared" location: > > http://support.microsoft.com/default.aspx?scid=kb;en-us;326922 From

RE: Python 2.4 killing commercial Windows Python development ?

2005-04-12 Thread Tony Meyer
[Nemesis] > OK, so the python installer _does_ ship this dll. So also the > win installer has the redistribution problem, or does they > pay for redistributing msvcr71.dll? If you have a legal copy of one of the commercial MS compilers that includes msvcr71.dll, you get the right to redistribut

Re: Equivalent string.find method for a list of strings

2005-04-12 Thread jeremit0
jeremit0 wrote: I have read a text file using the command lines = myfile.readlines() and now I want to seach those lines for a particular string. I was hoping there was a way to "find" that string in a similar way as searching simply a simple string. I want to do something like lines.find.('my

RE: [Python-Dev] args attribute of Exception objects

2005-04-12 Thread Raymond Hettinger
[Sébastien de Menten] > 2) Could this be changed to .args more in line with: > a) first example: e.args = ('foo', "NameError: name 'foo' is not > defined") > b) second example: e.args = (4, 'foo', "'int' object has no attribute > 'foo'",) > the message of the string can even be retrieved

Re: Cannot import mod_python modules

2005-04-12 Thread Steve Holden
Mark wrote: Thanks for the reply Steve, I have re-installed mod_python and re-configured Apache and it works now. I'm not exactly sure what I done differently, but oh well at least it works now :) Regards, Mark. Right, no point wasting much sleep when mod_python awaits! regards Steve -- Steve Hold

Re: [perl-python] Python documentation moronicities (continued)

2005-04-12 Thread axel
In comp.lang.perl.misc Xah Lee <[EMAIL PROTECTED]> wrote: > The answer to the questions are resounding yeses, you fucking asses. > paypal me a hundred dollars and i'll rewrite the whole re doc in a few > hours. > Fuck you the standard IT morons. Excuse me for i didn't have time to > write a mor

Re: singleton objects with decorators

2005-04-12 Thread Bengt Richter
On 12 Apr 2005 08:00:42 -0700, "Michele Simionato" <[EMAIL PROTECTED]> wrote: >I did not put memoize on __new__. I put it on the metaclass __call__. >Here is my memoize: > > def memoize(func): > memoize_dic = {} > def wrapped_func(*args): > if args in memoize_dic: > ret

Re: Looking for a very specific type of embedded GUI kit

2005-04-12 Thread Dan Sommers
On 12 Apr 2005 16:38:05 -0500, Sizer <[EMAIL PROTECTED]> wrote: > So the question is: what non-X gui toolkit can we use that has Python > bindings and will let us use a custom display driver at the lowest > level? ... Curses? There's a HOWTO at . HTH, Dan

Image Module

2005-04-12 Thread Nicholas S. Graham
I want to convert a field of 4:2:2 digital video data into a viewable format (.jpg or something) using the Image module. Any suggestions?? NG -- http://mail.python.org/mailman/listinfo/python-list

Re: Python documentation moronicities (continued)

2005-04-12 Thread runes
Thank you for being so friendly! I found the Howto through Google. Somehow I didn't see that link in the documentation. And please do not make any assumptions about my reading of manuals. -- http://mail.python.org/mailman/listinfo/python-list

How to debug SOAP using TCpMon and Python?

2005-04-12 Thread Jim
Hello, I am trying to debug a Python SOAP application using tcpmon. I am wondering what listen port, target port number and host address should I use. What about optional parameters: Http Proxy support, host and port? My PC is behind a firewall. Thanks for your help. Jim -- http://mail.py

defining extern variables in pyrex

2005-04-12 Thread Thys Meintjes
Hi All, I've inherited a c library and is the process of wrapping it using Pyrex. The library code is a state machine and remembers previous values in order to determine new values on, for example, a decode() call. These "state-full" variables were all implemented using 'extern' in the c code. M

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-12 Thread Peter Hansen
Nemesis wrote: OK, so the python installer _does_ ship this dll. So also the win installer has the redistribution problem, or does they pay for redistributing msvcr71.dll? The last I recall reading in this forum was that the regular distribution is compiled with a copy of the compiler *provided by

Re: Python documentation moronicities (continued)

2005-04-12 Thread John Machin
On 12 Apr 2005 15:06:30 -0700, "runes" <[EMAIL PROTECTED]> wrote: >Luckily I found this regex howto: >http://www.amk.ca/python/howto/regex/ and that helped a lot. Luckily??? AMK's howto is pointed to by the 3rd paragraph of Section 4.2.1 of the documentation that you are dissing: """ A brief ex

Re: nested tuple slice

2005-04-12 Thread Brian van den Broek
dimitri pater said unto the world upon 2005-04-12 17:49: hello! I want to change a nested tuple like: tuple = (('goat', 90, 100), ('cat', 80, 80), ('platypus', 60, 800)) into: tuple = (('goat', 90), ('cat', 80), ('platypus', 60)) in other words, slice the first elements of every index Any ideas on

Re: Cannot import mod_python modules

2005-04-12 Thread Mark
Thanks for the reply Steve, I have re-installed mod_python and re-configured Apache and it works now. I'm not exactly sure what I done differently, but oh well at least it works now :) Regards, Mark. -- http://mail.python.org/mailman/listinfo/python-list

Re: nested tuple slice

2005-04-12 Thread dimitri pater
Thanks, I have been trying this: tuple = (('goat', 90, 100), ('cat', 80, 80), ('platypus', 60, 800)) index = 0 newtuple = () for item in tuple:     newtuple = newtuple + tuple[index][0:2]     index += 1     print newtuple but it returns: ('goat', 90, 'cat', 80, 'platypus', 60) which is no longer

Re: problem with the logic of read files

2005-04-12 Thread Tom Jenkins
You may also be interested in the biopython project: http://www.biopython.org/ tom -- http://mail.python.org/mailman/listinfo/python-list

Re: [perl-python] Python documentation moronicities (continued)

2005-04-12 Thread John Machin
On Tue, 12 Apr 2005 13:06:36 +0200, Roman Neuhauser <[EMAIL PROTECTED]> wrote: > >Unfortunately, the python community seems to bathe in the >misorganized half-documentation, see e. g. >http://marc.theaimsgroup.com/?l=python-list&m=111303919606261&w=2 >especially the reply that (as

Re: Web Application Client Module

2005-04-12 Thread Kane
Since you need javascript the cheap-n-dirty approach (xml parser, gui library of your choice and just enough widget logic/https for your app to work) is a no-go. I don't know of a python library with html rendering and javascript (and https support could easily be another barrier). Another optio

Re: Python documentation moronicities (continued)

2005-04-12 Thread runes
> why cannot this piece of shit writing give a single example of usage? Actually, I can understand your frustration even if you should enhance your vocabulary slightly. I often struggle with the Python documnetation myself and I can't understand why a couple of examples are so hard to give. When

RE: Python 2.4 killing commercial Windows Python development ?

2005-04-12 Thread Jimmy Retzlaff
Terry Reedy wrote: > I guess I don't understand some people's determination to not have users > install fully useable Python on their Windows machines. Doing so seems no > different to me than having to install (or upgrade) Shockwave, or Apple's > Quicksomething for Windows (not used so much anymo

Re: database in python ?

2005-04-12 Thread Pierre-Frédéric Caillaud
It's not a bug if you didn't RTFM. I did read it in much detail ! In fact I spent a lot of time trying to make understand how it could do a simple 4-table join to display also purchased products on an online store. The damn query took 0.5 seconds to execute no matter how I twisted it in

RE: nested tuple slice

2005-04-12 Thread Leeds, Mark
maybe list(tuple)[0:2])) will get you what you want  but I don’t know how to change it back to a tuple. I’m just starting out but I would be interested also.       mark   -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of d

nested tuple slice

2005-04-12 Thread dimitri pater
hello! I want to change a nested tuple like: tuple = (('goat', 90, 100), ('cat', 80, 80), ('platypus', 60, 800)) into: tuple = (('goat', 90), ('cat', 80), ('platypus', 60)) in other words, slice the first elements of every index Any ideas on how to do this in an elegant, pythonic way? Best rega

Re: Web Application Client Module

2005-04-12 Thread Adonis
Raffi wrote: Hi All, I hope I'm posting this question to the correct newsgroups. We have a web based database application that's accessed using IE. The application opens a popup window to run in. With all the popup blockers and compromised browsers out there, I'm looking into developing a web based

Looking for a very specific type of embedded GUI kit

2005-04-12 Thread Sizer
We make embedded devices that are basically wimpy linux boxes with small custom display/touchscreen heads on them. They're not running X or any other windowing system. All development is done with C++ and PEG (Portable Embedded GUI) driving the display. PEG lets you install your own hardware dr

Re: Whither python24.dll? {WinCvs 2.0 and Python}

2005-04-12 Thread "Martin v. Löwis"
Warren Postma wrote: > It seems that WinCvs needs a python??.dll runtime but that when I > install Python2.4 it doesn't include this dll. Where do you get this impression? python-2.4.msi most certainly includes python24.dll. > Python 2.3 does. > > What's the recommendation here? Change the WinC

Re: ./pyconfig.h?

2005-04-12 Thread "Martin v. Löwis"
Magnus Lie Hetland wrote: > It seems that in my Solaris installation, > sysconfig.get_config_h_filename() returns './pyconfig.h', which is, of > course, in most cases just wrong... :) > > Shouldn't this return an absolute path (in all cases)? It should, and it does indeed on my copy of Python on

Re: database in python ?

2005-04-12 Thread Buck Nuggets
> It's not a bug if you didn't RTFM. Maybe it's not a bug if it's the only DBMS you've ever used and you actually believe that overriding explicit & critical declaratives is a valid "design choice". But it is a bug if it's still only partially supported in a beta version that nobody is yet hostin

Re: Missing Module when calling 'Import' _omnipy

2005-04-12 Thread gerald . maher
*_omnipy is Missing* I have searched my C drive can not find any file called *_omnipy.so or .dll where do I get it from ? I found the fike _omnipy.pyd is that what you mean? Here is my Lib Path: >>> ['C:\\omniORBpy-2.5-win32-python2.3\\omniORBpy-2.5\\examples\\echoMyTest', 'C:\\WINNT\\system32\

A beginer question about SOAP and Python: : {}

2005-04-12 Thread Jim
Hi all, I am new to SOAP and Python. I am practicing learning SOAP with Python. I sent a request and I got the following response: : {} What does that mean? and how can I print the result hash string ? Please reply to the group. Thanks for your help. Jim. -- http://mail.python.org/mailman/

Web Application Client Module

2005-04-12 Thread Raffi
Hi All, I hope I'm posting this question to the correct newsgroups. We have a web based database application that's accessed using IE. The application opens a popup window to run in. With all the popup blockers and compromised browsers out there, I'm looking into developing a web based custom clie

Whither python24.dll? {WinCvs 2.0 and Python}

2005-04-12 Thread Warren Postma
It seems that WinCvs needs a python??.dll runtime but that when I install Python2.4 it doesn't include this dll. Python 2.3 does. What's the recommendation here? Warren -- http://mail.python.org/mailman/listinfo/python-list

Re: variables exist

2005-04-12 Thread Steven Bethard
Scott David Daniels wrote: Brian van den Broek wrote: ... STeVe stressed that the try/except solution is only really appropriate for cases where the failure to have the variable defined is quite rare. Beware: C++ and Java have an immense overhead for exceptions. Python has a very lightweight ex

Re: Why won't someone step up and make use of the Free tools (was Re: Python 2.4 killing commercial Windows Python development ?)

2005-04-12 Thread Jeff Epler
On Tue, Apr 12, 2005 at 08:25:58PM +, Bengt Richter wrote: > But credit where due. Someone has stepped up to a large chunk of the problem: > >http://jove.prohosting.com/iwave/ipython/pyMinGW.html Yay. I'm glad somebody *is* doing this. Maybe all that is needed is to "get the word out".

Re: Better access to database search results

2005-04-12 Thread Gabriel Cooper
Simon Brunning wrote: On Apr 12, 2005 4:32 PM, Gabriel Cooper <[EMAIL PROTECTED]> wrote: Usually when I access db search results it's something like this: cursor.execute("select A1,A2,A3,A4 from B where C") for (a1,a2,a3,a4) in cursor.fetchall(): stuff() But sometimes the p

Re: database in python ?

2005-04-12 Thread Andy Dustman
Buck Nuggets wrote: > 1. mysql doesn't support transactions - one of its io layers (innodb) > does. If you're hoping to get your application hosted you will find > that most mysql installations don't support innodb. And due to the > bugs in mysql, when you attempt to create a transaction-safe t

Re: PyChart into web site error

2005-04-12 Thread Lee Harr
On 2005-04-12, Michele Petrazzo <[EMAIL PROTECTED]> wrote: > I'm using PyChart like a module for create charts into a little web > site, but when I try to create one, I have this error: > > /var/www/html/lgt/draw.py:19, in draw: > can = canvas.init(self.file_name) > /usr/lib/python2.3/site-packages

Re: Northampton, UK

2005-04-12 Thread Martin Franklin
Fuzzyman wrote: Just on the off chance I thought I'd ask if there were any Pythoneers out there local to Northampton UK ? Best Regards, Fuzzy http://www.voidspace.org.uk/python I'm just over the border (Bedfordshire) but like a lot of people commute :-( -- http://mail.python.org/mailman/listinf

Re: python/svn issues....

2005-04-12 Thread David M. Cooke
"bruce" <[EMAIL PROTECTED]> writes: > david... > > thanks for the reply... > > it's starting to look as though the actual /usr/lib/libdb-4.2.so from the > rpm isn't exporting any of the symbols... > > when i do: > nm /usr/lib/libdb-4.2.so | grep db_create > > i get > nm: /usr/lib/libdb-4.2.so: no

Re: database in python ?

2005-04-12 Thread Pierre-Frédéric Caillaud
Bottomline - mysql has a lot of marketshare, is improving, and I'm sure that it'll eventually be a credible product. But right now it's has a wide range of inexcusable problems. I so totally agree with you. I find that mysql promotes bad coding practices by ignoring errors and substituting in

Re: loading binary image data into memory

2005-04-12 Thread rixdelei
tx vm guys, helped a lot "rixdelei" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > > Hi there! > Tried successfully downloading data into memory from internet using the > urllib module like this: > ... > import urllib > import cStringIO > > url_file = urllib.urlopen(url) >

RE: python/svn issues....

2005-04-12 Thread bruce
david... thanks for the reply... it's starting to look as though the actual /usr/lib/libdb-4.2.so from the rpm isn't exporting any of the symbols... when i do: nm /usr/lib/libdb-4.2.so | grep db_create i get nm: /usr/lib/libdb-4.2.so: no symbols which is strange... because i should be getting

Re: Why won't someone step up and make use of the Free tools (was Re: Python 2.4 killing commercial Windows Python development ?)

2005-04-12 Thread Bengt Richter
On Tue, 12 Apr 2005 08:42:54 -0500, Jeff Epler <[EMAIL PROTECTED]> wrote: > >--7iMSBzlTiPOCCT2k >Content-Type: text/plain; charset=us-ascii >Content-Disposition: inline > >I'm sorry that this is going to come out sounding like a flame, but it >seems to me that there today only a few technical prob

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-12 Thread Nemesis
Mentre io pensavo ad una intro simpatica "Fredrik Lundh" scriveva: >> It will just work. Python installs the DLL if it is missing, and leaves >> it alone (just incrementing the refcount) if it is present on the target >> system. > installs it where? the MS docs seem to indicate that they want you

Re: Python 2.4 killing commercial Windows Python development ?

2005-04-12 Thread Nemesis
Mentre io pensavo ad una intro simpatica "Martin v. Löwis" scriveva: >> What happens if I try to install Python2.4 on a system wich doesn't have >> the dll? > It will just work. Python installs the DLL if it is missing, and leaves > it alone (just incrementing the refcount) if it is present on the

Re: singleton objects with decorators

2005-04-12 Thread Steve Holden
Bengt Richter wrote: [...] It's a weird beast, being a subtype of int also. I'll defer to the BDFL in http://www.python.org/peps/pep-0285.html """ The values False and True will be singletons, like None. Because the type has two values, perhaps these should be called "doubletons"? The

Re: python/svn issues....

2005-04-12 Thread David M. Cooke
"bruce" <[EMAIL PROTECTED]> writes: > hi... > > in trying to get viewcvs up/running, i tried to do the following: > > [EMAIL PROTECTED] viewcvs-0.9.2]# python > Python 2.3.3 (#1, May 7 2004, 10:31:40) > [GCC 3.3.3 20040412 (Red Hat Linux 3.3.3-7)] on linux2 > Type "help", "copyright", "credits" o

Re: chaco and wx 2.5....

2005-04-12 Thread Robert Kern
Fabio Pliger wrote: anyone know if it's possibile to run chaco with wx 2.5.3 or grater? No, not at this time. Enthought expects that they will have some "conversion days" around summertime to move their codebase to the soon-to-be-released wxPython 2.6. -- Robert Kern [EMAIL PROTECTED] "In the fi

[ANN]: mkapachepw 1.21 Released And Available

2005-04-12 Thread Tim Daneliuk
'mkapachepw' Version 1.121 is now released and available for download at: http://www.tundraware.com/Software/mkapachepw This is the first public release of the program. A FreeBSD port has been submitted as well. What Is 'mkapachepw'? -- 'mkapachepw' is an Apache user/group

Re: Python license (2.3)

2005-04-12 Thread Robert Kern
Antoon Pardon wrote: What licence can I use? Somewhere they say you can combine python code with GPL code. Does that mean that the resulting code has to have both the GPL license as the PSF license, as both seem to want that derived work uses the same license. No, the PSF does not want that. It doe

Re: Threads and variable assignment

2005-04-12 Thread David M. Cooke
Gregory Bond <[EMAIL PROTECTED]> writes: > I've had a solid hunt through the (2.3) documentation but it seems > silent on this issue. > > I have an problem that would naturally run as 2 threads: One monitors > a bunch of asyncrhonous external state and decides if things are > "good" or "bad". Th

Re: variables exist

2005-04-12 Thread Fredrik Lundh
Scott David Daniels wrote: > >... STeVe stressed that the try/except solution is only really appropriate > > for cases where the failure to have the variable defined is quite rare. > > Beware: C++ and Java have an immense overhead for exceptions. Python > has a very lightweight exception mechanis

Re: database in python ?

2005-04-12 Thread Buck Nuggets
> In truth, although postgres has more features, MySQL is probably > better for someone who is just starting to use databases to develop > for: the chances are higher that anyone using their code will have > MySQL than Postgres, and they aren't going to need the features > that Postgresql has that

Re: Please Hlp with msg: "The C++ part of the StaticText object has been deleted"

2005-04-12 Thread Fredrik Lundh
"Alex Nordhus" wrote: (nothing) mentioning what tool you're using, and when you get the message, might be a bit more helpful than telling us where you work. did you try googling for the error message, btw? http://tinyurl.com/6w9tj here's the third message in the first thread returned by go

Re: exporting imports to reduce exe size?

2005-04-12 Thread Steve Holden
Ron_Adam wrote: In looking at ways to reduce the size of exe's created with py2exe, I've noticed that it will include a whole library or module even if I only need one function or value from it. What I would like to do is to import individual functions and then export 'write' them to a common re

Re: ATTN : Georges ( gry@ll.mit.edu)

2005-04-12 Thread Pierre-Frédéric Caillaud
My code so far: # -*- coding: iso-8859-1 -*- import sys import os from progadn import * ab1seq = raw_input("Entrez le répertoire où sont les fichiers à analyser: ") or None Ce serait mieux d'utiliser sys.argv pour spécifier le répertoire dans la ligne de commande du programme : import sys hel

Re: [perl-python] Python documentation moronicities (continued)

2005-04-12 Thread Gerrit Holl
Ivan Van Laningham wrote: > Richie Hindle wrote: > > > > [Xah] > > > motherfucking ... fucking ... fucking ... fucking ... fuck ... fucking > > > fucking ... fucking ... mother fucking ... fucking ... piece of shit ... > > > motherfucking ... fucking ... fucking ... big asshole ... masturbation ..

Re: Smart help again

2005-04-12 Thread [EMAIL PROTECTED]
I hope a rewrite makes it a bit more clear for you. The test module is defined below, it contains a simplified Error object, it resemble the one I use a lot in my own scripting. The test file generates an error ( A ZeroDivisionError in method eggs of class Spam). -#!/usr/bin/env python -import

Re: variables exist

2005-04-12 Thread Scott David Daniels
Brian van den Broek wrote: ... STeVe stressed that the try/except solution is only really appropriate for cases where the failure to have the variable defined is quite rare. Beware: C++ and Java have an immense overhead for exceptions. Python has a very lightweight exception mechanism. You shou

"The C++ part of the .. Has been deleted, wsTaskBarIcon

2005-04-12 Thread andrea_gavana
Hello Alex, first of all, I would suggest you to upgrade wxPython to 2.5.5.1. There is no particular reason to stick with 2.4, whatever someone else is thinkink/saying. Secondly, I strongly suggest you to abandon the syntax: from wxPython.wx import * And to use: import wx This will help y

ipv4 class

2005-04-12 Thread David Bear
I was hoping to write some network utils and found an ipv4 class written by Keith Dart circa 1999. It doesn't work any longer under python 2.3. I think I found it on starship python and links to his web site point to a non-functional server. anyone know of a simple ipv4 class I might steal...

Re: Removing comments... tokenize error

2005-04-12 Thread Fredrik Lundh
"qwweeeit" <[EMAIL PROTECTED]> wrote: > I don't know if this has already been corrected (I use Python 2.3) > or perhaps is a mistake on my part... it's a mistake on your part. adding a print statement to the for- loop might help you figure it out: > nLastLine=0 > for i in tokenize.generate_toke

Re: [perl-python] Python documentation moronicities (continued)

2005-04-12 Thread Peter Hansen
Fredrik Lundh wrote: Peter Hansen wrote: Joe Smith wrote: Xah Lee wrote: of motherf***ing irrevalent drivel? I am greatly amused. A troll impersonating Xah Lee has made xah look like a total moron. LOL Sorry, Joe, but why do you think this wasn't Xah? why do you think "Joe" and "Xah" are two differ

ATTN : Georges ( gry@ll.mit.edu)

2005-04-12 Thread m_tach
First of all thanks for helping me out. I have to admit I dont understand some of your suggestiosn, sorry. I dont know what is the "3D" thing... Is there another way to make it work something more simple for a newbie like me? Thanks What I want to do is: First check all the files from a folder an

Re: Programming Language for Systems Administrator

2005-04-12 Thread beliavsky
Brian van den Broek wrote: > [EMAIL PROTECTED] said unto the world upon 2005-04-12 08:11: > > > > > I actually like the Windows cmd language (it's an acquired taste), but > > I have read it is going away in Windows Longhorn (WH). That's an > > argument for writing more complicated scripts in Pytho

Re: problem with the logic of read files

2005-04-12 Thread Scott David Daniels
[EMAIL PROTECTED] wrote: #!/cbi/prg/python/current/bin/python # -*- coding: iso-8859-1 -*- import sys import os from progadn import * ... for x in extseq: f = open(x, "r") seq=f.read() f.close() s=seq def checkDNA(seq): ... seq=checkDNA(seq) print seq You terminated the loop

Embedding threaded Python

2005-04-12 Thread Ricardo
If I embed Python in a C app and the Python code is threaded, but the C code isn't, do I need to call PyEval_InitThreads() ? - or do you only need to do that if the C code is threaded ? -- http://mail.python.org/mailman/listinfo/python-list

Re: [perl-python] Python documentation moronicities (continued)

2005-04-12 Thread Fredrik Lundh
Peter Hansen wrote: > Joe Smith wrote: > > Xah Lee wrote: > >> of motherf***ing irrevalent drivel? > > > > I am greatly amused. > > A troll impersonating Xah Lee has made xah look like a total moron. > > LOL > > Sorry, Joe, but why do you think this wasn't Xah? why do you think "Joe" and "Xah" ar

PyChart into web site error

2005-04-12 Thread Michele Petrazzo
I'm using PyChart like a module for create charts into a little web site, but when I try to create one, I have this error: /var/www/html/lgt/draw.py:19, in draw: can = canvas.init(self.file_name) /usr/lib/python2.3/site-packages/pychart/canvas.py:60, in init: can = pngcanvas.T(fname) /usr/lib/pytho

Re: web authoring tools

2005-04-12 Thread Steve Holden
Brandon J. Van Every wrote: Steve Holden <[EMAIL PROTECTED]> wrote in Brandon J. Van Every wrote: I believe Dreamweaver-esque. I see myself writing articles and eventually doing snazzy eye candy layouts. I do not see myself engaging in elaborate flow control or anything terribly programmatic. I w

Re: HELP ! Anybody knows where the stackless python website is ?

2005-04-12 Thread Pierre-Frédéric Caillaud
Great ! Thanks ! On Tue, 12 Apr 2005 16:15:42 +0200, cfbolz <[EMAIL PROTECTED]> wrote: Hi! Pierre-Frédéric Caillaud wrote: I've been trying desperately to access http://www.stackless.com but it's been down, for about a week now ! The stackless webpage is working again. Regards, Carl Fri

Re: Programming Language for Systems Administrator

2005-04-12 Thread Pierre-Frédéric Caillaud
Thank You for your suggestionsI request you all to eloborate the Uses(In Practical) for systems administrator.Some of my questions regarding the same follows. What do you want to do ? 1)Can i build web applications in Python ? If so how. I am planning to build a web application for intrane

Re: problem with the logic of read files

2005-04-12 Thread gry
<[EMAIL PROTECTED]> wrote: > I am new to python and I am not in computer science. In fact I am a biologist and I ma trying to learn python. So if someone can help me, I will appreciate it. > Thanks > > > #!/cbi/prg/python/current/bin/python > # -*- coding: iso-8859-1 -*- > import sys > import os >

  1   2   3   >