What the \xc2\xa0 ?!!

2010-09-07 Thread Brian D
In an HTML page that I'm scraping using urllib2, a \xc2\xa0 bytestring appears. The page's charset = utf-8, and the Chrome browser I'm using displays the characters as a space. The page requires authentication: https://www.nolaready.info/myalertlog.php When I try to concatenate strings containi

Re: Porting PEP 3148 to 2.x series

2010-09-17 Thread Brian Quinlan
48 to Python 2.x after its running happily in Python 3.2. But there is no chance that it will be included with the standard library in the 2.x series. Cheers, Brian -- http://mail.python.org/mailman/listinfo/python-list

Re: Down with tinyurl! (was Re: importing excel data into a python matrix?)

2010-09-20 Thread Brian Victor
URL if you're concerned about line-breaking, but feels like a needless obstacle when presented alone. And as a datapoint on the topic of archiving, I search usenet archives regularly when faced with a problem. -- Brian -- http://mail.python.org/mailman/listinfo/python-list

Re: develop for Windows on GNU/Linux, using Python

2010-09-21 Thread Brian Curtin
On Tue, Sep 21, 2010 at 03:36, Lawrence D'Oliveiro wrote: > In message , Kev > Dwyer > wrote: > > > To be confident that your code is good you need to test it on a Windows > > box (we all test, right?). > > Preferably more than one. Test with Seven as well as Vista (yes, there are > still some Vi

Re: upload file using post to https server

2010-09-24 Thread Brian Jones
s a basic threaded performance testing script that sends an image, and two other paramters, all in a POST request to a web server that opens multiple ports. If you don't need the threading, you should be able to rip the 'run()' method out of the class and just run it by itself (save an ed

Re: creating python daemon ?

2010-09-26 Thread Brian Jones
g the same in python would be way easier :) The code is here: http://linuxlaboratory.org/snippets/2/ And an old article from Linux.com which explains the syslog bits is here: http://www.linux.com/archive/feature/36631 I occasionally still hear from people that all of it still works. hth. brian O

Re: minimal D: need software testers

2010-09-28 Thread Brian Curtin
On Mon, Sep 27, 2010 at 10:07, Kruptein wrote: > Hey, > > I've released the second alpha for minimal-D a program I've written in > python which should make developing easier. > I need people to test the app on bugs and give ideas. > > It is written in python using the wxPython toolkit and is linu

Re: discussion

2010-10-01 Thread Brian Curtin
On Thu, Sep 30, 2010 at 21:12, Geo_subodh wrote: > please send me the simple python code that uses input number greater > than3 digits(>3 digits) and checks whether the number is palindrome > or not. $ cat homework.py raise NotImplementedError -- http://mail.python.org/mailman/listinfo/python

Re: open file on mac

2010-10-08 Thread Brian Jones
r, running open() on a file in the same directory reported by os.path.abspath(os.path.curdir) succeeds without issue. What you might consider is doing something like open(os.path.join(os.path.dirname(__file__), 'initfile.py') That will insure that it always tries to open the file th

unicode problem?

2010-10-09 Thread Brian Blais
codeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 0: ordinal not in range(128) am I doing something stupid here? of course, as a workaround, I can do: ''.join([c for c in s if ord(c)<128]) but I thought the encode call should work.

Re: [Python-Dev] PyArg_ParseTuple

2010-10-11 Thread Brian Curtin
On Mon, Oct 11, 2010 at 07:06, Ioan Ferencik wrote: > I would like to ask where can I find more detailed info on > PyArg_ParseTuple function. > > I find the doc limited on the matter. > Mainly I am curious why the function requires an address of a pointer. > > I have issues in the following case

Re: Question regarding python2.5 migration from windows xp to windows 7

2010-10-14 Thread Brian Curtin
On Thu, Oct 14, 2010 at 01:37, python_tsp wrote: > Hi, > > We have a Python based test framework which is being used in various > projects. > > Our current environment is > Python (ver 2.5.1) > wxPython (wxPython2.8-win32-ansi-2.8.6.0-py25) > pywin32-210.win32-py2.5 > vcredist_x86.exe > pyserial-

Re: PyCharm

2010-10-14 Thread Brian Jones
the entire rest of the application is dead, so you can't scroll or switch files in your code pane when a dialog comes up. So when you want to know why that extra file is in your commit, you'll have to cancel out or run the diff tool. Overall, though, this is the best IDE for Python I'v

python dpx module

2010-11-08 Thread Brian Krusic
Hi all, Kind of at a loss here. trying to debug some old code belonging to some one else and I keep seeing an error; import dpx no module named dpx Would any one happen to know how I can get a hold if this elusive dpx Python module? -- http://mail.python.org/mailman/listinfo/python-list

drawing with the mouse with turtle

2010-11-12 Thread Brian Blais
.x,event.y) turtle.reset() turtle.speed(0) c=turtle.getcanvas() c.bind("", gothere) turtle.pendown() but this seemed to draw in the wrong place (like the coordinates were wrong). Is there a good way to do this? thanks, bb -- Brian Blais bb

