Re: 'rar' is not recognized as an internal or external command£¿£¿£¿ £¿

2006-02-23 Thread Claudio Grondi
Ê÷Éϲä»Ò wrote: > 'rar' is not recognized as an internal or external command, > operable program or batch file. > > > import os > import time > source = [r'e:\temp\code',r'e:\temp\domains'] > target_dir = r'e:\temp\bak' > target = target_dir+time.strftime('%Y%m%d%H%M%S')+'.rar' > rar_cmd = "rar a

Re: time.sleep(1) sometimes runs for 200 seconds under windows

2006-02-23 Thread Claudio Grondi
Paul Probert wrote: > Hi, > My app runs in a loop looking for changes in a database, and like a > good boy I call time.sleep(1) inside the loop. Unfortunately this > sometimes runs for 200 seconds or so, presumably while my OS is calling > Bill Gates to tell him what I've been doing. This happ

Re: time.sleep(1) sometimes runs for 200 seconds under windows

2006-02-23 Thread Claudio Grondi
Paul Probert wrote: > Peter Hansen wrote: > >> Are you saying that you believe the time.sleep(1) call is actually >> blocking for 200 seconds? Or just that your loop (and we can only >> guess what it looks like) is the one taking that long? >> >> If the former, try something like putting "print

Re: time.sleep(1) sometimes runs for 200 seconds under windows

2006-02-24 Thread Claudio Grondi
Claudio Grondi wrote: > Paul Probert wrote: > >> Peter Hansen wrote: >> >>> Are you saying that you believe the time.sleep(1) call is actually >>> blocking for 200 seconds? > With such rare occurrence it is very hard to tell what is going on. > Usua

Re: [ANN] httpy 0.9.0 -- a sane and robust HTTP library for Python

2006-02-24 Thread Claudio Grondi
Rene Pijlman wrote: > Chad Whitacre: > >>I am pleased to announce the first public release of httpy -- a sane and >>robust HTTP library for Python. With httpy, you write "responders," and >>put them on the network with "couplers." Here is a trivial responder: >> >> import httpy >> >> class Res

Re: Is Python a Zen language?

2006-02-25 Thread Claudio Grondi
John Coleman wrote: > Greetings, >I have a rough classification of languages into 2 classes: Zen > languages and tool languages. A tool language is a language that is, > well, a *tool* for programming a computer. C is the prototypical tool > language. Most languages in the Algol family are tool

Re: time.sleep(1) sometimes runs for 200 seconds under windows

2006-02-25 Thread Claudio Grondi
Claudio Grondi wrote: > Claudio Grondi wrote: > >> Paul Probert wrote: >> >>> Peter Hansen wrote: >>> >>>> Are you saying that you believe the time.sleep(1) call is actually >>>> blocking for 200 seconds? >> >> With such rar

Re: Is Python a Zen language?

2006-02-26 Thread Claudio Grondi
Crutcher wrote: > You are a very silly person. Claudio -- http://mail.python.org/mailman/listinfo/python-list

Re: time.sleep(1) sometimes runs for 200 seconds under windows

2006-02-26 Thread Claudio Grondi
Tony Nelson wrote: > In article <[EMAIL PROTECTED]>, > Claudio Grondi <[EMAIL PROTECTED]> wrote: > > >>Claudio Grondi wrote: >> >>>Claudio Grondi wrote: >>> >>> >>>>Paul Probert wrote: >>>> >>>> &

Re: How to do an 'inner join' with dictionaries

2006-02-27 Thread Claudio Grondi
[EMAIL PROTECTED] wrote: > Let's say I have two dictionaries: > dict1 is 1:23, 2:76, 4:56 > dict2 is 23:A, 76:B, 56:C > > How do I get a dictionary that is > 1:A, 2:B, 4:C > Just copy/paste the following source code to a file and run it: sourceCodeToExecute = """ dict1 = { 1:23,2:76,

Re: bsddb3 database file, are there any unexpected file size limits occuring in practice?

2006-02-28 Thread Claudio Grondi
Klaas wrote: > Claudio writes: > >>I am on a Windows using the NTFS file system, so I don't expect problems >>with too large file size. > > > how large can files grow on NTFS? I know little about it. No practical limit on current harddrives. i.e.: Maximum file size Theory: 16 exabyt

Re: Firebird and Python

