Re: String Format Error.

2008-12-22 Thread Chris Rebert
On Mon, Dec 22, 2008 at 10:19 PM, Paulo Repreza wrote: > Hi, > > I'm a newbie with python and I recently bought Beginning with Python (Which > is a book I recommend) but the problem that I'm facing it's the following: > > This is the code: > > #!/usr/bin/python2.5 > # Filename: str_format.py > > a

String Format Error.

2008-12-22 Thread Paulo Repreza
Hi, I'm a newbie with python and I recently bought Beginning with Python (Which is a book I recommend) but the problem that I'm facing it's the following: *This is the code: * #!/usr/bin/python2.5 # Filename: str_format.py age = 25 name = 'foobar' print('{0} is {1} years old'.format(name, age))

Re: python3 urlopen(...).read() returns bytes

2008-12-22 Thread ajaksu
On Dec 22, 9:05 pm, Christian Heimes wrote: > ajaksu schrieb: > > > That said, a "decode to declared HTTP header encoding" version of > > urlopen could be useful to give some users the output they want (text > > from network io) or to make it clear why bytes is the safe way. > > Yeah, your idea so

Re: using subprocess module in Python CGI

2008-12-22 Thread Chris Rebert
On Mon, Dec 22, 2008 at 2:02 AM, ANURAG BAGARIA wrote: > Hello, > > I am a Python Newbie and would like to call a short python script via > browser using a CGI script, but initially I am trying to call the same > python script directly through python command line. The script intends to > perform a

Re: iterating initalizations

2008-12-22 Thread Chris Rebert
On Mon, Dec 22, 2008 at 7:52 PM, Aaron Stepp wrote: > > On Dec 22, 2008, at 10:43 PM, Chris Rebert wrote: > >> On Mon, Dec 22, 2008 at 7:32 PM, Aaron Stepp >> wrote: >> >>> >>> Thanks for the help so far, I think I'm starting to get a hang of the >>> syntax. >>> >>> I think I need to state my go

Re: Python's popularity

2008-12-22 Thread Rhodri James
On Tue, 23 Dec 2008 04:35:42 -, Grant Edwards wrote: IIRC, Python came pre-installed on my IBM Thinkpad. However, it wasn't anyplace the average user would stumble across it... The suggestively named "IBMTOOLS" directory, I believe :-) -- Rhodri James *-* Wildebeeste Herder to the Masse

Re: iterating initalizations

2008-12-22 Thread Rhodri James
On Tue, 23 Dec 2008 03:52:35 -, Aaron Stepp wrote: Simply put, I just need enough arrays to hold a list of pitches/rhythms. Then I'll have each list member returned to an instrument defined in another module. One "array" can hold a list of pitches/rhythms. I'm still not terribly cl

cgitb and Apache

2008-12-22 Thread Robert Hancock
I have a cgi running in my alpha environment and, of course, everything works fine. In beta, when I attempt to access a page via our proxy, which works perfectly in alpha. It attempts to call cgitb but freezes for while and then exits. The Apache log show: [Mon Dec 22 23:49:25 2008] [error] [cl

Re: Event Driven programming - Doubts

2008-12-22 Thread Bryan Olson
Kottiyath wrote: [...] I have not yet understood the implementation of deferred. I went through a lot of tutorials, but I guess most places they expect that the user already understands how events are generated. The tutorials mention that there is no more threads once twisted is used. My que

Re: I always wonder ...

2008-12-22 Thread ajaksu
On Dec 22, 9:24 pm, r wrote: > You know what i hate more than a troll, a spineless jellyfish who goes > around rating peoples post with one star. You are the lowest form of > life. You are the same type of person who would key someones car in > the parking lot. You do not have the balls to face yo

Re: Python's popularity

2008-12-22 Thread r
On Dec 22, 10:09 pm, Ben Kaplan wrote: > That's just because most of us don't say anything unless we have   > something useful to say. We prefer to let the experts answer the   > questions, but we read the threads so we can benefit from them. OK Ben, So you are saying 1.) do not question the god

Re: Python's popularity

2008-12-22 Thread r
The average user thinks python is only a very large snake! -- http://mail.python.org/mailman/listinfo/python-list

Re: Python's popularity

2008-12-22 Thread Grant Edwards
On 2008-12-22, Joe Strout wrote: > Alvin ONeal wrote: > >> Also worthy of mention: >> I've seen python pre-installed on consumer HP desktops (I think as >> part of a backup/restore script, but I'm not sure) > > It's pre-installed on every Mac (both desktop and laptop), too. IIRC, Python came pre-