Re: drawing with the mouse with turtle

2010-11-12 Thread Brian Blais
On Nov 12, 2010, at 8:05 PM, Steven D'Aprano wrote: > On Fri, 12 Nov 2010 19:24:50 -0500, Brian Blais wrote: > >> I'd like to draw on a turtle canvas, but use the mouse to direct the >> turtle. I don't see a good way of getting the mouse coordinates and the

Re: drawing with the mouse with turtle

2010-11-13 Thread Brian Blais
On Nov 13, 2010, at 1:31 AM, Dennis Lee Bieber wrote: > On Fri, 12 Nov 2010 20:48:34 -0500, Brian Blais > declaimed the following in gmane.comp.python.general: > >> turtle.ondrag(turtle.goto) >> turtle.pendown() >> >> > I'm not familiar with th

Re: drawing with the mouse with turtle...solved?

2010-11-13 Thread Brian Blais
On Nov 12, 2010, at 8:48 PM, Brian Blais wrote: > > On Nov 12, 2010, at 8:05 PM, Steven D'Aprano wrote: > >> On Fri, 12 Nov 2010 19:24:50 -0500, Brian Blais wrote: >> >>> I'd like to draw on a turtle canvas, but use the mouse to direct the >>&g

Where is python and idle?

2017-07-21 Thread Brian Case
folders C:\Program Files and C:\Program Files (x86)? Regards, Brian Case -- https://mail.python.org/mailman/listinfo/python-list

Re: Where is python and idle?

2017-07-21 Thread Brian Case
Thank you, That is where it is. Would not have found it without your help. Now, to find IDLE. rgrds, Brian On 7/21/2017 10:19 AM, Nathan Ernst wrote: Check your user folder. For me, on my PC, python is installed at C:\Users\nernst\AppData\Local\Programs\Python Regards, Nate On Fri, Jul

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

2011-06-01 Thread Brian J Mingus
oints and convert them into a sentence or two. Overall, take everything up to the end of the last bullet point and convert it into a 2-3 sentence intro paragraph. -- Brian Mingus Graduate student Computational Cognitive Neuroscience Lab University of Colorado at Boulder -- http://mail.python.org/mailman/listinfo/python-list

Trouble Downloading Python and Numpy

2019-05-29 Thread Contreras, Brian J
am unable to open any python files or write code within the program. I was told by a colleague that I may need a python path environmental variable, but I have not found asite that provides this. If I could get some support with the download I would greatly appreciate it. Warm Regards, Brian

catch dbi.program-error ?

2005-11-17 Thread Brian Herbert Withun
I'm having difficulty catching dbi.program-error which occurs this way: import dbi, odbc [...] self.__cur.execute(sql) >>> dbi.program-error: [Sybase][ODBC Driver][Adaptive Server Anywhere]Table >>> 'depfile' not found in EXEC but try: self.__cur.execute(sql) except dbi.program-error,e:

