Re: Updated blog post on how to use super()

2011-06-01 Thread Brian J Mingus
On Tue, May 31, 2011 at 8:44 PM, Raymond Hettinger wrote: > I've tightened the wording a bit, made much better use of keyword > arguments instead of kwds.pop(arg), and added a section on defensive > programming (protecting a subclass from inadvertently missing an MRO > requirement). Also, there

Re: is list comprehension necessary?

2010-11-21 Thread Brian J Mingus
On Tue, Oct 26, 2010 at 3:31 AM, Xah Lee wrote: > ... No, list comprehensions are not "nececessary", just like the plethora of expletives in the majority of your OPs on this list are not necessary. The question is are they useful, and the answer is the case of list comprehensions is obviously y

Re: why is this group being spammed?

2010-07-24 Thread Brian J Mingus
On Sat, Jul 17, 2010 at 11:01 PM, be.krul wrote: > why is this group being spammed? > -- > http://mail.python.org/mailman/listinfo/python-list > Here's a few of theories: 1) This isn't a strong enough community to warrant a group of people who moderate the list and make sure spam doesn't come t

Re: I strongly dislike Python 3

2010-06-26 Thread Brian J Mingus
On Sat, Jun 26, 2010 at 10:06 AM, Christian Heimes wrote: > Am 26.06.2010 17:59, schrieb Stefan Reich: > > The main problem is that Python 3 is incompatible with almost all > > scripts written for Python 2 (if they use print). And it gets worse: > > Python 3 scripts are incompatible with Python 2

Re: "EURO GIRLS" "MISS EUROPE" "MISS FRENCH" "FRENCH" "PRETTY GIRLS" "SEXY FRENCH GIRLS" on www.sexyandpretty-girls.blogspot.com "SEXY RUSSIAN GIRLS" "SEXY GREEK GIRLS" "SEXY DUTCH GIRLS" "SEXY UK G

2010-03-21 Thread Brian J Mingus
On Sun, Mar 21, 2010 at 10:55 AM, Zooko O'Whielacronx wrote: > On Sat, Mar 20, 2010 at 1:27 PM, Brian J Mingus > wrote: > > Moderating this stuff requires moderating all messages. > > Not quite. GNU Mailman comes with nice features to ease this task. You > can configu

Re: "EURO GIRLS" "MISS EUROPE" "MISS FRENCH" "FRENCH" "PRETTY GIRLS" "SEXY FRENCH GIRLS" on www.sexyandpretty-girls.blogspot.com "SEXY RUSSIAN GIRLS" "SEXY GREEK GIRLS" "SEXY DUTCH GIRLS" "SEXY UK G

2010-03-20 Thread Brian J Mingus
Moderating this stuff requires moderating all messages. It would take a team of volunteers. On Sat, Mar 20, 2010 at 12:55 PM, alex goretoy wrote: > what do i do to remove this crap? how do i moderate it? > > why not gpg sign messages on python-list that way you know your authorized > to post and

Re: "EURO GIRLS" "MISS EUROPE" "MISS FRENCH" "FRENCH" "PRETTY GIRLS" "SEXY FRENCH GIRLS" on www.sexyandpretty-girls.blogspot.com "SEXY RUSSIAN GIRLS" "SEXY GREEK GIRLS" "SEXY DUTCH GIRLS" "SEXY UK G

2010-03-19 Thread Brian J Mingus
On Fri, Mar 19, 2010 at 10:18 PM, Naeem wrote: > "EURO GIRLS" "MISS EUROPE" "MISS FRENCH" "FRENCH" "PRETTY GIRLS" "SEXY > FRENCH GIRLS" on www.sexyandpretty-girls.blogspot.com "SEXY > RUSSIAN GIRLS" "SEXY GREEK GIRLS" "SEXY DUTCH GIRLS" "SEXY UK GIRLS" > "SEXY HOLLYWOOD GIRLS" "SEXY BOLLYWO

Re: Hacker News, Xahlee.Org, and What is Politics?

2010-03-15 Thread Brian J Mingus
On Mon, Mar 15, 2010 at 1:16 AM, Xah Lee wrote: > A essay related to the recent discussion of banning, and lisp > associated group at ycombinator.com . Is there some Python related issue I might help you out with? Or perhaps you wish to provide Python assistance to someone on this list. Or perh

Re: BeautifulSoup

2010-01-15 Thread Brian J Mingus
On Wed, Jan 13, 2010 at 5:46 AM, yamamoto wrote: > Hi, > I am new to Python. I'd like to extract "a" tag from a website by > using "beautifulsoup" module. > but it doesnt work! > > //sample.py > > from BeautifulSoup import BeautifulSoup as bs > import urllib > url="http://www.d-addicts.com/forum/t

Re: Do I have to use threads?

2010-01-06 Thread Brian J Mingus
On Wed, Jan 6, 2010 at 6:24 AM, Philip Semanchuk wrote: > > On Jan 6, 2010, at 12:45 AM, Brian J Mingus wrote: > > On Tue, Jan 5, 2010 at 9:36 PM, Philip Semanchuk > >wrote: >> >> >>> On Jan 5, 2010, at 11:26 PM, aditya shukla wrote: >>> >

