Hi bearophileH,
Thank you for the code example.
Could you post some more information about ShedSkink?
malv
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> Bengt Richter wrote:
> > On 29 Nov 2005 14:08:12 -0800, [EMAIL PROTECTED] wrote:
> >
> > >We don't scrape programs from news-groups, if you'd like the program to
> > >be shown on the shootout then please attach the source code to a
> > >tracker item.
> > You asked for so
Hi. I am pleased to announce a new Python package - date_time.
date_time package is a Python bindings for the boost.date_time C++ library.
boost.date_time is a cross-platform and open source C++ library which
is designed
to provide a basis for performing efficient time calculations.
The boost.dat
viewcharts wrote:
> I am reading two text files comparing the values in one to the other,
> this requires two loops. The problem is that when the inner loop is
> finished, it never goes back into the loop. Any suggestions?
>
>
> for refSymbol in symbols.readlines():
> for lookupSymbol in my
viewcharts wrote:
> I am reading two text files comparing the values in one to the other,
> this requires two loops. The problem is that when the inner loop is
> finished, it never goes back into the loop. Any suggestions?
>
>
> for refSymbol in symbols.readlines():
> for lookupSymbol in myfil
Mike Meyer wrote:
>>> An object is compatible with an exception if it is either the object
>>> that identifies the exception, or (for exceptions that are classes)
>>> it is a base class of the exception, or it is a tuple containing an
>>> item that is compatible with the exception.
>>
>> Requiring
I think I understand my problem, but first the sample code extracted to
my project.
Rq : it's an automatic run of unitary test, the names of unitary test
are parameter of main program "imported" file via the "execfile"
function (an usage of "import" instead may be a solution) :
file run.py :
Hi all,
thanks for all your answers. Is see that there are - as ususal - several
ways to accomplish this. I decided to go for the way Frederik suggested,
because it looked as the most straight forward method for that kind
of data.
Thanks again,
./Tom
--
http://mail.python.org/mailman/listinfo/py
lot's of solutions proposed in the discussion works fine :
file run.py :
def run_ut( test ) :
# to have the problem the execfile MUST be in a function
# execfile( test ) # ERROR
execfile( test, globals() ) # OK
exec "import ut_00" # OK
exec file(test).read() #
yes I have imported math in the file I want to use it. But the imported
module "math" is not visible in function without a global instruction.
But the solutions already proposed seems to work file for my sample
program. I will try on my project soon :)
--
http://mail.python.org/mailman/listinfo/
Paul McNett wrote:
>[EMAIL PROTECTED] wrote:
>
>
>>1)
>>Laptop wired, client
>>Desktop wired, server
>>GREAT!
>>webpage served in 2 seconds
>>
>>2)
>>Laptop wired, server
>>Deskop wired, client
>>GREAT!
>>webpage served in 2 seconds
>>
>>3)
>>Laptop wireless, client
>>Desktop wireless, server
>>
sample and solution posted in another branch of this thread
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
i have embedded the Python 2.3 engine into a C++ framework. Now i want
to add to the basic editing features that are provided by this C++
framework also some debug functionality. Until now i did not find any
documentation on how to do this. The Python C/API manual does not say
much about i
V Tue, 29 Nov 2005 10:14:26 +, Neil Hodgson napsal(a):
> David Siroky:
>
>> output = ''
>
> I suspect you really want "output = u''" here.
>
>> for c in line:
>> if not unicodedata.combining(c):
>> output += c
>
> This is creating as many as 5 new st
[EMAIL PROTECTED] wrote:
> I think I understand my problem, but first the sample code extracted to
> my project.
>
> Rq : it's an automatic run of unitary test, the names of unitary test
> are parameter of main program "imported" file via the "execfile"
> function (an usage of "import" instead ma
Hi !
I have a problem in Windows.
I need to get the filelist in HDD-s, with sha-N value for every file (to
see what changed in the past).
1.
I see that Python supports the sha-1. But I need to make sha value in
big files to (swap file, iso-s, etc.). Possible that file size more than
2 GB, so
Hi!
I have embedded a Python interpreter into a C++ framework. When running
some Python code in the interpreter, how can i get a traceback with line
number file..., when an exception occurs?
Greetings, Thomas Korimort.
--
http://mail.python.org/mailman/listinfo/python-list
On 2005-11-29, Duncan Booth <[EMAIL PROTECTED]> wrote:
> Antoon Pardon wrote:
>
>> The question is, should we consider this a problem. Personnaly, I
>> see this as not very different from functions with a list as a default
>> argument. In that case we often have a list used as a constant too.
>>
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
> I see that Python supports the sha-1. But I need to make sha value in
> big files to (swap file, iso-s, etc.). Possible that file size more
> than 2 GB, so I cannot read as string...
> How to get the sha value of a file ?
Use the sha.update method
On 2005-11-29, Bengt Richter <[EMAIL PROTECTED]> wrote:
> On 29 Nov 2005 08:27:43 GMT, Antoon Pardon <[EMAIL PROTECTED]> wrote:
>
>>On 2005-11-28, Duncan Booth <[EMAIL PROTECTED]> wrote:
>>> Antoon Pardon wrote:
>>>
No I gave an example, you would implement differently. But even
if
Hello!
I'm trying to install scipy_core_0.6.1-1.i586 on my Mandrake Linux (via
RPM) 10.2 machine. I double click on the rpm icon but it gives the
following error...
scipy_core_0.6.1-1.i586 failed due to unstaisfied libg2c.so.0
What do i do??
I know this query is not directly related to Python..
Hello,
I'm having a problem with playing WAV files using Winsound.
If I use winsound to play a certain WAV files only the first few seconds
of the file get played. I think this comes because these files contain
some parts of silence. There winsound seems the stop playing the files
(windows med
Antoon Pardon wrote:
> But lets just consider. Your above code could simply be rewritten
> as follows.
>
> res = list()
> for i in range(10):
> res.append(i*i)
>
I don't understand your point here? You want list() to create a new list
and [] to return the same (initially empty) list thr
On 2005-11-29, Mike Meyer <[EMAIL PROTECTED]> wrote:
> Antoon Pardon <[EMAIL PROTECTED]> writes:
>>> You see, you can make languages more powerful by *removing* things
>>> from it.
>> You cast this in way to general terms. The logic conclusion
>> from this statements is that the most powerfull lang
I have 2 thead instances,
A and B,
In A's run method, if I call B.Method(), it will be executed in thead A,
but I want B.Method() to be executed in B's thread.
That's to say, I want to tell Thead B to do B's stuff in B's thread,
kinda like PostMessage in win32.
Can I do it in python?
How?
Thank you
"Krystian" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi
> are there any future perspectives for Python to be as fast as java?
Sure, if/when Python becomes as water-logged with obtruse OO-layers as Java
is now.
Python is faster than Java.
Because Python per design generally i
> It is version 10, would it be compatible with 9i servers?
Yes.
> Indeed I use cx_oracle but on M$ yet. Want to move to Linux.
If you need to compile yourself, the instant client
headers don't live where a full-blown Oracle install
would put them and you may need to slightly alter
setup.py. cx_
Frithiof Andreas Jensen wrote:
>
> From the speed requirement: Is that correspondance chess by any chance??
>
Regular chess at tournament time controls requires speed too. Any pure
Python chess program would lose badly to the best C/C++ programs out
there now.
I would also like to see Half Li
Mandus ha escrito:
> works just fine on my ubunty 5.10. Make sure you have the python2.4-tk
> package installed (sudo apt-get install python2.4-tk).
>
yes, i got it.
It's a fresh instalation from a cd in a brand new laptop. I tried to
reinstall python2.4-tk and many other packeges :-(
There ar
[EMAIL PROTECTED] wrote:
> Hi
>
> My tkinter apps worked fine in debian linux (woody and sarge)
> I moved to ubuntu 5.10
>
> I follow the 'hello world' test as seen in
> http://wiki.python.org/moin/TkInter
>
Ubuntu uses X.org. Did your Debian distro use xfree86?
--
http://mail.python.org/mailm
could ildg wrote:
> I have 2 thead instances,
> A and B,
> In A's run method, if I call B.Method(), it will be executed in thead A,
> but I want B.Method() to be executed in B's thread.
> That's to say, I want to tell Thead B to do B's stuff in B's thread,
> kinda like PostMessage in win32.
> Can
>I would also like to see Half Life 2 in pure Python.
or even quake1, do you think it could have any chances to run
smoothly? or maybe demoscene productions...
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
I need to do some XML programming, and I have installed the PyXML package.
However I read some stuff on the web that using the modules in PyXML is
slow and not elegant and it uses up lots of memory, and I don't know what
else.
Is the current implementation of PyXML legging behind in compar
Dr. Armin Rigo has some mathematical proof, that High Level Languages
like esp. Python are able to be faster than low level code like
Fortran, C or assembly.
I am not wise enough to understand that proof.
Maybe I understood those papers totally wrong and he was saying
something totally different.
Xuening wrote:
> I have a problem about menu by using Tkinter. I want to make a dynamic
> menu. That is when I create a new view/window, one menuitem will be
> added to the menu. and when I kill a window, the correponding menuitem
> will be deleted. I write a simple code and I can add menuitem now.
Harald Armin Massa wrote:
> Dr. Armin Rigo has some mathematical proof, that High Level Languages
> like esp. Python are able to be faster than low level code like
> Fortran, C or assembly.
>
Faster than assembly? LOL... :)
/David
--
http://mail.python.org/mailman/listinfo/python-list
DecInt is a class that support arithmetic on very large decimal
integers.
For example, it can calculate the decimal form of the 42nd Mersenne
prime, all 7,816,230 digits, in less than 21 seconds. And less than 6
seconds if gmpy 1.01 is available.
This version is significantly faster than the prio
Hi!
Kinsley Turner wrote:
[snip]
>
> def teaDecipher(input,key):
> y = input[0]
> z = input[1]
> n = 32
> sum = 0xC6EF3720
> delta=0x9E3779B9
>
> while (n > 0):
> n -= 1
> z -= (y << 4 ^ y >> 5) + y ^ sum + key[sum>>11 & 3];
> sum -= delta;
>
Dieter Vanderelst wrote:
> Hello,
>
> I'm having a problem with playing WAV files using Winsound.
>
> If I use winsound to play a certain WAV files only the first few seconds
> of the file get played. I think this comes because these files contain
> some parts of silence. There winsound seems the s
"malv" wrote:
> Could you post some more information about ShedSkink?
http://sourceforge.net/projects/shedskin/
--
http://mail.python.org/mailman/listinfo/python-list
On 2005-11-30, Duncan Booth <[EMAIL PROTECTED]> wrote:
> Antoon Pardon wrote:
>> But lets just consider. Your above code could simply be rewritten
>> as follows.
>>
>> res = list()
>> for i in range(10):
>> res.append(i*i)
>>
> I don't understand your point here? You want list() to creat
[EMAIL PROTECTED] wrote:
> Can anyone offer any suggestions as to the least painful way forwards?
I learnt more in half-an-hour with these lectures than days reading the
book and I've been writing programs of all sorts for more than 25 years.
http://wiki.python.org/moin/Intro_to_programming_wit
Hello,
My previous problem with Winsound has boiled down to a new problem.
I have some soundfiles (wav) of which I only need the n first seconds.
So, I thought I could crop them using
the standard wave-module:
This is some of my code:
#I open the wav file and I read the first n fra
This will work fine for me Tim, thank you for your time!
"Tim Golden" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
(Just to keep things readable, I've reordered the
posts top-to-bottom chronologically. And "Me" is the
cognomen of the original poster, not simply a redundant personal
Antoon Pardon wrote:
>> The left one is equivalent to:
>>
>> __anon = []
>> def Foo(l):
>>...
>>
>> Foo(__anon)
>> Foo(__anon)
>
> So, why shouldn't:
>
>res = []
>for i in range(10):
> res.append(i*i)
>
> be equivallent to:
>
> __anon = list()
> ...
>
>res = __anon
Antoon Pardon a écrit :
> On 2005-11-30, Duncan Booth <[EMAIL PROTECTED]> wrote:
>
>>Antoon Pardon wrote:
>>
>>>But lets just consider. Your above code could simply be rewritten
>>>as follows.
>>>
>>> res = list()
>>> for i in range(10):
>>> res.append(i*i)
>>>
>>
>>I don't understand your p
[EMAIL PROTECTED] wrote:
> viewcharts wrote:
>
>>I am reading two text files comparing the values in one to the other,
>>this requires two loops. The problem is that when the inner loop is
>>finished, it never goes back into the loop. Any suggestions?
>>
>>
>>for refSymbol in symbols.readlines():
Alia Khouri wrote:
> What ideas do people out there have for making the installation of
> python module more reliable?
judging from the support load it's causing me these days, setuptools is a
piece of utter crap. if you want to make things reliable, don't use it.
(if the various "rails" cloner
On Wed, 10 Nov 2004 19:55:54 +0100 (CET)
[EMAIL PROTECTED] wrote:
> Send Python-list mailing list submissions to
> python-list@python.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://mail.python.org/mailman/listinfo/python-list
> or, via email, send a
David Rasmussen wrote:
> Harald Armin Massa wrote:
>
>> Dr. Armin Rigo has some mathematical proof, that High Level Languages
>> like esp. Python are able to be faster than low level code like
>> Fortran, C or assembly.
>
> Faster than assembly? LOL... :)
I think the claim goes something along t
Xuening wrote:
> I have a problem about menu by using Tkinter. I want to make a dynamic
> menu. That is when I create a new view/window, one menuitem will be
> added to the menu. and when I kill a window, the correponding menuitem
> will be deleted. I write a simple code and I can add menuitem now.
Wilfredo Sánchez Vega:
"""
I'm having some issues around namespace handling with XML:
>>> document = xml.dom.minidom.Document()
>>> element = document.createElementNS("DAV:", "href")
>>> document.appendChild(element)
>>> document.toxml()
'\n'
"""
I
malv:
>Hi bearophileH,
bearophile is enough :-)
>Could you post some more information about ShedSkink?
ShedSkin (SS) is a Python -> C++ compiler (or translator) written in
Python, created by Mark Dufour. Its development was initially
"financed" by the summer of code by Google. It contains some
Dan Stromberg wrote:
> >> What's the best way of converting this:
> >>
> >> 'hide\\?http://www.dedasys.com/articles/programming_language_economics.html\x012005-07-20
> >> 14:48'
> >>
> >> ...to something easily usable in a python CGI script?
> >
> > easily usable for what purpose?
> >
> > if you w
Paul Rubin wrote:
> That is the guy who claims it is impossible to release anything into
> the public domain, other than by dying and then waiting 70 years.
Is that an indirect reference to the following article?
http://www.linuxjournal.com/article/6225
Paul
--
http://mail.python.org/mailman/l
Kinsley Turner wrote:
> I'm getting a bit out of my depth porting the 'tiny encryption algorithm'
> from C to python
> In my version, I end up with hugely long integers, which have obviously
> not be constrained into the 4-byte unsigned longs that TEA is expecting.
> ...
> def teaDecipher(inp
Hi,
the bdist_wininst command of distutils allows me to specify a script to
be executed at the end of the installation. That's great, but how can I
know the installation path from inside the script?
I've already tried os.getcwd(), but it just return the directory where the
setup was started.
-
I've found the same bug. This is what I've been doing:
from xml.dom.minidom import Document
try:
from xml.dom.ext import PrettyPrint
except ImportError:
PrettyPrint = None
doc = Document()
...
if PrettyPrint is not None:
PrettyPrint(doc, stream=ou
[EMAIL PROTECTED] wrote:
> This is a direct translation of the D code, maybe it's not the faster
> Python implementation, and surely it's not the shorter one. But Psyco
> makes it much faster (Psyco likes "low level" style code).
And if you contributed the program like this
http://shootout.alioth
Bengt Richter wrote:
> That's not just blunt and concise, it looks like the modus operandi
> of a typical volunteer/employee-exploiter (or perhaps spoiled brat,
> the typical precursor to the former).
careful. his faq requires you to "be nice".
--
http://mail.python.org/mailman/listinfo/py
One systematic, if maybe clumsy way, is to mimic the C arithmetic
operations more closely in Python. If you do, for example, a left shift
in C, the result is always returned in a certain precision, 64 bits in
the example below. In python, no bits are lost, so you have to force the
result into t
On 30 Nov 2005 10:57:04 GMT in comp.lang.python, Antoon Pardon
<[EMAIL PROTECTED]> wrote:
>On 2005-11-29, Mike Meyer <[EMAIL PROTECTED]> wrote:
>> Antoon Pardon <[EMAIL PROTECTED]> writes:
You see, you can make languages more powerful by *removing* things
from it.
>>> You cast this in wa
Steve Holden wrote:
> [EMAIL PROTECTED] wrote:
>> viewcharts wrote:
>>
>>> I am reading two text files comparing the values in one to the other,
>>> this requires two loops. The problem is that when the inner loop is
>>> finished, it never goes back into the loop. Any suggestions?
>>>
>>> for refSy
Anyone parsing simple LaTeX constructs with pyparsing?
I'm playing around with it (and looking at John Hunter's matplotlib stuff),
but I thought I'd ask here if anyone had other TeX/LaTeX examples.
thanks,
--Tim Arnold
--
http://mail.python.org/mailman/listinfo/python-list
Thomas Korimort wrote:
> Hi!
>
> I have embedded a Python interpreter into a C++ framework. When running
> some Python code in the interpreter, how can i get a traceback with line
> number file..., when an exception occurs?
>
> Greetings, Thomas Korimort.
Google for "python traceback", there s
Steven Bethard wrote:
> David Rasmussen wrote:
> > Faster than assembly? LOL... :)
Faster than physics? ;-)
> I think the claim goes something along the lines of "assembly is so hard
> to get right that if you can automatically generate it from a HLL, not
> only will it be more likely to be corre
Harald Armin Massa wrote:
> Dr. Armin Rigo has some mathematical proof, that High Level Languages
> like esp. Python are able to be faster than low level code like
> Fortran, C or assembly.
>
> I am not wise enough to understand that proof.
>
> Maybe I understood those papers totally wrong and he
Steven Bethard wrote:
> David Rasmussen wrote:
>
>>Harald Armin Massa wrote:
>>
>>
>>>Dr. Armin Rigo has some mathematical proof, that High Level Languages
>>>like esp. Python are able to be faster than low level code like
>>>Fortran, C or assembly.
>>
>>Faster than assembly? LOL... :)
>
>
> I t
hi,
one of the modules in my programs stopped wroking after i upgraded from
python 2.3 to 2.4. I also changed my wxPython to unicode supported one
during the process.
what the module essentially does is search for a stirng pattern form a
list of strings.
this is the function:
def srchqu(self):
On Nov 29, viewcharts wrote:
> I am reading two text files comparing the values in one to the other,
> this requires two loops.
Or you could have a look at difflib.
http://docs.python.org/lib/differ-examples.html
--
_ _ ___
|V|icah |- lliott <>< [EMAIL PROTECTED]
"
>Faster than assembly? LOL... :)
why not? Of course, a simple script like "copy 200 bytes from left to
right" can be handoptimized in assembler and run at optimum speed.
Maybe there is even a special processor command to do that.
I learned that there was one generation of CPUs which had effective
On Nov 30, Jürgen Kemeter wrote:
>My actual Problem:
>The Excel workbook contains several spreadsheets. These are
>linked through Hyperlinks, and contain several cell comments. How
>can I export these comments and Hyperlinks using Python?
Are you just wanting read a .xls file with
You should actually explain what you mean by "export".
Excel has a Save As HTML that would save everything out to HTML
or you can do Save As .CSV. Hard to tell what you want.
I suspect that to get to the cell comments you will need to
go through COM interface to Excel.
-Larry Bates
Micah Elli
Hi,
Does anyone have any experience with GnuPGInterface? I'm having a
problem with decrypting files through a cron job. The below job works
great when I run it manually from the command line, but it blows up
whenever I try to run it through cron, and I can't really figure out
why. I've been tryi
I haven't used PyXML extensively, but I have used parts of the Amara
XML Toolkit (http://uche.ogbuji.net/uche.ogbuji.net/tech/4suite/amara/)
and recommend it for elegance. I can't say, however, which tool is
faster. There are many other XML modules that people have written for
Python. Do your re
Are you able to run a dummy Python script using crontabs? For
troubleshooting purposes, I would verify this before trying to debug my
code. Check your permissions, paths, etc.
Can you post your entry into cron? What exactly happens when it "blows
up"?
--
http://mail.python.org/mailman/listinf
Hi! All I would like to call some python module or function from C code. Except installing whole python23 window version, what is the min module I need to keep or install. Is there any tool that I can use to strip extral modules that are not necessary in my program.? Anyone kenw? Thanks
Fredrik Lundh wrote:
> Bengt Richter wrote:
>
> > That's not just blunt and concise, it looks like the modus operandi
> > of a typical volunteer/employee-exploiter (or perhaps spoiled brat,
> > the typical precursor to the former).
>
> careful. his faq requires you to "be nice".
>
>
"Be Nice!"
I agree with jmj's solution, you would want to send a signal of some
sort to Thread B from A when some event occurs in A. A queue is one
way to do it, but keep in mind that there are numerous ways to
communicate between threads/processes (queue, pipe, exit status,
TCP/UDP message, etc.). I believ
Hi,
Larry Bates <[EMAIL PROTECTED]> wrote:
> You should actually explain what you mean by "export".
> Excel has a Save As HTML that would save everything out to HTML
> or you can do Save As .CSV. Hard to tell what you want.
> I suspect that to get to the cell comments you will need to
> go thro
Hi again,
Please excuse any ignorance here.
I would love to show you what you are asking for, but I am not sure
what you are asking for (newbie here).
All these connections (i.e. client-server connections) are within my
local area network.
I have a simple linksys 802.11b router.
My server is set
I am trying to write a function that holds a variable-length quene. The
quene has 2 bits of information. At some point, I would like to remove
bits of this quene, when they are completed. Is there a way to do this
with something as follows?
quene=[]
quene.append((4,2))
quene.append((3,6))
if(4 in
Is it possible to get doctest-mode to work with mmm-mode and python-mode
nicely so that docstrings containing doctests are editable in
doctest-mode?
In my utter e-lisp ignorance, I tried this:
(require 'mmm-auto)
(setq mmm-global-mode 'maybe)
(mmm-add-classes
'(
(doctest
:submode doc
[EMAIL PROTECTED] wrote:
> Please excuse any ignorance here.
> I would love to show you what you are asking for, but I am not sure
> what you are asking for (newbie here).
>
> All these connections (i.e. client-server connections) are within my
> local area network.
>
> I have a simple linksys 80
Hi Robert,
Thanks for the suggestion, but an apt-cache search python2.4-wxgtk2.4
returns no results for a package with that name.
Aaron
--
http://mail.python.org/mailman/listinfo/python-list
On 30 Nov 2005 09:38:44 -0800 in comp.lang.python, "Tuvas"
<[EMAIL PROTECTED]> wrote:
>I am trying to write a function that holds a variable-length quene. The
>quene has 2 bits of information. At some point, I would like to remove
>bits of this quene, when they are completed. Is there a way to do
On Wed, Nov 30, 2005 at 11:49:14AM +0100, Fredrik Lundh wrote:
> Alia Khouri wrote:
>
> > What ideas do people out there have for making the installation of
> > python module more reliable?
>
> judging from the support load it's causing me these days, setuptools is a
> piece of utter crap. if yo
Hello again!
Heres the CLIENT info you requested:
===
Interface List
0x1 ... MS TCP Loopback interface
0x20002 ...00 09 5b 41 0c b7 .. NETGEAR MA311 PCI Adapter - Packet
Scheduler
Miniport
==
Dennis Lee Bieber <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]:
> On 30 Nov 2005 00:58:45 -0800, [EMAIL PROTECTED]
> declaimed the following in comp.lang.python:
>
>> yes I have imported math in the file I want to use it. But the
>> imported module "math" is not visible in function withou
Micah Elliott wrote:
> On Nov 29, viewcharts wrote:
>
>>I am reading two text files comparing the values in one to the other,
>>this requires two loops.
>
>
> Or you could have a look at difflib.
>
> http://docs.python.org/lib/differ-examples.html
>
Indeed, but I personally don't see a way to
David Rasmussen wrote:
> Harald Armin Massa wrote:
>
>>Dr. Armin Rigo has some mathematical proof, that High Level Languages
>>like esp. Python are able to be faster than low level code like
>>Fortran, C or assembly.
>>
>
>
> Faster than assembly? LOL... :)
>
I don't see why this is so funny. A
I have 5 python scripts I've added to cron over the past year that run
correctly all the time. I double-checked the permissions and paths and
everything looks good there. Here's the cron entry that I just tested
with:
23 12 * * * /usr/local/bin/decrypt_test.py >
/usr/local/bin/decrypt.log
> Micah Elliott wrote:
> > On Nov 29, viewcharts wrote:
> >>I am reading two text files comparing the values in one to the other,
> >>this requires two loops.
> >
> > Or you could have a look at difflib.
> > http://docs.python.org/lib/differ-examples.html
On Nov 30, Steve Holden wrote:
> Indeed,
Hi!
Harald Armin Massa wrote:
> And I could see real development just from watching the BDFL: 3 years
> ago PyPy was 2000times slower then CPython, and Guido was joking "and
> that number is growing", this year there were not officially negated
> romours that sometime maybe PyPy could be the refer
David Rasmussen wrote:
> Frithiof Andreas Jensen wrote:
>>From the speed requirement: Is that correspondance chess by any chance??
>
> Regular chess at tournament time controls requires speed too. Any pure
> Python chess program would lose badly to the best C/C++ programs out
> there now.
>
> I
Dennis Lee Bieber wrote:
> > But the solutions already proposed seems to work file for my sample
> > program. I will try on my project soon :)
>
> Looking at the documentation for "execfile", I can see /how/ the
> problem occurs -- but can't determine if this can be considered
> "expected".
>
> -=
[EMAIL PROTECTED] wrote:
> "Be Nice!" *is* one of paragraph headings in the FAQ section "How can I
> help?"
yeah, we've noticed that it's not one of the headings in the FAQ section
"How can we encourage you to contribute".
--
http://mail.python.org/mailman/listinfo/python-list
Tuvas wrote:
> I am trying to write a function that holds a variable-length quene. The
> quene has 2 bits of information. At some point, I would like to remove
> bits of this quene, when they are completed. Is there a way to do this
> with something as follows?
>
> quene=[]
> quene.append((4,2))
Harald Armin Massa wrote:
> >Faster than assembly? LOL... :)
>
> why not? Of course, a simple script like "copy 200 bytes from left to
> right" can be handoptimized in assembler and run at optimum speed.
> Maybe there is even a special processor command to do that.
>
> I learned that there was one
In wxPython, I want to be able to start downloading a file and have the
window doing such remain interactive, so that the user can cancel
downloading the next file. Also, if there is a way to cancel a
downloading process, what is it?
I am using urllib.urlretrieve. Thanks for any help, in advance
1 - 100 of 205 matches
Mail list logo