Karrigell 3.1 released

2010-05-15 Thread Pierre Quentel
Hi, A new release of the web framework Karrigell has been released recently Its main fetaure is WSGI compliance Home page : http://karrigell.sourceforge.net Downloads : http://sourceforge.net/projects/karrigell/files/ Group : http://groups.google.com/group/karrigell?lnk= Cheers, Pierre --

ANN: Yappi(Yet Another Python Profiler) 0.51 released

2010-05-15 Thread Sumer Cip
Hi all, Yappi (Yet Another Python Profiler) 0.51 released. See the version highlights: * OPTIMIZATION:Use per-pit cpc for better accuracy in different timing_sample values. Now timing_sample is not linearly decreasing the timing accuracy for most of the applications tested. We reduced the

Re: Picking a license

2010-05-15 Thread Patrick Maupin
On May 15, 12:50 am, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Fri, 14 May 2010 08:37:14 -0700, Patrick Maupin wrote: The most obvious example was that the University of Berkley counter-sued Unix System Laboratories over USL's infringement of the BSD licence. Well, I

Re: an element from a set

2010-05-15 Thread Carl Banks
On May 14, 9:39 am, Terry Reedy tjre...@udel.edu wrote: On 5/14/2010 11:24 AM, gerardob wrote: Hello, let S be a python set which is not empty (http://docs.python.org/library/sets.html) i would like to obtain one element (anyone, it doesn't matter which one) and assign it to a

Re: an element from a set

2010-05-15 Thread Shashank Singh
On Sat, May 15, 2010 at 11:53 AM, Carl Banks pavlovevide...@gmail.comwrote: On May 14, 9:39 am, Terry Reedy tjre...@udel.edu wrote: On 5/14/2010 11:24 AM, gerardob wrote: Hello, let S be a python set which is not empty (http://docs.python.org/library/sets.html) i would like to

Re: Picking a license

2010-05-15 Thread Steven D'Aprano
On Fri, 14 May 2010 19:17:20 -0700, Patrick Maupin wrote: On May 14, 9:04 pm, Lawrence D'Oliveiro l...@geek- central.gen.new_zealand wrote: In message 548024fc- dd56-48b9-907d-3aa6a722b...@l31g2000yqm.googlegroups.com, Patrick Maupin wrote: The confusion that some are showing in this

Re: an element from a set

2010-05-15 Thread James Mills
On Sat, May 15, 2010 at 4:23 PM, Carl Banks pavlovevide...@gmail.com wrote: Which brings up an interesting question: how do you get a random element from a set? random.choice(list(s)) is the most straightforward way and will work a lot of the time, but how would you avoid creating the list?

Re: an element from a set

2010-05-15 Thread Chris Rebert
On Fri, May 14, 2010 at 11:23 PM, Carl Banks pavlovevide...@gmail.com wrote: On May 14, 9:39 am, Terry Reedy tjre...@udel.edu wrote: On 5/14/2010 11:24 AM, gerardob wrote: Hello, let S be a python set which is not empty (http://docs.python.org/library/sets.html) i would like to obtain one

Re: Picking a license

2010-05-15 Thread Patrick Maupin
On May 15, 1:34 am, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Fri, 14 May 2010 19:17:20 -0700, Patrick Maupin wrote: On May 14, 9:04 pm, Lawrence D'Oliveiro l...@geek- central.gen.new_zealand wrote: In message 548024fc-

help need to write a python spell checker

2010-05-15 Thread harry k
Write a spell checking tool that will identify all misspelled word in a text file using a provided dictionary. The program will accept either one or two command line parameters. 1. The first command line parameter is the name of the text file that will be checked. 2. The optional

Re: help need to write a python spell checker

2010-05-15 Thread Xavier Ho
1) Welcome to Python-List! 2) Python-list doesn't like to do other people's homework. 3) What have you tried? Cheers, Xav On Fri, May 14, 2010 at 6:19 PM, harry k hkiri...@yahoo.com.au wrote: Write a spell checking tool that will identify all misspelled word in a text file using a provided

Re: help need to write a python spell checker

2010-05-15 Thread James Mills
On Fri, May 14, 2010 at 6:19 PM, harry k hkiri...@yahoo.com.au wrote: Write a spell checking tool that will identify all misspelled word in a text file using a provided dictionary. Is this an assignment ? Sure looks like it! I don't see a question anywhere. --james --

