Re: Splitting SAX results

2007-06-06 Thread Stefan Behnel
IamIan wrote: > I have a very simple SAX script from which I get results like > 'Title1:Description','Title2:Description'. I want to split each result > on the colon, using the two resulting elements as key/value pairs in a > dictionary. I've tried a couple different approaches with lists etc, > bu

howto obtain directory where current (running) py-file is placed?

2007-06-06 Thread dmitrey
Hi all, I guess this question was asked many times before, but I don't know keywords for web search. Thank you in advance, D. -- http://mail.python.org/mailman/listinfo/python-list

Re: ftplib error- Large file

2007-06-06 Thread Hendrik van Rooyen
<[EMAIL PROTECTED]> wrote: > Hi all, > > I'm using ftplib to transfer large files to remote sites. The process > seems to work perfectly with small files, but when the file gets to > large ~20GB I begin getting errors that sometimes seem to be non- > fatal, and other times the transfer does not

Re: [pyserial - winXP] Serial port stop receiving data after a few hours, raise no error

2007-06-06 Thread Hendrik van Rooyen
<[EMAIL PROTECTED]> wrote: >Hello, > >My soft passively listen to a device sending +- 300 bytes of data each >second. After several hours of work, the soft abruptly stops receiving >data without any error, (while the device sends properly, of course) >and I need to restart it (the python soft) to

Re: Why Python?

2007-06-06 Thread Etienne Hilson
> > IMO Python is a powerful language and a fast-develop one. > IMO Python and java are very similar in the way that they are powerful and fast-develop one, even if java is a bit heavier to program with. But IMO the VERY goo point for python is the available graphical interfaces (Tkinter, wxPyth

Re: Python for industrial control (was: Who uses Python?)

2007-06-06 Thread Hendrik van Rooyen
"Cameron Laird" <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > Hendrik van Rooyen <[EMAIL PROTECTED]> wrote: > > "walterbyrd" <[EMAIL PROTECTED]> wrote: > > > >> Anything else? Finance? Web-analytics? SEO? Digital art? > > > >Industrial control and alarm annunciation > . > . > . >

Re: Who uses Python?

2007-06-06 Thread Hendrik van Rooyen
"Stef Mientki" <[EMAIL PROTECTED]> wrote: > I use Python as a replacement for MatLab, > and intend to use it as replacement for Delphi, AutoIt, PHP, VB. > And I'ld love to use it as a replacement for micro controller programming. If you have a little sub - 64k micro this is not really practical

Re: Accessing function in a module by name

2007-06-06 Thread John Nagle
Tobiah wrote: > Is there a way to call function in an imported > module having only the name? ... > I'm trying to set up a function dispatcher for a > SOAP server. Bad idea. This exposes all the functions of the module to calls from the outside world. Big security hole. In any case, SOA

Splitting SAX results

2007-06-06 Thread IamIan
Hi list, I have a very simple SAX script from which I get results like 'Title1:Description','Title2:Description'. I want to split each result on the colon, using the two resulting elements as key/value pairs in a dictionary. I've tried a couple different approaches with lists etc, but I keep getti

Re: Need a Little Help on Tkinter and Python

2007-06-06 Thread W. Watson
Is there a pdf file or downloadable file of the Tkinter material? I like to put stuff in notebooks. W. Watson wrote: > Thanks for your responses. I've located the URL from the post above and > will check out the two books mentioned here. I used to do a lot of > scientific programming, but now j

“On Your Desktop”: the celebrity posting editorial blog

2007-06-06 Thread Steve Holden
The first post comes from Ian Bicking: http://onyourdesktop.blogspot.com/ Whose desktop would /you/ like to know about? regards Steve -- Steve Holden+1 571 484 6266 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://del.icio.us/steve.h

Re: lists - append - unique and sorted

2007-06-06 Thread Dan Bishop
On Jun 6, 10:26 am, rhXX <[EMAIL PROTECTED]> wrote: > hi, > > can i append a item to a list using criterias: > > - UNIQUE - if there already exist don't append > > and/or > > - SORTED - INSERT in the correct place using some criteria? > > tks in advance If you don't need the list to be sorted unti

Re: creating lists based on parsed items

2007-06-06 Thread Basilisk96
> This would be a RTFM moment :) defaultdict is not a built-in, it is part > of the collections module. Bingo! I should have read higher up in the manual tree :) Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Determinant of Large Matrix

2007-06-06 Thread James Stroud
James Stroud wrote: [pointless stuff] OK. Nevermind. I'm rebinding encodings and so taking a sample from the sample and thus getting the sample back. Terribly sorry. James -- http://mail.python.org/mailman/listinfo/python-list

