We are pleased to announce that the second release of Elixir
(http://elixir.ematia.de) is now available. We hope you'll enjoy it.
Highlights for this release
-
- Implemented singletable non-polymorphic inheritance
- Added support to pass non-keyword arguments
A type system doesn't help. So what if they're both floats? The test
is still bogus, your code will still wait too long to engage the
retro-rockets, and the billion dollar space craft will still be travelling
at hundreds of miles an hour when it reaches the surface of Mars.
A type system
On Thu, 01 Mar 2007 21:01:40 +0100, Adam [EMAIL PROTECTED]
wrote:
Ok the window has resized but the elements inside are still like they
were, so they are going off the edge on the window. How can I get
these to resize? I have put sizes on the frames they are in. Sorry to
keep asking but I'm
On Thu, 01 Mar 2007 22:35:40 +0100, James Stroud [EMAIL PROTECTED]
wrote:
Gigs_ wrote:
class MenuDemo(Frame):
def __init__(self, parent=None):
Frame.__init__(self, parent)
self.pack(expand=YES, fill=BOTH)
self.createWidgets()
def createWidgets(self):
Jussi Salmela [EMAIL PROTECTED] wrote:
I've run a couple of tests and it seems to me that Dennis Lee Bieber
is
on the trail of the truth when he claims that smallest magnitude to
the largest is the way to do the summation. Actually it isn't THE way
although it diminishes the error. I
Sick Monkey wrote:
I am trying to build a python program that will reset a user's account
(password) on a windows machine. I have been working with win32
objects and was wondering if this functionality was already built in.
I'm going to assume that win32 objects is the stuff in the
pywin32
Steven D'Aprano wrote:
For those times when os.walk's behaviour doesn't mesh well with that of
the external program you are calling (like macunpack) is there an
alternative to:
- save the cwd;
- change directories;
- call the program;
- return to the saved directory
?
os.walk()
Hey guys, I'm trying to do some black magic voodoo and it's a little
late, so forgive me if this question seems obvious or has been asked
before. I tried doing a search on context objects and didn't find
anything that popped out, and I'm too tired to keep digging.
I'm making a little program that
[EMAIL PROTECTED] wrote:
Thanks Bart. That's perfect. The other suggestion was to precompute
count1 for all possible bytes, I guess that's 0-256, right?
0 to 255 inclusive, actually - that is 256 numbers...
The largest number representable in a byte is 255
eight bits, of value
On Mar 2, 3:08 am, MooMaster [EMAIL PROTECTED] wrote:
Hey guys, I'm trying to do some black magic voodoo and it's a little
late, so forgive me if this question seems obvious or has been asked
before. I tried doing a search on context objects and didn't find
anything that popped out, and I'm
MooMaster wrote:
Hey guys, I'm trying to do some black magic voodoo and it's a little
late, so forgive me if this question seems obvious or has been asked
before. I tried doing a search on context objects and didn't find
anything that popped out, and I'm too tired to keep digging.
I'm
I need a pytho nscript to read numbers(with loads of digits) from a
file, do some basic math on it and write the result out to another file.
My problem: I don't get python to use more digits:
In order to try this I type:
The normal precision one:
from numpy import *
Hi everyone, I have a program which is written in C and interfaced
with python via
Ctypes. The functions I call print stuff out to the console, using
the usual function printf. I would like to know if it is possible to
redirect the output of my C module to python. I'm working on windows
Does this class need anything more?
Is there any risk of a lookup loop?
Seems to work...
class attrdict(dict):
Dict where d['foo'] also can be accessed as d.foo
def __init__(self, *args, **kwargs):
self.__dict__ = self
dict.__init__(self, *args, **kwargs)
def
Ulrich Dorda wrote:
[Warning: I'm no expert and don't have numpy installed]
I need a pytho nscript to read numbers(with loads of digits) from a
file, do some basic math on it and write the result out to another file.
My problem: I don't get python to use more digits:
In order to try this
I am very new to Python. I installed Python in Windows and learning
it. But i need to install Python on Solaris 8 to automate few things
as my build environment is on Solaris. When i tried to download python
2.5 source code and tried to compile i got the error saying
configure: error: cannot
We are trying to use the API of a Win32 app which presents the API as a COM
interface. The sample VB code for getting and setting the values of custom
data fields on an object shows a method named Value():
getterobj.Value(myfield)
setterobj.Value(myfield) = newvalue
Using Python
On Mar 1, 7:36 pm, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
On Mar 1, 12:46 pm, Bart Ogryczak [EMAIL PROTECTED] wrote:
This solution looks nice, but how does it work? I'm guessing
struct.unpack will provide me with 8 bit bytes
unpack with 'B' format gives you int value equivalent to
Sudipta Chatterjee wrote:
I am facing a strange problem when I try to embed images in a text widget.
After reading the file via PhotoImage() and then using
text.image_create(INSERT,
image=img), I get a blank place instead of the image. The size of the blank
area under highlighting via the
I am new to python and working on a project that involves designing a
new language. The grammar of the language is very much inspired from
python as in is supports nearly all the statements and expressions
that are supported by python. Since my project is in initial stage, so
I think it would
Now you can call anywhere in world for free
Hurry up...Its Globe 7..
You are paid to watch free videos(of your choice)...
Now its no. 1 VOIP service in the worldClick on the link below...
download the software, register for free and start calling
What are you waiting for now
Call any
On 28 Feb, 18:38, luvsat [EMAIL PROTECTED] wrote:
I am new to python and working on a project that involves designing a
new language. The grammar of the language is very much inspired from
python as in is supports nearly all the statements and expressions
that are supported by python. Since
On 2 mar, 05:14, Steven D'Aprano [EMAIL PROTECTED]
wrote:
On Thu, 01 Mar 2007 21:45:55 +0100, Bruno Desthuilliers wrote:
As a side note : hungarian notation is usually considered bad form here.
Look here for usual naming conventions:
http://www.python.org/dev/peps/pep-0008/
Which Hungarian
master is a reference to a Tk() or Toplevel(). Frames do not contain
menus, but the windows that contain them do.
This is the main reason why I always rant about examples of Tkinter
programming creating windows by sub-classing Frame: frames are not
windows. If you want to create a
On Mar 1, 1:16 am, Hendrik van Rooyen [EMAIL PROTECTED] wrote:
This post begs the following questions:
- Why make a new language, when
- It is going to be an inferior subset of Python -
- What can the motivation be to do this instead of contributing to the python
effort?
Perhaps the OP only
if hmmCurrentHeight = hinCriticalHeight:
then you should instantly recognise that there's a problem.
all civilized nations but one use metric systems. Of course there is a
problem if you spot inches somewhere.
Harald
--
http://mail.python.org/mailman/listinfo/python-list
Il 28 Feb 2007 14:09:09 -0800, [EMAIL PROTECTED] ha scritto:
Seems obvious and desirable to me. Bare = is the way you assign a
name to an object; saying NAME = will rebind the name, breaking the
connection between a and b. Without it, they continue to refer to the
same object; extending
Hi !
I know that this topic has been discussed in the past, but I could not
find a working solution for my problem: sorting (lists of) strings
containing special characters like ä, ü,... (german umlaute).
Consider the following list:
l = [Aber, Beere, Ärger]
For sorting the letter Ä is supposed
[EMAIL PROTECTED] wrote:
Hi !
I know that this topic has been discussed in the past, but I could not
find a working solution for my problem: sorting (lists of) strings
containing special characters like ä, ü,... (german umlaute).
Consider the following list:
l = [Aber, Beere, Ärger]
For
[EMAIL PROTECTED] wrote:
I know that this topic has been discussed in the past, but I could not
find a working solution for my problem: sorting (lists of) strings
containing special characters like ä, ü,... (german umlaute).
Consider the following list:
l = [Aber, Beere, Ärger]
For
I have just read about buffer and array objects and I think one of them
could be fit for my need. However there are two questions.
If i make a buffer from a part of dynamically allocated memory, what
would free it? Should it be allocated with malloc or some
python-specific function?
How on
Andi Clemens wrote:
cut
It's working!!!
Yeah!
I don't know why I didn't get this the first time I tried dnspython, but now
its working! And it's so easy, 3 lines of code:
def make_dns_entry(pix):
update = dns.update.Update(_DOMAIN)
update.replace(pix.name, 3600, 'a',
Steven D'Aprano wrote:
Overkill? Storage of a single attribute holding a (usually short)
string is overkill?
No, but storing the first name a class is bound to in it is a bit
of, IMHO.
When you do that, you wouldn't expect the __name__ of
some.module.function to change to f, and it
On Mar 1, 10:07 pm, John Henry [EMAIL PROTECTED] wrote:
On Mar 1, 9:53 pm, [EMAIL PROTECTED] wrote:
On Mar 1, 3:10 pm, John Henry [EMAIL PROTECTED] wrote:
I've been asking this question at the matplotlib user list and never
gotten an answer. I am hoping that there are matplotlib
Hi,
I'm developing a GUI app in Python/C++ to visualize numerical results.
Currently I'm using Python 2.4 with wx and PyOpenGLContext, but there
are no windows binaries for Python 2.5 for quite some time now.
I need a OpenGL context without restrictions and some settings dialogs.
Is wx +
list = Listbox()
list.insert('end', x)
list.insert(END, x)
what do you use 'end' or END?
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 2, 7:02 am, John Henry [EMAIL PROTECTED] wrote:
On Mar 1, 10:07 pm, John Henry [EMAIL PROTECTED] wrote:
On Mar 1, 9:53 pm, [EMAIL PROTECTED] wrote:
(snipped)
You can try adjusting the labels and ticks
using matplotlib.ticker.
To the example you cited, one can add
from
[EMAIL PROTECTED] writes:
For sorting the letter Ä is supposed to be treated like Ae,
therefore sorting this list should yield
l = [Aber, Ärger, Beere]
Are you sure? Maybe I'm thinking of another language, I thought Ä shold
be sorted together with A, but after A if the words are otherwise
On 2007-03-02, Ulrich Dorda [EMAIL PROTECTED] wrote:
I need a pytho nscript to read numbers(with loads of digits) from a
file, do some basic math on it and write the result out to another file.
My problem: I don't get python to use more digits:
In order to try this I type:
The normal
Although a fan of Python, I find the Python Library Reference page
(lib.html) very inconvenient because of its book contents-like layout.
Also, some things that seem to me to belong together, such as string
methods and string services are dispersed. Another annoyance is that
it is
so verbose: this
I've been trying to install Mailman, which requires a newer version
of the Python language compiler (p-code generator?) than the one I
currently have on my linux webserver/gateway box.
It's running a ClarkConnect 2.01 package based on Red Hat 7.2 linux.
I downloaded the zipped tarball
On Fri, 02 Mar 2007 13:41:12 +0100, Gigs_ [EMAIL PROTECTED] wrote:
is it alright to use Menu instead Toplevel or Tk
like this?
from Tkinter import *
from tkMessageBox import *
class MenuDemo(Menu):
def __init__(self, master=None):
Menu.__init__(self, master)
On Fri, 02 Mar 2007 16:17:32 +0100, Gigs_ [EMAIL PROTECTED] wrote:
list = Listbox()
list.insert('end', x)
list.insert(END, x)
what do you use 'end' or END?
from Tkinter import END
END == 'end'
True
So this isn't really important... My personal usage varies: for your use
case, I tend
Hallvard B Furuseth wrote:
[EMAIL PROTECTED] writes:
For sorting the letter Ä is supposed to be treated like Ae,
therefore sorting this list should yield
l = [Aber, Ärger, Beere]
Are you sure? Maybe I'm thinking of another language, I thought Ä
shold be sorted together with A, but after
Hi all,
I would like to make the the calender cery similar to google
event calander in python. can any one help me where
i will get library that uses AJAX is this feasible
reg,
Lalit
--
http://mail.python.org/mailman/listinfo/python-list
On 2 Mrz., 15:25, Peter Otten [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
For sorting the letter Ä is supposed to be treated like Ae,
There are several way of defining the sorting order. The variant ä
equals ae follows DINDIN 5007 (according to wikipedia); defining (a
equals ä) complies
If you are both waiting for input, you have a Mexican standoff...
That is not the problem. The problem is, that the buffers are not
flushed correctly. It's a dialogue, so nothing complicated. But python
does not get what the subprocess sends onto the subprocess' standard
out - not every time,
On Mar 2, 3:01 pm, Bjoern Schliessmann usenet-
[EMAIL PROTECTED] wrote:
Steven D'Aprano wrote:
Overkill? Storage of a single attribute holding a (usually short)
string is overkill?
No, but storing the first name a class is bound to in it is a bit
of, IMHO.
Don't see it as the first name a
Mike,
Yes, that is a pretty fair description of our support for symbolics
using Python's own inheritance. Our ModelSpec classes provide only an
elementary form of inheritance, polymorphism and type checking. We
hope to expand our existing support for hybrid/DAE systems at the
level of our
Achim Domma wrote:
Hi,
I'm developing a GUI app in Python/C++ to visualize numerical results.
Currently I'm using Python 2.4 with wx and PyOpenGLContext, but there
are no windows binaries for Python 2.5 for quite some time now.
I need a OpenGL context without restrictions and some
[EMAIL PROTECTED] writes:
So, once I start the C Program from the shell, I immediately get its
output in my terminal. If I start it from a subprocess in python and
use python's sys.stdin/sys.stdout as the subprocess' stdout/stdin I
also get it immediately.
If stdout is connected to a
Hi, i'm faced with such a problem when i use xml.dom.minidom:
to append all child nodes from doc in _requ to doc in _resp, i do the
following:
_requ =
minidom.parseString(respdoconeOne/onetwoTwo/two/doc/resp)
_resp = minidom.parseString(respdoc//resp)
iSourseTag =
In article [EMAIL PROTECTED],
Gabriel Genellina [EMAIL PROTECTED] wrote:
En Thu, 01 Mar 2007 14:42:00 -0300, [EMAIL PROTECTED] escribió:
BUT If I use PIPE for both (so I can .write() on the stdin and .read()
from the subprocess' stdout stream (better: file descriptor)) reading
from the
Richard,
I was most impressed by your answer below (in '03)
Do you know whether there is a third party application/library that
can interface our software to the HL7 sockets systems so we do not
have to develop them?
If you do, which one would you recommend?
Thank you,
[]
Richard M. Low
Achim Domma wrote:
Hi,
I'm developing a GUI app in Python/C++ to visualize numerical results.
Currently I'm using Python 2.4 with wx and PyOpenGLContext, but there
are no windows binaries for Python 2.5 for quite some time now.
I need a OpenGL context without restrictions and some
On Mar 2, 9:17 am, Achim Domma [EMAIL PROTECTED] wrote:
I need a OpenGL context without restrictions and some settings dialogs.
Is wx + PyOpenGL the way to go? Or could somebody recommend a better set
of tools/libs?
You could use pygtk + pygtkglext.
http://pygtk.org/
Bjoern Schliessmann wrote:
Hallvard B Furuseth wrote:
[EMAIL PROTECTED] writes:
...
In German, there are some different forms:
- the classic sorting for e.g. word lists: umlauts and plain vowels
are of same value (like you mentioned): ä = a
- name list sorting for e.g. phone books:
:(
--
http://mail.python.org/mailman/listinfo/python-list
Folks,
I've a Python 2.5 app running on 32 bit Win 2k SP4 (NTFS volume).
Reading a file of 13 GBytes, one line at a time. It appears that,
once the read line passes the 4 GByte boundary, I am getting
occasional random line concatenations. Input file is confirmed good
via UltraEdit. Groovy
On Feb 5, 9:24 am, Jonathan Curran [EMAIL PROTECTED] wrote:
On Monday 05 February 2007 11:08, slogging_away wrote:
I know, I know - flame away but its not clear to me if Python will run
on a system running MicrosoftVista. Is anyone successfully running
Python onVista? If so, is it what
[EMAIL PROTECTED] wrote:
I've a Python 2.5 app running on 32 bit Win 2k SP4 (NTFS volume).
Reading a file of 13 GBytes, one line at a time. It appears that,
once the read line passes the 4 GByte boundary, I am getting
occasional random line concatenations. Input file is confirmed good
via
On Mar 2, 8:32 am, Eric Brunel [EMAIL PROTECTED] wrote:
On Fri, 02 Mar 2007 16:17:32 +0100, Gigs_ [EMAIL PROTECTED] wrote:
list = Listbox()
list.insert('end', x)
list.insert(END, x)
what do you use 'end' or END?
from Tkinter import END
END == 'end'
True
So this isn't really
Richard Low, MD wrote:
Richard,
I was most impressed by your answer below (in '03)
Do you know whether there is a third party application/library that can
interface our software to the HL7 sockets systems so we do not have to
develop them?
If you do, which one would you recommend?
I am not using the universal newline. File reading loop is essentially...
ifile = open(fileName, r)
for line in ifile
...
Thanks
Peter Otten wrote:
[EMAIL PROTECTED] wrote:
I've a Python 2.5 app running on 32 bit Win 2k SP4 (NTFS volume).
Reading a file of 13 GBytes, one line at a
as i'm not sure if apache2 or python is responsible for this, excuse
if i try to ask here too.
our problem is that mercurial does not work from apache, but from
python command-line it does. what could be a reason for this
behaviour?
---
from the
I have a sort function in a python chess program.
Currently it looks like this:
def sortMoves (board, table, ply, moves):
f = lambda move: getMoveValue (board, table, ply, move)
moves.sort(key=f, reverse=True)
return moves
However I'd really like not to use the lambda, as it slows
Thomas Dybdahl Ahle schrieb:
I have a sort function in a python chess program.
Currently it looks like this:
def sortMoves (board, table, ply, moves):
f = lambda move: getMoveValue (board, table, ply, move)
moves.sort(key=f, reverse=True)
return moves
However I'd really like
Richard Jebb a écrit :
We are trying to use the API of a Win32 app which presents the API as a COM
interface. The sample VB code for getting and setting the values of custom
data fields on an object shows a method named Value():
getterobj.Value(myfield)
setter
Thomas Dybdahl Ahle [EMAIL PROTECTED] writes:
Do you have any ideas how I can sort these moves the fastest?
One idea: if you're using alpha-beta pruning, maybe you can use
something like heapq instead of sorting, since a lot of the time you
only have to look at the first few moves (ordered
Thomas Dybdahl Ahle wrote:
However I'd really like not to use the lambda, as it slows down
the code.
Did you check how much the slowdown is?
Regards,
Björn
--
BOFH excuse #65:
system needs to be rebooted
--
http://mail.python.org/mailman/listinfo/python-list
Robin Becker wrote:
Björn, in one of our projects we are sorting in javascript in
several languages English, German, Scandinavian languages,
Japanese; from somewhere (I cannot actually remember) we got this
sort spelling function for scandic languages
a
.replace(/\u00C4/g,'A~') //A umlaut
Arnaud Delobelle wrote:
Don't see it as the first name a class is bound to, but rather as
the name a class is defined as.
If class_object.__name__ == 'Foo' it means that somewhere in your
code there is a class definition:
class Foo:
# stuff
Same for function: if
Maksim Kasimov wrote:
Hi, i'm faced with such a problem when i use xml.dom.minidom:
to append all child nodes from doc in _requ to doc in _resp, i do the
following:
_requ =
minidom.parseString(respdoconeOne/onetwoTwo/two/doc/resp)
_resp = minidom.parseString(respdoc//resp)
Note that
After digging around in the group archives I've figured it out. It's not
been helped by my inability to identify the API's COM server/type library in
the list produced by the MakePy utility, so I've largely been flying blind.
Some posts on this same subject back in 1999 revealed the answer,
Now that I can change the row colors of QTableView when loading data I
now need to be able to set the color of the row at anytime. I've been
trying by using an item delegate but I'm not sure if I'm using it
correctly. Would I try and set an item delegate for the row and
change the background
In article [EMAIL PROTECTED],
zefciu [EMAIL PROTECTED] wrote:
Hi!
I want to embed a function in my python application, that creates a
two-dimensional array of integers and passes it as a list (preferably a
list of lists, but that is not necessary, as the python function knows
the
On Mar 2, 7:22 am, [EMAIL PROTECTED] wrote:
On Mar 2, 7:02 am, John Henry [EMAIL PROTECTED] wrote:
On Mar 1, 10:07 pm, John Henry [EMAIL PROTECTED] wrote:
On Mar 1, 9:53 pm, [EMAIL PROTECTED] wrote:
(snipped)
You can try adjusting the labels and ticks
using matplotlib.ticker.
Hallvard B Furuseth wrote:
Does this class need anything more?
Is there any risk of a lookup loop?
Seems to work...
class attrdict(dict):
Dict where d['foo'] also can be accessed as d.foo
def __init__(self, *args, **kwargs):
self.__dict__ = self
Friends,
I don´t see why using classes.. functions does everything already. I
read the Rossum tutotial and two other already.
Maybe this is because I am only writing small scripts, or some more
serious misunderstandings of the language.
Please give me a light.
thanks guys,
Claire
--
Thanks for the reply, will work with this tomorrow.
Adam
--
http://mail.python.org/mailman/listinfo/python-list
I'm new to Python and fairly experienced in Perl, although that
experience is limited to the things I use daily.
I wrote the same script in both Perl and Python, and the output is
identical. The run speed is similar (very fast) and the line count is
similar.
Now that they're both working, I was
Den Fri, 02 Mar 2007 21:13:02 +0100 skrev Bjoern Schliessmann:
Thomas Dybdahl Ahle wrote:
However I'd really like not to use the lambda, as it slows down the
code.
Did you check how much the slowdown is?
Yes, the lambda adds 50%
--
http://mail.python.org/mailman/listinfo/python-list
Silver Rock a écrit :
Friends,
I don´t see why using classes.. functions does everything already. I
read the Rossum tutotial and two other already.
Maybe this is because I am only writing small scripts, or some more
serious misunderstandings of the language.
or both ?-)
If you only
Hi Claire,
That is the beauty of using Python. You have a choice of using
classes and traditional OOP techniques or sticking to top level
functions. For short, small scripts it would probably be overkill to
use classes. Yet the programmer still has classes in his tool chest
if he/she
Den Fri, 02 Mar 2007 11:44:27 -0800 skrev Paul Rubin:
Thomas Dybdahl Ahle [EMAIL PROTECTED] writes:
Do you have any ideas how I can sort these moves the fastest?
One idea: if you're using alpha-beta pruning, maybe you can use
something like heapq instead of sorting, since a lot of the time
Den Fri, 02 Mar 2007 20:33:45 +0100 skrev Diez B. Roggisch:
Thomas Dybdahl Ahle schrieb:
I have a sort function in a python chess program. Currently it looks
like this:
def sortMoves (board, table, ply, moves):
f = lambda move: getMoveValue (board, table, ply, move)
On Mar 2, 8:28 pm, Bjoern Schliessmann usenet-
[EMAIL PROTECTED] wrote:
This is somehow contrary to my understanding of the Python names
concept.
What if I use a loop to define several classes based on data --
they'll all have the same __name__ unless I change it manually.
Well that's not a
On Mar 2, 5:11 pm, Thomas Dybdahl Ahle [EMAIL PROTECTED] wrote:
Wouldn't that be just as slow?
Well, I'm not sure about speed, but with the lambda you're creating a
new callable for f every time you call sortMoves. Intuitively, that
seems like it would be more of a hit than just doing a lookup
On Feb 28, 1:26 pm, Luis M. González [EMAIL PROTECTED] wrote:
I've come across a code snippet in www.rubyclr.com where they show how
easy it is to declare a class compared to equivalent code in c#.
I wonder if there is any way to emulate this in Python.
I posted like 10 minutes ago, but it
I'm trying to extract some data from an XHTML Transitional web page.
What is best way to do this?
xml.dom.minidom.parseString(text of web page) gives errors about it
not being well formed XML.
Do I just need to add something like ?xml ...? or what?
Chris
--
I believe that I've seen this discussed previously, so maybe there's
some interest in it. I wrote a threaded mail filtering framework a
while ago, and one of the modules does address verification via SMTP.
Since smtplib.SMTP uses blocking IO, it can block the whole
interpreter. Sometimes
On Mar 2, 8:29 pm, MonkeeSage [EMAIL PROTECTED] wrote:
On Feb 28, 1:26 pm, Luis M. González [EMAIL PROTECTED] wrote:
I've come across a code snippet inwww.rubyclr.comwhere they show how
easy it is to declare a class compared to equivalent code in c#.
I wonder if there is any way to emulate
[EMAIL PROTECTED] wrote:
I'm trying to extract some data from an XHTML Transitional web page.
What is best way to do this?
An XML parser should be sufficient. However...
xml.dom.minidom.parseString(text of web page) gives errors about it
not being well formed XML.
Do I just need to add
Den Fri, 02 Mar 2007 15:20:33 -0800 skrev MonkeeSage:
On Mar 2, 5:11 pm, Thomas Dybdahl Ahle [EMAIL PROTECTED] wrote:
Wouldn't that be just as slow?
Well, I'm not sure about speed, but with the lambda you're creating a
new callable for f every time you call sortMoves. Intuitively, that
Den Fri, 02 Mar 2007 19:26:08 -0300 skrev Silver Rock:
Friends,
I don´t see why using classes.. functions does everything already. I
read the Rossum tutotial and two other already.
Maybe this is because I am only writing small scripts, or some more
serious misunderstandings of the
Den Fri, 02 Mar 2007 15:32:58 -0800 skrev [EMAIL PROTECTED]:
I'm trying to extract some data from an XHTML Transitional web page.
xml.dom.minidom.parseString(text of web page) gives errors about it
not being well formed XML.
Do I just need to add something like ?xml ...? or what?
As many
Few suggestions, some important, some less important. All my
suggestions are untested.
Use 4 spaces to indent.
If you want to speed up this code you can move it inside a function.
After that, if you want to make it even faster you can use Psyco too.
Ho are the dates represented? How do you
On Mar 2, 5:48 pm, Luis M. González [EMAIL PROTECTED] wrote:
Thanks for your detailed reply!
So after all, the www.rubyclr.com code is not a fair comparison.
Because the c# code shows a class definition, and the ruby code shows
a struct definition, which is not equivalent to a class.
Is that
[EMAIL PROTECTED] wrote:
I'm trying to extract some data from an XHTML Transitional web page.
What is best way to do this?
May I suggest html5lib [1]? It's based on the parsing section of the
WHATWG HTML5 spec [2] which is in turn based on the behavior of major
web browsers so it should
On Mar 2, 5:51 pm, Thomas Dybdahl Ahle [EMAIL PROTECTED] wrote:
I guess the thing is that I'd have to create a new callable no matter
how, as it is the only way to bring the extra variables into the getValue
function when called by sort.
Yes, but you don't have to create it every time you call
1 - 100 of 137 matches
Mail list logo