Re: catch dbi.program-error ?

2005-11-17 Thread Brian Herbert Withun
try: self.__cur.execute(sql) except dbi.program-error,e: print " caught " raise should be changed to: try: self.__cur.execute(sql) except dbi.progError,e: print " caught " raise In my infinite googling I found some source code that showed the actual name of this exception clas

Re: Class Variable Inheritance

2004-12-08 Thread Brian \"bojo\" Jones
ap.get() print a1.map.get() print b1.map.get() print c1.map.get() print d1.map.get() Brian Jones wrote: I'm sure the solution may be obvious, but this problem is driving me mad. The following is my code: -- http://mail.python.org/mailman/listinfo/python-list

Re: recursive function return value problems

2005-12-28 Thread Brian L. Troutwine
"printing result: " > ... print result > ... return result > ... > >>>>reTest(False) You're both printing the result and returning it. The interpreter just happens to show both printed and returned variables. An example of a shown return variable: >

Re: Help me use my Dual Core CPU!

2006-09-12 Thread Brian L. Troutwine
John Henry wrote: > I don't know what CPython is but I have developed a Python application > under Windows that utilize the Dure Core CPU when it's present. It's the default python implementation, the one you find at python.org. It happens to be written in C. Other python implementations included

Delete items in nested dictionary based on value.

2006-09-13 Thread Brian L. Troutwine
I've got a problem that I can't seem to get my head around and hoped somebody might help me out a bit: I've got a dictionary, A, that is arbitarily large and may contains ints, None and more dictionaries which themselves may contain ints, None and more dictionaries. Each of the sub-dictionaries is

Re: Delete items in nested dictionary based on value.

2006-09-14 Thread Brian L. Troutwine
ight in that if I did indeed need the original dictionary unchanged it would be much, much easier to modify the pretty-printer. Dennis Lee Bieber wrote: > On 13 Sep 2006 16:08:37 -0700, "Brian L. Troutwine" > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: >

Re: Delete items in nested dictionary based on value.

2006-09-14 Thread Brian L. Troutwine
This is a general reply to all. Thanks for all the suggestions. I hadn't really thought about filtering empty dictionaries because the data I'm processing won't have them, but it does make for a much nicer, more general filter. I did end up using bearophileH's code, but that's mostly because he go

pprint: "...thank small children who sleep at night."

2006-09-19 Thread Brian L. Troutwine
The heading comment to pprint reads: # This is a simple little module I wrote to make life easier. I didn't # see anything quite like it in the library, though I may have overlooked # something. I wrote this when I was trying to read some heavily nested # tuples with fairly non-descriptive c

Comments appreciated on Erlang inspired Process class.

2007-06-01 Thread Brian L. Troutwine
Lately I've been tinkering around with Erlang and have begun to sorely want some of its features in Python, mostly the ease at which new processes can be forked off for computation. To that end I've coded up a class I call, boringly enough, Process. It takes a function, its args and keywords and

Re: Comments appreciated on Erlang inspired Process class.

2007-06-01 Thread Brian L. Troutwine
On Friday 01 June 2007 10:48:10 Paul Boddie wrote: > On 1 Jun, 19:34, "Brian L. Troutwine" <[EMAIL PROTECTED]> > > wrote: > > Lately I've been tinkering around with Erlang and have begun to sorely > > want some of its features in Python, mostly the e

Discovery of unpickleables in class heirarchies.

2007-06-22 Thread Brian L. Troutwine
I've a need to pickle arbitrary class hierarchies, which, luckily, can be made to conform to the pickle protocol. At the moment, however, I'm having a rather hard time discovering which classes in a heirarchy cannot be pickles. For instance, say class A has class B in it's __dict__ and let class B

socket.error: (9, 'Bad file descriptor') Python 2.5

