Hi,
We are proud to announce the release of LDTP 0.9.0. This release
features number of important breakthroughs in LDTP as well as in the
field of Test Automation. This release note covers a brief introduction
on LDTP followed by the list of new features and major bug fixes which
makes this new
The following announcement is in German.
Despite this we would like to post it here, because many
German speaking Python users read this group/list.
Bis zum 31. August gilt noch die ermäßigte Anmeldegebühr.
Also am Besten gleich anmelden unter:
http://www.python-academy.de/workshop/anmeldung.html
En Mon, 27 Aug 2007 17:42:45 -0300, Ivan Voras [EMAIL PROTECTED]
escribi�:
I have a list of items, and need to choose several elements from it,
almost random. The catch is that the elements from the beginning
should have more chance of being selected than those at the end (how
much more? I
On 28 Aug., 02:28, [EMAIL PROTECTED] (Michael R. Copeland) wrote:
Note that I'm not considering using the existing C/C++ code in my Web
application, because I don't know how to write a C/C++ Windows
application - and I'm sure the learning curve here is greater than
Python's. I'm a very
hg a écrit :
2) I'm desperately searching for the French NG from my client but cannot
find it ... any clue ? Maybe you can pass the message ?
Done.
See
http://groups.google.com/group/fr.comp.lang.python/browse_frm/thread/fa4474921f77b1be/8d6150d502447510#8d6150d502447510
--
On 8/27/07, Peter Otten [EMAIL PROTECTED] wrote:
Peter Otten wrote:
Alex Martelli wrote:
Integer objects that are once generated are kept around in a free list
against the probability that they might be needed again in the future (a
Python 2.5.1 (r251:54863, May 2 2007, 16:56:35)
On 2007-08-28, Davy [EMAIL PROTECTED] wrote:
On Aug 28, 11:00 am, Davy [EMAIL PROTECTED] wrote:
Hi all,
It is well known that Python is appreciated for its merit of concise.
However, I found the over concise code is too hard to understand for
me.
Consider, for instance,
def
Alex Martelli a écrit :
rfv-370 [EMAIL PROTECTED] wrote:
(snip)
So how can I force Python to clean the memory and free the memory that
is not used?
On Windows, with Python 2.5, I don't know of a good approach (on Linux
and other Unix-like systems I've used a strategy based on forking, doing
I saw your article is very good, I like it very much. I will continue
to pay attention to your article, the following are the points I hope
that I have similar concerns.
http://www.game-win.com http://www.game-win.com/wow-powerleveling.html
http://www.game-win.com/faq.html
On 28 ago, 02:11, Lawrence D'Oliveiro [EMAIL PROTECTED]
central.gen.new_zealand wrote:
In message [EMAIL PROTECTED], Gabriel
Genellina wrote:
En Mon, 27 Aug 2007 05:35:51 -0300, Lawrence D'Oliveiro
[EMAIL PROTECTED] escribi?:
In message [EMAIL PROTECTED],
Gabriel Genellina wrote:
Thanks to everyone who replied, (and special thanks to Alex Martelli,) I
was able to accomplish what I originally asked for: a shuffle() which is
both fast and without bias. It is the first time I try to optimize
python code, and it is definitely a very rewarding experience.
To bring closure
On Aug 27, 11:28 pm, [EMAIL PROTECTED] wrote:
On Aug 27, 3:21 pm, geoffbache [EMAIL PROTECTED] wrote:
Hi,
As part of my efforts to write a test tool that copes with GUIs
nicely, I'm trying to establish how I can start a GUI process on
Windows that will not bring up the window. So I
Thanks guys,
dirty hack was what I needed to get a job done quickly.
Nick
--
http://mail.python.org/mailman/listinfo/python-list
On 8/28/07, Nagarajan [EMAIL PROTECTED] wrote:
A simple yaml file might just do the trick.
Your yaml file shall look like the following:
Word-def.yaml
word1: word1's definition
word2: word2's definition
..
..
..
Use pyyaml to handle yaml files.
import yaml
worddefs =
Hi,
I have a load of British National Grid references that I want to
convert to decimal degrees so I can create a google KML file. Does
anyone know of a module to do this?
I've looked at http://pygps.org/#LatLongUTMconversion but am not
really up to speed with projections and all this other
On Mon, 27 Aug 2007 22:42:45 +0200, Ivan Voras wrote:
I have a list of items, and need to choose several elements from it,
almost random. The catch is that the elements from the beginning
should have more chance of being selected than those at the end (how
much more? I don't care how the
Hi,
I'm having problems using the package pymat after using threading, e.g. the
line:
#
h = pymat.open()
#
is not possible to fully execute after the lines:
#
import threading
from time import sleep
def SlpFcn():
sleep(5)
print end of sleep
trd = threading.Thread(target=SlpFcn)
hg a écrit :
2) I'm desperately searching for the French NG from my client but cannot
find it ... any clue ? Maybe you can pass the message ?
Contact Michel Claveau ( [EMAIL PROTECTED] ) for a
solution via his Usenet relay.
A+
Laurent.
--
On Aug 27, 6:06 pm, Matt McCredie [EMAIL PROTECTED] wrote:
A python interactive interpreter works by having the user type in some
code, compiling and running that code, then printing the results. For
printing, the results are turned into strings.
I would like make an interpreter which
On Aug 27, 2:13 am, Nenad Milicevic - The Aryan Serb
[EMAIL PROTECTED] wrote:
Let's break the chains of Jewish and black domination!
A) Why?
B) What chains?
--
http://mail.python.org/mailman/listinfo/python-list
On Aug 28, 2:59 am, A.T.Hofkamp [EMAIL PROTECTED] wrote:
On 2007-08-28, Davy [EMAIL PROTECTED] wrote:
On Aug 28, 11:00 am, Davy [EMAIL PROTECTED] wrote:
Hi all,
It is well known that Python is appreciated for its merit of concise.
However, I found the over concise code is too hard to
Dustan wrote:
On Aug 27, 2:13 am, Nenad Milicevic - The Aryan Serb
[EMAIL PROTECTED] wrote:
Let's break the chains of Jewish and black domination!
A) Why?
B) What chains?
Posting such as the one that started this thread are best ignored!
Unless, of course, someone has a working
Michael R. Copeland [EMAIL PROTECTED] wrote:
I have some questions about the suitability of Python for some
applications I've developed in C/C++. These are 32 bit Console
applications, but they make extensive use of STL structures and
functions (Lists, Maps, Vectors, arrays) -
In message [EMAIL PROTECTED], Albert Y. C. Lai wrote:
Twisted wrote:
A link to a copy in a non-toxic format would be nice.
http://www.cs.utexas.edu/users/EWD/transcriptions/EWD12xx/EWD1298.html
Not a mention of Gödel.
--
http://mail.python.org/mailman/listinfo/python-list
On 2007-08-28, Gabriel Genellina [EMAIL PROTECTED] wrote:
On Windows, windowed applications (as opposed to console
applications) start with no stdin/stdout/stderr by default.
The application developer can modify that if desired, of
course - I've menctioned some ways to do that. This fact
Aloha,
Andreas Lobinger wrote:
Lawrence D'Oliveiro wrote:
In message [EMAIL PROTECTED], Andreas Lobinger wrote:
Anyone any idea where the error is produced?
... to share my findings with you:
def ex(self,context,baseid,n1,n2):
print x,context,n1,n2
return 1
The
Aloha,
Andreas Lobinger wrote:
Andreas Lobinger wrote:
Lawrence D'Oliveiro wrote:
In message [EMAIL PROTECTED], Andreas Lobinger wrote:
Anyone any idea where the error is produced?
The registered Handler has to return a (integer) value.
Would have been nice if this had been mentioned in the
Hey,
Do you know an easy way to embed the python interpreter in a python
program (so a non-technical user, which has no idea how to install the
python interpreter would be able to run the script as an executable) ?
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
Do you mean something like py2exe?
http://www.py2exe.org/
--
http://mail.python.org/mailman/listinfo/python-list
On Aug 27, 4:42 pm, Ivan Voras [EMAIL PROTECTED] wrote:
Hi,
I have a list of items, and need to choose several elements from it,
almost random. The catch is that the elements from the beginning
should have more chance of being selected than those at the end (how
much more? I don't care how
On Aug 28, 8:45 pm, Tom Gur [EMAIL PROTECTED] wrote:
Hey,
Do you know an easy way to embed the python interpreter in a python
program (so a non-technical user, which has no idea how to install the
python interpreter would be able to run the script as an executable) ?
py2exe does this very
On 2007-08-28, Tom Gur [EMAIL PROTECTED] wrote:
Hey,
Do you know an easy way to embed the python interpreter in a python
program (so a non-technical user, which has no idea how to install the
python interpreter would be able to run the script as an executable) ?
Hey,
This question is asked
I am trying to use python script to update a table by incremental value
based on struc_No but having problem to get right result on the value
field for the 3rd and 4th same number of struc_no.
I need to update the Value field only with the incremental value of 15
or so
Any help is highly
I've found a workaround for me project that I'll share.
The solution is to release the interpreter lock when a function of my wapper
is called, I mean from Python a function of C++ is called so I released the
interpreter lock and take it before returning to Python.
It's important to provide Sleep
On Aug 28, 2:57 pm, Ahmed, Shakir [EMAIL PROTECTED] wrote:
I am trying to use python script to update a table by incremental value
based on struc_No but having problem to get right result on the value
field for the 3rd and 4th same number of struc_no.
I need to update the Value field only
On Aug 28, 4:08 am, geoffbache [EMAIL PROTECTED] wrote:
On Aug 27, 11:28 pm, [EMAIL PROTECTED] wrote:
On Aug 27, 3:21 pm, geoffbache [EMAIL PROTECTED] wrote:
Hi,
As part of my efforts to write a test tool that copes with GUIs
nicely, I'm trying to establish how I can start a GUI
Hello,
Please, Could you kindly tell me how to build Python 2.4 in HP-UX 11i v2
(Itanium) in 64 bits using gcc/g++?
Thanks in advance for your attention.
With best regards,
Julio Garvía Honrado
Sé
On Aug 28, 8:59 am, geoffbache [EMAIL PROTECTED] wrote:
Which GUI toolkit are you using? Tkinter, wxPython, pyQt?
Primarily PyGTK, but I was hoping it wouldn't matter. I hope to be
able
to start the process as indicated in the original post from within my
test
tool and instruct the
Which GUI toolkit are you using? Tkinter, wxPython, pyQt?
Primarily PyGTK, but I was hoping it wouldn't matter. I hope to be
able
to start the process as indicated in the original post from within my
test
tool and instruct the subprocess to be hidden (or minimized? would
that be easier?),
To pretty up some numbers stored as strings, I used locale to format
them with commas. I then found the following error:
import locale
locale.setlocale(locale.LC_ALL, 'English_United States.1252')
'English_United States.1252'
locale.format('%d', float('2244012500.'), grouping = True)
I'm kinda newbie to python and wxPython. Now I'm confronting a thorny
problem: how can I make my program minimize to the taskbar
represented as an ico, and when there is some message from network
coming, it will pop out?
--
http://mail.python.org/mailman/listinfo/python-list
Im using this construct a lot:
if dict.has_key(whatever):
dict[whatever] += delta
else:
dict[whatever] = 1
sometimes even nested:
if dict.has_key(whatever):
if dict[whatever].has_key(someother):
dict[whatever][someother] += delta
else:
dict[whatever][someother] =
On Aug 28, 9:10 am, Jimmy [EMAIL PROTECTED] wrote:
I'm kinda newbie to python and wxPython. Now I'm confronting a thorny
problem: how can I make my program minimize to the taskbar
represented as an ico, and when there is some message from network
coming, it will pop out?
Look at the wxPython
On Aug 28, 9:10 am, Jimmy [EMAIL PROTECTED] wrote:
I'm kinda newbie to python and wxPython. Now I'm confronting a thorny
problem: how can I make my program minimize to the taskbar
represented as an ico, and when there is some message from network
coming, it will pop out?
Warning. I have not
On Aug 28, 2007, at 12:04 AM, Lamonte Harris wrote:
How come you have to set the initialized created variables to equal
the parameters, shouldn't that be default?
class testing:
def __init__(self,testing):
self.testing = testing
x = testing(testing)
print
On Aug 28, 9:50 am, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
On Aug 28, 9:10 am, Jimmy [EMAIL PROTECTED] wrote:
I'm kinda newbie to python and wxPython. Now I'm confronting a thorny
problem: how can I make my program minimize to the taskbar
represented as an ico, and when there is some
Ok thanks I'll try remembering it.
On 8/28/07, Erik Jones [EMAIL PROTECTED] wrote:
On Aug 28, 2007, at 12:04 AM, Lamonte Harris wrote:
How come you have to set the initialized created variables to equal
the parameters, shouldn't that be default?
class testing:
def
On 8/27/07, Lamonte Harris [EMAIL PROTECTED] wrote:
Okay, I know you've guys told me millions of times to read the manual I've
read a lot of it. What do you recommend studying the most? Python is my
goal for the next year in the half. :)
--
rodrigo a écrit :
Im using this construct a lot:
if dict.has_key(whatever):
ot
Avoid using builtin names as identifiers (it shadows the builtin name).
/ot
Unless you're using an old Python version, you'd be better using
if whatever in my_dict:
# do something here
dict[whatever]
On Aug 28, 8:36 am, rodrigo [EMAIL PROTECTED] wrote:
Im using this construct a lot:
if dict.has_key(whatever):
dict[whatever] += delta
else:
dict[whatever] = 1
sometimes even nested:
if dict.has_key(whatever):
if dict[whatever].has_key(someother):
Hello,
Does anybody know how to modify the property of a design-time activeX
property ? using win32com
thank you for your help,
regards,
Victor
--
http://mail.python.org/mailman/listinfo/python-list
On 2007-08-28, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
import locale
locale.setlocale(locale.LC_ALL, 'English_United States.1252')
'English_United States.1252'
locale.format('%d', float('2244012500.'), grouping = True)
Traceback (most recent call last):
File pyshell#28, line 1, in
I completely understand, I've sent this email when I was tired sorry for the
misunderstanding, yes I completely understand what you mean how
professionals won't take me serious in situations like this. How about I
readdress my question for you?
Hello everyone on python mailing list. I would
On Tue, 2007-08-28 at 14:36 +, rodrigo wrote:
Im using this construct a lot:
if dict.has_key(whatever):
dict[whatever] += delta
else:
dict[whatever] = 1
In Python 2.5 there's a defaultdict class, otherwise you can subclass
dict like this:
class CountingDictionary(dict):
On 8/28/07, Lamonte Harris [EMAIL PROTECTED] wrote:
From a python starter, I don't like the word noob because it sounds very
unprofessional.
Touche`...haha
I second the motion for Dive Into Python. It's an excellent book, and you
really can't beat the price (free online as Shawn has
geoffbache wrote:
Hi,
As part of my efforts to write a test tool that copes with GUIs
nicely, I'm trying to establish how I can start a GUI process on
Windows that will not bring up the window. So I try to hide the window
as follows:
info = subprocess.STARTUPINFO()
info.dwFlags |=
Three machines, one at my home, other two at my job, in every machine there
is Win XP SP2 and Python 2.5
At home:
urllib2.urlopen(http://localhost;), everything is ok
At job:
urllib2.urlopen(http://localhost;)
raise BadStatusLine(line), after half a minute.
urllib2.urlopen(http://127.0.0.1;)
Can someone explain the rationale of making the default encoding a sitewide
setting?
I could live with the the default being set on a per process basis, but it
baffles me why even that possibility is taken away as site.py removes
sys.setdefaultencoding.
Is there a way to allow the process to
Hi all,
I am a novice Python/Jython programmer, and Ubuntu user.
Ubuntu still only supports only version 2.1 of Jython. I have used the
GUI installer of Jython 2.2, and installed it to the default
/root/jython2.2 directory. The install went without issues.
However, typing jython
Is there a way to allow the process to specify that unicode--str should
use 'utf8' rather than 'ascii' in all non-specific cases?
No. Things might break if you change the default encoding to anything
but ASCII, and more so if you do that at runtime. For example,
dictionaries with Unicode keys
Hi, Everyone,
Is there anybody who know how to programming for eye-tracker with
PyLink? I just started learning it and need some help. Your help will
be appreciated from the bottom of my heart.
My email is : [EMAIL PROTECTED], and my MSN is [EMAIL PROTECTED]
--
On Aug 28, 10:03 am, [EMAIL PROTECTED] wrote:
Is there an int/long related bug lurking in locale?
Looks like this has already been reported:
See http://bugs.python.org/issue1742669
Mark
--
http://mail.python.org/mailman/listinfo/python-list
I have a load of British National Grid references that I want to
convert to decimal degrees so I can create a google KML file. Does
anyone know of a module to do this?
I should probably have added that you can get a number of the
variables you start off with from :
I have a load of British National Grid references that I want to
convert to decimal degrees so I can create a google KML file. Does
anyone know of a module to do this?
If there isn't a module available, you could roll your own. The
equations are to be found at :
Hi All -
I'm trying to compile Python on a Centos machine (RHEL) 3.8 for a
hosting account that I just set up and I'm having 2 issues:
1. I ran into an issue with the hashlib module [I think] because it
bumps it up against an *OLD* openssl lib (like, Feb. 2003). So I
installed a newer openssl
evan,
yes, it does help. Works like it should:
class CountingDictionary(dict):
def increment(self, key, delta=1):
self[key] = self.get(key, 0) + delta
d = CountingDictionary()
d.increment('cat')
d.increment('dog',72)
print d
{'dog': 72, 'cat': 1}
Thanks!
--
OK, more background needed. I develop the TextTest tool which is a
generic test tool that starts tested applications from
the command line. The idea is that it can handle any system under test
at all, whatever language it's written in. Preferably
without requiring a bunch of changes to the tested
Hi there.
I'm trying to generate a brand new file with a unique name by using
tempfile.mkstemp().
In conjunction I used os.fdopen() to get a wrapper around file
properties (write read methods, and so on...) but 'name' attribute
does not contain the correct file name. Why?
import os
import
you need to ensure that the correct jython executable is in a directory
which is on your on your path.
I've just successfully test-subscribed to
https://lists.sourceforge.net/lists/listinfo/jython-users. Maybe you
could try again.
Tim
Dr Tim Couper
CTO, SciVisum Ltd
www.scivisum.com
Neil
On 28 Aug, 18:18, Larry Bates [EMAIL PROTECTED] wrote:
geoffbache wrote:
Hi,
As part of my efforts to write a test tool that copes with GUIs
nicely, I'm trying to establish how I can start a GUI process on
Windows that will not bring up the window. So I try to hide the window
as
You're right of course, I was unclear. I wasn't using 'dict' to
override the dict clas, but just as a standin for the example (the
actual dictionary names are varied).
Thanks,
Rodriog
--
http://mail.python.org/mailman/listinfo/python-list
filemaker 8.0 (Pro I think) has a web page generator. That's all I
know, since I didn't really need it.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Behalf Of M.-A. Lemburg
Sent: Saturday, August 25, 2007 4:36 PM
To: Ian Witham
Cc: python-list@python.org
Il Tue, 28 Aug 2007 18:27:31 +0200, Boris Ozegovic ha scritto:
Three machines, one at my home, other two at my job, in every machine
there is Win XP SP2 and Python 2.5
At home:
urllib2.urlopen(http://localhost;), everything is ok
At job:
urllib2.urlopen(http://localhost;)
raise
Fabio Z Tessitore wrote:
I think to have http://localhost working you need a web server (like
apache). maybe you have it at your home.
I do have Apache. You can see that urllib, older module, works correctly.
--
http://mail.python.org/mailman/listinfo/python-list
Hi all. I have a question about design. The general question would be:
Where is the line beteween extending a class and adding new methods to
that class?
And the particular case im involved is:
I have a class (say USERCLASS) who implements a user interface. One of
his methods is called
This is made with a php5 framework called qcodo.
http://examples.qcodo.com/examples/dynamic/inline_editing.php
With qcodo it's easy to make grids that are sortable and inline
editable. Qcodo grids work from the database - not an xml table or
array. Qcodo handles complex data relations, and
On Aug 28, 1:55 pm, billiejoex [EMAIL PROTECTED] wrote:
In conjunction I used os.fdopen() to get a wrapper around file
properties (write read methods, and so on...) but 'name' attribute
does not contain the correct file name. Why?
import os
import tempfile
fileno, name =
walterbyrd wrote:
This is made with a php5 framework called qcodo.
http://examples.qcodo.com/examples/dynamic/inline_editing.php
With qcodo it's easy to make grids that are sortable and inline
editable. Qcodo grids work from the database - not an xml table or
array. Qcodo handles complex data
I need to add dynamic text to animated GIF images.
What is a best way to do it?
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
Gerardo Herzig wrote:
Hi all. I have a question about design. The general question would
be: Where is the line beteween extending a class and adding new
methods to that class?
What do you mean by extending? The Java extends, which is really
inheritance?
And the particular case im involved
Boris Ozegovic wrote:
At job:
urllib2.urlopen(http://localhost;)
raise BadStatusLine(line), after half a minute.
Looks like name resolving problems.
urllib2.urlopen(http://127.0.0.1;)
HTTP Error 503: Service Unavailable, immediately.
Definitely a problem with the web server (503 means
In article [EMAIL PROTECTED],
billiejoex [EMAIL PROTECTED] wrote:
Hi there.
I'm trying to generate a brand new file with a unique name by using
tempfile.mkstemp().
In conjunction I used os.fdopen() to get a wrapper around file
properties (write read methods, and so on...) but 'name'
In article [EMAIL PROTECTED],
Slava [EMAIL PROTECTED] wrote:
I need to add dynamic text to animated GIF images.
What is a best way to do it?
Thanks.
One possibility is the GD library, which supports animated GIF. There
is a Python binding:
Bjoern Schliessmann wrote:
Definitely a problem with the web server (503 means service
unavailable).
I did try on two servers, Apache and simple python server. There was
identically error on both servers.
Anybody have slightest clue wthat is going on? :-/
Try using wireshark or a
According to the Tix documentation online, HList has an info_bbox() method
which returns the bounding box of a given item in the HList. However, when I
try to call this method, I get an attribute error. Looking at Tix.py I see
that info_bbox() is not implemented.
Hazarding a chance (mostly
Ivan Voras wrote:
Hi,
I have a list of items, and need to choose several elements from it,
almost random. The catch is that the elements from the beginning
should have more chance of being selected than those at the end (how
much more? I don't care how the envelope of probability looks
billiejoex [EMAIL PROTECTED] wrote:
I'm trying to generate a brand new file with a unique name by using
tempfile.mkstemp().
Moreover, I'd like to know if I'm doing fine. Does this approach avoid
race conditions
This is a reasonably secure way of doing things. It can't race under
unix
Since I can't really focus on PROJECTS[since I don't know much python I
can't do any projects because all my projects are BIG], So I decided to work
on some problems I've gotten from school from started geometry, So I
attempted to make a script to get the midpoint of a line segment using the
On Aug 28, 1:31 pm, Gerardo Herzig [EMAIL PROTECTED] wrote:
walterbyrd wrote:
The one who make that table sorteable is AJAX. Not php. The php part is
kind of trivial (so it would be `trivial' in python too). It just reads
some data and format it in an html table.
Thank you, that is great to
Hi,
sorry that I'm relatively new to Python. But the syntax and semantics of
Python already fascinate me, because I'm familiar with functional languages
like Haskell.
Is there a pattern matching construct in Python like (head : tail), meaning
'head' matches the first element of a list and
Boris Ozegovic wrote:
Bjoern Schliessmann wrote:
Definitely a problem with the web server (503 means service
unavailable).
I did try on two servers, Apache and simple python server. There
was identically error on both servers.
Also try to look at the logs, you're bound find something
On 8/28/07, Stefan Niemann [EMAIL PROTECTED] wrote:
Hi,
sorry that I'm relatively new to Python. But the syntax and semantics of
Python already fascinate me, because I'm familiar with functional languages
like Haskell.
Is there a pattern matching construct in Python like (head : tail),
Yep I'll keep hacking at it aye :D. Also I'll do some searching on the new
styled classes.
On 8/28/07, J. Cliff Dyer [EMAIL PROTECTED] wrote:
A couple thoughts:
First, your class looks like it describes the line, not just the
midpoint. Your method calculates the midpoint of that line, so
walterbyrd wrote:
On Aug 28, 1:31 pm, Gerardo Herzig [EMAIL PROTECTED] wrote:
walterbyrd wrote:
The one who make that table sorteable is AJAX. Not php. The php part is
kind of trivial (so it would be `trivial' in python too). It just reads
some data and format it in an html table.
Stefan Niemann wrote:
Hi,
sorry that I'm relatively new to Python. But the syntax and semantics of
Python already fascinate me, because I'm familiar with functional languages
like Haskell.
Is there a pattern matching construct in Python like (head : tail), meaning
'head' matches the
Stefan Niemann [EMAIL PROTECTED] writes:
Is there a pattern matching construct in Python like (head : tail), meaning
'head' matches the first element of a list and 'tail' matches the rest? I
could not find this in the Python documentation.
Python's lists are actually linear arrays. You can
On Aug 28, 2007, at 5:12 PM, Chris Mellon wrote:
On 8/28/07, Stefan Niemann [EMAIL PROTECTED] wrote:
Hi,
sorry that I'm relatively new to Python. But the syntax and
semantics of
Python already fascinate me, because I'm familiar with functional
languages
like Haskell.
Is there a
Whats the point of object? How do I actually use it. I'm not understanding
correctly from the python site located:
http://www.python.org/download/releases/2.2.3/descrintro/
class C(object):
def __init__(self):
self.__x = 0
def getx(self):
return self.__x
def
rodrigo [EMAIL PROTECTED] writes:
Im using this construct a lot:
if dict.has_key(whatever):
dict[whatever] += delta
else:
dict[whatever] = 1
I'd prefer:
foo.setdefault(whatever, 0)
foo[whatever] += delta
sometimes even nested:
if dict.has_key(whatever):
if
... so I was wondering if it's just me who hasn't seen any postings today?
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
--- Asciimercial
1 - 100 of 206 matches
Mail list logo