On Sat, Nov 27, 2010 at 10:55 PM, Rance Hall wrote:
> I need to do some case manipulation that I don't see in the documented
> string functions.
>
> I want to make sure that user input meets a certain capitalization
> scheme, for example, if user input is a name, then the first letter of
> each w
On Sun, Nov 28, 2010 at 5:55 AM, Rance Hall wrote:
> I need to do some case manipulation that I don't see in the documented
> string functions.
>
> I want to make sure that user input meets a certain capitalization
> scheme, for example, if user input is a name, then the first letter of
> each wor
I need to do some case manipulation that I don't see in the documented
string functions.
I want to make sure that user input meets a certain capitalization
scheme, for example, if user input is a name, then the first letter of
each word in the name is upper case, and the rest are lower.
I know ho
On 28 November 2010 02:59, Mauricio Alejandro wrote:
> I never created any emulator before, and i'm learning C++. Let's say i try
> to write an emulator for... SNES. Would Python be fast enough?
> Also, any useful advice you can give me? Things i should know about before
> i start coding?
>
Beca
32-bit Python 2.7 for Windows:
>>> import time
>>> time.strftime("%T")
Traceback (most recent call last):
File "", line 1, in
time.strftime("%T")
ValueError: Invalid format string
Malcolm
___
Tutor maillist - Tutor@python.org
To unsubscribe or
I never created any emulator before, and i'm learning C++. Let's say i try to
write an emulator for... SNES. Would Python be fast enough?
Also, any useful advice you can give me? Things i should know about before i
start coding?
_
Hi,
Thanks for the feedback.
I will add a trial section that doesn't require login so that new visitors
are able to give the website a try.
Regards,
Kok Cheng
-- Forwarded message --
From:
Date: Sun, Nov 28, 2010 at 2:41 AM
Subject: Tutor Digest, Vol 81, Issue 105
To: tutor@pyth
Alan Gauld wrote:
import os
reload(os)
Traceback (most recent call last):
File "", line 1, in
reload(os)
NameError: name 'reload' is not defined
Has reload been removed in V3?
Not removed, just moved.
>>> import imp
>>> imp.reload
The reason for moving it is that reload is quite
On Sat, 27 Nov 2010, Steven D'Aprano wrote:
[st...@sylar ~]$ python2.5
Python 2.5 (r25:51908, Nov 6 2007, 16:54:01)
[GCC 4.1.2 20070925 (Red Hat 4.1.2-27)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import time
time.strftime("%T")
'19:03:16'
Interesting
Thank you both! Broadcasting is a concept I hadn't yet read about, but
knew was important for efficient python programming... thanks for the
link!
On Sat, Nov 27, 2010 at 6:44 PM, Eike Welk wrote:
> Hello John!
>
> On Friday 26.11.2010 23:23:51 Peter Otten wrote:
>> John wrote:
>> > I know this
> -Original Message-
> On Sat, 27 Nov 2010 22:00:03 +0800
> Kok Cheng Tan wrote:
>
> > I created this website for practising python online:
> > http://www.pyschools.com. Hope to gather feedback from
> people here who
> > are interesting in teaching and learning python.
>
I logged in
Hi - I just wanted to add to Mac's comment. I don't have Google
mail/gmail and don't want to create a mail account with them. I was also
wondering if I should just try clicking on links anyway and changed my
mind and exited.
Regards,
Patty
> On Sat, 27 Nov 2010 22:00:03 +0800
> Kok Cheng Ta
Hello John!
On Friday 26.11.2010 23:23:51 Peter Otten wrote:
> John wrote:
> > I know this is a simple problem, but I want to do it the most
> > efficient way (that is vectorized...)
> >
> > import numpy as np
> >
> > a = np.array(([1,2,3,4],[1,.2,3,4],[1,22,3,4]))
> > b = np.sum(a,axis=1)
> >
On Sat, 27 Nov 2010 22:00:03 +0800
Kok Cheng Tan wrote:
> I created this website for practising python online:
> http://www.pyschools.com. Hope to gather feedback from people here
> who are interesting in teaching and learning python.
Here you go with the first suggestion: remove the need to log
"Alan Gauld" wrote
Has reload been removed in V3?
Whats the alternative? Does a repeated import auto-reload?
I'm surprised and confused...
Found it, its been moved into the imp module.
You need to import imp and then do
imp.reload(foo)
import os
reload(os)
Traceback (most recent call
"Steven D'Aprano" wrote
The other nine times out of ten *wink* I need to do debugging, and I
swap tabs and work in my interactive Python interpreter.
import filename # first time only
reload(filename) # all subsequent times
I'm working on the v3 version of my tutor and while testing some
Hi,
I created this website for practising python online: http://www.pyschools.com.
Hope to gather feedback from people here who are interesting in
teaching and learning python.
Regards,
Kok Cheng
___
Tutor maillist - Tutor@python.org
To unsubscribe or
I have unsubscribed Joel since he seems incapable of following
the instructions.
Alan G.
Moderator.
"Wangolo Joel" wrote in message
news:631794.21995...@web29702.mail.ird.yahoo.com...
-- I NOLONGER WANT YOUR TUTORIALS
BECAUSE OF SPAM VIRUSES
THANK YOU FOR YOUR SERVISES
-
I am beginning to feel the name Wangolo Joel is not human. It probably could be
the name of a virus.
It has been said over and over how to unsubscribe to an extent that someone
actually sent a link and yet, we are still getting this mail.
Can anyone write a simple program to deactivate this vir
"john tsolox" wrote
seeing various examples of lambda in python being ALL one-liners.
These one-liners inside a lambda seems not to have the
full permissible use of the full power of python language
(if,for,while). Is this correct?
The lambda expression was introduced into Python by popula
-- I NOLONGER WANT YOUR TUTORIALS
BECAUSE OF SPAM VIRUSES
THANK YOU FOR YOUR SERVISES
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
Terry Carroll wrote:
My question: was %T ever a valid format specifier in Python? My best
guess is that it was when Edna was written (the most current release is
from 2006, and the docs say it needs at least Python 1.5.2, which gives
you an example of its age). It seems odd that the format i
22 matches
Mail list logo