Getting a stable virtual env

2014-02-17 Thread P J
Hi ppl, I'm trying to figure out the whole virtualenv story. Right now I'm using it to creating an environment for our upcoming debian upgrade to squeeze. I'm doing some tests in our current distrib (python 2.5). I have come to realize that a lot of packages in the version I'm interested in are n

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

2011-07-25 Thread Robert P. J. Day
gging around but i'm open 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 -- =======

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

2011-08-04 Thread Robert P. J. Day
ith a 3.x kernel and let me know what they get? i'm about to just hack the source and change that to "plat-linux3" to see what happens, but it would be nice to do something more intelligent. thanks. rday -- Robert P. J. Day

Re: A beginner's problem...

2004-12-15 Thread Robert P. J. Day
On Wed, 15 Dec 2004, Amir Dekel wrote: > Hello everyone, > > First, I have to say that Python is one of the coolest programing languages I > have seen. > And now for the problem (must be a silly one): > When I import a module I have wrote, and then I find bugs, it seems that I > can't import it ag

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 structur

looking for wget-like module for getching software

2004-12-15 Thread Robert P. J. Day
just getting started with python, and i'm designing a program for fetching software from the net, given the package name, version number and/or date stamp, download method (tarball, CVS, etc.) and so on. i've already got a shell script doing this, but python would certainly clean up the code a

Re: Manipulating MySQL Sets

2009-12-13 Thread Robert P. J. Day
to expect, how could 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.

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 > wrote: > On Sun, 13 Dec 2009, Victor Subervi wrote: > > > On Sun, Dec 13, 2009 at 11:36 AM, Carsten Haese > > > wrote: > >      

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

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

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

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.

examining an initial, pristine python3 shell session

2010-01-20 Thread Robert P. J. Day
ell session looks like before starting to import things, then seeing how that importing changes the session before getting down to actual programming. what other useful commands might i run immediately after starting a session whose output would be informative? i can certainly poke at s

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 importab

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

deleting, then re-importing a class method

2010-01-21 Thread Robert P. J. Day
or is there an operator other than "import" that more represents a full refresh of a class? rday p.s. no, i don't have a valid application of the above, i'm just trying to break things. -- Robert P

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

2010-01-24 Thread Robert P. J. Day
3 that exists? being able to print off 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

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 t

listing an object's methods/attributes?

2009-11-05 Thread Robert P. J. Day
that go again? rday -- ==== Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page: http://crashcourse.ca Twitter: http:

why does "help(import)" not work?

2009-11-06 Thread Robert P. J. Day
)" and type "import" to get that help. it seems counter-intuitive to have the first variation fail but the second succeed. what is the rule for this in python3? rday -- ======== Robert P. J. Day

Re: Program to compute and print 1000th prime number

2009-11-07 Thread Robert P. J. Day
g to http://code.activestate.com/recipes/366178/. rday -- ======== Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page:

Re: Program to compute and print 1000th prime number

2009-11-07 Thread Robert P. J. Day
. answer: go to the building manager and say, "i'll give you this really neat barometer if you tell me how tall this building is." rday -- Robert P. J. Day

how to display the return type of an os method?

2009-11-07 Thread Robert P. J. Day
ns a posix.stat_result object 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
other users' life easier. huh? why do you need the slice 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 -- =

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

Re: My own accounting python euler problem

2009-11-07 Thread Robert P. J. Day
iv897/sqg/dads/HTML/knapsackProblem.html it's NP-complete. rday -- ======== Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page:

Re: My own accounting python euler problem

2009-11-07 Thread Robert P. J. Day
give higher value to paying off older invoices. that's how the general knapsack problem works. rday -- Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page:

Re: My own accounting python euler problem

2009-11-08 Thread Robert P. J. Day
ent 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 Waterloo, Ontario, CANADA Linux Consulting, T

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
test error is complaining about -- that it can't find a listening telnet server? -- Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page: http://cr

Re: Code for finding the 1000th prime

2009-11-15 Thread Robert P. J. Day
Science and Programming. Thanks, Ray it's 7919. rday -- ======== Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pe