Re: Python's popularity

2008-12-22 Thread Ben Kaplan
On Dec 22, 2008, at 9:51 PM, r wrote: On Dec 22, 7:34 pm, Steven D'Aprano wrote: On Mon, 22 Dec 2008 10:01:21 -0800, r wrote: Walter, I just look at the stats for comp.lang.python, and i am 9th place for most post this month. And about 9,000th place for useful information. -- Steven

Re: Twisted for non-networking applications

2008-12-22 Thread Bryan Olson
Kottiyath wrote: Is it a good idea to use Twisted inside my application, even though it has no networking part in it? Basically, my application needs lots of parallel processing - but I am rather averse to using threads - With or without threads, the Python interpreter does not do parall

Re: iterating initalizations

2008-12-22 Thread Aaron Stepp
On Dec 22, 2008, at 10:43 PM, Chris Rebert wrote: On Mon, Dec 22, 2008 at 7:32 PM, Aaron Stepp wrote: Thanks for the help so far, I think I'm starting to get a hang of the syntax. I think I need to state my goal more clearly. Instead of writing a long list of initializations like so: A

Re: iterating initalizations

2008-12-22 Thread Chris Rebert
On Mon, Dec 22, 2008 at 7:32 PM, Aaron Stepp wrote: > > Thanks for the help so far, I think I'm starting to get a hang of the > syntax. > > I think I need to state my goal more clearly. > > Instead of writing a long list of initializations like so: > > A = [ ] > B = [ ] > ... > Y = [ ] > Z = [ ]

Re: Beep

2008-12-22 Thread Jeffrey Barish
Tobias Andersson wrote: > Jeffrey Barish skrev: >> Chris Rebert wrote: >>> Is the 'pcspkr' kernel module built and loaded? >> >> Yes. And I should have mentioned that I get sound from Ubuntu >> applications that produce sound. > > Also, is the terminal bell set to "visual"? If so chr(7) only >

Re: iterating initalizations

2008-12-22 Thread r
>>> class test(): def __init__(self, name): self.name = 'My name is %d' %name >>> l = [] >>> for name in range(10): l.append(test(name)) >>> l [<__main__.test instance at 0x02852E18>, <__main__.test instance at 0x02852C38>, <__main__.test instance at 0x028528A0>,

Re: iterating initalizations

2008-12-22 Thread Aaron Stepp
On Dec 22, 2008, at 10:15 PM, r wrote: I can't check you code because i don't have these modules but here is the code with proper indention import random from rtcmix import * from chimes_source import * from rhythmblock import * from pitchblock import * indexrand = random.Random() indexrand.se

Re: iterating initalizations

2008-12-22 Thread r
I can't check you code because i don't have these modules but here is the code with proper indention import random from rtcmix import * from chimes_source import * from rhythmblock import * from pitchblock import * indexrand = random.Random() indexrand.seed(2) rhythm = rhythmBlock() pitch = pitchB

Re: python3 urlopen(...).read() returns bytes

2008-12-22 Thread Christian Heimes
Glenn G. Chappell schrieb: > Okay, so I guess I didn't really *get* the whole unicode/text/binary > thing. Maybe I still don't, but I think I'm getting closer. Thanks to > everyone who replied. The basic principal is easy. On the one hand you have some text as unicode data, on the other hand you h

Re: iterating initalizations

2008-12-22 Thread r
I can't check you code because i don't have these modules but here is the code with proper indention import random from rtcmix import * from chimes_source import * from rhythmblock import * from pitchblock import * indexrand = random.Random() indexrand.seed(2) rhythm = rhythmBlock() pitch = pitch

Re: noob trouble with IDLE

2008-12-22 Thread r
Yea, if you use Tkinter in concert with IDLE, your script will lock up. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python's popularity

2008-12-22 Thread r
On Dec 22, 7:34 pm, Steven D'Aprano wrote: > On Mon, 22 Dec 2008 10:01:21 -0800, r wrote: > > Walter, > > I just look at the stats for comp.lang.python, and i am 9th place for > > most post this month. > > And about 9,000th place for useful information. > > -- > Steven I think you missed my point

Re: python3 urlopen(...).read() returns bytes

2008-12-22 Thread Glenn G. Chappell
Okay, so I guess I didn't really *get* the whole unicode/text/binary thing. Maybe I still don't, but I think I'm getting closer. Thanks to everyone who replied. On Dec 22, 1:41 pm, ajaksu wrote: > On Dec 22, 8:25 pm, Christian Heimes wrote: > That said, a "decode to declared HTTP header encoding

Re: Python's popularity

2008-12-22 Thread Tommy Grav
On Dec 22, 2008, at 5:16 PM, Joe Strout wrote: Alvin ONeal wrote: Also worthy of mention: I've seen python pre-installed on consumer HP desktops (I think as part of a backup/restore script, but I'm not sure) It's pre-installed on every Mac (both desktop and laptop), too. Mac and a lot of

