Re: Does Python have certificate?

2009-03-26 Thread Hendrik van Rooyen
Tim Roberts t...@probo.com wrote: Steve Holden st...@holdenweb.com wrote: Johannes Bauer wrote: Sebastian Bassi schrieb: No, there is no certification for Python. Maybe in the future... I'll hand out the Johannes Bauer Python Certificate of Total Awesomeness for anyone who can

Re: Is there a simple soap library for python?

2009-03-26 Thread Hendrik van Rooyen
ÀîÌï litia...@gmail.com wrote: To emluate a soap service or client. look at Pyro, and look at xmlrpclib It may not be exactly what you are looking for, but if you are doing both sides, it will help. - Hendrik -- http://mail.python.org/mailman/listinfo/python-list

Re: Introducing Python to others

2009-03-26 Thread Hendrik van Rooyen
Paddy O'Loughlin patrick.olough...@gmail.com wrote: Any other suggestions for a possible wow reaction from an audience like that? two simple demos: The first one is a simple client server thingy on the LAN. I have seen hardened people do a double take when they see how little code it takes to

Re: Does Python have certificate?

2009-03-24 Thread Hendrik van Rooyen
Kay Schluehr ka..@gmx.net wrote: On 24 Mrz., 05:30, Steve Holden st...@holdenweb.com wrote: O'Reilly School of Technology have plans to offer a Python certification. But I have to write the courses first :) If you're done with it I'd additionally suggest the honory title of a VIPP:

Re: Async serial communication/threads sharing data

2009-03-23 Thread Hendrik van Rooyen
Nick Craig-Wood ni...g-wood.com wrote: I wrote a serial port to TCP proxy (with logging) with twisted. The problem I had was that twisted serial ports didn't seem to have any back pressure. By that I mean I could pump data into a 9600 baud serial port at 10 Mbit/s. Twisted would then

Re: Async serial communication/threads sharing data

2009-03-22 Thread Hendrik van Rooyen
Nick Timkovich prom@gmail.com wrote: I've been working on a program that will talk to an embedded device over the serial port, using some basic binary communications with messages 4-10 bytes long or so. Most of the nuts and bolts problems I've been able to solve, and have learned a

Re: How complex is complex?

2009-03-20 Thread Hendrik van Rooyen
Aahz a...@pyft.com wrote: 8 .. Because the name Python is derived from the comedy TV show Monty Python, stupid jokes are common in the Python community.) Sacrilege! A joke based on the Monty Python series is BY DEFINITION

Re: Parallel processing on shared data structures

2009-03-20 Thread Hendrik van Rooyen
psaff...@lemail.com wrote: I'm filing 160 million data points into a set of bins based on their position. At the moment, this takes just over an hour using interval So why do you not make four sets of bins - one for each core of your quad, and split the points into quarters, and run four

Re: Heuristically processing documents

2009-03-20 Thread Hendrik van Rooyen
MRAB goo...@mrett.plus.com wrote: BJörn Lindqvist wrote: 8 --- For example, to find the email you can use a simple regexp. If there is a match you can be certain that that is the authors email. But what algorithms can you use to figure out the other information?

Re: Rough draft: Proposed format specifier for a thousands separator

2009-03-15 Thread Hendrik van Rooyen
Tim Rowe digil.com wrote: 8 - . If Finance users and non-professional programmers find the locale approach to be frustrating, arcane and non-obvious then by all means propose a way of making it simpler and clearer,

Re: Rough draft: Proposed format specifier for a thousands separator

2009-03-15 Thread Hendrik van Rooyen
Paul Rubin http://phr...@nospam.invalid wrote: Paul Rubin http://phr...@nospam.invalid writes: '%.3K' % 1234567 = 1.235K # K = 1000 '%.:3Ki' % 1234567 = 1.206K # K = 1024 I meant 1.235M and 1.177M, of course. I went tilt like a slot machine long before I noticed... :-) -

Re: Rough draft: Proposed format specifier for a thousands separator

2009-03-14 Thread Hendrik van Rooyen
John Nagle na...@animats.com wrote: Yes. In COBOL, one writes PICTURE $999,999,999.99 which is is way ahead of most of the later approaches. That was fixed width. For zero suppression: PIC ,$$$,$99.99 This will format 1000 as $1,000.00 For fixed width zero suppression: PIC

Re: Rough draft: Proposed format specifier for a thousands separator