Re: Broken pipe

2010-05-15 Thread Lie Ryan
On 05/15/10 11:56, Lawrence D'Oliveiro wrote: In message 4bec2a9...@dnews.tpgi.com.au, Lie Ryan wrote: On 05/13/10 22:41, Lawrence D'Oliveiro wrote: In message mailman.2720.1273210637.23598.python-l...@python.org, Chris Rebert wrote: Also, please don't use semicolons in your code. It's bad

yappi 0.51 released

2010-05-15 Thread k3xji
Hi all, Yappi (Yet Another Python Profiler) 0.51 released. See the version highlights: * OPTIMIZATION:Use per-pit cpc for better accuracy in different timing_sample values. Now timing_sample is not linearly decreasing the timing accuracy for most of the applications tested. We reduced the

Re: Puzzled by code pages

2010-05-15 Thread Lie Ryan
On 05/15/10 10:27, Adam Tauno Williams wrote: I'm trying to process OpenStep plist files in Python. I have a parser which works, but only for strict ASCII. However plist files may contain accented characters - equivalent to ISO-8859-2 (I believe). For example I read in the line: handle =

Re: help need to write a python spell checker

2010-05-15 Thread Tim Chase
2) Python-list doesn't like to do other people's homework. This could be fun... :) For this problem, all you have to do is a big if/elif/else statement for every possible mis-spelling. If you want to get really fancy, you could put all the mis-spellings in a set() and then test the

Human word reader

2010-05-15 Thread timo verbeek
I'm planning to create a human word program A human inputs a string Give me the weather for London please. Then I will strip the string. weather for london Then I get the useful information. what:weather where:london After that I use the info. I need help with getting the useful information how

Re: Human word reader

2010-05-15 Thread Xavier Ho
On Sat, May 15, 2010 at 9:02 PM, timo verbeek timoverbee...@gmail.comwrote: I'm planning to create a human word program snip I need help with getting the useful information how do I get the place if I don't now how long the string is? Boy, that is a very hard problem. Are the inputs

Re: Human word reader

2010-05-15 Thread Xavier Ho
On Sat, May 15, 2010 at 9:12 PM, Xavier Ho cont...@xavierho.com wrote: You need to have a very, very good set of heruistics and deterministic functions to do that. How do I get the position of a known word in a string if the length if unknown? And this is what I get for late night

Re: Human word reader

2010-05-15 Thread timo verbeek
On May 15, 1:02 pm, timo verbeek timoverbee...@gmail.com wrote: Place starts always with for -- http://mail.python.org/mailman/listinfo/python-list

Re: Picking a license

2010-05-15 Thread Ed Keith
--- On Fri, 5/14/10, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: From: Steven D'Aprano st...@remove-this-cybersource.com.au Subject: Re: Picking a license To: python-list@python.org Date: Friday, May 14, 2010, 10:59 PM On Fri, 14 May 2010 06:39:05 -0700, Ed Keith wrote:

Re: Picking a license

2010-05-15 Thread Ethan Furman
Steven D'Aprano wrote: On Thu, 13 May 2010 06:24:04 -0700, Ed Keith wrote: --- On Thu, 5/13/10, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: What have you got against LGPL for this purpose? -- Most of my clients would not know how to relink a program if their life depended

Re: Picking a license

2010-05-15 Thread Ethan Furman
Brendan Abel wrote: While I think most of the disagreement in this long thread results from different beliefs in what freedom means, I wanted to add, that most of the responses that argue that the MIT license permits the user more freedom than the GPL, suffer from the broken window fallacy. This

Re: Picking a license

2010-05-15 Thread Ed Keith
--- On Thu, 5/13/10, Steven D'Aprano ste...@remove.this.cybersource.com.au wrote: From: Steven D'Aprano ste...@remove.this.cybersource.com.au Subject: Re: Picking a license To: python-list@python.org Date: Thursday, May 13, 2010, 7:41 PM On Thu, 13 May 2010 06:24:04 -0700, Ed Keith wrote:

Re: Picking a license

2010-05-15 Thread Ethan Furman
Steven D'Aprano wrote: On Thu, 13 May 2010 19:10:09 -0700, Patrick Maupin wrote: The only time that comes into play in my programming life is *when I have to recode* something that is nominally available under the GPL, You've never had to recode something because it was nominally available

