In article ,
Grant Edwards wrote:
>On 2010-11-03, Paul Rudin wrote:
>> John Bond writes:
>>> On 3/11/2010 11:17 AM, Steven D'Aprano wrote:
On Wed, 03 Nov 2010 08:02:29 +, John Bond wrote:
> Hope this isn't too O/T - I was just wondering how people read/send to
> this maili
I'm using a menu for my command line app using this method.
choice = "foobar"
while choice != "q":
if choice == "c":
temp = input("Celsius temperature:")
print "Fahrenheit:",celsius_to_fahrenheit(temp)
elif choice == "f":
temp = input("Fahrenheit temperature:")
Jed Smith wrote in message-id:
>
> On Wed, Nov 3, 2010 at 4:02 AM, John Bond wrote:
> > My normal inbox is getting unmanageable, and I think I need to find a new
> > way
> > of following this and other lists.
>
> I have to second (or third) the Gmail suggestion. I use Google Apps
> agains
> Peter Otten wrote:
> |-- alpha
> | |-- __init__.py
> | |-- beta
> | | |-- __init__.py
> | | `-- one.py
> | `-- two.py
> `-- main.py
>
> 2 directories, 5 files
> $ cat main.py
> import alpha.beta.one
> $ cat alpha/beta/one.py
> from ..alpha import two
> $ cat alpha/two.py
> print "s
Jed Smith wrote in message-id:
>
> On Wed, Nov 3, 2010 at 4:02 AM, John Bond wrote:
> > My normal inbox is getting unmanageable, and I think I need to find a new
> > way
> > of following this and other lists.
>
> I have to second (or third) the Gmail suggestion. I use Google Apps
> agains
Jed Smith wrote in message-id:
>
> On Wed, Nov 3, 2010 at 4:02 AM, John Bond wrote:
> > My normal inbox is getting unmanageable, and I think I need to find a new
> > way
> > of following this and other lists.
>
> I have to second (or third) the Gmail suggestion. I use Google Apps
> agains
Jed Smith wrote in message-id:
>
> On Wed, Nov 3, 2010 at 4:02 AM, John Bond wrote:
> > My normal inbox is getting unmanageable, and I think I need to find a new
> > way
> > of following this and other lists.
>
> I have to second (or third) the Gmail suggestion. I use Google Apps
> agains
Jed Smith wrote in message-id:
>
> On Wed, Nov 3, 2010 at 4:02 AM, John Bond wrote:
> > My normal inbox is getting unmanageable, and I think I need to find a new
> > way
> > of following this and other lists.
>
> I have to second (or third) the Gmail suggestion. I use Google Apps
> agains
Jed Smith wrote in message-id:
>
> On Wed, Nov 3, 2010 at 4:02 AM, John Bond wrote:
> > My normal inbox is getting unmanageable, and I think I need to find a new
> > way
> > of following this and other lists.
>
> I have to second (or third) the Gmail suggestion. I use Google Apps
> agains
On Nov 3, 8:19 pm, braden faulkner wrote:
> Just wondering if there is another or more efficient way I should be doing it?
I would move the input inside the respective methods or functions,
short of that, what is more efficient than a conditional... nothing,
and it reads very intuitively. Sure
braden faulkner writes:
> I'm using a menu for my command line app using this method.
>
> choice = "foobar"
The default choice for a “nothing here yet” value is the built-in
‘None’.
Sometimes that's not the right choice; but if you have no particular
reaason in a specific program to avoid ‘None
I use my blackberry to access the list.
- Braden Faulkner
Sent wirelessly from my BlackBerry device on the Bell network.
Envoyé sans fil par mon terminal mobile BlackBerry sur le réseau de Bell.
--
http://mail.python.org/mailman/listinfo/python-list
On 04/11/2010 01:19, braden faulkner wrote:
I'm using a menu for my command line app using this method.
choice = "foobar"
while choice != "q":
if choice == "c":
temp = input("Celsius temperature:")
print "Fahrenheit:",celsius_to_fahrenheit(temp)
elif choice == "f":
On 2010-11-04, braden faulkner wrote:
> I'm using a menu for my command line app using this method.
>
> choice = "foobar"
> while choice != "q":
> if choice == "c":
> temp = input("Celsius temperature:")
> print "Fahrenheit:",celsius_to_fahrenheit(temp)
> elif choice == "f"
On 2010-11-04, Emile van Sebille wrote:
> On 11/3/2010 4:09 PM Seebs said...
>
>> What's the token that marks the end of a block, corresponding to the
>> colon used to introduce it?
>>
>
>
> My thoughts tend more towards 'can we get Guido to eliminate the colon
> requirements' -- The indent level
On 11/03/10 20:41, QoS wrote:
Jed Smith wrote
I just prefer the Gmail philosophy to mail, with tags that are *like*
folders but not really.
If that is what you used to post this reply then your client is broken somewhat.
I'm not sure I'd go casting aspersions on other peoples
broken-client
On 2010-11-04, Seebs wrote:
> On 2010-11-04, Lawrence D'Oliveiro wrote:
>> In message , Seebs wrote:
>>> It is extremely useful to me to have spaces converted to tabs
>>> for every other file I edit.
>
>> I???m thinking of going the other way. After many years of treating tabs as
>> four-column
On 2010-11-04, QoS wrote:
> Jed Smith wrote in message-id:
>
>> I just prefer the Gmail philosophy to mail, with tags that are *like*
>> folders but not really.
>
> Just in case the client may not display the headers, fyi:
>
> If gmail is what you used to post this reply then your client is
>
OK I've had a modicum of success! However I was forced to add the path
to my application folder to sys.path, which I suppose is the closest I
can get to what I want. The example given then works in the shell.
Apache is another problem. I added the same path to the script then
Apache finds the appl
On Nov 1, 6:43 pm, exar...@twistedmatrix.com wrote:
> Hello all,
>
> I'm happy to announce the release of pyOpenSSL 0.11. The primary change
> from the last release is that Python 3.2 is now supported. Python 2.4
> through Python 2.7 are still supported as well. This release also fixes
> a handf
On Nov 3, 6:19 pm, braden faulkner wrote:
> I'm using a menu for my command line app using this method.
>
> choice = "foobar"
> while choice != "q":
> if choice == "c":
> temp = input("Celsius temperature:")
> print "Fahrenheit:",celsius_to_fahrenheit(temp)
> elif choice ==
Ben Finney writes:
> Here's my attempt at making it more Pythonic and maintainable::
[…]
> def celsius_to_fahrenheit(in_value):
> return ((in_value * (9.0/5) + 32.0))
Hmm. I went a bit overboard with the parens. This is what I'd prefer::
def celsius_to_fahrenheit(in_value):
Hello,
While working with the multiprocessing module in Python 2.6.6 on
Ubuntu 10.10 64-bit, the following exception was raised:
>>> import multiprocessing
>>> input_queue = multiprocessing.Queue()
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.6/multiprocessin
On 3/11/2010 7:16 PM, Grant Edwards wrote:
The OP could have figured all this out by himself by merely looking at
the headers for a sampling of articles.
Heck, with about 50 lines of Python, one could probably produced a
fairly comprehensive statistical report on access methods and clients
used
hi folks!
m looking 4 a framework, that allows to build static community software
(similar to facebook) without having to start scripts, database
connects, admin cookies, e.t.c.
means - should be dynamic without really being dynamic, delivering just
static pages. (yes, i know e.g. nginx does
101 - 125 of 125 matches
Mail list logo