RE: Python's popularity

2008-12-22 Thread Ellinghaus, Lance
> > Alvin ONeal wrote: > > > Also worthy of mention: > > > I've seen python pre-installed on consumer HP desktops (I think as > > > part of a backup/restore script, but I'm not sure) > > > > It's pre-installed on every Mac (both desktop and laptop), too. > I am using a Vista HP right now that cam

Re: no sign() function ?

2008-12-22 Thread Steven D'Aprano
On Mon, 22 Dec 2008 14:51:32 +0100, Pierre-Alain Dorange wrote: > I'm new to python and here i discover at least 4 methods, i just make a > small script for timing those methods (100 000 times each on a set of 10 > values). > I do not use timeit, i can't make it work easyly as it need a standalone

Re: Python's popularity

2008-12-22 Thread Steve Holden
r wrote: > [Jeff] > but I raise the bar so that any random joker probably won't bother > (and making the reverse mapping - knowing my real identity and then > looking for recent net activity - is much more difficult to do) > [/Jeff] > > You are the epitimy of an internet troll. A troll tries to hi

Re: Python's popularity

2008-12-22 Thread Steven D'Aprano
On Mon, 22 Dec 2008 10:01:21 -0800, r wrote: > Walter, > I just look at the stats for comp.lang.python, and i am 9th place for > most post this month. And about 9,000th place for useful information. -- Steven -- http://mail.python.org/mailman/listinfo/python-list

Re: Python's popularity

2008-12-22 Thread Steve Holden
walterbyrd wrote: [...]>> Fooled by version numbers ? > > No, but I am giving django the benefit of the doubt. The django > project told people all along that django was not to be considered > production ready before 1.0. I will accept that some people decided to > wait until 1.0 came out to do an

Re: New Python 3.0 string formatting - really necessary?

2008-12-22 Thread Steven D'Aprano
On Mon, 22 Dec 2008 06:58:06 -0800, walterbyrd wrote: > On Dec 21, 12:28 pm, Bruno Desthuilliers > wrote: >> Strange enough, >> no one seems to complain about PHP or Ruby's performances... > > A few years back, there was a certain amount of chest thumping, when > python/django easily beat ror in

Re: Python's popularity

2008-12-22 Thread Steven D'Aprano
On Mon, 22 Dec 2008 07:11:02 -0800, walterbyrd wrote: > I have read that python is the world's 3rd most popular language Oh, well if it's written down it must be true. > But, I can't help but wonder how python's popularity was determined. Why don't you ask the people who made the claim? --

Re: noob trouble with IDLE

2008-12-22 Thread Rhodri James
On Sun, 21 Dec 2008 21:46:16 -, Ronald Rodriguez wrote: Hi, Im new to python and I've just started using Byte of Python, running the samples etc. Im using IDLE on Xp. Ok, here's the thing. A sample script makes a call to the os.system() function in order to zip some files. Everything wo

Re: I always wonder ...

2008-12-22 Thread John Machin
On Dec 23, 10:24 am, r wrote: > Because my balls are so big i walk around bow-legged! Have you considered that your alleged testicular enormity may in fact be an illusion caused by a hernia? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python's popularity

2008-12-22 Thread r
On Dec 22, 6:18 pm, Aaron Brady wrote: > Us small-minded people have hopes and dreams just like anybody else, > Thurston. Now thats the kind of friendly banter this group could use. Instead of people acting as if their bowel-movements smell like bakery fresh cinnamon rolls! -- http://mail.python.

Re: How to represent a sequence of raw bytes

