Re: No os.copy()? Why not?

2012-04-03 Thread Thomas Rachel
Am 02.04.2012 23:11 schrieb HoneyMonster: One way: import os os.system (cp src sink) Yes. The worst way you could imagine. Why not the much much better from subprocess subprocess.call(['cp', 'src', 'sink']) ? Then you can call it with (really) arbitrary file names: def call_cp(from,

xlrd 0.7.4 released!

2012-04-03 Thread Chris Withers
Hi All, I'm pleased to announce the release of xlrd 0.7.4. This release features the following changes: - Fixed a bug where xlrd was silently truncating long text formula results - Avoid parsing STYLE records when formatting_info=False - More tolerance of out-of-spec files. - Minor

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-03 Thread Chris Angelico
On Tue, Apr 3, 2012 at 8:05 AM, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Thu, 29 Mar 2012 08:48:53 -0700 (PDT), Steve Howell showel...@yahoo.com declaimed the following in gmane.comp.python.general:        REXX is inhibited by the architectures to which it has been ported --

Re: xlrd 0.7.4 released!

2012-04-03 Thread Lukas Graf
Hey Chris, On Tuesday, April 3, 2012 9:04:43 AM UTC+2, Chris Withers wrote: Hi All, I'm pleased to announce the release of xlrd 0.7.4. There seems to have been a mistake during release of 0.7.4: version.txt referenced in setup.py:24 is missing (forgot MANIFEST?) and therefore the package

Re: [pyxl] xlrd 0.7.4 released!

2012-04-03 Thread Chris Withers
On 03/04/2012 08:04, Chris Withers wrote: Hi All, I'm pleased to announce the release of xlrd 0.7.4. *sigh* As pointed out, I stuffed up the release by not including a new file in the MANIFEST. My bad. I've just release a 0.7.5 that fixes this. cheers, Chris -- Simplistix - Content

Re: [pyxl] xlrd 0.7.4 released!

2012-04-03 Thread Lukas Graf
On Tuesday, April 3, 2012 9:34:27 AM UTC+2, Chris Withers wrote: As pointed out, I stuffed up the release by not including a new file in the MANIFEST. My bad. I've just release a 0.7.5 that fixes this. Works! Thanks for the quick reaction! Regards, Lukas --

Re: why can't I pickle a class containing this dispatch dictionary?

2012-04-03 Thread Peter Otten
jkn wrote: I'm clearly not understanding the 'can't pickle instancemethod objects' error; can someone help me to understand, I think classes implemented in C need some extra work to make them picklable, and that hasn't been done for instance methods. maybe suggest a workaround,

Re: No os.copy()? Why not?

2012-04-03 Thread John Ladasky
I use subprocess.call() for quite a few other things. I just figured that I should use the tidier modules whenever I can. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Programing Art or Science?

2012-04-03 Thread Tim Bradshaw
On 2012-04-03 00:52:35 +0100, Jürgen Exner said: Oh, that's why it is tought in trade schools alongside butchery, plumbing, masonry, and chimney sweeping and why you don't find any programming classes at university. So, you know, no one would do law or medicine at a university. Oh, wait. --

Re: Is Programing Art or Science?

2012-04-03 Thread Devin Jeanpierre
On Tue, Apr 3, 2012 at 12:26 AM, Chiron chiron613.no.spam.@no.spam.please.gmail.com wrote: 〈Is Programing Art or Science〉 Why is this question important? That's the whole point of the article/email. Xah basically says This question is stupid and only stupid people care about it. You probably

Re: Is Programing Art or Science?

2012-04-03 Thread Torsten Mueller
Xah Lee xah...@gmail.com wrote: So, is programing a art or science? is it art or science? I really need to know. Sience? Almost never. It's handcraft. Seldom, in very rare cases, it's true art for a very limited audience, mostly it's routine, and in many cases it's also idiocy. T.M. --

Re: Is Programing Art or Science?

2012-04-03 Thread Alan Mackenzie
Hi, Xah, In comp.emacs Xah Lee xah...@gmail.com wrote: For these computing jockeys, there remains the question of why Knuth named his books the ?Art? of Computer Programing, or why some computing luminaries litter the caution that programing is as much a art as science. What elite dimwits

Re: weird behaviour: pygame plays in shell but not in script

2012-04-03 Thread Chris Angelico
On Thu, Mar 29, 2012 at 11:41 PM, Mik mikp...@gmail.com wrote: I can't believe I am so dumb! after sound.play() the script was terminating I didn't notice that 'play()' actually returns... What a nice way to introduce myself to the group!!! :-) sorry for bothering you guys :-) You've