Re: Do any debuggers support edit and continue?

2010-05-15 Thread Lawrence D'Oliveiro
In message cmbgn.281180$up1.207...@en-nntp-09.dc1.easynews.com, Joel Koltner wrote: Just curious... in Microsoft's Visual Studio (and I would presume some other tools), for many languages (both interpreted and compiled!) there's an edit and conitnue option that, when you hit a breakpoint,

Re: Human word reader

2010-05-15 Thread Xavier Ho
On Sat, May 15, 2010 at 9:32 PM, timo verbeek timoverbee...@gmail.comwrote: On May 15, 1:02 pm, timo verbeek timoverbee...@gmail.com wrote: Place starts always with for Okay, much better. Given that constraint, it looks like regular expression can do the job. I'm not very experienced with

Re: Human word reader

2010-05-15 Thread superpollo
timo verbeek ha scritto: I'm planning to create a human word program A human inputs a string Give me the weather for London please. Then I will strip the string. weather for london Then I get the useful information. what:weather where:london After that I use the info. I need help with getting

Re: Picking a license

2010-05-15 Thread Duncan Booth
Ed Keith e_...@yahoo.com wrote: I can not imagine anyone being stupid enough to pay me for rights to use code I had already published under the Boost License, which grants then the rights to do anything they want with it without paying me anything. -EdK Really? The Boost License says,

Re: Human word reader

2010-05-15 Thread superpollo
superpollo ha scritto: timo verbeek ha scritto: I'm planning to create a human word program A human inputs a string Give me the weather for London please. Then I will strip the string. weather for london Then I get the useful information. what:weather where:london After that I use the info. I

Re: write a 20GB file

2010-05-15 Thread Nobody
On Fri, 14 May 2010 18:38:55 -0400, J wrote: someone smarter than me can correct me, but file.write() will write when it's buffer is filled, or close() or flush() are called. And, in all probability, seek() will either flush it immediately or cause the next write() to flush it before writing

Pyinstaller on WINE - cannot install pywin32

2010-05-15 Thread train
Pyinstaller works fine on Windows XP. I am trying to get it working on WINE. Running configure.py results in asking for pywin32, however pywin 32 will not install C:\pywin32-214c:\python26\python setup.py Building pywin32 2.6.214.0 This is a distutils setup-script for the pywin32 extensions To

Re: Puzzled by code pages

2010-05-15 Thread Adam Tauno Williams
On Sat, 2010-05-15 at 20:30 +1000, Lie Ryan wrote: On 05/15/10 10:27, Adam Tauno Williams wrote: I'm trying to process OpenStep plist files in Python. I have a parser which works, but only for strict ASCII. However plist files may contain accented characters - equivalent to ISO-8859-2 (I

Re: Re: joining two column

2010-05-15 Thread mannu jha
On Sat, 15 May 2010 00:14:05 +0530 wrote On 05/14/2010 12:55 PM, James Mills wrote: file1: a1 a2 a3 a4 a5 a6 a7 a8 file2: b1 b2 b3 b4 b5 b6 b7 b8 and I want to join them so the output should look like this: a1 a2 b1 b2 a3 a4 b3 b4 a5 a6 b5 b6 a7 a8 b7 b8

Re: write a 20GB file

2010-05-15 Thread Nathan Rice
This is precisely the situation mmap was made for :) It has almost the same methods as a file so it should be an easy replacement. On Sat, May 15, 2010 at 10:05 AM, Nobody nob...@nowhere.com wrote: On Fri, 14 May 2010 18:38:55 -0400, J wrote: someone smarter than me can correct me, but

Re: joining two column

2010-05-15 Thread Tim Chase
On 05/15/2010 09:20 AM, mannu jha wrote: BTW: your mailer makes an absolute mess of plain-text emails, putting multiple spaces between every single line which makes it very hard to read. Please fix it, use a real mailer, or risk getting ignored (or worse, plonked).

platform-independent image copy/paste with Tkinter?

2010-05-15 Thread technocake
Hi. Is there a good way to copy from or paste to the clipboard on all systems running python using Tkinter? started a small road too it here: #!/usr/bin/python __author__=technocake __date__ =$15.mai.2010 15:53:39$ from Tkinter import * if __name__ == __main__: def

Re: Picking a license