2007-03-16 Thread Brian G. Merrell
as? I can post more code if necessary. Also, here are the versions I'm using: Python 2.5 (r25:51908, Jan 9 2007, 16:59:32) [GCC 4.1.2 20061115 (prerelease) (SUSE Linux)] on linux2 Python 2.4.4 (#1, Mar 15 2007, 23:58:13) [GCC 4.1.2 20061115 (prerelease) (SUSE Linux)] on linux2 Thanks, Brian -- http://mail.python.org/mailman/listinfo/python-list

pgen2 use questions.

2007-01-09 Thread Brian L. Troutwine
I happened to stumble upon Guido's announcement of his python2 to python3 refactoring tool earlier today (http://mail.python.org/pipermail/python-3000/2006-December/005102.html), and, after playing with it a bit, I have some use questions as I don't quite understand how the pattern matching languag

distutils data file difficulties

2007-01-18 Thread Brian L. Troutwine
I am new to the use of distutils and am having difficulty getting distutils recognize and install data files. Here are the relevant parts of my source directory: ExampleTree/ |-- __init__.py |-- data | |-- Example1.txt | |-- Example2.txt | `-- __init__.py |-- subPackage1 | |-- (...) `-- su

Re: python vs perl lines of code

2006-05-17 Thread brian d foy
In article <[EMAIL PROTECTED]>, Edward Elliott <[EMAIL PROTECTED]> wrote: > This is just anecdotal, but I still find it interesting. Take it for what > it's worth. I'm interested in hearing others' perspectives, just please > don't turn this into a pissing contest. > > I'm in the process of con

Re: Learning Python for no reason

2008-05-12 Thread Brian Vanderburg II
nguages. As for learning for the sake of it, if it's fun I don't see how it could hurt any. Brian Vanderburg II -- http://mail.python.org/mailman/listinfo/python-list

Zipping python modules

2008-06-16 Thread Brian Vanderburg II
lls under site-packages, but is there a way I could compress the top-level 'lib' directory into a python.zip instead so save some space, and do I need the 'test' directory (which is about 10MB itself)? Brian Vanderburg II -- http://mail.python.org/mailman/listinfo/python-list

Is there an official way to add methods to an instance?

2008-04-03 Thread Brian Vanderburg II
so that when 'a' is no longer valid, the object can die instead of continuing to exitng because wrapper.func_globals still contains a reference, but seems very hackish an maybe problematic. I'm wondering if there is a better way? Brian Vanderburg II -- http://mail.python.org/mailman/listinfo/python-list

Re: Java or C++?

2008-04-14 Thread Brian Vanderburg II
> My idea, if you really love Python and never think about erasing it > from your mind, go for C (not C++). A script language plus C can solve > every problem you need to solve. Also Python works pretty fine with C. I agree mostly with this one. Scripting is very nice when writing an applicatio

Is massive spam coming from me on python lists?

2008-04-20 Thread Brian Vanderburg II
eems to include my address (I'm not sure about mail headers so I don't know how From: is different than Sender:) Anyway, it seems to be a bunch of spam emails about cracks and stuff. Brian Vanderburg II -- http://mail.python.org/mailman/listinfo/python-list

Re: Best way to store config or preferences in a multi-platform way.

2008-05-01 Thread Brian Vanderburg II
r = os.path.expanduser("~") dir = os.path.join(dir, "Library", "Application Support") dir = os.path.join(dir, "vendor", "app") # Unix/Linux/all others else: dir = os.path.expanduser("~") dir = os.path.join(dir, ".app") # Some applications include vendor # dir = os.path.join(dir, ".vendor", "app") return dir Brian Vanderburg II -- http://mail.python.org/mailman/listinfo/python-list

Signals/Slots support in Python

2008-05-01 Thread Brian Vanderburg II
where when an object is gone, the slot is gone as well, the slot just holds a weak reference to the object. Brian Vanderburg II # Begin Signal import weakref import random class Signal: class Slot: def __init__(self, fn): self.__fn = fn def __call__(self, accum,

Re: #!/usr/bin/env python vs. #!/usr/bin/python

