On Tue, Aug 26, 2014 at 4:17 PM, Gregory Ewing
wrote:
> Joel Goldstick wrote:
>>
>> you should try python-tudor mailing list
>
> ^
> Hmmm. I wonder what version of Python Henry VIII used?
Version 8.0, in a modern numbering scheme. See, those letters after
his name are
Joel Goldstick wrote:
you should try python-tudor mailing list
^
Hmmm. I wonder what version of Python Henry VIII used?
--
Greg
--
https://mail.python.org/mailman/listinfo/python-list
A huge THANK YOU to whoever set the rules for PyPI passwords! You're
allowed to go with a monocase password, as long as it's at least 16
characters in length. Finally, someone who recognizes XKCD 936
passwords!
And yes, I generated an XKCD 936 password for the job. My parrot is
good at that... use
On 26/08/2014 02:10, Joel Goldstick wrote:
you should try python-tudor mailing list
I'd try python-stewart and please don't top post, you've been around
long enough and ought to know better :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our la
On Mon, Aug 25, 2014 at 4:52 AM, Amirouche Boubekki <
amirouche.boube...@gmail.com> wrote:
> - I am a big fan of Final Fantasy games, it seems to be an easy game
experience to code
Maybe not so easy, if the horrifying number of bugs in the early games of
the series are any indication.
I'm not su
On Tuesday, August 26, 2014 6:58:42 AM UTC+5:30, Tim Roberts wrote:
> bwatas wrote:
> >binario is the Python package that lets an application read/write primitive
> >data types from an underlying input/output file as binary data.
> >Package on PyPI: https://pypi.python.org/pypi/binario
> >Package
On Mon, 25 Aug 2014 14:05:01 -0700 (PDT), Rustom Mody
wrote:
>On Tuesday, August 26, 2014 1:44:40 AM UTC+5:30, Seymore4Head wrote:
>> BTW the exercise instructions say to use the choice function. I
>> assume I had to include all the numbers to choose from instead of
>> picking a random number fr
On Mon, 25 Aug 2014 21:52:24 +0100, Mark Lawrence
wrote:
>On 25/08/2014 21:14, Seymore4Head wrote:
>>
>> I included my shortcut for pb2. It doesn't work? Is there a short to
>> prevent from listing each number?
>>
>
>If it doesn't work then fix it and it will work. Alternatively define
>what
On Tue, 26 Aug 2014 12:45:45 +1000, Steven D'Aprano
wrote:
>Seymore4Head wrote:
>
>> import random
>> sets=3
>> for x in range(0, sets):
>> pb1=random.choice([1,2,3,4,5,6,7,8,9,10 [...] 52,53])
>> pb2=random.choice([1-53])
>
>You can avoid the annoyance of typing out long lists of sequent
Seymore4Head wrote:
> import random
> sets=3
> for x in range(0, sets):
> pb1=random.choice([1,2,3,4,5,6,7,8,9,10 [...] 52,53])
> pb2=random.choice([1-53])
You can avoid the annoyance of typing out long lists of sequential numbers
by using the range() function. And you can avoid writing o
bwa...@gmail.com wrote:
>
>binario is the Python package that lets an application read/write primitive
>data types from an underlying input/output file as binary data.
>
>Package on PyPI: https://pypi.python.org/pypi/binario
>Package on GitHub: https://github.com/asaskevich/binario
>Docs: http://b
In article ,
Rustom Mody wrote:
> On Monday, August 25, 2014 5:36:25 PM UTC+5:30, Roy Smith wrote:
> > Rustom Mody wrote:
>
> > > Heh! You make it sound that the character model is the most important
> > > thing
> > > in choosing a language!
> > > There are people using Fortran -- with not i
On Mon, 25 Aug 2014 20:51:36 -0400, Seymore4Head
wrote:
>On Mon, 25 Aug 2014 18:22:35 -0400, Terry Reedy
>wrote:
>
>>On 8/25/2014 4:14 PM, Seymore4Head wrote:
>>> import random
>>> sets=3
>>> for x in range(0, sets):
>>> pb2=random.choice([1-53])
>>
>>You want random.randint(1, 53)
>>...
>I
On 26/08/2014 6:12 AM, Mark Lawrence wrote:
Whatever happened to "There
should be one-- and preferably only one --obvious way to do it."? :)
Ignoring for a moment that "one obvious way" only applies to
Python-the-language, when it comes to libraries, there's a few factors
(IMO) that affect th
you should try python-tudor mailing list
On Mon, Aug 25, 2014 at 8:52 PM, Seymore4Head
wrote:
> On Tue, 26 Aug 2014 00:48:52 +0200, Peter Otten <__pete...@web.de>
> wrote:
>
>>Terry Reedy wrote:
>>
>>> On 8/25/2014 4:14 PM, Seymore4Head wrote:
import random
sets=3
for x in range(0,
On Tue, 26 Aug 2014 00:48:52 +0200, Peter Otten <__pete...@web.de>
wrote:
>Terry Reedy wrote:
>
>> On 8/25/2014 4:14 PM, Seymore4Head wrote:
>>> import random
>>> sets=3
>>> for x in range(0, sets):
>>> pb2=random.choice([1-53])
>>
>> You want random.randint(1, 53)
>> ...
>>> alist = so
On Mon, 25 Aug 2014 18:22:35 -0400, Terry Reedy
wrote:
>On 8/25/2014 4:14 PM, Seymore4Head wrote:
>> import random
>> sets=3
>> for x in range(0, sets):
>> pb2=random.choice([1-53])
>
>You want random.randint(1, 53)
>...
I agree with you that random.randint would be what I would use too,
but
On 26/08/2014 3:55 AM, Seymore4Head wrote:
I changed the program just a little to give myself a little practice
with number formats. The main thing I wanted to do was make the
decimal points line up. The problem I am having is with the print
(count)(payment)(balance) line.
While I don't want
On 26/08/2014 00:23, Dan Stromberg wrote:
On Mon, Aug 25, 2014 at 9:04 AM, Mark Lawrence wrote:
On 25/08/2014 16:28, Parth Trivedi wrote:
Dear All,
I need some help of yours. I want to convert audio in MP3 format to
other formats including uncompressed raw format, WAV etc. and I am using
pyt
On Mon, Aug 25, 2014 at 9:04 AM, Mark Lawrence wrote:
> On 25/08/2014 16:28, Parth Trivedi wrote:
>>
>> Dear All,
>>
>> I need some help of yours. I want to convert audio in MP3 format to
>> other formats including uncompressed raw format, WAV etc. and I am using
>> python 2.7. Is there any built-
Terry Reedy wrote:
> On 8/25/2014 4:14 PM, Seymore4Head wrote:
>> import random
>> sets=3
>> for x in range(0, sets):
>> pb2=random.choice([1-53])
>
> You want random.randint(1, 53)
> ...
>> alist = sorted([pb1, pb2, pb3, pb4, pb5])
>> print ("Your numbers: {} Powerball: {}".format
On 8/25/2014 4:14 PM, Seymore4Head wrote:
import random
sets=3
for x in range(0, sets):
pb2=random.choice([1-53])
You want random.randint(1, 53)
...
alist = sorted([pb1, pb2, pb3, pb4, pb5])
print ("Your numbers: {} Powerball: {}".format(alist, pb6))
I am trying this example.
On 8/25/2014 2:13 PM, Skip Montanaro wrote:
It appears that unittest in Python 2.7 should be capable enough that I
can abandon nose in favor of python -m unittest. How do I get it to
continue past the first failure?
Unittest normally stops with the first failure in a test_function. If
the asse
On Tuesday, August 26, 2014 1:44:40 AM UTC+5:30, Seymore4Head wrote:
> BTW the exercise instructions say to use the choice function. I
> assume I had to include all the numbers to choose from instead of
> picking a random number from 1-53 or 1-42.
> I included my shortcut for pb2. It doesn't wor
On 25/08/2014 21:14, Seymore4Head wrote:
I included my shortcut for pb2. It doesn't work? Is there a short to
prevent from listing each number?
If it doesn't work then fix it and it will work. Alternatively define
what "it doesn't work" means as I've run out of crystal balls, every
singl
import random
sets=3
for x in range(0, sets):
pb1=random.choice([1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53])
pb2=random.choice([1-53])
pb3=random.choice([1,2,3,4,5,6,7,8,9,10,11,12,13,1
On 25/08/2014 20:54, Skip Montanaro wrote:
On Mon, Aug 25, 2014 at 1:59 PM, Mark Lawrence wrote:
If you wish to write tests using something that can be compiled out please
don't let me stop you. Having said that if nose or even nose2 works for you
why not stick with it? There's also testfixtu
On Mon, Aug 25, 2014 at 1:59 PM, Mark Lawrence wrote:
> If you wish to write tests using something that can be compiled out please
> don't let me stop you. Having said that if nose or even nose2 works for you
> why not stick with it? There's also testfixtures, pytest, doctest and
> presumably ot
On 25/08/2014 19:36, Skip Montanaro wrote:
It appears that unittest in Python 2.7 should be capable enough that I
can abandon nose in favor of python -m unittest. How do I get it to
continue past the first failure? The --help output indicates that a -f
flag causes it to "fail fast", however, that
> It appears that unittest in Python 2.7 should be capable enough that I
> can abandon nose in favor of python -m unittest. How do I get it to
> continue past the first failure? The --help output indicates that a -f
> flag causes it to "fail fast", however, that appears to be the
> default. How do
On 2014-08-25 18:55, Seymore4Head wrote:
import sys
import math
def row1(number):
return str(number).rjust(3)
def row2(number):
return str(format(number) ',.2f'))
That line has to many ')'.
The result of 'format' is a string, so there's no need to use 'str'.
def row3(number):
On 25/08/2014 18:55, Seymore4Head wrote:
import sys
import math
def row1(number):
return str(number).rjust(3)
def row2(number):
return str(format(number) ',.2f'))
def row3(number):
return '${:.2f}'.format(number)
def row4(number):
return '$' + str(format(math.floor(number * 10
On Tue, Aug 26, 2014 at 3:55 AM, Seymore4Head
wrote:
> For some reason, it is not working. If I try to use row2 I get this
> error:
> http://i.imgur.com/FgeF9c9.jpg
Several meta-issues.
Firstly, your subject line talks about 'decimal' again. You're
actually working with floats; Python has a qui
It appears that unittest in Python 2.7 should be capable enough that I
can abandon nose in favor of python -m unittest. How do I get it to
continue past the first failure? The --help output indicates that a -f
flag causes it to "fail fast", however, that appears to be the
default. How do I get it t
import sys
import math
def row1(number):
return str(number).rjust(3)
def row2(number):
return str(format(number) ',.2f'))
def row3(number):
return '${:.2f}'.format(number)
def row4(number):
return '$' + str(format(math.floor(number * 100) / 100, ',.2f'))
count = 0
payment = 0
borro
On 25/08/2014 16:04, Marko Rauhamaa wrote:
Thank goodness for Python3, which has freed us from these archaic
confusions.
It had to happen. Cue our resident unicode expert who will tell us yet
again how fatally flawed the FSR is but once again fail to explain why.
Hum, which microbenchmark
On 25/08/2014 17:29, Ned Batchelder wrote:
On 8/25/14 11:02 AM, Benjamin Siegmund wrote:
Dear Python Developers,
since 1974 researchers and software developers try to ease software
debugging.
I'm really curious: where did the date 1974 come from? What happened
then? Hadn't people already been
On 8/25/14 11:02 AM, Benjamin Siegmund wrote:
Dear Python Developers,
since 1974 researchers and software developers try to ease software
debugging.
I'm really curious: where did the date 1974 come from? What happened
then? Hadn't people already been trying to ease software debugging for
at
On 25/08/2014 16:28, Parth Trivedi wrote:
Dear All,
I need some help of yours. I want to convert audio in MP3 format to
other formats including uncompressed raw format, WAV etc. and I am using
python 2.7. Is there any built-in module I can use or any third party
modules available ?
Please help
Dear All,
I need some help of yours. I want to convert audio in MP3 format to other
formats including uncompressed raw format, WAV etc. and I am using python
2.7. Is there any built-in module I can use or any third party modules
available ?
Please help me on this. I would be very grateful.
Thank
Chris “Kwpolska” Warrick :
>>> >>> display artist names like M�tley Cr�e and Beyonc�, I would be more
>>> >> Your mail client seems to be 7-bit ASCII!!
>>> > No it came through fine here, originally.
>>
>>> I saw it fine (news:comp.lang.python>), but there were no MIME
>>> headers. MIME might not
Dear Python Developers,
since 1974 researchers and software developers try to ease software
debugging. Over the last years, they created many new tools and formalized
methods. We are interested if these advancements have reached professional
software developers and how they influenced their approa
On Mon, Aug 25, Michael Torrie wrote:
> No it came through fine here, originally. It must be Google Groups that
> messed up the characters in displaying the message and in your reply.
Likely not. The header I got with msgid
lacks basic headers like
"Content-Type:" and "Content-Transfer-Encoding
On Mon, Aug 25, 2014 at 4:38 PM, Rustom Mody wrote:
> On Monday, August 25, 2014 7:56:55 PM UTC+5:30, Marko Rauhamaa wrote:
>> Michael Torrie:
>
>> > On 08/25/2014 06:24 AM, Rustom Mody wrote:
>> >>> display artist names like M�tley Cr�e and Beyonc�, I would be more
>> >> Your mail client seems to
On Monday, August 25, 2014 7:56:55 PM UTC+5:30, Marko Rauhamaa wrote:
> Michael Torrie:
> > On 08/25/2014 06:24 AM, Rustom Mody wrote:
> >>> display artist names like M�tley Cr�e and Beyonc�, I would be more
> >> Your mail client seems to be 7-bit ASCII!!
> > No it came through fine here, origina
Michael Torrie :
> On 08/25/2014 06:24 AM, Rustom Mody wrote:
>>> display artist names like M�tley Cr�e and Beyonc�, I would be more
>>
>> Your mail client seems to be 7-bit ASCII!!
>
> No it came through fine here, originally. It must be Google Groups
> that messed up the characters in displayi
On 08/25/2014 06:24 AM, Rustom Mody wrote:
>> ... I wouldn't care much if I could only print 7-bit ascii.
>> If I was writing code to serve music on the web and had to
>> display artist names like M�tley Cr�e and Beyonc�, I would be more
>> concerned about the character model.
>
> Funny!!
> Your
On 25/08/2014 10:58, Алексей Саскевич wrote:
Package works directly with files and has similar structure with Java's
DataInputStream/DataOutputStream classes.
Can construct read/write data from files?
Frankly I've no idea and without any context it's impossible to tell.
What were you discuss
On 8/23/2014 9:00 AM, Chris Angelico wrote:
On Sat, Aug 23, 2014 at 10:38 PM, Rustom Mody wrote:
Here is an example (not identical but analogous to) where markup+compile is
distinctly weaker than wysiwyg:
You can use lilypond to type music and the use a midi player to play it
But lilypond does
On Monday, August 25, 2014 3:28:28 PM UTC+5:30, Алексей Саскевич wrote:
> Package works directly with files and has similar structure with Java's
> DataInputStream/DataOutputStream classes.
> Can construct read/write data from files?
I guess so. See parse_stream:
http://construct.readthedocs.org
On Monday, August 25, 2014 5:36:25 PM UTC+5:30, Roy Smith wrote:
> Rustom Mody wrote:
> > Heh! You make it sound that the character model is the most important thing
> > in choosing a language!
> > There are people using Fortran -- with not intention of finding
> > an alternative.
> Different p
In article ,
Rustom Mody wrote:
> Heh! You make it sound that the character model is the most important thing
> in choosing a language!
> There are people using Fortran -- with not intention of finding
> an alternative.
Different people have different needs. If I was writing code to do
number
2014-08-25 12:52 GMT+02:00 Amirouche Boubekki
:
> Héllo,
>
>
> 2014-08-21 14:54 GMT+02:00 David Palao :
>
> Why to use C++ instead of python?
>>
>> It is not ranting against C++. I was/am looking for small-medium
>> projects to exercise my C++ skills. But I'm interested in a "genuine"
>> C++ pr
On Sun, 24 Aug 2014 00:16:30 -0700 (PDT), Nicholas Cannon
wrote:
>Hey I bought a raspberry pi, a bread board and all this electronics stuff and
>i really enjoy programming stuff in python and i have had a decent of practise
>with python. I really wont to get into making things with electronics(
Héllo,
2014-08-21 14:54 GMT+02:00 David Palao :
> Why to use C++ instead of python?
>
> It is not ranting against C++. I was/am looking for small-medium
> projects to exercise my C++ skills. But I'm interested in a "genuine"
> C++ project: some task where C++ is really THE language (and where
>
Package works directly with files and has similar structure with Java's
DataInputStream/DataOutputStream classes.
Can construct read/write data from files?
--
https://mail.python.org/mailman/listinfo/python-list
On Mon, Aug 25, 2014 at 6:01 PM, Rustom Mody wrote:
> On Monday, August 25, 2014 9:11:39 AM UTC+5:30, Chris Angelico wrote:
>
>> Sure. And your reduction of AWS bills sounds great. Just make sure you
>> don't consume the entire extra coder's time doing things that Python
>> would have done for you
Rustom Mody :
> Heh! You make it sound that the character model is the most important
> thing in choosing a language!
That's because the "character model" is the raison-d'être for Python3.
As far as Go goes, I think it's an interesting approach, but marred by
the Google tie-in. You must have a G
On Monday, August 25, 2014 9:11:39 AM UTC+5:30, Chris Angelico wrote:
> Sure. And your reduction of AWS bills sounds great. Just make sure you
> don't consume the entire extra coder's time doing things that Python
> would have done for you. Go's character model is inferior to Python
> 3's (or at l
On 23-08-14 01:20, Terry Reedy wrote:
> On 8/22/2014 10:26 AM, luofeiyu wrote:
>> System:win7+python34.
>>
>> class Contact(object):
>> def __init__(self, first_name=None, last_name=None,
>> display_name=None, email=None):
>> self.first_name = first_
On 23-08-14 01:20, Terry Reedy wrote:
> On 8/22/2014 10:26 AM, luofeiyu wrote:
>> System:win7+python34.
>> class Contact(object):
>> def __init__(self, first_name=None, last_name=None,
>> display_name=None, email=None):
>> self.first_name = first_na
61 matches
Mail list logo