2008-12-22 Thread Steven Woody
On Tue, Dec 23, 2008 at 5:05 AM, John Machin wrote: > On Dec 23, 1:52 am, "Steven Woody" wrote: >> On Mon, Dec 22, 2008 at 6:44 PM, Steven D'Aprano >> >> wrote: >> > On Mon, 22 Dec 2008 14:56:45 +0800, Steven Woody wrote: >> >> >> The intension is to allocate 200 undefined bytes in memory. >> >>

Re: iterating initalizations

2008-12-22 Thread bearophileHUGS
Chris Rebert: > It likely goes without saying, but you ought to read the fine tutorial as > well. I also suggest to fix the messed up indentations. Bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list

Re: Python's popularity

2008-12-22 Thread Aaron Brady
On Dec 22, 4:07 pm, r wrote: > On Dec 22, 3:15 pm, je.s.t...@hehxduhmp.org wrote: > > > r wrote: > > > We see where you stand. And also see that by removing your comments > > > from the archive in 5 days, how small your acorns really are. > > > Also, it is pretty hard to take such accusations ser

Re: New Python 3.0 string formatting - really necessary?

2008-12-22 Thread r
On Dec 22, 5:53 pm, Aaron Brady wrote: > On Dec 22, 11:40 am, r wrote: > > > > > On Dec 22, 8:58 am, walterbyrd wrote: > > > > On Dec 21, 12:28 pm, Bruno Desthuilliers > > > > wrote: > > > > Strange enough, > > > > no one seems to complain about PHP or Ruby's performances... > > > > A few years

Re: New Python 3.0 string formatting - really necessary?

2008-12-22 Thread Aaron Brady
On Dec 22, 11:40 am, r wrote: > On Dec 22, 8:58 am, walterbyrd wrote: > > > > > On Dec 21, 12:28 pm, Bruno Desthuilliers > > > wrote: > > > Strange enough, > > > no one seems to complain about PHP or Ruby's performances... > > > A few years back, there was a certain amount of chest thumping, whe

Re: Python's popularity

2008-12-22 Thread r
[Jeff] but I raise the bar so that any random joker probably won't bother (and making the reverse mapping - knowing my real identity and then looking for recent net activity - is much more difficult to do) [/Jeff] You are the epitimy of an internet troll. A troll tries to hide his identity. Why ar

Re: 64-bit / 128-bit data element type for array?

2008-12-22 Thread akineko
Robert wrote: > Ah, good. numpy lets you construct your own data types from the primitives. > Since you don't actually need uint128 arithmetic, you don't need a uint128 > primitive. You can just use dtype('V16') (meaning "void, 16 bytes long") ... Impressive. I installed NumPy and it worked like

Re: Are python objects thread-safe?

2008-12-22 Thread Aaron Brady
On Dec 22, 2:59 am, Duncan Booth wrote: > RajNewbie wrote: > > Say, I have two threads, updating the same dictionary object - but for > > different parameters: > > Please find an example below: > > a = {file1Data : '', > >        file2Data : ''} > > > Now, I send it to two different threads, both

Re: I always wonder ...

2008-12-22 Thread r
You know what i hate more than a troll, a spineless jellyfish who goes around rating peoples post with one star. You are the lowest form of life. You are the same type of person who would key someones car in the parking lot. You do not have the balls to face you enemy. If who made a rating were vi

Re: 64-bit / 128-bit data element type for array?

2008-12-22 Thread Robert Kern
akineko wrote: Hello Robert, Is that actually a 2s-complement 128-bit unsigned integer, or is it just a 128-bit-long chunk of data? That is a good question. A 128-bit data can be anything. A 128-bit data can be an instrution code (VLIW machines use such wide instruction). A 128-bit can be a p

Re: iterating initalizations

2008-12-22 Thread Chris Rebert
On Mon, Dec 22, 2008 at 2:22 PM, Aaron Stepp wrote: > Hi all: > > I'm new to python and trying to save time and code by iterating through list > initializations as well as the assignments. I have the following code: > > import random > from rtcmix import * > from chimes_source import * > from rhy

Re: python3 urlopen(...).read() returns bytes

2008-12-22 Thread Christian Heimes
ajaksu schrieb: > That said, a "decode to declared HTTP header encoding" version of > urlopen could be useful to give some users the output they want (text > from network io) or to make it clear why bytes is the safe way. Yeah, your idea sounds both useful and feasible. A patch is welcome! :) Chr

Re: Python's popularity

