Re: Tkinter question

2005-06-14 Thread Martin Franklin
[EMAIL PROTECTED] wrote: > I'm sure there must be a way to do this, but I can't figure it out for > the life of me… I'm writing a program where I would like to use a > button's text field as part of an if statement. I set up my button like > this: > > i = [ "7", "8","9", "/", "4", "5", "6", "*

New WYSIWYG Python IDE in the works

2005-06-14 Thread root
Hello all I am currently developing a new WYSIWYG RAD tool for python. There are screenshots and a small video demo on the site. Please visit at http://www.geocities.com/visualfltk Cheers JMan -- http://mail.python.org/mailman/listinfo/python-list

Re: What is different with Python ?

2005-06-14 Thread Steven D'Aprano
Andrea Griffini wrote: > A friend of mine however told me that this principle that > I thought was fundamental for talking about science has > indeed been sacrified to get unification. I was told that > in physics there are current theories for which there > is no hypotetical experiment that could

Re: What is different with Python ?

2005-06-14 Thread Steven D'Aprano
Peter Hansen wrote: > Roy Smith wrote: > >> Steven D'Aprano <[EMAIL PROTECTED]> wrote: >> >>> High and low tides aren't caused by the moon. >> >> >> They're not??? > > > Probably he's referring to something like this, from Wikipedia, which > emphasizes that while tides are caused primarily by t

Re: What is different with Python ?

2005-06-14 Thread Steven D'Aprano
Roy Smith wrote: > Steven D'Aprano <[EMAIL PROTECTED]> wrote: > > >High and low tides aren't caused by the moon. > > > They're not??? Nope. They are mostly caused by the continents. If the Earth was completely covered by ocean, the difference between high and low tide would be about 10-14 inc

Re: What is different with Python ?

2005-06-14 Thread Michele Simionato
Andrea Griffini: >Wow... I always get surprises from physics. For example I >thought that no one could drop confutability requirement >for a theory in an experimental science... I mean that I >always agreed with the logic principle that unless you >tell me an experiment whose result could be a conf

Re: "also" to balance "else" ?

2005-06-14 Thread Ron Adam
Andrew Dalke wrote: > As someone else pointed out, that problem could be resolved in > some Python variant by using a different name, like "at end". > Too late for anything before P3K. It was pointed out to me the logic of the else is consistant with the if in reguard to the loop test it self, i

Filetoad.com Latest Software Virus and spyware

2005-06-14 Thread Filetoad.com
We are a new website providing  the Latest software and latest virus and spyware updates for your computer it will save you lots of time in the future please take a look thankyou. http://www.Filetoad.com   team This is a once only mailing , to remove from future newsgroup emailing please goto

Re: MySQLDBAPI

2005-06-14 Thread =?ISO-8859-1?Q?Gregory_Pi=F1ero?=
One other note, the few searches I've made that seem somewhat relevant talk about turning off something thread-safe? Is this something I can try even though I have very limited permissions on the server? On 6/14/05, Gregory Piñero <[EMAIL PROTECTED]> wrote: > Here's a list of all the files from

Re: MySQLDBAPI

2005-06-14 Thread =?ISO-8859-1?Q?Gregory_Pi=F1ero?=
Here's a list of all the files from the RPM extraction, maybe that helps too? [EMAIL PROTECTED] rpmmysql]$ dir -R .: usr ./usr: bin include lib ./usr/bin: comp_err mysql_config ./usr/include: mysql ./usr/include/mysql: chardefs.h m_ctype.hmy_net.h mysql.h sslopt-case.

Re: MySQLDBAPI

2005-06-14 Thread =?ISO-8859-1?Q?Gregory_Pi=F1ero?=
The closest thing I found was libmysqlclient.a in /home/gpinero/rpmmysql/usr/lib/mysql/ I added that path to my library_dir in setup.py but I still get the same error message when I do python2.4 setup.py build I really appriciate your help. I really want to start web development in python. Than

Re: What is different with Python ?

2005-06-14 Thread Andrew Dalke
Andrea Griffini wrote: > Wow... I always get surprises from physics. For example I > thought that no one could drop confutability requirement > for a theory in an experimental science... Some physicists (often mathematical physicists) propose alternate worlds because the math is interesting. Ther

Re: Dynamic class inheritance && something else

2005-06-14 Thread Chinook
On Tue, 14 Jun 2005 12:39:09 -0400, Vero wrote (in article <[EMAIL PROTECTED]>): > Hi. My name is Veronica, I am a master student at UNAM. I am working on > something related to Artificial Inteligence and I have been looking for the > most appropriated programming language to implement my algo

Weekly Python Patch/Bug Summary

2005-06-14 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 338 open ( -1) / 2861 closed ( +4) / 3199 total ( +3) Bugs: 909 open ( +1) / 5047 closed (+11) / 5956 total (+12) RFE : 188 open ( -1) / 170 closed ( +2) / 358 total ( +1) New / Reopened Patches __ byteorder

Re: collect data using threads

2005-06-14 Thread Peter Hansen
Toby Dickenson wrote: > But it might not "show up" until too late. > > The consumer thread that called get_data presumably does something with that > list, such as iterating over its contents. It might only "show up" after that > iteration has finished, when the consumer has discarded its refere

Re:Autoroll Fix Members Update Now

2005-06-14 Thread info
Attn Satellite tv tester,http://www.nagra2ready.com It is very urgent that you change your keys on your cards and fta units. The current keys are as follows. Dishnetwork Key 1 is active, changed TUE JUNE 14th, 2005 KEY0: 34 12 B8 ED 07 A7 CB C8 KEY1:0C 97 B4 37 5E 3F BE 81 It is also very impor

RE: Python in Games (was RE: [Stackless] Python in Games)

2005-06-14 Thread Delaney, Timothy C (Timothy)
Irmen de Jong wrote: > Also, alledgedly the new BattleField II uses Python in a way... > because I heard that you had to comment out a certain line > in a certain .py file to remove the time limit of the demo :-) Silly silly people - they should have at least had the launcher and that part in Pyr

