Re: How to iterate a sequence, with skipping the first item?

2008-08-12 Thread Calvin Spealman
i = iter(container.iterChildren()) i.next() for x in i: ... On Tue, Aug 12, 2008 at 2:51 AM, ray <[EMAIL PROTECTED]> wrote: > A container object provides a method that returns an iterator object. > I need to iterate the sequence with that iterator, but need to skip > the first item. I can only i

Re: How to iterate a sequence, with skipping the first item?

2008-08-12 Thread alex23
On Aug 12, 4:51 pm, ray <[EMAIL PROTECTED]> wrote: > A container object provides a method that returns an iterator object. > I need to iterate the sequence with that iterator, but need to skip > the first item. I can only iterate the whole sequence with: > for x in container.iterChildren(): > How t

Re: File reading across network (windows)

2008-08-12 Thread Gabriel Genellina
En Tue, 12 Aug 2008 00:48:21 -0300, Prof. William Battersea <[EMAIL PROTECTED]> escribi�: Suppose I have a Vista machine called VISTA and an XP machine called XP in a workgroup named WORKGROUP. Physically they're connected to a router and I can see lists of public and shared files on each of t

Re: How to iterate a sequence, with skipping the first item?

2008-08-12 Thread Paul Rubin
ray <[EMAIL PROTECTED]> writes: > for x in container.iterChildren(): > How to skip the first item? It seems that it's a simple question. > Could somebody help me? Thanks. First solution: c = container.iterChildren() c.next()# skip first item for x in c: ... Second solution:

Re: How to iterate a sequence, with skipping the first item?

2008-08-12 Thread Gabriel Genellina
En Tue, 12 Aug 2008 03:51:17 -0300, ray <[EMAIL PROTECTED]> escribi�: A container object provides a method that returns an iterator object. I need to iterate the sequence with that iterator, but need to skip the first item. I can only iterate the whole sequence with: for x in container.iterChild

Re: Editing a file by substitution