2008-12-22 Thread r
On Dec 22, 4:14 pm, je.s.t...@hehxduhmp.org wrote: > r wrote: > > Would you trust my words more if i used a name like "Thurstan Howell > > III" Come on, don't tell me you are that shallow. To attack my > > credibility solely based on my user name is the sport of small minded > > people. Surely

Re: python3 urlopen(...).read() returns bytes

2008-12-22 Thread ajaksu
On Dec 22, 8:25 pm, Christian Heimes wrote: > It's not possible unless you know the encoding of the bytes. Network io > only returns byte and you must encode it explicitly. [...] > There is no generic and simple way to detect the encoding of a remote > site. Sometimes the encoding is mentioned in

Re: New Python 3.0 string formatting - really necessary?

2008-12-22 Thread Arnaud Delobelle
Steven D'Aprano writes: > Instead of just whinging, how about making a suggestion to fix it? Go on, > sit down for an hour or ten and try to work out how a BINARY OPERATOR > like % (that means it can only take TWO arguments) can deal with an > arbitrary number of arguments, *without* having an

Re: 64-bit / 128-bit data element type for array?

2008-12-22 Thread akineko
Hello Robert, > Is that actually a 2s-complement 128-bit unsigned integer, or is it just a > 128-bit-long chunk of data? That is a good question. A 128-bit data can be anything. A 128-bit data can be an instrution code (VLIW machines use such wide instruction). A 128-bit can be a packed ascill (1

Re: I always wonder ...

2008-12-22 Thread ajaksu
On Dec 22, 3:53 pm, s...@pobox.com wrote: > ... shouldn't people who spend all their time trolling be doing something > else: studying, working, writing patches which solve the problems they > perceive to exist in the troll subject?   Sure. So should I. Hmm. Shutting-up-and-back-to-work-ly y'rs,

Re: Python's popularity

2008-12-22 Thread r
On Dec 22, 4:16 pm, Joe Strout wrote: > Alvin ONeal wrote: > > Also worthy of mention: > > I've seen python pre-installed on consumer HP desktops (I think as > > part of a backup/restore script, but I'm not sure) > > It's pre-installed on every Mac (both desktop and laptop), too. > > Cheers, > - J

Re: Python is slow

2008-12-22 Thread James Mills
On Tue, Dec 23, 2008 at 4:42 AM, cm_gui wrote: > i am referring mainly to Python for web applications. > > Python is slow. Please just go away. You are making an embarrassment of yourself. --JamesMills -- http://mail.python.org/mailman/listinfo/python-list

Re: Are Django/Turbogears too specific?

2008-12-22 Thread Daniel Fetchinson
> I'd like to rewrite a Web 2.0 PHP application in Python with AJAX, and > it seems like Django and Turbogears are the frameworks that have the > most momentum. > > I'd like to use this opportunity to lower the load on servers, as the > PHP application wasn't built to fit the number of users hammer

Re: python3 urlopen(...).read() returns bytes

2008-12-22 Thread Christian Heimes
Glenn G. Chappell schrieb: > I just ran 2to3 on a py2.5 script that does pattern matching on the > text of a web page. The resulting script crashed, because when I did > > f = urllib.request.urlopen(url) > text = f.read() > > then "text" is a bytes object, not a string, and so I can't do

Re: Python's popularity

2008-12-22 Thread walterbyrd
On Dec 22, 11:50 am, Bruno Desthuilliers wrote: > > When it comes to web development, it seems to me that ruby > > (because of rails) is far more popular > > s/popular/hyped/ I'm not so sure. Go to dice.com, enter "ruby rails" no quotes, search all words, job titles only - I got 86 hits, and ano

Re: Event Driven programming - Doubts

2008-12-22 Thread James Mills
On Tue, Dec 23, 2008 at 12:57 AM, Kottiyath wrote: > Hi, >I have been looking at Twisted and lately Circuits as examples for > event driven programming in Python. Wonderful! :) "circuits" that is :) >Even though I understood how to implement the code in these and > what is deferred etc,

iterating initalizations

2008-12-22 Thread Aaron Stepp
Hi all: I'm new to python and trying to save time and code by iterating through list initializations as well as the assignments. I have the following code: import random from rtcmix import * from chimes_source import * from rhythmblock import * from pitchblock import * indexrand = random.

Re: python3 urlopen(...).read() returns bytes

