All Quick Test Professional (QTP) FAQs

2007-09-29 Thread [EMAIL PROTECTED]
All Quick Test Professional (QTP) FAQs QuickTest Professional (QTP) Questions and Answers Part # 1 http://softwareqatestings.com/content/view/188/38/ QuickTest Professional (QTP) Questions and Answers Part # 2 http://softwareqatestings.com/content/view/189/38/ QuickTest Professional (QTP

Re: New to python

2007-09-29 Thread Stargaming
On Sat, 29 Sep 2007 21:20:10 -0700, Googy wrote: > I am new to python... > > The programming language i know well is C Can any one recommend me the > good ebook for beginners. I have loads of ebooks but i am not able to > decide which to start with which book. Also i am learning XML so later > on

Re: New to python

2007-09-29 Thread DavidM
On Sat, 29 Sep 2007 21:20:10 -0700, Googy wrote: > I am new to python... > > The programming language i know well is C > Can any one recommend me the good ebook for beginners. I have loads of > ebooks but i am not able to decide which to start with which book. > Also i am learning XML so later on

New to python

2007-09-29 Thread Googy
I am new to python... The programming language i know well is C Can any one recommend me the good ebook for beginners. I have loads of ebooks but i am not able to decide which to start with which book. Also i am learning XML so later on i can switch to books on Python and XML but initially which b

Re: Optparse and help formatting?

2007-09-29 Thread Ben Finney
Tim Chase <[EMAIL PROTECTED]> writes: > I've been learning the ropes of the optparse module and have been > having some trouble getting the help to format the way I want. A quick perusal of the 'optparse.py' code shows me this: [...] class OptionParser([...]): def __init__([...],

Re: HOT!!!PYTHON DEVELOPER REQUIRED @ ADOBE SYSTEMS

2007-09-29 Thread Arvind Singh
THANKS for introducing me to Python "applets". Applications --> Applets --> Apploids --> Applcainers --> ... --> Approcities Sorry, couldn't resist. On 9/27/07, Recruiter-Adobe <[EMAIL PROTECTED]> wrote: > > Hi PYTHON DEVELOPERS, > > ADOBE SYSTEMS is looking for a PYTHON DEVELOPER who can trou

Re: question about for cycle

2007-09-29 Thread [EMAIL PROTECTED]
George Sakkis wrote: > On Sep 29, 10:34 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: >> [EMAIL PROTECTED] wrote: >> >> > On 29 sep, 12:04, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >> > >> >> for i in generator_a: # the first "for" cycle >> >> for j in generator_b: >> >>

Re: Simple threading example freezes IDLE?

2007-09-29 Thread James Matthews
idle doesn't work well with threads On 9/27/07, 7stud <[EMAIL PROTECTED]> wrote: > > On Sep 26, 5:01 pm, "Sergio Correia" <[EMAIL PROTECTED]> wrote: > > > > I'm using IDLE 1.2.1, Python 2.5.1, and Tk 8.4. Does anyone has any > > idea of why is this happening? > > > > Two mainloops == bad. IDLE ==

Re: HOT!!!PYTHON DEVELOPER REQUIRED @ ADOBE SYSTEMS

2007-09-29 Thread James Matthews
Spam! On 9/27/07, Recruiter-Adobe <[EMAIL PROTECTED]> wrote: > > Hi PYTHON DEVELOPERS, > > ADOBE SYSTEMS is looking for a PYTHON DEVELOPER who can troubleshoot > Python based applet which makes data base queries and populates Excel > tables used to generate pivot charts, graphs and tables showing

Optparse and help formatting?

2007-09-29 Thread Tim Chase
I've been learning the ropes of the optparse module and have been having some trouble getting the help to format the way I want. I want to specify parts of an option's help as multiline. However, the optparse formatter seems to eat newlines despite my inability to find anything in optparse.py that

Re: Command-line does work when scheduled

2007-09-29 Thread Gabriel Genellina
En Sat, 29 Sep 2007 22:04:06 -0300, Jim <[EMAIL PROTECTED]> escribi�: >> If it works this way, maybe the .py file extension is not correctly >> registered. > > Yes, it works this way. > How do I register the .py extension correctly? From a command line, type: assoc .py You should get: .py=Python

earn $26800 a month with google adsense