pygtk question

2005-06-14 Thread RunLevelZero
Hopefully someone can help me out here. It's probably super simple but how do you select multiple items in a treeview? I have gtk.SELECTION_MULTIPLE set but of course that was enough. I have tried catching the ctrl button press but still nothing. Perhaps there is a better place to ask but I tho

Re: Python in Games (was RE: [Stackless] Python in Games)

2005-06-14 Thread Irmen de Jong
Patrick Down wrote: > My understanding is that the upcoming Civilization IV will have python > scripting. > Also, alledgedly the new BattleField II uses Python in a way... because I heard that you had to comment out a certain line in a certain .py file to remove the time limit of the demo :-) --

RE: Opening a drive folder from Python

2005-06-14 Thread Hughes, Chad O
I think you are talking about the following: from win32com.client import Dispatch path = raw_input('Type in a path: ') s=Dispatch('WScript.Shell') s.Run('Explorer %s'%path) Chad -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Henry Sent: Tuesday,

Re: Opening a drive folder from Python

2005-06-14 Thread Larry Bates
You should supply more information: What operating system? What do you mean by "drive folder"? Does this mean file dialog? Or perhaps you mean an Explorer Window? Larry Bates John Henry wrote: > Can somebody please tell me how to pop open a drive folder from a > Python script? > > Thanks. >

Re: Controlling assignation

2005-06-14 Thread Bruno Desthuilliers
Xavier Décoret a écrit : > Bruno Desthuilliers a écrit : > (snip) >> I really wonder what it can be ??? > > It's the ability to develop the equivalent of GeoNext (and much more) in > Python with a very nice syntax. This is nice, but this does not explain the why of your code snippet. >> >> Y

Opening a drive folder from Python

2005-06-14 Thread John Henry
Can somebody please tell me how to pop open a drive folder from a Python script? Thanks. -- John -- http://mail.python.org/mailman/listinfo/python-list

Re: Cause for using objects?

