Python trademark - A request for civility

2013-02-15 Thread Steven D'Aprano
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

Re: The python computer language

2013-02-15 Thread Dave Angel
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

Re: Exception running GNU module "op25_grc.py" : AttributeError: 'gr_hier_block2_sptr' object has no attribute 'set_callback'

2013-02-15 Thread Dave Angel
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

Re: Python trademark under attack -- the PSF needs your help

2013-02-15 Thread llanitedave
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

Re: python math problem

2013-02-15 Thread Steven D'Aprano
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

Re: Small program ideas

2013-02-15 Thread Mitya Sirenef
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

Re: Python trademark under attack -- the PSF needs your help

2013-02-15 Thread Quint Rankid
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

Re: Small program ideas

2013-02-15 Thread eli m
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

Re: Python trademark under attack -- the PSF needs your help

2013-02-15 Thread Steven D'Aprano
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

Re: Small program ideas

2013-02-15 Thread Mitya Sirenef
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

Small program ideas

2013-02-15 Thread eli m
Any small program ideas? I would prefer to stick to command line ones. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python-list Digest, Vol 113, Issue 111

2013-02-15 Thread Claira
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

Re: python math problem

2013-02-15 Thread John Machin
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

Help with creating django-admin.py file

2013-02-15 Thread Yoni201
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.

Re: multiple 2.7.3 versions?

2013-02-15 Thread Terry Reedy
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

Re: Implicit conversion to boolean in if and while statements

2013-02-15 Thread Chris Angelico
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

Re: New User-Need-Help

2013-02-15 Thread Terry Reedy
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")

Re: New User-Need-Help

2013-02-15 Thread Deborah Piotrowski
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

Re: Howto parse a string using a char in python

2013-02-15 Thread Gary Chambers
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

Re: New User-Need-Help

2013-02-15 Thread Joel Goldstick
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

Re: New User-Need-Help

2013-02-15 Thread John Gordon
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

Re: Howto parse a string using a char in python

2013-02-15 Thread Mark Lawrence
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

Re: Howto parse a string using a char in python

2013-02-15 Thread John Gordon
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 :

Re: Howto parse a string using a char in python

2013-02-15 Thread David Robinow
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(

Re: New User-Need-Help

2013-02-15 Thread Bob Brusa
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("

Re: Howto parse a string using a char in python

2013-02-15 Thread Tim Chase
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

Re: New User-Need-Help

2013-02-15 Thread Deborah Piotrowski
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

Re: multiple 2.7.3 versions?

2013-02-15 Thread Ned Deily
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

Howto parse a string using a char in python

2013-02-15 Thread Steve Goodwin
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

Re: New User-Need-Help

2013-02-15 Thread John Gordon
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:

Re: New User-Need-Help

2013-02-15 Thread Bob Brusa
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

Re: multiple 2.7.3 versions?

2013-02-15 Thread Terry Reedy
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

Re: New User-Need-Help

2013-02-15 Thread Joel Goldstick
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\

New User-Need-Help

2013-02-15 Thread Deborah Piotrowski
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

Re: Curious to see alternate approach on a search/replace via regex

2013-02-15 Thread Serhiy Storchaka
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

Re: python math problem

2013-02-15 Thread Kene Meniru
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

Re: python math problem

2013-02-15 Thread Kene Meniru
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

Re: Implicit conversion to boolean in if and while statements

2013-02-15 Thread Ian Kelly
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

Re: python math problem

2013-02-15 Thread Bob Brusa
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

Re: python math problem

2013-02-15 Thread Joel Goldstick
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) >

Re: python math problem

2013-02-15 Thread Gary Herron
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

Re: inheritance and how to use it

2013-02-15 Thread Bob Brusa
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

python math problem

2013-02-15 Thread 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 sample answers in the format (x, y) to the g

Re: How would you do this?

2013-02-15 Thread vduncan80
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

Re: Implicit conversion to boolean in if and while statements

2013-02-15 Thread Serhiy Storchaka
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

Exception running GNU module "op25_grc.py" : AttributeError: 'gr_hier_block2_sptr' object has no attribute 'set_callback'

2013-02-15 Thread matt . doolittle33
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_

Re: Awsome Python - chained exceptions

2013-02-15 Thread Serhiy Storchaka
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)

Re: inheritance and how to use it

2013-02-15 Thread Dave Angel
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

Re: inheritance and how to use it

2013-02-15 Thread Bob Brusa
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

Re: inheritance and how to use it

2013-02-15 Thread 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 module - and in my class I would like to

Re: inheritance and how to use it

2013-02-15 Thread 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 module - and in my class I would like to i

Re: First attempt at a Python prog (Chess)

2013-02-15 Thread Matt Jones
"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

Re: First attempt at a Python prog (Chess)

2013-02-15 Thread MRAB
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

Re: inheritance and how to use it

2013-02-15 Thread Bob Brusa
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

Re:

2013-02-15 Thread matt . doolittle33
oh and the version of python is 2.7.3 THanks in advance! -- http://mail.python.org/mailman/listinfo/python-list

Re: First attempt at a Python prog (Chess)

2013-02-15 Thread Tim Golden
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

Re:

2013-02-15 Thread matt . doolittle33
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

Re: inheritance and how to use it

2013-02-15 Thread Bob Brusa
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

Re: inheritance and how to use it

2013-02-15 Thread 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 method clear() offered by SerialInstrument. He

Re: inheritance and how to use it

2013-02-15 Thread 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 method clear() offered by SerialInstrument.

Re: Python trademark under attack -- the PSF needs your help

2013-02-15 Thread Chris Rebert
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

inheritance and how to use it

2013-02-15 Thread 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. Hence I type:

Re: First attempt at a Python prog (Chess)

2013-02-15 Thread Jussi Piitulainen
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

Re: First attempt at a Python prog (Chess)

2013-02-15 Thread Neil Cerutti
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

Re: First attempt at a Python prog (Chess)

2013-02-15 Thread Chris Angelico
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

Re: First attempt at a Python prog (Chess)

2013-02-15 Thread Tim Golden
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, >

Re: multiple 2.7.3 versions?

2013-02-15 Thread Steven D'Aprano
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

Re: Python trademark under attack -- the PSF needs your help

2013-02-15 Thread Giles Coochey
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

Re: Python trademark under attack -- the PSF needs your help

2013-02-15 Thread Steven D'Aprano
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

Re: First attempt at a Python prog (Chess)

2013-02-15 Thread Oscar Benjamin
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

Re: Python trademark under attack -- the PSF needs your help

2013-02-15 Thread Stefan Behnel
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,

Re: Python trademark under attack -- the PSF needs your help

2013-02-15 Thread Giles Coochey
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

Re: First attempt at a Python prog (Chess)

2013-02-15 Thread Tim Golden
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

Re: First attempt at a Python prog (Chess)

2013-02-15 Thread Oscar Benjamin
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/

multiple 2.7.3 versions?

2013-02-15 Thread Robin Becker
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

Re: Java NIO server and Python asyncore client

2013-02-15 Thread Petri Heinilä
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

Re: Awsome Python - chained exceptions

2013-02-15 Thread Ulrich Eckhardt
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".

Re: "Exception ... in ignored" Messages

2013-02-15 Thread Peter Otten
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