walterbyrd skrev:
> If so, I doubt there are many.
>
> I wonder why that is?
Because you are ignorant?
--
http://mail.python.org/mailman/listinfo/python-list
Lawrence D'Oliveiro skrev:
> In message <[EMAIL PROTECTED]>, Gabriel G
> wrote:
>
>> At Monday 25/9/2006 11:08, Jon Ribbens wrote:
>>
> What precisely do you think it would "break"?
existing code, and existing tests.
>>> I'm sorry, that's not good enough. How, precisely, would it break
>>
rrently /underrated/ in the Python community. Or,
> I suspect, everybody disrespects them in public but secretly use them when
> they're hacking ;-)
When I used to program in Perl I used regex' for lots of stuff. In
python I probably use them once every half year.
Bernard skrev:
> Has anyone tried what I'm doing? and if you tried how have you
> succeeded getting the data back after the post action?
Most likely you get assigned a cookie that you then need to return.
Try the cookielib which automates all this for you.
--
http://mail.python.org/mailman/list
irst string
Why offcourse? But it seems that you are passing the Header object a
utf-8 encoded string, not a latin-1 encoded.
You are telling the header the encoding. Not asking it to encode.
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
--
http://mail.python.org/mailman/listinfo/python-list
Christoph Haas skrev:
> On Thursday 23 November 2006 16:31, Max M wrote:
>> Christoph Haas skrev:
>>> Hello, everyone...
>>>
>>> I'm trying to send an email to people with non-ASCII characters in
>>> their names. A recpient's address
;
>>> x = 111
>>> x = (x /4) * 4
X *= 4
;-)
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
--
http://mail.python.org/mailman/listinfo/python-list
Hello all
I have a small application for which I would like to write an update
manager. I assume that the basics of it is to compare versions of the
user's current application and a new one store in a new file on a
particular URL.
Now is there any standard way to do that. I am sure I can figure out
Will & Gabriel
Well I will then think of something.
Thank you very much. I do appreciate your help.
M.E.
[EMAIL PROTECTED] wrote:
> On 7 dic, 19:04, Will McGugan <[EMAIL PROTECTED]> wrote:
> > [EMAIL PROTECTED] wrote:
> > > I have a small application for which I would like to write an update
> >
ttp://www.google.dk/search?q=python+icalendar
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
--
http://mail.python.org/mailman/listinfo/python-list
Ok, here is the code. It is a translation of the following code, found
on the internet.
* The C is very fast, Python not.
* Target: Do optimization, that Python runs nearly like C.
Auf 800 Stellen in 160 Zeichen...
--
int a=1,b,c=2800,d,e,f[2801],g;main(){for(;b-c;)f[b++]=a/5;
for
Mainly, it was fload-div. Changed to int-div (python //) runs faster.
Yes, this "gmpy" sounds good for calc things like that.
But not available on my machine.
ImportError: No module named gmpy
Anyway, thanks for posting. This gmpy module can be very intersting.
But right now, the focus was, if i
[EMAIL PROTECTED] wrote:
>>Yes, this "gmpy" sounds good for calc things like that.
>>But not available on my machine.
>>ImportError: No module named gmpy
>
>
> What type of machine?
Windoof with Cygwin.
>
> The home page for gmpy is http://sourceforge.net/projects/gmpy/
>
> I have Windows ve
In Perl, it was:
## Example: "Abc | def | ghi | jkl"
## -> "Abc ghi jkl"
## Take only the text betewwn the 2nd pipe (=cut the text in the 1st
pipe).
$na =~ s/\ \|(.*?)\ \|(.*?)\ \|/$2/g;
## -- remove [ and ] in text
$na =~ s/\[//g;
$na =~ s/\]//g;
# print "DEB: \"
How to find the longst element list of lists?
I think, there should be an easier way then this:
s1 = ["q", "e", "d"]
s2 = ["a", "b"]
s3 = ["a", "b", "c", "d"]
if len(s1) >= len(s2) and len(s1) >= len(s3):
sx1=s1 ## s1 ist längster
if len(s2) >= len(s3):
sx2=s2
>
> Err... this makes three distinct lists, not a list of lists.
>
Sure. Logically spoken. Not in Python code. Or a number of lists.
Sure not [[ bla... ] [bla.]] etc.
--
http://mail.python.org/mailman/listinfo/python-list
Bruno Desthuilliers wrote:
>
> Err... this makes three distinct lists, not a list of lists.
>
Sure. Logically spoken. Not in Python code. Or a number of lists.
Sure not [[ bla... ] [bla.]] etc.
--
http://mail.python.org/mailman/listinfo/python-list
Sorry, wrong place.
--
http://mail.python.org/mailman/listinfo/python-list
$ whoami
cannibal
;-)
Hendrik van Rooyen wrote:
> "rzed" <[EMAIL PROTECTED]> wrote:
>
>
>
>>mmm... sloppy joes
>>
>>--
>>rzed
>>
>>"A sandwich is a sandwich, but a Manwich is a meal."
>
>
> You eat people?
>
> - Hendrik
>
>
--
http://mail.python.org/mailman/listinfo/python-l
>>> And if I'm reading it correctly, the Perl
>>> script's process starts tcpdump, but redirects its output to its own
>>> input, and reads it line by line.
And to clarify, what the Perl script is doing is redirecting the standard
error to standard out. STDIN is file handle 0, STDOUT is file handl
iler written
> in python?
This also requires Plone, so it might be a bit heavyweight for your needs:
http://www.mxm.dk/products/public/mxmImapClient/
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, 06 Feb 2006 10:57:23 -0800, [EMAIL PROTECTED] wrote:
> Hi:
>
> I am looking for advice on the best way to set up a process to read
> incoming emails (from a normal unix mailbox on the same host)
> containing a gzipped telemetry attachment. I'd like the script to
> extract the attachment i
> 2) Anybody know how to alter the "while 1: pass" section to make the
> app stoppable?
That one I think I can help with! See below.
> while 1: pass
try:
while 1:
pass
except KeyboardInterrupt:
break
--
http://mail.python.org/mailman/listinf
Hi there,
I'm totally new to Python and was wondering why I was getting an error
for this. I'm just trying to create a folder based on user input:
import os
def setupProject(project):
os.mkdir(project)
os.chdir(project)
test = input("Please enter project name: ")
setupProject(test)
If
That's got it, thanks Steven!
--
http://mail.python.org/mailman/listinfo/python-list
py
Make a Zope instance with Python24\Scripts\mkzopeinstance.bat
Start that instance by running
/bin/runzope.bat
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
--
http://mail.python.org/mailman/listinfo/python-list
thon to be called
> oMail.send()
> gwApp.quit()
Otherwise you are just adressing the objects
eg. this is perfectly ok:
send = oMail.send
send()
or
q = gwApp.quit
q()
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
--
http://mail.python.org/mailman/listinfo/python-list
ing something like..
>
> x = open("abc.jpg")
> y = x.read()
> tmp = open("newFile.jpg", "w")
> tmp.write(y)
> tmp.close()
> x.close()
>
> ...but that doesn't give me a copy of abc.jpg
>
> any ideas? Thanks
>
x = open("abc
master">
>
>
>
> HERE IS MY DYNAMIC PHP:
>
>
>
>
>
> I need to use DTML instead of ZPT because PHPParse product cannot work with
> ZPT. :(
Just an idea, cant you put the PHP into a dtml method that you the
omething like that. And if somebody knows the language he speaks, then
>>a pointer to an appropiate list would be usefull.
As far as I know, there is no rule that you have to use english in this
forum. But it is a lot easier to get answers if you do.
--
hilsen/regards Max M, De
Fredrik Lundh wrote:
> (I just noticed that there's no euro sign on my swedish keyboard. I've
> never missed it ;-)
It's probably "AltGR + E" like here in DK
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
--
http://mail.python.org/mailman/listinfo/python-list
Fredrik Lundh wrote:
> depending on the data, it might be more efficient to store the
> "last seen index" in a dictionary, and sort the result on the way
> out (if necessary). something like
form sets import Set
data = list(Set([0.1,0.5,0.6,0.4,0.1,0.5,0.6,0.9]))
--
h
Fredrik Lundh wrote:
> Max M wrote:
>
>
>>>depending on the data, it might be more efficient to store the
>>>"last seen index" in a dictionary, and sort the result on the way
>>>out (if necessary). something like
>>
>>form sets import
already gone through MimeWriter,smtplib and so
> on. But I can't get clear details. so if anyone know
> regarding this kindly give me answer
You need the 'email' module for reading and writing email messages, and
the 'smtplib' module for sending them.
--
hilsen
2005, 1, 1, 9, 0, 0), datetime(2005, 1, 1, 14, 0, 0)))
ms.add((datetime(2005, 1, 1, 12, 0, 0), datetime(2005, 1, 1, 17, 0,
0)))
print ms.spans
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
--
http://mail.python.org/mailman/listinfo/python-list
with regards to size of "search
window" and number of events.
Bengts/Jims and Jordans solutions seems to be relatively similar. I will
use one of those instead of my own code.
Thanks!
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
--
http://mail.pyth
I'm surprised you didn't recommend to use ZODB. Seems like an ideal way
to manage this large amount of data as a collection of Python objects...
--
http://mail.python.org/mailman/listinfo/python-list
This thread:
http://mail.python.org/pipermail/python-dev/2005-January/051255.html
discusses the problem with memory allocation in CPython. Apparently
CPython is not good at, or incapable of, releasing memory back to the
operating system. There are ways to compensate for this. I guess the
comment
[EMAIL PROTECTED] wrote:
I want to use it for music. So given list 1 (melody), list 2 (chords)
could be generated by a Markov chain. Also, given the chords the melody
could be generated again by a chain.
I have this small module, that can be used for markov chains.
--
hilsen/regards Max M
class ExtendedTupleTable(Persistent):
def __init__(self):
self.interning = ObjectInterning()
# This Set stores all generated ExtendedTuple objects.
self.ets = Set() # et(s): ExtendedTuple object(s)
# This dictionary stores a mapping of elements to Sets of
Hi
rh0dium wrote:
> I am relatively new to python and certainly new to XML parsing.
Me too. However there are plenty of good docs/tutorials available to
help with both XML and using it in Python.
For XML you may wish to look at http://www.w3schools.com/. It has a very
accessible set of tutor
Hi,
i was just wondering about the need to put "self" as the first
parameter in every method a class has because, if it's always needed,
why the obligation to write it? couldn't it be implicit?
Or is it a special reason for this being this way?
Thanks.
--
http://mail.python.org/mailman/listinf
Do you actually need to 'press' the button? Or do you just need the
effect that pressing the button would bring about (e.g., submitting a
Google search query and receiving the results page)?
If the latter, then you might want to search for, e.g., "html form get
post" and check out some results. Pu
lf to a could have made it obvious:
def __add__(self, b):
a = self
return Vector((a.x+b.x), (a.y+b.y), (a.z+b.z))
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
--
http://mail.python.org/mailman/listinfo/python-list
Aahz wrote:
> [posted & e-mailed]
> Any objection to swiping this for the FAQ? (Probably with some minor
> edits.)
I think it is missing the most important reason, that functions can act
as unbound methods.
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Ma
nt to export from, you only need to
write an external method in Zope to export the data you want. Its pretty
easy that way.
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
--
http://mail.python.org/mailman/listinfo/python-list
;
> I get h : ['Helo\n', 'World']
>
> I thought notepad use \r\n to to end the line.
>
> What's wrong with it?
Python tries to be clever. Open it in binary mode to avoid it:
FName = open(d:\myfile.txt,'rb')
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
--
http://mail.python.org/mailman/listinfo/python-list
Hello, i am very new to this. Only heard of python a
week ago and have never posted before anywhere. But I am trying to
rewrite a program that I made in C++ in Python, a radixSort I did as a school
project. I get a Tabnanny Tokenizing Error that says Token Error: EOF in
multi-line statem
see what is happening.
>
>See ya !
>
>Em Quarta 08 Junho 2005 23:36, Anna M. escreveu:
>> Hello, i am very new to this. Only heard of python a week ago and have
>> never posted before anywhere. But I am trying to rewrite a program that
>I
>> made in C++ in Pyth
This link seems to be about Closures in Python, but I am not feeling
sharp enough at the moment to evaluate the correctness of the
discussion.
http://en.wikipedia.org/wiki/Python_programming_language#Closures
As others have said, you might get more useful responses if you can
elaborate upon what
oured with python and had
> better develop an arsenal of tricks for the rare times when it's just
> not fast enough.
A dash of c combined integrated via ctypes is probably the easiest solution?
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
--
http:/
Try a different type of debugger.
This one does not need you to set breakpoints.
Run the program once and after that everything is available to you.
You then just scroll to any line you're interested in and click the
variable.
It requires Firefox and Python 2.5.
http://codeinvestigator.googlepa
Hello,
I am writing an application bulk of which is sending and receving UDP data. I
was evaluating which language will be a better fit for the job. I wrote
following small pieces of code in Python and C respectively:
from socket import *
import sys
if __name__ == '__main__':
s = socket(AF
>From: faulkner <[EMAIL PROTECTED]>
>To: python-list@python.org
>Subject: Re: getting scancodes
>Date: 25 Apr 2007 14:02:59 -0700
>
>On Apr 23, 8:39 pm, [EMAIL PROTECTED] wrote:
> > Anyone knows if its possible to get scan codes ???
> > I tried with getch () but with no success, just keycodes.
> >
at all.
Just inefficient xpath expressions.
That is pretty good in my book.
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
--
http://mail.python.org/mailman/listinfo/python-list
lieve that would be more difficult than necessary. The client
> program I have to use does not support FTP.
Try out urllib2
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
--
http://mail.python.org/mailman/listinfo/python-list
Hello Folks,
This is what i am required to do.
Call an executable from my python script, and when the executable is
fininshed running, i should continue with my python script.
I have tried "os.exec()" but it calls the executable and never returns
to the calling python script.
I tried "os.fork" it
ns: [53.0, 20.0, 4.0, 2.0]
The lambda is not needed there, as float is a callable.
map(float, str.split(','))
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
--
http://mail.python.org/mailman/listinfo/python-list
Hi guys I have a big problem with this wrapper im using Ubuntu 7.04
and I want to install python-MySQLdb, I used synaptics and it is
installed, but when I try to do
>>> import MySQLdb
and I get this error:
Traceback (most recent call last):
File "", line 1, in
File "MySQLdb/__init__.py", lin
Hi,
I'm trying to use pymssql to execute a stored procedure. Currently, I
have an Excel spreadsheet that uses VBA in this manner:
Private Function CreateNewParrot(connDb As ADODB.Connection) As Long
Dim objCommand As ADODB.Command
Dim iParrot As Long
Dim bSuccess As Boolean
Set objComman
ashish skrev:
> Hi All,
>
> I want to know weather is there any api available in python for parsing
> xml(XML parser)
I have had very good succes with lxml
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
--
http://mail.python.org/mailman/listinfo/python-list
Oh my God! How did you know?!! You were so smart to post that here!
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> http://freeairconditioners.blogspot.com/
>
--
http://mail.python.org/mailman/listinfo/python-list
to all you interested in knowing more, do not hesitate to contact
me.
Saludos.
Andrés M.
_
Consigue aquí las mejores y mas recientes ofertas de trabajo EE.UU.
http://latino.msn.com/empleos
--
http://mail.python.org/mailman/listinfo/python-list
Hi everybody,
Some of my colleagues want me to write a script for easy folder and
subfolder creation on the Mac.
The script is supposed to scan a text file containing directory trees
in the following format:
[New client]
|-Invoices
|-Offers
|--Denied
|--Accepted
|-Delivery notes
As you can see,
Hi,
I'm currently writing an animation pipeline in Python which is a
system for controlling the flow of work and assets for a team of
people working on a computer animated film. The system will be fairly
large with a database backend.
One particular problem that I'd like to address is the need fo
Stargaming:
Thanks, that's given me plenty to think about. Some wise words. I
guess I should appreciate that with my particular goal there aren't
going to be easy solutions but I definitely don't want to dive down
the wrong track if it can be avoided.
Cheers,
Mike
--
http://mail.python.org/mail
ation that modifies itself (bad?)
to define a list iterator.
http://blog.plt-scheme.org/2007/07/callcc-and-self-modifying-code.html
I recommend putting that code into a Scheme interpreter and running
it. You'll get it.
Hope this helps, and I look forward to better explanations than min
On Oct 31, 10:06 am, Frank Aune <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Is it possible writing custom modules named the same as modules in the
> standard library, which in turn use the same module from the standard
> library?
>
> Say I want my application to have a random.py module, which in turn m
sages just because the
sentbox isn't set correctly
pass
#
# returns a portal status message
if REQUEST:
if success:
message = 'Succes! The message was sent '
else:
message = 'Error! The message could not be sent'
REQUEST.RESPONSE.redirect(self.absolute_url() +
'/mxmImapClient_compose?portal_status_message=%s' % message)
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
--
http://mail.python.org/mailman/listinfo/python-list
Multi-return value lambda? Just so you know, there is no concept of
returning more than one value from a function.
def a(): return 1, 2
returns one value - a tuple of (1, 2).
lambda: (1, 2)
does the same thing.
--
http://mail.python.org/mailman/listinfo/python-list
On Nov 15, 8:55 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> Does anyone know what the state of progress with interfaces for python
> (last I can see ishttp://www.python.org/dev/peps/pep-0245/)
>
> I would argue that interfaces/(similar feature) are necessary in any
> modern languag
On Nov 16, 12:26 am, James Stroud <[EMAIL PROTECTED]> wrote:
> Chris M wrote:
> > On Nov 15, 8:55 pm, "[EMAIL PROTECTED]"
> > <[EMAIL PROTECTED]> wrote:
> >> Hi,
>
> >> Does anyone know what the state of progress with interfaces for python
On Dec 8, 7:58 pm, Karthik Gurusamy <[EMAIL PROTECTED]> wrote:
> I see python doesn't have ++ or -- operators unlike say, C.
> I read some reasonings talking about immutable scalars and using ++/--
> doesn't make much sense in python (not sure if ++i is that far-fetched
> compared to the allowed i
On Dec 9, 10:04 pm, Paul McGuire <[EMAIL PROTECTED]> wrote:
> On Dec 9, 6:07 pm, "Jack" <[EMAIL PROTECTED]> wrote:
>
> > Plus, Psyco is not the
> > main stream and has stopped development.
>
>
>
> What makes you think it has stopped development? I just swung by the
> SF project page, and its most
Below is some code adapted from something I think was written by Mark
Hammond. Originally I needed to create a Windows shortcut (link), and
this code does the trick, requiring only the target filename and the
desired shortcut name.
Now, I find I need to open a shortcut and extract the target filena
On Wed, 17 May 2006 20:51:07 +, John Salerno wrote:
> Ok, I've tinkered with this thing for a while, and I keep fixing little
> problems, but I always get a 500 Internal Server error when I go to this
> site:
>
> I don't necessarily even want help just yet, I'd like to figure it out
> myse
On Jan 15, 11:51 am, "Neil Cerutti" <[EMAIL PROTECTED]> wrote:
>
> So this is a bug in set_update or in set_ior. They can't both be
> right.
>
It's not a bug.
"Note, the non-operator versions of union(), intersection(),
difference(), and symmetric_difference(), issubset(), and issuperset()
method
Hello,
I've been digging around the list archives and I haven't found a good
answer to this, so I was hoping someone on this list could help me
out. Here's my conundrum:
I have a python application which I'd like to distribute to thousands
of machines in our server farm. The good news is, all o
On Mar 1, 7:56 pm, Ira Solomon <[EMAIL PROTECTED]> wrote:
> I am an experienced programmer (40 years). I've done Algol (if you've
> heard of that you must be old too), PL/1, VB,VBA, a little C, and a
> few other odd languages (e.g. Taskmate).
> I'm interested in learning Python and have downloaded
ion to run as CGI? (Jeroen Ruigrok van der Werven)
> 3. Re: Profiling Python Apps on Mac? (Robert Kern)
> 4. Re: Results of executing hyperlink in script (Tino Wildenhain)
> 5. Re: I'm a python addict ! (afri...@yahoo.co.uk)
> 6. ANN: eGenix mx Base Distribution 3.1.2
>
Object oriented languages doesn't allow execution of the code without class
objects, what is actually happening when we execute some piece of code, is
it bound to any class?
Those who have time and consideration can help me
--
Regards,
Maneesh KB
Comat Technologies
Bangalore
Mob: 9740-19230
but still I am not clear of the execution of the code, when we write or
execute a piece of python code without defining class, predefined class
attributes are available (not all but __name__ and __doc__ are available).
does it mean anything to this topic. Is it necessory to have __module__,
__dict_
I think the given statement below will give you what you r looking
.__file__print
On Wed, Feb 18, 2009 at 2:43 PM, 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/m
On Dec 6, 12:25 am, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> The rename works, but here is my problem: after getting what I thought
> was an exclusive lock on the new file, but before calling os.rename(), I
> can still over-write it from another process:
>
> $ echo "this com
Hi,
I am writing a server side program, clients can be any machine but the
server machine is Linux. In program I want to use the OS module based on the
client's operating system. But when I do "import os" m only able to get the
module with the property of Linux. ANy idea how to im
r 2, 2009 at 12:26 AM, M Kumar wrote:
> >
> > Hi,
> >
> > I am writing a server side program, clients can be any machine but the
> > server machine is Linux. In program I want to use the OS module based on
> the
> > client's operating system. But
Oh that might be the problem, I m new to this and new to this kind of
conversations. What you said was correct. But what I am looking for is, if
one client reqst comes I need to process the data which I got from the
client, so I need to use the os module. But since my program executes on the
is Rebert
> wrote:
> >> >>
> >> >> On Mon, Mar 2, 2009 at 12:26 AM, M Kumar
> wrote:
> >> >> >
> >> >> > Hi,
> >> >> >
> >> >> > I am writing a server side program, clients can be any mac
Hello ,
This is Aniket from Techclique, a New Jersey based software
development and IT consulting firm providing top quality technical and
software professionals on a permanent and contractual basis to
Government and commercial customer including fortune 500 companies and
most of states and federal
Hi,
I need to read pdf files and extract data from it, is there any way to do it
through python.
thanks & reagards
Maneesh KB
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I am using pylons web framework for my server. I need to get the ip address
of the client machine which made a request to the server in my python code.
How can I do that, I am new to pylons and the existing server has so many
applications. looking forward to get some solutions from the kind fr
Hi,
I am having an application server in pylons, which was giving error
sometimes and sometimes it gives the result. I will copy paste the error
below. I am new to pylons and not getting any clue of this kind of behavior.
Please help me what should I do to avoid this kind of errors.
-
xample.html
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
--
http://mail.python.org/mailman/listinfo/python-list
/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
--
http://mail.python.org/mailman/listinfo/python-list
t.com/2008/03/python-unicode-lessons-from-school-of.html
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
--
http://mail.python.org/mailman/listinfo/python-list
This looks great. I have been missing my chm based docs since moving to
Python. This goes a long way.
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
--
http://mail.python.org/mailman/listinfo/python-list
> Basically, it reverses the list in place, so it modifies the list which
> called it. It does not return a /new/ list which is a reversed version of
> the original, as you expected it to. Since it doesn't return anything
> explicitly, Python makes it return None. Hence, the comparison you are doin
/usr/src'
for a in ['dictFoo','dictBar','dictFrotz']:
if not 'srcdir' in a:
a['srcdir'] = '/usr/src'
for a in ['dictFoo','dictBar','dictFrotz']:
a.setdefault('srcdir') = '/usr/src'
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
--
http://mail.python.org/mailman/listinfo/python-list
John Machin skrev:
> On Apr 4, 9:44 am, Max M <[EMAIL PROTECTED]> wrote:
> Ummm ... excessive apostrophes plus bonus gross syntax error, dood.
> Did you try running any of these snippets???
No I just wanted to quickly show different ways to do it.
The dicts in the original
mply gone quiet.
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
--
http://mail.python.org/mailman/listinfo/python-list
501 - 600 of 2060 matches
Mail list logo