2005-06-14 Thread John Machin
John Heasly wrote: > >> John Heasly wrote: >> >>> Given: >>> [{"mugshot": "nw_gradspeaker4_0608", "width": 67.0, "height": >>> 96.0}, \ >>> {"mugshot": "nw_gradspeaker2_0608", "width": 67.0, "height": >>> 96.0}, \ >>> {"freehand": "b1.developreport.0614", "width": 154.0, "height": >>

Re: What is different with Python ?

2005-06-14 Thread Mike Meyer
Roy Smith <[EMAIL PROTECTED]> writes: > Mike Meyer <[EMAIL PROTECTED]> wrote: >> I've never seen someone explain why, for instance, string addition is >> O(n^2) beyond the very abstract "it creates a new string with each >> addition". No concrete details at all. > > I took a shot at that very qu

Re: What is different with Python ?

2005-06-14 Thread Roy Smith
Mike Meyer <[EMAIL PROTECTED]> wrote: > I've never seen someone explain why, for instance, string addition is > O(n^2) beyond the very abstract "it creates a new string with each > addition". No concrete details at all. I took a shot at that very question a while ago. Elephants never forget, a

Re: Python in Games (was RE: [Stackless] Python in Games)

2005-06-14 Thread Patrick Down
My understanding is that the upcoming Civilization IV will have python scripting. -- http://mail.python.org/mailman/listinfo/python-list

Re: how to use pyparsing for identifiers that start with a constant string

2005-06-14 Thread Kent Johnson
[EMAIL PROTECTED] wrote: > I am scanning text that has identifiers with a constant prefix string > followed by alphanumerics and underscores. I can't figure out, using > pyparsing, how to match for this. The example expression below seems to > be looking for whitespace between the 'atod' and the re

Re: Which Python Wiki engine?

2005-06-14 Thread Daniel Dittmar
Kenneth McDonald wrote: > I'm looking for a Wiki engine to set up for my company, so that we can > incrementally add user documentation for a fairly complex program, plus > allow users to add their own comments for the benefit of others. I'd > strongly prefer a Python-based Wiki, since that

Re: MySQLDBAPI

2005-06-14 Thread Daniel Dittmar
Gregory Piñero wrote: > building '_mysql' extension > gcc -pthread -shared build/temp.linux-i686-2.4/_mysql.o -lz > -lmysqlclient_r -o build/lib.linux-i686-2.4/_mysql.so > /usr/bin/ld: cannot find -lmysqlclient_r > collect2: ld returned 1 exit status > error: command 'gcc' failed with exit status 1

Re: Cause for using objects?

2005-06-14 Thread John Heasly
> John Heasly wrote: >> Given: >> [{"mugshot": "nw_gradspeaker4_0608", "width": 67.0, "height": >> 96.0}, \ >> {"mugshot": "nw_gradspeaker2_0608", "width": 67.0, "height": >> 96.0}, \ >> {"freehand": "b1.developreport.0614", "width": 154.0, "height": >> 210.0}, \ >> {"graphic": "

Re: eclipse, pydev and wxpython - standard output redirection ?

2005-06-14 Thread Philippe C. Martin
app = MyApp(False) app.MainLoop() will keep wxWidgets from using its own window. Grzegorz wrote: > Hello, I'm using eclipse with pydev plugin, I'm working on a program using > wxpython . > When I'm executing that application standard error output does not show in > eclipse console window - w

Re: Cause for using objects?

2005-06-14 Thread Michael Hoffman
John Heasly wrote: > Given: > [{"mugshot": "nw_gradspeaker4_0608", "width": 67.0, "height": 96.0}, \ > {"mugshot": "nw_gradspeaker2_0608", "width": 67.0, "height": 96.0}, \ > {"freehand": "b1.developreport.0614", "width": 154.0, "height": > 210.0}, \ > {"graphic": "bz_cafeparadiso_

RE: Python in Games (was RE: [Stackless] Python in Games)

2005-06-14 Thread Delaney, Timothy C (Timothy)
Dave LeCompte (really) wrote: >> Who is using Python in games >> >> Python has been used in a number of games, including >> >>* ToonTown - http://www.toontown.com/ >>* EveOnline - http://www.eve-online.com/ >>* Blade of Darkness - http://www.codemastersusa.com/blade/ Add to that: -

Re: What is different with Python ?

2005-06-14 Thread Mike Meyer
Andrea Griffini <[EMAIL PROTECTED]> writes: > On Mon, 13 Jun 2005 21:33:50 -0500, Mike Meyer <[EMAIL PROTECTED]> wrote: > >>But this same logic applies to why you want to teach abstract things >>before concrete things. Since you like concrete examples, let's look >>at a simple one: >> >> a = b +

Cause for using objects?

2005-06-14 Thread John Heasly
Given: [{"mugshot": "nw_gradspeaker4_0608", "width": 67.0, "height": 96.0}, \ {"mugshot": "nw_gradspeaker2_0608", "width": 67.0, "height": 96.0}, \ {"freehand": "b1.developreport.0614", "width": 154.0, "height": 210.0}, \ {"graphic": "bz_cafeparadiso_0613", "width":

how to use pyparsing for identifiers that start with a constant string

2005-06-14 Thread phil_nospam_schmidt
I am scanning text that has identifiers with a constant prefix string followed by alphanumerics and underscores. I can't figure out, using pyparsing, how to match for this. The example expression below seems to be looking for whitespace between the 'atod' and the rest of the identifier. identifier

Tkinter question

2005-06-14 Thread Nicholas . Vaidyanathan
Title: Tkinter question I'm sure there must be a way to do this, but I can't figure it out for the life of me… I'm writing a program where I would like to use a button's text field as part of an if statement. I set up my button like this:  i = [ "7", "8","9", "/", "4", "5", "6", "*", "1", "2

Re: Where is Word?

2005-06-14 Thread guy lateur
Thanks for all the feedback, everyone. What a helpfull community this is! It's actually kinda hard keeping up with y'all.. Cheers, g "Guy Lateur" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > Hi all, > > I need a way to get the path where MS Word/Office has been installed. I

Re: Where is Word?

2005-06-14 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Tomasz Lisowski <[EMAIL PROTECTED]> wrote: . . . >import win32com.client >wordCOMID = "Word.Application" > >word = win32com.client.Dispatch(wordCOMID) > >Then you can use the methods of the word

Re: Using PAMIE to upload and download files...is it possible?

2005-06-14 Thread scrimp
Theres one problem with the code that I saw off the bat. My PAMIE script takes IE all the way up the window thats called "File Download". It has 4 buttons Open, Save, Cancel, More Info. The code u gave to me is for the next window I reach AFTER I click manually on Save. It brings up the Save As win

CodeWarrior Automation with Python?

2005-06-14 Thread [EMAIL PROTECTED]
When looking for a pythonic way to convert some Mac codewarrior projects, I came across some files hidden deap into the Python.Framework under: plat-mac/lib-scriptpackages/CodeWarrior What is this stuff? Would any of this be helpful in my search for an automated conversions of the exported xml

Re: Thread priorities?

2005-06-14 Thread Tim Peters
[Gary Robinson] > In the application we're writing (http://www.goombah.com) it would be > helpful for us to give one thread a higher priority than the others. We > tried the recipe here: > http://groups-beta.google.com/group/comp.lang.python/msg/6f0e118227a5f5de > and it didn't seem to work for us.

Re: Where is Word?

2005-06-14 Thread guy lateur
> No, the subject is a good way to refer to past posts. I just meant > forcing us to dig back, when the post may no longer even be on our > servers, is not helpful. I agree, my bad. > (Perhaps I should ask why anyone would want to waste time putting > arbitrary fonts and colours and such aro

eclipse, pydev and wxpython - standard output redirection ?

2005-06-14 Thread Grzegorz
Hello, I'm using eclipse with pydev plugin, I'm working on a program using wxpython . When I'm executing that application standard error output does not show in eclipse console window - wxpython seems to redirect standard output to some another window , and closes that window immediately, so I

Re: What is different with Python ?

2005-06-14 Thread Andrea Griffini
On 14 Jun 2005 00:37:00 -0700, "Michele Simionato" <[EMAIL PROTECTED]> wrote: >It looks like you do not have a background in Physics research. >We *do* build the world! ;) > > Michele Simionato Wow... I always get surprises from physics. For example I thought that no one could drop

Re: Tiff Image Reader/writer

2005-06-14 Thread Fredrik Lundh
"PyPK" <[EMAIL PROTECTED]> wrote: > I get a decoder error when i do a get pixel on the Image > > >>> im.getpixel((12,34)) > > Traceback (most recent call last): > File "", line 1, in ? > File "Image.py", line 858, in getpixel > self.load() > File "/usr/local/lib/python2.4/site-packages/P

Re: "also" to balance "else" ?

2005-06-14 Thread Ron Adam
Sion Arrowsmith wrote: > Fredrik Lundh <[EMAIL PROTECTED]> wrote: >>nope. else works in exactly the same way for all statements that >>support it: if the controlling expression is false, run the else suite >>and leave the statement. > > > For example, consider the behaviour of: > > condition =

Re: collect data using threads

2005-06-14 Thread James Tanis
Previously, on Jun 14, Peter Hansen said: # James Tanis wrote: # > I may be wrong here, but shouldn't you just use a stack, or in other # > words, use the list as a stack and just pop the data off the top. I # > believe there is a method pop() already supplied for you. # # Just a note on term

contract python developer in Campbell is needed at Stratalight

2005-06-14 Thread Patrick Melone
I understand that job listings are ok on this board so…   StrataLight Communications, a 40 GB/s DWDM transport system company, develops innovative fiber transmission subsystems for use by carriers in building next-generation long-haul optical networks. We are located in Campbell CA. and a

Re: What is different with Python ?

2005-06-14 Thread Andrew Dalke
Peter Maas wrote: > Yes, but what did you notice first when you were a child - plants > or molecules? I imagine little Andrew in the kindergarten fascinated > by molecules and suddenly shouting "Hey, we can make plants out of > these little thingies!" ;) One of the first science books that really

Thread priorities?

2005-06-14 Thread Gary Robinson
In the application we're writing (http://www.goombah.com) it would be helpful for us to give one thread a higher priority than the others. We tried the recipe here: http://groups-beta.google.com/group/comp.lang.python/msg/6f0e118227a5f5de and it didn't seem to work for us. We don't need many

Re: Is Python Suitable for Large Find & Replace Operations?

2005-06-14 Thread Gilles Lenfant
rbt a écrit : > Here's the scenario: > > You have many hundred gigabytes of data... possible even a terabyte or > two. Within this data, you have private, sensitive information (US > social security numbers) about your company's clients. Your company has > generated its own unique ID numbers to

Re: extending Python base class in C

2005-06-14 Thread Scott David Daniels
harold fellermann wrote: > ... > This gives me a pointer to the class I want to use as base class. > Does anyone know how to assign this to the extension class? I tried > to build a tuple (BaseClass,) and assign it (after the respective > PyType_Ready call) ... I think this is your problem -- call

Re: What is different with Python ?

2005-06-14 Thread Magnus Lycka
Peter Maas wrote: > Learning is investigating. By top-down I mean high level (cat, > dog, table sun, sky) to low level (molecules, atoms, fields ...). Aha. So you must learn cosmology first then. I don't think so. ;) I don't know if you really think that you learn things top down, but I doubt tha

ANN: Version 0.9 of NetEpi Case Manager

2005-06-14 Thread Tim Churches
Version 0.9 of NetEpi Case Manager is now available via http://www.netepi.org NetEpi Case Manager is a tool (built using Python, the Albatross Web application framework for Python, and PostgreSQL) for securely collecting structured information about cases and contacts of communicable (and other) d

Re: Tough Scrolling question with Tkinter

2005-06-14 Thread Eugene Druker
Hi Saqib, AFAIU, you want to change the scrollregion, not the size. So try: def _b1PressEvt(event): x0,y0,x1,y1 = canvas.config('scrollregion')[4] print x0,y0,x1,y1 canvas.config(scrollregion=(int(x0),int(y0),int(x1)+100,int(y1))) First click will show nothing, because first change k

Re: MySQLDBAPI

2005-06-14 Thread =?ISO-8859-1?Q?Gregory_Pi=F1ero?=
While waiting for answers to the above questions, I went ahead and tried the following: 1. Downloaded the RPM for the server's version of MySql: http://downloads.mysql.com/archives/mysql-3.23/MySQL-devel-3.23.57-1.i386.rpm 2. Copy file to server, and extract to a new folder i made called rpmmysql

Re: collect data using threads

2005-06-14 Thread Kent Johnson
Qiangning Hong wrote: > I actually had considered Queue and pop() before I wrote the above code. > However, because there is a lot of data to get every time I call > get_data(), I want a more CPU friendly way to avoid the while-loop and > empty checking, and then the above code comes out. But I a

Re: What is different with Python ? (OT I guess)

2005-06-14 Thread Magnus Lycka
Scott David Daniels wrote: > Magnus Lycka wrote: > >> It seems to me that *real* computer scientists are very rare. > > I suspect the analysis of algorithms people are among that group. > It is intriguing to me when you can determine a lower and upper > bound on the time for the best solution to

Re: extending Python base class in C

2005-06-14 Thread harold fellermann
> "harold fellermann" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > Hi all, > > I once read that it is possible to use a python base class for a C > extension class. On 14.06.2005, at 09:29, Grigoris Tsolakidis wrote: > There was good article of how to do this on DDJ home page

Re: collect data using threads

2005-06-14 Thread Toby Dickenson
On Tuesday 14 June 2005 17:47, Peter Hansen wrote: > Kent Johnson wrote: > > Peter Hansen wrote: > >> That will not work, and you will get data loss, as Jeremy points out. > >> > > Can you explain why not? self.data is still bound to the same list as x. > > At least if the execution sequence is x

Re: Is Python Suitable for Large Find & Replace Operations?

2005-06-14 Thread Steve Holden
Brian wrote: > Hi Rbt, > > To give an example of processing a lot of data, I used Python to read > and process every word in a single text file that contained the entire > King James Bible version. It processed it within about one second -- > split the words, etc. Worked quite well. > > Hope

Re: Problem with simple C extension

2005-06-14 Thread harold fellermann
On 14.06.2005, at 18:58, harold fellermann wrote: > Am I stupid or what? Yes I was ... > // PhysicsDPD instance structure > typedef struct { >PyObject_HEAD >double cutoff; >double friction; >double noise; >double dt; > } hyper_PhysicsDPD; > > > //

Re: collect data using threads

2005-06-14 Thread Peter Hansen
Peter Hansen wrote: > James Tanis wrote: > >> I may be wrong here, but shouldn't you just use a stack, or in other >> words, use the list as a stack and just pop the data off the top. I >> believe there is a method pop() already supplied for you. > > Just a note on terminology here. I believe

Re: collect data using threads

2005-06-14 Thread Qiangning Hong
James Tanis wrote: > # > > > A class Collector, it spawns several threads to read from serial port. > # > > > Collector.get_data() will get all the data they have read since last > # > > > call. Who can tell me whether my implementation correct? > # > > > > # Here's the original code: > #

Re: collect data using threads

2005-06-14 Thread Peter Hansen
Kent Johnson wrote: > Peter Hansen wrote: >> That will not work, and you will get data loss, as Jeremy points out. >> > Can you explain why not? self.data is still bound to the same list as x. > At least if the execution sequence is x = self.data >self.data.append(a_piece_of_da

Problem with simple C extension

2005-06-14 Thread harold fellermann
Am I stupid or what? I want to implement a very simple extension class in C (as I did it many times before...) The python equivalent of my class whould look like: class physics_DPD : def __init__(self,cutoff,friction,noise,dt) : self.cutoff = cutoff self.fr

Re: collect data using threads

2005-06-14 Thread Peter Hansen
James Tanis wrote: > I may be wrong here, but shouldn't you just use a stack, or in other > words, use the list as a stack and just pop the data off the top. I > believe there is a method pop() already supplied for you. Just a note on terminology here. I believe the word "stack" generally ref

Re: Using PAMIE to upload and download files...is it possible?

2005-06-14 Thread erinhouston
So here is a class that should do what you want. I don't use pamie we use a in house python ie driver. But it has the same problem. Here is a class that should do what you want. import winGuiAuto import threading class SaveAsDocDialog (threading.Thread): '''Some Internet Explorer dialog w

Dynamic class inheritance && something else

2005-06-14 Thread Vero
Hi.  My name is Veronica, I am a master student at UNAM.  I am working on something related to Artificial Inteligence and I have been looking for the most appropriated programming language to implement my algorithms.  I found python to be very close to what I need, but there are still a couple of

Re: ZCatalog for standalone Zodb?

2005-06-14 Thread Almad
Thomas Guettler wrote: > Hi, Hi, > There was someone who said that he has ported ZCatalog to "standalone" > ZODB. Look in the archive of zodb-dev. Thanks, I'll try. > AFAIK IndexedCatalog is still in > development. Maybe the mailing list is calm, but I think it is not > orphaned. As devel

Re: sudo open() ? (python newbee question)

2005-06-14 Thread Dan Sommers
On Tue, 14 Jun 2005 16:18:19 +0300, Christos "TZOTZIOY" Georgiou <[EMAIL PROTECTED]> wrote: > I believe that the suid bit on scripts (either *sh or python) is > completely ignored on most *nix systems. Most *modern* systems, yes. ;-) I must be getting old. :-( Regards, Dan -- Dan Sommers

Re: collect data using threads

2005-06-14 Thread James Tanis
Previously, on Jun 14, Jeremy Jones said: # Kent Johnson wrote: # # > Peter Hansen wrote: # > # > > Qiangning Hong wrote: # > > # > > # > > > A class Collector, it spawns several threads to read from serial port. # > > > Collector.get_data() will get all the data they have read since last

Re: Controlling assignation

2005-06-14 Thread Terry Reedy
"Xavier Décoret" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> class A( object): >> def __init__(self, value): >> self.value = value >More seriously, try to do this with your simpler approach. >a = A(4) >b = A(lambda : a.x+5) >a.x = 2 >print b.x # I want this to be 7, not

Re: Using httplib to read a file online

2005-06-14 Thread Fredrik Lundh
Oyvind Ostlund wrote: > There is a server called noteme.com and a file called > index.php on it, but why doesn't it work. If I changed > it to 'vbforums.com' and 'index.php' then it worked. server.putrequest('GET', filename)# send request andheaders + server.putheader('Host', se

Re: collect data using threads

2005-06-14 Thread Jeremy Jones
Kent Johnson wrote: Peter Hansen wrote: Qiangning Hong wrote: A class Collector, it spawns several threads to read from serial port. Collector.get_data() will get all the data they have read since last call. Who can tell me whether my implementation correct?

Re: Hopefully simple regular expression question

2005-06-14 Thread [EMAIL PROTECTED]
Thank you! I had totally forgot about that. It works. -- http://mail.python.org/mailman/listinfo/python-list

Tough Scrolling question with Tkinter

2005-06-14 Thread syed_saqib_ali
Please take a look at and run the code snippet shown below. It creates a canvas with vertical & Horizontal scroll-bars. If you shrink the window to smaller than the area of the canvas, the scroll-bars work as advertised. That's great. However, if you click the Left Mouse button, it calls code whi

Re: MySQLDBAPI

2005-06-14 Thread =?ISO-8859-1?Q?Gregory_Pi=F1ero?=
see below On 6/10/05, Daniel Dittmar <[EMAIL PROTECTED]> wrote: > Gregory Piñero wrote: > > Is that something I can install all to my home directory? > > If you have a similar Linux distribution at home, simply build the mysql > extension on that machine and then copy it to the web server. I hav

Re: implicit variable declaration and access

2005-06-14 Thread Ali Razavi
Steven D'Aprano wrote: > On Mon, 13 Jun 2005 12:18:31 -0400, Ali Razavi wrote: > > >>Is there any reflective facility in python >>that I can use to define a variable with a >>name stored in another variable ? >>like I have : >>x = "myVarName" >> >>what can I do to declare a new variable with the

Re: windows directory

2005-06-14 Thread Trent Mick
[Peter Hansen wrote] > Richard Lewis wrote: > > If you want to know where a particular directory is (on a Windows > > 'drive') you could use: > > > > for drive_label in ["C", "D"]: > > if "Program Files" in os.listdir(drive_label + ":/"): return > > drive_label > > This would cause troubl

Using httplib to read a file online

2005-06-14 Thread Oyvind Ostlund
I am trying to read a file online, and was just testing a bit. This is what I tried. -- import sys, httplib showlines = 6 try: servername, filename = sys.argv[1:] # cmdline args? except: servername, filename = 'noteme.com', '/index.php' prin

Re: What is different with Python ? (OT I guess)

2005-06-14 Thread Scott David Daniels
Magnus Lycka wrote: > It seems to me that *real* computer scientists are very rare. I suspect the analysis of algorithms people are among that group. It is intriguing to me when you can determine a lower and upper bound on the time for the best solution to a problem relatively independent of the pa

Re: What is different with Python ? (OT I guess)

2005-06-14 Thread Michele Simionato
Magnus Lycka: > While scientists do build and create things, > the ultimate goal of science is understanding. Scientists build > so that they can learn. Programmers and engineers learn so that > they can build. Well put! I am going to add this to my list of citations :) Michele Simio

Re: [Python-Dev] A bug in pyconfig.h under Linux?

2005-06-14 Thread Fernando Perez
Jeff Epler wrote: > [sent to python-list and poster] > > Did you follow the direction that Python.h be included before any system > header? > > This is mentioned at least in > http://docs.python.org/ext/simpleExample.html OK, I'll try to make it work this way. It's not totally trivial, b/c

Re: collect data using threads

2005-06-14 Thread Kent Johnson
Peter Hansen wrote: > Qiangning Hong wrote: > >> A class Collector, it spawns several threads to read from serial port. >> Collector.get_data() will get all the data they have read since last >> call. Who can tell me whether my implementation correct? > > [snip sample with a list] > >> I am not

Re: Problem with 'struct' module

2005-06-14 Thread Matt Feinstein
On Tue, 14 Jun 2005 14:24:56 -, Grant Edwards <[EMAIL PROTECTED]> wrote: > >Your example is not using standard alignment. It's using >native alignment: > >By default, C numbers are represented in the machine's native >format and byte order, and properly aligned by skipping pad >by

Re: [Python-Dev] A bug in pyconfig.h under Linux?

2005-06-14 Thread Jeff Epler
[sent to python-list and poster] Did you follow the direction that Python.h be included before any system header? This is mentioned at least in http://docs.python.org/ext/simpleExample.html It's a crummy thing for Python to insist on, but if you can re-organize your headers to do this it sho

Re: What is different with Python ? (OT I guess)

2005-06-14 Thread Bill Mill
On 6/14/05, Magnus Lycka <[EMAIL PROTECTED]> wrote: > Andrew Dalke wrote: > > Andrea Griffini wrote: > > > >>This is investigating. Programming is more similar to building > >>instead (with a very few exceptions). CS is not like physics or > >>chemistry or biology where you're given a result (the w

Re: Using PAMIE to upload and download files...is it possible?

2005-06-14 Thread scrimp
I dont see the modaltest.py would u please send me a link to it. I still have not been able to gets winGuiAuto to work. I have pamie logging into a site, navigating to the downloads section, and clicking the link of the file to download and it stops right there. I am downloading a zip file and the

Re: ZCatalog for standalone Zodb?

2005-06-14 Thread Thomas Guettler
Am Tue, 14 Jun 2005 11:45:30 +0200 schrieb Almad: > Hello, > > is ZCatalog available for standalone zodb? As far as I read tutorial, the > relation to zope is obvious. > > I knew there is IndexedCatalog, but its not developed any more...and without > indexing, oodbms are unusable for cms, imo.

Re: Problem with 'struct' module

2005-06-14 Thread Grant Edwards
On 2005-06-14, Matt Feinstein <[EMAIL PROTECTED]> wrote: > Using the 'struct' module (Win32, python version 2.4.1)-- > > The library documentation says that 'no alignment is required > for any type'. Right. It says that for Standard alignment, and that's correct. > However, struct.calcsize('fd'

Re: Geometry library

2005-06-14 Thread Alex Gittens
The Polygon library for Python: http://www.dezentral.de/warp.html?http://www.dezentral.de/soft/Polygon/index.html provides some support for dealing with polygons, which seems to be the only hard thing on this list. The rest you should be able to implement easily. Alex On 6/14/05, Cyril BAZIN <[EM

Re: Going crazy...

2005-06-14 Thread Scott David Daniels
Jan Danielsson wrote: > Gary Herron wrote: >>... a more recent addition to the language is Sets, ... >from sets import Set >Set([1,2,3,4,5,6]) - Set([2,3,6]) >> >>Set([1, 4, 5]) If you are using 2.4 or later, you can simply use "set" without importing anything. set(['apple', 'orange'

Problem with 'struct' module

2005-06-14 Thread Matt Feinstein
Using the 'struct' module (Win32, python version 2.4.1)-- The library documentation says that 'no alignment is required for any type'. However, struct.calcsize('fd') gives 16 while struct.calcsize('df') gives 12, implying that double precision data has to start on a double-word boundary. Matt F

Re: implicit variable declaration and access

2005-06-14 Thread Scott David Daniels
Tom Anderson wrote: > ... If it's not, try: > x = "myVarName" > y = "myVarValue" > locals()[x] = y Sorry, this works with globals(), but not with locals(). There isn't a simple way to fiddle the locals (the number is determined when the function is built). I do, however, agree with you about what

Re: What is different with Python ? (OT I guess)

2005-06-14 Thread Magnus Lycka
Andrew Dalke wrote: > Andrea Griffini wrote: > >>This is investigating. Programming is more similar to building >>instead (with a very few exceptions). CS is not like physics or >>chemistry or biology where you're given a result (the world) >>and you're looking for the unknown laws. In programming

Re: What is different with Python ?

2005-06-14 Thread Claudio Grondi
> > High and low tides aren't caused by the moon. > They're not??? I suppose, that the trick here is to state, that not the moon, but the earth rotation relative to the moon causes it, so putting the moon at cause is considered wrong, because its existance alone were not the cause for high and low

Re: What is different with Python ?

2005-06-14 Thread Peter Maas
Andrew Dalke schrieb: > Peter Maas wrote: > >>I think Peter is right. Proceeding top-down is the natural way of >>learning (first learn about plants, then proceed to cells, molecules, >>atoms and elementary particles). > > > Why in the world is that way "natural"? I could see how biology > coul

  1   2   >