2010-05-15 Thread Aahz
In article mailman.201.1273900677.32709.python-l...@python.org, Stefan Behnel stefan...@behnel.de wrote: a...@pythoncraft.com (Aahz) writes: Which license you use depends partly on your political philosophy. Did they close down debian-legal, or why is this thread growing so long? Mea culpa,

Re: Picking a license

2010-05-15 Thread Aahz
In article 7bfa5457-027d-4ee1-a54f-3c0baba45...@e21g2000vbl.googlegroups.com, Patrick Maupin pmau...@gmail.com wrote: So, there are good reasons for both kinds of licenses, which I think everybody on the pro-permissive side has been saying all along. Of course, force is a more inflammatory word

Re: parsing XML

2010-05-15 Thread superpollo
kak...@gmail.com ha scritto: Hi to all, let's say we have the following Xml team player name='Mick Fowler' age='27' height='1.96m' points17.1/points rebounds6.4/rebounds /player player name='Ivan Ivanovic' age='29' height='2.04m' points15.5/points rebounds7.8/rebounds

Re: Puzzled by code pages

2010-05-15 Thread Lie Ryan
On 05/16/10 00:12, Adam Tauno Williams wrote: On Sat, 2010-05-15 at 20:30 +1000, Lie Ryan wrote: On 05/15/10 10:27, Adam Tauno Williams wrote: I'm trying to process OpenStep plist files in Python. I have a parser which works, but only for strict ASCII. However plist files may contain

Re: parsing XML

2010-05-15 Thread superpollo
superpollo ha scritto: kak...@gmail.com ha scritto: Hi to all, let's say we have the following Xml team player name='Mick Fowler' age='27' height='1.96m' points17.1/points rebounds6.4/rebounds /player player name='Ivan Ivanovic' age='29' height='2.04m' points15.5/points

Re: Is Python a functional programming language?

2010-05-15 Thread travis+ml-python
On Mon, May 10, 2010 at 08:45:51PM +0100, Nobody wrote: On Tue, 11 May 2010 00:24:22 +1200, Samuel Williams wrote: Is Python a functional programming language? Not in any meaningful sense of the term. LOL I heard that lambdas were limited to a single expression, Yes. In a functional

Re: Picking a license

2010-05-15 Thread Robert Kern
On 2010-05-14 21:37 , Steven D'Aprano wrote: On Fri, 14 May 2010 06:42:31 -0700, Ed Keith wrote: I am not a lawyer, but as I understand the LGPL, If I give someone something that used any LGPLed code I must give them the ability to relink it with any future releases of the LGPLed code. I think

Local variables persist across function calls

2010-05-15 Thread Dave
I've been writing Python for a few years now, and tonight I ran into something that I didn't understand. I'm hoping someone can explain this to me. I'm writing a recursive function for generating dictionaries with keys that consist of all permutations of a certain set. Here's the function: code

pickle.load() all dict

2010-05-15 Thread Yutao Deng
Hi all: I'm trying to learn to use Python wrote a applet to record every day doing. and i use the pickle pickle.dump something to file no problem i think. but pickle.load whith a problem. can not load all dict do my way that what i pickle.dump(). My code: import cPickle as pickle

Re: d-cm Controll Manager

2010-05-15 Thread Kruptein
http://launchpad.net/d-cm -- http://mail.python.org/mailman/listinfo/python-list

Re: Picking a license

2010-05-15 Thread Albert van der Horst
In article 7bdce8a7-bf7d-4f1f-bc9d-1eca26974...@d27g2000yqc.googlegroups.com, Patrick Maupin pmau...@gmail.com wrote: SNIP That is correct. All privileges as you put it are merely things that a user can do with the code without fear of a lawsuit by the author, and when an author uses a

Re: Is Python a functional programming language?

2010-05-15 Thread Aahz
In article mailman.223.1273942083.32709.python-l...@python.org, travis+ml-pyt...@subspacefield.org wrote: One very annoying thing in Python is the distinction between statements and expressions. One extremely valuable thing in Python is the distinction between statements and expressions. In

Re: Local variables persist across function calls

2010-05-15 Thread Alf P. Steinbach
On 15.05.2010 19:18, * Dave: I've been writing Python for a few years now, and tonight I ran into something that I didn't understand. I'm hoping someone can explain this to me. I'm writing a recursive function for generating dictionaries with keys that consist of all permutations of a certain

