New parallel computing module for Python

2006-11-16 Thread konrad . hinsen
The latest development release of ScientificPython (2.7), which is available now at http://sourcesup.cru.fr/projects/scientific-py/ contains a new module for parallel computing using a master-slave model: a master process defines computational tasks, and any number of slave processes

ANN: amplee 0.3.3

2006-11-16 Thread Sylvain Hellegouarch
Hi all, I'm happy to introduce the release of Amplee 0.3.3, a Python implementation of the Atom Publishing Protocol. This release is a bug fixes but with a few new features as well: * Improved support of the Amazon S3 service as a storage * Support for the Hachoir library which should offer

Re: Yield

2006-11-16 Thread Fredrik Lundh
John Machin wrote: I would like to thanks Fredrik for his contribution to improve that. Call me crazy, but after an admittedly quick read, the version on the wiki seems to be about word for word with on the docs.python.org version. maybe he was thinking about the article I posted, or the

How to make a python file to a DLL?

2006-11-16 Thread many_years_after
Any solution? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

matplotlib real time grap.

2006-11-16 Thread luca72
Hello at all. I need to do a real time plot where on the frame i have this like limit line: import math dati = [] for freq in range(int(freqiniziale), (int(freqfinale )+ 1)): forza = float(massa) * ((2*math.pi*freq)**2)/10 dati.append(forza)

Re: Secure Python

2006-11-16 Thread Fredrik Lundh
timmy wrote: congraulations you have discovered loops and their misuse if you don't know what the phrase denial of service attack means, you can always google for it. /F -- http://mail.python.org/mailman/listinfo/python-list

Re: lxml/ElementTree and .tail

2006-11-16 Thread Fredrik Lundh
Stefan Behnel wrote: If you want to copy part of of removed element back into the tree, feel free to do so. and that can of course be done with a short helper function. when removing elements from trees, I often set the tag for those elements to some garbage value during processing, and then

Re: Yield

2006-11-16 Thread John Machin
On 16/11/2006 7:00 PM, Fredrik Lundh wrote: John Machin wrote: I would like to thanks Fredrik for his contribution to improve that. Call me crazy, but after an admittedly quick read, the version on the wiki seems to be about word for word with on the docs.python.org version. maybe he

Re: How to make a python file to a DLL?

2006-11-16 Thread Fredrik Lundh
many_years_after wrote: Any solution? python modules are usually shipped in ZIP archives, not DLLs. if you really need a DLL, you can use freeze and some custom hacking. or bytecode resources, and some more custom hacking. /F -- http://mail.python.org/mailman/listinfo/python-list

Re: More puzzling behavior while subclassing datetime

2006-11-16 Thread [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote: With assistance from Gabriel and Frederik (and a few old threads in c.l.p.) I've been making headway on my specialized datetime class. Now I'm puzzled by behavior I didn't expect while attempting to use some of the alternate datetime constructors. Specifically, it

Re: More puzzling behavior while subclassing datetime

2006-11-16 Thread Peter Otten
[EMAIL PROTECTED] wrote: With assistance from Gabriel and Frederik (and a few old threads in c.l.p.) I've been making headway on my specialized datetime class. Now I'm puzzled by behavior I didn't expect while attempting to use some of the alternate datetime constructors. Specifically, it

Re: Secure Python

2006-11-16 Thread Steven D'Aprano
On Thu, 16 Nov 2006 17:44:37 +1000, timmy wrote: congraulations you have discovered loops and their misuse Did you have a point in your utterly inane comment, or did you just want to see your name on Usenet? In any case, it isn't just loops that are dangerous. print 2**512**512 No loop

Re: Will GPL Java eat into Python marketshare?

2006-11-16 Thread Maurice LING
Dennis Lee Bieber wrote: On Wed, 15 Nov 2006 22:41:19 GMT, Maurice LING [EMAIL PROTECTED] declaimed the following in comp.lang.python: I'm hoping for a more optimistic outcome that this may open a possibility for tigher interoperability between java programs and python programs. That is,

Tkinter Problems on MAC OS 10.3.9 python2.5

2006-11-16 Thread Thomas P.
Hello folks, my name is Thomas, and I am new to this newsgroup. So first I want to say hello. :-) ...done! Now, I have a problem concerning my new python2.5 install. With python2.3 and 2.4, Tkinter was no problem. Now, when I try to import it, the folowing happens:

Re: How to make a python file to a DLL?

2006-11-16 Thread Diez B. Roggisch
many_years_after schrieb: Any solution? http://wiki.python.org/moin/elmer -- http://mail.python.org/mailman/listinfo/python-list

Re: numpy/scipy: error of correlation coefficient (clumpy data)

2006-11-16 Thread robert
sturlamolden wrote: robert wrote: here the bootstrap test will as well tell us, that the confidence intervall narrows down by a factor ~sqrt(10) - just the same as if there would be 10-fold more of well distributed new data. Thus this kind of error estimation has no reasonable basis for

Useless thread about some useless statistics

2006-11-16 Thread Daniel Nogradi
I recently came across the program 'sloccount' that attempts to calculate the time and money that went into writing software. http://www.dwheeler.com/sloccount/ If ran on the source code of python 2.5 the results are the following: Total Physical Source Lines of Code (SLOC) =

Re: Data structure for ordered sequence

2006-11-16 Thread robert
[EMAIL PROTECTED] wrote: Fredrik Lundh wrote: [EMAIL PROTECTED] wrote: I am looking for a data structure to hold rectangles in a 2d space. Please point me to any module which does these operations: Insert a rectangle into a particular co-ordinate. Get the rectangle/s

Re: Will GPL Java eat into Python marketshare?

2006-11-16 Thread Chris Brat
I do have a wild vision that we can import java libraries (as jar files) into CPython. Isnt this being achieved by Jython (python code using Java libraries), and in future by the Java scripting framework added into Java 6 ? -- http://mail.python.org/mailman/listinfo/python-list

Re: multi split function taking delimiter list

2006-11-16 Thread Frederic Rentsch
Paddy wrote: Paddy wrote: Paddy wrote: [EMAIL PROTECTED] wrote: Hi, I'm looking for something like: multi_split( 'a:=b+c' , [':=','+'] ) returning: ['a', ':=', 'b', '+', 'c'] whats the python way to achieve this, preferably without regexp? Thanks. Martin I resisted my urge to

Re: Secure Python

2006-11-16 Thread Stephan Kuhagen
Fredrik Tolf wrote: If this doesn't work, might there be some other way to run untrusted code that I haven't thought of (apart from using O/S-specific stuff like SECCOMD, of course). There was a module called rexec which tries to give you a restricted environment for executing code. But it

Re: lxml/ElementTree and .tail

2006-11-16 Thread Paul Boddie
Stefan Behnel wrote: [Remove an element, remove following nodes] Yes, it is. Just look at the API. It's an attribute of an Element, isn't it? What other API do you know where removing an element from a data structure leaves part of the element behind? I guess it depends on what you regard

Re: Py3K idea: why not drop the colon?

2006-11-16 Thread Magnus Lycka
John Salerno wrote: personally, i don't mind the colon and see no need to lose it, but if we are talking in the realm of aesthetics, it actually seems like it would be cleaner if it weren't there...sure, at first everyone who is used to it might feel like something is missing, or the line

Re: Will GPL Java eat into Python marketshare?

2006-11-16 Thread Fredrik Lundh
Maurice LING wrote: I admit that it is very very unlikely. I guess it is just a wild dream of mine to run Java bytecodes and Python bytecodes on Python VM. I do have a wild vision that we can import java libraries (as jar files) into CPython. http://sourceforge.net/projects/jpype /F --

Re: Data structure for ordered sequence

2006-11-16 Thread Fredrik Lundh
robert wrote: how many rectangles do you plan to store in this structure? Around 150 max And seeking/change frequency? fix dimensions? Probably for a GUI/mouse thing. =Not worth worring about a 2D-tree structure. A Python list ? :-) Insert/change coordinates at no costs and seek the

Re: lxml/ElementTree and .tail