Re: Determinant of Large Matrix

2007-06-06 Thread James Stroud
Steven D'Aprano wrote: [Valuable Response] Thank you Steven for your helpful comments. Please see my reply to Bjoern Schliessmann where I have restated my problem. James -- http://mail.python.org/mailman/listinfo/python-list

Re: Determinant of Large Matrix

2007-06-06 Thread James Stroud
Hello, Thank you to those who responded for your answers. They were very helpful and I'm confident now that numpy is calculating accurate determinants for these matrices. But I think I need to restate my problem a little as suggested by some becuase I'm still bewildered. First, here is the re

Re: Determinant of Large Matrix

2007-06-06 Thread Steven D'Aprano
On Wed, 06 Jun 2007 04:10:43 -0700, James Stroud wrote: > Hello All, > > I'm using numpy to calculate determinants of matrices that look like > this (13x13): [snip matrix] > For this matrix, I'm getting this with numpy: > > 2774532095.971 > > But I have a feeling I'm exceeding the capa

Re: creating lists based on parsed items

2007-06-06 Thread Steven D'Aprano
On Wed, 06 Jun 2007 22:49:27 +, Basilisk96 wrote: >> If you are using Python 2.5, use a defaultdict instead, the very first >> example looks like what you want. >> >> >> -- >> Gabriel Genellina > > Uh-oh.. > I am using Python 2.5 on WinXP,

Copy a file from PDA

2007-06-06 Thread Tempo
Are there libraries out there that will assist me in copying a file from my Dell Axim PDA (Windows Mobile) and putting the copy onto my desktop (Windows XP)? Thanks so much. -- http://mail.python.org/mailman/listinfo/python-list

Re: lists - append - unique and sorted

2007-06-06 Thread Steve Howell
--- Neil Cerutti <[EMAIL PROTECTED]> wrote: > i agree that using bisect and inserting manually > clearly meets > the stated requirements, while there isn't enough > information to > know if a heapq will meet his requirements. > > Thanks for the correction. > If the OP is still reading, don't di

Re: MySQL InterfaceError

2007-06-06 Thread kaens
On 6/5/07, Joe <[EMAIL PROTECTED]> wrote: > > > > > >File "build/bdist.linux-i686/egg/MySQLdb/cursors.py", line > 147, in execute > > >charset = db.character_set_name() > > > > > >InterfaceError: (0, '') > > > > We got it working. It was caused by passing a database connection to a > module: >

Re: creating lists based on parsed items

2007-06-06 Thread Basilisk96
> If you are using Python 2.5, use a defaultdict instead, the very first > example looks like what you want. > > > -- > Gabriel Genellina Uh-oh.. I am using Python 2.5 on WinXP, but when I tried the examples in the manual, I got a "NameError: n

Re: get message form ie

2007-06-06 Thread John J. Lee
Ashok <[EMAIL PROTECTED]> writes: > Hi, > > Is there any way i can get a message form internet explorer into my > python script when internet explorer completes loading a page? > > _ > ashok One way is to use a Browser Helper Object (BHO). Here's an old script written for old version of ct

Some questions about ipath error messages

2007-06-06 Thread Mitko Haralanov
Hi Dave, I have some questions about the ipath error messages that we print out. I am currently testing the error injection part of the matrix and I starting with "incorrect checksum" and "incorrect HW version". I have set the debug level on both machines to 0x83 and I am monitoring ipathstats. I

Re: Accessing function in a module by name

2007-06-06 Thread Tobiah
> What's wrong with real_func = getattr(foo, func_name) ? Maybe I > misunderstood your question ? Nothing, it just didn't exist in my mind until now. Thanks -- Posted via a free Usenet account from http://www.teranews.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Accessing function in a module by name

2007-06-06 Thread John Machin
On Jun 7, 8:13 am, Tobiah <[EMAIL PROTECTED]> wrote: > Is there a way to call function in an imported > module having only the name? > > func_name = 'doit' > > real_func = foo.some_magic(func_name) Presuming 'foo' is the name of the module: real_func = getattr(foo, func_name) > > #Now call it >

Re: Accessing function in a module by name

2007-06-06 Thread imho
Tobiah ha scritto: > Is there a way to call function in an imported > module having only the name? > > > func_name = 'doit' > > real_func = foo.some_magic(func_name) > > #Now call it > real_func(args) > > > I'm trying to set up a function dispatcher for a > SOAP server. > > Thanks, > > Tobi

Accessing function in a module by name