Re: Python Script Works Locally But Not Remotely with SSH

2012-04-03 Thread Rod Person
On Sun, 1 Apr 2012 12:32:16 -0700 (PDT) Jedrzej Krzysztof Dec j...@jedrzejdec.eu wrote: Why the does the window not open when the script is started remotely? Thanks. Do You have a GUI over SSH? Something like ssh -X in Linux systems, or do You just have a terminal window? If You

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-03 Thread Nathan Rice
On Tue, Apr 3, 2012 at 1:40 AM, alex23 wuwe...@gmail.com wrote: On Apr 3, 2:55 pm, Nathan Rice nathan.alexander.r...@gmail.com wrote: I don't care what people do related to legacy systems. And that's what earns you the label 'architecture astronaut'. Legacy systems are _part_ of the problem;

Re: Is Programing Art or Science?

2012-04-03 Thread Alec Taylor
Programming is neither Art nor Science It's practically maths [pun intended] -- http://mail.python.org/mailman/listinfo/python-list

Re: weird behaviour: pygame plays in shell but not in script

2012-04-03 Thread Jean-Michel Pichavant
Mik wrote: Oh thanks alex! that's kind! PS: It looks like a party indeed: plenty of interesting discussions :-) On Mar 30, 4:33 am, alex23 wuwe...@gmail.com wrote: On Mar 29, 10:41 pm, Mik mikp...@gmail.com wrote: What a nice way to introduce myself to the group!!! :-) Hey,

Re: why can't I pickle a class containing this dispatch dictionary?

2012-04-03 Thread jkn
Hi Peter On Apr 3, 8:54 am, Peter Otten __pete...@web.de wrote: jkn wrote:     I'm clearly not understanding the 'can't pickle instancemethod objects' error; can someone help me to understand, I think classes implemented in C need some extra work to make them picklable, and that hasn't

Re: Is Programing Art or Science?

2012-04-03 Thread Peter Davis
On 3/30/2012 4:27 AM, Xah Lee wrote: Is Programing Art or Science? Programming itself is a bit like being a natural language translator for an autistic person. You have to understand the message to be communicated, and then interpret it *very* literally for the listener. Note that

Re: Python-URL! - weekly Python news and links (Mar 31)

2012-04-03 Thread Colin J. Williams
On 31/03/2012 11:38 AM, Cameron Laird wrote: I pine for the fjords. And it's time to bring Python-URL! to a close. Python-URL!, which Jean-Claude Wippler and I appear to have launched in 1998, has reached the end of its utility. We still have many loyal and enthusiastic readers--one

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-03 Thread rusi
On Apr 3, 5:39 pm, Nathan Rice nathan.alexander.r...@gmail.com wrote: Don't think underlying, instead think canonical. Ultimately, the answers to your questions exist in the world for you to see.  How does a surgeon describe a surgical procedure?  How does a chef describe a recipe?  How does

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-03 Thread Mark Lawrence
On 03/04/2012 14:51, rusi wrote: On Apr 3, 5:39 pm, Nathan Ricenathan.alexander.r...@gmail.com wrote: Don't think underlying, instead think canonical. Ultimately, the answers to your questions exist in the world for you to see. How does a surgeon describe a surgical procedure? How does a

Re: why can't I pickle a class containing this dispatch dictionary?

2012-04-03 Thread 88888 Dihedral
Peter Otten於 2012年4月3日星期二UTC+8下午3時54分50秒寫道: jkn wrote: I'm clearly not understanding the 'can't pickle instancemethod objects' error; can someone help me to understand, I think classes implemented in C need some extra work to make them picklable, and that hasn't been done for

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-03 Thread Chris Angelico
On Wed, Apr 4, 2012 at 12:26 AM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 03/04/2012 14:51, rusi wrote: Doing programming without programming languages is like using toenails to tighten screws The latter is extremely difficult if you bite your toenails :) I agree, thumbnails are far