2006-11-16 Thread Fredrik Lundh
Paul Boddie wrote: Yes, it is. Just look at the API. It's an attribute of an Element, isn't it? What other API do you know where removing an element from a data structure leaves part of the element behind? I guess it depends on what you regard an element to be... Stefan said Element, not

split CSV fields

2006-11-16 Thread robert
What is a most simple expression for splitting a CSV line with -protected fields? s='123,a,b,\c\,5.640' -- http://mail.python.org/mailman/listinfo/python-list

Re: Py3K idea: why not drop the colon?

2006-11-16 Thread Fredrik Lundh
Magnus Lycka wrote: Which is the better writing style for text intended for human readers? I have some things to say: Seagulls belong in the sky. Colon fits in the text. I have some things to say { Seagulls belong in the text. Colon fits in the belly. } have

Re: split CSV fields

2006-11-16 Thread irfan . habib
s.split(','); robert wrote: What is a most simple expression for splitting a CSV line with -protected fields? s='123,a,b,\c\,5.640' -- http://mail.python.org/mailman/listinfo/python-list

Re: Py3K idea: why not drop the colon?

2006-11-16 Thread Steve Holden
Fredrik Lundh wrote: Magnus Lycka wrote: Which is the better writing style for text intended for human readers? I have some things to say: Seagulls belong in the sky. Colon fits in the text. I have some things to say { Seagulls belong in the text. Colon fits in the

Re: split CSV fields

2006-11-16 Thread Fredrik Lundh
robert wrote: What is a most simple expression for splitting a CSV line with -protected fields? s='123,a,b,\c\,5.640' import csv the preferred way is to read the file using that module. if you insist on processing a single line, you can do cols = list(csv.reader([string])) /F --

Re: split CSV fields

2006-11-16 Thread Diez B. Roggisch
robert wrote: What is a most simple expression for splitting a CSV line with -protected fields? s='123,a,b,\c\,5.640' Use the csv-module. It should have a dialect for this, albeit I'm not 100% sure if the escaping of the is done properly from csv POV. Might be that it requires

Re: Py3K idea: why not drop the colon?

2006-11-16 Thread Fredrik Lundh
Steve Holden wrote: I'm always surprised by the amount of energy that's put into this type of discussion - even the OP has suggested that this isn't a big issue. If it's not a big issue why is this thread still going? http://www.bikeshed.org/ /F --

Re: Decimal() instead of float?

2006-11-16 Thread Steve Holden
Terry Reedy wrote: John Salerno [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] John Machin wrote: Here in Austraila, (I expect this is common to most countries), there are people who are utterly clueless about elementary data model rules, like identification numbers should be

Re: Python v PHP: fair comparison?

2006-11-16 Thread Steve Holden
bruce wrote: ummm bruno... you don't 'need' apache to run php. in fact, although i'm from the old hard c/c++ world way before web apps, i haven't really found much for most general apps (not ui/not threaded stuff) that php can't do.. You simply haven't been looking hard enough.

Re: ANN: pyfaq 1.0b1 is now available

2006-11-16 Thread Fredrik Lundh
John Machin wrote: P.S. Great job on the wiki, and yes a search facility a tad smarter than browser Ctrl-F would be a very good idea! the effbot.org version of the PyFAQ is basically just an editing and staging area; when everyone involved gets enough spare cycles, the plan is (or at least

Re: split CSV fields

2006-11-16 Thread Peter Otten
robert wrote: What is a most simple expression for splitting a CSV line with -protected fields? s='123,a,b,\c\,5.640' import csv class mydialect(csv.excel): ... escapechar = \\ ... csv.reader(['123,a,b,\\c\\,5.640'], dialect=mydialect).next() ['123', 'a,b,c', '5.640'] Peter --

Re: Decimal() instead of float?

2006-11-16 Thread Paul Rubin
Steve Holden [EMAIL PROTECTED] writes: Unfortunately some applications are getting such large tables that a 32-bit field is insufficient to enumerate all existing and deleted rows. Then you have to start keeping tables of unused primary keys. Please tell me that's not from some Kafka

Re: Python v PHP: fair comparison?

2006-11-16 Thread Steve Holden
James Cunningham wrote: On 2006-11-15 20:59:26 -0500, walterbyrd [EMAIL PROTECTED] said: Bruno Desthuilliers wrote: walterbyrd a écrit : You mean there are web hosting companies that are still using Apache 1.3.x ? Practically all web-hosters still use Apache 1.3.x. Certainly all of the

Re: lxml/ElementTree and .tail

2006-11-16 Thread Paul Boddie
Fredrik Lundh wrote: It's not very difficult, really; especially if you, as Stefan said, think in infoset terms rather a sequence of little piggies terms. Are piggies part of the infoset too? Does the Piggie class represent a piggie from the infoset plus a stretch of the road to the market?

Re: Py3K idea: why not drop the colon?

2006-11-16 Thread Steve Holden
Fredrik Lundh wrote: Steve Holden wrote: I'm always surprised by the amount of energy that's put into this type of discussion - even the OP has suggested that this isn't a big issue. If it's not a big issue why is this thread still going? http://www.bikeshed.org/ I deliberately

Re: More puzzling behavior while subclassing datetime

2006-11-16 Thread [EMAIL PROTECTED]
Yes. Consider: def today(time=None, *args): ... print time = , time, args = , args ... today(2006, 11, 16) time = 2006 args = (11, 16) To fix the issue you'll probably have to remove the time=None parameter from GeneralizedTime.__new__() and instead extract it from args or

Re: Py3K idea: why not drop the colon?

2006-11-16 Thread Fredrik Lundh
Steve Holden wrote: y is this thread still going? http://www.bikeshed.org/ I deliberately avoided using that analogy, but I'm sorry to say it *does* apply. I'd hate to see c.l.py descend to becoming a wibble group. I switched to a reader that lets me kill threads with a single keypress a

Re: Will GPL Java eat into Python marketshare?

2006-11-16 Thread Boris Borcic
John Bokma wrote: Seriously though, there is no contradiction between the idea of people use Python instead of Java because they prefer to avoid pain It sounds like a typical fanboy statement to me, since it implies that Java is always a pain, and Python is perfect. That inference

Re: split CSV fields

2006-11-16 Thread John Machin
Fredrik Lundh wrote: robert wrote: What is a most simple expression for splitting a CSV line with -protected fields? s='123,a,b,\c\,5.640' import csv the preferred way is to read the file using that module. if you insist on processing a single line, you can do cols =

Tkinter Python 2.5 Problems on MAC OS 10.3.9

2006-11-16 Thread Thomas Ploch
Hello folks, Since this is my first post on the list, a brief introduction of myself. My name is Thomas, I am 26 years old, I am a student of Computational Linguistics and I am a python user. :-) Now my problem: I have Tcl/Tk 8.4.4 installed: iPimpG4:~ profipimp$ tclsh % info patchlevel

Re: split CSV fields

2006-11-16 Thread John Machin
John Machin wrote: Fredrik Lundh wrote: robert wrote: What is a most simple expression for splitting a CSV line with -protected fields? s='123,a,b,\c\,5.640' import csv the preferred way is to read the file using that module. if you insist on processing a single line,

Re: split CSV fields

2006-11-16 Thread Fredrik Lundh
John Machin wrote: Given Peter Otten's post, looks like (1) there's a bug in the fmtparam mechanism -- it's ignoring the escapechar in my first twiddle, which should give the same result as Peter's. (2) | csv.excel.doublequote True According to my reading of the docs: doublequote

Re: split CSV fields

2006-11-16 Thread John Machin
John Machin wrote: John Machin wrote: Fredrik Lundh wrote: robert wrote: What is a most simple expression for splitting a CSV line with -protected fields? s='123,a,b,\c\,5.640' import csv the preferred way is to read the file using that module. if you insist

Re: split CSV fields

2006-11-16 Thread Peter Otten
John Machin wrote: | s='123,a,b,\c\,5.640' Note how I fixed the input: '123,a,b,\c\,5.640' '123,a,b,c,5.640' '123,a,b,\\c\\,5.640' '123,a,b,\\c\\,5.640' Peter -- http://mail.python.org/mailman/listinfo/python-list

Re: split CSV fields

2006-11-16 Thread John Machin
Fredrik Lundh wrote: John Machin wrote: Given Peter Otten's post, looks like (1) there's a bug in the fmtparam mechanism -- it's ignoring the escapechar in my first twiddle, which should give the same result as Peter's. (2) | csv.excel.doublequote True According to my reading

Re: Secure Python

2006-11-16 Thread timmy
Fredrik Lundh wrote: timmy wrote: congraulations you have discovered loops and their misuse if you don't know what the phrase denial of service attack means, you can always google for it. /F maybe you should google linux kernel limit and you can prevent any user/process maxing out

Re: Secure Python

2006-11-16 Thread timmy
Steven D'Aprano wrote: On Thu, 16 Nov 2006 17:44:37 +1000, timmy wrote: congraulations you have discovered loops and their misuse Did you have a point in your utterly inane comment, or did you just want to see your name on Usenet? In any case, it isn't just loops that are dangerous.

Re: Secure Python

2006-11-16 Thread Fredrik Lundh
timmy wrote: maybe you should google linux kernel limit and you can prevent any user/process maxing out your system one would have thought that the phrase apart from OS-specific stuff might have meant that the OP wasn't asking for Linux-specific solutions. /F --

Re: lxml/ElementTree and .tail

2006-11-16 Thread Chas Emerick
Thanks for the comments and thoughts. I must admit that I have an overwhelming feeling of having just stepped into the middle of a complex, heated conversation without having heard the preamble. (FYI, this reply is only an attempt to help those that come afterwards -- I'm not looking to

Re: Secure Python

2006-11-16 Thread Stephan Kuhagen
timmy timothy at open-networks.net wrote: This sub-thread starts to become a flame-war, isn't it? Calm down, both of you... No need to fight, when only some ideas for a technical question are requested. as posted before, linux kernel limit. then you and your users can go as crazy as you want

pyj file extension

2006-11-16 Thread bituman
I have two questions for the list: - what extension is pyj ? - is there a good python debugger that can inspect precompiled python files? Thank you :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Secure Python

2006-11-16 Thread timmy
Fredrik Lundh wrote: timmy wrote: maybe you should google linux kernel limit and you can prevent any user/process maxing out your system one would have thought that the phrase apart from OS-specific stuff might have meant that the OP wasn't asking for Linux-specific solutions. /F

Re: Secure Python

2006-11-16 Thread timmy
Stephan Kuhagen wrote: timmy timothy at open-networks.net wrote: This sub-thread starts to become a flame-war, isn't it? Calm down, both of you... No need to fight, when only some ideas for a technical question are requested. i'm not fighting, sometimes i can be a little terse for that i

Re: lxml/ElementTree and .tail

2006-11-16 Thread Fredrik Lundh
Chas Emerick wrote: might be represented as: Element a: head='', text='last' Element b: head='first', text='middle' sure, and you could use a text subtype instead that kept track of the elements above it, and let the elements be sequences of their siblings instead of their

Re: Tkinter Python 2.5 Problems on MAC OS 10.3.9

2006-11-16 Thread martin . laloux
which distribution of python you use ? I use the one of http://pythonmac.org/packages/py25-fat/index.html withoutproblem -- http://mail.python.org/mailman/listinfo/python-list

Re: pyj file extension

2006-11-16 Thread Diez B. Roggisch
bituman wrote: I have two questions for the list: - what extension is pyj ? AFAIK custom to some game that uses python - but I guess you already know that. - is there a good python debugger that can inspect precompiled python files? You can decompyle them:

Re: Will GPL Java eat into Python marketshare?

2006-11-16 Thread comechao
I'm using python couse its clean, fast, fast to develop, easy, beauty, an alternative. Java its a mainstream lang, GPL or not... i think *sorry for my (por) english walterbyrd escreveu: Some think it will. Up untill now, Java has never been standard across different versions of Linux

Re: Will GPL Java eat into Python marketshare?

2006-11-16 Thread Ray
walterbyrd wrote: Some think it will. How so? Just because Java is GPL doesn't mean you can type less while coding in it. BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream()); is still like that GPL or no GPL, no? Up untill now, Java has never been standard across

Re: Secure Python

2006-11-16 Thread Stephan Kuhagen
timmy timothy at open-networks.net wrote: count and limit the number of evaluation steps allowed for untrusted script or methods in untrusted script as well as to limit the recursion depth or memory to be allocated. idunno sounds like a lot of trouble to engineer a solution that has

Re: lxml/ElementTree and .tail

2006-11-16 Thread Chas Emerick
On Nov 16, 2006, at 7:25 AM, Fredrik Lundh wrote: If I'm wrong, just chalk it up to the fact that this is the first time I've ever looked at the Infoset spec, and I'm simply confused. the Infoset spec *is* the essence of XML; if you don't realize that an XML document is just a serialization

Re: Python v PHP: fair comparison?

2006-11-16 Thread James Cunningham
On 2006-11-16 05:46:45 -0500, Steve Holden [EMAIL PROTECTED] said: James Cunningham wrote: On 2006-11-15 20:59:26 -0500, walterbyrd [EMAIL PROTECTED] said: Bruno Desthuilliers wrote: walterbyrd a écrit : You mean there are web hosting companies that are still using Apache 1.3.x ?

Re: Python v PHP: fair comparison?

2006-11-16 Thread Luis M. González
Cameron Laird ha escrito: In article [EMAIL PROTECTED], Luis M. González [EMAIL PROTECTED] wrote: . . . Then look no further. Learn python and go kick php developers asses in the market place. There are thousands of php

Re: Python v PHP: fair comparison?

2006-11-16 Thread Fredrik Lundh
Luis M. González wrote: But as a web development language, it's olnly when people started to look for the rails killer and many python alternatives started to come up (although Django has been in development for a long time before all this hype). nah, people have built web stuff on Python

Re: lxml/ElementTree and .tail

2006-11-16 Thread Fredrik Lundh
Chas Emerick wrote: The principle and the practice diverge significantly in our neck of the woods. The current project involves consuming and making sense of extraordinarily (and typically unnecessarily) complex XHTML. wasn't your original complaint that ET didn't do the right thing when

Re: Tkinter Python 2.5 Problems on MAC OS 10.3.9

2006-11-16 Thread Kevin Walzer
Thomas Ploch wrote: Hello folks, Since this is my first post on the list, a brief introduction of myself. My name is Thomas, I am 26 years old, I am a student of Computational Linguistics and I am a python user. :-) Now my problem: I have Tcl/Tk 8.4.4 installed: iPimpG4:~

Re: Python v PHP: fair comparison?

2006-11-16 Thread Paul Boddie
Luis M. González wrote: OK. But since when has python been considered a viable alternative for web development? Since the Bobo era (ca. 1997), but quite possibly before. Sure, you had to build your own mega-framework back then, but that's what a lot of people were doing anyway. As a generalp

Heap Memory

2006-11-16 Thread Bugra Cakir
Hi my name is Bugra Cakir, I have a question. How can we increase heap memory or total memory Python interpreter will use in order to avoid memory problems ? -- http://mail.python.org/mailman/listinfo/python-list

Re: lxml/ElementTree and .tail

2006-11-16 Thread Chas Emerick
On Nov 16, 2006, at 8:12 AM, Fredrik Lundh wrote: Chas Emerick wrote: The principle and the practice diverge significantly in our neck of the woods. The current project involves consuming and making sense of extraordinarily (and typically unnecessarily) complex XHTML. wasn't your

Re: lxml/ElementTree and .tail

2006-11-16 Thread Stefan Behnel
Fredrik Lundh wrote: Stefan Behnel wrote: If you want to copy part of of removed element back into the tree, feel free to do so. and that can of course be done with a short helper function. Oh, and obviously with a custom Element class in lxml that does this automatically for you behind

Re: Secure Python

2006-11-16 Thread Paul Boddie
Stephan Kuhagen wrote: Sounds very likely, but does not solve the problem. With resource management on the OS level you can indeed set some important limits for untrusted scripts, but there are at least two drawbacks, which come to my mind (and maybe more, that I'm not aware of): 1. OS level

Re: Py3K idea: why not drop the colon?

2006-11-16 Thread Neil Cerutti
On 2006-11-16, Steve Holden [EMAIL PROTECTED] wrote: I'm always surprised by the amount of energy that's put into this type of discussion - even the OP has suggested that this isn't a big issue. If it's not a big issue why is this thread still going? Every language has a syntax. Why not just

Re: lxml/ElementTree and .tail

2006-11-16 Thread Stefan Behnel
Chas Emerick wrote: the delta between Elements and DOM-style elements leads to other issues. There's no doubt that the needed helpers are simple, but all things being equal, not having to carry them around anywhere we're doing DOM manipulations is a big plus. Because we're far from doing

deciding what is a dir (folder) in a zip file

2006-11-16 Thread Jim
Hello, I'm trying to read .zip files and drop from the listing those files that are directories. I'm using the zipfile module. Does anyone know how I can I tell which files in the .zip are directories? I have looked around the net for the information but I cannot make it out: the pkzip

Re: python-ldap and Python 2.5

2006-11-16 Thread Michael Ströder
Michael Ströder wrote: But this seems to help (tested on my local system): http://sourceforge.net/tracker/index.php?func=detailaid=1575329group_id=2072atid=102072 Released python-ldap 2.2.1 yesterday which contains this fix. Ciao, Michael. --

Re: Secure Python

2006-11-16 Thread Diez B. Roggisch
as posted before, linux kernel limit. then you and your users can go as crazy as you want and you won't take out your system. maybe you should think a little more before going on the attack like that. You should maybe read a little bit more when making bold statements about the

fast kd-tree or octree implementations for python

2006-11-16 Thread Neilen Marais
Hi. I'm doing a FEM (Finite Elements) code in python. It uses a tetrahedral mesh to represent the geometry. For post-processing one specifies a list of 3D coordinates to calculate field values at, which requires the tet that contains a given point. Right now I'm brute-forcing it checking each tet

Re: Will GPL Java eat into Python marketshare?

2006-11-16 Thread John Roth
walterbyrd wrote: Some think it will. Up untill now, Java has never been standard across different versions of Linux and Unix. Some think that is one reason that some developers have avoided Java in favor of Python. Now that Java has been GPL'd that might change. IMO: it won't make much

Re: Decimal() instead of float?

2006-11-16 Thread Steve Holden
Paul Rubin wrote: Steve Holden [EMAIL PROTECTED] writes: Unfortunately some applications are getting such large tables that a 32-bit field is insufficient to enumerate all existing and deleted rows. Then you have to start keeping tables of unused primary keys. Please tell me that's not from

Re: Python v PHP: fair comparison?

2006-11-16 Thread Steve Holden
James Cunningham wrote: On 2006-11-16 05:46:45 -0500, Steve Holden [EMAIL PROTECTED] said: James Cunningham wrote: On 2006-11-15 20:59:26 -0500, walterbyrd [EMAIL PROTECTED] said: Bruno Desthuilliers wrote: walterbyrd a écrit : You mean there are web hosting companies that are still using

Re: lxml/ElementTree and .tail

2006-11-16 Thread Fredrik Lundh
Paul Boddie wrote: It's not very difficult, really; especially if you, as Stefan said, think in infoset terms rather a sequence of little piggies terms. Are piggies part of the infoset too? Does the Piggie class represent a piggie from the infoset plus a stretch of the road to the market?

Re: Secure Python

2006-11-16 Thread Stephan Kuhagen
Paul Boddie wrote: implement the lowest common denominator of all OS resource managements to be platform independent, which is a strong requirement, IMO. I think I understand what you intend to say here: that some kind of Python sandbox relying on operating system facilities can only depend

Re: Secure Python

2006-11-16 Thread krishnakant Mane
after reading all the mails on this thread, I have the following observations. I am relatively new to python at its development side but very old as far as using python is concerned. firstly, talking about gnu/linux there is no question about security. python, if at all it is non-secure wont harm

Re: Python v PHP: fair comparison?

2006-11-16 Thread James Cunningham
On 2006-11-16 09:08:43 -0500, Steve Holden [EMAIL PROTECTED] said: James Cunningham wrote: On 2006-11-16 05:46:45 -0500, Steve Holden [EMAIL PROTECTED] said: James Cunningham wrote: On 2006-11-15 20:59:26 -0500, walterbyrd [EMAIL PROTECTED] said: Bruno Desthuilliers wrote: walterbyrd a

Re: Secure Python

2006-11-16 Thread Paul Boddie
Diez B. Roggisch wrote: [Multiplayer game servers] Now how exactly does linux (or any other resource limiting technique on any OS) help here - killing the whole game server surely isn't a desirable solution when one player goes berserk, might it be intentionally or not. A significant issue

ini files and plugins

2006-11-16 Thread tool69
Hi, I've made a basic LaTeX file editor in wxPython, but now I wanted to add it some features : 1 - create a sort of ini file where I can put the user configuration that will load itself on the application startup ; 2 - a simple plugin system with python files ( maybe to add new langages,

Re: Python v PHP: fair comparison?

2006-11-16 Thread Cameron Laird
In article [EMAIL PROTECTED], Luis M. González [EMAIL PROTECTED] wrote: . . . Perhaps it's timely to clarify the newer above: Guido made Python public in '89-90, and Rasmus showed PHP to others in '94-95. OK. But since when has

Re: Multithreaded C API Python questions

2006-11-16 Thread robert
Svein Seldal wrote: You seem to use the functions in very rude manner - wanting to force the GIL around at lowest level. Better forget the word GIL and think about acquiring and releasing Threads. For each thread wanting to execute Python stuff there has to be a thread state (ts). And then

Re: ini files and plugins

2006-11-16 Thread Fredrik Lundh
tool69 wrote: 1 - create a sort of ini file where I can put the user configuration that will load itself on the application startup ; http://docs.python.org/lib/module-ConfigParser.html ? 2 - a simple plugin system with python files ( maybe to add new langages, etc.) ;

Re: Tkinter Python 2.5 Problems on MAC OS 10.3.9

2006-11-16 Thread Thomas Ploch
Kevin Walzer schrieb: Thomas Ploch wrote: Hello folks, Since this is my first post on the list, a brief introduction of myself. My name is Thomas, I am 26 years old, I am a student of Computational Linguistics and I am a python user. :-) Now my problem: I have Tcl/Tk 8.4.4

ANN: python-ldap-2.2.1

2006-11-16 Thread Michael Ströder
Find a new release of python-ldap: http://python-ldap.sourceforge.net/ python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related stuff (e.g.

Re: ini files and plugins

2006-11-16 Thread tool69
Fredrik Lundh a écrit : tool69 wrote: 1 - create a sort of ini file where I can put the user configuration that will load itself on the application startup ; http://docs.python.org/lib/module-ConfigParser.html ? 2 - a simple plugin system with python files ( maybe to add new

Re: Yield

2006-11-16 Thread Danny Colligan
Now that we're on the subject, what are the advantages of using generators over, say, list comprehensions or for loops? It seems to me that virtually all (I won't say everything) the examples I've seen can be done just as easily without using generators. For example, Fredrik's initial example in

Re: numpy/scipy: error of correlation coefficient (clumpy data)

2006-11-16 Thread sturlamolden
robert wrote: Think of such example: A drunken (x,y) 2D walker is supposed to walk along a diagonal, but he makes frequent and unpredictable pauses/slow motion. You get x,y coordinates in 1 per second. His speed and time pattern at all do not matter - you just want to know how well he

Will subprocess eventually deprecate popen2 ?

2006-11-16 Thread Daniel Klein
I have a few Python programs that use popen2, and they work quite nicely and dependably, so I don't really have any reason to change them to use the new subprocess module...unless of course there any future plans to deprecate popen2. Is this something I will have to plan for ? --

  1   2   3   >