2008-08-12 Thread Terry Reedy
Brad wrote: alex23 wrote: open('outfile','w').writelines(l.replace('Volume 940','Volume 950') for l in open('myfile','r')) Ahh yes, perhaps string function are simpler to use in this case. Thanks Alex! If, if you have to change the file repeatedly, make it a template (either % or the ne

Re: for x,y in word1, word2 ?

2008-08-12 Thread Raja Baz
On Sun, 10 Aug 2008 21:40:55 -0700, Mensanator wrote: > On Aug 10, 11:18�pm, ssecorp <[EMAIL PROTECTED]> wrote: >> Is there a syntax for looping through 2 iterables at the same time? >> >> for x in y: >> � � for a in b: >> >> is not what I want. >> >> I want: >> for x in y and for a in b: > > Som

Re: internet searching program

2008-08-12 Thread maoxw
On 8月12日, 下午1时44分, alex23 <[EMAIL PROTECTED]> wrote: > On Aug 12, 12:03 am, "Support Desk" <[EMAIL PROTECTED]> wrote: > > > Google does'nt allow use of their API's anymore, I belive Yahoo has one > > Are you sure? > > "Google Custom Search enables you to search over a website or a > collection of w

Re: File reading across network (windows)

2008-08-12 Thread binaryjesus
On Aug 12, 8:48 am, "Prof. William Battersea" <[EMAIL PROTECTED]> wrote: > Hello, > > Suppose I have a Vista machine called VISTA and an XP machine called > XP in a workgroup named WORKGROUP. Physically they're connected to a > router and I can see lists of public and shared files on each of them.

Re: for x,y in word1, word2 ?

2008-08-12 Thread Paul Rubin
ssecorp <[EMAIL PROTECTED]> writes: > for x in y and for a in b: for x,a in zip(y,b): ... or the iterator version: from itertools import izip for x,a in izip(y,b): ... avoids allocating a list to iterate through. -- http://mail.python.org/mailman/listinfo/python-list

Looking out a module for Subversion

2008-08-12 Thread Dudeja, Rajat
Hi, I'm new to Python. I only have read "Byte of Python" by Swaroop C H just to be familiar with sytax of python. I've installed Python 2.5 from Active State and using its PythonWin Editor / interpreter. This, unfortunaltely, does not help in debugging. I'm looking for an open source IDE / editor

Re: module import search path strangeness

2008-08-12 Thread tow
On Aug 12, 4:59 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Mon, 11 Aug 2008 19:19:19 -0300, tow <[EMAIL PROTECTED]>   > escribi : > > > I have a python script (part of a django application, if it makes any > > difference) which is exhibiting the following behaviour: > > > import my_mod

very rare python expression

2008-08-12 Thread 甜瓜
Howdy everyone, I saw a strange python code in pygame project. What does "while not(x&528or x in l):" mean? Below code works in python2.5, so "x&528" is not HTML strings. # snake.py code: import pygame as p,random p.init() q=p.display T=16 b=q.set_mode([256]*2).fill l=[] d=a=x=1 c=p.event.get whi

Re: How to iterate a sequence, with skipping the first item?

2008-08-12 Thread ray
Thanks you guys. Now I understand the -for- loop mechanism. -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking out a module for Subversion

2008-08-12 Thread Wojtek Walczak
Dnia Tue, 12 Aug 2008 04:25:50 -0400, Dudeja, Rajat napisa�(a): > Hi, > > I'm new to Python. I only have read "Byte of Python" by Swaroop C H just > to be familiar with sytax of python. I've installed Python 2.5 from > Active State and using its PythonWin Editor / interpreter. This, > unfortunaltel

Re: File reading across network (windows)

2008-08-12 Thread Duncan Booth
"Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: >> A search suggested that the form open(r"\\server\folder\folder"), but >> I tried many combinations guessing what it wants for that path in my >> case (r"\\WORKGROUP\VISTA", "\\VISTA\PUBLIC", etc), and none have >> worked so far. The combination you

Re: Looking out a module for Subversion

2008-08-12 Thread Alexandru Palade
As for the open source IDE you can always try Eclipse with PyDev extension. Dudeja, Rajat wrote: Hi, I'm new to Python. I only have read "Byte of Python" by Swaroop C H just to be familiar with sytax of python. I've installed Python 2.5 from Active State and using its PythonWin Editor / interpr

Re: ANN: P4D 1.2

2008-08-12 Thread Uwe Grauer
Kay Schluehr wrote: P4D = E4X style embedded DSL for Python but without E and X. The main feature of P4D 1.2 are *Bytelets*. While the primary purpose of P4D 1.1 was the support textual data which can be considered as isomorphic to XML the new release is focussed on binary data. Bytelets are P4D

Re: very rare python expression

2008-08-12 Thread Paul Rubin
"ðÏ" <[EMAIL PROTECTED]> writes: > I saw a strange python code in pygame project. What does "while > not(x&528or x in l):" mean? Below code works in python2.5, so "x&528" > is not HTML strings. It parses as "x & 528 or x in l". Looks like it came from http://www.pygame.org/project/833/ and is

Re: very rare python expression

2008-08-12 Thread Alexandru Palade
Nothing strange about that syntax (though some spaces might helped you out). The '&' operator is a bit-wise operator (http://docs.python.org/ref/bitwise.html). 甜瓜 wrote: Howdy everyone, I saw a strange python code in pygame project. What does "while not(x&528or x in l):" mean? Below code works

Re: module import search path strangeness

2008-08-12 Thread Peter Otten
tow wrote: >>> > I have a python script (part of a django application, if it makes any >> > difference) which is exhibiting the following behaviour: >> >> > import my_module # succeeds >> > imp.find_module("my_module") # fails, raising ImportError >> >> > which is completely baffling me. According

Re: very rare python expression

2008-08-12 Thread Wojtek Walczak
Dnia Tue, 12 Aug 2008 16:39:27 +0800, =?GB2312?B?zPC5zw==?= napisa�(a): > Howdy everyone, > > I saw a strange python code in pygame project. What does "while > not(x&528or x in l):" mean? Below code works in python2.5, so "x&528" > is not HTML strings. It looks like a check if 528 flag is set. In

Re: very rare python expression

2008-08-12 Thread Tim Golden
甜瓜 wrote: Howdy everyone, I saw a strange python code in pygame project. What does "while not(x&528or x in l):" mean? Below code works in python2.5, so "x&528" is not HTML strings. Well I can't say I'd format it that way myself, but it is valid. More conventionally laid out the expression look

Re: very rare python expression

2008-08-12 Thread 甜瓜
Oh, thank you very much. I did know that python can parse number '528' and keyword 'or' without separator. 2008/8/12 Paul Rubin <"http://phr.cx"@nospam.invalid>: > "ðÏ" <[EMAIL PROTECTED]> writes: >> I saw a strange python code in pygame project. What does "while >> not(x&528or x in l):" mean? Bel

Looking for a New Job?

2008-08-12 Thread raja
Apply to Over 2,00,000 High Paying Jobs. Register Free Now! http://finance4u.synthasite.com/ -- http://mail.python.org/mailman/listinfo/python-list

Learn Web Design

2008-08-12 Thread raja
Learn Web Design Online or in SF w/ Academy of Art. Free Info Packet. http://finance4u.synthasite.com/ -- http://mail.python.org/mailman/listinfo/python-list

Free Web Design Templates

2008-08-12 Thread raja
Start B2B storefronts on Alibaba, Show products to all buyers - Free! http://finance4u.synthasite.com/ -- http://mail.python.org/mailman/listinfo/python-list

Monte Carlo Simulation

2008-08-12 Thread raja
Download Latest Simulation Software Try Risk Solver Free for 15 Days. http://finance4u.synthasite.com/ -- http://mail.python.org/mailman/listinfo/python-list

Creating a Site?

2008-08-12 Thread raja
Don't Forget Your Own Toolbar Keep The User a Step Away. Act Now http://finance4u.synthasite.com/ -- http://mail.python.org/mailman/listinfo/python-list

DreamTemplate.com

2008-08-12 Thread raja
DreamTemplate.com World's Largest Web Template Store 3000+ CSS, Website, Flash, Logos http://finance4u.synthasite.com/ -- http://mail.python.org/mailman/listinfo/python-list

Fault Seal Analysis

2008-08-12 Thread raja
Fault Seal Analysis Analyse Reservoir Fault, Lateral & Top Seal quickly and efficiently http://finance4u.synthasite.com/ -- http://mail.python.org/mailman/listinfo/python-list

Why nested scope rules do not apply to inner Class?

2008-08-12 Thread Cousson, Benoit
Hi, I'd like to be able to use a nested class (C1) from another sibling nested class (C3). This looks very similar to the nested scopes of functions except that it does not work. class A(object): pass class B(object): class C1(object): pass cla

Re: very rare python expression

2008-08-12 Thread Tim Golden
甜瓜 wrote: Howdy everyone, I saw a strange python code in pygame project. What does "while not(x&528or x in l):" mean? Below code works in python2.5, so "x&528" is not HTML strings. Well I can't say I'd format it that way myself, but it is valid. More conventionally laid out the expression look

Re: Looking out a module for Subversion

2008-08-12 Thread Ken Starks
Dudeja, Rajat wrote: Hi, I'm new to Python. I only have read "Byte of Python" by Swaroop C H just to be familiar with sytax of python. I've installed Python 2.5 from Active State and using its PythonWin Editor / interpreter. This, unfortunaltely, does not help in debugging. I'm looking for an o

Re: File reading across network (windows)

2008-08-12 Thread Diez B. Roggisch
>> You need to create network shares in windows first. Once these are >> established, *all* programs using file-IO - including python - can >> access files. >> > It isn't absolutely essential to create a network share first: most > windows apis, including those used by Python, will be very happy w

Re: Problems returning data from embedded Python

2008-08-12 Thread Cromulent
On 2008-08-12 05:37:53 +0100, "Gabriel Genellina" <[EMAIL PROTECTED]> said: En Mon, 11 Aug 2008 12:58:00 -0300, Cromulent <[EMAIL PROTECTED]> escribi�: Uh? You have a complete API for working with list objects, the functions named PyList_* See http://docs.python.org/api/listObjects.ht

Re: Looking out a module for Subversion

2008-08-12 Thread Patrol Sun
Eclipse with PyDev extension cannot debug. Ulipad is able to debug,but it needs wxpython to support. 2008/8/12 Alexandru Palade <[EMAIL PROTECTED]> > As for the open source IDE you can always try Eclipse with PyDev extension. > > > > Dudeja, Rajat wrote: > >> Hi, >> >> I'm new to Python. I only h

Jason Orendorff's path module

2008-08-12 Thread andybak
Hi, I know this has been consigned to oblivion by the BDFL but I'm rather addicted to it's use. I notice the original site is no longer there. Has anyone got a cached copy of the page that I can host for posterity? Which rather makes me wonder - lot's of people liked this module or rather dislike

you having special

2008-08-12 Thread black
you having special open it *** http://www.AWSurveys.com/HomeMain.cfm?RefID=Maruthakasi G -- http://mail.python.org/mailman/listinfo/python-list

Re: Jason Orendorff's path module

2008-08-12 Thread Marc 'BlackJack' Rintsch
On Tue, 12 Aug 2008 03:41:46 -0700, andybak wrote: > I know this has been consigned to oblivion by the BDFL but I'm rather > addicted to it's use. I notice the original site is no longer there. Has > anyone got a cached copy of the page that I can host for posterity? You can download a copy from

you having special

2008-08-12 Thread black
you having special open it *** http://www.AWSurveys.com/HomeMain.cfm?RefID=Maruthakasi G -- http://mail.python.org/mailman/listinfo/python-list

you having special

2008-08-12 Thread black
you having special open it *** http://www.AWSurveys.com/HomeMain.cfm?RefID=Maruthakasi G -- http://mail.python.org/mailman/listinfo/python-list

you having special

2008-08-12 Thread black
you having special open it *** http://www.AWSurveys.com/HomeMain.cfm?RefID=Maruthakasi G -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: P4D 1.2

2008-08-12 Thread Kay Schluehr
On 12 Aug., 10:50, Uwe Grauer <[EMAIL PROTECTED]> wrote: > Kay Schluehr wrote: > > P4D = E4X style embedded DSL for Python but without E and X. > > > The main feature of P4D 1.2 are *Bytelets*. While the primary purpose > > of P4D 1.1 was the support textual data which can be considered as > > isom

you having special

2008-08-12 Thread black
you having special open it *** http://www.AWSurveys.com/HomeMain.cfm?RefID=Maruthakasi G -- http://mail.python.org/mailman/listinfo/python-list

Help counting the total number of dictionaries inside a list that contain a specified key value

2008-08-12 Thread Jon Bowlas
Hi All, I have the following list containing dictionaries and I would like to be able to count the total number of dictionaries I have that contain a certain value set for the 'level' key: [{'mod_title': u'Introduction to Human Anatomy', 'level': u'1', 'modcode': u'ANAT1003', 'deptleveltext': u''

Re: Why nested scope rules do not apply to inner Class?

2008-08-12 Thread Maric Michaud
Le Tuesday 12 August 2008 11:29:18 Cousson, Benoit, vous avez écrit : > Hi, > > I'd like to be able to use a nested class (C1) from another sibling nested > class (C3). This looks very similar to the nested scopes of functions > except that it does not work. > > class A(object): > pass > > cl

Re: Why nested scope rules do not apply to inner Class?

2008-08-12 Thread Salim Fadhley
> I'm wondering as well if the new nonlocal statement will fix that in py3k? The "class C3" statement is executing before the "class B" statement has concluded, so at that time B does not exist in any scope at all, not even globals(). You could reference B.C1 inside a method because a method is ex

Re: Help counting the total number of dictionaries inside a list that contain a specified key value

2008-08-12 Thread Christian Heimes
Jon Bowlas wrote: For example I'd like to kow how many dictionaries there are with a level 1, 2 , 23 & 3 etc. How would one go about achieveing this? Hope someone can help. sum(u'Level 2 Courses' in dct for dct in yourlist) Christian -- http://mail.python.org/mailman/listinfo/python-list

Using UNC paths for --find-links in easy_install on Windows

2008-08-12 Thread Salim Fadhley
A project I'm working on requires a Python egg to be deployed to a remote location which (because of a security configuration outside my control) denies users web-access but allows users access to networked file-systems. It has been proposed that rather than creating a web- repository for python eg

Re: updating dictionaries from/to dictionaries

2008-08-12 Thread John Machin
On Aug 12, 12:26 pm, Brandon <[EMAIL PROTECTED]> wrote: > > You are very correct about the Laplace adjustment. However, a more > precise statement of my overall problem would involve training and > testing which utilizes bigram probabilities derived in part from the > Laplace adjustment; as I und

Re: Help counting the total number of dictionaries inside a list that contain a specified key value

2008-08-12 Thread Peter Otten
Jon Bowlas wrote: > I have the following list containing dictionaries and I would like to > be able to count the total number of dictionaries I have that contain > a certain value set for the 'level' key: > For example I'd like to kow how many dictionaries there are with a > level 1, 2 , 23 & 3 e

EARN MONEY $1000-25000 PER MONTH TAKE

2008-08-12 Thread priya
EARN MONEY $1000-25000 PER MONTH TAKE SIMPLE ONLINE SURVEYS CREATE FREE ACCOUNT OTHER DETAILS LOG ON TO *** http://romanticmoviess.com/ *** -- http://mail.python.org/mailman/listinfo/python-list

Re: Help counting the total number of dictionaries inside a list that contain a specified key value

2008-08-12 Thread John Machin
On Aug 12, 9:09 pm, "Jon Bowlas" <[EMAIL PROTECTED]> wrote: > Hi All, > > I have the following list containing dictionaries and I would like to > be able to count the total number of dictionaries I have that contain > a certain value set for the 'level' key: > > [snip] > > For example I'd like to k

Re: Help counting the total number of dictionaries inside a list that contain a specified key value

2008-08-12 Thread Jon Bowlas
Many thanks for all your reponses, much appreciated. I'll get back to you on which is the best for me. BTW - yes John thats exactly what I wanted. Cheers Jon Jon Bowlas wrote: > For example I'd like to kow how many dictionaries there are with a > level 1, 2 , 23 & 3 etc. How would one go about

Re: Help counting the total number of dictionaries inside a list that contain a specified key value

2008-08-12 Thread Jon Bowlas
Hrmm, any ideas why I'd be getting 'SyntaxError: invalid syntax' for both of these? > sum(u'Level 2 Courses' in dct for dct in yourlist) > q = set(['1']); print q, sum(d.get('level') in q for d in thelist) The error occurs at the 'for' I'm afraid I can't use Peters suggestion as I'm using python

Re: Help counting the total number of dictionaries inside a list that contain a specified key value

2008-08-12 Thread Christian Heimes
Jon Bowlas wrote: I'm afraid I can't use Peters suggestion as I'm using python 2.3 and it doesn't have the collection module. Thanks anyway. Python 2.3 is the reason. It doesn't support the generator expression syntax. Try sum([u'Level 2 Courses' in dct for dct in yourlist]) or len([1 for dct

Re: Help counting the total number of dictionaries inside a list that contain a specified key value

2008-08-12 Thread Peter Otten
Jon Bowlas wrote: > Hrmm, any ideas why I'd be getting 'SyntaxError: invalid syntax' for > both of these? > >> sum(u'Level 2 Courses' in dct for dct in yourlist) >> q = set(['1']); print q, sum(d.get('level') in q for d in thelist) > > The error occurs at the 'for' > I'm afraid I can't use Pete

trying to use SOCK_RAW yields error "

2008-08-12 Thread Tzury Bar Yochay
I am trying to create raw socket: server = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.getprotobyname('ip')) As a result I get the following error: Traceback (most recent call last): File "tcpsrv.py", line 14, in server = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.get

Perl to Python using MqSQLdb

2008-08-12 Thread Mike P
Hi All, I've been given a Perl script that i'm trying to convert into python. The aim of the script links to MqSQL database, but i'm stuck on one part my $sth = $dbh->prepare($sql)|| die "Could not prepare SQL statement ... maybe invalid?:$!\n$sql \n"; $sth->execute()|| die "C

Re: trying to use SOCK_RAW yields error "

2008-08-12 Thread Wojtek Walczak
Dnia Tue, 12 Aug 2008 05:40:36 -0700 (PDT), Tzury Bar Yochay napisa�(a): Hi, > server = socket.socket(socket.AF_INET, socket.SOCK_RAW, > socket.getprotobyname('ip')) ... > Does anybody have used socket.SOCK_RAW in the past? When using SOCK_RAW, the family should be AF_PACKET, not AF_INET. Note t

Re: Perl to Python using MqSQLdb

2008-08-12 Thread Daniel Mahoney
On Tue, 12 Aug 2008 05:51:19 -0700, Mike P wrote: > Hi All, > > I've been given a Perl script that i'm trying to convert into python. > The aim of the script links to MqSQL database, but i'm stuck on one > part > >my $sth = $dbh->prepare($sql)|| >die "Could not prepare SQL statement

Re: Suggestion for converting PDF files to HTML/txt files

2008-08-12 Thread brad
alex23 wrote: PDFMiner is a set of CLI tools written in Python, one of which converts PDF to text, HTML and more: http://www.unixuser.org/~euske/python/pdfminer/index.html Very neat program. Would be cool if it could easily integrate into other py apps instead of being a standalone CLI tool.

Re: Free software and video codecs (was: ANN: Chandler 1.0)

2008-08-12 Thread mimiyin
Hi, Do you have a recommendation for how I can convert the quicktime and flash movies to ogg? I've had a hard time finding conversion apps for the Mac.I'd also be happy to turn over the original movies to anyone who can help me convert them. Thanks! Mimi (Product Designer, Chandler Project - aka

Re: Building python-svn from source

2008-08-12 Thread The Pythonista
On Tue, 12 Aug 2008 07:04:41 +0200, Martin v. Löwis wrote: > For some reason, the getopt module in your host's python cannot process > the command line options to asdl_c.py correctly. > > What Python version do you have installed in PATH? Martin, Thank you so much! In fact, I did have a python

Re: Suggestion for converting PDF files to HTML/txt files

2008-08-12 Thread alex23
On Aug 12, 11:13 pm, brad <[EMAIL PROTECTED]> wrote: > Very neat program. Would be cool if it could easily integrate into other > py apps instead of being a standalone CLI tool. Perhaps, but I think you could get a long way using os.system(). -- http://mail.python.org/mailman/listinfo/python-list

Re: Why nested scope rules do not apply to inner Class?

2008-08-12 Thread Calvin Spealman
The simple answer is "Dont nest classes. It is not supported." What you are seeing is really an artifact of how classes are built. Basically, everything inside the class body has to exist before it can run, so the inner classes code objects are actually created first. However, the class object its

Python Developers needed in Dallas TX

2008-08-12 Thread Bhavani
Hello: To all who may be interestde. We are in dire need to 2 python developers for our client in Dallas, TX. This is a full time posiiton and due to the difficulty in finding replacements, our client is open to the salary requirement for the expeirence. Please email resumes to [EMAIL PROTECTED] a

RE: internet searching program

2008-08-12 Thread Support Desk
Yes, I believe the custom search allows you to embed a google search into your website and customize it, but they no longer allow you to use a script to access search results unless you go about it in a roundabout way http://googlesystem.blogspot.com/2006/12/googles-soap-search-api-no-longer.ht

Professional Grant Proposal Writing Workshop (August 2008: Boston, Massachusetts - University of Phoenix Campus)

2008-08-12 Thread Anthony Jones
The Grant Institute: Certificate in Professional Program Development and Grant Communication will be held at the University of Phoenix - Burlington Campus, August 18 - 22, 2008.  Interested development professionals, researchers, faculty, and graduate students should register as soon as possible

Re: Suggestion for converting PDF files to HTML/txt files

2008-08-12 Thread brad
alex23 wrote: On Aug 12, 11:13 pm, brad <[EMAIL PROTECTED]> wrote: Very neat program. Would be cool if it could easily integrate into other py apps instead of being a standalone CLI tool. Perhaps, but I think you could get a long way using os.system(). Yes, that is possible, but there's a lo

Re: trying to use SOCK_RAW yields error "

2008-08-12 Thread Tzury Bar Yochay
> When using SOCK_RAW, the family should be AF_PACKET, > not AF_INET. Note that you need root privileges to do so. I changed as instructed: server = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.getprotobyname('ip')) now I am getting: Traceback (most recent call last): File "tcpsrv.

Re: Python as a Testing Language - TTCN-3 Comparison

2008-08-12 Thread Bernard Stepien
Hello all, It looks like this comparison I did between TTCN-3 and Python sparked some interesting reactions. I thank you all for that, this is very helpful. There are two things that are missing: 1. this comparison you downloaded are slides from a presentation at a TTC

Re: Fault Seal Analysis

2008-08-12 Thread Colin J. Williams
raja wrote: Fault Seal Analysis Analyse Reservoir Fault, Lateral & Top Seal quickly and efficiently http://finance4u.synthasite.com/ raja has overstayed his welcome. Is there any way to expunge these entries? Message source below. Colin W. Path: ncf.ca!news.xcski.com!news.acm.uiuc.edu!

Manipulating Python Source

2008-08-12 Thread Wilson
Hi, I'm wondering if there are any tools available or simple methods for taking a python source file and parsing into some hierarchical format, like the ConfigParser. I'd like to be able to do something like the following: test.py: --- """ This

Thesaurus / ontology / taxonomy Python library

2008-08-12 Thread Benjamin Michiels
Hi, I am curently looking for a library allowing the creation and management of a thesaurus. Our requirements are the following: - creation of our own thesaurus (that is, terms AND relations between terms), and indexing (and retrieving) documents with terms defined in our thesaurus, - "thesauraus

Re: Manipulating Python Source

2008-08-12 Thread Kay Schluehr
On 12 Aug., 16:35, Wilson <[EMAIL PROTECTED]> wrote: > Hi, > > I'm wondering if there are any tools available or simple methods for > taking a python source file and parsing into some hierarchical format, > like the ConfigParser. http://docs.python.org/lib/module-parser.html http://docs.python.org

python interpreter

2008-08-12 Thread Alexandru Mosoi
I'm using python's interpreter's to run various commands (like a normal shell). However if sources are modified changes are not reflected so I have to restart interpreter. Is there any way to avoid restarting this? example: import blah blah.Blah() # ... blah.Blah() changed blah.Blah() # ... new

Re: Manipulating Python Source

2008-08-12 Thread Bruno Desthuilliers
Kay Schluehr a écrit : On 12 Aug., 16:35, Wilson <[EMAIL PROTECTED]> wrote: Hi, I'm wondering if there are any tools available or simple methods for taking a python source file and parsing into some hierarchical format, like the ConfigParser. http://docs.python.org/lib/module-parser.html http

Re: trying to use SOCK_RAW yields error "

2008-08-12 Thread Wojtek Walczak
Dnia Tue, 12 Aug 2008 07:21:15 -0700 (PDT), Tzury Bar Yochay napisa�(a): > I changed as instructed: > server = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, > socket.getprotobyname('ip')) > > now I am getting: > > Traceback (most recent call last): > File "tcpsrv.py", line 15, in > serve

Python Developers

2008-08-12 Thread Bhavani
Hello: I am looking for 2 Python developers to join my client in Dallas TX. This is a full time position and my client is open on the salary and will offer relocation plus competitive benefits. Please email resumes to [EMAIL PROTECTED] Regards, Bhavani -- http://mail.python.org/mailman/listinfo/p

Re: python interpreter

2008-08-12 Thread s0suk3
On Aug 12, 9:49 am, Alexandru Mosoi <[EMAIL PROTECTED]> wrote: > I'm using python's interpreter's to run various commands (like a > normal shell). However if sources are modified changes are not > reflected so I have to restart interpreter. Is there any way to avoid > restarting this? > > example:

Re: python interpreter

2008-08-12 Thread Jerry Hill
On Tue, Aug 12, 2008 at 10:49 AM, Alexandru Mosoi <[EMAIL PROTECTED]> wrote: > I'm using python's interpreter's to run various commands (like a > normal shell). However if sources are modified changes are not > reflected so I have to restart interpreter. Is there any way to avoid > restarting this?

Python GUI interpreter slower than DOS-version?

2008-08-12 Thread ssecorp
Sometimes when running very intensive computations the Python- interpreter kind of overheats and stops responding. I have gotten the impression that the dos-version is less likely to crash. Can that be true and if so, why? Is there anyway to get around this? Pretty annoying that it stops respondi

Re: python interpreter

2008-08-12 Thread Wojtek Walczak
Dnia Tue, 12 Aug 2008 07:58:52 -0700 (PDT), [EMAIL PROTECTED] napisa�(a): >> I'm using python's interpreter's to run various commands (like a >> normal shell). However if sources are modified changes are not >> reflected so I have to restart interpreter. Is there any way to avoid >> restarting this

Re: python interpreter

2008-08-12 Thread Diez B. Roggisch
Alexandru Mosoi wrote: > I'm using python's interpreter's to run various commands (like a > normal shell). However if sources are modified changes are not > reflected so I have to restart interpreter. Is there any way to avoid > restarting this? Other gave you advice on how to - partially - achi

Re: bbfreeze problem

2008-08-12 Thread Ralf Schmitt
Neal Becker wrote: Any ideas on this? bb-freeze test5-coded-pre.py x86_64.egg/bbfreeze/eggutil.py", line 132, in copyDistribution raise RuntimeError("setup.py not found for development egg") RuntimeError: setup.py not found for development egg Can you try the latest bbfreeze version f

Re: Jason Orendorff's path module

2008-08-12 Thread Alia Khouri
andybak wrote: > Which rather makes me wonder - lot's of people liked this module > or rather disliked os.path. Is there anything salvageable from > the BDFL's objections worthy of a PEP? Funny you should bring this up today.. I was just thinking the same thing (-: and I looked at the pep (http:/

Unable to lookup keys in dictionary

2008-08-12 Thread Matt Fielding (R* New England)
I am trying to run p4python API on top of python 2.5.2 and am extracting a dictionary from perforce. The following code returns the output that follows it: from P4 import P4, P4Exception p4 = P4() p4.port = "erased" #deleted p4.user = "erased" #deleted

Re: module import search path strangeness

2008-08-12 Thread tow
On Aug 12, 9:56 am, Peter Otten <[EMAIL PROTECTED]> wrote: > tow wrote: > > Basically, I had thought that import and imp.find_module used exactly > > the same > > search path, but the above example shows that at least in this > > circumstance they > > don't; import is picking up additional search

Cutting and Pasting in Windows IDLE

2008-08-12 Thread Victor Subervi
Hi; A couple of weeks ago I asked how to cut and paste multiple lines in the Windows IDLE interface. I can only paste one line at a time! Frustrating. I want it to work like my Linux interpreter. Why doesn´t it? Please help. Someone wrote this, which did not help at all: Well, I'm not really sure

Re: module import search path strangeness

2008-08-12 Thread Peter Otten
tow wrote: > On Aug 12, 9:56 am, Peter Otten <[EMAIL PROTECTED]> wrote: >> tow wrote: > >> > Basically, I had thought that import and imp.find_module used exactly >> > the same >> > search path, but the above example shows that at least in this >> > circumstance they >> > don't; import is picking

RE: Unable to lookup keys in dictionary

2008-08-12 Thread Andreas Tawn
>I am trying to run p4python API on top of python 2.5.2 and am extracting a dictionary from perforce. The following code returns the output that follows it: > > from P4 import P4, P4Exception > p4 = P4() > p4.port = "erased" #deleted > p4.us

Re: Unable to lookup keys in dictionary

2008-08-12 Thread Jerry Hill
On Tue, Aug 12, 2008 at 11:27 AM, Matt Fielding (R* New England) <[EMAIL PROTECTED]> wrote: > [{'userName': 'mfielding', 'clientRoot': 'c:\\perforce', 'monitor': > 'enabled', > 'serverRoot': 'H:\\p4root\\', 'serverVersion': 'P4D/NTX64/2007.3/143793 > (2008/01/ > 21)', 'serverDate': '2008/08/12 11:1

RE: Unable to lookup keys in dictionary

2008-08-12 Thread Matt Fielding (R* New England)
I actually figured out the solution to my problem, of all times, right after I finished sending this mail. It seems P4Python returns a command as a dictionary, also inside of an array. The solution is in the following code: from P4 import P4, P4Exception p4 = P4() p4.port

How to best explain a "subtle" difference between Python and Perl ?

2008-08-12 Thread Palindrom
Hi everyone ! I'd like to apologize in advance for my bad english, it's not my mother tongue... My girlfriend (who is a newbie in Python, but knows Perl quite well) asked me this morning why the following code snippets didn't give the same result : ### Python ### liste = [1,2,3] def foo( my_li

Re: Python GUI interpreter slower than DOS-version?

2008-08-12 Thread Ben Sizer
On Aug 12, 4:04 pm, ssecorp <[EMAIL PROTECTED]> wrote: > Sometimes when running very intensive computations the Python- > interpreter kind of overheats and stops responding. > > I have gotten the impression that the dos-version is less likely to > crash. Can that be true and if so, why? > > Is ther

Re: How to best explain a "subtle" difference between Python and Perl ?

2008-08-12 Thread David C. Ullrich
In article <[EMAIL PROTECTED]>, Palindrom <[EMAIL PROTECTED]> wrote: > Hi everyone ! > > I'd like to apologize in advance for my bad english, it's not my > mother tongue... > > My girlfriend (who is a newbie in Python, but knows Perl quite well) > asked me this morning why the following code s

Re: Thesaurus / ontology / taxonomy Python library

2008-08-12 Thread Calvin Spealman
Sounds like you might want to read up on RDF On Tue, Aug 12, 2008 at 10:41 AM, Benjamin Michiels <[EMAIL PROTECTED]> wrote: > Hi, > > I am curently looking for a library allowing the creation and management of > a thesaurus. Our requirements are the following: > > - creation of our own thesaurus (

Re: python interpreter

2008-08-12 Thread Calvin Spealman
The best answer is: Don't do that! That isn't how you test things. Write test scripts, probably using the unittest framework. You'll save yourself time and trouble having easily reproducible tests. Many people suggested reload(), but you should know it is dangerous. It can have results you don't e

  1   2   >