2007-06-06 Thread Tobiah
Is there a way to call function in an imported module having only the name? func_name = 'doit' real_func = foo.some_magic(func_name) #Now call it real_func(args) I'm trying to set up a function dispatcher for a SOAP server. Thanks, Tobiah -- Posted via a free Usenet account from http://ww

Re: How do you htmlentities in Python

2007-06-06 Thread John J. Lee
"Thomas Jollans" <[EMAIL PROTECTED]> writes: > "Adam Atlas" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > As far as I know, there isn't a standard idiom to do this, but it's > > still a one-liner. Untested, but I think this should work: > > > > import re > > from htmlentitydef

tkSnack and Pmw Scrollcanvas

2007-06-06 Thread rbann11
Thanks in advance, Hi, I am trying to put tkSnack's Minwave.py demo into Pmw Scrollcanvas, without success. I have included the sample, the error message and the documentation tkSnack says should work. Can someone tell me what I am doing wrong? and If someone has some sample code it would be great

Re: Determinant of Large Matrix

2007-06-06 Thread Bjoern Schliessmann
James Stroud wrote: > For this matrix, I'm getting this with numpy: > > 2774532095.971 > > But I have a feeling I'm exceeding the capacity of floats here. > Does anyone have an idea for how to treat this? Not if you don't state your requirements more precisely. E. g. what precision do you n

Re: urllib2.urlopen broken?

2007-06-06 Thread Gabriel Genellina
En Wed, 06 Jun 2007 16:20:09 -0300, Mike Meyer <[EMAIL PROTECTED]> escribió: > In 2.5.1 (and 2.[45], but not 2.3): Care to tell some details? -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: ftplib error- Large file

2007-06-06 Thread Gabriel Genellina
En Wed, 06 Jun 2007 13:39:57 -0300, <[EMAIL PROTECTED]> escribió: > I'm using ftplib to transfer large files to remote sites. The process > seems to work perfectly with small files, but when the file gets to > large ~20GB I begin getting errors that sometimes seem to be non- > fatal, and other ti

Re: creating lists based on parsed items

2007-06-06 Thread Gabriel Genellina
En Wed, 06 Jun 2007 13:24:54 -0300, Jason White <[EMAIL PROTECTED]> escribió: > I am trying to do what (I think) should be fairly straightforward. I > have a list of items that i want to sort into buckets. in item 1 of each > line is the object I want to sort and in item 2 is the name of the

Re: generating a wm5 executable

2007-06-06 Thread kyosohma
On Jun 6, 1:19 pm, Marco <[EMAIL PROTECTED]> wrote: > Hi, > I'm quite a newbee on Python and have started developing apps on > PythonCE. > > My .pyc files are running fine under windows mobile 5 but I'm a bit > stuck on how to generate single file executable packages under such > platform, nor I've

Re: web development without using frameworks

2007-06-06 Thread [EMAIL PROTECTED]
On Jun 6, 5:57 am, Michele Simionato <[EMAIL PROTECTED]> wrote: > > IMO there is a third way: use wsgiref and/or paste. > > Michele Simionato Yes, Paste can handle request and sessions among other things. Also i can recommend Mako for templating. WSGI is a bit lowlevel. /Martin -- http://

Re: Basic Auth for simple web server

2007-06-06 Thread John J. Lee
Marco Aloisio <[EMAIL PROTECTED]> writes: > Hi, I'm a Python newbie; > I have to write a simple webserver, and I need to > implement a basic authentication as specified in the RFC2617. > I wonder if there is a Python library for doing that. twisted.web2 is one. John -- http://mail.python.org

Re: Determinant of Large Matrix

2007-06-06 Thread Peter Otten
James Stroud wrote: > I'm using numpy to calculate determinants of matrices that look like > this (13x13): > > [[ 0. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1.] > [ 1. 0. 1. 4. 1. 9. 4. 4. 1. 1. 4. 9. 4. 9.] > [ 1. 1. 0. 1. 4. 4. 9. 9. 4. 4. 1. 4. 1. 4.] >

urllib2.urlopen broken?

2007-06-06 Thread Mike Meyer
In 2.5.1 (and 2.[45], but not 2.3): -- Mike Meyer <[EMAIL PROTECTED]> http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list

Re: urllib2.urlopen broken?

2007-06-06 Thread Mike Meyer
In <[EMAIL PROTECTED]>, Mike Meyer <[EMAIL PROTECTED]> typed: > In 2.5.1 (and 2.[45], but not 2.3): Sigh. Sorry 'bout that. Since I started it, the breakage is: Python 2.5.1 (r251:54863, May 15 2007, 15:31:37) [GCC 3.4.6 [FreeBSD] 20060305] on freebsd6 Type "help", "copyright", "credits" or "lic