2006-02-28 Thread Claudio Grondi
Ray Cote wrote: > At 5:07 PM +0100 2/27/06, Magnus Lycka wrote: > >> >> I'm still interested >> in experiences from Pythonistas using Firebird-- >> especially embedded. > > > Works great. > Python and Firebird embedded (at least on Windows) is very simple to use. > Not currently using it on ot

Re: Firebird and Python

2006-02-28 Thread Claudio Grondi
haxier wrote: > All the info you need is in the kinterbasdb module. I've worked with it > under windows and Linux and... "it just works". Really well indeed. I'd > recommend it a lot. > > http://kinterbasdb.sourceforge.net/dist_docs/usage.html#faq_fep_embedded_using_with > > -- > Asier. > Thanks

Re: Searching for uniqness in a list of data

2006-03-01 Thread Claudio Grondi
rh0dium wrote: > Hi all, > > I am having a bit of difficulty in figuring out an efficient way to > split up my data and identify the unique pieces of it. > > list=['1p2m_3.3-1.8v_sal_ms','1p2m_3.3-1.8_sal_log'] > > Now I want to split each item up on the "_" and compare it with all > others on t

Re: why? [win32com/WMI]

2006-03-01 Thread Claudio Grondi
Sergey wrote: > import win32com.client > > loc = win32com.client.Dispatch("WbemScripting.SWbemLocator") > svc = loc.ConnectServer("srv", "root/cimv2", "[EMAIL PROTECTED]", "**") > sys = svc.get("Win32_Process") > sys.create("notepad.exe") > > => > > Traceback (most recent call last): > File

Re: searching substrings with interpositions

2005-05-24 Thread Claudio Grondi
> i search a function f(a,b) that gives 1 if a is "contained" in b with > any sub strings interposed. If I understand it right, it should be something like this: def blnFindCharSequenceAevenIfSpreadOverEntireStringB(strA, strB): intNoOfCharsFound = 0 intPtrToBeginOfSubsectionOfB = 0 intLenA

Re: searching substrings with interpositions

2005-05-24 Thread Claudio Grondi
<[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > thanx everyone, is what i need. > As Claudio argues, it's a standard problem of dna sequences > comparation. > the next step of my job is to make limits of lenght of interposed > sequences (if someone can help me in this way i'll

what can happen if Python wents commercial ;-) ...

2005-06-05 Thread Claudio Grondi
don't click the following link if you are not at least 18 years old (or don't like sexual related content): http://www.python.com/ Claudio -- http://mail.python.org/mailman/listinfo/python-list

Re: What is different with Python ?

2005-06-11 Thread Claudio Grondi
Re: What is different with Python ? from my point of view, to be honest, nothing except mixing a well spiced soup of what was available within other programming languages. I think, that what currently makes a real difference is not the language as such, but the people using it, posting here and w

Re: What is different with Python ?

2005-06-11 Thread Claudio Grondi
> 4) Yes I agree a mix ("... well spiced soup ...") > seems to be the answer but > my brain somehow wants to formalize it. Here one further suggestion trying to point out, that it probably can't generally be formalized, because the experience one developes after going through the story of "assembl

Following the white rabbit (was "The Python Way")