2008-05-08 Thread Brian Vanderburg II
This is sort of related, but I'm wondering what is different between "#!/usr/bin/env python" and "#!python". Wouldn't the second do the same thing, since an absolute path is not specified, find 'python' from the PATH environment, I don'

Re: #!/usr/bin/env python vs. #!/usr/bin/python

2008-05-08 Thread Brian Vanderburg II
D'Arcy J.M. Cain wrote: On Thu, 08 May 2008 07:31:17 -0400 Brian Vanderburg II <[EMAIL PROTECTED]> wrote: This is sort of related, but I'm wondering what is different between "#!/usr/bin/env python" and "#!python". Wouldn't the second do the s

grayscale pixel based graphics with pygame

2006-03-08 Thread Brian L. Troutwine
I've recently begun to teach myself pygame by making a bunch of small toys. My current toy is cellular automata displayer and I've gotten a bit stuck on the displaying bit. (If automata isn't the plural of automaton please forgive me.) The current automata are only binary and are calculated using 2

Re: grayscale pixel based graphics with pygame

2006-03-09 Thread Brian L. Troutwine
Thank you, but that wasn't quite what I was looking for. I do admit, however, that my post wasn't very clear (writting while exceptionally tired is not a very clever thing to do.) As Terry mentioned below this should be a question for the pygame mailing lists, so I'll take it there. Thanks again t

Re: grayscale pixel based graphics with pygame

2006-03-09 Thread Brian L. Troutwine
Geez, I apologize for my post being so vague. I was terribly tired when I wrote that, and should have known better than to post. I was not aware of the pygame mailing list. I will take this question there. -- http://mail.python.org/mailman/listinfo/python-list

Pylint-like source code reformatter

2006-03-30 Thread Brian L. Troutwine
I've recently developed a need for a python source code re-formatter, ideally conforming to the sort of style that pylint enforces. I don't know of any, and my googling wasn't very productive. Does anyone know of anything? Stand-alone or vim based both work for me, though stand-alone would be prefe

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: 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: 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: 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: 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: 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: 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: 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 >

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: 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: 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: 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: 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: 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: 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: "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: "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-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: 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: 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: 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

__Classes and type tests

2005-10-09 Thread Brian van den Broek
ut: From subclass SubOne From subclass SubTwo ) I *think* I understand how __ name mangling works when making references from one module to another. But I cannot work it out reference to the class itself from within a __ class. Should it matter: Python 2.4.2 on Win32. Thanks, Brian vdB -- http://mail.python.org/mailman/listinfo/python-list

Re: __Classes and type tests

2005-10-09 Thread Brian van den Broek
Fredrik Lundh said unto the world upon 2005-10-09 17:49: > Brian van den Broek wrote: > > >>But the academic issue "How/Can it be done?" still itches. > > > class __TwoUnderBase(object): > def __init__(self): > if se

Re: how to think like a computer scientist

2005-11-13 Thread Brian van den Broek
is to print it, then print factorial(3) might be what you want. But it is also possible you'd want to store the result for further computation, and would find the print an unwanted 'feature'. So, important_for_later = factorial(some_num) Best, Brian vdB -- http://mail.python.org/mailman/listinfo/python-list

Re: tutorial example?????

2005-11-13 Thread Brian van den Broek
the next print be on the same line as this one >>> Try putting a string behind the print statement that appears not to be doing anything, and you will see that it is. The first print is needed to clear out of the looped print's comma. If you don't like the repetition, you

Re: compare list

2005-11-14 Thread Brian van den Broek
continuity_comp([]) Traceback (most recent call last): File "", line 1, in -toplevel- multi_list_continuity_comp([]) File "", line 2, in multi_list_continuity_comp list1 = list_of_lists[0] IndexError: list index out of range >>> but this should get you started. Best, Brian vdB -- http://mail.python.org/mailman/listinfo/python-list

Re: compare list