2008-12-22 Thread Carl Banks
On Dec 22, 3:41 pm, "Glenn G. Chappell" wrote: > I just ran 2to3 on a py2.5 script that does pattern matching on the > text of a web page. The resulting script crashed, because when I did > >     f = urllib.request.urlopen(url) >     text = f.read() > > then "text" is a bytes object, not a string,

Re: Python's popularity

2008-12-22 Thread Joe Strout
Alvin ONeal wrote: Also worthy of mention: I've seen python pre-installed on consumer HP desktops (I think as part of a backup/restore script, but I'm not sure) It's pre-installed on every Mac (both desktop and laptop), too. Cheers, - Joe -- http://mail.python.org/mailman/listinfo/python-lis

Re: Python's popularity

2008-12-22 Thread ajaksu
On Dec 22, 4:44 pm, r wrote: > Oh Steve... Listen, my words are ment as a wake-up-call to all who r, can you do me a favor? Go read the archives of this newsgroup for a month or two, then come back with some perspective. I hope that will make your posts a little less nonsensical and annoying. My

Re: Are Django/Turbogears too specific?

2008-12-22 Thread James Mills
On Tue, Dec 23, 2008 at 12:35 AM, Philip Semanchuk wrote: > > On Dec 22, 2008, at 1:52 AM, Tino Wildenhain wrote: > >> Philip Semanchuk wrote: >> ... >>> >>> I prefer Mako over the other template languages I've seen. >> >> From what I can tell Mako is nearly identical to all other >> template lang

Re: Python's popularity

2008-12-22 Thread r
On Dec 22, 3:15 pm, je.s.t...@hehxduhmp.org wrote: > r wrote: > > We see where you stand. And also see that by removing your comments > > from the archive in 5 days, how small your acorns really are. > > Also, it is pretty hard to take such accusations seriously from someone > who themselves is us

Re: Python's popularity

2008-12-22 Thread r
On Dec 22, 3:13 pm, je.s.t...@hehxduhmp.org wrote: > r wrote: > > We see where you stand. And also see that by removing your comments > > from the archive in 5 days, how small your acorns really are. > > What is "the archive", Google Groups?  You do realize that's not the > entirety of Usenet, cor

python3 urlopen(...).read() returns bytes

2008-12-22 Thread Glenn G. Chappell
I just ran 2to3 on a py2.5 script that does pattern matching on the text of a web page. The resulting script crashed, because when I did f = urllib.request.urlopen(url) text = f.read() then "text" is a bytes object, not a string, and so I can't do a regexp on it. Of course, this is easy

Re: Python's popularity

2008-12-22 Thread Robert Kern
je.s.t...@hehxduhmp.org wrote: r wrote: We see where you stand. And also see that by removing your comments from the archive in 5 days, how small your acorns really are. What is "the archive", Google Groups? You do realize that's not the entirety of Usenet, correct? It's the predominant ar

Re: 64-bit / 128-bit data element type for array?

2008-12-22 Thread Robert Kern
akineko wrote: Hello, bearophile and Robert, thank you for your prompt response. I will try NumPy (this is a good execuse to learn and to use a new package). I haven't seen uint128 in the wild, though. Of course, not many applications require uinit128 as a scalar value. I may need to deal w

Re: 64-bit / 128-bit data element type for array?

2008-12-22 Thread akineko
Hello, bearophile and Robert, thank you for your prompt response. I will try NumPy (this is a good execuse to learn and to use a new package). > I haven't seen uint128 in the wild, though. Of course, not many applications require uinit128 as a scalar value. I may need to deal with 128-bit data

Re: I always wonder ...

2008-12-22 Thread r
On Dec 22, 2:31 pm, s...@pobox.com wrote: >     Carl> ...shouldn't poeple who spend all their time following up to >     Carl> trolls, or starting new threads about trolls, being doing >     Carl> something else? > > Sure.  It was just a momentary break from work, as is this.  I thought an > implie

Re: How to represent a sequence of raw bytes

2008-12-22 Thread John Machin
On Dec 23, 1:52 am, "Steven Woody" wrote: > On Mon, Dec 22, 2008 at 6:44 PM, Steven D'Aprano > > wrote: > > On Mon, 22 Dec 2008 14:56:45 +0800, Steven Woody wrote: > > >> The intension is to allocate 200 undefined bytes in memory. > > > You *want* undefined bytes? Out of curiosity, what do you in

Re: Check file is