2005-06-12 Thread Claudio Grondi
> Just follow the white rabbit. This triggers in me the temptation to start a thread asking: What (in your opinion) can a good programmer learn from watching all of the Matrix movies? Which part, one, two or three deals most with the philosophy of programming? Claudio "Jarek Zgoda" <[EMAIL PROTE

Re: What is different with Python ?

2005-06-12 Thread Claudio Grondi
> They're things that can be IMO genuinely accept > as "obvious". Even "counting" is not the lowest > level in mathematic... there is the mathematic > philosohy direction. I am personally highly interested in become aware of the very bottom, the fundaments all our knownledge is build on. Trying to

Re: What is different with Python ?

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

Re: What is different with Python ?

2005-06-15 Thread Claudio Grondi
> Yes, both the sun and the moon have gravitational fields which affect > tides. But the moon's gravitational field is much stronger than the sun's, > so as a first-order approximation, we can ignore the sun. Here we are experiencing further small lie which found its way into a text written by a

Re: What is different with Python ?

2005-06-16 Thread Claudio Grondi
> My communication ability is dropping every day at Probably no reason to worry. Reading your post I haven't even noticed the unnecessary "not", because the message was clear as intended even with it, anyway. Should I start to be seriously in doubt about own physiological problems only because ove

Re: What is different with Python ?

2005-06-16 Thread Claudio Grondi
>> "Also I think the fact that you think your were diteriating just goes to >> show [...]" should be probably: "In my opinion the fact that you consider you were deteriorating just shows [...]" but it can be understood as it is anyway, right? Written maybe exactly as it is, with the only purpo

Re: What is different with Python ?

2005-06-17 Thread Claudio Grondi
> I always thought about our intellect being something "superior" > to this world made of fragile bones and stinking flesh. > However I realized that there's probably no real magic in > it... knowing there are pills to make you happy is sort of > shocking from a philosophical point of view :-) Yes

Re: What is different with Python ?

2005-06-17 Thread Claudio Grondi
>> there is a 1% of people extremely interested in turning >> on or off a pixel I taught "adults" aged from 16 to 86 for some years a course "Introduction to data processing", where I had tried to teach the basics beginning with switching light on and off. Having around twenty participants I experi

Re: image processing

2007-03-07 Thread Claudio Grondi
processing packages missing, that is worth to be covered by a separate package? (i.e. I checked http://filters.sourceforge.net/ out, but haven't yet found the mentioned questions answered ) Claudio Grondi -- http://mail.python.org/mailman/listinfo/python-list

Re: clean up html document created by Word

2007-03-30 Thread Claudio Grondi
jd wrote: > I am looking for python code (working or sample code) that can take an > html document created by Microsoft Word and clean it up (if you've > never had to look at a Word-generated html document, consider yourself > lucky ;-) Alternatively, if you know of a non-python solution, I'd > li

Re: is laziness a programer's virtue?

2007-04-15 Thread Claudio Grondi
pollute Usenet after a longer time of inactivity. Claudio Grondi -- http://mail.python.org/mailman/listinfo/python-list

Re: C parsing fun

2007-02-05 Thread Claudio Grondi
Károly Kiripolszky wrote: > You're right, thank you for the comment! I will look after how to > avoid this. And after you have resolved this 'small' ;-) detail you will probably notice, that some full functional and in wide use being parser have still trouble with this ... Claudio > > Marc 'Bla

Re: I have problems with creating the classic game Wumpus. the file: http://esnips.c

2006-04-26 Thread Claudio Grondi
Ben Sizer wrote: > connyledin wrote: > >>Im trying to create a version of the game Wumpus. Mine is called >>Belzebub. But im STUCK! And its due tuesday 2 maj. Im panicing! Can >>some one help me?? >>here is the file: >>http://esnips.com/webfolder/b71bfe95-d363-4dd3-bfad-3a9e36d0 >> >>What i ha

Re: How to install pyTrix?

2006-05-13 Thread Claudio Grondi
DeepBlue wrote: > Hi all, > > can any1 please tell me how to install pyTrix? > > thx! The first step should be to get it, but how can it be got? Claudio -- http://mail.python.org/mailman/listinfo/python-list

Re: Large Dictionaries

2006-05-15 Thread Claudio Grondi
Chris Foote wrote: > Hi all. > > I have the need to store a large (10M) number of keys in a hash table, > based on a tuple of (long_integer, integer). The standard python > dictionary works well for small numbers of keys, but starts to > perform badly for me inserting roughly 5M keys: > > # keys

Re: IDLE confusion

2006-05-16 Thread Claudio Grondi
MrBlueSky wrote: > Hi, I'm trying to use IDLE to develop My First Python App and my head > hurts... > > I've a file called spalvi.py with this in it: > from Test import * > firstTest("Mike") > > And a file called Test.py with this in it: > def firstTest(name): > print "Yo",nam

Re: Large Dictionaries

2006-05-16 Thread Claudio Grondi
Chris Foote wrote: > Claudio Grondi wrote: > >> Chris Foote wrote: >> >>> p.s. Disk-based DBs are out of the question because most >>> key lookups will result in a miss, and lookup time is >>> critical for this application. >>> >> Pytho

Re: Large Dictionaries

2006-05-16 Thread Claudio Grondi
Chris Foote wrote: > Claudio Grondi wrote: > >> Chris Foote wrote: >> >>> However, please note that the Python bsddb module doesn't support >>> in-memory based databases - note the library documentation's[1] wording: >>> >>> &quo

Re: Large Dictionaries

2006-05-17 Thread Claudio Grondi
Chris Foote wrote: > Klaas wrote: > >>> 22.2s 20m25s[3] >> >> >> 20m to insert 1m keys? You are doing something wrong. > > > Hi Mike. > > I've put together some simplified test code, but the bsddb > module gives 11m for 1M keys: > I have run your code for the bsddb on my P4 2.8 GHz and have

Re: Large Dictionaries

2006-05-18 Thread Claudio Grondi
Chris Foote wrote: > Claudio Grondi wrote: >> Chris Foote wrote: >>> Klaas wrote: >>> >>>>> 22.2s 20m25s[3] >>>> >>>> 20m to insert 1m keys? You are doing something wrong. >>> >>> I've put together some sim

Re: Large Dictionaries

2006-05-18 Thread Claudio Grondi
Chris Foote wrote: > Richie Hindle wrote: >> [Chris] >>> Has anyone written a fast hash module which is more optimal for >>> large datasets ? >> >> PyJudy might be what you're looking for, though I've never used it: >> >> http://www.dalkescientific.com/Python/PyJudy.html >> >> "Judy's key benefit

Re: open file with whitespaces

2006-05-19 Thread Claudio Grondi
Christophe wrote: > mardif a écrit : > >> Hi guys. >> I've a very big big big problem: >> >> I've in my windows computer a file named cicciobello.html, located in >> c:\documents and settings\username\desktop\cicciobello.html. >> >> Now, I MUST open this file with os.spawn(os.P_WAIT , because

Re: open file with whitespaces

2006-05-20 Thread Claudio Grondi
mardif wrote: > OK OK GUYS > I've found the solution: ( effectly, a friend of mine has found the > solution ) > > import os > > os.spawnl(os.P_WAIT, "c:\programmi\internet > explorer\iexplore.exe",'"C:\Documents and > Settings\michele\Desktop\ciccio.html"','"C:\Documents and > Settings\michel

Re: Pyrex installation on windows XP: step-by-step guide

2006-05-22 Thread Claudio Grondi
sturlamolden wrote: > Julien Fiore wrote: > >>Thanks for your remark, Sturlamolden. >> >>Is there a free version of the "Visual C++ 2003" compiler available on >>the web? I have found "Visual C++ 2005 Express edition" >>(http://msdn.microsoft.com/vstudio/express/visualc/). According to >>Micrsoft,

Re: John Bokma harassment

2006-05-24 Thread Claudio Grondi
Tim N. van der Leeuw wrote: > [EMAIL PROTECTED] wrote: > >>I agree there are limits to you right to free speech, but I believe Xah >>Lee is not crossing >>any boundaries. If he starts taking over newspapers and TV stations be >>sure to notify me, >>I might revise my position. >>Immanuel > > > Pe

Re: a problem to solve

2006-03-22 Thread Claudio Grondi
John Salerno wrote: > Ok, here's a problem I've sort of assigned to myself for fun, but it's > turning out to be quite a pain to wrap my mind around. It's from a > puzzle game. It will help if you look at this image: > > http://www.johnjsal.devisland.net/switches.jpg > > Here's the situation: E

Re: Identifying filled circles in a scanned image

2006-03-30 Thread Claudio Grondi
Douglas Douglas wrote: > Hi everybody. > > I have a paper form that I scan into an image. My user fills some circles in > this paper form using black ink. Every form has ten rows with five circles > each > and the user fills only one circle for each row. > > I was wondering if I could use the Py

Re: Identifying filled circles in a scanned image

2006-03-30 Thread Claudio Grondi
Douglas Douglas wrote: > First of all. Thanks Claudio and nikie for your fast answers. > > What I want to do is process the forms automatically. Each circle match a > letter (like in a quiz). So if the user select option A in a row, he fills the > first circle. If he select option C in the next ro

Re: Difference in Python and Ruby interactive shells

2006-04-04 Thread Claudio Grondi
dmh2000 wrote: > I am experimenting with the interactive interpreter environments of > Python and Ruby and I ran into what seems to be a fundamental > difference. However I may be doing something wrong in Python. Please > comment and correct me if I am wrong > > In both languages, you can start up

Re: ANN: 3 new ShowMeDo.com videos on Python Objects

2006-04-15 Thread Claudio Grondi
Ian Ozsvald wrote: > Summary: > At http://ShowMeDo.com we have 3 new videos by Jerol Harrington > introducing Python Objects: > http://showmedo.com/videoListPage?listKey=IntroductionToPythonObjectsUsingIPython_JerolH > > > and 5 videos for beginners to wxPython: > http://showmedo.com/videoListPa

<    1   2   3   4