Re: Local variables persist across function calls

2010-05-15 Thread Chris Rebert
On Sat, May 15, 2010 at 10:18 AM, Dave shepard...@gmail.com wrote: I've been writing Python for a few years now, and tonight I ran into something that I didn't understand. I'm hoping someone can explain this to me. I'm writing a recursive function for generating dictionaries with keys that

Re: Picking a license

2010-05-15 Thread Patrick Maupin
On May 14, 8:04 am, Ethan Furman et...@stoneleaf.us wrote: Steven D'Aprano wrote: You've never had to recode something because it was nominally available under a proprietary licence that you (or your client) was unwilling to use? Lucky you! Steven, did you actually read what he wrote?  If

Reading XML namespaces

2010-05-15 Thread Adam Tauno Williams
Say I have an XML document that begins with: ?xml version=1.0 encoding=utf-8? dsml:dsml xmlns:dsml=http://www.dsml.org/DSML; ... How can one access the namespaces define in this node? I've done a fair amount of XML in Python, but haven't been able to uncover the call to enumerate the

Re: Picking a license

2010-05-15 Thread Patrick Maupin
On May 15, 12:49 pm, Albert van der Horst alb...@spenarnc.xs4all.nl wrote: In article 7bdce8a7-bf7d-4f1f-bc9d-1eca26974...@d27g2000yqc.googlegroups.com, Patrick Maupin  pmau...@gmail.com wrote: SNIP That is correct.  All privileges as you put it are merely things that a user can do with

Re: Puzzled by code pages

2010-05-15 Thread Mark Tolonen
Adam Tauno Williams awill...@whitemice.org wrote in message news:1273932760.3929.18.ca...@linux-yu4c.site... On Sat, 2010-05-15 at 20:30 +1000, Lie Ryan wrote: On 05/15/10 10:27, Adam Tauno Williams wrote: [snip] Yep. But in the interpreter both unicode() and repr() produce the same

Re: Picking a license

2010-05-15 Thread Paul Boddie
On 15 Mai, 04:20, Lawrence D'Oliveiro l...@geek- central.gen.new_zealand wrote: In message a26e8cac-6561-40f6-ae3f-cfe176ecb...@l31g2000yqm.googlegroups.com, Paul Boddie wrote: Although people can argue that usage of the GPL prevents people from potentially contributing because they would

Re: Picking a license

2010-05-15 Thread John Bokma
Paul Boddie p...@boddie.org.uk writes: especially as the about page for PySide spells out the licensing objective. Take away the proprietary software requirement and you might as well use the GPL. Thank you for mentioning PySide, I wasn't aware of this project. -- John Bokma

Re: Reading XML namespaces

2010-05-15 Thread Stefan Behnel
Adam Tauno Williams, 15.05.2010 20:37: Say I have an XML document that begins with: ?xml version=1.0 encoding=utf-8? dsml:dsml xmlns:dsml=http://www.dsml.org/DSML; ... How can one access the namespaces define in this node? I've done a fair amount of XML in Python, but haven't been able to

pass xxx site ;0

2010-05-15 Thread Mr.Ss
pass xxx site http://www.2shared.com/uploadComplete.jsp?sId=ISfomojyvBaVf129 -- http://mail.python.org/mailman/listinfo/python-list

pass xxx site 2 ;0

2010-05-15 Thread Mr.Ss
pass xxx site http://www.2shared.com/file/MqzpLfxz/pass_xxx_site.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Reading XML namespaces

2010-05-15 Thread Adam Tauno Williams
On Sat, 2010-05-15 at 22:29 +0200, Stefan Behnel wrote: Adam Tauno Williams, 15.05.2010 20:37: Say I have an XML document that begins with: ?xml version=1.0 encoding=utf-8? dsml:dsml xmlns:dsml=http://www.dsml.org/DSML; How can one access the namespaces define in this node? I've done a

Re: Reading XML namespaces

2010-05-15 Thread Stefan Behnel
Adam Tauno Williams, 15.05.2010 22:40: On Sat, 2010-05-15 at 22:29 +0200, Stefan Behnel wrote: Adam Tauno Williams, 15.05.2010 20:37: Say I have an XML document that begins with: ?xml version=1.0 encoding=utf-8? dsml:dsml xmlns:dsml=http://www.dsml.org/DSML; How can one access the namespaces