2007-09-29 Thread panguohua
www.space666.com sport news and make money -- http://mail.python.org/mailman/listinfo/python-list

ANN: y4m - Python video editing framework

2007-09-29 Thread DavidM
Hi all, Just a quick message to announce the latest release (v0.1.1) of the 'y4m' framework. www.freenet.org.nz/y4m What is 'y4m'? y4m is a python framework for manipulating yuv4mpeg video streams. Young but growing rapidly. It offers an intuitive Python API for: - opening yuv4mpeg streams f

Re: Balloon Taskbar Popup for Windows XP

2007-09-29 Thread Gabriel Genellina
En Sat, 29 Sep 2007 07:40:21 -0300, makko <[EMAIL PROTECTED]> escribi�: > I need to create a function that will produce a balloon popup in the > taskbar when called. Whats the shortest and easiest way to do this? Mark Hammond's pywin32 extensions support notification icons but not balloon popup

Re: getopt with negative numbers?

2007-09-29 Thread Carl Banks
On Sep 29, 7:58 pm, Ben Finney <[EMAIL PROTECTED]> wrote: > Carl Banks <[EMAIL PROTECTED]> writes: > > On Sep 28, 6:19 pm, Ben Finney <[EMAIL PROTECTED]> > > wrote: > > > Steven Bethard <[EMAIL PROTECTED]> writes: > > > > A user shouldn't have to go out of their way to specify regular > > > > numbe

Re: Command-line does work when scheduled

2007-09-29 Thread Jim
On Sep 29, 6:56 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Sat, 29 Sep 2007 19:17:49 -0300, Jim <[EMAIL PROTECTED]> escribi?: > > > > > > > On Sep 29, 3:19 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> > > wrote: > >> En Sat, 29 Sep 2007 17:34:34 -0300, Jim <[EMAIL PROTECTED]> > >> esc

Re: Command-line does work when scheduled

2007-09-29 Thread Gabriel Genellina
En Sat, 29 Sep 2007 19:17:49 -0300, Jim <[EMAIL PROTECTED]> escribi�: > On Sep 29, 3:19 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> > wrote: >> En Sat, 29 Sep 2007 17:34:34 -0300, Jim <[EMAIL PROTECTED]> >> escribi?: >> >> > I want to schedule a Python program that reads the command line for >>

Re: getopt with negative numbers?

2007-09-29 Thread Ben Finney
Carl Banks <[EMAIL PROTECTED]> writes: > On Sep 28, 6:19 pm, Ben Finney <[EMAIL PROTECTED]> > wrote: > > Steven Bethard <[EMAIL PROTECTED]> writes: > > > A user shouldn't have to go out of their way to specify regular > > > numbers on the command line, regardless of whether they're > > > positive

Re: Program inefficiency?

2007-09-29 Thread Pablo Ziliani
thebjorn wrote: On Sep 29, 7:55 pm, Pablo Ziliani <[EMAIL PROTECTED]> wrote: thebjorn wrote: Ugh, that was entirely too many regexps for my taste :-) Oh yeah, now it's clear as mud. I'm anxiously awaiting your beacon of clarity ;-) Admittedly, that was a bit arrogant from m

What's the current status of socket timeouts?

2007-09-29 Thread John Nagle
What actually works and what doesn't in socket timeouts in Python 2.5? What breaks with timeouts turned on? There are lots of patches and bug reports, but no coherent summary. John Nagle -- http://mail.python.org/mailman/listinfo/python-list

Re: Program inefficiency?

2007-09-29 Thread George Sakkis
On Sep 29, 2:32 pm, [EMAIL PROTECTED] wrote: > It think he's saying it should look like this: > > (line noise snipped) Or you can let BeautifulSoup do the dirty job for you and forget all this ugliness: from BeautifulSoup import BeautifulSoup soup = BeautifulSoup(text) for a in soup.findAll('a

Re: Command-line does work when scheduled

2007-09-29 Thread Jim
On Sep 29, 3:19 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Sat, 29 Sep 2007 17:34:34 -0300, Jim <[EMAIL PROTECTED]> escribi?: > > > I want to schedule a Python program that reads the command line for > > input. However, when adding an argument to the command line Python > > will not p

Re: List search

