Re: Class Variable Access and Assignment

2005-11-07 Thread Antoon Pardon
Op 2005-11-07, Christopher Subich schreef <[EMAIL PROTECTED]>: > Antoon Pardon wrote: >> Op 2005-11-04, Christopher Subich schreef <[EMAIL PROTECTED]>: >>>it's the Python >>>idiosyncracy about operations on mutable types. In this case, += >>>mutates an object, while + returns a new one -- as by

how to stop a loop with ESC key? [newbie]

2005-11-07 Thread mo
Can somebody explain how to stop a WHILE loop in running program by pressing ESC key? mo -- http://mail.python.org/mailman/listinfo/python-list

Re: socket receive file does not match sent file

2005-11-07 Thread Irmen de Jong
[EMAIL PROTECTED] wrote: > when I test the two program in the same OS, > i mean from a redhat 9 OS to a redhat 9 OS, > It's ok. receivefile match sent file. > > > But when I run receiver on a Redhat 9, > and send file from a windows XP, > the received file's size is randomized. > > May be that

Re: Newbie Alert: Help me store constants pythonically

2005-11-07 Thread Nicola Larosa
> Also my config files have (a tiny bit of) nested > structure, such as: > > Model1( >numBumps = 1 >sizeOfBumps = 2 >transversePlanes = [ > Plane(type=3, z=4), > Plane(type=5, z=6), > Plane(type=3, z=8) > ] > ) > > which I'm not sure the .ini format can eas

Re: modifying source at runtime - jython case

2005-11-07 Thread Jan Gregor
Kent Johnson wrote: > Jan Gregor wrote: > >> my typical scenario is that my swing application is running, and i see >> some error or chance for improvement - modify sources of app, stop and >> run >> application again. >> so task is to reload class defitions (from source files) and modify also >>

os.path.getmtime on winXP

2005-11-07 Thread Jorg Rødsjø
[sorry to those reading twice, but I just realised that I had posted this after mucking about with the date on my machine to try to figure this out -- so the message probably went into last months messages for most people including me.] Hi I'm trying to use os.path.getmtime to check if a file

Re: R.I.P. Vaults of Parnassus?

2005-11-07 Thread Erik Max Francis
aum wrote: > The Vaults of Parnassus site: > http://www.vex.net/parnassus/ > has been down for several days, with no resolution available for the > vex.net domain. It's working fine here. -- Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/ San Jose, CA, USA && 37 20 N 121 53

Re: R.I.P. Vaults of Parnassus?

2005-11-07 Thread Steve Holden
aum wrote: > Hi, > > The Vaults of Parnassus site: > http://www.vex.net/parnassus/ > has been down for several days, with no resolution available for the > vex.net domain. > > That site was a treasure-trove of Python resources, with a decent search > engine. > > Does anyone know if it'll be comi

Re: Returning a value from a Tk dialog

2005-11-07 Thread Fredrik Lundh
Gordon Airporte wrote: > The dialogs in tkColorChooser, tkFileDialog, etc. return useful values > from their creation somehow, so I can do stuff like this: > > filename = tkFileDialog.askopenfilename( master=self ) > > I would like to make a Yes/No/Cancel dialog that can be used the same > way (re

R.I.P. Vaults of Parnassus?

2005-11-07 Thread aum
Hi, The Vaults of Parnassus site: http://www.vex.net/parnassus/ has been down for several days, with no resolution available for the vex.net domain. That site was a treasure-trove of Python resources, with a decent search engine. Does anyone know if it'll be coming back up, or if it's mirrored a

ANN: C++ support for Pyrex

2005-11-07 Thread aum
Hi, Many Pyrex users are grateful for the ability to seamlessly integrate Python and C code without the menial tedium of hand-coding extensions in pure C. However, Pyrex has a frustrating lack of C++ support, something its esteemed author doesn't yet have the time to fix. As an interim solution,

Re: PyFLTK - an underrated gem for GUI projects

2005-11-07 Thread aum
On Mon, 07 Nov 2005 09:10:32 -0200, Jorge Godoy wrote: > Installing things mean, usually: 8>< Distilling what you've said, it would appear the essence of your argument is "PyFLTK is less desirable because it's not popular", an argument which, despite a level of pragmatic truth, does contain more

Re: gmpy 1.01 rc near... anybody wanna test>

2005-11-07 Thread Alex Martelli
<[EMAIL PROTECTED]> wrote: > Everything works fine with v1.16. I'm sure I was doing something wrong. > I shouldn't be testing that late at night. ;-) > > It looks like the warning about "tp_compare" has been fixed. I didn't touch tp_compare specifically, so the fix must have been a side effect (