2005-11-14 Thread Brian van den Broek
Ben Bush said unto the world upon 2005-11-14 23:20: > > On 11/14/05, Brian van den Broek <[EMAIL PROTECTED]> wrote: > >>Ben Bush said unto the world upon 2005-11-14 05:51: >> >>>I have four lists: >>>lisA=[1,2,3,4,5,6,9] >>>lisB=[1,6

Re: compare list

2005-11-15 Thread Brian van den Broek
in why; indeed, I keep >>overlooking them myself :-( >> >>Best, >> >>Brian vdB > > is it possible to modify the codes to compare the two lists with not > necessarily consecutive numbers? > For example, > lisA=[1,2,5,9] > lisB=[9,5,0] > compare A a

Re: compare list

2005-11-15 Thread Brian van den Broek
+ 1 in list2: >>return True >> >>In some detail: >>Does that clarify it? >> >>Finally, your response to Alex would have been much more useful if >>you'd quoted the error rather than just asserting that you got an >>error :-) >&

puzzled about class attribute resolution and mangling

2005-12-09 Thread Brian van den Broek
ind d.__v to first check if there is a Derived.__v and only then pass to Base.__v. Obviously, that's not what's happening. So, is this behaviour entirely by design and my surprise entirely the product of misconception or is there an element of side effect of the mangling mechanism at i

Re: Why tuples use parentheses ()'s instead of something else like <>'s?

2004-12-31 Thread Brian van den Broek
arge fields of blacktop. Luddites of the world unite! Happy New Year to all, Brian vdB -- http://mail.python.org/mailman/listinfo/python-list

Re: Cookbook 2nd ed Credits (was Re: The Industry choice)

2005-01-04 Thread Brian van den Broek
three separately submitted and accepted recipes, and here I'm counting only the first-listed-author per published-recipe...): 1: 25 u'Luther Blissett' ...but each still gets ONE free copy...!-) Alex Since I'm certain Luther won't be claiming his copy ;-) pe

Re: DOS problem (simple fix??)

2005-01-07 Thread Brian van den Broek
o do with sending command line parameters, but I'd muff it if I tried to say more ;-) HTH, Brian vdB -- http://mail.python.org/mailman/listinfo/python-list

What's so funny? WAS Re: rotor replacement

2005-01-22 Thread Brian van den Broek
it of code in the standard lib. I don't think the community gives you a name like F-bot, but that you know a wee bit about how Python is actually used, etc. Best, Brian vdB -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.1 - 2.4 differences

2005-01-24 Thread Brian van den Broek
me gentler books first. A quick examination of my local copy has a revision date of 2004-05-20. (There may be a more recent version at the site.) I can't seem to find an indication of Python version covered, but some of the interactive prompts have at least the Python 2.3.2 version

Re: how to write a tutorial

2005-01-26 Thread Brian van den Broek
them in the hopes that without the light of attention they will wither, meanwhile trusting the many extant reviews and google to do their work? (In case it isn't obvious: none of this is intended as a criticism of Terry or any of the others who have been 'fighting the good fight'; I

Re: naive doc question

2005-01-29 Thread Brian van den Broek
Try the Library Reference, section 2.3.8 Mapping Types. (Perhaps confusing to a newcomer, but Pythons dicts are, as yet, its only standard mapping types, mapping being the general comp sci concept.) Best, Brian vdB -- http://mail.python.org/mailman/listinfo/python-list

Re: Where are list methods documented?

2005-02-01 Thread Brian van den Broek
-funcs.html#l2h-15> <http://www.python.org/doc/2.4/lib/typesseq.html> <http://www.python.org/doc/2.4/lib/typesseq-mutable.html> Best, Brian vdB -- http://mail.python.org/mailman/listinfo/python-list

Re: returning True, False or None

2005-02-04 Thread Brian van den Broek
.>>> def alexs_funct(lst): .for val in lst: .if val is not None: .return val .return None >>> alexs_funct(test_case) False But, by the 'spec', it ought return True. Best, Brian vdB A mere newbie, quite pleased with himself for fin

Re: [noob] Error!

2005-02-04 Thread Brian van den Broek
base_price * tax / 100) you might try changing 100 to 100.0. Run these through the interpreter: 1 / 10 1 / 10.0 and consult the FAQ on www.python.org for an explanation of the difference. Best, Brian vdB -- http://mail.python.org/mailman/listinfo/python-list

broke IDLE while defining a key-binding scheme

2005-02-04 Thread Brian van den Broek
the keybinding and remove it, but came up empty. So, I'm at the end of what I can usefully do by way of diagnosis and repair. Suggestions? (Anything gratefully received, but I favour being taught to fish over being fed merely for today.) Thanks and best, Brian vdB -- http://mail.python.org/mailman/listinfo/python-list

Re: returning True, False or None

2005-02-04 Thread Brian van den Broek
the first if it evaluates to False, otherwise it returns the second. >>> [] and 42 [] >>> The idea is that the evaluation breaks out as soon as it has seen enough to determine the result. Hence, short circuit. And, instead of returning a Boolean, it returns the actual object fla

Re: empty classes as c structs?

2005-02-05 Thread Brian van den Broek
understand the PEP draft aright, the idea is quite similar -- a python object with no internal structure other than that imposed by what the programmer decides to put into it. (I'm just a hobbyist, so if this suggestion clashes with some well established use of 'Bag' in CS terminology, well, never mind.) Best to all, Brian vdB -- http://mail.python.org/mailman/listinfo/python-list

Re: empty classes as c structs?

2005-02-05 Thread Brian van den Broek
Carlos Ribeiro said unto the world upon 2005-02-05 16:35: On Sat, 05 Feb 2005 15:59:00 -0500, Brian van den Broek <[EMAIL PROTECTED]> wrote: (I'm just a hobbyist, so if this suggestion clashes with some well established use of 'Bag' in CS terminology, well, never mind.) T

Re: Definitive documentation on newstyle classes? (WAS: Pickling and inheritance are making me hurt)

2005-02-05 Thread Brian van den Broek
on: Does there exist a page that enumerates all of the features of the newstyle classes, and explains what they all do? If so, can anyone provide me with such a link? Thanks :-) Hi Daniel, it doesn't yet answer the "definitive" part, but <http://www.python.org/moin/NewClassVsClas

Re: A tool for Python - request for some advice

2005-06-21 Thread Brian van den Broek
d way, 3) using the now guaranteed to be there installation of Python, run your Python script that does all of your custom installation, and 4) if step (2) added a Python installation other than the one added by step (3), perhaps remove it. Am I missing some reason why that wouldn't be a satisfactory option? (This is entirely possible :-) Best, Brian vdB -- http://mail.python.org/mailman/listinfo/python-list

Re: Create our own python source repository

2005-06-21 Thread Brian van den Broek
velopers alike. Project focus includes automated document conversion, newsgroup administration, graphical PDF document generation, remote document maintenance, the creation of a peer-to-peer system with XML-RPC, database integration, and GUI and game development. " http://hetland.org/writing/practical-python/ best, Brian vdB -- http://mail.python.org/mailman/listinfo/python-list

Re: How does one write a function that increments a number?

2005-06-24 Thread Brian van den Broek
; my_object.increment_counter() >>> my_object.counter 1 >>> This also lets you have multiple independent counters: >>> my_other_object = My_class() >>> my_other_object.counter 0 >>> my_other_object.increment_counter() >>> my_other_object.increment_counter() >>> my_other_object.counter 2 >>> my_object.counter 1 >>> Best, Brian vdB -- http://mail.python.org/mailman/listinfo/python-list

Re: Excellent Site for Developers

2005-06-25 Thread Brian van den Broek
Brian said unto the world upon 25/06/2005 10:50: > Do Re Mi chel La Si Do wrote: > >>rather... super troll > > > 100% Agreed. > > Can anyone say, "This looks like spam... Feels like spam... and is about > as useful here in the Python forums as spam -- th

<    4   5   6   7   8   9   10   11   12   >