Re: why can't I pickle a class containing this dispatch dictionary?

2012-04-03 Thread Peter Otten
jkn wrote: Hi Peter On Apr 3, 8:54 am, Peter Otten __pete...@web.de wrote: jkn wrote: I'm clearly not understanding the 'can't pickle instancemethod objects' error; can someone help me to understand, I think classes implemented in C need some extra work to make them picklable, and

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-03 Thread Grant Edwards
On 2012-04-03, Chris Angelico ros...@gmail.com wrote: On Wed, Apr 4, 2012 at 12:26 AM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 03/04/2012 14:51, rusi wrote: Doing programming without programming languages is like using toenails to tighten screws The latter is extremely difficult

Python and Bloomberg

2012-04-03 Thread SMac2347
Hello, I was just wondering if anyone had experience using Python to interact with Bloomberg. Ideally, I'd look to use Python to feed Bloomberg's OVML calculator with a list of inputs, and then use an additional program to grab the results of the calculator for each calculation, and pull them into

Is there a better way to do this snippet?

2012-04-03 Thread python
I played around with a few things and this works but was wondering if there was a better way to do this. My first thought was list comprehension but could not get a figure out the syntax. tag23gr is a list of lists each with two items. g23tag is an empty dictionary when I run the for loop below.

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-03 Thread Chris Angelico
On Wed, Apr 4, 2012 at 12:46 AM, Grant Edwards invalid@invalid.invalid wrote: Anybody remember DEC's VAX/VMS patch utility?  Apparently, DEC thought it was a practical way to fix things.  It had a built-in assembler and let you insert new code into a function by auto-allocating a location for

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-03 Thread Ian Kelly
On Tue, Apr 3, 2012 at 6:39 AM, Nathan Rice nathan.alexander.r...@gmail.com wrote: Did you miss the part where I said that most people who learn to program are fascinated by computers and highly motivated to do so? I've never met a BROgrammer, those people go into sales.  It isn't because

Re: Is there a better way to do this snippet?

2012-04-03 Thread Alain Ketterlin
python w.g.sned...@gmail.com writes: tag23gr is a list of lists each with two items. g23tag is an empty dictionary when I run the for loop below. When is is complete each key is a graphic name who's values are a list of tags. for item in tag23gr: ... value, key = tuple(item) ...

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-03 Thread Chris Angelico
On Wed, Apr 4, 2012 at 1:01 AM, Ian Kelly ian.g.ke...@gmail.com wrote: Real programmers are much more complex. Are you saying that some part of all of us is imaginary?? ChrisA -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a better way to do this snippet?

2012-04-03 Thread Chris Angelico
On Wed, Apr 4, 2012 at 12:36 AM, python w.g.sned...@gmail.com wrote: for item in tag23gr: ...     value, key = tuple(item) ...     if(g23tag.get(key)): ...             g23tag[key].append(value) ...     else: ...             g23tag[key] = [value] Simple enhancement: Use setdefault. Instead

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-03 Thread Mark Lawrence
On 03/04/2012 15:56, Chris Angelico wrote: On Wed, Apr 4, 2012 at 12:46 AM, Grant Edwardsinvalid@invalid.invalid wrote: Anybody remember DEC's VAX/VMS patch utility? Apparently, DEC thought it was a practical way to fix things. It had a built-in assembler and let you insert new code into a

Re: Is there a better way to do this snippet?

2012-04-03 Thread Peter Otten
python wrote: I played around with a few things and this works but was wondering if there was a better way to do this. My first thought was list comprehension but could not get a figure out the syntax. tag23gr is a list of lists each with two items. g23tag is an empty dictionary when I

Re: Is Programing Art or Science?

2012-04-03 Thread Rainer Weikusat
Xah Lee xah...@gmail.com writes: [...] For example, “Is mathematics science or art?”, is the same type of question that has been broached by dabblers now and then. http://en.wikipedia.org/wiki/Liberal_arts HTH. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a better way to do this snippet?