Re: Who uses Python?

2007-06-06 Thread mytago
We used Python with wxPython GUI Toolkit to build this simple image uploader: http://www.mytago.com/uploader/ Even with no previous Python or wxPython experience at all, we could get it working in a very short time. -- www.mytago.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Beginning Python

2007-06-06 Thread kaens
On 6/5/07, abhiee <[EMAIL PROTECTED]> wrote: > Hello , I have just begun learning python...and I'm loving it...Just > wanted to ask you that how much time would it take me to learn python > completely and which languages should i learn alongwith python to be a > good professional programmer?...Now

Re: Determinant of Large Matrix

2007-06-06 Thread Robert Kern
James Stroud wrote: > Hello All, > > I'm using numpy to calculate determinants of matrices that look like > this (13x13): > > [[ 0. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1.] > [ 1. 0. 1. 4. 1. 9. 4. 4. 1. 1. 4. 9. 4. 9.] > [ 1. 1. 0. 1. 4. 4. 9. 9. 4. 4. 1.

SOLVED: Can os.remove followed by os.path.isfile disagree?

2007-06-06 Thread Paul Paterson
On Jun 6, 12:30 pm, "Roger Upole" <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Can os.path.isfile(x) ever return True after os.remove(x) has > > successfully completed? (Windows 2003, Python 2.3) > > Yes. If another application has opened the file with FILE_SHARE_DELETE, > os.remove

Invalid argument with fcntl.fcntl

