Ê÷Éϲä»Ò 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
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
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
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
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
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
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
Crutcher wrote:
> You are a very silly person.
Claudio
--
http://mail.python.org/mailman/listinfo/python-list
Tony Nelson wrote:
> In article <[EMAIL PROTECTED]>,
> Claudio Grondi <[EMAIL PROTECTED]> wrote:
>
>
>>Claudio Grondi wrote:
>>
>>>Claudio Grondi wrote:
>>>
>>>
>>>>Paul Probert wrote:
>>>>
>>>>
&
[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,
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
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
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
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
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
> 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
<[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
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 ?
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
> 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
> 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
> 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
> > 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
> 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
> 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
>> "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
> 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
>> 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
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
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
pollute Usenet after a
longer time of inactivity.
Claudio Grondi
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
301 - 350 of 350 matches
Mail list logo