error compiling python, and plat-linux2 versus plat-linux3

2011-08-04 Thread Robert P. J. Day
-- Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday

cross-compiling python-2.5.1 for PPC, error in Modules/unicodedata.o

2011-07-25 Thread Robert P. J. Day
to suggestions. i also have the full 1700 lines of output from the beginning of the cross-compile if anyone wants to see it. thanks, and is there a more appropriate place to ask this? rday -- Robert P. J. Day

how to list the attributes of a class, not an object?

2010-01-24 Thread Robert P. J. Day
the entire language spec on two or four pages and tacking it up in front of me would be just ducky. thanks. -- Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training

Re: how to list the attributes of a class, not an object?

2010-01-24 Thread Robert P. J. Day
On Sun, 24 Jan 2010, Alf P. Steinbach wrote: * Robert P. J. Day: once again, probably a trivial question but i googled and didn't get an obvious solution. how to list the attributes of a *class*? eg., i was playing with dicts and noticed that the type returned by the keys() method

deleting, then re-importing a class method

2010-01-21 Thread Robert P. J. Day
? rday p.s. no, i don't have a valid application of the above, i'm just trying to break things. -- Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel

how to check if a module is importable?

2010-01-20 Thread Robert P. J. Day
run import -- is that the accepted way to test? rday -- Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page

examining an initial, pristine python3 shell session

2010-01-20 Thread Robert P. J. Day
immediately after starting a session whose output would be informative? i can certainly poke at some of those objects to see them in more detail. i'm just curious what others might recommend. thanks. rday -- Robert P. J. Day

Re: how to check if a module is importable?

2010-01-20 Thread Robert P. J. Day
On Thu, 21 Jan 2010, Lie Ryan wrote: On 01/20/10 19:58, Robert P. J. Day wrote: finally getting back to clawing my way thru the python 3 book so probably a number of newbie questions coming up. first one -- can i check if a module is importable (equivalently, exists on sys.path, i

Re: examining an initial, pristine python3 shell session

2010-01-20 Thread Robert P. J. Day
On Wed, 20 Jan 2010, Alf P. Steinbach wrote: * Robert P. J. Day: ... snip ... what other useful commands might i run immediately after starting a session whose output would be informative? i can certainly poke at some of those objects to see them in more detail. i'm just curious

Re: can i examine the svn rev used to build a python 3 executable?

2010-01-19 Thread Robert P. J. Day
On Tue, 19 Jan 2010, Robert P. J. Day wrote: i'm currently checking out python3 from the svn repo, configuring, building and installing under /usr/local/bin on my fedora 12 system, all good. i'm curious, though -- is there a query i can make of that executable that would tell me what

can i examine the svn rev used to build a python 3 executable?

2010-01-19 Thread Robert P. J. Day
thought i'd ask. rday -- Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page: http

Re: Manipulating MySQL Sets

2009-12-13 Thread Robert P. J. Day
you possibly write code that produces what you expect? (Don't answer this question. It's a rhetorical question.) http://twitter.com/rpjday/status/6576145809 rday -- Robert P. J. Day Waterloo

Re: Manipulating MySQL Sets

2009-12-13 Thread Robert P. J. Day
On Sun, 13 Dec 2009, Victor Subervi wrote: On Sun, Dec 13, 2009 at 11:56 AM, Robert P. J. Day rpj...@crashcourse.ca wrote: On Sun, 13 Dec 2009, Victor Subervi wrote: On Sun, Dec 13, 2009 at 11:36 AM, Carsten Haese carsten.ha...@gmail.com wrote:       I

python simply not scaleable enough for google?

2009-11-11 Thread Robert P. J. Day
http://groups.google.com/group/unladen-swallow/browse_thread/thread/4edbc406f544643e?pli=1 thoughts? rday -- Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting

starting with python 3.1 vs 3.2, and test_telnetlib

2009-11-11 Thread Robert P. J. Day
by peer i'm not running telnet on this host, and i have no intention of doing so -- it's all ssh, of course. is that what this test error is complaining about -- that it can't find a listening telnet server? -- Robert P

Re: My own accounting python euler problem

2009-11-08 Thread Robert P. J. Day
solution allow for the possibility of different invoices of equal amounts? i would be reluctant to use the word subset in a context where you can have more than one element with the same value. rday -- Robert P. J. Day

Re: Program to compute and print 1000th prime number

2009-11-07 Thread Robert P. J. Day
-- Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page: http://crashcourse.ca Twitter

Re: Program to compute and print 1000th prime number

2009-11-07 Thread Robert P. J. Day
-- Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page: http://crashcourse.ca Twitter

how to display the return type of an os method?

2009-11-07 Thread Robert P. J. Day
in one line. how dumb a question is that? rday -- Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page

Re: What is the best way to delete strings in a string list that that match certain pattern?

2009-11-07 Thread Robert P. J. Day
notation on the left? why can't you just assign to dirs as opposed to dirs[:]? using the former seems to work just fine. is this some kind of python optimization or idiom? rday -- Robert P. J. Day

Re: how to display the return type of an os method?

2009-11-07 Thread Robert P. J. Day
On Sat, 7 Nov 2009, Bruno Desthuilliers wrote: Robert P. J. Day a écrit : once again, a thoroughly newbie question but what's the quickest way to display the return type of, say, os.stat()? i can obviously do this in two steps: x=os.stat('/etc/passwd') type(x) class

Re: My own accounting python euler problem

2009-11-07 Thread Robert P. J. Day
-- Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page: http://crashcourse.ca Twitter: http://twitter.com

Re: My own accounting python euler problem

2009-11-07 Thread Robert P. J. Day
. in general, then, you can not only see what matches exactly but, for the sake of your customer, you can give higher value to paying off older invoices. that's how the general knapsack problem works. rday -- Robert P. J. Day

why does help(import) not work?

2009-11-06 Thread Robert P. J. Day
-intuitive to have the first variation fail but the second succeed. what is the rule for this in python3? rday -- Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training

listing an object's methods/attributes?

2009-11-05 Thread Robert P. J. Day
-- Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page: http://crashcourse.ca Twitter: http://twitter.com/rpjday

Re: looking for wget-like module for getching software

2004-12-16 Thread Robert P. J. Day
On Thu, 16 Dec 2004, Stefan Behnel wrote: Robert P. J. Day schrieb: that is, i can just say, go get file gcc-3.4.2.tar.bz2, and start searching at ftp://pub.gnu.org/pub/gcc;. i may not know how far down in the directory structure that file is, but wget will happily search recursively