2008-12-22 Thread Grant Edwards
On 2008-12-20, Harish wrote: > Is there any utility in python which will help me to read any > pdf files? There are two things I can think off the top of my head 1) The Poppler library. I don't know if there's a Python binding for it. The poppler home page and Wikipedia page would pro

Re: Check file is

2008-12-22 Thread Colin J. Williams
Paul McNett wrote: Colin J. Williams wrote: The ReportLab toolkit appears to be concerned with building Portable Document Files.  I would be interested in any utility which will read any pdf - for example, to convert pdf -> html I don't know of any Python utility to

Re: New Python 3.0 string formatting - really necessary?

2008-12-22 Thread r
On Dec 22, 12:36 pm, Bruno Desthuilliers wrote: > As far as I'm concerned, I don't think Python is "superior" (OMG), I > think it's a good language that happens to fit my brain *and* solve more > than 80% of my programmer's needs. If you're not happy with Python's > perfs, please contribute, you

Re: Python-list Digest, Vol 63, Issue 420

2008-12-22 Thread John Machin
On Dec 23, 5:31 am, wblu...@verizon.net wrote: > Sent from my Verizon Wireless BlackBerry [snip] That was kind of your parents to let you open your Christmas presents early. -- http://mail.python.org/mailman/listinfo/python-list

Re: Check file is

2008-12-22 Thread Paul McNett
Colin J. Williams wrote: The ReportLab toolkit appears to be concerned with building Portable Document Files. I would be interested in any utility which will read any pdf - for example, to convert pdf -> html I don't know of any Python utility to do this, but pdftohtml, pdftotext, pdftoppm, a

Re: I always wonder ...

2008-12-22 Thread skip
Carl> ...shouldn't poeple who spend all their time following up to Carl> trolls, or starting new threads about trolls, being doing Carl> something else? Sure. It was just a momentary break from work, as is this. I thought an implied smiley was enough, but I guess not. Skip -- http:

Re: I always wonder ...

2008-12-22 Thread Alvin ONeal
> > What really is a troll? > *troll* /v.,n./ [From the Usenet group *alt.folklore.urban *] To utter a posting on Usenetdesigned to attract predictable responses or flame s

Re: I always wonder ...

2008-12-22 Thread Carl Banks
On Dec 22, 11:53 am, s...@pobox.com wrote: > ... shouldn't people who spend all their time trolling be doing something > else: studying, working, writing patches which solve the problems they > perceive to exist in the troll subject?  Is there some online troll game > running where the players earn

Re: Python is slow

2008-12-22 Thread Luis M . González
On Dec 22, 3:42 pm, cm_gui wrote: > Python is slow. Haven't you said that already? Well, you did it so many times that you convinced me... I'll tell the Google folks that they are a bunch of ignorant fools for choosing python. That's why their business is doing that bad. They will surely go to h

Re: I always wonder ...

2008-12-22 Thread r
On Dec 22, 1:54 pm, Christian Heimes wrote: > > you are truly an open minded, intelligent Human being. Thanks for > > blessing use with your wisdom here. We need more like you. Every > > thought, action, fact, must always be questioned, that is what makes > > us human! > > *plonk* so i was wrong

Re: Python's popularity

2008-12-22 Thread r
On Dec 22, 1:50 pm, Luis M. González wrote: > On Dec 22, 3:44 pm, r wrote: > > > > > Steve Holden > > > > What makes you assume this is a zero-sum game, and that Python won't > > > survive if any other language becomes popular. Every language borrows > > > from those that came before it. Terms li

Re: Python's popularity

2008-12-22 Thread r
OK je.s.t... whatever, We see where you stand. And also see that by removing your comments from the archive in 5 days, how small your acorns really are. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python's popularity

2008-12-22 Thread Luis M . González
On Dec 22, 3:44 pm, r wrote: > Steve Holden > > > What makes you assume this is a zero-sum game, and that Python won't > > survive if any other language becomes popular. Every language borrows > > from those that came before it. Terms like "outright plagiarism" don't > > encourage rational debate,

Re: I always wonder ...

2008-12-22 Thread Christian Heimes
> you are truly an open minded, intelligent Human being. Thanks for > blessing use with your wisdom here. We need more like you. Every > thought, action, fact, must always be questioned, that is what makes > us human! *plonk* -- http://mail.python.org/mailman/listinfo/python-list

Re: Python's popularity

