On Mon, Apr 27, 2009 at 11:11 PM, Aaron Brady wrote:
> What is the rationale for considering all instances true of a user-
> defined type? Is it strictly a practical stipulation, or is there
> something conceptually true about objects?
>
> '''
> object.__bool__(self)
> If a class defines neither
Aaron Brady wrote:
What is the rationale for considering all instances true of a user-
defined type?
User-defined objects (or type) can override .__len__() [usually
container types] or .__nonzero__() to make bool() returns False.
Is it strictly a practical stipulation, or is there
somethi
On Mon, Apr 27, 2009 at 11:11 PM, Aaron Brady wrote:
> What is the rationale for considering all instances true of a user-
> defined type? Is it strictly a practical stipulation, or is there
> something conceptually true about objects?
>
> '''
> object.__bool__(self)
> If a class defines neither
In article <9a827369-b36f-4a86-870a-e5a505e34...@q33g2000pra.googlegroups.com>,
Vsevolod wrote:
>On Apr 27, 8:18 pm, a...@pythoncraft.com (Aahz) wrote:
>>
>> If you want to talk about Python and problems you're running into, you
>> should start a new thread.
>
>I'm not at that level of proficien
What is the rationale for considering all instances true of a user-
defined type? Is it strictly a practical stipulation, or is there
something conceptually true about objects?
'''
object.__bool__(self)
If a class defines neither __len__() nor __bool__(), all its instances
are considered true.
''
In message , Steven
D'Aprano wrote:
> On Tue, 28 Apr 2009 11:19:51 +1200, Lawrence D'Oliveiro wrote:
>
>> Either there are enough people using it to care about it, in which case
>> somebody in the community will fix it, it or there are not, in which
>> case it's not worth bothering with.
>
> Th
On Apr 27, 8:59 pm, Way wrote:
> Hello friends,
>
> I have a little messy situation on IPC. Please if you can, give me
> some suggestion on how to implement. Thanks a lot!
>
> -> denotes create
>
> MainProcess -> Process1 -> Process3 (from os.system)
> |
> ->
Gunter Henriksen writes:
> Indeed, but I can "import signal" or "import socket"
> wherever I go, without worrying about requiring (or
> worse yet, having to bundle) a CPython plugin
Oh I see what you mean, yes, it's a recurring problem.
It would be nice if the mmap module included some ipc synch
William Clifford writes:
> def enrag(start, stop=None, step=1):
> '''Yield a range of numbers from inside-out, evens on left.'''
>>> list(enrag(10))
[8, 6, 4, 2, 0, 1, 3, 5, 7, 9]
ok, but:
>>> list(enrag(10,20))
[18, 16, 14, 12, 10, 1, 3, 5, 7, 9, 11, 13, 15, 17, 19]
is
On Apr 28, 12:19�am, William Clifford
wrote:
> On Apr 27, 9:22�pm, Steven D'Aprano
>
>
>
>
>
> wrote:
> > On Mon, 27 Apr 2009 20:27:07 -0700, William Clifford wrote:
> > > For some reason I thought I needed this code, but it turns out I don't,
> > > really.
> > > I need something weirder. Anyway,
On Apr 28, 12:20 am, Gunter Henriksen
wrote:
> > If you don't want to use a 3rd party module you could
> > use the multiprocessing module
>
> That is definitely good for when I have a tree of
> processes which are all Python applications. I use
> it for that. But I am looking for something where
> > > Try this: http://nikitathespider.com/python/shm/
> >
> > I am hoping not to plug something underneath the Python
> > VM; I would rather use a socket, or use signals.
>
> I'm not sure what you mean. It's just an extension module
> that you'd import like any of the stdlib modules.
I cannot im
On Apr 27, 10:59 pm, Way wrote:
> Hello friends,
>
> I have a little messy situation on IPC. Please if you can, give me
> some suggestion on how to implement. Thanks a lot!
>
> -> denotes create
>
> MainProcess -> Process1 -> Process3 (from os.system)
> |
> -
> i am getting more specific, is there any web development framework
> better than mod python which is
> easy to maintain.
>
I'd have a hard time categorizing mod_python as a "web development
framework"; it seems to me to be primarily a Python accelerator for Apache,
with lightweight tools which c
On Apr 27, 9:22 pm, Steven D'Aprano
wrote:
> On Mon, 27 Apr 2009 20:27:07 -0700, William Clifford wrote:
> > For some reason I thought I needed this code, but it turns out I don't,
> > really.
> > I need something weirder. Anyway, maybe someone else could use this.
>
> > def enrag(start, stop=None
> If you don't want to use a 3rd party module you could
> use the multiprocessing module
That is definitely good for when I have a tree of
processes which are all Python applications. I use
it for that. But I am looking for something where
the Python application can interact conveniently
with an
> > 2) I have my web based application written using mod_python
> > a. It should be more based on framework type.
> > b. It should have all the features present in mod_python.
>
> These two goals conflict. You'll need to use your brain to discover
> what is best for your application. In gener
On Apr 27, 2009, at 8:45 PM, Gunter Henriksen wrote:
Try this: http://nikitathespider.com/python/shm/
I took a look at that (especially the posix_ipc at
http://semanchuk.com/philip/posix_ipc/).
Hej Gunter,
The posix_ipc and sysv_ipc modules both do what you're asking for. Shm
does too but
Dan Sommers wrote:
On Mon, 27 Apr 2009 07:57:00 +0300, Ciprian Dorin, Craciun wrote:
I agree with your opinion about keeping the abstraction layers
shallow, but in my view high-order and helper functions do not comprise
a new abstraction layer. For example in Lisp, using map, reduce (fold),
On Tue, 28 Apr 2009 11:19:51 +1200, Lawrence D'Oliveiro wrote:
> In message , Aahz wrote:
>
>> In article , Lawrence D'Oliveiro
>> wrote:
>>>
>>>It's only in the proprietary-software world that we need to worry about
>>>backward compatibility with old, obsolete software that the vendors
>>>cann
On Mon, 27 Apr 2009 20:27:07 -0700, William Clifford wrote:
> For some reason I thought I needed this code, but it turns out I don't,
> really.
> I need something weirder. Anyway, maybe someone else could use this.
>
> def enrag(start, stop=None, step=1):
> '''Yield a range of numbers from in
On Mon, 27 Apr 2009 21:46:13 -0400, Gary Oberbrunner wrote:
> I have a module, foo.bar, that defines a number of functions and
> variables as usual. Now after importing foo.bar, I'd like to load
> another file of code (say xyz.py), but *into* foo.bar's namespace. So
> if xyz.py contains:
>
> de
For some reason I thought I needed this code, but it turns out I
don't, really.
I need something weirder. Anyway, maybe someone else could use this.
def enrag(start, stop=None, step=1):
'''Yield a range of numbers from inside-out, evens on left.'''
if stop is None:
stop, start = s
On Apr 27, 11:31 pm, David Bolen wrote:
> I'm curious - do you know what happens if threading is implemented as
> a native OS thread and it's stuck in an I/O operation that is blocked?
> How does the Lisp interpreter/runtime gain control again in order to
> execute the specified function? I guess
On Apr 27, 8:18 pm, a...@pythoncraft.com (Aahz) wrote:
> That's because there's no response to make; the original post was a joke,
> and trying to have a serious discussion about it rarely excites people.
In every joke there's a grain of truth. And usenet is precisely for
that thing -- discussions
Hello,
I have been using ClientForm to log in to sites & ClientCookie so I
can automatically log into my site to do some penetration testing,
although, I cannot figure out a solution to use proxies with this
logging in automatically. Does anyone have any solutions?
Thanks :)
Vince
--
http://mail
On Mon, 27 Apr 2009 07:57:00 +0300, Ciprian Dorin, Craciun wrote:
> On Mon, Apr 27, 2009 at 2:14 AM, Dan Sommers
> wrote:
>> Also from the Zen: flat is better than nested. One of the aspects of
>> flatter call trees and object hierarchies is that I hit the bottom
>> (language features or the s
Gary Oberbrunner wrote:
Hi; my first time posting here. I have a somewhat tricky problem I'd
like some help with.
I have a module, foo.bar, that defines a number of functions and
variables as usual. Now after importing foo.bar, I'd like to load
another file of code (say xyz.py), but *into* foo
Hello,
I'm experiencing odd errors on both windows and linux with the following
code:
import sys
from PyQt4.QtCore import *
from PyQt4.QtGui import *
class Options(QDialog):
def __init__(self, values):
QDialog.__init__(self)
self.values = values
fooEdit = QLineEdit
Hi,
Please see my post titled "The whole story"
"Martin P. Hellwig" wrote in message
news:qokdnqz7zfefw2junz2dnuvz8jqdn...@bt.com...
> Carbon Man wrote:
>> I have a program that is generated from a generic process. It's job is to
>> check to see whether records (replicated from another system)
Hi Andrew,
The reason I am using mapped objects is that I need to abstract from the
database implementation allowing the replication to target a number of
different platforms. This will definitely slow things down.
> process a whole pile in memory and then (perhaps every 10,000 - when your
> mem
Hi; my first time posting here. I have a somewhat tricky problem I'd
like some help with.
I have a module, foo.bar, that defines a number of functions and
variables as usual. Now after importing foo.bar, I'd like to load
another file of code (say xyz.py), but *into* foo.bar's namespace. So
if x
winterTTr wrote:
I want to list the file with glob .
The path( which is a directory ) is contain square bracket as "[ab]
xxx"
. However , i can't find how to do it rightly with glob .
with the coding :
{{{
import glob
glob.glob('[ab]xxx' )
}}}
and with the path "[ab]xxx" really exits.
result
Gunter Henriksen writes:
> > Try this: http://nikitathespider.com/python/shm/
>
> I took a look at that (especially the posix_ipc at
> http://semanchuk.com/philip/posix_ipc/). I am hoping not to plug
> something underneath the Python VM; I would rather use a socket, or
> use signals.
I'm not s
not sure i've read all the posts on this, and i don't fully understand the
problem, but someone's mentioned sqlalchemy, so here's my experience with
that and large updates using mapped objects.
1 - don't commit each object as you modify it. instead, process a whole
pile in memory and then (perha
I want to list the file with glob .
The path( which is a directory ) is contain square bracket as "[ab]
xxx"
. However , i can't find how to do it rightly with glob .
with the coding :
{{{
import glob
glob.glob('[ab]xxx' )
}}}
and with the path "[ab]xxx" really exits.
result : []
Is there a wa
> Try this: http://nikitathespider.com/python/shm/
I took a look at that (especially the posix_ipc at
http://semanchuk.com/philip/posix_ipc/). I am hoping
not to plug something underneath the Python VM; I
would rather use a socket, or use signals. If I were
to use a C library, I imagine I would
I am trying to get Tkinter to work with my Python build.
I've scoured usenet(comp.lang.Python) and google and there's
information that's helpful but I just can't seam to get it completely
right. I tried many of the suggestion, but nothing seems to work
My setup is Fedora Cor
The reason I started down this path is that the program is grinding to a
halt (my PC as well) and the only way to get it going again is:
>>>import gc
>>>gc.collect()
2524104
Memory used by the process is around 500MB, I have posted about this problem
before on this newsgroup but I didn't get a r
Gunter Henriksen writes:
> A thin layer over pthreads would be nice, or which
> is using POSIX semaphores/queues would be ok. I
> can use mmap for shared memory; that is not problem.
> The synchronization is where I need help.
Try this: http://nikitathespider.com/python/shm/
--
http://mail.pytho
On Monday 27 April 2009, TheIvIaxx wrote:
> Hello, I have searched for some solution to getting the object data
> from a ZODB Data.fs file into something i can work with for MySQL. So
> far, no such luck. I can open the DB and poke around, but im not sure
> where or what to even poke :)
>
Normal
In message , Gunter
Henriksen wrote:
> I would ideally like to have something which does
> not need to make a system call in an uncontended
> case for the mutex.
In Linux you could use a futex.
--
http://mail.python.org/mailman/listinfo/python-list
In message , Grant
Edwards wrote:
> On 2009-04-26, Lawrence D'Oliveiro
> wrote:
>
>> In message <_vqdnf6pny1gymzunz2dnuvz_qcdn...@posted.visi>, Grant Edwards
>> wrote:
>>
>>> ... if one didn't care about backwards-compatiblity with old e-mail
>>> apps, then one would use a less broken mailbox fo
In message , Aahz wrote:
> In article ,
> Lawrence D'Oliveiro wrote:
>>
>>It's only in the proprietary-software world that we need to worry about
>>backward compatibility with old, obsolete software that the vendors
>>cannot or will not fix. In the Free Software world, we fix the software
>>to b
En Mon, 27 Apr 2009 19:13:39 -0300, TheIvIaxx
escribió:
Hello, I have searched for some solution to getting the object data
from a ZODB Data.fs file into something i can work with for MySQL. So
far, no such luck. I can open the DB and poke around, but im not sure
where or what to even poke
TheIvIaxx schrieb:
Hello, I have searched for some solution to getting the object data
from a ZODB Data.fs file into something i can work with for MySQL. So
far, no such luck. I can open the DB and poke around, but im not sure
where or what to even poke :)
It was a simple plone site, with main
Hello, I have searched for some solution to getting the object data
from a ZODB Data.fs file into something i can work with for MySQL. So
far, no such luck. I can open the DB and poke around, but im not sure
where or what to even poke :)
It was a simple plone site, with mainly Pages/Documents (t
I am interested in the lightest mechanism to use
in a Python application for mutex/wait/notify
between processes, one of which may be a program
which does not have a shared ancestral benefactor,
or may not be a Python program at all.
I would ideally like to have something which does
not need to ma
On Mon, 27 Apr 2009 04:22:24 -0700 (PDT), psaff...@googlemail.com wrote:
> I'm using the CSV library to process a large amount of data - 28
> files, each of 130MB. Just reading in the data from one file and
> filing it into very simple data structures (numpy arrays and a
> cstringio) takes around
David Bolen writes:
> I'm curious - do you know what happens if threading is implemented as
> a native OS thread and it's stuck in an I/O operation that is blocked?
> How does the Lisp interpreter/runtime gain control again in order to
> execute the specified function? I guess on many POSIX-ish
>
pom wrote:
> So I want to create PDF output based on an external layout file.
You can allow for a transformation file which is read by your program
to change the layout of the output. Think templates.
AK
--
http://mail.python.org/mailman/listinfo/python-list
Vsevolod writes:
> "This should be used with caution: it is implementation-defined
> whether the thread runs cleanup forms or releases its locks first."
> This doesn't mean deprecated. It means: implementation-dependent. For
> example in SBCL: "Terminate the thread identified by thread, by
> caus
Zooko O'Whielacronx wrote:
I like pyflakes. I haven't tried the others. I made a setuptools
plugin named "setuptools_pyflakes". If you install that package, then
"python ./setup.py flakes" runs pyflakes on your package.
Regards,
Thanks Zooko
I decided to give all of them a try :-)
Esmai
Regarding feedback about
WHIFF -- WSGI/HTTP Integrated Filesystems Frames
On Apr 23, 3:43 pm, Aaron Watters wrote:
> On Apr 23, 11:54 am, Johannes Bauer wrote:
>
> > To sum it up, I think it's a neat idea, but it's not really intuitive.
> > After being quite startled at first it got better a
Terry Reedy wrote:
> John Doe wrote:
...
>> Windows Explorer does include Undo.
>
> I learn something new. In my WinXP, I found that Explorer has 'Undo
> Move' (good to learn actually, for when I drop a file in the wrong
> place),
Yup!
FWIW...
I enable the Windows Explorer status bar her
Hi,
I have a small problem using the M2Crypto for SSL certificate verification.
I have a client and a server who wants to get the certificates verified by
the other in order start the communication. I am able to get the server
certificate verified by the client but not the client certificate in t
John Doe wrote:
Terry Reedy wrote:
John Doe wrote:
John Doe wrote:
...
Another file manager, FreeCommander, does find text in Python
files.
However... It does not have Undo! Potentially risky.
Undo is an editor function. I do not believe Windows Explore has
Undo either.
Besides Undo.
En Mon, 27 Apr 2009 08:56:44 -0300, rahul escribió:
is this generic API can be use to change ucs-2 to ucs-4
I forget to comment on UCS-2 and UCS-4. Python does not support them
directly; use utf-16 and utf-32 instead. If you start with an encoded
string in UCS-2, the differences are irrel
En Mon, 27 Apr 2009 08:56:44 -0300, rahul escribió:
is this generic API can be use to change ucs-2 to ucs-4
PyObject * PyCodec_Encode(
PyObject *object,
const char *encoding,
const char *errors
);
if yes than what is the format of denoting ucs-4, because i try to d
On Fri, Apr 24, 2009 at 10:19 AM, Mark Tarver wrote:
> but also says that their representation is implementation dependent.
> As far as I see this should mean that element access in Python should
> run in constant time. Now if so this is a boon, because generally
>
When I first learned Python, I
Chaps,
I have the following code:
if pygame.font:
font = pygame.font.Font(None, 36)
#font = pygame.font.Font('liberationserif',36)
text = font.render("Esc to quit.", 1, (10, 10, 10))
textpos = text.get_rect()
textpos.centerx = background.get_rect().centerx
background.blit(
On Apr 27, 1:50 pm, "Gabriel Genellina"
wrote:
> En Thu, 23 Apr 2009 16:44:25 -0300, Lawson English
> escribió:
>
> > Can anyone tell me why these two behave differfently?
>
> >http://pastebin.com/m57bee079vs http://pastebin.com/m3c044b29
>
> The code is so different that I don't see why they
Mr SZ wrote:
Hi all,
Is it possible to call functions using getattr. I have written a simple script
with functions that call either SSL, TLS or plain functionality.
something like:
def func():
...
def funcSSL():
...
def funcTLS():
funcs = {'none':func, 'SSL':funcSSL, 'TLS':funcTLS}
...
If you make line numbers visible (View -> View Line Numbers) then
you can do what you want in the line numbers gutter.
I am using the free editor-only Komodo Edit. Apparently that does not
work here.
I believe it was a recent change. What version are you using? You could
try the latest night
En Thu, 23 Apr 2009 16:44:25 -0300, Lawson English
escribió:
Can anyone tell me why these two behave differfently?
http://pastebin.com/m57bee079 vs http://pastebin.com/m3c044b29
The code is so different that I don't see why they should behave
similarly...
Please strip it down to the bar
Johannes Bauer wrote:
Hi group,
I have a very simple about sets. This is a minimal example:
#!/usr/bin/python
class x():
def __init__(self, y):
self.__y = y
def __eq__(self, other):
return self.__y == other.__y
def __hash__(self):
Trent Mick wrote:
> John Doe wrote:
>> There is a region on the left margin to the left of the code
> BTW, we call those regions "gutters" of the editing area.
Okay.
>> the right of the outlining area, in between the code and the
>> outlining area. It looks like an area used to select lines.
Terry Reedy wrote:
> John Doe wrote:
>> John Doe wrote:
>>
>> ...
>>
>>> Another file manager, FreeCommander, does find text in Python
>>> files.
>>
>> However... It does not have Undo! Potentially risky.
>
> Undo is an editor function. I do not believe Windows Explore has
> Undo either.
B
On Apr 27, 10:26 am, Jeroen Ruigrok van der Werven wrote:
> -On [20090427 15:00], prueba...@latinmail.com (prueba...@latinmail.com) wrote:
>
> >Thanks Jeroen. I know that AIX isn't as supported as other platforms,
> >but I thought it wouldn't hurt to ask anyway. A
psaff...@googlemail.com wrote:
Thanks for your replies. Many apologies for not including the right
information first time around. More information is below
Here is another way to try (untested):
import numpy
import time
chrommap = dict(chrY='y', chrX='x', chr13='c', chr12='b', chr11='a',
En Mon, 27 Apr 2009 14:50:23 -0300, Gabriel Genellina
escribió:
En Mon, 27 Apr 2009 13:12:29 -0300, Aahz escribió:
In article ,
Steven D'Aprano wrote:
On Sun, 26 Apr 2009 21:51:00 -0700, John Machin wrote:
ἐδάκρυσεν ὁ Ἰησοῦς
Alright, I give up. Is that APL code? *grin*
base64 enco
jazbees wrote:
On Apr 25, 12:11 pm, Duncan Booth
wrote:
jazbees wrote:
hasvowels = lambda x:max([y in x for y in "aeiou"])
hasvowels("parsnips")
True
hasvowels("sfwdkj")
False
Do you object to using def to define functions?
Not at all. Do you object to my use of lambdas? I'm not aware
John Doe wrote:
John Doe wrote:
...
Another file manager, FreeCommander, does find text in Python files.
However... It does not have Undo! Potentially risky.
Undo is an editor function. I do not believe Windows Explore has Undo
either.
--
http://mail.python.org/mailman/listinfo/python
En Mon, 27 Apr 2009 13:12:29 -0300, Aahz escribió:
In article ,
Steven D'Aprano wrote:
On Sun, 26 Apr 2009 21:51:00 -0700, John Machin wrote:
ἐδάκρυσεν ὁ Ἰησοῦς
Alright, I give up. Is that APL code? *grin*
base64 encoding
Yes, my news client kindly decoded it for me.
It looks like Gr
John Doe wrote:
Another question...
There is a region on the left margin to the left of the code and to
BTW, we call those regions "gutters" of the editing area.
the right of the outlining area, in between the code and the
outlining area. It looks like an area used to select lines. But
draggi
On Apr 28, 2:30 am, Mr SZ wrote:
> Hi all,
>
> Is it possible to call functions using getattr. I have written a simple
> script with functions that call either SSL, TLS or plain functionality.
>
> something like:
> def func():
> ...
>
> def funcSSL():
> ...
>
> def funcTLS():
> ...
>
> Now,
Gustavo Narea wrote:
> I need to evaluate boolean expressions like "foo == 1" or "foo ==1 and
> (bar > 2 or bar == 0)" which are defined as strings (in a database or
> a plain text file, for example). How would you achieve this?
>
> These expressions will contain placeholders for Python objects (
En Mon, 27 Apr 2009 14:03:01 -0300, Gustavo Narea
escribió:
I need to evaluate boolean expressions like "foo == 1" or "foo ==1 and
(bar > 2 or bar == 0)" which are defined as strings (in a database or
a plain text file, for example). How would you achieve this?
This recent thread may be of
On Montag, 27. April 2009, John Machin wrote:
> ἐδάκρυσεν ὁ Ἰησοῦς
και εγώ
+1
--
Wolfgang
--
http://mail.python.org/mailman/listinfo/python-list
In article <22272831-8d11-42d6-a587-9a2ab4712...@p6g2000pre.googlegroups.com>,
Vsevolod wrote:
>
>Yet there was no response to my point, that the original example was
>not realistically depicting the Lisp world, while more characteristic
>of the Python one.
That's because there's no response to
Mr SZ wrote:
> Is it possible to call functions using getattr. I have written a simple
> script with functions that call either SSL, TLS or plain functionality.
>
> something like:
> def func():
> ...
>
> def funcSSL():
> ...
>
> def funcTLS():
> ...
>
> Now, based on my args I would lik
On Apr 27, 7:16 pm, a...@pythoncraft.com (Aahz) wrote:
> Did you see my comment about Java? This particular issue has little to
> do with Python. I won't disagree that what you're describing is
> sometimes a problem in the Python community, but you're picking the
> wrong issue to claim its releva
Hello, everybody.
I need to evaluate boolean expressions like "foo == 1" or "foo ==1 and
(bar > 2 or bar == 0)" which are defined as strings (in a database or
a plain text file, for example). How would you achieve this?
These expressions will contain placeholders for Python objects (like
"foo" an
Hi all,
Is it possible to call functions using getattr. I have written a simple script
with functions that call either SSL, TLS or plain functionality.
something like:
def func():
...
def funcSSL():
...
def funcTLS():
...
Now, based on my args I would like to call either one of them. I
In article <42cebb2b-0361-416c-8932-9371da50a...@y6g2000prf.googlegroups.com>,
Vsevolod wrote:
>
>As well I'd like to outline, that, IMO, your answer exhibits the
>common attitude among pythonistas: everything should be done in one
>true way, which is the best option (and that is how it's impleme
On Apr 24, 11:06 pm, Carl Banks wrote:
> In answering the recent question by Mark Tarver, I think I finally hit
> on why Lisp programmers are the way they are (in particular, why they
> are often so hostile to the "There should only be one obvious way to
> do it" Zen).
>
> Say you put this task to
In article ,
Steven D'Aprano wrote:
>On Sun, 26 Apr 2009 21:51:00 -0700, John Machin wrote:
>>
>> á¼Î´Î¬ÎºÏÏ
Ïεν ὠἸηÏοῦÏ
>
>Alright, I give up. Is that APL code? *grin*
base64 encoding
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
"If you thin
In article ,
Peter Otten <__pete...@web.de> wrote:
>
>Here's a trick to find the actual element. I think Raymond Hettinger posted
>an implementation of this idea recently, but I can't find it at the moment.
Your code is inverted from Raymond's:
http://code.activestate.com/recipes/499299/
class
Carl Banks writes:
> > > Presumably you have to protect objects to share them? There you go:
> > > anytime you try to acquire a lock have the thread check to see whether
> > > to abort.
> >
> > Normally, acquiring a lock doesn't require running code in other
> > threads, at least in the uncontend
Hi,
A colleague of mine is looking for a Python IDE for Windows CE.
Does anybody happen to know what is a good choice?
Thanks,
AJ
--
http://mail.python.org/mailman/listinfo/python-list
psaff...@googlemail.com wrote:
> Thanks for your replies. Many apologies for not including the right
> information first time around. More information is below.
>
> I have tried running it just on the csv read:
> $ ./largefilespeedtest.py
> working at file largefile.txt
> finished: 3.86.2
>
Carbon Man wrote:
I have a program that is generated from a generic process. It's job is to
check to see whether records (replicated from another system) exist in a
local table, and if it doesn't, to add them.
To answer the topic question, it would be limited to the memory your
platform can
I have tried running it just on the csv read:
...
print "finished: %f.2" % (t1 - t0)
I presume you wanted "%.2f" here. :)
$ ./largefilespeedtest.py
working at file largefile.txt
finished: 3.86.2
So just the CSV processing of the file takes just shy of 4
seconds and you said that just
grocery_stocker wrote:
> On Apr 27, 5:15 am, Peter Otten <__pete...@web.de> wrote:
>> psaff...@googlemail.com wrote:
>> > I'm using the CSV library to process a large amount of data - 28
>> > files, each of 130MB. Just reading in the data from one file and
>> > filing it into very simple data stru
-On [20090427 15:00], prueba...@latinmail.com (prueba...@latinmail.com) wrote:
>Thanks Jeroen. I know that AIX isn't as supported as other platforms,
>but I thought it wouldn't hurt to ask anyway. At least now everybody
>can search for that particular problem and find something.
On Apr 27, 5:15 am, Peter Otten <__pete...@web.de> wrote:
> psaff...@googlemail.com wrote:
> > I'm using the CSV library to process a large amount of data - 28
> > files, each of 130MB. Just reading in the data from one file and
> > filing it into very simple data structures (numpy arrays and a
> >
On Apr 27, 1:49 am, John Machin wrote:
> > I am
> > having a look at eval and exec
>
> WRONG WAY
> GO BACK
+1 QOTW
--
http://mail.python.org/mailman/listinfo/python-list
Scott David Daniels wrote:
I don't remember who, but something famously said, in effect:
Debugging is hard, maybe twice as hard as writing the code in
the first place. Unless you are one of those nonexistent few
He would be the K in K&R.
--
http://mail.python.org/mailman/listinfo/pyth
Thanks for your replies. Many apologies for not including the right
information first time around. More information is below.
I have tried running it just on the csv read:
import time
import csv
afile = "largefile.txt"
t0 = time.clock()
print "working at file", afile
reader = csv.reader(open(a
Rahul wrote:
Hello all,
I have two questions
1) When will be python3.1 (final) get released? (The date should be
appropriate (proposed), it must be the span in between which there are
chances of release)
Go to http://www.puthon.org
Click on Core Development
Click on PEP Index
under Other
1 - 100 of 133 matches
Mail list logo