Re: encoding hell - any chance of salvation ?

2011-03-07 Thread Tom Zych
y > object to accept what is in essence a binary file ? Glancing at the docs, it appears you want to use 'c', 'b', or 'B' instead of 'u' when creating array. -- Tom Zych / freethin...@pobox.com "Would you like a lovely fluffy little white rabbit, l

Re: I'm happy with Python 2.5

2011-03-06 Thread Tom Zych
depends on whether you care about execution speed or > development speed. s/care/care more/. People generally care about both to /some/ extent. (Probably being over-pedantic again...) -- Tom Zych / freethin...@pobox.com "Would you like a lovely fluffy little white rabbit, little girl

Re: Generate PDF with Tamil font problem

2011-03-05 Thread Tom Zych
hereas for character 'рок' is > printed as it is. > I am struggling to figure out the issue. Any help would see me on track. Something similar came up on stackoverflow recently, though that was with tkinter. Might shed some light. http://stackoverflow.com/questions/5166488/ -- Tom

Re: question about endswith()

2011-03-04 Thread Tom Zych
or filename.endswith('d') or > filename.endswith('f') or filename.endswith('5') > > and then both .hdf and .hdf5 files will get matched. Score:5, Insightful. "Oh, I'm sorry, this is Python. Slashdot is room 12A, next door." -- Tom Zych / freethin..

Re: making a class callable

2011-03-04 Thread Tom Zych
dude wrote: >>> f = foo("wow") ... >>> However, I always get the "module not callable" error. ... > That was the problem. I was using: > import ohYeah To get that error, I think you must have been importing a module named "foo" as well. Or yo

Re: Strange occasional marshal error

2011-03-03 Thread Tom Zych
k in this, I'm just speculating based on a bug I had in a C program years ago. I have no idea how CPython handles these things. -- Tom Zych / freethin...@pobox.com Quidquid latine dictum sit, altum viditur. -- http://mail.python.org/mailman/listinfo/python-list

Re: Checking against NULL will be eliminated?

2011-03-03 Thread Tom Zych
liable, but full of surprises. Python is generally low in surprises. Using "if " is one place where you do have to think about unintended consequences. -- Tom Zych / freethin...@pobox.com Q: I'm having problems with my Windows software. Will you help me? A: Yes. Go to a DOS prom

Re: Checking against NULL will be eliminated?

2011-03-02 Thread Tom Zych
Steven D'Aprano wrote: > Do you realise that "PEP 4000" was Tom Zych being sarcastic? There is no > PEP 4000: Eh, well, maybe 10% sarcastic, 90% facetious. Wasn't trying to give Carl a hard time. -- Tom Zych / freethin...@pobox.com Q: I'm having problems with my

Re: Checking against NULL will be eliminated?

2011-03-02 Thread Tom Zych
ded. Hmm, no, I don't think that will fly. We're stuck with it :( Fortunately there are work-arounds for the cases that matter, as we've seen. Yay Python :) -- Tom Zych / freethin...@pobox.com Quidquid latine dictum sit, altum viditur. -- http://mail.python.org/mailman/listinfo/python-list

Re: AES Encryption of byte array

2011-03-01 Thread Tom Zych
> using Python 2.6, can anyone recommend a toolkit or module? I haven't used it, but it looks like this does what you want: http://www.dlitz.net/software/pycrypto/ -- Tom Zych / freethin...@pobox.com Quidquid latine dictum sit, altum viditur. -- http://mail.python.org/mailman/listinfo/python-list

Re: I am not able to open IDLE in python on Vista.

2011-03-01 Thread Tom Zych
Andrea Crotti wrote: > Best solution would be to avoid Windows Vista. s/Vista// There, fixed that for ya. -- Tom Zych / freethin...@pobox.com Quidquid latine dictum sit, altum viditur. -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: Code Examples

2011-03-01 Thread Tom Zych
geremy condra wrote: > Ah, so you're looking for an argument. This is abuse, you want room > 12A just down the hall. They have comfy chairs there. No one expects it. -- Tom Zych / freethin...@pobox.com Quidquid latine dictum sit, altum viditur. -- http://mail.python.org/mailm

Re: Python 3.2 is excellent, but

2011-03-01 Thread Tom Zych
jmfauth wrote: > Well, Python (as 3.2) has never reached this level of excellence, but > __pycache__, no, not for me. > > (I feel better now, after I wrote it.) Could you be more specific? :) -- Tom Zych / freethin...@pobox.com Quidquid latine dictum sit, altum vidit

Re: OT: Code Examples

2011-03-01 Thread Tom Zych
f strict statically typed functional > langauges like Ocaml and Haskell. Hmm, if we abused this guy enough for his heresy, do you think he'd say he didn't expect the Spanish Inquisition? Then we could riff on that theme for days :-D -- Tom Zych / freethin...@pobox.com Quidquid lati

Lumberjack Song

2011-02-28 Thread Tom Zych
as much for those unfamiliar with Runescape...) -- Tom Zych / freethin...@pobox.com Quidquid latine dictum sit, altum viditur. -- http://mail.python.org/mailman/listinfo/python-list

Re: python3.2m installed as (additional) binary

2011-02-27 Thread Tom Zych
Tom Zych wrote: > andrew cooke wrote: >> -rwxr-xr-x 2 root root 7368810 2011-02-27 13:03 /usr/local/bin/python3.2 >> -rwxr-xr-x 2 root root 7368810 2011-02-27 13:03 /usr/local/bin/python3.2m > I suspect the "m" name is what gets built and the "no m" is an al

Re: python3.2m installed as (additional) binary

2011-02-27 Thread Tom Zych
diff /usr/local/bin/python3.2 /usr/local/bin/python3.2m > pl6 Python-3.2: It looks like they're hard links of each other. Try: ls -li /usr/local/bin/python3.2* Are the inode numbers the same? I suspect the "m" name is what gets built and the "no m" is an ali

Re: I'm happy with Python 2.5

2011-02-27 Thread Tom Zych
n00m wrote: > Am I turmoiling your wishful thinking? > You may nourish it till the end of time. Let us cease to nourish those fabled ones who dwell under bridges. -- Tom Zych / freethin...@pobox.com Quidquid latine dictum sit, altum viditur. -- http://mail.python.org/mailman/listinfo/

Re: Python getting stuck

2011-02-27 Thread Tom Zych
f it's some kind of Unix, are you using a text console, or X? If X, what window manager? -- Tom Zych / freethin...@pobox.com Quidquid latine dictum sit, altum viditur. -- http://mail.python.org/mailman/listinfo/python-list