2008-12-22 Thread Bruno Desthuilliers
walterbyrd a écrit : On Dec 22, 10:13 am, r wrote: Since the advent of Ruby(Python closet competitor), Python's hold on this niche is slipping. About the only place I ever hear of ruby being used is web development with RoR. When it comes to web development, it seems to me that ruby (because

Re: New Python 3.0 string formatting - really necessary?

2008-12-22 Thread Bruno Desthuilliers
walterbyrd a écrit : On Dec 21, 12:28 pm, Bruno Desthuilliers wrote: Strange enough, no one seems to complain about PHP or Ruby's performances... A few years back, there was a certain amount of chest thumping, when python/django easily beat ror in a benchmark test. I don't remember it, and

Re: Python's popularity

2008-12-22 Thread r
On Dec 22, 1:10 pm, MRAB wrote: > r wrote: > > Steve Holden > >> What makes you assume this is a zero-sum game, and that Python won't > >> survive if any other language becomes popular. Every language borrows > >> from those that came before it. Terms like "outright plagiarism" don't > >> encourag

Re: Check file is

2008-12-22 Thread Colin J. Williams
gardsted wrote: Harish wrote: Hi Friends Is there any utility in python which will help me to read any pdf files? Regards Harish Not sure, what you're after exactly, but I tried googling 'python read pdf' and found this, so maybe 'reportlab' is what you're looking for: Re: Reading PDF files

Re: Python's popularity

2008-12-22 Thread walterbyrd
On Dec 22, 11:42 am, "Ellinghaus, Lance" wrote: > Yes, Ruby has taken some of the popularity out of Python, but they are > also hitting different markets. Do you mean different markets within web development, or do you mean ruby is used mostly for web-dev, while python is used for other stuff? -

Re: 64-bit / 128-bit data element type for array?

2008-12-22 Thread Robert Kern
akineko wrote: Hello everyone, I need to handle binary files that contain 64-bit (or 128-bit in the furture) unsigned int data. Python's array seems not supporting unsigned int type beyond 32-bit ('L'). I would like to use Python array as I need to make my program work on both big-endian machine

Re: 64-bit / 128-bit data element type for array?

2008-12-22 Thread bearophileHUGS
akineko: > I need to handle binary files that contain 64-bit (or 128-bit in the > furture) unsigned int data. > Python's array seems not supporting unsigned int type beyond 32-bit > ('L'). I agree that it can be useful for the built-in array module to grow signed/unsigned 64 bit numbers. Numpy su

Re: Python's popularity

2008-12-22 Thread MRAB
r wrote: Steve Holden What makes you assume this is a zero-sum game, and that Python won't survive if any other language becomes popular. Every language borrows from those that came before it. Terms like "outright plagiarism" don't encourage rational debate, and make you seem like a troll who is

Re: I always wonder ...

2008-12-22 Thread r
On Dec 22, 1:02 pm, Christian Heimes wrote: > Don't worry about the trolling, Skip. I'd be more worried if nobody > trolls about Python. It would mean Python loses popularity and our work > is all in vain. Christain, you are truly an open minded, intelligent Human being. Thanks for blessing use w

Re: I always wonder ...

2008-12-22 Thread r
> You just got 10 points ;-) Fighting trolls begets a troll. Skip not you, i have so much respect for you :) What really is a troll? Someone who does not agree with you? Someone you don't like? Someone you do like? All good questions. I think this whole troll calling business has gotten out of h

Re: I always wonder ...

2008-12-22 Thread Christian Heimes
s...@pobox.com schrieb: > shouldn't people who spend all their time trolling be doing something > else: studying, working, writing patches which solve the problems they > perceive to exist in the troll subject? Is there some online troll game > running where the players earn points for genera

Re: Calling ImageMagick's convert

2008-12-22 Thread Андрей Парамонов
2008/12/22 Chris Rebert : > I think this needs to be: > > subprocess.call(['convert', 'in.png', '-resize', '640x480', 'out.png']) > > Otherwise, it gets '-resize 640x480' as a single escaped option when > it's really 2 options, which is the error message you're getting. > You have to split the argu

Re: I always wonder ...

2008-12-22 Thread Grant Edwards
On 2008-12-22, Martin P. Hellwig wrote: > s...@pobox.com wrote: >> Is there some online troll game running where the players earn >> points for generating responses to their posts? > > You just got 10 points ;-) We'll have to ask for an instant replay for the judges on that one. If his question

  1   2   >