2009-03-12 Thread Hendrik van Rooyen
Ulrich Eckhardt eck...aser.com wrote: IOW, why not explicitly say what you want using keyword arguments with defaults instead of inventing an IMHO cryptic, read-only mini-language? Seriously, the problem I see with this proposal is that its aim to be as short as possible actually makes the

Re: Ban Xah Lee

2009-03-11 Thread Hendrik van Rooyen
Kenneth Tilton ke...ail.comwrote: ps. when the hell do I get an eponymous banning thread?! I have been flaming this damn group for 13 years and no recognition!! k Well you are obviously not trying hard enough, so you have nobody but yourself to blame if you get pipped at the post after

Re: Problem with os.chdir()

2009-03-11 Thread Hendrik van Rooyen
Tim Golden ma...lden.me.uk wrote: Well, a little bit of experimentation shows that you can *create* paths this deep (say, with os.mkdir). But you can't actually set the current directory to it. So the Is this also true if you try to go there by a succession of shorter hops of the ./next_level

Re: Ban Xah Lee

2009-03-08 Thread Hendrik van Rooyen
Grant Edwards gra...isi.com wrote: There you go: a 30-second psychological diagnosis by an electrical engineer based entirely on Usenet postings. It doesn't get much more worthless than that... Oh it is not entirely worthless - as a working hypothesis, it seems to cover and explain the

Re: help with printing to stdout...

2009-03-08 Thread Hendrik van Rooyen
Daniel Dalton d.dal...@iinet.net.au wrote: I've got a program here that prints out a percentage of it's completion. Currently with my implimentation it prints like this: 0% 1% 2% 3% 4% etc taking up lots and lots of lines of output... So, how can I make it write the percentage on the

Re: Will multithreading make python less popular?

2009-03-05 Thread Hendrik van Rooyen
Aahz a...@pythoncraft.com wrote: In article mailman.99.1234863853.11746.python-l...@python.org, Hendrik van Rooyen m...@microcorp.co.za wrote: If Aahz was trolling, then he got me. I know about William of Occam, after whom the language was named, and his razor, but did not make

Re: Question about binary file reading

2009-03-04 Thread Hendrik van Rooyen
Benjamin Peterson b...@phon.org wrote: So called encodings like hex and rot13 are abuse of encode() method. encode() should translate between byte strings and unicode, not preform transformations like that. This has been removed in 3.x, so you should use binascii. When all else fails, and just

Re: String Identity Test

2009-03-04 Thread Hendrik van Rooyen
S Arrowsmith si...intbox.UUCP wrote: Small integers get a similar treatment: a = 256 b = 256 a is b True a = 257 b = 257 a is b False This is weird - I would have thought that the limit of small would be at 255 - the biggest number to fit in a byte. 256 takes two bytes, so it

Re: Dr Dobbs' Python Weekly URL Archive?

2009-03-04 Thread Hendrik van Rooyen
Steve Holden ste.nweb.com wrote: My well-known-search-engine-foo must be at an all-time low today. *Is* there an index and I can't see for looking? typing in python weekly at google gives me: Python-URL!The bookmark for this page is: http://purl.org/thecliff/python/url.html. Dr. Dobb's

Re: Opening for Python Programmer at Newport Beach

2009-03-03 Thread Hendrik van Rooyen
Diez B. Roggisch de...@nospam.web.dewrote: Is your email program broken or what? Why are you sending the same exact message 5 times!? Not to mention that the name Cool Dude isn't exactly convincing me that I should apply for a job there... Quite so. The only name that could

Re: Python AppStore / Marketplace

2009-02-24 Thread Hendrik van Rooyen
Rhodri James rh...@wi..mon.co.uk wrote: A souq is a bazaar :-) Well, close enough anyway. It's another arabic word that translates as market in both the mercantile and financial senses, I believe. Maybe I've just read too much arabic-themed fiction, but I was surprised not to find