2012-04-03 Thread nn
On Apr 3, 11:02 am, Alain Ketterlin al...@dpt-info.u-strasbg.fr wrote: python w.g.sned...@gmail.com writes: tag23gr is a list of lists each with two items. g23tag is an empty dictionary when I run the for loop below. When is is complete each key is a graphic name who's values are a list

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-03 Thread Nathan Rice
On Tue, Apr 3, 2012 at 9:51 AM, rusi rustompm...@gmail.com wrote: On Apr 3, 5:39 pm, Nathan Rice nathan.alexander.r...@gmail.com wrote: Don't think underlying, instead think canonical. Ultimately, the answers to your questions exist in the world for you to see.  How does a surgeon describe

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-03 Thread Dave Angel
On 04/03/2012 11:16 AM, Mark Lawrence wrote: On 03/04/2012 15:56, Chris Angelico wrote: On Wed, Apr 4, 2012 at 12:46 AM, Grant Edwardsinvalid@invalid.invalid wrote: Anybody remember DEC's VAX/VMS patch utility? Apparently, DEC thought it was a practical way to fix things. It had a built-in

Re: No os.copy()? Why not?

2012-04-03 Thread Ian Kelly
On Tue, Apr 3, 2012 at 12:24 AM, Thomas Rachel nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa...@spamschutz.glglgl.de wrote: Am 02.04.2012 23:11 schrieb HoneyMonster: One way: import os os.system (cp src sink) Yes. The worst way you could imagine. Why not the much much better from

Re: Is there a better way to do this snippet?

2012-04-03 Thread Alain Ketterlin
nn prueba...@latinmail.com writes: for item in tag23gr: ...        value, key = tuple(item) ...        if(g23tag.get(key)): ...                g23tag[key].append(value) ...        else: ...                g23tag[key] = [value] for item in tag23gr:    

Re: Best way to structure data for efficient searching

2012-04-03 Thread John Nagle
On 3/28/2012 11:39 AM, larry.mart...@gmail.com wrote: I have the following use case: I have a set of data that is contains 3 fields, K1, K2 and a timestamp. There are duplicates in the data set, and they all have to processed. Then I have another set of data with 4 fields: K3, K4, K5, and a

Re: Is Programing Art or Science?

2012-04-03 Thread ccc31807
On Apr 2, 5:48 pm, Pascal J. Bourguignon This is a narrow-minded definition of programming. Well, that's the point. If we make a list and include things like: computer science software engineering computer engineering discrete math logic formal methods web development computer graphics

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-03 Thread Nathan Rice
On Tue, Apr 3, 2012 at 11:01 AM, Ian Kelly ian.g.ke...@gmail.com wrote: On Tue, Apr 3, 2012 at 6:39 AM, Nathan Rice nathan.alexander.r...@gmail.com wrote: Did you miss the part where I said that most people who learn to program are fascinated by computers and highly motivated to do so? I've

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-03 Thread rusi
On Apr 3, 9:15 pm, Nathan Rice nathan.alexander.r...@gmail.com wrote: On Tue, Apr 3, 2012 at 9:51 AM, rusi rustompm...@gmail.com wrote: On Apr 3, 5:39 pm, Nathan Rice nathan.alexander.r...@gmail.com wrote: Don't think underlying, instead think canonical. Ultimately, the answers to your

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-03 Thread Neil Cerutti
On 2012-04-03, Dave Angel d...@davea.name wrote: And I worked on a system where the microcode was in ROM, and there was a patch board consisting of lots of diodes and some EPROMs. The diodes were soldered into place to specfy the instruction(s) to be patched, and the actual patches were in

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-03 Thread rusi
All this futuristic grandiloquence: On Apr 3, 10:17 pm, Nathan Rice nathan.alexander.r...@gmail.com wrote: The crux of my view is that programming languages exist in part because computers in general are not smart enough to converse with humans on their own level, so we have to talk to them

Re: Is Programing Art or Science?