Re: Picking a license

2010-05-15 Thread Patrick Maupin
On May 15, 2:59 pm, Paul Boddie p...@boddie.org.uk wrote: [Rest of the post, that contains points previously debated and well- refuted, snipped] Any claim that a licensing change is needed merely to let people develop open source applications on the platform is dishonest, See, there you go

Re: Reading XML namespaces

2010-05-15 Thread Adam Tauno Williams
On Sat, 2010-05-15 at 22:58 +0200, Stefan Behnel wrote: Adam Tauno Williams, 15.05.2010 22:40: On Sat, 2010-05-15 at 22:29 +0200, Stefan Behnel wrote: Adam Tauno Williams, 15.05.2010 20:37: Say I have an XML document that begins with: ?xml version=1.0 encoding=utf-8? dsml:dsml

Re: Puzzled by code pages

2010-05-15 Thread John Machin
Adam Tauno Williams awilliam at whitemice.org writes: On Fri, 2010-05-14 at 20:27 -0400, Adam Tauno Williams wrote: I'm trying to process OpenStep plist files in Python. I have a parser which works, but only for strict ASCII. However plist files may contain accented characters -

Re: Human word reader

2010-05-15 Thread David Zaslavsky
Here's my take on that: loc = re.search('for\s+(\w+)', string).group(1) Not much different, really, but it does allow for multiple spaces (\s+) as well as requiring at least one character in the word (\w+), and I use a matching group to extract the location directly instead of splitting the

Re: Reading XML namespaces

2010-05-15 Thread Stefan Behnel
Adam Tauno Williams, 15.05.2010 23:04: On Sat, 2010-05-15 at 22:58 +0200, Stefan Behnel wrote: Adam Tauno Williams, 15.05.2010 22:40: On Sat, 2010-05-15 at 22:29 +0200, Stefan Behnel wrote: Adam Tauno Williams, 15.05.2010 20:37: Say I have an XML document that begins with: ?xml version=1.0

Re: Reading XML namespaces

2010-05-15 Thread Martin v. Loewis
BTW, I'm still not sure I understand your problem. Could you provide some more details? Wouldn't it be easier if you told the OP how to access the prefix mappings in lxml etree, or, if this was actually not possible, admitted that it is actually not possible? FWIW, in the DOM, you look at all

Re: Reading XML namespaces

2010-05-15 Thread Adam Tauno Williams
On Sat, 2010-05-15 at 23:25 +0200, Stefan Behnel wrote: Ah, you didn't provide that information in your initial post. So you control neither the document nor the XPath expression, right? Correct. Can't you get the namespace-prefix mapping from your user? Nope. Or they are not going to be

Re: Puzzled by code pages

2010-05-15 Thread Martin v. Loewis
Conclusions: It's worth closely scrutinising accented characters - equivalent to ISO-8859-2 (I believe). Which variety of OpenStep plist files are you looking at: NeXTSTEP, GNUstep, or MAC OS X? If the latter, it's evidently an XML document, and you should be letting the XML parser

Re: Picking a license

2010-05-15 Thread Paul Boddie
On 15 Mai, 03:46, Patrick Maupin pmau...@gmail.com wrote: On May 14, 6:52 pm, Paul Boddie p...@boddie.org.uk wrote: And suggesting that people have behavioural disorders (Or because have OCD?) might be a source of amusement to you, or may be a neat debating trick in certain circles you

Re: Is Python a functional programming language?

2010-05-15 Thread Terry Reedy
On 5/15/2010 12:42 PM, travis+ml-pyt...@subspacefield.org wrote: One very annoying thing in Python is the distinction between statements and expressions. GvR regards it as a feature, claiming that research in the 1980s showed that the syntactic heterogeneity aided comprehension. I believe

Access to comp.lang.python

2010-05-15 Thread cjw
This isn't about Python but I'm seeking suggestions as to the best way to access the newsgroup. It seems that messages are coming from a number of sources, such as gmane and google groups. The problem is that many messages seem to get unlinked from their threads. I use Thunderbird 3.0.5 and

Re: parsing XML

2010-05-15 Thread Pietro Campesato
On May 14, 7:57 am, kak...@gmail.com kak...@gmail.com wrote: Hi to all, let's say we have the following Xml team   player name='Mick Fowler' age='27' height='1.96m'     points17.1/points     rebounds6.4/rebounds   /player   player name='Ivan Ivanovic' age='29' height='2.04m'    