Re: `high overhead of multiple Python processes' (was: Willmultithreading make python less popular?)

2009-02-22 Thread Hendrik van Rooyen
Paul Rubin http://phr...@nospam.invalid wrote: The cost of messing with the multiprocessing module instead of having threads work properly, and the overhead of serializing Python data structures to send to another process by IPC, instead of using the same object in two threads. Also, one way

Re: Byte type?

2009-02-22 Thread Hendrik van Rooyen
Christian Heimes liss.de wrote: John Nagle wrote If bytes, a new keyword, works differently in 2.6 and 3.0, that was really dumb. There's no old code using bytes. So converting code to 2.6 means it has to be converted AGAIN for 3.0. That's a good reason to ignore 2.6 as

Re: Threading and tkinter

2009-02-20 Thread Hendrik van Rooyen
gert ger.@gmail.com Hope you do not mind ignoring part of answers, so I can figure out more why things work the way they are. This two examples work, what i do not understand is that in function display i do not have to declare root, v or x ? x is easy - it was declared outside, in

Re: Will multithreading make python less popular?

2009-02-20 Thread Hendrik van Rooyen
Steve Holden ste...@..web.com wrote: heresyPerhaps it's time Python stopped being a dictatorship?/heresy This will need a wholesale switch to the worship of Freya - It is rumoured that She is capable of herding cats. - Hendrik -- http://mail.python.org/mailman/listinfo/python-list

Re: Threading and tkinter

2009-02-19 Thread Hendrik van Rooyen
gert gert...@gmail.com wrote: On Feb 18, 8:25 am, Hendrik van Rooyen m...@microcorp.co.za wrote: gert gert.cuyk...@gmail.comwrote: After reading the docs and seeing a few examples i think this should work ? Am I forgetting something here or am I doing something stupid ? Anyway I

Re: PIL install driving me mad! With solution!

2009-02-19 Thread Hendrik van Rooyen
bleah jo...@ph...arizona.edu wrote: I'm trying to get PIL 1.16 installed on a SUSE SLES10 system, and cannot, for the life of me, get the thing to compile with jpeg support. The libjpeg-devel libraries are installed, and are present in /usr/lib JUST WHERE SPECIFIED in the setup.py file, and the

Re: Will multithreading make python less popular?

2009-02-17 Thread Hendrik van Rooyen
Aahz a...@pyaft.com wrote: In article mailman.52.1234797812.11746.python-l...@python.org, Hendrik van Rooyen maorp.co.za wrote: Occam was the language that should have won the marketing prize, but didn't. It wasn't simple enough. I thought (at the time) that it was quite good

Re: Will multithreading make python less popular?

2009-02-17 Thread Hendrik van Rooyen
Ben Finney bignose+hates-s...@benfinney.id.au wrote: a...@pythoncraft.com (Aahz) writes: In article mailman.52.1234797812.11746.python-l...@python.org, Hendrik van Rooyen m...@microcorp.co.za wrote: Occam was the language that should have won the marketing prize, but didn't. It wasn't

Re: Threading and tkinter

2009-02-17 Thread Hendrik van Rooyen
gert gert.cuyk...@gmail.comwrote: After reading the docs and seeing a few examples i think this should work ? Am I forgetting something here or am I doing something stupid ? Anyway I see my yellow screen, that has to count for something :) from tkinter import * from threading import

Re: Will multithreading make python less popular?

2009-02-16 Thread Hendrik van Rooyen
andrew cooke and...@aorg wrote: The GIL is an implementation detail. I suspect that it could be largely removed if there was sufficient need. But that still wouldn't make Python a good language for programming on multiple cores. That's not as big a deal as you think, because we currently

Fw: Can Python serial support run at 45.45 baud?

2009-02-15 Thread Hendrik van Rooyen
Hendrik van Rooyen ma...@morp.co.za wrote: If you can get down so low in baud rate, then you can fudge it in software. Set the port to the single stop bit, and make a transmit character function that outputs a single character and a flush(), and then waits for a bit time or so

Re: Can Python serial support run at 45.45 baud?

2009-02-15 Thread Hendrik van Rooyen
John Nagle na...@...ats.comwrote: So the correct combination, 5 bits with 1.5 stop bits, isn't supported in Python. 1 stop bit will not physically work on Baudot teletypes; the main camshaft doesn't come around fast enough. (Yes, there's an actual mechanical reason for 1.5 stop bits.)

Re: Can Python serial support run at 45.45 baud?

2009-02-15 Thread Hendrik van Rooyen
MRAB goo...@m...tt.plus.com wrote: Grant Edwards wrote: On 2009-02-14, John Nagle na...@animats.com wrote: Can Python's serial port support be made to run at 45.45 baud, the old 60 speed Teletype machine speed? If your hardware and OS supports it, Python can be made to support

Re: is there a project running (GUI Builder for Python ) ?

2009-02-13 Thread Hendrik van Rooyen
azrael ju...@gmail.com wrote: To be honest, in compare to Visual Studio, Gui Builders for wx widgets are really bad. Also completly for python there is not one good GuiBuilder. The only one I have seen that would come near VS was BoaConstructor, But the number of Bugs is just horrific. Too

Re: Functional schmunctional...

2009-02-11 Thread Hendrik van Rooyen
Steve Holden stenweb.com wrote: Jeez, doesn't anyone read the fine manual any more? I hope this was just an academic exercise. socket.inet_ntoa(struct.pack(!l, 10)) '59.154.202.0' Holden's rule: when it looks simple enough to be worth including in the standard library it

Re: select.poll.poll() never blocks

2009-02-11 Thread Hendrik van Rooyen
birdsong dav...@gmail.comwrote: 8--- select not blocking on empty file stuff - Any help on what I'm missing would be appreciated. Why do you expect it to block? It is ready to read, to return end of file. - Hendrik --

Re: Python 3D CAD -- need collaborators, or just brave souls :)

2009-02-10 Thread Hendrik van Rooyen
rantingrick ra.@gmail.com wrote 8 - dreams, goals and tentative spec - Have you looked at Pycad ? - it started off with a similar rush some time ago. Maybe there is something there that you can use and/or salvage. - Hendrik --

Re: Simple question - stock market simulation

2009-02-10 Thread Hendrik van Rooyen
cptn.spoon cpt..n@gmail.com wrote: On Feb 9, 6:48 pm, Hendrik van Rooyen m...@microcorp.co.za wrote: No. At this level, just use a list of instances of your Stock class. - Hendrik How do I get a list of instances of a particular class? Is there a way to do this dynamically? Yes

Re: Scanning a file character by character

2009-02-10 Thread Hendrik van Rooyen
Spacebar265 spa...@gmail.com wrote: Thanks. How would I do separate lines into words without scanning one character at a time? Type the following at the interactive prompt and see what happens: s = This is a string composed of a few words and a newline\n help(s.split) help(s.rstrip)

Re: Problem with Tkinter's scale function.

2009-02-10 Thread Hendrik van Rooyen
Nicholas Feinberg wrote: Code that caused the problem (unlikely to be helpful, but no reason not to include it): self.canvas.scale(self.body,self.radius/(self.radius-.5),self.radius/(self.radi us-.05),0,0)#radius is greater than .5 scale's arguments are:

Re: Importing a file (not a module).

2009-02-09 Thread Hendrik van Rooyen
Luis Zarrabeitia ky...@u...cu wrote: Is there any way to import a .py file that is not on sys.path? I'd like to 'import' a file that resides somewhere on my filesystem without having to add it's directory to sys.path. At first, I thought that something like my_module = __import__(path/to/file)

Re: Simple question - stock market simulation

2009-02-09 Thread Hendrik van Rooyen
cptn.spoon cp..@gmail.com wrote: On Feb 9, 3:58 pm, Paul Rubin http://phr...@nospam.invalid wrote: Thanks Paul! I thought this might be the case. So how would I get the StockMarket class instance to contain many Stock class instances and then be able to iterate through them? I'm guessing the

Re: wxPython vs Glade?

2009-02-09 Thread Hendrik van Rooyen
Steve Holden st...@holdenweb.com wrote: There's something called PythonCard built on top of wxPython that's fairly newb-friendly, though it gets clunkier as your demands grow. You might also want to look at Dabo, which is a much more comprehensive framework that also hides much of

Re: Question on Strings

2009-02-06 Thread Hendrik van Rooyen
John Machin s...@le..n.net wrote: By the way, has anyone come up with a name for the shifting effect observed above on str, and also with repr, range, and the iter* family? If not, I suggest that the language's association with the best of English humour be widened so that it be dubbed the Mad

Re: Is c.l.py becoming less friendly?

2009-02-05 Thread Hendrik van Rooyen
Mensanator m@aol.com On Feb 5, 4:20 pm, Terry Reedy tjre...@udel.edu wrote: mk wrote: (duck) 542 comp.lang.python rtfm What is so unfriendly about 'read the fine manual'? You've seen a fine manual? Oh Fine! - Hendrik -- http://mail.python.org/mailman/listinfo/python-list

Re: Is c.l.py becoming less friendly?

2009-02-05 Thread Hendrik van Rooyen
Steve Holden st...@h...eb.com wrote: Yes, and I'm fine well sure this is somewhere between a silly thread and a troll. Fine reads wrong - it should be fining. Silly? Us here on clp, silly? What a monstrous thought! I'll have you know this is a respectable establishment, and you should be

Re: Use list name as string

2009-02-04 Thread Hendrik van Rooyen
MRAB goo...@mrett.plus.com wrote: The actual names of the variables and functions shouldn't matter to the outside world; the name of an output file shouldn't depend on the name of a variable. That is a matter of opinion. It is however, an interesting problem, namely: How does one get

Re: Threading / Queue management

2009-02-03 Thread Hendrik van Rooyen
Power Button mjbuc...@gmail.com My question is, how can I create the Queue in my main object and set the target function for the Thread Constructor to be a function in foo? Just create it, giving it some name. Then start the static long running stuff, and pass the name you gave it. Pass the

Re: is python Object oriented??

2009-02-03 Thread Hendrik van Rooyen
Stephen Hansen wrote: 8 - arguments I don't agree with - P.S. Aiee, this discussion is getting overwhelmingly long. :) It is indeed and I do actually have other stuff to do so I shall try to retreat with defiant dignity. Been fun though, to see the other viewpoints when

Re: is python Object oriented??

2009-02-03 Thread Hendrik van Rooyen
Diez B. Roggisch de...@nospam.web.de Your argument would be valid if *any* of the *languages* implementing encapsulation would offer that real isolation. None does. So where from comes the feeling that this must be something a *language* should offer? Sure one could envision a system where

Re: Python Global State

2009-02-03 Thread Hendrik van Rooyen
er wrote: Simple question, I think: Is there a way to make a completely global variable across a slew of modules? If not, what is the canonical way to keep a global state? The purpose of this is to try to prevent circular module imports, which just sort of seems nasty. Thank you! Take

Re: is python Object oriented??

2009-02-03 Thread Hendrik van Rooyen
Scott David Daniels s..@acm.org wrote: You might enjoy looking at QNX, since I think it is built along the lines you are describing here. I have an ancient copy of their OS, but haven't followed for more than couple of decades. I vaguely know about it, and I know they claim to be hot on

Re: socket.unbind or socket.unlisten? - socket.error: (48, 'Addressalready in use')

2009-02-02 Thread Hendrik van Rooyen
Steve Holden s...@hol.eb.com wrote: My previous reply assumed you are running some UNIX-like operating system. If you are on Windows then Jean-Paul's advice stands, as Windows *does* allow several processes to listen on the same port and randomly delivers incoming connections to one of the

Re: is python Object oriented??

2009-02-02 Thread Hendrik van Rooyen
rd.mur...@bitdance.com wrote: You, sir, should be programming in some language other than Python. Why? - Python is object oriented, but I can write whole systems without defining a single class. By analogy, if data hiding is added to language, I could write a whole system without hiding

Re: is python Object oriented??

2009-02-02 Thread Hendrik van Rooyen
r..@bi...nce.com wrote: Quoth Hendrik van Rooyen m...@mi...orp.co.za: Now there are a LOT of dicey statements in the above passionate plea - python is a language, and not a philosophy, but I won't go into that, as that would lead off onto a tangent, of which there have been

Re: is python Object oriented??

2009-02-02 Thread Hendrik van Rooyen
Hendrik: I wonder why the designers of processors do such silly things as having user and supervisor modes in the hardware - according to your arguments a code review would solve the problem, and then they could use the silicon saved to do other usefull stuff. - then any process could

Re: is python Object oriented??

2009-02-02 Thread Hendrik van Rooyen
Stephen Hansen apt.shan...@gmail.com wrote: 8--- arguments for the status quo -- I'm missing the careful explanation. What I've heard is that the lack of enforced encapsulation is a danger. What I've heard is that people want it because they've been told they should want it and

Re: is python Object oriented??

2009-02-02 Thread Hendrik van Rooyen
rdmur...@bi..nce.com wrote: Quoth Hendrik van Rooyen m...@microcorp.co.za: rd.mur...@bitdance.com wrote: You, sir, should be programming in some language other than Python. 8- reasons given This is IMO an arrogant attitude - My apologies

Re: SimpleXMLRPCServer question

2009-02-01 Thread Hendrik van Rooyen
flagg iana.@gmail.com wrote: Let me see if i can elaborate on the requirements. I have 20+ different zone files. I want the xmlrpc server to be able to determine what zone file to open by looking at the incoming xml request. For example one of the functions I have now is to show a DNS

Re: Why doesn't eval of generator expression work with locals?

2009-01-30 Thread Hendrik van Rooyen
Gabriel Genellina gagsl-...@yahoo.com.ar wrote: Of course this is clearly stated in the Language Reference Variables used in the generator expression are evaluated lazily in a separate scope when the next() method is called for the generator object (in the same fashion as for normal generators).

Re: Why doesn't eval of generator expression work with locals?

2009-01-30 Thread Hendrik van Rooyen
Gabriel Genellina ga.@yaz.oo.com.ar wrote: Consider this expression: g = (x+A for x in L for y in M). This is currently expanded more or less like this: def foo(L): for x in L: for y in M: yield x+A g = foo(iter(L)) (as your example above) Note that L has a special status

Re: Why doesn't eval of generator expression work with locals?

2009-01-29 Thread Hendrik van Rooyen
Gabriel Genellina gagsl-...@yahoo.com.ar wrote: Seems that it is important *when* those functions are evaluated, but I don't understand *why*... Because the scope changes - see also the recent thread on exec woes where towards the end I put in a similar example - funny, it must the flux or

Re: Why doesn't eval of generator expression work with locals?

2009-01-29 Thread Hendrik van Rooyen
Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Wed, 28 Jan 2009 16:00:43 -0200, Scott David Daniels scott.dani...@acm.org escribió: The reason is that once your created object has its id taken, you must keep a handle on it, otherwise it may get recycled and reused. It doesn't matter in

Re: Exec woes

2009-01-29 Thread Hendrik van Rooyen
Rhodri James rho...@wildebst.demon.co.uk wrote: To: python-list@python.org Sent: Thursday, January 29, 2009 6:12 AM Subject: Re: Exec woes On Wed, 28 Jan 2009 07:47:00 -, Hendrik van Rooyen m...@mic,..p.co.za wrote: This is actually not correct - it is the root cause of my trouble

Re: socket.unbind or socket.unlisten? - socket.error: (48, 'Addressalready in use')

2009-01-27 Thread Hendrik van Rooyen
Laszlo Nagy ga...@s..eus.com wrote: I have a program that uses socket.bind() and socket.listen() frequently. After that program stops, it is not able to bind() again for a while: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)

Re: socket.unbind or socket.unlisten? - socket.error: (48, 'Address already in use')

2009-01-27 Thread Hendrik van Rooyen
Jean-Paul Calderone ex.@di..od.com wrote: 8-- ... Setting the SO_REUSEADDR flag on POSIX fixes this problem (don't set it on Windows, though). Why not? I have been merrily setting it, and I have not noticed anything weird. (yet) - Hendrik --

Re: Does Python really follow its philosophy of Readability counts?

2009-01-27 Thread Hendrik van Rooyen
Luis Zarrabeitia k@uh.cu wrote: 8 Hehe. At the beginning of this thread, I also thought that Russ P. and Paul Robin were the same person. I have serious problems with names. *nods in agreement, because the man's surname is Rubin, not Robin* :-) - Hendrik --

Exec woes

2009-01-27 Thread Hendrik van Rooyen
It starts with the conspiracy of silence at the interactive prompt: Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)] on win32 Type copyright, credits or license() for more information. IDLE 1.1.3 No Subprocess help(exec) SyntaxError: invalid syntax Its

Re: Exec woes

2009-01-27 Thread Hendrik van Rooyen
Stephen Hansen wrote: Hendrik van Rooyen wrote: IDLE 1.1.3 No Subprocess help(exec) SyntaxError: invalid syntax Its the same under Linux SuSe, Python 2.5.1. I think this is a BUG. Exec is a statement, not a function nor an object: even though you can enclose parens around its

Re: Does Python really follow its philosophy of Readability counts?

2009-01-25 Thread Hendrik van Rooyen
Paul Rubin http://phr...@nospam.invalid wrote: Steven D'Aprano st...@remove-this-cybersource.com.au writes: We're not talking specifically about Python standard library changes, we're talking about any project which may have more entertaining *cough* policies regarding API changes.

Re: The First Law Of comp.lang.python Dynamics

2009-01-24 Thread Hendrik van Rooyen
Martin P. Hellwig martin.hell...@dcuktec.org wrote: Or you can argue that even when an argument is repeated indefinitely it doesn't make it suddenly right. This is no good. It's a well known fact that anything I tell you three times is true. To demonstrate: Tim Rowe's post earlier in this

Re: Does Python really follow its philosophy of Readability counts?

2009-01-16 Thread Hendrik van Rooyen
James Mills prolo...tcircuit.net.au wrote: At the most basic level do you really think a machine really cares about whether -you- the programmer has illegally accessed something you shouldn't have ? Yes it does - this is exactly why some chips have supervisor and user modes - to keep the

Re: Convention vs. fascism

2009-01-16 Thread Hendrik van Rooyen
Aaron Brady cas@gmail.com wrote: On Jan 15, 6:41 pm, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Fri, 16 Jan 2009 10:24:19 +1100, Ben Finney wrote: Steven D'Aprano st...@remove-this-cybersource.com.au writes: On Fri, 16 Jan 2009 07:58:49 +1100, Ben Finney wrote:

Re: spam on the list - how are things now?

2009-01-16 Thread Hendrik van Rooyen
Terry Reedy tjre...@udel.edu wrote: James Mills wrote: On Fri, Jan 16, 2009 at 1:30 PM, s...@pobox.com wrote: We've been running SpamBayes on the news-to-mail gateway on mail.python.org for a couple weeks now. To me it seems like the level of spam leaking onto the list has dropped way

Re: Convention vs. fascism [OT]

2009-01-16 Thread Hendrik van Rooyen
Steven D'Aprano st...@remove-thisurce.com.au wrote: And... skull socks? Cool. Where can I get some? Don't you remember? - Google the group - there was some dust raised about them some time ago. I think he got them from KDW - Kaufhaus Der Welt aka Klau Dir Was :-) - Hendrik --

Re: read string in bits

2009-01-14 Thread Hendrik van Rooyen
Chris Rebert c...@rebertia.com wrote: It's not quite clear to me what you mean, but here are 2 guesses: - If you want to convert an ASCII character to its ASCII integer value, use ord() - If you want to convert an integer into a string of its base-2 representation, use bin() [requires

Re: are there some special about '\x1a' symbol

2009-01-14 Thread Hendrik van Rooyen
Steve Holden stevenweb.com wrote: Unknown wrote: On 2009-01-12, John Machin sjmac...@lexicon.net wrote: I believe that feature was inherited by CP/M from DEC OSes (RSX-11 or RSTS-11). AFAICT, all of CP/M's file I/O API (including the FCB) was lifted almost directly from DEC's

Re: Does Python really follow its philosophy of Readability counts?

2009-01-12 Thread Hendrik van Rooyen
Steve Holden st...@de...nweb.com wrote: r wrote: (about another Steven) WOW Steven, i am very impressed. That's the first thing you have said in a very long time that i totally agree with! Keep this up and i may put you back on my Python Brethren list :) What can one do to get *off*

Re: having problems with a multi-conditional while statement

2009-01-07 Thread Hendrik van Rooyen
Philip Semanchuk ph...@nchuk.com wrote: 8 nice explanation Change the and to an or and you'll get the result you expected. Also google for De Morgan, or De Morgan's laws Almost everybody stumbles over this or one of it's corollaries at least once in their

Re: why cannot assign to function call

2009-01-07 Thread Hendrik van Rooyen
Mark Wooding m.@distorted.org.uk wrote: A better analogy. The objects are scattered across the floor. No object is contained in another. However, we have a plentiful supply of bits of string, each of which is tied to a Teflon-covered paperweight at one end and has a blob of Blu-Tack on

Re: image recogniton?

2009-01-06 Thread Hendrik van Rooyen
Li Han liha@gmail.comwrote: Hi! I know little about the computer image processing, and now I have a fancy problem which is how to read the time from the picture of a clock by programming ? Is there anyone who can give me some suggestions? When the big hand is on the twelve, and the

Re: why cannot assign to function call

2009-01-04 Thread Hendrik van Rooyen
Aaron Brady ca...@gmail.com wrote: No; tuples are composite. If I flip one bit in a byte somewhere, is it the same byte? Yes and No and No and Others: Yes it is the byte at the same somewhere in memory. No it is not the same as it was a moment ago, because the bit has flipped. No it is one of

Re: Is there a better algorithm?

2009-01-03 Thread Hendrik van Rooyen
bearophile wrote: Fuzzyman: for i in l: u = None if len(i) == 2: k, v = i else: k, u, v = i That's the best solution I have seen in this thread so far (but I suggest to improve indents and use better variable names). In programming it's generally better to follow the KISS

Re: select.select and socket.setblocking

2008-12-31 Thread Hendrik van Rooyen
Francesco Bochicchio b...@virgilio.it wrote: but then, IIRC TCP guarantees that the packet is fully received by hand-shaking at transport level between sender and receiver. Ad once the packet is fully in the receiver buffer, why should recv choose to give back to the application only a

Re: poblem regarding opening a html file

2008-12-29 Thread Hendrik van Rooyen
Sibtey Mehdi wrote: Hi I have a GUI application (wxpython) that calls another GUI Application. I m using os.system (cmd) to launch The second GUI, in the second GUI I m trying to open the html file using the os.startfile (filename) function but It takes lots of time to open the html

Re: ctypes strings

2008-12-28 Thread Hendrik van Rooyen
Gabriel Genellina gagsl-...@yahoo.com.ar wrote: Hmmm, I don't think posting a potentially harmful example is actually a good idea... True - its my only example though, and nobody else was bothering to reply, so I kicked off and flushed out some response. Who was it that said that the way to

Re: ctypes strings

2008-12-27 Thread Hendrik van Rooyen
Red Rackham wrote: I would like to pass a string into a dll function. I notice that to pass using ctypes, it has to be a ctypes type. Looking at the ctypes doc page I don't see a c_string class. The following seems to work for me: In the c programme: /* This routine outputs and inputs

Re: I always wonder ...

2008-12-27 Thread Hendrik van Rooyen
Carl Banks pav...@gmail.com wrote: If you have to followup, at least keep your reply to something short and witty, like, Go away, troll. OK will do see next post. - Hendrik -- http://mail.python.org/mailman/listinfo/python-list

Re: Python's popularity (a bit OT)

2008-12-27 Thread Hendrik van Rooyen
r rt8...@gmail.com wrote: I think you missed my point Steven, I was in no way proud of the fact of my 9th place rating. It just proves my point to the small following of this group. And frankly makes me feel bad. This spurt of high frequency posts is something that seems to happen to most

Re: Python's popularity

2008-12-23 Thread Hendrik van Rooyen
r rt8...@gmail.com wrote: 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! What an amazing thing to say! Doesn't yours? - Hendrik -- http://mail.python.org/mailman/listinfo/python-list

Re: Python's popularity

2008-12-23 Thread Hendrik van Rooyen
r rt8...@gmail.com wrote:: The writing is on the Wall! Yes it is, and as always, it says : Mene, mene, tekel epharsim. If my protestant upbringing hasn't failed me, it means: Weighed, and found wanting. - Hendrik -- http://mail.python.org/mailman/listinfo/python-list

Re: Is this pythonic?

2008-12-18 Thread Hendrik van Rooyen
Bruno Desthuilliers bru.@websiteburo.invalid wrote: ipyt...@gmail.com a écrit : x.validate_output(x.find_text(x.match_filename (x.determine_filename_pattern(datetime.datetime.now() Is it even good programming form? functional programming addicts might say yes. But as far as I'm

Re: Transferring a file over sockets

2008-12-17 Thread Hendrik van Rooyen
Ferdinand Sousa wrote: == .# file receiver # work in progress import socket s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) HOST = '192.168.1.17' PORT = 31400 s.bind((HOST, PORT)) s.listen(3) conn, addr = s.accept() print 'conn at

Re: alt.possessive.its.has.no.apostrophe

2008-12-16 Thread Hendrik van Rooyen
Dennis Lee Bieber w@ix.netcom.com wrote: 8- stuff blaming Davy for aluminum -- Isn't Davy a Brit? No, he was a Brit. He's dead now. His safety lamp lives on. It's a good thing its got that heat-sink sieve- it's enabled countless miners to flee when they see its change of

Re: alt.possessive.its.has.no.apostrophe

2008-12-16 Thread Hendrik van Rooyen
Aaron Brady castiro...@gmail.com wrote: There's an 'I' in Python. No! It's supposed to be : There's a T in python. an is only used when the next word starts with a vowel, as in: It's been an hour now... All this is because English speakers are genetically incapable of moving their

Re: Guido's new method definition idea

2008-12-06 Thread Hendrik van Rooyen
James Stroud jst...bi.ucla.edu wrote: Consider the maverick who insists on 8example with me instead of self What's the interpreter going to do with our maverick's code? Took me a while, but after I remembered that a maverick is an unmarked, wild member of the bovine species

Re: RELEASED Python 3.0 final

2008-12-06 Thread Hendrik van Rooyen
Ben Finney [EMAIL PROTECTED] wrote: I hereby recommend “pish and tosh” for use by anyone who wants to counter someone's point. It beats by a country furlong the invective that has become regrettably common here in recent months. I second the motion to use pish and tosh for a first level of

<    1   2   3   4   5   6   7   8   9   >