2012-04-03 Thread Pascal J. Bourguignon
ccc31807 carte...@gmail.com writes: On Apr 2, 5:48 pm, Pascal J. Bourguignon This is a narrow-minded definition of programming. Well, that's the point. If we make a list and include things like: computer science software engineering computer engineering discrete math logic formal

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-03 Thread Nathan Rice
A carpenter uses his tools -- screwdriver, saw, planer --to do carpentry A programmer uses his tools to to programming -- one of which is called 'programming language' Doing programming without programming languages is like using toenails to tighten screws I would argue that the

Re: Is there a better way to do this snippet?

2012-04-03 Thread nn
On Apr 3, 12:26 pm, Alain Ketterlin al...@dpt-info.u-strasbg.fr wrote: nn prueba...@latinmail.com writes: for item in tag23gr: ...        value, key = tuple(item) ...        if(g23tag.get(key)): ...                g23tag[key].append(value) ...        else: ...                

Re: No os.copy()? Why not?

2012-04-03 Thread D'Arcy Cain
On 03/28/12 16:12, John Ladasky wrote: I'm looking for a Python (2.7) equivalent to the Unix cp command. Since the equivalents of rm and mkdir are in the os module, I figured I look there. I haven't found anything in the documentation. I am also looking through the Python source code in os.py

What is the best way to freeze a Python 3 app (Windows)?

2012-04-03 Thread Paul Moore
I want to package up some of my Python 3 scripts to run standalone, without depending on a system-installed Python. For my development, I use virtualenv and install all my dependencies in the virtualenv, develop the script and test it. When I'm done, I want to build an executable which can run

Re: No os.copy()? Why not?

2012-04-03 Thread Tycho Andersen
On Tue, Apr 03, 2012 at 03:46:31PM -0400, D'Arcy Cain wrote: On 03/28/12 16:12, John Ladasky wrote: I'm looking for a Python (2.7) equivalent to the Unix cp command. Since the equivalents of rm and mkdir are in the os module, I figured I look there. I haven't found anything in the

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-03 Thread Terry Reedy
On 4/3/2012 8:39 AM, Nathan Rice wrote: Ultimately, the answers to your questions exist in the world for you to see. How does a surgeon describe a surgical procedure? How does a chef describe a recipe? How does a carpenter describe the process of building cabinets? Aside from specific

Re: What is the best way to freeze a Python 3 app (Windows)?

2012-04-03 Thread Andrew Berg
cx_Freeze is the only program that can freeze py3k code that I know of. I didn't have any major issues with it, but I've only played with it. In any case, if you're going to roll your own, I'd be happy to help test it. -- CPython 3.2.2 | Windows NT 6.1.7601.17640 --

Re: Re: No os.copy()? Why not?