Re: Do I have to use threads?

2010-01-05 Thread Brian J Mingus
On Tue, Jan 5, 2010 at 9:36 PM, Philip Semanchuk wrote: > > On Jan 5, 2010, at 11:26 PM, aditya shukla wrote: > > Hello people, >> >> I have 5 directories corresponding 5 different urls .I want to download >> images from those urls and place them in the respective directories.I have >> to extrac

Re: shouldn't list comprehension be faster than for loops?

2009-12-18 Thread Brian J Mingus
On Fri, Dec 18, 2009 at 11:55 AM, sturlamolden wrote: > On 17 Des, 18:37, Carlos Grohmann wrote: > > > Tenting the time spent by each approach (using time.clock()), with a > > file with about 100,000 entries, I get 0.03s for the loop and 0.05s > > for the listcomp. > > > > thoughts? > > Let me as

Re: Which graph library is best suited for large graphs?

2009-12-11 Thread Brian J Mingus
On Fri, Dec 11, 2009 at 3:12 AM, Wolodja Wentland < wentl...@cl.uni-heidelberg.de> wrote: > Hi all, > > I am writing a library for accessing Wikipedia data and include a module > that generates graphs from the Link structure between articles and other > pages (like categories). > > These graphs co

Re: semantics of ** (unexpected/inconsistent?)

2009-11-30 Thread Brian J Mingus
On Sun, Nov 29, 2009 at 5:58 PM, Esmail wrote: > Brian J Mingus wrote: > >> >> >> >> I think you answered your own question. 3**2 comes first in the order of >> operations, followed by the negation. >> > > No, that's not the problem, I'm

Re: semantics of ** (unexpected/inconsistent?)

2009-11-29 Thread Brian J Mingus
On Sun, Nov 29, 2009 at 5:39 PM, Esmail wrote: > Ok, this is somewhat unexpected: > > Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) > [GCC 4.3.3] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > > > >>> -3**2 > -9 > > >>> x = -3 > > >>> x**2 > 9 > >>> >

Re: Beautifulsoup code that is not running

2009-11-17 Thread Brian J Mingus
On Tue, Nov 17, 2009 at 3:38 PM, Zeynel wrote: > Hello, > > Please help with this code suggested in the beautifulsoup group > > http://groups.google.com/group/beautifulsoup/browse_frm/thread/d288555c6992ceaa > > >>> from BeautifulSoup import BeautifulSoup > > >>> soup = BeautifulSoup (file("test.

Re: The ol' [[]] * 500 bug...

2009-11-14 Thread Brian J Mingus
On Sat, Nov 14, 2009 at 2:50 AM, Vlastimil Brom wrote: > 2009/11/14 Brian J Mingus : > > > > > > On Sat, Nov 14, 2009 at 1:50 AM, Paul Rubin <http://phr.cx > @nospam.invalid> > > wrote: > >> > >> kj writes: > >> > lol = [

Re: The ol' [[]] * 500 bug...

2009-11-14 Thread Brian J Mingus
On Sat, Nov 14, 2009 at 1:50 AM, Paul Rubin wrote: > kj writes: > > lol = [None] * 500 > > for i in xrange(len(lol)): > > lol[i] = [] > > lol = map(list, [()] * 500) Could someone explain what the deal is with this thread? Thanks. [[]]*500 -- http://mai

Re: python simply not scaleable enough for google?

2009-11-13 Thread Brian J Mingus
On Fri, Nov 13, 2009 at 12:19 AM, Steven D'Aprano < st...@remove-this-cybersource.com.au> wrote: > On Thu, 12 Nov 2009 22:20:11 -0800, Vincent Manis wrote: > > > When I was approximately 5, everybody knew that higher level languages > were too slow for high-speed numeric computation (I actually di

Re: Tkinter callback arguments

2009-11-02 Thread Brian J Mingus
On Mon, Nov 2, 2009 at 2:26 AM, Peter Otten <__pete...@web.de> wrote: > Alf P. Steinbach wrote: > > >> for x in range(0,3): > >> Button(.., command=lambda x=x: function(x)) > > > > An alternative reusable alternative is to create a button-with-id class. > > > > This is my very firs

Re: a=[1,2,3,4].reverse() - why "a" is None?

2009-10-12 Thread Brian J Mingus
Help on built-in function reverse: reverse(...) L.reverse() -- reverse *IN PLACE* On Mon, Oct 12, 2009 at 1:22 AM, Nadav Chernin wrote: > > > -- > http://mail.python.org/mailman/listinfo/python-list > > -- http://mail.python.org/mailman/listinfo/python-list

Re: Neural networks in python

2009-10-07 Thread Brian J Mingus
Machine Learning: An Algorithmic Perspective http://www.crcpress.com/product/isbn/9781420067187 Associated python code: http://seat.massey.ac.nz/personal/s.r.marsland/MLBook.html On Wed, Oct 7, 2009 at 11:53 PM, ruchir wrote: > I want to design and train a neural network in python. Can anyone >