Re: problem generating rows in table

2005-11-07 Thread s99999999s2003
thanks for all the help. problem solved by taking out range(). -- http://mail.python.org/mailman/listinfo/python-list

Re: problem generating rows in table

2005-11-07 Thread Mike Meyer
[EMAIL PROTECTED] writes: > hi > i wish to generate a table using cgi > toprint = [('nickname', 'justme', 'someplace')] > print ''' > > User > Name > Address > > > ''' > > for i in range(0,len(toprint)-1

Re: gmpy 1.01 rc near... anybody wanna test>

2005-11-07 Thread casevh
Everything works fine with v1.16. I'm sure I was doing something wrong. I shouldn't be testing that late at night. ;-) It looks like the warning about "tp_compare" has been fixed. I will try to build a version for Windows, but that may take me a day or two. Thanks for the updates to gmpy! Case

Re: problem generating rows in table

2005-11-07 Thread [EMAIL PROTECTED]
len(toprint) -1 seems to be 0 so it seems that the loops are skipped ? why not just : for x in toprint: for y in x: print "%s" % y these suffix things are very prone to error. [EMAIL PROTECTED] wrote: > hi > i wish to generate a table using cgi > toprint = [('nickname', 'justme', 'someplac

Re: overloading *something

2005-11-07 Thread Ron Adam
Alex Martelli wrote: > Ron Adam <[EMAIL PROTECTED]> wrote: > > >>James Stroud wrote: >>>And, how about the "**something" operator? >>> >>>James >> >>A dictionary would be pretty much the same except subclassed from a >>dictionary of course. > > > I believe this one is correct (but I have no

Re: overloading *something

2005-11-07 Thread James Stroud
On Monday 07 November 2005 20:36, Alex Martelli wrote: > > > I've looked at getitem, getslice, and iter. What is it if not one of > > > these? > > Obviously James hadn't looked at __iter__ in the RIGHT way! I was attempting to re-define iter of a subclassed list, to find the "magic" method, but i

Re: problem generating rows in table

2005-11-07 Thread Steve Holden
[EMAIL PROTECTED] wrote: > hi > i wish to generate a table using cgi > toprint = [('nickname', 'justme', 'someplace')] > print ''' > > User > Name > Address > > > ''' > > for i in range(0,len(toprint)-1

Re: BayPIGgies: November 10, 7:30pm (Google)

2005-11-07 Thread Alex Martelli
Aahz <[EMAIL PROTECTED]> wrote: > The next meeting of BayPIGgies will be Thurs, November at 7:30pm at > Google (Bldg 43, room Tunis). 1600 Amphitheater Parkway in Mountain View (CA), btw. > Hasan Diwan will demonstrate a prototype GPS system written in Python. > Let's all work to convince him t

Re: overloading *something

2005-11-07 Thread Leif K-Brooks
James Stroud wrote: > Hello All, > > How does one make an arbitrary class (e.g. class myclass(object)) behave like > a list in method calls with the "*something" operator? What I mean is: > > myobj = myclass() > > doit(*myobj) Make it iterable: >>> class Foo(object): ... def __iter__(se

Re: Using python for writing models: How to run models in restricted python mode?

2005-11-07 Thread vinjvinj
This can not be done at compile time but can be cought at execution time on linux by the following recipe: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/307871 vinjvinj -- http://mail.python.org/mailman/listinfo/python-list

Re: overloading *something

2005-11-07 Thread Alex Martelli
Ron Adam <[EMAIL PROTECTED]> wrote: > James Stroud wrote: > > > Hello All, > > > > How does one make an arbitrary class (e.g. class myclass(object)) behave > > like a list in method calls with the "*something" operator? What I mean > > is: > > You need to base myclass on a list if I understand

Re: overloading *something

2005-11-07 Thread James Stroud
On Monday 07 November 2005 20:21, Robert Kern wrote: > James Stroud wrote: > > Hello All, > > > > How does one make an arbitrary class (e.g. class myclass(object)) behave > > like a list in method calls with the "*something" operator? What I mean > > is: > > > > myobj = myclass() > > > > doit(*myob

problem generating rows in table

2005-11-07 Thread s99999999s2003
hi i wish to generate a table using cgi toprint = [('nickname', 'justme', 'someplace')] print ''' User Name Address ''' for i in range(0,len(toprint)-1): for j in range(0,len(toprint[0])-1): print

Re: Returning a value from a Tk dialog

2005-11-07 Thread Ron Adam
Gordon Airporte wrote: > The dialogs in tkColorChooser, tkFileDialog, etc. return useful values > from their creation somehow, so I can do stuff like this: > > filename = tkFileDialog.askopenfilename( master=self ) > > I would like to make a Yes/No/Cancel dialog that can be used the same > wa

Re: overloading *something

2005-11-07 Thread Ron Adam
James Stroud wrote: > Hello All, > > How does one make an arbitrary class (e.g. class myclass(object)) behave like > a list in method calls with the "*something" operator? What I mean is: You need to base myclass on a list if I understand your question. class myclass(list): def __init__

Re: overloading *something

2005-11-07 Thread Robert Kern
James Stroud wrote: > Hello All, > > How does one make an arbitrary class (e.g. class myclass(object)) behave like > a list in method calls with the "*something" operator? What I mean is: > > myobj = myclass() > > doit(*myobj) > > I've looked at getitem, getslice, and iter. What is it if not o

BayPIGgies: November 10, 7:30pm (Google)

2005-11-07 Thread Aahz
The next meeting of BayPIGgies will be Thurs, November at 7:30pm at Google (Bldg 43, room Tunis). Hasan Diwan will demonstrate a prototype GPS system written in Python. Let's all work to convince him that he doesn't need to rewrite it in Java! BayPIGgies meetings alternate between IronPort (San B

Re: Regular expression question -- exclude substring

2005-11-07 Thread Bengt Richter
On Mon, 7 Nov 2005 16:38:11 -0800, James Stroud <[EMAIL PROTECTED]> wrote: >On Monday 07 November 2005 16:18, [EMAIL PROTECTED] wrote: >> Ya, for some reason your non-greedy "?" doesn't seem to be taking. >> This works: >> >> re.sub('(.*)(00.*?01) target_mark', r'\2', your_string) > >The non-greed

overloading *something

2005-11-07 Thread James Stroud
Hello All, How does one make an arbitrary class (e.g. class myclass(object)) behave like a list in method calls with the "*something" operator? What I mean is: myobj = myclass() doit(*myobj) I've looked at getitem, getslice, and iter. What is it if not one of these? And, how about the "**some

Re: Using python for writing models: How to run models in restricted python mode?

2005-11-07 Thread Paul Rubin
"vinjvinj" <[EMAIL PROTECTED]> writes: > No. I was hoping to leverage the work done for restricted pythonscript > by zope at: > > http://www.zope.org/Control_Panel/Products/PythonScripts/Help/PythonScript.py How does Pythonscript deal with xxx = 'x' * 10 as a memory DOS attack? -- htt

Re: So, Which Version is Suitable for Beginners

2005-11-07 Thread [EMAIL PROTECTED]
I have found my novice Linux users take to SUSE (either Gnome or KDE) readily. Probably because the devfs interfaces to the windows interface readily. -- http://mail.python.org/mailman/listinfo/python-list

Re: Using Which Version of Linux

2005-11-07 Thread [EMAIL PROTECTED]
Magnus Lycka wrote: > [EMAIL PROTECTED] wrote: > > ok, i m going to use Linux for my Python Programs, mainly because i > > need to see what will these fork() and exec() do. So, can anyone tell > > me which flavour of linux i should use, some say that Debian is more > > programmer friendly, or shold

Re: Using python for writing models: How to run models in restricted python mode?

2005-11-07 Thread vinjvinj
No. I was hoping to leverage the work done for restricted pythonscript by zope at: http://www.zope.org/Control_Panel/Products/PythonScripts/Help/PythonScript.py which is similar to what I want to do as well. vinjvinj -- http://mail.python.org/mailman/listinfo/python-list

Re: PYTHON LOOSING FOR JAVA???????

2005-11-07 Thread Steven D'Aprano
Alex Martelli wrote: > Since Sun's existing StarOffice supports Python, _and_ Google is well > known as an enthusiastic endorser of Python > (http://www.python.org/Quotes.html etc etc), why would any possible > cooperation between Sun's Office apps, and Google, cause anybody to > _worry_ about "th

Re: Regular expression question -- exclude substring

2005-11-07 Thread James Stroud
On Monday 07 November 2005 17:31, Kent Johnson wrote: > James Stroud wrote: > > On Monday 07 November 2005 16:18, [EMAIL PROTECTED] wrote: > >>Ya, for some reason your non-greedy "?" doesn't seem to be taking. > >>This works: > >> > >>re.sub('(.*)(00.*?01) target_mark', r'\2', your_string) > > > >

Re: ANN: Circe 0.0.3b1 released

2005-11-07 Thread Matthew Nuzum
Hello, I'm curious, does Circe use threading? I have been frustrated that some of the things I've wanted to do required threading, but haven't found much documentation or good examples of using threading with wxPy. I'm eager to disect the source of something that successfully combines the two. O

Re: Using python for writing models: How to run models in restricted python mode?

2005-11-07 Thread Jeffrey Schwab
vinjvinj wrote: > I have so many things to do to get this to production and writing a > mini language would be a full project in itself. :-<. > > Is there an easy way to do this? If not, I'll go with the steps > outlined in my other post. Do you really think it will be faster to start parsing Pyt

Re: PYTHON LOOSING FOR JAVA???????

2005-11-07 Thread Alex Martelli
Fcamattti <[EMAIL PROTECTED]> wrote: > So I have a doubt. I'd like to know what do you think about the joint > of efforts of Sun Microsystems and the Google to create a office web > based. I sincerely enjoy the idea althoug I'd like to know what will be > the future of this wonderful language cal

Re: Web automation

2005-11-07 Thread Mike Meyer
"Paul Boddie" <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >> [EMAIL PROTECTED] writes: >> > but I supposed the everyone knew that web automation (and in general >> > "automation") is only a problem in Linux. >> I don't know it. I don't believe it, either. I automate web tasks on >> Unix systems

Re: Newbie Alert: Help me store constants pythonically

2005-11-07 Thread Steven D'Aprano
Brendan wrote: > Thanks for your reply Steve. I like this suggestion because it > separates my config data from the code, which could mean less headaches > editing the values later. It also lets me keep my constants > language-neutral, which is good because I haven't convinced my boss yet > that

Re: Using python for writing models: How to run models in restricted python mode?

2005-11-07 Thread vinjvinj
I have so many things to do to get this to production and writing a mini language would be a full project in itself. :-<. Is there an easy way to do this? If not, I'll go with the steps outlined in my other post. vinjvinj -- http://mail.python.org/mailman/listinfo/python-list

Re: Using python for writing models: How to run models in restricted python mode?

2005-11-07 Thread vinjvinj
I'm more worried about incompetent users then malicious users. I'm going to take the following steps: 1. My users will be paying a decent amount of money to run models on the compute grid. If they are intentionaly writing malicious code then their account will be disabled. 2. Since their models w

Re: Using python for writing models: How to run models in restricted python mode?

2005-11-07 Thread Paul Rubin
Steven D'Aprano <[EMAIL PROTECTED]> writes: > I suspect your best bet might be to write a mini-language using > Python, and get your users to use that. You will take a small > performance hit, but security will be very much improved. > > What do others think? That is the only approach that makes

Re: how to modify code while debugging it without having to stop and then restart debugger

2005-11-07 Thread Mike Meyer
"python" <[EMAIL PROTECTED]> writes: > i am a long time windows user and have had a great way to learn new api. There's a better way. See below. > to write some code and then run it. > if there is an error, the debugger will load. > then i can figure out what the eror is, just touch up the ocde a

Re: Newbie Alert: Help me store constants pythonically

2005-11-07 Thread Ron Adam
Brendan wrote: >>How many is LOOONG? Ten? Twenty? One hundred? > > > About 50 per Model > > >>If it is closer to 100 than to 10, I would suggest >>putting your constants into something like an INI file: >> >>[MODEL1] # or something more meaningful >>numBumps: 1 >>sizeOfBumps: 99 >> >>[MODEL2

Text Auto-fill

2005-11-07 Thread ChuckDubya
It's common in web browsers to have a text auto-fill function for personal information or passwords or whatnot. The flavor that I'm referring to is the kind that pops up as you're typing the word, not the kind that fills text fields before typing has started. Well I want to know how to do that in

Re: Map of email origins to Python list

2005-11-07 Thread Claire McLister
On Nov 7, 2005, at 3:26 PM, Alan Kennedy wrote: > Sure, please do make it available, or at least the geolocation > component > anyway. I'm sure you'll get lots of useful comments from the many > clever > and experienced folk who frequent this group. > I've made the script available on our downl

Re: Using python for writing models: How to run models in restricted python mode?

2005-11-07 Thread Steven D'Aprano
vinjvinj wrote: > While I understand 2 is very hard (if not impossible) to do in single > unix process. I'm not sure why 1 would be hard to do. Since I have > complete control to what code I can allow or not allow on my grid. Can > i not just search for certain strings and disallow the model if it

Weekly Python Patch/Bug Summary

2005-11-07 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 365 open ( +5) / 2961 closed ( +5) / 3326 total (+10) Bugs: 904 open (+11) / 5367 closed (+14) / 6271 total (+25) RFE : 200 open ( +1) / 189 closed ( +0) / 389 total ( +1) New / Reopened Patches __ new funct

Re: Underscores in Python numbers

2005-11-07 Thread Peter Hansen
Gustav Hållberg wrote: > I tried finding a discussion around adding the possibility to have > optional underscores inside numbers in Python. This is a popular option > available in several "competing" scripting langauges, that I would love > to see in Python. > > Examples: > 1_234_567 > 0xdead

Re: Underscores in Python numbers

2005-11-07 Thread Devan L
Gustav Hållberg wrote: > I tried finding a discussion around adding the possibility to have > optional underscores inside numbers in Python. This is a popular option > available in several "competing" scripting langauges, that I would love > to see in Python. > > Examples: > 1_234_567 > 0xdead_

Underscores in Python numbers

2005-11-07 Thread Gustav Hållberg
I tried finding a discussion around adding the possibility to have optional underscores inside numbers in Python. This is a popular option available in several "competing" scripting langauges, that I would love to see in Python. Examples: 1_234_567 0xdead_beef 3.141_592 Would appreciate if

Re: Web automation

2005-11-07 Thread Paul Boddie
Mike Meyer wrote: > [EMAIL PROTECTED] writes: > > but I supposed the everyone knew that web automation (and in general > > "automation") is only a problem in Linux. > > I don't know it. I don't believe it, either. I automate web tasks on > Unix systems (I don't use many Linux systems, but it's the

Re: pls help me with strange result

2005-11-07 Thread eight02645999
hi thanks for your advice. yes,the args parameter can be included. Yes , the syntax is valid. I tried and it works for the 2 tables. looks like sybase knows how to distinguish that 2 update statements..as separate ones. cheers -- http://mail.python.org/mailman/listinfo/python-list

Re: Regular expression question -- exclude substring

2005-11-07 Thread Kent Johnson
James Stroud wrote: > On Monday 07 November 2005 16:18, [EMAIL PROTECTED] wrote: > >>Ya, for some reason your non-greedy "?" doesn't seem to be taking. >>This works: >> >>re.sub('(.*)(00.*?01) target_mark', r'\2', your_string) > > > The non-greedy is actually acting as expected. This is because

Re: newbiew ?->creating multiuser database project 2 b used via internet

2005-11-07 Thread Steve Holden
python wrote: > hello and thanks for reading this. > i am a long time windows/visual_basic user and i have been quite happy using > that. > > i am doing a consulting project for a dry cleaning company. > in the past i would use windows and visual basic but i want to create an app > using python

Re: Newbie Alert: Help me store constants pythonically

2005-11-07 Thread Jorge Godoy
"Brendan" <[EMAIL PROTECTED]> writes: > seems risky. Also my config files have (a tiny bit of) nested > structure, such as: > > Model1( >numBumps = 1 >sizeOfBumps = 2 >transversePlanes = [ > Plane(type=3, z=4), > Plane(type=5, z=6), > Plane(type=3, z=8) >

Returning a value from a Tk dialog

2005-11-07 Thread Gordon Airporte
The dialogs in tkColorChooser, tkFileDialog, etc. return useful values from their creation somehow, so I can do stuff like this: filename = tkFileDialog.askopenfilename( master=self ) I would like to make a Yes/No/Cancel dialog that can be used the same way (returning 1/0/-1), but I just cannot

Re: how to modify code while debugging it without having to stop and then restart debugger

2005-11-07 Thread James Stroud
On Monday 07 November 2005 16:56, python wrote: > > so how can i use python to debug code and change that code without having > to restart the code. look into reload() -- James Stroud UCLA-DOE Institute for Genomics and Proteomics Box 951570 Los Angeles, CA 90095 http://www.jamesstroud.com

Re: Newbie Alert: Help me store constants pythonically

2005-11-07 Thread Brendan
> How many is LOOONG? Ten? Twenty? One hundred? About 50 per Model > If it is closer to 100 than to 10, I would suggest > putting your constants into something like an INI file: > > [MODEL1] # or something more meaningful > numBumps: 1 > sizeOfBumps: 99 > > [MODEL2] > numBumps: 57 > sizeOfBumps

Re: O_DIRECT on stdin?

2005-11-07 Thread Alex Fraser
"Gordon Burditt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > >I want to be able to read a HUGE file without having such a negative > >impact on the system's buffer cache. [snip] > Does O_DIRECT perhaps invoke some of the restrictions of "raw" > device files, where the current offs

Re: struct.calcsize problem

2005-11-07 Thread Bengt Richter
On 7 Nov 2005 15:27:06 -0800, "Chandu" <[EMAIL PROTECTED]> wrote: >In using the following struct format I get the size as 593. The same C >struct is 590 if packed on byte boundary and 596 when using pragma >pack(4). I am using pack(4) and added 3 spares at the end to get by. > hdrFormat = '16s 3

how to modify code while debugging it without having to stop and then restart debugger

2005-11-07 Thread python
hello and thanks for reading this, i have been a dos/windows user using some form of the basic language for 30 years now. i own and run a small programming company and there is one feature that keeps me in the windows/basic world. while i will agree that it has not evolved well, it does have on

Re: struct.calcsize problem

2005-11-07 Thread Larry Bates
Chandu wrote: > In using the following struct format I get the size as 593. The same C > struct is 590 if packed on byte boundary and 596 when using pragma > pack(4). I am using pack(4) and added 3 spares at the end to get by. >hdrFormat = '16s 32s 32s B 8s H 8s H 4s H H 20s 64s 64s 64s 32s 32s

Re: Regular expression question -- exclude substring

2005-11-07 Thread James Stroud
On Monday 07 November 2005 16:18, [EMAIL PROTECTED] wrote: > Ya, for some reason your non-greedy "?" doesn't seem to be taking. > This works: > > re.sub('(.*)(00.*?01) target_mark', r'\2', your_string) The non-greedy is actually acting as expected. This is because non-greedy operators are "forwar

newbiew ?->creating multiuser database project 2 b used via internet

2005-11-07 Thread python
hello and thanks for reading this. i am a long time windows/visual_basic user and i have been quite happy using that. i am doing a consulting project for a dry cleaning company. in the past i would use windows and visual basic but i want to create an app using python and linux using something li

Re: Regular expression question -- exclude substring

2005-11-07 Thread google
Ya, for some reason your non-greedy "?" doesn't seem to be taking. This works: re.sub('(.*)(00.*?01) target_mark', r'\2', your_string) -- http://mail.python.org/mailman/listinfo/python-list

Shed Skin Python-to-C++ compiler 0.0.5 released!

2005-11-07 Thread Mark Dufour
Hi all, I have just released Shed Skin 0.0.5. It fixes many bugs and adds many minor features to the Python builtins, most notably, the 'set' class. There have also been some optimizations on the C++ side. Finally, the README now better explains the compiler's limitations, and a TODO file has been

Re: Regular expression question -- exclude substring

2005-11-07 Thread Kent Johnson
[EMAIL PROTECTED] wrote: > Hi, > > I'm having trouble extracting substrings using regular expression. Here > is my problem: > > Want to find the substring that is immediately before a given > substring. For example: from > "00 noise1 01 noise2 00 target 01 target_mark", > want to get > "00 target

Re: [OT] Map of email origins to Python list

2005-11-07 Thread Mike Meyer
Claire McLister <[EMAIL PROTECTED]> writes: > An interesting perspective. Not to increase your sense of 'creepy', > but a lot of big corporations now have access to this kind of > information and more. You mean my creditors are going to be looking for me in San Francisco, even though I'm in Virgin

Re: Map of email origins to Python list

2005-11-07 Thread Mike Meyer
Claire McLister <[EMAIL PROTECTED]> writes: > Thanks, Alan. You are absolutely right, we are not using the > NNTP-Posting-Host header for obtaining the IP address. Yes, but what are you using? > The Python list is unique among the lists that we have handled so far, > in that it has a cross-postin

struct.calcsize problem

2005-11-07 Thread Chandu
In using the following struct format I get the size as 593. The same C struct is 590 if packed on byte boundary and 596 when using pragma pack(4). I am using pack(4) and added 3 spares at the end to get by. hdrFormat = '16s 32s 32s B 8s H 8s H 4s H H 20s 64s 64s 64s 32s 32s 64s L L B B B B B 64s

Re: Map of email origins to Python list

2005-11-07 Thread Alan Kennedy
[Claire McLister] > Thanks, Alan. You are absolutely right, we are not using the > NNTP-Posting-Host header for obtaining the IP address. Aha, that would explain the lack of precision in many cases. A lot of posters in this list/group go through NNTP (either with an NNTP client or through NNTP-

Regular expression question -- exclude substring

2005-11-07 Thread dreamerbin
Hi, I'm having trouble extracting substrings using regular expression. Here is my problem: Want to find the substring that is immediately before a given substring. For example: from "00 noise1 01 noise2 00 target 01 target_mark", want to get "00 target 01" which is before "target_mark". My regula

Re: Application monitor

2005-11-07 Thread Mike Meyer
"dcrespo" <[EMAIL PROTECTED]> writes: > Main application starts > This one starts the App Monitor of itself. (This means that if Main > Application closes, the App Monitor restart it) > > And viceversa means that if App Monitor closes, the Main application > restart it. > > How can I accomplish thi

Re: [OT] Map of email origins to Python list

2005-11-07 Thread Neil Hodgson
Claire McLister: > We try to get a best guess estimate of the originating IP and its > location. If we cannot find that, we fall back on the earliest server > that has a location information. Clearly this marks quite a few email > origins in the wrong way. It doesn't do the collection of ALL gm

Re: Using python for writing models: How to run models in restricted python mode?

2005-11-07 Thread Mike Meyer
"vinjvinj" <[EMAIL PROTECTED]> writes: > While I understand 2 is very hard (if not impossible) to do in single > unix process. I'm not sure why 1 would be hard to do. Since I have > complete control to what code I can allow or not allow on my grid. Can > i not just search for certain strings and d

Re: Map of email origins to Python list

2005-11-07 Thread Claire McLister
Thanks, Alan. You are absolutely right, we are not using the NNTP-Posting-Host header for obtaining the IP address. The Python list is unique among the lists that we have handled so far, in that it has a cross-posting mechanism with a net news. Hence, it seems we are getting many more wrong loc

Re: when and how do you use Self?

2005-11-07 Thread Ron Adam
Tieche Bruce A MSgt USMTM/AFD wrote: > I am new to python, > > Could someone explain (in English) how and when to use self? > > I have been reading, and haven't found a good example/explanation > > > Bruce Tieche ([EMAIL PROTECTED]) Hi, Sometimes it's hard to get a simple answer to progra

Re: PYTHON LOOSING FOR JAVA???????

2005-11-07 Thread Robert Boyd
On 7 Nov 2005 14:04:53 -0800, Fcamattti <[EMAIL PROTECTED]> wrote: So I have a doubt. I'd like to know what do you think about the jointof efforts of Sun Microsystems and the Google to create a office webbased. I sincerely enjoy the idea althoug I'd like to know what will bethe future of this wonde

Re: [OT] Map of email origins to Python list

2005-11-07 Thread Claire McLister
On Nov 7, 2005, at 10:55 AM, Steve Holden wrote: > Mostly I wonder what the point is. For example, given my own somewhat > nomadic life I wondered what location has been used to map my own > contributions. Just for fun, really. We try to a best job of mapping the IP location closest to the origi

Re: web interface

2005-11-07 Thread Charl P. Botha
I'm using SkunkWeb [1] for building a responsive interface to a number of long-running processes. See [2] for an example of running long-running processes in SkunkWeb and monitoring them. One of the advantages (to my mind) that SkunkWeb offers over many of the other Python application servers and

Re: Map of email origins to Python list

2005-11-07 Thread Jorge Godoy
"George Sakkis" <[EMAIL PROTECTED]> writes: > "Jorge Godoy" <[EMAIL PROTECTED]>: > > > H... I don't see mine listed there: I'm in South America, Brasil. More > > specifically in Curitiba, Paraná, Brasil. :-) > > That's funny; I was looking for mine and I stumbled across yours at > Piscataw

Re: Map of email origins to Python list

2005-11-07 Thread Alan Kennedy
[Alan Kennedy] >>So presumably "chcgil" indicates you're in Chicago, Illinois? [EMAIL PROTECTED] > Yes, but why, then, is my name logged into Mountain View, CA? Presumably the creators of the map have chosen to use a mechanism other than NNTP-Posting-Host IP address to geolocate posters. Claire

Re: PYTHON LOOSING FOR JAVA???????

2005-11-07 Thread Martin v. Löwis
Fcamattti wrote: > Hello for everybody > > So I have a doubt. I'd like to know what do you think about the joint > of efforts of Sun Microsystems and the Google to create a office web > based. I sincerely enjoy the idea althoug I'd like to know what will be > the future of this wonderful lang

Re: [OT] Map of email origins to Python list

2005-11-07 Thread Claire McLister
On Nov 7, 2005, at 10:23 AM, Rocco Moretti wrote: > It's also a testament to the limited value of physically locating > people > by internet addresses - If you zoom in on the San Fransico bay area, > and > click on the southern most bubble (south of San Jose), you'll see the > entry for the Moun

cPAMIE/Python String and Date Comparisons

2005-11-07 Thread Sam R
Hi, I am new to Python, and PAMIE has been a very useful tool for my website functionality testing. I was wondering if anyone knows how to do the following testcases with either PAMIE or Python. 1. Load a page http://www.prophet.net/quotes/stocknews.jsp?symbol=MSFT Verify that the string 'News for

Re: [OT] Map of email origins to Python list

2005-11-07 Thread Claire McLister
On Nov 7, 2005, at 9:55 AM, Paul McGuire wrote: > I guess it's a great way to find where there might be Python jobs to be > found, or at least kindred souls (or dissident Python posters in > countries > where Internet activity is closely monitored...) Possibly. But there are so many in-accuracie

Re: Map of email origins to Python list

2005-11-07 Thread George Sakkis
"Jorge Godoy" <[EMAIL PROTECTED]>: > H... I don't see mine listed there: I'm in South America, Brasil. More > specifically in Curitiba, Paraná, Brasil. :-) That's funny; I was looking for mine and I stumbled across yours at Piscataway, NJ, US. :-) George -- http://mail.python.org/mailman

Re: O_DIRECT on stdin?

2005-11-07 Thread Donn Cave
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > Here's some text from my open(2) manpage: > Transfer sizes, and the alignment of user buffer and file offset must > all > be multiples of the logical block size of the file system. Does that apply in the example he gave,

Re: when and how do you use Self?

2005-11-07 Thread Bruno Desthuilliers
Tieche Bruce A MSgt USMTM/AFD a écrit : > Well, thanx for all the ... useful information. > > I thought that I would try, but this has turned out to be a waist of my time. > > Have fun playing with your egos s/your egos/words/ If you can't stand a joke (possibly very bad, but that's another po

Re: Web automation

2005-11-07 Thread Mike Meyer
[EMAIL PROTECTED] writes: > but I supposed the everyone knew that web automation (and in general > "automation") is only a problem in Linux. I don't know it. I don't believe it, either. I automate web tasks on Unix systems (I don't use many Linux systems, but it's the same tool set) on a regular b

Re: Using python for writing models: How to run models in restricted python mode?

2005-11-07 Thread vinjvinj
While I understand 2 is very hard (if not impossible) to do in single unix process. I'm not sure why 1 would be hard to do. Since I have complete control to what code I can allow or not allow on my grid. Can i not just search for certain strings and disallow the model if it fails certain conditions

Re: Using python for writing models: How to run models in restricted python mode?

2005-11-07 Thread Mike Meyer
"vinjvinj" <[EMAIL PROTECTED]> writes: > 1. restrict the user from doing any file io, exec, import, eval, etc. I > was thinking of writing a plugin for pylint to do all the checks? Is > this is a good way given that there is no restricted python. What are > the things I should serach for in python

PYTHON LOOSING FOR JAVA???????

2005-11-07 Thread Fcamattti
Hello for everybody So I have a doubt. I'd like to know what do you think about the joint of efforts of Sun Microsystems and the Google to create a office web based. I sincerely enjoy the idea althoug I'd like to know what will be the future of this wonderful language called Python?? Re

Re: reading internet data to generate random numbers.

2005-11-07 Thread Piet van Oostrum
> Neil Schemenauer <[EMAIL PROTECTED]> (NS) wrote: >NS> Grant Edwards <[EMAIL PROTECTED]> wrote: >>> Doesn't your OS have an entropy-gathering RN generator built-in? >NS> Alternatively, if you want lots of high-quality random numbers, buy >NS> a cheap web camera: http://www.lavarnd.org/ . Us

Re: Map of email origins to Python list

2005-11-07 Thread [EMAIL PROTECTED]
Alan Kennedy wrote: > [Robert Kern] > >>Most of AOL's offices are in Dulles, VA. Google's headquarters are in > >>Mountain View, CA. > > [EMAIL PROTECTED] > > Aha, I post to the usenet through Google. Makes the map application > > all the more stupid, doesn't it? > > Actually, no, because Google G

  1   2   3   >