Why are you trying to make this asynchronous? I think part of the point
of ftp using two sockets was to make it multithreaded. If you're going
to make it asynchronous, It's probably going to be easier to do the
"select"ing yourself, instead of relying on asyncore or asynchat.
Unless you have an i
billie wrote:
> I'm (re)writing an FTP server application by using
> asyncore/asynchat modules.
> FTP tipically got two different channels: command and data.
> I'm succesfully managing command channel through asynchat
> framework, but I'm not sure about how to manage data channel
> without using a
Hi, i've check documentation, and found that logging.basicConfig takes
no arguments (probably we have different versions of logging package),
and i've never used it.
just try this:
fileName = 'testlog.log'
logName = 'LOG'
iHandler = logging.FileHandler(fileName)
iHandler.setFormatter(
logging.F
Tekkaman wrote:
> I'm getting a strange behaviour from the "pathname" and "lineno"
> formatter mapping keys. Instead of my file and my line number I get:
>
> /usr/lib/python2.4/logging/__init__.py
>
> as the file, and 1072 as the line number. I set up my config as
> follows:
>
> logBaseConf = {
kernel1983 wrote:
> I'm try to build a bundle on OS X, so I write a simple python script
> for a test:
>
> #!/usr/bin/env python
> import EasyDialogs
> EasyDialogs.Message("Hello,Mac!")
>
>
> This runs OK,but when I try to replace "Hello,Mac!" with chinese, it
> can't be display rightly.
> Then
You proposal, seems nice to me but it doesn't work with Python 2.4.3, should
it work with 2.5?
Again I am just wondering if the approach for
[x for c x in some_list if some_condition]
and
x = a if b else c
could be generalized for normal straight forward iterations:
for x in s
Forget 'pythonic'.
I just need to get work done and I see this type of conditional iteration
showing up many times obscuring my code because of the additional
indentation.
In line with previous syntax improvements made in Python my proposal (or
obvious variants) seems a logical next step. Unless
Gal Diskin wrote:
> On Dec 13, 3:58 pm, Roberto Bonvallet <[EMAIL PROTECTED]>
> wrote:
> > Gal Diskin wrote:
> > > Hi,
> > > I am writing a code that needs to iterate over 3 lists at the same
> > > time, i.e something like this:
> >
> > > for x1 in l1:
> > >for x2 in l2:
> > >for x3 in
Jon Harrop wrote:
> Filip Wasilewski wrote:
> > Jon, both Python and Matlab implementations discussed here use the
> > lifting scheme, while yours is a classic convolution based approach.
>
> I've done both in OCaml. The results are basically the same.
Have you tried taking advantage of the 50% re
Christophe <[EMAIL PROTECTED]> writes:
> Robert Uhl a écrit :
>
>> The argument from popularity is invalid. French units have overtaken
>> standard units,
>
> Never heard of that French unit thing. Unless you talk about that
> archaic unit system that was in use before the metric system was
> crea
billie wrote:
> I'm succesfully managing command channel through asynchat framework,
> but I'm not sure about how to manage data channel without using a
> thread/subprocess.
use a separate dispatcher instance for the data transfer. see the
ftp_handle_pasv_response method and async_ftp_download c
Christophe <[EMAIL PROTECTED]> writes:
>
> Saying that the French units are technically worse than standard units
> is a troll of very poor quality and a very weak argument.
It was just an example that the argument from popularity is invalid.
However, I (and many others) would argue that optimisat
Robert Uhl wrote:
> Christophe <[EMAIL PROTECTED]> writes:
> > Robert Uhl a écrit :
> >
> >> The argument from popularity is invalid. French units have overtaken
> >> standard units,
> >
> > Never heard of that French unit thing. Unless you talk about that
> > archaic unit system that was in use b
Sorry for breaking into this thread, but I agree completely that any
unnecessary indentations should be avoided. For the same reason I advocate
that the following syntax should work:
for x in some_list if some_condition:
... code ...
in stead of
for x in some_lis
Thanks Harry. I just wrote a new one. Quicker than trying to mod
somebody else's stuff.
Thanks again,
sulu
Harry George wrote:
> "mistersulu" <[EMAIL PROTECTED]> writes:
>
> > All:
> >
> > We're looking for a python module which allows for quick merging of two
> > XML files. Both files follow
> I just need to get work done and I see this type of conditional iteration
> showing up many times obscuring my code because of the additional
> indentation.
Me too. When I don't like the additional indentation I usually have:
if not condition: continue
at the beginning of the block
> In line wi
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>> Terry Reedy wrote:
>> > In a thread on the PyDev list, Guido van Rossum today wrote:
>> >> And I just found out (after everyone else probably :-) that YouTube
>> >> is
>> >> almost entirely written in Python. (And now I can rub shoul
Hi
I uploaded a pil library to my server. The problem is that I can't
access the server with a command line. You see in order for the library
to work you need to run setup.py and supply commands to the server when
the setup.py script runs. so is there a solution to this. can I get a
predone pil li
"at" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> More pythonic in view would be:
>
> for x in [-2, -1, 0, 1, 2, 3, 4] if x > 0:
>... more code ...
Already proposed by someone and rejected by GvR.
--
http://mail.python.org/mailman/listinfo/python-list
The proposed solution impairs readability because there's a "surprise"
at the end. List comprehensions already open the language up to
readability abuse. Lets not add more.
To avoid the unwanted indentation, I would go with the already
suggested "if not x>0: continue" solution or else something
Robert Uhl wrote:
> Christophe <[EMAIL PROTECTED]> writes:
>
>>Robert Uhl a écrit :
>>
>>
>>>The argument from popularity is invalid. French units have overtaken
>>>standard units,
>>
>>Never heard of that French unit thing. Unless you talk about that
>>archaic unit system that was in use befor
at wrote:
> I am not looking for a work around but more interest if other people might
> judge this syntax would come in handy?
Of course people have expressed interest in this in the past, but it's
not going to happen. There's a way to nest for and if statements, and
a different way to nest for
I'm trying to write an IM client which sends encrypted messages to the
server. I tried to use pycrypto library, but when I came to 3DES
cypher I was confused about the keysize to use. In the standard it
said that it should be either 112 bits or 168 bits, whereas it's 16
bytes or 24 bytes in pycry
Hendrik van Rooyen wrote:
>
>>
>>
>
> It depends a *lot* on what is meant by "embedded" :
>
Ha, very true
> This definition seems to cover everything from:
> - a cut down PC in a non standard box, through
> - a processor in a Washing Machine, to
> - a bare PIC processor i
Paul Rubin wrote:
> Does this count as a "children of a lesser Python"?
This sounds like a quite derogatory first question. CLPython is not a
dead and abandoned project, nor is execution speed its main goal, nor
are Python semantics bended anywhere (it can run the Pie-thon
benchmark). Sure, some r
I am trying to set the system time on my Windows computer, but avoid
using the DOS command (date, time).
Does anyone know what parameter to pass to function SetLocalTime?
CSharp ref
http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/813b4ef504f77a43/24fc3
Podi wrote in news:[EMAIL PROTECTED]
in comp.lang.python:
> I am trying to set the system time on my Windows computer, but avoid
> using the DOS command (date, time).
>
> Does anyone know what parameter to pass to function SetLocalTime?
http://msdn.microsoft.com/library/default.asp?url=/library
* at ([EMAIL PROTECTED]) wrote:
> Sorry for breaking into this thread, but I agree completely that any
> unnecessary indentations should be avoided. For the same reason I advocate
> that the following syntax should work:
>
> for x in some_list if some_condition:
> ... code
Yes, thank you.
I found the function SetLocalTime or SetSystemTime to set the time from
MSDN http://msdn2.microsoft.com/en-us/library/ms724942.aspx. I am
having trouble passing parameter to the functions in Python.
Rob Williscroft wrote:
>
> Google will usually find the documentation of anything
They eventually got this once posted on the website.
http://techtalk.imi-us.com/Archives/2006/20061001/
The Lutz interview starts at 10:00 minutes in.
-Jack
On Fri, Sep 29, 2006 at 11:25:34AM -0700, Mark Lutz wrote:
> Python author and trainer Mark Lutz will be interviewed
> on the radio show Te
test
_
Get the latest Windows Live Messenger 8.1 Beta version. Join now.
http://ideas.live.com
--
http://mail.python.org/mailman/listinfo/python-list
Terry Reedy wrote:
> In a thread on the PyDev list, Guido van Rossum today wrote:
>
>>And I just found out (after everyone else probably :-) that YouTube is
>>almost entirely written in Python. (And now I can rub shoulders with
>>the developers since they're all Googlers now... :-)
>
Nice quote
> > I use 'French units' instead of the term 'metric system' because the
> > latter means 'measurement system,' and of course could validly be
> > applied to _any_ system.Now we know how one contractor ended up using
> > English units when the
> other was using French units and an entire Mars miss
I am defining a class, and I need to refer to that class when
setting up its static data - don't ask - like this:
Class weeble :
wumpus = brinjal(weeble)
Does anyone know how I can achieve this? Naturally, I don't need
anything more than the address of the class in brinjal, as it won't
be u
Ning wrote:
> I'm trying to write an IM client which sends encrypted messages to the
> server. I tried to use pycrypto library, but when I came to 3DES
> cypher I was confused about the keysize to use. In the standard it
> said that it should be either 112 bits or 168 bits, whereas it's 16
> byt
hg wrote:
> Ning wrote:
>
>> I'm trying to write an IM client which sends encrypted messages to the
>> server. I tried to use pycrypto library, but when I came to 3DES
>> cypher I was confused about the keysize to use. In the standard it
>> said that it should be either 112 bits or 168 bits, wh
Robert Uhl wrote:
> "Ravi Teja" <[EMAIL PROTECTED]> writes:
>
> > Mark Tarver wrote:
> >>
> >> seems to show that Python is a cut down (no macros) version of Lisp
> >> with a worse performance.
> >
> > By that standard, every other mainstream dynamically typed language
> > for you is a cut-down ve
At Wednesday 13/12/2006 10:10, BartlebyScrivener wrote:
> Python does *not* use the Path when searching for modules; sys.path is
> initialized based on the contents of PYTHONPATH, the location of the
> Python executable (or PYTHONHOME), some heuristics, and certain registry
> entries.
Now I'm s
Podi wrote in news:[EMAIL PROTECTED] in
comp.lang.python:
> Rob Williscroft wrote:
>>
>> Google will usually find the documentation of anything in the
>> Windows API however sometimes it also helps to add "msdn" to
>> your search as in:
> Yes, thank you.
>
> I found the function SetLocalTime or
Gabriel Genellina wrote:
>
> import sys
> print sys.path
> and see what's there.
Yup. Did that before. That's what I mean. The d:\\python is there and
it doesn't come from the PythonPath in my windows registry. Maybe it
scans for any directory with python in the name?
['', 'C:\\WINDOWS\\system32
At Wednesday 13/12/2006 18:04, Nick Maclaren wrote:
I am defining a class, and I need to refer to that class when
setting up its static data - don't ask - like this:
Class weeble :
wumpus = brinjal(weeble)
Move it below the class:
class weeble:
weeble.wumpus = brinjal(weebl
[EMAIL PROTECTED] (Nick Maclaren) wrote:
>
> I am defining a class, and I need to refer to that class when
> setting up its static data - don't ask - like this:
>
> Class weeble :
> wumpus = brinjal(weeble)
You cannot refer to weeble until it has been created which isn't until
after all of
On Sun, 10 Dec 2006 10:11:37 -0500
Ken Tilton <[EMAIL PROTECTED]> wrote:
#> Lisp has all the cool qualities you like in your pets, plus native
#> compilation in most implementations, plus maturity and a standard, plus
#> a better OO, plus macros, plus a dozen more small wins. Including
#> autom
On Sun, 10 Dec 2006 17:11:20 +0200
"Dmitry V. Gorbatovsky" <[EMAIL PROTECTED]> wrote:
#> Steven D'Aprano wrote:
#>
#> > So which is it? If Lisp is so self-evidently better than every other
#> > language, and if nobody has any fears or concerns with Lisp, why is Lisp a
#> > fringe language?
#> Be
On Tue, 12 Dec 2006 20:38:14 -0800
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
#> > > Because it's the language for which indentation is automatically
#> > > determinable. That is, one can copy/paste a chunk of code, hit a
#> > > key and suddenly everything is nicely indented.
#> >
#> > Cool, s
On Sat, 09 Dec 2006 21:59:58 -0500
Ken Tilton <[EMAIL PROTECTED]> wrote:
#> > Could it be because of people like J Shrager who writes things like this?
#> >
#> > "Can't you just expand the language via macros to create whatever facility
#> > of this sort [major new features with new syntax] you n
BartlebyScrivener wrote:
> Yup. Did that before. That's what I mean. The d:\\python is there and
> it doesn't come from the PythonPath in my windows registry.
what do you get if you do:
> python -S
...
>>> import sys
>>> sys.path
and then
>>> import site
>>> sys.path
?
--
http://mai
BartlebyScrivener wrote:
> Yup. Did that before. That's what I mean. The d:\\python is there and
> it doesn't come from the PythonPath in my windows registry. Maybe it
> scans for any directory with python in the name?
Do you have any *.pth files in the C:\Python24 directory?
...
jay
--
http:/
"Marc 'BlackJack' Rintsch" <[EMAIL PROTECTED]> writes:
> In <[EMAIL PROTECTED]>, Holger Joukl
> wrote:
> > [a meaningless disclaimer text at the bottom of every message]
>
> Maybe you should rethink if it really makes sense to add this huge
> block of "nonsense" to a post to a newsgroup or public
Rob Warnock wrote:
> And for any of you who are rejecting this because you don't want to
> learn or use Emacs, Raffael's point is even true in the Vi family of
> editors ("nvi" & "vim", at least). The "y%" command yanks (copies)
> everything through the matching paren into the anonymous buffer;
> "
Thank you. It works :-)
P
Rob Williscroft wrote:
> Ok I see, you will probably need these 2 bits of the ctypes
> documentation:
>
> http://docs.python.org/lib/ctypes-structures-unions.html
> http://docs.python.org/lib/ctypes-pointers.html
>
> From there on geting to this is farly straight fo
Willem Broekema wrote:
> Paul Rubin wrote:
> > Does this count as a "children of a lesser Python"?
>
> This sounds like a quite derogatory first question.
I wouldn't take it that way: it's only a quote from an opinion piece
about alternative Python implementations (albeit a contentious one).
> CL
Actually, in English, "parenthesis" means the bit in between the
brackets.
The various kinds of brackets (amongst other punctuation marks
including, in most english texts, commas) *demarcate* parentheses.
Wikipedia's "Parenthesis (rhetoric)" is, at time of writing, the correct
British English def
Dennis Lee Bieber wrote:
> On 12 Dec 2006 23:40:41 -0800, "kernel1983" <[EMAIL PROTECTED]>
> declaimed the following in gmane.comp.python.general:
>
> > and I tried unicode and utf-8
> > I tried to both use unicode&utf-8 head just like "\xEF\xBB\xBF" and not
> > to use
> >
> "unicode" is a t
No offense, but my conclusions from your mail is that readability is a
matter of taste.
My brains need to process a whole lot more information with your solution
than in my proposal...
but I read somewhere else that GvR rejected the proposal :-(
Ciao,
@
[EMAIL PROTECTED] wrote:
> The propose
Dear Carl,
Well, all I can say that for me as a user it would make sense...
Curiosity: in what sense is it redundant?
All solution/workarounds I have seen so far involve creation of new lists
(subsets) adding to more processing/computation/memory usage. Redundant
suggests that you know alternativ
Carl Banks wrote:
>
> The function can be extended to allow arbitrary arguments. Here's a
> non-minmal recursive version.
>
> def cartesian_product(*args):
> if len(args) > 1:
> for item in args[0]:
> for rest in cartesian_product(*args[1:]):
> yield (item
In article <[EMAIL PROTECTED]>,
Duncan Booth <[EMAIL PROTECTED]> writes:
|> >
|> > I am defining a class, and I need to refer to that class when
|> > setting up its static data - don't ask - like this:
|> >
|> > Class weeble :
|> > wumpus = brinjal(weeble)
|>
|> You cannot refer to weeble u
John Nagle wrote:
> Michael Ströder wrote:
>
>> John Nagle wrote:
>>
>>>The Python SSL object offers two methods from obtaining
>>> the info from an SSL certificate, "server()" and "issuer()".
>>> The actual values in the certificate are a series of name/value
>>> pairs in ASN.1 binary format.
Has anyone seen the following error while starting httpd:
Starting httpd: httpd: Syntax error on line 54 of
/usr/local/apache2/conf/httpd.conf: API module structure
`python_module' in file /usr/local/apache/modules/mod_python.so is
garbled - perhaps this is not an Apache module DSO
I am running p
Gabriel Genellina wrote:
> You DON'T need the password for the receiving account just to send him
> an email!
> And you don't even need that special Gmail library, smtplib should be
> fine.
Yes you dont need a password to receive email, but to access Gmail and
send an email you do. Yes you do n
Anthony Baxter wrote:
> On 12/13/06, Holger Joukl <[EMAIL PROTECTED]> wrote:
>> I did read this but didn't think it applied to my situation. I'm quite
>> sure that the refcount of the local variable is 1 before the local scope
>> is left.
>> So let me rephrase the question: Even if I can make sure
I've been trying to develop some numerical codes with python, however
got disappointed.
A very simple test,
a = 1.0
for i in range(1000):
for j in range(1000):
a = a+1
unfortunately, it took 4.5 seconds to finish(my machines is fine. P4
3.0G, 1G RAM, it varies according to machi
On 13 Dec 2006 16:07:20 -0800, Chao <[EMAIL PROTECTED]> wrote:
I've been trying to develop some numerical codes with python, however
got disappointed.
A very simple test,
a = 1.0
for i in range(1000):
for j in range(1000):
a = a+1
unfortunately, it took 4.5 seconds to finish(
blbmdsmith wrote:
> Has anyone seen the following error while starting httpd:
>
> Starting httpd: httpd: Syntax error on line 54 of
> /usr/local/apache2/conf/httpd.conf: API module structure
> `python_module' in file /usr/local/apache/modules/mod_python.so is
> garbled - perhaps this is not an Apa
Hi
In typically windows environments I have used:
if 'Windows' in os.environ['OS']...
to prove it, but now I need to properly support different environments.
To do so I must accurately determine what system the python instance is
running on (linux, win, mac, etc).
Is there a best practises way
On 13 Dec 2006 15:45:09 -0800, placid <[EMAIL PROTECTED]> wrote:
Gabriel Genellina wrote:
> You DON'T need the password for the receiving account just to send him
> an email!
> And you don't even need that special Gmail library, smtplib should be
> fine.
Yes you dont need a password to recei
Ken Tilton wrote:
>
>
> Paul Rubin wrote:
>
>> Ken Tilton <[EMAIL PROTECTED]> writes:
>>
>>> Have you read On Lisp by Paul Graham? It is on-line. Just the preface
>>> will do, I think, maybe also Chapter One where he raves on macros. Do
>>> you think he is mistaken? Confused? Lying? Mutant?
>>
Fredrik Lundh wrote:
> what do you get if you do:
> > python -S
> ...
>>> import sys
>>> sys.path
['', 'C:\\WINDOWS\\system32\\python24.zip', 'd:\\python',
'C:\\Python24\\DLLs', 'C:\\Python24\\lib',
'C:\\Python24\\lib\\plat-win', 'C:\\Python24\\lib\\lib-tk', 'C:\
\Python24']
> and then
>>> imp
On Dec 13, 6:32 pm, "Ian F. Hood" <[EMAIL PROTECTED]> wrote:
> Hi
> In typically windows environments I have used:
> if 'Windows' in os.environ['OS']...
> to prove it, but now I need to properly support different environments.
> To do so I must accurately determine what system the python inst
jay graves wrote:
>
> Do you have any *.pth files in the C:\Python24 directory?
>
No.
--
http://mail.python.org/mailman/listinfo/python-list
At Wednesday 13/12/2006 20:45, placid wrote:
> You DON'T need the password for the receiving account just to send him
> an email!
> And you don't even need that special Gmail library, smtplib should be
> fine.
Yes you dont need a password to receive email, but to access Gmail and
send an email
On 12/14/06, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
At Wednesday 13/12/2006 20:45, placid wrote:
> > You DON'T need the password for the receiving account just to send him
> > an email!
> > And you don't even need that special Gmail library, smtplib should be
> > fine.
>
>Yes you dont nee
At Wednesday 13/12/2006 21:07, Chao wrote:
I've been trying to develop some numerical codes with python, however
got disappointed.
A very simple test,
a = 1.0
for i in range(1000):
for j in range(1000):
a = a+1
unfortunately, it took 4.5 seconds to finish(my machines is fine.
On Wed, Dec 13, 2006 at 04:07:20PM -0800, Chao wrote:
> I've been trying to develop some numerical codes with python, however
> got disappointed.
>
> A very simple test,
>
> a = 1.0
>
> for i in range(1000):
> for j in range(1000):
>a = a+1
>
> unfortunately, it took 4.5 second
At Wednesday 13/12/2006 21:44, Aidan Steele wrote:
While what you said is technically correct, I think you misread
their original question. They want to send email *from* the Gmail
account *to* the work account. I suggested that he use Gmail's SMTP
server to send the email.
They were concern
On 12/14/06, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
At Wednesday 13/12/2006 21:44, Aidan Steele wrote:
>While what you said is technically correct, I think you misread
>their original question. They want to send email *from* the Gmail
>account *to* the work account. I suggested that he us
I am studying Python language. I have Python 2.5 installed in my PC
which is running on Windows XP. I placed the the script called
"python_script" in C:\Python25 directory where all the other Python
files are.
When I tried to import the script called "python_script", it kept
printing the famous e
Nick Maclaren wrote:
>
> Well, I am already doing that, and regretting the fact that Python
> doesn't seem to allow a class instantiation to return a new class :-)
>
>>> class Fake(object):
... def __new__(cls):
... return 42
...
>>> Fake()
42
>>>
"instantiation" (i.e.
My Bad, the time used by python is 0.46~0.49 sec,
I tried xrange, but it doesn't make things better.
import time
tic = time.time()
a = 1.0
array = range(1000)
for i in array:
for j in array:
a = a + 0.1
toc = time.time()
print toc-tic,' has elapsed'
used by matlab is 0.012sec
tic
At Wednesday 13/12/2006 22:16, rich murphy wrote:
I am studying Python language. I have Python 2.5 installed in my PC
which is running on Windows XP. I placed the the script called
"python_script" in C:\Python25 directory where all the other Python
files are.
Verify the file name, should be "p
Dennis Lee Bieber wrote:
> On 13 Dec 2006 03:52:49 -0800, "Dustan" <[EMAIL PROTECTED]>
> declaimed the following in gmane.comp.python.general:
>
> >
> > I didn't complete my thought. If you run into a situation like this,
> > then you might want to look to the python documentation on the web for
>
John Henry wrote:
> Carl Banks wrote:
>
>> The function can be extended to allow arbitrary arguments. Here's a
>> non-minmal recursive version.
>>
>> def cartesian_product(*args):
>> if len(args) > 1:
>> for item in args[0]:
>> for rest in cartesian_product(*args[1:]):
>>
Ken Tilton <[EMAIL PROTECTED]> writes:
> pps. How would Python do this? Is it possible to avoid committing to
> an implementation mechanism? Compare and contrast. k
You'd just write a function. Python's expression syntax is comparable
to a Lisp reader (you can have nested values of mixed types et
"rich murphy" <[EMAIL PROTECTED]> writes:
> I am studying Python language.
Welcome! Allow me to direct you to the Python tutorial:
http://docs.python.org/tut/>
Please take the time to work through all the exercises in that
document, understanding each one before moving on.
I recommend this
I checked out couple of books from Library, one that I like called
"Foundation of Python Network Programming", this is what I needed, code
with understandable explantion. ;) Thread pooling and many others.
Thanks all of you for the help.
Dustan wrote:
> Dennis Lee Bieber wrote:
> > On 13 Dec 20
at wrote:
> Well, all I can say that for me as a user it would make sense...
Which is, like, step one out of a hundred for getting a syntax change
into the language.
> Curiosity: in what sense is it redundant?
It creates syntactical support for two different ways to do something.
If your plan we
at <[EMAIL PROTECTED]> writes:
> You proposal, seems nice to me but it doesn't work with Python 2.4.3, should
> it work with 2.5?
>
> Again I am just wondering if the approach for
>
> [x for c x in some_list if some_condition]
>
> and
> x = a if b else c
>
> could be generalize
Python author and trainer Mark Lutz will be teaching another
3-day Python class at a conference center in Longmont, Colorado,
on January 23-25, 2007.
This is a public training session open to individual enrollments,
and covers the same topics as the 3-day onsite sessions that Mark
teaches, with ha
Thank you both for responding.
Yes of course the file has the ".py" extension and yes I went through
the tutorial.
Gabriel Genellina wrote:
> At Wednesday 13/12/2006 22:16, rich murphy wrote:
>
> >I am studying Python language. I have Python 2.5 installed in my PC
> >which is running on Windows
Gabriel Genellina wrote:
> At Wednesday 13/12/2006 21:44, Aidan Steele wrote:
>
> >While what you said is technically correct, I think you misread
> >their original question. They want to send email *from* the Gmail
> >account *to* the work account. I suggested that he use Gmail's SMTP
> >server t
Ian F. Hood wrote:
> Hi
> In typically windows environments I have used:
> if 'Windows' in os.environ['OS']...
> to prove it, but now I need to properly support different environments.
> To do so I must accurately determine what system the python instance is
> running on (linux, win, mac, etc)
Ken Tilton wrote:
> pps. How would Python do this?
Here's one way it could look:
defskill("absolute-value",
title = "Absolute Value",
annotations = [
"Take the absolute value of #op#.",
"The vertical bars around #op# mean 'the absolute value of' #op#.",
"Absolute v
at wrote:
> It is not the addional line containing 'if x > 0:' that bothers me, but the
> additional indentation.
I don't find the additional indentation bothersome.
In fact I think it's helpful, because it makes it
obvious that there is something else going on besides
just a loop.
--
Greg
--
h
I am integrating with an existing cross-platform system that provides
different shell scripts and/or batch files for each environment. Normally
the selection is performed manually but my utility needs to automate this.
To select the correct utility I need to know what platform my code is
runni
excellent, ty
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
>
> On Dec 13, 6:32 pm, "Ian F. Hood" <[EMAIL PROTECTED]> wrote:
>> Hi
>> In typically windows environments I have used:
>> if 'Windows' in os.environ['OS']...
>> to prove it, but now I need to properly support differ
On 2006-12-13 19:28:14 -0500, [EMAIL PROTECTED] said:
>
>
> On Dec 13, 6:32 pm, "Ian F. Hood" <[EMAIL PROTECTED]> wrote:
>> Hi
>> In typically windows environments I have used:
>> if 'Windows' in os.environ['OS']...
>> to prove it, but now I need to properly support different environments.
>> To
AGCO, Jackson Operations is nestled in the picturesque Des Moines River
Valley---in the welcoming town of Jackson, Minnesota (56143). Jackson
is a town of approximately 3600 neighbors, and is centrally located
between the booming town of Sioux Falls, SD and the resort area of the
Okoboji Lakes.
AG
greg wrote:
> Ken Tilton wrote:
>
>> pps. How would Python do this?
>
>
> Here's one way it could look:
>
> defskill("absolute-value",
> title = "Absolute Value",
> annotations = [
> "Take the absolute value of #op#.",
> "The vertical bars around #op# mean 'the absolute va
Ken Tilton wrote:
> (apologies for nasty formatting):
;-)
- Paddy!
--
http://mail.python.org/mailman/listinfo/python-list
101 - 200 of 220 matches
Mail list logo