2012-04-03 Thread Evan Driscoll
On 01/-10/-28163 01:59 PM, Tycho Andersen wrote: Note, though, that this reads the whole file into memory. As many others have said, shutil is the most idiomatic option. * most idiomatic * clearest in terms of showing intent * potentially fastest * hardest to screw up (unlike concatenating

Run once while loop

2012-04-03 Thread Anatoli Hristov
Hi, I'm trying to do a while loop with condition of time if time is 12:00:00 print text, but for this one second the text is printed at least 50 times, how can I print only once? Thank Anatoli -- http://mail.python.org/mailman/listinfo/python-list

Re: Run once while loop

2012-04-03 Thread Ian Kelly
On Tue, Apr 3, 2012 at 2:36 PM, Anatoli Hristov toli...@gmail.com wrote: Hi, I'm trying to do a while loop with condition of time if time is 12:00:00 print text, but for this one second the text is printed at least 50 times, how can I print only once? Set a flag when you print the text to

Re: xlrd 0.7.4 released!

2012-04-03 Thread Josh English
Maybe it's just me, but I tried to upgrade my previous versions of xlrd, xlwt, an xlutils and now some of the modules aren't loading properly. I am currently using Portable Python 2.7 at this workstation. I ran easy_install --upgrade xlrd and the result said it had updated. If I try to update

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-03 Thread Nathan Rice
On Tue, Apr 3, 2012 at 4:20 PM, Terry Reedy tjre...@udel.edu wrote: On 4/3/2012 8:39 AM, Nathan Rice wrote: Ultimately, the answers to your questions exist in the world for you to see.  How does a surgeon describe a surgical procedure?  How does a chef describe a recipe?  How does a carpenter

Re: [pyxl] Re: xlrd 0.7.4 released!

2012-04-03 Thread Adrian Klaver
On 04/03/2012 01:46 PM, Josh English wrote: Maybe it's just me, but I tried to upgrade my previous versions of xlrd, xlwt, an xlutils and now some of the modules aren't loading properly. I am currently using Portable Python 2.7 at this workstation. I ran easy_install --upgrade xlrd and the

Re: Run once while loop

2012-04-03 Thread Anatoli Hristov
On 03 Apr 2012, at 22:45, Ian Kelly ian.g.ke...@gmail.com wrote: On Tue, Apr 3, 2012 at 2:36 PM, Anatoli Hristov toli...@gmail.com wrote: Hi, I'm trying to do a while loop with condition of time if time is 12:00:00 print text, but for this one second the text is printed at least 50 times,

Re: Run once while loop

2012-04-03 Thread Ian Kelly
On Tue, Apr 3, 2012 at 3:00 PM, Anatoli Hristov toli...@gmail.com wrote: On 03 Apr 2012, at 22:45, Ian Kelly ian.g.ke...@gmail.com wrote: On Tue, Apr 3, 2012 at 2:36 PM, Anatoli Hristov toli...@gmail.com wrote: Hi, I'm trying to do a while loop with condition of time if time is 12:00:00

Re: Is Programing Art or Science?

2012-04-03 Thread Xah Lee
On Apr 3, 8:22 am, Rainer Weikusat rweiku...@mssgmbh.com wrote: Xah Lee xah...@gmail.com writes: [...] For example, “Is mathematics science or art?”, is the same type of question that has been broached by dabblers now and then. http://en.wikipedia.org/wiki/Liberal_arts this is the best

RE: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-03 Thread Phil Runciman
-Original Message- From: Mark Lawrence [mailto:breamore...@yahoo.co.uk] Sent: Wednesday, 4 April 2012 3:16 a.m. To: python-list@python.org Subject: Re: Number of languages known [was Re: Python is readable] - somewhat OT On 03/04/2012 15:56, Chris Angelico wrote: On Wed, Apr 4,

ANN: yamlish 0.8 released

2012-04-03 Thread Matej Cepl
yamlish 0.8 is now available at http://pypi.python.org/pypi/yamlish yamlish is a module for generating (and parsing) YAMLish (http://testanything.org/wiki/index.php/YAMLish). Release notes: -- * Don't leak tempfiles * setup.py test actually runs tests * add requires to

ANN: bayeux 0.2 released

2012-04-03 Thread Matej Cepl
Bayeux 0.2 is now available at http://pypi.python.org/pypi/bayeux bayeux is a module for generating TAP (http://testanything.org/). Version 0.2 is an initial version registered in the Cheesshop. Release notes: -- * module tap.py for programatic writing of TAP stream * clone of

Async IO Server with Blocking DB

2012-04-03 Thread looking for
Hi We are thinking about building a webservice server and considering python event-driven servers i.e. Gevent/Tornado/ Twisted or some combination thereof etc. We are having doubts about the db io part. Even with connection pooling and cache, there is a strong chance that server will block on

RE: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-03 Thread Phil Runciman
On Tue, Apr 3, 2012 at 4:20 PM, Terry Reedy tjre...@udel.edu wrote: On 4/3/2012 8:39 AM, Nathan Rice wrote: Ultimately, the answers to your questions exist in the world for you to see.  How does a surgeon describe a surgical procedure?  How does a chef describe a recipe?  How does

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-03 Thread Mark Lawrence
On 03/04/2012 19:42, Nathan Rice wrote: I view computer science as applied mathematics, when it deserves that moniker. When it doesn't, it is merely engineering. Is it still April first in your time zone? -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Best way to structure data for efficient searching

2012-04-03 Thread Roy Smith
On 3/28/2012 11:39 AM, larry.mart...@gmail.com wrote: I have a set of data that is contains 3 fields, K1, K2 and a timestamp. There are duplicates in the data set, and they all have to processed. Then I have another set of data with 4 fields: K3, K4, K5, and a timestamp. There are

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-03 Thread Steven D'Aprano
On Tue, 03 Apr 2012 13:17:18 -0400, Nathan Rice wrote: I have never met a programmer that was not completely into computers. That leaves a lot unspecified though. You haven't looked hard enough. There are *thousands* of VB, Java, etc. code monkeys who got into programming for the money only

Re: No os.copy()? Why not?

2012-04-03 Thread Steven D'Aprano
On Tue, 03 Apr 2012 15:46:31 -0400, D'Arcy Cain wrote: On 03/28/12 16:12, John Ladasky wrote: I'm looking for a Python (2.7) equivalent to the Unix cp command. Since the equivalents of rm and mkdir are in the os module, I figured I look there. I haven't found anything in the documentation. I

[issue802310] tkFont may reuse font names

2012-04-03 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset a77e23135675 by Andrew Svetlov in branch 'default': Issue #802310: Generate always unique tkinter font names if not directly passed http://hg.python.org/cpython/rev/a77e23135675 -- nosy: +python-dev

[issue802310] tkFont may reuse font names

2012-04-03 Thread Andrew Svetlov
Andrew Svetlov andrew.svet...@gmail.com added the comment: I've pushed fix inspired by Guilherme's suggestion. Fix has been applied to 3.3 only because: 1. It changes font name generation schema 2. It's definitelly minor issue as exists starting from 2003. Thanks. -- resolution: -

[issue6015] Tkinter Scrollbar in OS X 10.5

2012-04-03 Thread Andrew Svetlov
Andrew Svetlov andrew.svet...@gmail.com added the comment: Can anybody confirm this bug for OS X? -- nosy: +asvetlov, ned.deily type: performance - behavior versions: +Python 3.3 -Python 2.6 ___ Python tracker rep...@bugs.python.org

[issue14479] Replace transplant with graft in devguide

2012-04-03 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset b1dfbaae4458 by Georg Brandl in branch 'default': Closes #14479: replace transplant advice with graft http://hg.python.org/devguide/rev/b1dfbaae4458 -- nosy: +python-dev resolution: - fixed stage: needs

[issue14480] os.kill on Windows should accept zero as signal

2012-04-03 Thread Andrew Svetlov
New submission from Andrew Svetlov andrew.svet...@gmail.com: Starting from 3.2 Python supports os.kill for Windows. It process signal.CTRL_C_EVENT and signal.CTRL_BREAK_EVENT, and kills pid for all other signals. Posix allows to pass zero signal to check pid for existing. It will be nice to

[issue6015] Tkinter Scrollbar in OS X 10.5

2012-04-03 Thread Ned Deily
Ned Deily n...@acm.org added the comment: I am unable to reproduce this behavior with current versions of Python 2.7 or 3.2 on OS X 10.5.8 using either the most recent Apple-supplied Carbon Tcl/Tk 8.4 or with the latest ActiveState Tcl/Tk 8.4 nor with on OS X 10.7 with Tcl/Tk 8.4 or 8.5.

[issue14428] Implementation of the PEP 418

2012-04-03 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Hi Victor, I think you need to reconsider the time.steady() name you're using in the PEP. For practical purposes, it's better to call it time.monotonic() and only make the function available if the OS provides a monotonic clock. The

[issue14481] trivial formatting error in subprocess docs

2012-04-03 Thread Chris Rebert
New submission from Chris Rebert pyb...@rebertia.com: The final line under 17.1.4.2. Replacing shell pipeline (http://docs.python.org/dev/library/subprocess.html#replacing-shell-pipeline ) isn't formatted as code (e.g. monospaced); it should be. -- assignee: docs@python components:

[issue14466] Rip out mq instructions

2012-04-03 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: + hg import --no-commit mywork.patch Is the '' correct here? I would also mention hg diff right away, and explain about adding/removing files after that. The rest looks good. -- ___ Python

[issue14481] trivial formatting error in subprocess docs

2012-04-03 Thread Berker Peksag
Berker Peksag berker.pek...@gmail.com added the comment: Attached a patch. -- keywords: +patch nosy: +berker.peksag Added file: http://bugs.python.org/file25106/issue14481.diff ___ Python tracker rep...@bugs.python.org

[issue14482] multiprocessing.connection.Listener fails with invalid address on Windows

2012-04-03 Thread Popa Claudiu
New submission from Popa Claudiu pcmantic...@gmail.com: This is related to http://bugs.python.org/issue14151. When using an AF_UNIX address with multiprocessing.connection.Listener or Client, the following error will occur, due to the fact that AF_UNIX is not present in socket module.

[issue14288] Make iterators pickleable

2012-04-03 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Good idea Antoine. So, I'll with your suggested fix to the unittests I'll commit this and then look on while Rome burns. -- ___ Python tracker rep...@bugs.python.org

[issue14466] Rip out mq instructions

2012-04-03 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: On Tue, Apr 03, 2012 at 08:37:35AM +, Ezio Melotti wrote: Ezio Melotti ezio.melo...@gmail.com added the comment: + hg import --no-commit mywork.patch Is the '' correct here? No!. It should just be hg import --no-commit

[issue14482] multiprocessing.connection.Listener fails with invalid address on Windows

2012-04-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thanks. The patch looks good to me. -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14482 ___

[issue14288] Make iterators pickleable

2012-04-03 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 4ff234337e24 by Kristján Valur Jónsson in branch 'default': Issue #14288: Serialization support for builtin iterators. http://hg.python.org/cpython/rev/4ff234337e24 New changeset 51c88d51aa4a by Kristján Valur

[issue14428] Implementation of the PEP 418

2012-04-03 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: I think you need to reconsider the time.steady() name you're using in the PEP. For practical purposes, it's better to call it time.monotonic() I opened a new thread on python-dev to discuss this topic. and only make the function

[issue14480] os.kill on Windows should accept zero as signal

2012-04-03 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +brian.curtin stage: - needs patch type: behavior - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14480 ___

[issue14428] Implementation of the PEP 418

2012-04-03 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: STINNER Victor victor.stin...@gmail.com added the comment: I think you need to reconsider the time.steady() name you're using in the PEP. For practical purposes, it's better to call it time.monotonic() I

[issue14428] Implementation of the PEP 418

2012-04-03 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Patch version 4: - Rename time.monotonic() to time.steady() - Don't use CLOCK_MONOTONIC_RAW but CLOCK_MONOTONIC for time.highres() and time.steady() - Use CLOCK_HIGHRES, useful on Solaris - Rewrite time.highres() and time.steady()

[issue14428] Implementation of the PEP 418

2012-04-03 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: Removed file: http://bugs.python.org/file25053/pep418.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14428 ___

[issue14428] Implementation of the PEP 418

2012-04-03 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: Removed file: http://bugs.python.org/file25101/pep418-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14428 ___

[issue14428] Implementation of the PEP 418

2012-04-03 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: Removed file: http://bugs.python.org/file25103/pep418-3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14428 ___

[issue14428] Implementation of the PEP 418

2012-04-03 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: BTW: Are aware of the existing systimes.py module in pybench, which already provides interfaces to high resolution timers usable for benchmarking in a portable way ? Perhaps worth mentioning in the PEP. Nope, I didn't know it. It

[issue14481] trivial formatting error in subprocess docs

2012-04-03 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 2c1ce04ded55 by R David Murray in branch '2.7': #14481: fix formatting of example in subprocess docs. http://hg.python.org/cpython/rev/2c1ce04ded55 New changeset e5f5652bfe91 by R David Murray in branch '3.2':

[issue14481] trivial formatting error in subprocess docs

2012-04-03 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks. -- nosy: +r.david.murray resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14481

[issue14466] Rip out mq instructions

2012-04-03 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset e1d4b6dc9702 by Antoine Pitrou in branch 'default': Issue #14466: remove mq-based workflow http://hg.python.org/devguide/rev/e1d4b6dc9702 -- nosy: +python-dev ___ Python

[issue14466] Rip out mq instructions

2012-04-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Done, thank you. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14466

  1   2   >