On Fri, 14 Mar 2008 17:06:00 +, Matt Nordhoff wrote:
> Hmm, if Perl's on-disk hash tables are good, maybe someone should port
> them to Python, or maybe someone already has.
I don't know Perl's on-disk hash tables but there is a `shelve` module in
the standard library.
Ciao,
Marc 'Bl
On Fri, 14 Mar 2008 12:19:18 -0700, MRAB wrote:
> On Mar 13, 4:25 am, "David S" <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I have an error occurring at
>> self.build_root = os.path.abspath(os.path.split(__file__)[0])
>>
>> The error states 'NameError: global name '__file__' is not defined'
>>
On Mar 15, 6:44 am, Joshua Kugler <[EMAIL PROTECTED]> wrote:
> James Yu wrote:
> > Hi folks,
>
> > I prepared a python script for dynamically get the absolute paths of the
> > files in certain folder.
> > Then I tried to invoke that function from my web server in a .psp file
> > like this:
>
> >
On Fri, 14 Mar 2008 11:32:41 -0700, Lie wrote:
> No, there is no need for "void" return type, what I meant is that
> everything that's not said in the documentation should be assumed to
> be an implementation detail, a method or a function that doesn't say
> anything about its return type should b
Jeff Schwab <[EMAIL PROTECTED]> wrote:
>Roel Schroeven wrote:
>> [EMAIL PROTECTED] schreef:
>>> On Mar 14, 1:47 pm, "Reedick, Andrew" <[EMAIL PROTECTED]> wrote:
> Subject: RIP: Joseph Weizenbaum
> Creator of Eliza:
> http://www-tech.mit.edu/V128/N12/weizenbaum.html
>
How do you
On Mar 14, 9:45 pm, Jeff Schwab <[EMAIL PROTECTED]> wrote:
> Chris wrote:
> > On Mar 14, 8:36 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
> >> On Thu, 13 Mar 2008 21:28:18 -0700 (PDT), jai_python
> >> <[EMAIL PROTECTED]> declaimed the following in comp.lang.python:
>
> >>> hi frenz I Need a P
On Mar 14, 1:36 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
> On Thu, 13 Mar 2008 19:55:27 -0700 (PDT), [EMAIL PROTECTED] declaimed
> the following in comp.lang.python:
>
>
>
> > Thanks for the reply, Carsten, how would this work with UPDATE
> > command? I get this error:
>
> > cmd = "
On Mar 14, 6:37 pm, Alex <[EMAIL PROTECTED]> wrote:
> On Mar 13, 6:21 pm, Carl Banks <[EMAIL PROTECTED]> wrote:
>
> > On Mar 13, 7:02 am, Bruno Desthuilliers
> > [EMAIL PROTECTED]> wrote:
> > > Alex a écrit :
> > > (sni)
>
> > > > First of all thanks all for answering!
>
> > > > I have some enviro
On Mar 14, 8:15 pm, "David S" <[EMAIL PROTECTED]> wrote:
> By mapping network drives in windows I can get past these issues with path
> names.
>
> Thanks,
> David
>
> "Tim Golden" <[EMAIL PROTECTED]> wrote in message
>
> news:[EMAIL PROTECTED]
>
> > David S wrote:
> >> Gets me further but still see
By mapping network drives in windows I can get past these issues with path
names.
Thanks,
David
"Tim Golden" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> David S wrote:
>> Gets me further but still seems to be issue with space after 'Program' as
>> code tries to run 'C:\Progra
Roel Schroeven wrote:
> [EMAIL PROTECTED] schreef:
>> On Mar 14, 1:47 pm, "Reedick, Andrew" <[EMAIL PROTECTED]> wrote:
Subject: RIP: Joseph Weizenbaum
Creator of Eliza:
http://www-tech.mit.edu/V128/N12/weizenbaum.html
--
>>> How do you feel about creator of Eliza?
>>
>> What is
On Mar 14, 10:37 pm, Alex <[EMAIL PROTECTED]> wrote:
> On Mar 13, 6:21 pm, Carl Banks <[EMAIL PROTECTED]> wrote:
>
> > On Mar 13, 7:02 am, Bruno Desthuilliers
> > [EMAIL PROTECTED]> wrote:
> > > Alex a écrit :
> > > (sni)
>
> > > > First of all thanks all for answering!
>
> > > > I have some envir
Hi all,
I'm using the gzip module to return a gzip response from a small
python httpserver. I'd like to know the number of bytes written to
the underlying socket, but it doesn't seem to support the tell()
function. This works fine for a file:
[15:39:51] mattb ~ $ cat mygzip.py
#!/usr/bin/env py
On Mar 13, 6:21 pm, Carl Banks <[EMAIL PROTECTED]> wrote:
> On Mar 13, 7:02 am, Bruno Desthuilliers
>
>
> [EMAIL PROTECTED]> wrote:
> > Alex a écrit :
> > (sni)
>
> > > First of all thanks all for answering!
>
> > > I have some environment check and setup in the beginning of the code.
> > > I woul
I wrote:
> And here's a thread example, based on Benjamin's code:
[...]
Doh! Race condition. Make that:
import subprocess
import thread
import Queue
def readtoq(pipe, q):
q.put(pipe.read())
cat = subprocess.Popen('cat', shell=True, stdin=subprocess.PIPE,
stdout=subpr
On Mar 14, 2008, at Mar 14:5:59 PM, [EMAIL PROTECTED] wrote:
On Mar 14, 1:47 pm, "Reedick, Andrew" <[EMAIL PROTECTED]> wrote:
Subject: RIP: Joseph Weizenbaum
Creator of Eliza:
http://www-tech.mit.edu/V128/N12/weizenbaum.html
--
How do you feel about creator of Eliza?
What is Eliza?
On Mar 14, 5:16 pm, Roel Schroeven <[EMAIL PROTECTED]>
wrote:
> [EMAIL PROTECTED] schreef:
>
> > On Mar 14, 1:47 pm, "Reedick, Andrew" <[EMAIL PROTECTED]> wrote:
> >>> Subject: RIP: Joseph Weizenbaum
> >>> Creator of Eliza:
> >>>http://www-tech.mit.edu/V128/N12/weizenbaum.html
> >>> --
> >> How do
[EMAIL PROTECTED] schreef:
> On Mar 14, 1:47 pm, "Reedick, Andrew" <[EMAIL PROTECTED]> wrote:
>>> Subject: RIP: Joseph Weizenbaum
>>> Creator of Eliza:
>>> http://www-tech.mit.edu/V128/N12/weizenbaum.html
>>> --
>> How do you feel about creator of Eliza?
>
> What is Eliza?
Does that question inte
Floris Bruynooghe wrote:
> Benjamin Watine wrote:
> > Could you give me more information / examples about the two solutions
> > you've proposed (thread or asynchronous I/O) ?
>
> The source code of the subprocess module shows how to do it with
> select IIRC. Look at the implementation of the commu
On Mar 14, 1:47 pm, "Reedick, Andrew" <[EMAIL PROTECTED]> wrote:
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:python-
> > [EMAIL PROTECTED] On Behalf Of Aahz
> > Sent: Friday, March 14, 2008 2:05 PM
> > To: [EMAIL PROTECTED]
> > Subject: RIP: Joseph Weizenbaum
>
> > Creator of
On Mar 2, 3:43 pm, [EMAIL PROTECTED] wrote:
> '''
> Last time, we left off at:
> '''
>
> class InterfaceClientSide( ClientSide ):
> message= MessageDec()
> incremental= message.incremental()
> settings= AYT( .5, 3 )
> user_act= message.out()
> def __init__( s
On Mar 13, 9:14 pm, "Mauro \"Baba\" Mascia" <[EMAIL PROTECTED]> wrote:
> Hi, this is my question:
>
> I want to know if several switch (about 50) in a big lan are up and then
> know their MAC addresses to do a list that contains host name, ip and mac.
> I know only the range of their IP addresses (
"Jarek Zgoda" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Eric B. pisze:
>
>> I appologize if this is slightly OT, but I am really struggling to figure
>> out how to install Python2.4 on RHEL4. To make matters worse, the RHEL4
>> machine is a 64bit architecture.
>>
>> I search py
Eric B. pisze:
> I appologize if this is slightly OT, but I am really struggling to figure
> out how to install Python2.4 on RHEL4. To make matters worse, the RHEL4
> machine is a 64bit architecture.
>
> I search pyvault, but they only have for .i386. Does anyone know where /
> how I can fin
Hi,
I appologize if this is slightly OT, but I am really struggling to figure
out how to install Python2.4 on RHEL4. To make matters worse, the RHEL4
machine is a 64bit architecture.
I search pyvault, but they only have for .i386. Does anyone know where /
how I can find Python2.4 for RHEL4 x
On Mar 11, 8:59 am, Laszlo Nagy <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I wonder if the newest ZSI has support for attachments? Last time I
> checked (about a year ago) this feature was missing. I desperately need
> it. Alternatively, is there any other SOAP lib for python that can
> handle atta
James Yu wrote:
> Hi folks,
>
> I prepared a python script for dynamically get the absolute paths of the
> files in certain folder.
> Then I tried to invoke that function from my web server in a .psp file
> like this:
>
> 1
> 2
> 3 asdfasdfasdfa
> 4
> 5 <%
>
On Mar 14, 6:47 pm, erikcw <[EMAIL PROTECTED]> wrote:
> Hi,
>
> When I use sys.exc_info() on one of my custom exception classes, the
> "message"/value isn't returned. But it is when I use a built in
> exception.
>
> Example:
>
> In [32]: class Test(Exception):
> : def __init__(self, x):
On Feb 20, 8:51 pm, Miki <[EMAIL PROTECTED]> wrote:
> Hello Amit,
>
>
>
> > python testname.py : the unitests runs as usual and I get the
> > following results:
> > --
> > Ran 2 tests in 0.024s
>
> > OK
> >
Laszlo Nagy <[EMAIL PROTECTED]> writes on Tue, 11 Mar 2008 15:59:36 +0100:
> I wonder if the newest ZSI has support for attachments? Last time I
> checked (about a year ago) this feature was missing. I desperately
> need it. Alternatively, is there any other SOAP lib for python that
> can handle at
On Mar 13, 4:25 am, "David S" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have an error occurring at
> self.build_root = os.path.abspath(os.path.split(__file__)[0])
>
> The error states 'NameError: global name '__file__' is not defined'
>
> In Python 2.5 I ran my script as a module in IDLE gui.
Hi,
When I use sys.exc_info() on one of my custom exception classes, the
"message"/value isn't returned. But it is when I use a built in
exception.
Example:
In [32]: class Test(Exception):
: def __init__(self, x):
: self.value = x
: def __str__(self):
...
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:python-
> [EMAIL PROTECTED] On Behalf Of Aahz
> Sent: Friday, March 14, 2008 2:05 PM
> To: python-list@python.org
> Subject: RIP: Joseph Weizenbaum
>
> Creator of Eliza:
>
> http://www-tech.mit.edu/V128/N12/weizenbaum.html
> --
How d
On Mar 14, 4:57 pm, Jarek Zgoda <[EMAIL PROTECTED]> wrote:
> Lie napisa³(a):
>
>
>
> >> foo = [1,2,3,4]
> >> x = foo.append(5)
> >> print x
>
> >> What will be the output (choose one):
>
> >> 1) [1,2,3,4]
> >> 2) [1,2,3,4,5]
> >> 3) That famous picture of Albert Einstein sticking out his tongue
Eddie Corns wrote:
> [EMAIL PROTECTED] writes:
>
>> I'm trying to find some code that will turn:
>
>> 100 -> 100
>> 1000 -> 1,000
>> 100 -> 1,000,000
>> -1000 -> -1,000
>
>> I know that can be done using a regular expression. In Perl I would do
>> something like:
>
>> sub thousand {
>>
-On [20080314 18:11], [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote:
>But I cannot find how to do this in Python.
I am not sure of your goal, but if you need this for localization purposes,
look at Babel (http://babel.edgewall.org/). In particular
http://babel.edgewall.org/wiki/ApiD
Gilles Ganault <[EMAIL PROTECTED]> wrote:
>I'd like to monitor connections to a remote SSH and web server. Does
>someone have some code handy that would try to connect every 5mn, and
>print an error if the script can't connect?
This script has been pretty reliable for us for the past few years,
mu
Creator of Eliza:
http://www-tech.mit.edu/V128/N12/weizenbaum.html
--
Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/
"It is easier to optimize correct code than to correct optimized code."
--Bill Harlan
--
http://mail.python.org/mailman/listinfo/python-list
I installed Parallels Desktop and Win XP Pro on my iMac for testing
purposes. I installed Python 2.5.2, wxPython, and PythonCard. I cannot
get the "Open with IDLE" in an Explorer window to work. All the registry
entries are there too.
Any ideas?
Thanks!
Jay
--
http://mail.python.org/mailman/l
http://aspn.activestate.com/ASPN/docs/ActivePython/2.4/python/lib/decimal-recipes.html
Eddie Corns wrote:
> [EMAIL PROTECTED] writes:
>
>
>> I'm trying to find some code that will turn:
>>
>
>
>> 100 -> 100
>> 1000 -> 1,000
>> 100 -> 1,000,000
>> -1000 -> -1,000
>>
>
>
>
On Mar 14, 2008, at 4:41 AM, [EMAIL PROTECTED] wrote:
> On Mar 14, 9:47 am, Justus Schwabedal <[EMAIL PROTECTED]>
> wrote:
> [snipped]
>> However when I do this:
>>
>> bash-3.2$ cat execBug2.py
>> #! /usr/bin/python
>> header="""
>> from scipy import randn
>> def f():
>> return randn()
>>
To define a one-element set you write:
>>> set([1])
To define one-element tuple you write:
>>> (1,)
Wouldn't it be better to write:
>>> tuple(1)
? To make life easy Python gives us some powerfull syntax to define
some builtin types. For example:
>>> [1, 2]
[EMAIL PROTECTED] writes:
>I'm trying to find some code that will turn:
>100 -> 100
>1000 -> 1,000
>100 -> 1,000,000
>-1000 -> -1,000
>I know that can be done using a regular expression. In Perl I would do
>something like:
>sub thousand {
>$number = reverse $_[0];
>$number =
[EMAIL PROTECTED] writes:
> 100 -> 100
> 1000 -> 1,000
> 100 -> 1,000,000
> -1000 -> -1,000
def sep(n):
if n<0: return '-' + sep(-n)
if n<1000: return str(n)
return '%s,%03d' % (sep(n//1000), n%1000)
--
http://mail.python.org/mailman/listinfo/python-list
Matt Nordhoff wrote:
> Michael Wieher wrote:
>> I'm not sure if a well-written file/seek/read algorithm is faster than a
>> relational database...
>> sure a database can store relations and triggers and all that, but if
>> he's just doing a lookup for static data, then I'm thinking disk IO is
>> fa
I'm trying to find some code that will turn:
100 -> 100
1000 -> 1,000
100 -> 1,000,000
-1000 -> -1,000
I know that can be done using a regular expression. In Perl I would do
something like:
sub thousand {
$number = reverse $_[0];
$number =~ s/(\d\d\d)(?=\d)(?!d*\.)/$1,/g;
Michael Wieher wrote:
> I'm not sure if a well-written file/seek/read algorithm is faster than a
> relational database...
> sure a database can store relations and triggers and all that, but if
> he's just doing a lookup for static data, then I'm thinking disk IO is
> faster for him? not sure
I w
Chris wrote:
> On Mar 14, 8:36 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
>> On Thu, 13 Mar 2008 21:28:18 -0700 (PDT), jai_python
>> <[EMAIL PROTECTED]> declaimed the following in comp.lang.python:
>>
>>> hi frenz I Need a Python Script For read multiple files(.txt) from a
>>> folder and wri
I would recommend using a tried-and-true solution for making sure your
uptime of various services is maximized (if that's what your goal is).
Running a local "daemon-monitoring daemon" is one option--monit does a
good job. Checking services over the network, as nagios does well, is
another soluti
An of course, you can use a regular expression. (Module "re").
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 13, 11:32 pm, Gilles Ganault <[EMAIL PROTECTED]> wrote:
> I'd like to monitor connections to a remote SSH and web server. Does
> someone have some code handy that would try to connect every 5mn, and
> print an error if the script can't connect?
from time import sleep
while True:
# Try to
On Mar 14, 8:00 am, Hrvoje Niksic <[EMAIL PROTECTED]> wrote:
> The %x conversion specifier is documented
> inhttp://docs.python.org/lib/typesseq-strings.htmlas "Unsigned
> hexadecimal (lowercase)." What does "unsigned" refer to?
>
> >>> '0x%x' % 10
> '0xa'
Somewhat unrelated, but have you seen t
On Mar 11, 11:35 am, Grant Edwards <[EMAIL PROTECTED]> wrote:
> Reading through the doc athttp://docs.python.org/lib/module-urllib.html,
> there are several paragraphs (including code examples) showing
> how you specify what proxies to use when calling urlopen():
See http://bugs.python.org/issue22
Leo 4.4.8 beta 2 is available at:
http://sourceforge.net/project/showfiles.php?group_id=3458&package_id=29106
This version features a new ipython plugin that provides a two-way bridge
between Leo and IPython. See
http://webpages.charter.net/edreamleo/IPythonBridge.html
Leo is a text editor, dat
"Hrvoje Niksic" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> The %x conversion specifier is documented in
> http://docs.python.org/lib/typesseq-strings.html as "Unsigned
> hexadecimal (lowercase)." What does "unsigned" refer to?
It's obsolete, a fallout of int/long int unificat
On Fri, 14 Mar 2008 16:00:07 +0100
Hrvoje Niksic <[EMAIL PROTECTED]> wrote:
> The %x conversion specifier is documented in
> http://docs.python.org/lib/typesseq-strings.html as "Unsigned
> hexadecimal (lowercase)." What does "unsigned" refer to?
>
> >>> '0x%x' % 10
> '0xa'
> >>> '0x%x' % -10
> '0
[ [EMAIL PROTECTED] ]
[ ... ]
> I think inheritance is meant in reference to the Exception tree here. So,
> the uppermost class is `BaseException`. Python 3 gives this exception
> when trying to handle `object`::
>
> TypeError: catching classes that do not inherit from BaseException is
>
The %x conversion specifier is documented in
http://docs.python.org/lib/typesseq-strings.html as "Unsigned
hexadecimal (lowercase)." What does "unsigned" refer to?
>>> '0x%x' % 10
'0xa'
>>> '0x%x' % -10
'0x-a'
Is this a bug or is %x misdocumented?
--
http://mail.python.org/mailman/listinfo/pyth
Hi,
Well, my attempt to not use the --skip-archive option didn't get very far,
as I quickly noticed that "library.zip" does NOT contain ANY .pyd files.
I'm guessing that they can't be in library.zip for a reason (i.e., they are
DLL files, essentially, and thus must be readily available to be loade
hello,
Anyone can help me how to extract the data from wiki file using python
i.e is there any WIKIPARSER package and documentation to from parsing on
wiki file .
--
http://mail.python.org/mailman/listinfo/python-list
> > --
> > Carsten
> > Haesehttp://informixdb.sourceforge.net
>
> Thanks for the reply, Carsten, how would
> this work with UPDATE command? I get this
> error:
>
> cmd = "UPDATE items SET content =
> ? WHERE id=%d" % id
try this;
("update items set contents = (?) where id
=(?)", [ x, y]
On Mar 14, 11:37 am, Benjamin Watine <[EMAIL PROTECTED]> wrote:
> Bryan Olson a écrit :
>
> > I wrote:
> >> [...] Pipe loops are tricky business.
>
> >> Popular solutions are to make either the input or output stream
> >> a disk file, or to create another thread (or process) to be an
> >> active re
This is not entirely true:
Symptoms of increasing memory usage are either because
a) you are keeping too much data around in user accessable memory
(likely)
b) you are creating self-referential structures that are not garbage
collected (also likely)
c) You have memory leaks in underlying C extens
Peter,
Genius! You nailed it -- thanks!
py2exe is apparently getting confused by the fact that packages "Numeric" and
"numpy" both have files multiarray.pyd and umath.pyd. It copies just one of
each -- from $PYTHONHOME/Lib/site-packages/numpy/core -- and puts both of them
into the top-level of
2008/3/14, Gerardo Herzig <[EMAIL PROTECTED]>:
>
> Saideep A V S wrote:
>
> >Hello Sir,
> >
> > Thank You a ton. I was looking for this function. As far what I've
> >understood from the "Shelve" module is that, there would be no memory
> >wastage and the whole transactions would be done from and
On 14 mar, 14:25, [EMAIL PROTECTED] wrote:
>> Hi friends !!
>>
>> I'm neophite about python, my target is to create a programa that
>> find a specific string in text file.
>> How can do it?
>>
>> Thanks
>> fel
>>
>
>
>
One more way to do this
f = codecs.open("log.txt", 'r', "utf_16_le")
Saideep A V S wrote:
>Hello Sir,
>
> Thank You a ton. I was looking for this function. As far what I've
>understood from the "Shelve" module is that, there would be no memory
>wastage and the whole transactions would be done from and to the file we
>specify. Am I right?.
>
> My actual task is t
2008/3/14, Pradeep Rai <[EMAIL PROTECTED]>:
>
> Dear All,
>
> I am working on the python tools that process a huge amount of GIS data.
> These tools encountering the problem of memory leaks.
>
> Please suggest what are the different ways to detect the memory leaks in
> python ?
>
> This is very cri
2008/3/14, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>
> Hi friends !!
>
> I'm neophite about python, my target is to create a programa that
> find a specific string in text file.
> How can do it?
>
> Thanks
> fel
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
If your only goal is to
> I'm neophite about python, my target is to create a programa that
> find a specific string in text file.
> How can do it?
>>> FNAME1 = 'has.txt'
>>> FNAME2 = 'doesnt_have.txt'
>>> TEXT = 'thing to search for'
>>> TEXT in file(FNAME1).read()
True
>>> TEXT in file(FNAME2).read()
False
or th
On 14 mar, 14:25, [EMAIL PROTECTED] wrote:
> Hi friends !!
>
> I'm neophite about python, my target is to create a programa that
> find a specific string in text file.
> How can do it?
>
> Thanks
> fel
$ cat text.txt
aaa
bbb
ccc
ddd
aaa bbb
ccc ddd
aaa bbb ccc ddd
aaa eee
bbb eee
ccc eee
ddd eee
Dear All,
I am working on the python tools that process a huge amount of GIS data.
These tools encountering the problem of memory leaks.
Please suggest what are the different ways to detect the memory leaks in
python ?
This is very critical problem for me. Help needed urgently.
Thanks & Regards
Dear All,
I am working on the python tools that process a huge amount of GIS data.
These tools encountering the problem of memory leaks.
Please suggest what are the different ways to detect the memory leaks in
python ?
This is very critical problem for me. Help needed urgently.
Thanks & Regards
Hi friends !!
I'm neophite about python, my target is to create a programa that
find a specific string in text file.
How can do it?
Thanks
fel
--
http://mail.python.org/mailman/listinfo/python-list
Dear All,
I am working on the python tools that process a huge amount of GIS data.
These tools encountering the problem of memory leaks.
Please suggest what are the different ways to detect the memory leaks in
python ?
This is very critical problem for me. Help needed urgently.
Thanks & Regards
Erik Max Francis a écrit :
> Dave Kuhlman wrote:
>
>> Basically, the above code is saying that foo.foobar is not the same as
>> getattr(foo, 'foobar').
>
> Python promises that the behavior is the same. It does not promise that
> the _objects_ will be the same, which is what `is` determines. T
Mel a écrit :
(snip)
> (What Diez said.) From what I've seen, f.bar creates a bound method
> object by taking the unbound method Foo.bar and binding its first
> parameter with f.
Nope. it's Foo.__dict__['bar'] (that is, the function bar defined in the
namespace of class Foo) that creates a bo
Dave Kuhlman a écrit :
> Arnaud Delobelle wrote:
>
>> 4. Both points above follow from the fact that foo.bar is really a
>> function call that returns a (potentially) new object: in fact what
>> really happens is something like
>
> Arnaud and Imri, too -
>
> No. foo.bar is *not* really a funct
_robby wrote:
> I am looking at using pytz in a scheduling application which will be
> used internationally. I would like to be able to update the definition
> files that pytz uses monthly or bi-monthly.
>
> As far as I can tell, pytz seems to be updated (fairly) regularly to
> the newest tzdata,
Robert Bossy wrote:
> Bryan Olson wrote:
>> Robert Bossy wrote:
Robert Bossy wrote:
> Indeed! Maybe the best choice for chunksize would be the file's buffer
> size...
>>
>> That bit strikes me as silly.
>>
> The size of the chunk must be as little as possible in or
Saideep A V S wrote:
>Hello Sir,
>
> I am a beginner level programmer in Python. I am in search of a
>function for 'On-Disk' Dictionaries which is similar to On-Disk Hash tables
>in Perl (i.e., tie function in Perl).
>
>
> Could anyone help me with the concept. I have also searched the net,
On Mar 13, 1:56 pm, yoz <[EMAIL PROTECTED]> wrote:
> This will cause a hidden feature of python and the OS, known as the
> 'python easter egg', to activate - erasing all data on the hard disk and
> then reporting how many bytes of data are left.
>
> Usually "None" ;-} - This really is a 'gotcha'...
On Mar 13, 6:19 pm, "Dotan Cohen" <[EMAIL PROTECTED]> wrote:
> On 14/03/2008, Dustan <[EMAIL PROTECTED]> wrote:
>
> > you.screw()
>
> Ah, you are pushing sex pills.
>
> > self.thank(God, encapsulation)
>
> And bibles? Interesting combination.
>
> > not self.want_to_know(you.screw.func_code)
>
>
On Mar 14, 1:34 am, Noah <[EMAIL PROTECTED]> wrote:
> What is the fastest way to select N items at a time from a dictionary?
> I'm iterating over a dictionary of many thousands of items.
> I want to operate on only 100 items at a time.
> I want to avoid copying items using any sort of slicing.
> Do
look at
http://groups.google.be/group/comp.lang.python/browse_thread/thread/d75a491b8dbc3880/0ca1fb7f7deca194?hl=fr&lnk=gst&q=laloux#0ca1fb7f7deca194
There is a macpython list that you can consult at
http://www.nabble.com/Python---pythonmac-sig-f2970.html
--
http://mail.python.org/mailman/listinf
David S wrote:
> Gets me further but still seems to be issue with space after 'Program' as
> code tries to run 'C:\Program'. Don't understand what is going on here...
Slight apologies as I haven't followed this thread closely, but using
the Acrobat Reader executable, which is, I think, good enou
http://r8p.org/upload/213.html
--
http://mail.python.org/mailman/listinfo/python-list
Hallöchen!
A TurboGears process opens a DB file with anydbm and keeps it open.
The the same time, this file is updated by another process. How can
I tell the TurboGears process to fetch the new values? my_db.sync()
didn't help -- apparently, it only *writes* to the DB file but
doesn't read new d
Doug Morse wrote:
> from multiarray import zeros
> import string
>
> typecodes = {'Character':'c', 'Integer':'1sil', 'UnsignedInteger':'bwu',
> 'Float':'fd', 'Complex':'FD'}
>
> def _get_precisions(typecodes):
> lst = []
> for t in typecodes:
> lst.append( (zeros( (1,), t ).items
Hi,
Gets me further but still seems to be issue with space after 'Program' as
code tries to run 'C:\Program'. Don't understand what is going on here...
using "java.exe" from "C:\Program Files\Java\jdk1.6.0_01"
using "C:\Program Files\apache-ant-1.7.0\bin\ant.bat" for building
Building from E:\Re
Steven D'Aprano wrote:
> On Thu, 13 Mar 2008 22:37:00 -0500, "Andrew Rekdal" wrote:
>
>> Seems 'KEYBOARDS' works nicely
>
> in reply to a post from "jcnbp8k" who wrote:
>
>>> That's easy solved, the word is keyboards.
>
> Hmmm... using my incredible powers of deduction, I predict that the word
Bryan Olson a écrit :
> I wrote:
>> [...] Pipe loops are tricky business.
>>
>> Popular solutions are to make either the input or output stream
>> a disk file, or to create another thread (or process) to be an
>> active reader or writer.
>
> Or asynchronous I/O. On Unix-like systems, you can selec
[EMAIL PROTECTED] wrote:
> how would this work with UPDATE
> command? I get this error:
>
> cmd = "UPDATE items SET content = ? WHERE id=%d" % id
>
> self.cursor.execute(cmd, content)
> pysqlite2.dbapi2.ProgrammingError: Incorrect number of bindings
> supplied. The c
> rrent statement
Hi folks,
I prepared a python script for dynamically get the absolute paths of the
files in certain folder.
Then I tried to invoke that function from my web server in a .psp file like
this:
1
2
3 asdfasdfasdfa
4
5 <%
6 import glob
7 import os
8 *
On Thu, 13 Mar 2008 22:37:00 -0500, "Andrew Rekdal" wrote:
> Seems 'KEYBOARDS' works nicely
in reply to a post from "jcnbp8k" who wrote:
> > That's easy solved, the word is keyboards.
Hmmm... using my incredible powers of deduction, I predict that the word
is "keyboards".
--
Steven
--
http
Hello Sir,
I am a beginner level programmer in Python. I am in search of a
function for 'On-Disk' Dictionaries which is similar to On-Disk Hash tables
in Perl (i.e., tie function in Perl).
Could anyone help me with the concept. I have also searched the net, but
was not successful in fin
Geert,
I've not seen this issue myself, however, you might get a little more luck
asking over on the MySQLdb mailing list as this seems to be more an issue
with the db than your python code. It might be worth posting your question
there too as it'll heighten your chances of finding someone who kno
On 2008-03-13, Terry Reedy <[EMAIL PROTECTED]> wrote:
>
> "Antoon Pardon" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>| On 2008-02-28, Steven D'Aprano <[EMAIL PROTECTED]>
> wrote:
>| > On Thu, 28 Feb 2008 02:02:19 +0200, Tamer Higazi wrote:
>| >
>| >> Hi!
>| >> Can somebody of
On 2008-03-13, Steven D'Aprano <[EMAIL PROTECTED]> wrote:
> On Thu, 13 Mar 2008 08:54:43 +, Paul Rudin wrote:
>
>>> Whatever python has for a calling convention, it is close enough that
>>> naming it "call by reference" gives people a reasonable idea of what is
>>> going on.
>>
>> Quite. The t
Hi all,
I have a mac mini running maocosx 10.5 leopard I want to deploy a
django project on. My backend is MySQL, and I have it running as a 64-
bit app. Of course, apache2 is also running as 64-bit.
MySQLdb installs with the usual warnings after applying the various
patches I found here and ther
1 - 100 of 115 matches
Mail list logo