Re: ANN: Python Call Graph 0.3.0

2007-02-14 Thread Beej
On Feb 14, 3:02 pm, "Gerald Kaszuba" <[EMAIL PROTECTED]> wrote: > I just released pycallgraph 0.3.0. There are many examples on the web > site and linked from the web site including a 16188 x 4187 sized call > graph! That's pretty cool, all right. -Beej --

Re: rot13 in a more Pythonic style?

2007-02-14 Thread Beej
> they are, I know what the alternatives are, but I still haven't found > an instance where it permits something novel to be done that couldn't > be done otherwise (if maybe not so neatly). Strictly speaking, you can live your whole life without using them. There's alway

Getting file line numbers from Nodes in a DOM?

2007-02-08 Thread Beej
I have a DOM parsed with xml.dom.mindom.parse()...for a particular Node, is there an easy way to get the line (and maybe even column) numbers that the element appeared in the original file? Thanks, -Beej -- http://mail.python.org/mailman/listinfo/python-list

Re: Help me understand this

2007-01-30 Thread Beej
ties: >>> (2.).__add__(1) 3.0 >>> 2..__add__(1) 3.0 I like the second one more. :-) -Beej -- http://mail.python.org/mailman/listinfo/python-list

Re: Help me understand this

2007-01-30 Thread Beej
; mode it didn't even occur to me that the "." had a different context, no matter how much more obvious. >>> print 2. 2.0 >>> type(2.) -Beej -- http://mail.python.org/mailman/listinfo/python-list

Re: Help me understand this

2007-01-30 Thread Beej
ill don't get: >>> type(2) >>> type((2)) >>> (2).__add__(1) 3 >>> 2.__add__(1) File "", line 1 2.__add__(1) ^ SyntaxError: invalid syntax -Beej -- http://mail.python.org/mailman/listinfo/python-list

Re: Data structure and algorithms

2007-01-29 Thread Beej
ementing a file system for OS class in Bourne Shell. That prof also changed the rule the very next semester. :-) -Beej -- http://mail.python.org/mailman/listinfo/python-list

Re: Data structure and algorithms

2007-01-29 Thread Beej
u from using Python--I just wanted to discourage you from trying to do it using the Python built-in list []. In fact, given the time constraints and your dislike of structs, you're likely going to rip your hair out trying to get it going in C. -Beej -- http://mail.python.org/mailman/listinfo/python-list

Re: Data structure and algorithms

2007-01-29 Thread Beej
ences to them anywhere. > any sugestions how to make the implementation more like in C. I never > managed the syntax of C so I stoped when structs crossed my way. > Please help. I dont want to learn C. Ah, it's a pity. C is my favorite compiled procedural language. -Beej -- http://mail.python.org/mailman/listinfo/python-list

Re: IP address

2007-01-28 Thread Beej
give you the address of your firewall or whatever is your gateway to the outside world... which is a cool thing to know, but I'm not sure it's what the op's after.) -Beej -- http://mail.python.org/mailman/listinfo/python-list