Re: write a 20GB file

2010-05-15 Thread Dave Angel
Nathan Rice wrote: This is precisely the situation mmap was made for :) It has almost the same methods as a file so it should be an easy replacement. snip Only on a 64bit system, and I'm not sure it's even possible there in every case. On a 32bit system, it would be impossible to mmap a

Re: write a 20GB file

2010-05-15 Thread Patrick Maupin
On May 15, 7:09 pm, Dave Angel da...@ieee.org wrote: Nathan Rice wrote: This is precisely the situation mmap was made for :)  It has almost the same methods as a file so it should be an easy replacement. snip Only on a 64bit system, and I'm not sure it's even possible there in every

Re: write a 20GB file

2010-05-15 Thread Patrick Maupin
On May 15, 7:09 pm, Dave Angel da...@ieee.org wrote: Nathan Rice wrote: This is precisely the situation mmap was made for :)  It has almost the same methods as a file so it should be an easy replacement. snip Only on a 64bit system, and I'm not sure it's even possible there in every

Re: Reading XML namespaces

2010-05-15 Thread Martin v. Loewis
??? The namespaces are embedded in the document. Personally I find it odd I have to tell xpath about the namespace of the document it is a $*@(* method of. How so? Why do you say it's a method, and why do you say of? Usually, xpath expressions are *not* part of the document they operate on,

Re: Picking a license

2010-05-15 Thread Lawrence D'Oliveiro
In message ca0d6fd3-4883-4a82-bbea-a33c283c4...@d12g2000vbr.googlegroups.com, Patrick Maupin wrote: On May 14, 9:21 pm, Lawrence D'Oliveiro l...@geek- central.gen.new_zealand wrote: In message mailman.180.1273860694.32709.python-l...@python.org, Ed Keith wrote: I just refuse to use [the

Re: Picking a license

2010-05-15 Thread Lawrence D'Oliveiro
In message mailman.198.1273891662.32709.python-l...@python.org, Ed Keith wrote: On Fri, 5/14/10, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: In message mailman.158.1273844352.32709.python-l...@python.org, Ed Keith wrote: Yes, under the GPL every one has one set of

Re: Picking a license

2010-05-15 Thread Lawrence D'Oliveiro
In message 93d67bd9-6721-4759-a3de-412b95b29...@c11g2000vbe.googlegroups.com, Paul Boddie wrote: Although Bill Gates once apparently claimed that no-one needs the source code for their word processor or office suite ... Thereby committing the sealed-bonnet fallacy. --

Re: Picking a license

2010-05-15 Thread Lawrence D'Oliveiro
In message mailman.164.1273846256.32709.python-l...@python.org, Ed Keith wrote: But if my client give someone else a copy of the binary I gave them, they are now in violation. Why would they be in violation? It seems to me a violation would only occur if someone asked them for the source,

Re: Reading XML namespaces

2010-05-15 Thread Adam Tauno Williams
On Sat, 2010-05-15 at 23:37 +0200, Martin v. Loewis wrote: BTW, I'm still not sure I understand your problem. Could you provide some more details? Wouldn't it be easier if you told the OP how to access the prefix :) mappings in lxml etree, or, if this was actually not possible, admitted

Re: Reading XML namespaces