2007-09-29 Thread Bjoern Schliessmann
Kevin Walzer wrote: > I'm having a problem with searching a list. Here's my code: > > mylist = ['x11', 'x11-wm', 'x11-system'] > > for line in mylist: > if 'x11' in line: > print line > > This results in the following output: > > x11 > x11-wm > x11-system > > I'm looking to return

Re: Command-line does work when scheduled

2007-09-29 Thread Gabriel Genellina
En Sat, 29 Sep 2007 17:34:34 -0300, Jim <[EMAIL PROTECTED]> escribi�: > I want to schedule a Python program that reads the command line for > input. However, when adding an argument to the command line Python > will not pick it up when using Windows scheduled tasks. > > How do I get it to work?

Re: question about for cycle

2007-09-29 Thread tokland
On 29 sep, 21:38, Zentrader <[EMAIL PROTECTED]> wrote: > ctr_a=0 > ctr_b=0 > while ctr_a < len(generator_a): > this_el_a = generator_a[ctr_a] > while ctr_b < len(generator_b): > this_el_b = generator_b[ctr_ b] > if something_happen: > ctr_b = len(generator

Re: How to unload a module after I've imported it.

2007-09-29 Thread Gabriel Genellina
En Sat, 29 Sep 2007 17:32:15 -0300, marvinla <[EMAIL PROTECTED]> escribi�: > Have you tried a del? > >>> import socket >>> dir() > ['__builtins__', '__doc__', '__name__', 'socket'] >>> del socket >>> dir() > ['__builtins__', '__doc__', '__name__'] py> import socket py> del socket py> import sys

Command-line does work when scheduled

2007-09-29 Thread Jim
Hi, I want to schedule a Python program that reads the command line for input. However, when adding an argument to the command line Python will not pick it up when using Windows scheduled tasks. How do I get it to work? Thanks, Jim -- http://mail.python.org/mailman/listinfo/python-list

Re: How to unload a module after I've imported it.

2007-09-29 Thread marvinla
Have you tried a del? >> import socket >> dir() ['__builtins__', '__doc__', '__name__', 'socket'] >> del socket >> dir() ['__builtins__', '__doc__', '__name__'] See you! -- http://mail.python.org/mailman/listinfo/python-list

Re: python 2.5 and 3gb switch

2007-09-29 Thread neil
Since I was last here I found someone who is willing to do a 3gb python build for me who builds Blender as well. I am pretty sure python is just not recognising the extra space. Apparently there is a python module used in the 3gb Blender build I have that may be contributing too although the scr

RE: Program inefficiency?

2007-09-29 Thread Michael . Coll-Barth
> -Original Message- > From: thebjorn > > On Sep 29, 9:32 pm, stdazi <[EMAIL PROTECTED]> wrote: > > On Sep 29, 6:07 pm, [EMAIL PROTECTED] wrote: > > > > > You did not mention the OS, but because you are using > > > "pathname\editfile.txt", it sounds like you are using an > MS OS. From

How to unload a module after I've imported it.

2007-09-29 Thread Johny
Is it possible to unload a module after I've imported it. I have the main program from which I import several smaller programs. Some of these uses timeoutsocket module. But one of the smaller program can not work with the timeoutsocket module, so I must unload the timeoutsocket module, execute the

Re: Program inefficiency?

2007-09-29 Thread thebjorn
On Sep 29, 9:32 pm, stdazi <[EMAIL PROTECTED]> wrote: > On Sep 29, 6:07 pm, [EMAIL PROTECTED] wrote: > > > You did not mention the OS, but because you are using > > "pathname\editfile.txt", it sounds like you are using an MS OS. From > > past experience with various MS OSes, I found that as the nu

RE: Program inefficiency?

2007-09-29 Thread Michael . Coll-Barth
> -Original Message- > From: stdazi > On Sep 29, 6:07 pm, [EMAIL PROTECTED] wrote: > > > You did not mention the OS, but because you are using > > "pathname\editfile.txt", it sounds like you are using an MS OS. From > > past experience with various MS OSes, I found that as the number of

Re: C Source Code Generator For Test Cases

2007-09-29 Thread gamename
> Instead of reading the testcase tables and generating source for test > routines you simply can do the tests right away. > Can't. :( This is for an embedded system. I need to create source (in C) on one machine and then compile on others. The only thing that I can be certain of is an ANSI co

Re: question about for cycle

2007-09-29 Thread Zentrader
On Sep 29, 8:19 am, George Sakkis <[EMAIL PROTECTED]> wrote: > On Sep 29, 10:34 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > > > [EMAIL PROTECTED] wrote: > > > > On 29 sep, 12:04, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > >> for i in generator_a: # the first "for" cycle

CaFeCONF 2007 6tas. Conferencias Abiertas de Software Libre y GNU/Linux

2007-09-29 Thread lukio
We are going to have a few speeches about python language. http://www.cafeconf.org/2007/modules/myconference/program.php?cid=1&programord=1 cheers, CaFeCONF 2007 6tas. Conferencias Abiertas de Software Libre y GNU/Linux (CaFeCONF) http://www.cafeconf.org Está abierta la inscripción para partici

Re: Program inefficiency?

2007-09-29 Thread stdazi
On Sep 29, 6:07 pm, [EMAIL PROTECTED] wrote: > You did not mention the OS, but because you are using > "pathname\editfile.txt", it sounds like you are using an MS OS. From > past experience with various MS OSes, I found that as the number of > files in a directory increases the slower your proces

Re: Program inefficiency?

2007-09-29 Thread thebjorn
On Sep 29, 8:32 pm, [EMAIL PROTECTED] wrote: > It think he's saying it should look like this: > > # File: masseditor.py > > import re > import os > import time > > p1= re.compile('(href=|HREF=)+(.*)(#)+(.*)(\w\'\?-<:)+(.*)(">)+') > p2= re.compile('(name=")+(.*)(\w\'\?-<:)+(.*)(">)+') > p100= re.com

wxpython combined with vpython

2007-09-29 Thread azrael
One question. I didn't try it, just one idea Is it possible to put a Vpython window inside a WX frame like it is a part of the wxframe between sizers or anything els -- http://mail.python.org/mailman/listinfo/python-list

Re: Program inefficiency?

2007-09-29 Thread hall . jeff
It think he's saying it should look like this: # File: masseditor.py import re import os import time p1= re.compile('(href=|HREF=)+(.*)(#)+(.*)(\w\'\?-<:)+(.*)(">)+') p2= re.compile('(name=")+(.*)(\w\'\?-<:)+(.*)(">)+') p100= re.compile('(a name=)+(.*)(-)+(.*)(>)+') q1= r"\1\2\3\4_\6\7" q2= r"\1

Re: Program inefficiency?

2007-09-29 Thread hall . jeff
The search is trying to replace the spaces in our bookmarks (and the links that go to those bookmarks)... The bookmark tag looks like this: and the bookmark tag looks like this some pitfalls I've already run up against... SOMETIMES (but not often) the a and the href (or name) is split across

Re: strange unbound local error?

2007-09-29 Thread thebjorn
On Sep 29, 8:04 pm, [EMAIL PROTECTED] wrote: > hi folks, > > suppose this snipplet: > > spam = 42 > > def eggs(): > print spam > spam = spam + 1 > > if __name__=="__main__": > eggs() > > This thows an UnboundLocalError at line 4 (print statement). But if I > comment out line 5 (variable

Re: strange unbound local error?

2007-09-29 Thread Pablo Ziliani
[EMAIL PROTECTED] wrote: > spam = 42 > > def eggs(): > print spam > spam = spam + 1 > > if __name__=="__main__": > eggs() > > This thows an UnboundLocalError at line 4 (print statement). But if I > comment out line 5 (variable assignment), no error occurs. > > Can you explain me this, p

Re: Program inefficiency?

2007-09-29 Thread thebjorn
On Sep 29, 7:55 pm, Pablo Ziliani <[EMAIL PROTECTED]> wrote: > thebjorn wrote: > > On Sep 29, 5:22 pm, [EMAIL PROTECTED] wrote: > > >> I wrote the following simple program to loop through our help files > >> and fix some errors (in case you can't see the subtle RE search that's > >> happening, we'r

strange unbound local error?

2007-09-29 Thread righes
hi folks, suppose this snipplet: spam = 42 def eggs(): print spam spam = spam + 1 if __name__=="__main__": eggs() This thows an UnboundLocalError at line 4 (print statement). But if I comment out line 5 (variable assignment), no error occurs. Can you explain me this, please? Rega

Re: sorteddict [was a PEP proposal, but isn't anymore!]

2007-09-29 Thread thebjorn
On Sep 29, 7:13 pm, Duncan Booth <[EMAIL PROTECTED]> wrote: [...] > Right now I think there are probably three dict variants needed: sorteddict > (still waiting for a convincing use case), ordereddict (lots of use cases), > and this one: stabledict. What's stabledict? I'm assuming that ordereddict

Re: Program inefficiency?

2007-09-29 Thread Pablo Ziliani
thebjorn wrote: > On Sep 29, 5:22 pm, [EMAIL PROTECTED] wrote: > >> I wrote the following simple program to loop through our help files >> and fix some errors (in case you can't see the subtle RE search that's >> happening, we're replacing spaces in bookmarks with _'s) >> (...) >> > > Ugh,

xml modifications

2007-09-29 Thread dcleaner
hi there...i'm a begginer level user and i've stumbbled upon a problem a bit beyond my knowledge. i hope that somebody will be able to help me with my problem... the problem is: i'm transforming an Access database to XML with some adjustements. basicaly i have one main table in which i have my

Re: Program inefficiency?

2007-09-29 Thread thebjorn
On Sep 29, 5:22 pm, [EMAIL PROTECTED] wrote: > I wrote the following simple program to loop through our help files > and fix some errors (in case you can't see the subtle RE search that's > happening, we're replacing spaces in bookmarks with _'s) > > the program works great except for one thing. It

xyz points and magnitude to intensity or colormap or contourmap

2007-09-29 Thread yadin
hi! how do you do contour maps with vtk? i have 3600 points for each point i have a corresponding magnitude. i plane to do contour maps that is i plot each point with a different color (representing its magnitude ) how can i do this with using python, matplotlib or vtk? does any one have a similar

Re: sorteddict [was a PEP proposal, but isn't anymore!]

2007-09-29 Thread Duncan Booth
thebjorn <[EMAIL PROTECTED]> wrote: > On Sep 29, 4:23 pm, Duncan Booth <[EMAIL PROTECTED]> wrote: > [...] >> Another example would be if you had a library which serialised a >> dictionary to xml. There is nothing wrong with the library if it >> doesn't care about order, but if you have some other

Re: Program inefficiency?

2007-09-29 Thread hall . jeff
For anyone that cares, I figured out the "problem"... the webhelp files that it hits the wall on are the compiled search files... They are the only files in the system that have line lengths that are RIDICULOUS in length... I'm looking at one right now that has 32767 characters all on one line...

Re: How to display a videostream in the PyQt GUI by a efficient way

2007-09-29 Thread David Boddie
On Sat Sep 29 05:12:25 CEST 2007, kivilaya wrote: > As required, I need to get a videostream from a camera, and process > every frame to add some information on it, and then display the frame > in a PyQt GUI. > But I don't know how to display the videostream in the PyQt GUI by a > efficient wa

Re: Program inefficiency?

2007-09-29 Thread hall . jeff
no swaps... memory usage is about 14k (these are small Html files)... no hard drive cranking away or fan on my laptop going nutty... CPU usage isn't even pegged... that's what makes me think it's not some sort of bizarre memory leak... Unfortunately, it also means I'm out of ideas... -- http://ma

Re: Program inefficiency?

2007-09-29 Thread hall . jeff
XP is the OS... the files are split across a ton of subdirectories already... I'm actually starting to think there's a problem with certain files, however... We create help files for clients using RoboHelp... RoboHelp has Source HTML and then "webhelp" html which is what actually goes to the clie

Re: Program inefficiency?

2007-09-29 Thread Grant Edwards
On 2007-09-29, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I'm not sure what an shell+sed script is... http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_05_01.html#sect_05_01_01 http://tldp.org/LDP/Bash-Beginners-Guide/html/chap_05.html http://www.grymoire.com/Unix/Sed.html http://www.gnu.or

Re: Python 3.0 migration plans?

2007-09-29 Thread John Roth
On Sep 27, 5:37 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > I wondered if a straw poll could get some idea of readers' thoughts > about when they will be migrating to 3.0 on, so I used the new widget on > Blogger to add a poll for that. > > I'd appreciate if if you would go to > >http://holde

RE: Program inefficiency?

2007-09-29 Thread Michael . Coll-Barth
> -Original Message- > From: [EMAIL PROTECTED] > the program works great except for one thing. It's significantly > slower through the later files in the search then through the early > ones... Before anyone criticizes, I recognize that that middle section > could be simplified with a fo

Re: Program inefficiency?

2007-09-29 Thread Pablo Ziliani
[EMAIL PROTECTED] wrote: > Is there a solution here that I'm missing? What am I doing that is so > inefficient? > Hi Jeff, Yes, it seems you have plenty of performance leaks. Please see my notes below. > def massreplace(): > editfile = open("pathname\editfile.txt") > filestring = edit

Re: Program inefficiency?

2007-09-29 Thread hall . jeff
I did try moveing the re.compile's up and out of the replacecylce() but it didn't impact the time in any meaningful way (2 seconds maybe)... I'm not sure what an shell+sed script is... I'm fairly new to Python and my only other coding experience is with VBA... This was my first Python program In

Re: Program inefficiency?

2007-09-29 Thread Carsten Haese
On Sat, 2007-09-29 at 15:22 +, [EMAIL PROTECTED] wrote: > [...] > def replacecycle(starttext): > p1= re.compile('(href=|HREF=)+(.*)(#)+(.*)( )+(.*)(">)+') > p2= re.compile('(name=")+(.*)( )+(.*)(">)+') > p3= re.compile('(href=|HREF=)+(.*)(#)+(.*)(\')+(.*)(">)+') > p4= re.compile

Re: Program inefficiency?

2007-09-29 Thread Grant Edwards
> [...] > the program works great except for one thing. It's significantly > slower through the later files in the search then through the early > ones... Before anyone criticizes, I recognize that that middle section > could be simplified with a for loop... I just haven't cleaned it > up... > > Th

Program inefficiency?

2007-09-29 Thread hall . jeff
I wrote the following simple program to loop through our help files and fix some errors (in case you can't see the subtle RE search that's happening, we're replacing spaces in bookmarks with _'s) the program works great except for one thing. It's significantly slower through the later files in the

Re: question about for cycle

2007-09-29 Thread George Sakkis
On Sep 29, 10:34 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > > On 29 sep, 12:04, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > >> for i in generator_a: # the first "for" cycle > >> for j in generator_b: > >> if something_happen: > >>

Re: Python and SSL

2007-09-29 Thread John Nagle
Paul Rubin wrote: > "Martin v. Löwis" <[EMAIL PROTECTED]> writes: >>> But how can I tell my Python program to trust my SSL certificate? >> Why do you want to tell it that? The SSL module will trust *any* >> server certificate, no need to tell it explicitly which ones to >> trust. > > Er, the whole

Re: sorteddict [was a PEP proposal, but isn't anymore!]

2007-09-29 Thread thebjorn
On Sep 29, 4:23 pm, Duncan Booth <[EMAIL PROTECTED]> wrote: [...] > Another example would be if you had a library which serialised a dictionary > to xml. There is nothing wrong with the library if it doesn't care about > order, but if you have some other reason why you want the xml to be stable > (

Re: Python 3.0 migration plans?

2007-09-29 Thread Francesco Guerrieri
On 9/28/07, TheFlyingDutchman <[EMAIL PROTECTED]> wrote: > Correct me if I am wrong, but none of those examples showed something > in C++ similar to a decorator in Python - that is, unique syntax in > the language for implementing a Higher Order Function. One thing I > will say about those example

Re: question about for cycle

2007-09-29 Thread [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote: > On 29 sep, 12:04, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > >> for i in generator_a: # the first "for" cycle >> for j in generator_b: >> if something_happen: >> # do something here ..., I want the outer cycle to break >>

Re: sorteddict [was a PEP proposal, but isn't anymore!]

2007-09-29 Thread Duncan Booth
Antoon Pardon <[EMAIL PROTECTED]> wrote: > On 2007-09-27, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >> Is this a practical use case? When are sequential visits of all >> elements in order frequently suspended to make insertions and >> deletions, with a need for efficient lookup by key? > >

Re: sorteddict [was a PEP proposal, but isn't anymore!]

2007-09-29 Thread Antoon Pardon
On 2007-09-27, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Is this a practical use case? When are sequential visits of all > elements in order frequently suspended to make insertions and > deletions, with a need for efficient lookup by key? Does it need to be a sequential visit of *all* elemen

Re: question about for cycle

2007-09-29 Thread tokland
On 29 sep, 12:04, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > for i in generator_a: # the first "for" cycle > for j in generator_b: > if something_happen: > # do something here ..., I want the outer cycle to break > break Do you like this? generator_

Re: question about for cycle

2007-09-29 Thread John Machin
On Sep 29, 8:04 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: [snip] > And I have another question. Which is the most efficient way to check if there > are duplicate items in a list ? The items in the list may cannot be hashed, so > set() may not work on the list. The following classic by Ti

Re: Python 3.0 migration plans?

2007-09-29 Thread Carsten Haese
On Sat, 2007-09-29 at 04:09 +, John Nagle wrote: > [...] > For example, MySQL AB supports a Perl binding to MySQL, but not a > Python binding. And what's your point, other than that apparently MySQL AB doesn't care about Python? -- Carsten Haese http://informixdb.sourceforge.net -- http:/

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-09-29 Thread David Golden
Ken Tilton wrote: > No wonder the GPL has gone nowhere. Bwaahahahaha. Keep smokin' that crack, there. > Freely. RMS reasonably wanted that > add-42 not get co-opted, but that in no way necessitated the land grab > that is GPL. You (and probably KMP) are presuming the validity of copyright mon

Re: question about for cycle

2007-09-29 Thread Duncan Booth
Ant <[EMAIL PROTECTED]> wrote: > On Sep 29, 11:04 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > ... >> What should I do if I want the outer "for" cycle to continue or break >> ? If I put a "continue" or "break" in the inner cycle, it has no >> effect on the outer cycle. > ... > I guess

Re: question about for cycle

2007-09-29 Thread Peter Otten
Ant wrote: > On Sep 29, 11:04 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > ... >> What should I do if I want the outer "for" cycle to continue or break ? If I >> put a "continue" or "break" in the inner cycle, it has no effect on the outer >> cycle. > > I'd also be interested in the idi

Re: Delete spaces

2007-09-29 Thread John Machin
On Sep 29, 1:43 am, [EMAIL PROTECTED] wrote: > If I have a text file that is delimited by spaces, how do I import it > and get to comma delimited? Here is a row of data from the text file: > > 1110:55:14 265 8.5 > 1.4+1.1 2.5 Class-2 0 > > I tried a few

earn $12800 a month

2007-09-29 Thread panguohua
www.space666.com -- http://mail.python.org/mailman/listinfo/python-list

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-09-29 Thread Frank Goenninger
On 2007-09-29 01:27:04 +0200, Damien Kick <[EMAIL PROTECTED]> said: > Giorgos Keramidas wrote: >> On Fri, 22 Jun 2007 23:08:02 -, [EMAIL PROTECTED] wrote: >>> So much for the "free" in "free software". If you can't actually use >>> it without paying money, whether for the software or for some

Re: python 2.5 and 3gb switch

2007-09-29 Thread neil
thanks for your interest ...well I am quoting what it says - it gives me some recent lines executed in the console window and then 'memerror' possibly Blenders python API is slightly different from python itself I see there is a python exception MemoryError... most likely this is the equivalent an

Re: Python 3.0 migration plans?

2007-09-29 Thread Ant
I've posted my vote. However, I guess it won't be that simple in practice. I suspect that the following is more likely: 1) Migrate to 3000 fairly soon after release for scripts and new projects for which required third party modules are available for 3k 2) Migrate existing projects to 3k a) when f

Balloon Taskbar Popup for Windows XP

2007-09-29 Thread makko
Greetings, I need to create a function that will produce a balloon popup in the taskbar when called. Whats the shortest and easiest way to do this? Thanks. regards, Makko -- http://mail.python.org/mailman/listinfo/python-list

Re: question about for cycle

2007-09-29 Thread Ant
On Sep 29, 11:04 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: ... > What should I do if I want the outer "for" cycle to continue or break ? If I > put a "continue" or "break" in the inner cycle, it has no effect on the outer > cycle. I'd also be interested in the idiomatic solution to this o

4000 every month

2007-09-29 Thread kasim
Zamanla ne kadar çok para kazanmışsiniz kendiniz bile inanamiyacaksiniz. Bu gerçektir. Hayal ettiğiniz şeyleri gerçekleştirebilirsiniz. Eyleme geçmek düşünerek durmaktan daha iyidir. Bizde bir nakil var düşünen düşününceye kadar tevekkül eden menzile varmış. Sizde hayal ettiğiniz menzillere varabi

Professional Grant Proposal Writing Workshop (December 2007: University of Washington, Seattle)

2007-09-29 Thread Anthony Jones
The Grant Institute: Certificate in Professional Program Development and Grant Communication will be held at the University of Washington, Seattle, December 10 - 14, 2007.  Interested development professionals, researchers, faculty, and graduate students should register as soon as possible, as d

question about for cycle

2007-09-29 Thread [EMAIL PROTECTED]
Hi all, I have the following code: for i in generator_a: # the first "for" cycle for j in generator_b: if something_happen: # do something here ..., I want the outer cycle to break break What should I do if I want the outer "for" cycle to continue or brea

Re: python 2.5 and 3gb switch

2007-09-29 Thread Martin v. Löwis
> This is where python gives 'memerror'. Although the space is there it wont > use it. It's still not clear to me. Please be as precise and literal as you can when reporting error messages. I very much doubt that Python outputs memerror at some point to the terminal; the string 'memerror' does

Re: python 2.5 and 3gb switch

2007-09-29 Thread neil
no sir nothing spectacular like that, I'll explain further - The .blend file I have is 550mb It originates from 13,000+ meshes imported from Solidworks ( 3d CAD program) of a piece of machinery. A python script was used for this purpose -it also performed some other tasks on the meshes like match

Re: Python and SSL

2007-09-29 Thread Paul Rubin
"Martin v. Löwis" <[EMAIL PROTECTED]> writes: > Please try to understand that OP's question. He got some error, > and for some reason, he concluded that he needs to tell Python > to trust the server certificate (most likely to make the error > go away). I told him that he is likely wrong, and that

Re: python 2.5 and 3gb switch

2007-09-29 Thread Carl Banks
On Sat, 29 Sep 2007 18:10:22 +1200, neil wrote: > why? An error traceback or any other information might help us understand the problem. Even if you think you know what the issue is--and you didn't seem 100% certain--an example would help other people understand the issue better. > I am aski

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-09-29 Thread Ken Tilton
Damien Kick wrote: > Giorgos Keramidas wrote: > >> On Fri, 22 Jun 2007 23:08:02 -, [EMAIL PROTECTED] wrote: >> >>> So much for the "free" in "free software". If you can't actually use >>> it without paying money, whether for the software or for some book, it >>> isn't really free, is it? >>

Re: Reentrancy of Python interpreter

2007-09-29 Thread bvukov
On Sep 28, 11:31 pm, Brad Johnson <[EMAIL PROTECTED]> wrote: > I have embedded a single threaded instance of the Python interpreter in my > application. > > I have a place where I execute a Python command that calls into C++ code which > then in turn calls back into Python using the same interprete

Re: Python 3.0 migration plans?

2007-09-29 Thread Carl Banks
On Fri, 28 Sep 2007 09:56:48 -0400, Stephan Deibel wrote: > Ian Dickinson wrote: >> Never would look like a good time scale to me given that a lot of the >> stuff I use is being ripped out > > Has any one actually converted any real code or significant bits of code > using the 3.0 converter (i

Re: Python 3.0 migration plans?

2007-09-29 Thread Carl Banks
On Fri, 28 Sep 2007 09:56:48 -0400, Stephan Deibel wrote: > Ian Dickinson wrote: >> Never would look like a good time scale to me given that a lot of the >> stuff I use is being ripped out > > Has any one actually converted any real code or significant bits of code > using the 3.0 converter (i

Re: python 2.5 and 3gb switch

2007-09-29 Thread Martin v. Löwis
> The code runs successfully in lesser missions it just wont run in the extra > memory available when I try to run it along with my other programs in a 3gb > space. Still, it would be helpful if you explained how "wont run" manifests: does it fail to start, does it give you an exception, does it

Re: Python and SSL

2007-09-29 Thread Martin v. Löwis
>>> But how can I tell my Python program to trust my SSL certificate? >> Why do you want to tell it that? The SSL module will trust *any* >> server certificate, no need to tell it explicitly which ones to >> trust. > > Er, the whole idea of SSL is that you don't trust the connection. Please try t