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 t
Any solution?
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
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)
a
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.
--
http://mail.python.org/mailman/listinfo/python-list
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 t
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.
>
>
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.
--
http://mail.python.org/mailman/listinfo/python-list
[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, i
[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, i
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 the
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
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:
iPimpG4:~/Python-Dev/example
many_years_after schrieb:
> Any solution?
http://wiki.python.org/moin/elmer
--
http://mail.python.org/mailman/listinfo/python-list
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
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) = 689,99
[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 righ
> 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
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?
>
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
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 regar
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 lin
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
--
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 s
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 "Elemen
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
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.
> }
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
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.
>>
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]
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 e
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/
--
http://mail.python.org/mailman/listinfo
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 "n
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.
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 leas
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,"
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 night
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. Ce
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
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 deliberat
> 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
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
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 inferenc
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
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
8.4.
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
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:
> """
>
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
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
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
> > Acc
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.
>
>
>
maybe you should google "linux kernel limit" and you can prevent any
user/proces
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
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.
--
http://mail.python.org/
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 adv
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 yo
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
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 solut
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 t
Chas Emerick wrote:
> might be represented as:
>
>
>
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 children, and perhaps stuff everything in a dictionary.
such a constru
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
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:
http://www.crazy-compiler
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 Lin
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 di
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
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 serializ
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 Apa
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 thous
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 Pyth
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"
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
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 gener
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
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 you
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 b
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 le
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 j
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 doi
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 specific
Michael Ströder wrote:
>
> But this seems to help (tested on my local system):
> http://sourceforge.net/tracker/index.php?func=detail&aid=1575329&group_id=2072&atid=102072
Released python-ldap 2.2.1 yesterday which contains this fix.
Ciao, Michael.
--
http://mail.python.org/mailman/listinfo/pyt
>
> 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 fe
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
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
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'
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 c
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 ma
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
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 a
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 Desthui
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 iss
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, etc
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.
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 you
"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.) ;
http://effbot
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
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. p
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 n
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
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
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 ?
--
http://mail.pyth
"Danny Colligan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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 do
Daniel Klein wrote:
>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.
definitely not in the 2.X series. a
1 - 100 of 241 matches
Mail list logo