2007-06-06 Thread Mitko Haralanov
I am trying to use the advisory locking with fcntl over NFS (thus, me choosing fcntl instead of flock and friends). I have the following code: lockdata = struct.pack ("hhllhh", fcntl.F_RDLCK, 0, 0, 0, 0, 0) print self.fd, type (self.fd), len (lockdata), type (lockdata) ret = fcntl.fcntl (self.fd,

generating a wm5 executable

2007-06-06 Thread Marco
Hi, I'm quite a newbee on Python and have started developing apps on PythonCE. My .pyc files are running fine under windows mobile 5 but I'm a bit stuck on how to generate single file executable packages under such platform, nor I've found a lot of reference about it - seems to be quite a niche.

Re: Determinant of Large Matrix

2007-06-06 Thread J. Robertson
James Stroud wrote: > Hello All, > > I'm using numpy to calculate determinants of matrices that look like > this (13x13): > > [[ 0. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1.] [snip] > But I have a feeling I'm exceeding the capacity of floats here. Does > anyone have an idea for how to

Re: [pyserial - winXP] Serial port stop receiving data after a few hours, raise no error

2007-06-06 Thread Troels Thomsen
I read that when the serial port encounters an error (frame error or so, I imagine?) it stop receiving data until the library function "getCommError()" is called. Troels: I think you are right Am I on the good track? Can I call this function from my pyserial code? Why pyserial does'nt raise a s

Re: Can os.remove followed by os.path.isfile disagree?

2007-06-06 Thread Roger Upole
[EMAIL PROTECTED] wrote: > Can os.path.isfile(x) ever return True after os.remove(x) has > successfully completed? (Windows 2003, Python 2.3) Yes. If another application has opened the file with FILE_SHARE_DELETE, os.remove succeeds but the file doesn't actually disappear until the last open ha

Re: lists - append - unique and sorted

2007-06-06 Thread Neil Cerutti
On 2007-06-06, Josiah Carlson <[EMAIL PROTECTED]> wrote: > Neil Cerutti wrote: >> On 2007-06-06, rhXX <[EMAIL PROTECTED]> wrote: >>> and/or >>> >>> - SORTED - INSERT in the correct place using some criteria? >> >> Consult the Python Docs about the heapq module. > > Heaps (as produced by heapq) are

Re: lists - append - unique and sorted

2007-06-06 Thread rhXX
On Jun 6, 6:35 pm, Josiah Carlson <[EMAIL PROTECTED]> wrote: ok, tks to all for ur help and comments!!! > Neil Cerutti wrote: > > On 2007-06-06, rhXX <[EMAIL PROTECTED]> wrote: > >> and/or > > >> - SORTED - INSERT in the correct place using some criteria? > > > Consult the Python Docs about the he

creating lists based on parsed items

2007-06-06 Thread Jason White
Hello all ... Sorry for jumping in and askig with 0 lurk-time. I am trying to do what (I think) should be fairly straightforward. I have a list of items that i want to sort into buckets. in item 1 of each line is the object I want to sort and in item 2 is the name of the bucket. I am making it

ftplib error- Large file

2007-06-06 Thread half . italian
Hi all, I'm using ftplib to transfer large files to remote sites. The process seems to work perfectly with small files, but when the file gets to large ~20GB I begin getting errors that sometimes seem to be non- fatal, and other times the transfer does not complete. I've debugged the hell out of

Re: who know?

2007-06-06 Thread Josiah Carlson
Michel Claveau wrote: > Hi! > > This image show IronPython. > But... what is it? > > Link : > http://msdn2.microsoft.com/en-us/vstudio/bb510103.vss_IronPython_large.jpg What is generally referred to as "Python", available from python.org, is really the 'CPython' runtime and associated libraries

Re: lists - append - unique and sorted

2007-06-06 Thread Josiah Carlson
Neil Cerutti wrote: > On 2007-06-06, rhXX <[EMAIL PROTECTED]> wrote: >> and/or >> >> - SORTED - INSERT in the correct place using some criteria? > > Consult the Python Docs about the heapq module. Heaps (as produced by heapq) are not sorted. This will not produce correct results unless one then

Re: Can os.remove followed by os.path.isfile disagree?

2007-06-06 Thread Paul Paterson
> Don't suppose you've got some kind of flashy software > running which intercepts OS file-manipulation calls for > Virus or Archiving purposes? > > TJG As I mentioned in another reply, this server is virtual and so is the drive. I'm wondering if this might also be significant. Paul -- http://

Re: Can os.remove followed by os.path.isfile disagree?

2007-06-06 Thread Paul Paterson
> > Is the file on a network drive by any chance? > > Diez No, but the server is actually a VMWare VM and the drive is a virtual drive. I'm thinking that this may be significant as it may be that the VMWare VHD driver is the "flashy software running which intercepts OS file- manipulation calls" t

Re: Can os.remove followed by os.path.isfile disagree?

2007-06-06 Thread Paul Paterson
Thanks for the response! > > I'd take the time to really examine the multiple threads of work you're > running > to make sure one of them isn't removing the file just as another creates it. > Better still, use a locking semaphore around the code the creates/deletes the > file > to guarantee mutu

Re: otsu threshold in python

2007-06-06 Thread Hyuga
On Jun 6, 7:49 am, azrael <[EMAIL PROTECTED]> wrote: > the otsu filter is a filter that takes a image and from its histogram > calculates the values at which the image should be thresholded to > acomplish an optimal seperation of a foregtround and background > object. So I learned from the PDF I l

Re: Who uses Python?

2007-06-06 Thread brad
walterbyrd wrote: > I mean other than sysadmins, programmers, and web-site developers? > Anything else? Finance? Web-analytics? SEO? Digital art? IT Security Analysts use it... see code and screenshots... these are not professional programmers: http://filebox.vt.edu/users/rtilley/public/find_ss

Re: Can os.remove followed by os.path.isfile disagree?

2007-06-06 Thread Paul Paterson
Thanks for the quick and detailed response! > The most likely bet would seem to be a race condition > as you suggest below. Doesn't have to be from a thread > in your program, although I assume you know best about > your own filesystem ;) My first thought, after discounting the os.remove early r

Re: which "GUI module" you suggest me to use?

2007-06-06 Thread Chris Mellon
On 6/6/07, Samuel <[EMAIL PROTECTED]> wrote: > On Wed, 06 Jun 2007 09:45:48 -0500, Chris Mellon wrote: > > > On 6/6/07, Samuel <[EMAIL PROTECTED]> wrote: > > In the general case, wxWidgets wraps (not emulates) Gtk. I don't believe > > that there are any common controls left which are still emulated

Re: lists - append - unique and sorted

2007-06-06 Thread Neil Cerutti
On 2007-06-06, rhXX <[EMAIL PROTECTED]> wrote: > hi, > > can i append a item to a list using criterias: > > - UNIQUE - if there already exist don't append Consult the Python Docs about sets. > and/or > > - SORTED - INSERT in the correct place using some criteria? Consult the Python Docs about th

Re: Can os.remove followed by os.path.isfile disagree?

2007-06-06 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > Can os.path.isfile(x) ever return True after os.remove(x) has > successfully completed? (Windows 2003, Python 2.3) > > We had a couple of failures in a server application that we cannot yet > reproduce in a simple case. Analysis of the code suggests that the > only po

Re: lists - append - unique and sorted

2007-06-06 Thread Diez B. Roggisch
rhXX wrote: > hi, > > can i append a item to a list using criterias: > > - UNIQUE - if there already exist don't append > - SORTED - INSERT in the correct place using some criteria? Both can be accomplished using the bisect-module. It will give you the leftmost/rightmost insertion point for

lists - append - unique and sorted

2007-06-06 Thread rhXX
hi, can i append a item to a list using criterias: - UNIQUE - if there already exist don't append and/or - SORTED - INSERT in the correct place using some criteria? tks in advance -- http://mail.python.org/mailman/listinfo/python-list

Re: which "GUI module" you suggest me to use?

2007-06-06 Thread Samuel
On Wed, 06 Jun 2007 09:45:48 -0500, Chris Mellon wrote: > On 6/6/07, Samuel <[EMAIL PROTECTED]> wrote: > In the general case, wxWidgets wraps (not emulates) Gtk. I don't believe > that there are any common controls left which are still emulated (maybe > the list control? I'm not sure - I don't fol

Re: Determinant of Large Matrix

2007-06-06 Thread Dustan
On Jun 6, 6:47 am, Tommy Nordgren <[EMAIL PROTECTED]> wrote: > On 6 jun 2007, at 13.10, James Stroud wrote: > > > > > Hello All, > > > I'm using numpy to calculate determinants of matrices that look like > > this (13x13): > > > [[ 0. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1.] > > [ 1.

Re: Can os.remove followed by os.path.isfile disagree?

2007-06-06 Thread Tim Daneliuk
[EMAIL PROTECTED] wrote: > > The application is multithreaded so it is possible that another thread > writes to the file between the "remove" and the "isfile", but at the > end of the failure the file is actually not on the filesystem and I > don't believe there is a way that the file could be r

Re: which "GUI module" you suggest me to use?

2007-06-06 Thread Chris Mellon
On 6/6/07, Samuel <[EMAIL PROTECTED]> wrote: > On Wed, 06 Jun 2007 14:43:35 +, Grant Edwards wrote: > > > On 2007-06-06, Samuel <[EMAIL PROTECTED]> wrote: > >> On Wed, 06 Jun 2007 00:22:40 +, Grant Edwards wrote: > >>> wxPython works fine under Windows, Linux and OSX. > >> > >> wxPython emu

Re: which "GUI module" you suggest me to use?

2007-06-06 Thread Samuel
On Wed, 06 Jun 2007 14:43:35 +, Grant Edwards wrote: > On 2007-06-06, Samuel <[EMAIL PROTECTED]> wrote: >> On Wed, 06 Jun 2007 00:22:40 +, Grant Edwards wrote: >>> wxPython works fine under Windows, Linux and OSX. >> >> wxPython emulates Gtk > > What? On some platforms (Linux), wxPython

Re: Can os.remove followed by os.path.isfile disagree?

2007-06-06 Thread Tim Golden
[EMAIL PROTECTED] wrote: > Can os.path.isfile(x) ever return True after os.remove(x) has > successfully completed? (Windows 2003, Python 2.3) As an afterthought, have you tried NTFS auditing, or directory monitoring, such as: http://timgolden.me.uk/python/win32_how_do_i/watch_directory_for_chang

Re: Can os.remove followed by os.path.isfile disagree?

2007-06-06 Thread Tim Golden
[EMAIL PROTECTED] wrote: > Can os.path.isfile(x) ever return True after os.remove(x) has > successfully completed? (Windows 2003, Python 2.3) > > We had a couple of failures in a server application that we cannot yet > reproduce in a simple case. Analysis of the code suggests that the > only poss

Re: which "GUI module" you suggest me to use?

2007-06-06 Thread Chris Mellon
On 6/6/07, Samuel <[EMAIL PROTECTED]> wrote: > On Wed, 06 Jun 2007 00:22:40 +, Grant Edwards wrote: > > >> I know that WxPython work only under Windows and PyGTK work only under > >> Linux... > > > > You 'know' wrong. > > > > wxPython works fine under Windows, Linux and OSX. > > wxPython emulat

FTP/SSL

2007-06-06 Thread Nancy Head
I know basic Python, have basic experience using FTP... but haven't really used the ftplib before. Am trying to read the 18.8 and 7.2 docs but struggling. I'm trying to figure out how to use FTP/SSL (FTPS) - just as a client. Can I do this in Python? Is everything I need in ftplib? Where else do

Re: which "GUI module" you suggest me to use?

2007-06-06 Thread Grant Edwards
On 2007-06-06, Samuel <[EMAIL PROTECTED]> wrote: > On Wed, 06 Jun 2007 00:22:40 +, Grant Edwards wrote: > >>> I know that WxPython work only under Windows and PyGTK work only under >>> Linux... >> >> You 'know' wrong. >> >> wxPython works fine under Windows, Linux and OSX. > > wxPython emulat

Can os.remove followed by os.path.isfile disagree?

2007-06-06 Thread ppaterson
Can os.path.isfile(x) ever return True after os.remove(x) has successfully completed? (Windows 2003, Python 2.3) We had a couple of failures in a server application that we cannot yet reproduce in a simple case. Analysis of the code suggests that the only possible explanation is that the followin

Re: Need a Little Help on Tkinter and Python

2007-06-06 Thread W. Watson
Thanks for your responses. I've located the URL from the post above and will check out the two books mentioned here. I used to do a lot of scientific programming, but now just concentrate on science. Martin Blume wrote: > "W. Watson" schrieb >> I have about a 1600 line Pythron program I'd like t

Re: PATH or PYTHONPATH under Windows ???

2007-06-06 Thread stef
Giuseppe Di Martino wrote: > Il Wed, 06 Jun 2007 12:01:13 +0200, stef ha scritto: > > >>> >>> >> I ran your program but it didn't solve the problem (running Python, >> embedded in Delphi). >> I'm beginning to get the feeling that Python installation is a very >> complex case. >> Anyw

Re: Who uses Python?

2007-06-06 Thread Cousin Stanley
> I mean other than sysadmins, programmers, and web-site developers? > You might try the Python Success Stories for a good source for finding a wide variety of Python users and usage http://pythonology.org/success -- Stanley C. Kitching Human Being Phoenix, Arizona ---

Re: Tkinter, tkMessagebox and overrideredirect

2007-06-06 Thread Eric Brunel
On Wed, 06 Jun 2007 14:26:12 +0200, <[EMAIL PROTECTED]> wrote: >> As an aside, having a window with overrideredirect(1) creating "normal" >> windows such as the one created via tkMessageBox.showinfo is asking for >> problems. What are you trying to do here? > > I just need a window without the titl

Re: Who uses Python?

2007-06-06 Thread anthro398
On Jun 4, 3:37 pm, walterbyrd <[EMAIL PROTECTED]> wrote: > I mean other than sysadmins, programmers, and web-site developers? > > I have heard of some DBAs who use a lot of python. > > I suppose some scientists. I think python is used in bioinformatics. I > think some math and physics people use py

Re: MoinMoin configuration

2007-06-06 Thread Eric S. Johansson
[EMAIL PROTECTED] wrote: > I have read through the ACL instructions on MoinMoin's site, but I > don't understand how to make it work. See > http://moinmoin.wikiwikiweb.de/HelpOnAccessControlLists > > To me it seems to be saying that you have to create a page before you > can set the ACL for it.

Re: Need a Little Help on Tkinter and Python

2007-06-06 Thread Martin Blume
"W. Watson" schrieb > I have about a 1600 line Pythron program I'd like to > make some simple mods to, but have really just a nodding > acquaintance with Python and Tkinter. > [...] > Let's change that. > The book "Learning Python" from O'Reilly is excellent. If you are into scientific progr

Re: which "GUI module" you suggest me to use?

2007-06-06 Thread brad
ZioMiP wrote: > I know that WxPython work only under Windows WxPython works everywhere for me. I have some screenshots from Windows 98 - Vista, Mac OSX, and Debian GNU/Linux... all running the exact same Python & wxPython code: http://filebox.vt.edu/users/rtilley/public/find_ssns/index.html

Re: PATH or PYTHONPATH under Windows ???

2007-06-06 Thread Diez B. Roggisch
> but why is everybody alwasy talking about the "environment variable > PYTHONPATH" ?? Because that variable can be used to additionally customize the search path. But that doesn't imply that it is _all_ there is about python search paths - and it would be pretty crappy if it was, because you can

Re: subprocess leaves child living

2007-06-06 Thread Michael Bentley
On Jun 6, 2007, at 7:11 AM, Thomas Dybdahl Ahle wrote: > Den Tue, 05 Jun 2007 17:41:47 -0500 skrev Michael Bentley: > >> On Jun 5, 2007, at 5:13 PM, Michael Bentley wrote: >> >> >>> On Jun 5, 2007, at 4:17 PM, Thomas Dybdahl Ahle wrote: >>> Den Tue, 05 Jun 2007 15:46:39 -0500 skrev Michael B

Re: Who uses Python?

2007-06-06 Thread wheezl
walterbyrd ha scritto: > I mean other than sysadmins, programmers, and web-site developers? > > I have heard of some DBAs who use a lot of python. > > I suppose some scientists. I think python is used in bioinformatics. I > think some math and physics people use python. > > I suppose some people

RE: Beginning Python

2007-06-06 Thread Sells, Fred
I find 3 elements contribute significantly to becoming competent in python 1. a decent IDE so you can see the big picture (multiple files and directories). I use Eclipse + PyDev because Eclipse supports other goodies like CVS. I'm sure other IDE's are as good if not better, but who has time to c

Re: Determinant of Large Matrix

2007-06-06 Thread montyphyton
James Stroud je napisao/la: > Hello All, > > I'm using numpy to calculate determinants of matrices that look like > this (13x13): > > [[ 0. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1.] > [ 1. 0. 1. 4. 1. 9. 4. 4. 1. 1. 4. 9. 4. 9.] > [ 1. 1. 0. 1. 4. 4. 9. 9. 4. 4

Reaching the real world

2007-06-06 Thread Blackwell, Gordon
Hallo Gregor, I have just come across your note "Reaching the real world" I have been trying to program the ELV M232 with VB, but so far without success. I would be very interested in your Python code if you still have it available. Would you please email it to: [EMAIL PROTECTED]

RE: c[:]()

2007-06-06 Thread Warren Stringer
': .' means ': ...' (its an outlook thing) -- http://mail.python.org/mailman/listinfo/python-list

RE: MySQL InterfaceError

2007-06-06 Thread Joe
>File "build/bdist.linux-i686/egg/MySQLdb/cursors.py", line 147, in execute >charset = db.character_set_name() > >InterfaceError: (0, '') We got it working. It was caused by passing a database connection to a module: import MySQLdb import module_name connection = MySQLdb.connect(

Re: Tkinter, tkMessagebox and overrideredirect

2007-06-06 Thread marcoberi
On Jun 6, 8:55 am, "Eric Brunel" <[EMAIL PROTECTED]> wrote: > Apparently: Eric, first of all, thanks! > def hello(self): > self.root.after_idle(self.root.lower) > tkMessageBox.showinfo("Popup", "Hello!") Well, this lowers the background frame but I want to keep it visible under the pop

Re: which "GUI module" you suggest me to use?

2007-06-06 Thread Samuel
On Wed, 06 Jun 2007 00:22:40 +, Grant Edwards wrote: >> I know that WxPython work only under Windows and PyGTK work only under >> Linux... > > You 'know' wrong. > > wxPython works fine under Windows, Linux and OSX. wxPython emulates Gtk (though using some native widgets, it also uses some

Re: *Naming Conventions*

2007-06-06 Thread Neil Cerutti
On 2007-06-06, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > Neil Cerutti a écrit : >> On 2007-06-04, Michael Hoffman <[EMAIL PROTECTED]> wrote: >>> Wildemar Wildenburger wrote: >>> I agree with Bruno that i and j should be used only for >>> indices, but I'm usually less terse than that. >> >>

Re: subprocess leaves child living

2007-06-06 Thread Thomas Dybdahl Ahle
Den Tue, 05 Jun 2007 17:41:47 -0500 skrev Michael Bentley: > On Jun 5, 2007, at 5:13 PM, Michael Bentley wrote: > > >> On Jun 5, 2007, at 4:17 PM, Thomas Dybdahl Ahle wrote: >> >>> Den Tue, 05 Jun 2007 15:46:39 -0500 skrev Michael Bentley: >>> But actually *that* is an orphan process. When

Re: PATH or PYTHONPATH under Windows ???

2007-06-06 Thread Giuseppe Di Martino
Il Wed, 06 Jun 2007 12:01:13 +0200, stef ha scritto: >> > I ran your program but it didn't solve the problem (running Python, > embedded in Delphi). > I'm beginning to get the feeling that Python installation is a very > complex case. > Anyway thanks. > In the original post you don't mentio

Re: *Naming Conventions*

2007-06-06 Thread Bruno Desthuilliers
Ninereeds a écrit : > Google Groups appears to have thrown away my original reply, so sorry > if this appears twice... > > On Jun 4, 9:51 pm, "[EMAIL PROTECTED]" > <[EMAIL PROTECTED]> wrote: > >> 'i' and 'j' are the canonical names for for loops indices in languages >> that don't support proper i

Re: function in a function accessing vars

2007-06-06 Thread Dustan
On Jun 6, 6:40 am, "Jorgen Bodde" <[EMAIL PROTECTED]> wrote: > Hi Diez, > > Thanks, I thought it worked similar to C++ where a higher compound > could access a lower section. It can 'access a lower section'; what it can't do is *change* that 'lower section'; in your example case with an int, this

  1   2   >