2010-05-15 Thread Adam Tauno Williams
On Sun, 2010-05-16 at 02:37 +0200, Martin v. Loewis wrote: ??? The namespaces are embedded in the document. Personally I find it odd I have to tell xpath about the namespace of the document it is a $*@(* method of. How so? Why do you say it's a method, and why do you say of? Usually,

Re: Picking a license

2010-05-15 Thread Robert Kern
On 2010-05-15 22:05 , Lawrence D'Oliveiro wrote: In message ca0d6fd3-4883-4a82-bbea-a33c283c4...@d12g2000vbr.googlegroups.com, Patrick Maupin wrote: On May 14, 9:21 pm, Lawrence D'Oliveirol...@geek- central.gen.new_zealand wrote: In

Re: Is Python a functional programming language?

2010-05-15 Thread Paul Rubin
travis+ml-pyt...@subspacefield.org writes: To be fair, it appears that Python's whitespace-sensitive syntax sort of precludes the make a complex function on one line that is typical of languages which don't have statement/expression distinctions, but I'm not convinced it couldn't be solved,

Re: Access to comp.lang.python

2010-05-15 Thread Terry Reedy
On 5/15/2010 6:34 PM, cjw wrote: This isn't about Python but I'm seeking suggestions as to the best way to access the newsgroup. It seems that messages are coming from a number of sources, such as gmane and google groups. The problem is that many messages seem to get unlinked from their

Re: Access to comp.lang.python

2010-05-15 Thread Aahz
In article mailman.245.1273986020.32709.python-l...@python.org, Terry Reedy tjre...@udel.edu wrote: On 5/15/2010 6:34 PM, cjw wrote: The problem is that many messages seem to get unlinked from their threads. Some people have said that that is due to newreaders not tagging responses properly.

Re: Access to comp.lang.python

2010-05-15 Thread James Mills
On Sun, May 16, 2010 at 3:12 PM, Aahz a...@pythoncraft.com wrote: It's also at least partly due to problems with mail-news gateways and the differing fields used to maintain threading. Some blame goes on MUAs too :) -- http://mail.python.org/mailman/listinfo/python-list

[issue8723] IDLE won't start import os error

2010-05-15 Thread James Morgan
New submission from James Morgan jmorg1...@gmail.com: Hi, For some reason I have recently lost the ability to open IDLE for python 2.6.2. I was able to open it for 2.5 without issue. I reinstalled 2.6.2 several times, removed 2.5, tried 2.6.5 instead, still cannot load IDLE. I can load the

[issue8723] IDLE won't start import os error

2010-05-15 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Why do you think this is a bug in Python? It rather sounds like you misconfigured your system somehow. Without access to the system, it is difficult to guess what the misconfiguration might be, though. -- nosy: +loewis

[issue8720] undo findsource regression/change

2010-05-15 Thread holger krekel
holger krekel holger.kre...@gmail.com added the comment: Thanks for helping with this! Attached is a patch that adds a keyword check=True to getsourcefile so that findsource can defer existence-checking until after cache lookup. Eventually, findsource will still raise an IOError if it can't

[issue8723] IDLE won't start import os error

2010-05-15 Thread James Morgan
James Morgan jmorg1...@gmail.com added the comment: Thanks for the reply. I have used idle before on this system without issue, and since 2.5 worked I figured there was some difference between 2.5 and 2.6 which was causing the issue. I have found since that the issue is likely not with idle

[issue7640] buffered io seek() buggy

2010-05-15 Thread Pascal Chambon
Pascal Chambon chambon.pas...@gmail.com added the comment: Hello I advocate the inclusion of this patch to the 2.6 maintenance branch, because currently the io module in this branch (which is still the most recent 2.X version released) is simply broken. People using it will certainly

[issue8692] Use divide-and-conquer for faster factorials

2010-05-15 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: New patch (factorial3.patch) addressing all of Alexander's points except the one about including Python source somewhere. I also expanded the lookup table to 20 entries on LP64 systems. -- Added file:

[issue8723] IDLE won't start import os error

2010-05-15 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I am new to this help system Please understand that this is not a help system at all. Instead, it is a bug tracker: a way for people to contribute to Python, by reporting bugs or contributing code. For help, please contact one of the Python

[issue8712] Skip libpthread related test failures on OpenBSD

2010-05-15 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I can't pinpoint the exact causes for each individual test failure. I assumed that they are caused by threading/signal issues, because the tests pass when Python is compiled --without-threads. But here's a list of possible culprits

[issue8712] Skip libpthread related test failures on OpenBSD

2010-05-15 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: The FreeBSD-6.4-RELEASE-i386 buildbot has similar libpthread issues. This is just in: == FAIL: test_send_signal (test.test_subprocess.POSIXProcessTestCase)

[issue8692] Use divide-and-conquer for faster factorials

2010-05-15 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: And the same patch, but with a (deliberately simple) pure Python version of the algorithm in test_math.py. -- Added file: http://bugs.python.org/file17352/factorial4.patch ___ Python tracker

[issue8723] IDLE won't start import os error

2010-05-15 Thread James Morgan
James Morgan jmorg1...@gmail.com added the comment: Sorry, I guess I misunderstood the function as I saw some issues which appeared similar in style to my own. Never mind this then I will seek help elsewhere. Thankyou. -- ___ Python tracker

  1   2   >