Folks,
It seems that people have been sending threats and abuse to the company
claiming a trademark on the name "Python". And somebody, somewhere, may
have launched a DDOS attack on their website.
The Python Software Foundation has asked the community for restraint and
civility during this disput
On 02/16/2013 12:33 AM, Bama Parameshwaran wrote:
http://OBFUSCATED.info/
Without any text body, you surely don't expect any of us to follow a link ??
--
DaveA
--
http://mail.python.org/mailman/listinfo/python-list
On 02/15/2013 02:00 PM, matt.doolittl...@gmail.com wrote:
I am using using ubuntu 12.10 i am trying to run a python block, namely OP25,
in GNU Radio Companion v3.6.3-35-g4435082f, which uses python version 2.7.3 for
some reason although python3.2 is in the lib folder. I run the following trace
The news is featured as an article on Groklaw now.
Those folks are on it...
http://www.groklaw.net/article.php?story=20130215074839583
--
http://mail.python.org/mailman/listinfo/python-list
Dennis Lee Bieber wrote:
> Classical CompSci teachings when working with floating point numbers
> is to NEVER compare for equality. Instead one should compare against
> some epsilon:
"Don't compare floats for equality" is reasonably good advice.
Adding "never" to that advice, especially when sho
On 02/15/2013 10:57 PM, eli m wrote:
On Friday, February 15, 2013 7:52:57 PM UTC-8, Mitya Sirenef wrote:
On 02/15/2013 10:22 PM, eli m wrote:
Any small program ideas? I would prefer to stick to command line ones. Thanks.
How about these two:
- simulation of a street crossing with gree
On Feb 14, 4:52 pm, Steven D'Aprano wrote:
> You can also testify to the fact that when you read or hear of the
> name "Python" in relation to computers and the Internet, you think of
> Python the programming language.
Has anyone considered a search of Amazon for Python, or more
particularly sea
On Friday, February 15, 2013 7:52:57 PM UTC-8, Mitya Sirenef wrote:
> On 02/15/2013 10:22 PM, eli m wrote:
>
> > Any small program ideas? I would prefer to stick to command line ones.
> > Thanks.
>
>
>
> How about these two:
>
>
>
> - simulation of a street crossing with green/red lights
Stefan Behnel wrote:
> I'm sure it's a pure marketing thing for their domain. I'd expect the
> number of links to their site to rise rapidly during the next weeks,
> that's very likely worth the bit of money they'd pay to their lawyer(s).
I doubt that. The amount of time required to make a tradem
On 02/15/2013 10:22 PM, eli m wrote:
Any small program ideas? I would prefer to stick to command line ones. Thanks.
How about these two:
- simulation of a street crossing with green/red lights allowing cars
and pedestrians to pass in one direction then another
- simulation of an elevator
Any small program ideas? I would prefer to stick to command line ones. Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
Hi, I don't know if I should ask this on here, or in the tutor section, but
I heard that http://www.lighttable.com was an innovative IDE, so I was
wondering if it works for python since I'm learning python over time.
Thanks!
On Fri, Feb 15, 2013 at 5:25 PM, wrote:
> Send Python-list mailing
On Feb 16, 6:39 am, Kene Meniru wrote:
> x = (math.sin(math.radians(angle)) * length)
> y = (math.cos(math.radians(angle)) * length)
A suggestion about coding style:
from math import sin, cos, radians # etc etc
x = sin(radians(angle)) * length
y = cos(radians(angle)) * length
... easier to wri
Hello everyone,
I am trying to follow this tutorial:
https://docs.djangoproject.com/en/1.4/topics/install/#installing-official-release
I am on step 3 as of now (scroll down a little bit to see it).
For some reason when I run the code in terminal I get:
zsh: permission denied: /Library/Python/2.
On 2/15/2013 6:06 PM, Ned Deily wrote:
In article , Terry Reedy
wrote:
On 2/15/2013 5:53 AM, Robin Becker wrote:
On
all the other machines I have access to I'm seeing something similar to
this
Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit
(Intel)] on win32
Notice the da
On Sat, Feb 16, 2013 at 7:12 AM, Ian Kelly wrote:
> FYI, the general consensus here is that "he" (8 Dihedral) is a
> bot. It posts in non sequiturs and fails to respond meaningfully to
> direct queries. A few months ago I posed an obvious Turing test for
> it, which it failed.
>
> http://thr
On 2/15/2013 4:45 PM, Deborah Piotrowski wrote:
I am very new to Python, I am using the e-book "Python Programming for
the Absolute Beginner" and am starting with a simple "Game Over"
Program. This is the code:which is extremely simple!\
print"Game Over" raw_input("\n\nPress Enter Key to exit")
WAIT!! It works now, I just needed to save it in script.
Thank you guys so much!!
My best regards, Nicholas
On Fri, Feb 15, 2013 at 4:21 PM, Joel Goldstick wrote:
> Print needs parense in python 3
> On Feb 15, 2013 5:48 PM, "Bob Brusa" wrote:
>
>>
>>
>> Am Freitag, 15. Februar 2013 schrieb Joel
Steve,
> I am looking for the python2.7 function(s) to parse a string from a colon
> character ":"
>
> Sounds simple enough.
>
> For example, a string like "123456:789". I just need the "123456"
> substring.(left of the :)
How about:
newstr = str[:str.find(':')]
--
GC
smime.p7s
Descriptio
Print needs parense in python 3
On Feb 15, 2013 5:48 PM, "Bob Brusa" wrote:
>
>
> Am Freitag, 15. Februar 2013 schrieb Joel Goldstick :
>
>>
>>
>>
>> On Fri, Feb 15, 2013 at 4:45 PM, Deborah Piotrowski <
>> spiceninj...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>>
>>> I am very new to Python, I am using
In Deborah Piotrowski
writes:
> print "Game Over"
> input("\n\nPress the Enter Key to Exit")
> Syntax Error: Invalid Syntax
You're probably using Python version 3, but the book was written for
version 2. The print statement is handled a bit differently in version 3.
Change your print statem
On 15/02/2013 23:04, Steve Goodwin wrote:
Hi,
I am looking for the python2.7 function(s) to parse a string from a colon
character ":"
Sounds simple enough.
For example, a string like "123456:789". I just need the "123456"
substring.(left of the :)
I have looked at regular expressions and str
In <511ebf0c$0$21334$9a6e1...@unlimited.newshosting.com> "Steve Goodwin"
writes:
> I am looking for the python2.7 function(s) to parse a string from a colon
> character ":"
> Sounds simple enough.
> For example, a string like "123456:789". I just need the "123456"
> substring.(left of the :
On Fri, Feb 15, 2013 at 6:04 PM, Steve Goodwin wrote:
> Hi,
>
> I am looking for the python2.7 function(s) to parse a string from a colon
> character ":"
>
> Sounds simple enough.
>
> For example, a string like "123456:789". I just need the "123456"
> substring.(left of the :)
"123456:789".split(
print uses the new syntax e.g. print("example") in 3.r
Sent from my BlackBerry® wireless device
-Original Message-
From: Deborah Piotrowski
Date: Fri, 15 Feb 2013 16:08:17
To: Bob Brusa
Cc: Joel Goldstick;
python-list@python.org
Subject: Re: New User-Need-Help
print "Game Over"
input("
On 2013-02-15 18:04, Steve Goodwin wrote:
> Hi,
>
> I am looking for the python2.7 function(s) to parse a string from a
> colon character ":"
>
> Sounds simple enough.
>
> For example, a string like "123456:789". I just need the "123456"
> substring.(left of the :)
>
> I have looked at regula
print "Game Over"
input("\n\nPress the Enter Key to Exit")
Syntax Error: Invalid Syntax
On Fri, Feb 15, 2013 at 3:48 PM, Bob Brusa wrote:
>
>
> Am Freitag, 15. Februar 2013 schrieb Joel Goldstick :
>
>
>>
>>
>> On Fri, Feb 15, 2013 at 4:45 PM, Deborah Piotrowski <
>> spiceninj...@gmail.com> wrot
In article , Terry Reedy
wrote:
> On 2/15/2013 5:53 AM, Robin Becker wrote:
> > On
> > all the other machines I have access to I'm seeing something similar to
> > this
>
> >> Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit
> >> (Intel)] on win32
>
> Notice the date again -- the
Hi,
I am looking for the python2.7 function(s) to parse a string from a colon
character ":"
Sounds simple enough.
For example, a string like "123456:789". I just need the "123456"
substring.(left of the :)
I have looked at regular expressions and string functions, so far no luck.
Custom fun
In Deborah Piotrowski
writes:
> This is the code:which is extremely simple!
> print"Game Over" raw_input("\n\nPress Enter Key to exit")
> That's it.
Does your code really have everything on one line, as you posted? If so,
that's the problem. It should be broken into two separate lines:
Am Freitag, 15. Februar 2013 schrieb Joel Goldstick :
>
>
>
> On Fri, Feb 15, 2013 at 4:45 PM, Deborah Piotrowski <
> spiceninj...@gmail.com 'spiceninj...@gmail.com');>> wrote:
>
>> Hi,
>>
>>
>> I am very new to Python, I am using the e-book "Python Programming for
>> the Absolute Beginner" and a
On 2/15/2013 5:53 AM, Robin Becker wrote:
A colleague reports that this python from a recent Ubuntu x86_x64
Python 2.7.3 (default, Sep 26 2012, 21:51:14)
Look at the date. This is Ubuntu's updated 2.7.3. It really should be
'2.7.3.1' or '2.7.3b' or '2.7.3-ubuntu' or '2.7.3 -- 2012 Sep 6 updat
On Fri, Feb 15, 2013 at 4:45 PM, Deborah Piotrowski
wrote:
> Hi,
>
>
> I am very new to Python, I am using the e-book "Python Programming for the
> Absolute Beginner" and am starting with a simple "Game Over" Program. This
> is the code:which is extremely simple!
> print"Game Over" raw_input("\n\
Hi,
I am very new to Python, I am using the e-book "Python Programming for the
Absolute Beginner" and am starting with a simple "Game Over" Program. This
is the code:which is extremely simple!
print"Game Over" raw_input("\n\nPress Enter Key to exit")
That's it. It is supposed to bring up a windo
On 08.02.13 03:08, Ian Kelly wrote:
I think what we're seeing here is that
the time needed to look up the compiled regular expression in the
cache is a significant fraction of the time needed to actually execute
it.
There is a bug issue for this. See http://bugs.python.org/issue16389 .
--
http
Joel Goldstick wrote:
>
> This is not a string, it is scientific notion for 1.53... times 10 to the
> -15th power. Because of rounding errors caused by doing floating point
> math on in binary, you get a very small number instead of 0.
>
I was just doing some testing and it was not equating to
Bob Brusa wrote:
> Kene,
> are you sure your length is 120? It seems to be 25. I did these
> calculations with length = 25 and then your numbers make perfect sense.
> Bob
Thanks. You are right I was actually using 25
--
Kene
::
kemen...@gmail.com
--
http://mail.python.org/mai
On Tue, Feb 12, 2013 at 10:48 AM, Rick Johnson
wrote:
> On Monday, February 11, 2013 11:55:19 PM UTC-6, Chris Angelico wrote:
>> On Tue, Feb 12, 2013 at 12:06 PM, 8 Dihedral wrote:
>> > A permanently mutated list is a tuple of constant objects.
>>
>> I nominate this line as "bemusing head-scra
Am 15.02.2013 20:39, schrieb Kene Meniru:
I am trying to calculate the coordinates at the end of a line. The length
and angle of the line are given and I am using the following formula:
x = (math.sin(math.radians(angle)) * length)
y = (math.cos(math.radians(angle)) * length)
The following are s
On Fri, Feb 15, 2013 at 2:39 PM, Kene Meniru wrote:
> I am trying to calculate the coordinates at the end of a line. The length
> and angle of the line are given and I am using the following formula:
>
> x = (math.sin(math.radians(angle)) * length)
> y = (math.cos(math.radians(angle)) * length)
>
On 02/15/2013 11:39 AM, Kene Meniru wrote:
I am trying to calculate the coordinates at the end of a line. The length
and angle of the line are given and I am using the following formula:
x = (math.sin(math.radians(angle)) * length)
y = (math.cos(math.radians(angle)) * length)
The following are
Am 15.02.2013 19:06, schrieb Dave Angel:
On 02/15/2013 12:50 PM, Bob Brusa wrote:
Am 15.02.2013 18:06, schrieb Thomas Rachel:
Am 15.02.2013 17:59 schrieb Bob Brusa:
Hi,
I use a module downloaded from the net. Now I want to build my own
class, based on the class SerialInstrument offered in this
I am trying to calculate the coordinates at the end of a line. The length
and angle of the line are given and I am using the following formula:
x = (math.sin(math.radians(angle)) * length)
y = (math.cos(math.radians(angle)) * length)
The following are sample answers in the format (x, y) to the g
On Thursday, February 14, 2013 5:19:51 PM UTC-7, eli m wrote:
> On Thursday, February 14, 2013 4:09:37 PM UTC-8, Oscar Benjamin wrote:
>
> > On 14 February 2013 23:34, eli m wrote:
>
> >
>
> > > I want to make a guess the number game (Which i have), but i want to make
> > > the computer play
On 10.02.13 13:37, Steven D'Aprano wrote:
> Unfortunately, Python has a minor design flaw. One of the most common
> use-cases for sets is for membership testing of literal sets:
>
> def example(arg):
> if arg in {'spam', 'ham', 'eggs', 'cheese'}:
> ...
>
> Unfortunately, set literal
I am using using ubuntu 12.10 i am trying to run a python block, namely OP25,
in GNU Radio Companion v3.6.3-35-g4435082f, which uses python version 2.7.3 for
some reason although python3.2 is in the lib folder. I run the following trace
command in terminal:
~$ python -m trace --count -C . op25_
On 14.02.13 08:39, Steven D'Aprano wrote:
Here is one example of using raise to re-raise an exception you have just
caught:
import errno
paths = ["here", "there", "somewhere else"]
for location in paths:
filename = os.path.join(location, "prefs.ini")
try:
f = open(filename)
On 02/15/2013 01:28 PM, Bob Brusa wrote:
to make it more clear, I attach a cut-down version of my program. It
includes comments to explain in more detail what my problem is.
Bob
Good job cutting down the sample. Naturally, it'd have been smart to
tell us you don't get the same trace
Am 15.02.2013 19:03, schrieb Dave Angel:
On 02/15/2013 12:23 PM, Bob Brusa wrote:
Am 15.02.2013 18:11, schrieb Dave Angel:
On 02/15/2013 11:59 AM, Bob Brusa wrote:
Hi,
I use a module downloaded from the net. Now I want to build my own
class, based
on the class SerialInstrument offered in this
On 02/15/2013 12:50 PM, Bob Brusa wrote:
Am 15.02.2013 18:06, schrieb Thomas Rachel:
Am 15.02.2013 17:59 schrieb Bob Brusa:
Hi,
I use a module downloaded from the net. Now I want to build my own
class, based on the class SerialInstrument offered in this module - and
in my class I would like to
On 02/15/2013 12:23 PM, Bob Brusa wrote:
Am 15.02.2013 18:11, schrieb Dave Angel:
On 02/15/2013 11:59 AM, Bob Brusa wrote:
Hi,
I use a module downloaded from the net. Now I want to build my own
class, based
on the class SerialInstrument offered in this module - and in my class
I would
like to i
"Only in Python 3."
Use best practices always, not just when you have to.
*Matt Jones*
On Fri, Feb 15, 2013 at 11:52 AM, MRAB wrote:
> On 2013-02-15 16:17, Neil Cerutti wrote:
>
>> On 2013-02-15, Oscar Benjamin wrote:
>>
>>> if score > best_score or best_score is None:
>>>
>>
>> You need the
On 2013-02-15 16:17, Neil Cerutti wrote:
On 2013-02-15, Oscar Benjamin wrote:
if score > best_score or best_score is None:
You need the None check first to avoid an exception from the
comparison.
Only in Python 3.
if best_score is None or score > best_score:
--
http://mail.python.org/m
Am 15.02.2013 18:06, schrieb Thomas Rachel:
Am 15.02.2013 17:59 schrieb Bob Brusa:
Hi,
I use a module downloaded from the net. Now I want to build my own
class, based on the class SerialInstrument offered in this module - and
in my class I would like to initialize a few things, using e. g. the
m
oh and the version of python is 2.7.3
THanks in advance!
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, Feb 16, 2013 at 2:36 AM, Tim Golden wrote:
How true. This last time, my team split into two: one half
to handle the display, the other working on the algorithm. We
ended up having to draw a really simple diagram on the back of
an envelope with the x,y pairs written out and pass it back
a
here is the code in "hier_block2.py":
#
# Copyright 2006,2007 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundatio
Am 15.02.2013 18:11, schrieb Dave Angel:
On 02/15/2013 11:59 AM, Bob Brusa wrote:
Hi,
I use a module downloaded from the net. Now I want to build my own
class, based
on the class SerialInstrument offered in this module - and in my class
I would
like to initialize a few things, using e. g. the me
Am 15.02.2013 17:59 schrieb Bob Brusa:
Hi,
I use a module downloaded from the net. Now I want to build my own
class, based on the class SerialInstrument offered in this module - and
in my class I would like to initialize a few things, using e. g. the
method clear() offered by SerialInstrument. He
On 02/15/2013 11:59 AM, Bob Brusa wrote:
Hi,
I use a module downloaded from the net. Now I want to build my own class, based
on the class SerialInstrument offered in this module - and in my class I would
like to initialize a few things, using e. g. the method clear() offered by
SerialInstrument.
On Feb 15, 2013 8:13 AM, "Jason Swails" wrote:
> I'm not offering much help here, more like wondering aloud. Doesn't
Google (not to mention other software companies) have an interest staked in
binding the Python name with the Python language? I can't imagine
python.co.uk staging a successful ca
Hi,
I use a module downloaded from the net. Now I want to build my own
class, based on the class SerialInstrument offered in this module -
and in my class I would like to initialize a few things, using e. g.
the method clear() offered by SerialInstrument. Hence I type:
Tim Golden writes:
> On 15/02/2013 13:11, Oscar Benjamin wrote:
> > On 15 February 2013 11:36, Tim Golden wrote:
> >> And the "how shall we represent the board?" question is pretty
> >> much the first thing any team asks themselves. And you always get
> >> someone in favour of lists of lists, someo
On 2013-02-15, Oscar Benjamin wrote:
> if score > best_score or best_score is None:
You need the None check first to avoid an exception from the
comparison.
if best_score is None or score > best_score:
--
Neil Cerutti
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, Feb 16, 2013 at 2:36 AM, Tim Golden wrote:
> How true. This last time, my team split into two: one half
> to handle the display, the other working on the algorithm. We
> ended up having to draw a really simple diagram on the back of
> an envelope with the x,y pairs written out and pass it
On 15/02/2013 13:11, Oscar Benjamin wrote:
> On 15 February 2013 11:36, Tim Golden wrote:
>> And the "how shall we represent the board?" question is pretty
>> much the first thing any team asks themselves. And you always
>> get someone in favour of lists of lists, someone for one long
>> list,
>
Robin Becker wrote:
> A colleague reports that this python from a recent Ubuntu x86_x64
>
> Python 2.7.3 (default, Sep 26 2012, 21:51:14)
>
> contains a fix of this bug
>
> http://bugs.python.org/issue15212
>
> however, all of my other Python 2.7.3s seem to lack this 'fix'.
[...]
> Can someone
On 15/02/2013 14:04, Steven D'Aprano wrote:
Giles Coochey wrote:
[...]
If you have documentation of European user groups, trade associations,
books, conferences, scans of job advertisements for Python programmers,
software that uses some variation of "Python" in the name, etc. your
evidence wil
Giles Coochey wrote:
[...]
>> If you have documentation of European user groups, trade associations,
>> books, conferences, scans of job advertisements for Python programmers,
>> software that uses some variation of "Python" in the name, etc. your
>> evidence will be helpful in defeating this atte
On 15 February 2013 11:36, Tim Golden wrote:
> On 15/02/2013 11:22, Oscar Benjamin wrote:
>> Why not make board a list of lists. Then you can do:
>>
>> for row in board:
>> for piece in row:
>>
>> rather than using range().
>>
>> Or perhaps you could have a dict that maps position tuples to pi
Giles Coochey, 15.02.2013 12:24:
> On 14/02/2013 21:52, Steven D'Aprano wrote:
>> Hello all,
>>
>> The Python Software Foundation is the organisation which protects and
>> manages the "boring" bits of keeping a big open source project alive: the
>> legal and contractual parts, funding for projects,
On 14/02/2013 21:52, Steven D'Aprano wrote:
Hello all,
The Python Software Foundation is the organisation which protects and
manages the "boring" bits of keeping a big open source project alive: the
legal and contractual parts, funding for projects, trademarks and
copyrights.
If you are based
On 15/02/2013 11:22, Oscar Benjamin wrote:
> Why not make board a list of lists. Then you can do:
>
> for row in board:
> for piece in row:
>
> rather than using range().
>
> Or perhaps you could have a dict that maps position tuples to pieces,
> e.g.: {(1, 2): 'k', ...}
I'm laughing sligh
On 13 February 2013 23:25, Chris Hinsley wrote:
> New to Python, which I really like BTW.
>
> First serious prog. Hope you like it. I know it needs a 'can't move if your
> King would be put into check' test. But the weighted value of the King piece
> does a surprising emergent job.
>
> #!/usr/bin/
A colleague reports that this python from a recent Ubuntu x86_x64
Python 2.7.3 (default, Sep 26 2012, 21:51:14)
contains a fix of this bug
http://bugs.python.org/issue15212
however, all of my other Python 2.7.3s seem to lack this 'fix'.
I would have thought that for a fix to appear in python
On Tuesday, February 5, 2013 10:09:28 AM UTC+2, foobar...@gmail.com wrote:
> Can someone help answer this?
>
> http://stackoverflow.com/questions/14698020/java-nio-server-and-python-asyncore-client
>
>
>
> Blocking python client works, asyncore doesn't work.
>
There was return missing in writ
Am 15.02.2013 08:51, schrieb Rick Johnson:
"How could a line in the "try" block ever be considered offensive?"
My suggestion of "offensive" does not imply ignorance on /my/ part[...]
Well, it seems to imply that you are not aware of the subtle difference
between "offending" and "offensive".
Ami Tavory wrote:
> From: Peter Otten <__pete...@web.de>
> To: python-list@python.org
> Cc:
> Date: Thu, 14 Feb 2013 09:00:58 +0100
> Subject: Re: "Exception ... in ignored" Messages
How did the subject get into the message body?
> Ami Tavory wrote:
>
>> Hi,
>>
>> Running the unit tests f
78 matches
Mail list logo