On 10/9/07, Sanjay <[EMAIL PROTECTED]> wrote:
> > It's not clear at all from the OPs post exactly what functionality he
> > is trying to derive from the timezone. Since timezones (obviously)
> > contain more information than just the GMT offset (otherwise we
> > wouldn't even have them), he may ver
[EMAIL PROTECTED] wrote:
> On Oct 8, 11:07 pm, Bakul Shah <[EMAIL PROTECTED]> wrote:
...
>> You might like this one:
>>
>> http://www.intertwingly.net/blog/2005/04/13/Continuations-for-Curmudg...
>
> thanks for the link but can you plz upload the paper so we can also
> get it.
You will ha
George Neuner writes:
>
> Or, how about politics? Another example from the Judeo-Christian
> Bible (that is, from the Old Testament), politicking was the sin that
> resulted in Lucifer's fall from God's grace.
that's not a God, but an inferior demiurge,
as correctly figured by Marcion
> [Yeah,
Originally I came up with the idea of a pure Python implementation for
copyable generators as an ActiveState Python Cookbook recipe. Too bad,
it was badly broken as Klaus Müller from the SimPy project pointed
out. Two weeks and lots of tests later I got finally a running version
that works not only
At http://docs.python.org/dist/node12.html it is described how to add
package data to a module. This was pretty easy to do, but now how do I
access this data from my module? Is there an API to load a 'package
resource' ala Java's classloader?
S.
--
http://mail.python.org/mailman/listinfo/python
Hi,
I'm working with Python2.5 and pythonWin.
I'd like to start working with and learning more with UML. Can anyone
suggest any freeware design software that I might use to do this? I
also have
Visio installed on my computer if thats of any use...
Thanks,
Aine
--
http://mail.python.org/mailma
[EMAIL PROTECTED] wrote:
> ANNOUNCE:
> NUCULAR fielded text searchable indexing
Does "NUCULAR" stand for anything? The (apparent) misspelling of
"nuclear" has already turned me off wanting to find out more about it.
Tim Delaney
--
http://mail.python.org/mailman/listinfo/python-list
Nicholas Bastin wrote:
>
> There is no central authority which defines global time zones. The
> functional definition of a time zone is merely a geographical area of
> the earth that has adopted the same local time rules.
>
In fact, even the authorities who do define time zones don't always
have
That sounds to easy I will give it a shot..
On Oct 6, 11:08 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Fri, 05 Oct 2007 20:40:40 -0300, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> escribi?:
>
> > I compiled the c program that is supposed to allow you to call a
> > procedure from th
>> On Oct 8, 9:19 am, goldtech <[EMAIL PROTECTED]> wrote:
>>> How did you learn Win32com?
>>>
>>> Other than the O'Reilly book, I've never found a lot of
>>> documentation.
>>>
>>> Trying to browse COM in PythonWin is tough - there's tons of stuff in
>>> there. I've never been able to find the Win3
First question, I can't seem to get any python bytecode to be
produced. I've tried different techniques from chapter 30.8 to chapter
31 of the python guide.. I was under the assumption that after
compiling a file, it would output a pyc file, but where does it go?
Any help would be appreciated.
Sec
Hi,
I am a Py Newbie. I am learning to write python scripts on Linux , I
want to know what to do in order to get the executable file as a binary.
Because now I run it by simply using the python compiler every time to
run the scripts
$> python scriptfile.py
I want to make a binary file , which wo
warhero <[EMAIL PROTECTED]> wrote:
> First question, I can't seem to get any python bytecode to be
> produced. I've tried different techniques from chapter 30.8 to chapter
> 31 of the python guide.. I was under the assumption that after
> compiling a file, it would output a pyc file, but where doe
On 10/9/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> On Oct 8, 8:27?pm, "Nicholas Bastin" <[EMAIL PROTECTED]> wrote:
> > On 10/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > Because they publish maps?
> >
> > I'm not sure what this has to do with it.
>
> Maybe you've never had to na
On Oct 9, 10:20 am, warhero <[EMAIL PROTECTED]> wrote:
> First question, I can't seem to get any python bytecode to be
> produced. I've tried different techniques from chapter 30.8 to chapter
> 31 of the python guide.. I was under the assumption that after
> compiling a file, it would output a pyc
Stefan Arentz wrote:
>
> At http://docs.python.org/dist/node12.html it is described how to add
> package data to a module. This was pretty easy to do, but now how do I
> access this data from my module? Is there an API to load a 'package
> resource' ala Java's classloader?
You can always use os.
Dear list,
Thanks for the suggestions and clarification. After playing with XML
for a while I noticed whitespaces can indeed be more important then I
thought. I did came to the following conclusions;
1. Removing whitespaces was done by my code, not by the
xml.dom.minidom so I regret the fact I sa
On Oct 9, 7:34 am, [EMAIL PROTECTED] wrote:
> which lambda paper ?
Are you Ilias? I think you probably are.
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
I use Pydev 1.3.9 and notice issue related to code completion. I give an
example
BaseClass.py:
class BaseClass:
def someMethod(x):
return x+x
DerivedClass.py:
import BaseClass
class DerivedClass(BaseClass.BaseClass):
def newMethod(self):
print self.someMethod(
[EMAIL PROTECTED] wrote:
> I'd like to start working with and learning more with UML. Can anyone
> suggest any freeware design software that I might use to do this? I
> also have
> Visio installed on my computer if thats of any use...
Does not Visio meet your requirements? It's quite powerfull UM
[EMAIL PROTECTED] wrote:
> Hi i am a newbie to python and PIL. can anyone tell me how to get
> rgbdata from a jpeg image using PIL
> as a double[] . is there an equiv method to java's
> BufferedImage.getRGB(0,0,width,height,rgbdata,0,width) ?
The docs of PIL are quite good. And there you find th
Tim Bradshaw wrote:
> On Oct 9, 7:34 am, [EMAIL PROTECTED] wrote:
>
>> which lambda paper ?
>
> Are you Ilias? I think you probably are.
He certainly isn't, but you are right that he smells like he's been living
under a bridge for quite a time...
Diez
--
http://mail.python.org/mailman/listin
[EMAIL PROTECTED] wrote:
> Hi,
>
> I'm working with Python2.5 and pythonWin.
>
> I'd like to start working with and learning more with UML. Can anyone
> suggest any freeware design software that I might use to do this? I
> also have
> Visio installed on my computer if thats of any use...
ArgoU
On 9 Okt, 12:15, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > Hi,
>
> > I'm working with Python2.5 and pythonWin.
>
> > I'd like to start working with and learning more with UML. Can anyone
> > suggest any freeware design software that I might use to do this? I
> >
[EMAIL PROTECTED] wrote:
> On 9 Okt, 12:15, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
>>> IMHO UML is ... crap, at least when it comes to actual developing.
>
> What alternatives are there?
What's your use case?
Stefan
--
http://mail.python.org/mailman/listinfo/python-list
I compiled the comand line example and I am getting an error when I
try to use the program when the program is cleaning up (I don't know
that it would prevent the program from running though I will run more
tests)... ebedpython test testt
result of call: -1
exception exceptions.TypeError: 'an inte
On Oct 9, 6:11 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I compiled the comand line example and I am getting an error when I
> try to use the program when the program is cleaning up (I don't know
> that it would prevent the program from running though I will run more
> tests)... ebedpyt
Hello all,
I am trying to create a script that looks at specific strings in a
file like:
msgid "I am a disco dancer."
and compares the part in quotes to the keys in a dictionary, finds the
value and creates a new line right after this string in the file. I
have planned to write this as follows:
On Tue, 09 Oct 2007 03:28:53 -, [EMAIL PROTECTED] wrote:
>On Oct 8, 1:23 pm, [EMAIL PROTECTED] (Brian Harvey) wrote:
>> "Kjetil S. Matheussen" <[EMAIL PROTECTED]> writes:
>> >I don't think your speculations makes very much sence.
>> Amen.
>> And, in any case, there's no need to speculate.
On Oct 8, 7:00 pm, "Delaney, Timothy (Tim)" <[EMAIL PROTECTED]>
wrote:
> [EMAIL PROTECTED] wrote:
> > ANNOUNCE:
> > NUCULAR fielded text searchable indexing
>
> Does "NUCULAR" stand for anything? The (apparent) misspelling of
> "nuclear" has already turned me off wanting to find out more about it
On 09/10/2007, Shriphani <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> I am trying to create a script that looks at specific strings in a
> file like:
>
> msgid "I am a disco dancer."
>
> and compares the part in quotes to the keys in a dictionary, finds the
> value and creates a new line right after
[EMAIL PROTECTED] wrote:
> On 9 Okt, 12:15, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
>> [EMAIL PROTECTED] wrote:
>> > Hi,
>>
>> > I'm working with Python2.5 and pythonWin.
>>
>> > I'd like to start working with and learning more with UML. Can anyone
>> > suggest any freeware design software
On Mon, 08 Oct 2007 23:00:46 GMT, John Nagle <[EMAIL PROTECTED]> wrote:
>Chris Mellon wrote:
>> On 10/7/07, Michel Albert <[EMAIL PROTECTED]> wrote:
>>> On Oct 6, 4:21 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
En Fri, 05 Oct 2007 04:55:55 -0300, exhuma.twn <[EMAIL PROTECTED]>
es
Manu Hack a écrit :
> hi all,
>
> If I have a class A with A.x, A.y, A.z. A.y and A.z are property and
> in order to compute the value of them, A.y depends on A.x while A.z
> depends on A.y and A.x. If I call A.y, and A.z, the value A.y would
> be computed twice. Is there a smart way to avoid t
Shriphani wrote:
> Hello all,
>
> I am trying to create a script that looks at specific strings in a
> file like:
>
> msgid "I am a disco dancer."
>
> and compares the part in quotes to the keys in a dictionary, finds the
> value and creates a new line right after this string in the file. I
> ha
> (3) Is it present in python ...?
I don't keep up to date with the recent developments in Python land,
but the last time I used Python, it certainly didn't have first-class
continuations. There used to be a project called Stackless Python
that tried to add continuations to Python, but as far as
I have a need to implement a drop folder upload mechanism for secure uploading
of files to a server. At first glance this appears that it would be an easy
application to write. Then I begin to think about the race conditions that
exist between the process that will wake up to upload the files
I want to create a virtual filesystem based on a relational database.
It might run as a server on a different machine, but it has to be
available like a normal filesystem, either shared using SAMBA or
windows filesharing or thru something else like WebDav.
The idea is that I scan a local filesyst
Hi,
I am trying to use tarfile module to list contents of a 'gz' file but
it seems to hang for large files and CPU usage goes 100%.
though 'tar -tvf' on same file list contents in couple of secs.
Here is a test script which can show the problem; I am using python
Python 2.4.3
import
On Oct 9, 7:26 am, [EMAIL PROTECTED] wrote:
> No, it doesn't stand for anything.
It also reminds me of someone we all know, and I wish it didn't.
As the latin proverb says "Nomen est omen". Calling your package
"docindexer" would draw a lot more people. It is hard to justify to a
third party tha
On Tue, Oct 09, 2007 at 06:28:00AM -0500, Harold Ancell wrote regarding Re: why
did MIT drop scheme for python in intro to computing?:
>
> On Tue, 09 Oct 2007 03:28:53 -, [EMAIL PROTECTED] wrote:
>
> >On Oct 8, 1:23 pm, [EMAIL PROTECTED] (Brian Harvey) wrote:
>
> >> "Kjetil S. Matheussen" <
"." <[EMAIL PROTECTED]> writes:
> On Tue, 09 Oct 2007 05:15:49 +, gnuist006 wrote:
>
>> Again I am depressed to encounter a fundamentally new concept that I
>> was all along unheard of. Its not even in paul graham's book where i
>> learnt part of Lisp. Its in Marc Feeley's video.
>>
>> Can an
Hi!
Something makes me crazy!!!
I wanna read some XML, but everytime I got "None" for the value of prop:
The code is:
from xml.dom import minidom
import sys
ResultList = []
def LoadProps(PropTag):
print PropTag
t_forms = PropTag.getElementsByTagName('form')
for t_form in t_forms:
durumdara wrote:
> from xml.dom import minidom
[...]
>t_props = t_comp.getElementsByTagName('prop')
>for t_prop in t_props:
>attrs = t_prop.attributes.keys()
>print attrs
>print t_prop.nodeName
>print t_prop.nod
On Oct 9, 8:46 am, Istvan Albert <[EMAIL PROTECTED]> wrote:
> ps. there is a python project named "The Devil Framework", I cringe
> every time I hear about it.Nucularis not as bad, but it is close.
Aw shucks. I thought it was funny. Can't I make fun of
politicians in my open source projects? Be
[EMAIL PROTECTED] writes:
> On Oct 8, 10:59 pm, Barb Knox <[EMAIL PROTECTED]> wrote:
>
>>
>> Lambda calculus. Instead of function A returning to its caller, the
>> caller provides an additional argument (the "continuation") which is a
>> function B to be called by A with A's result(s). In pure "
You can do do some kinds of image filtering to get a good idea but it's a
lot of work and not a simple script you can throw together. I've tagged and
processed millions of photos through my system to train it and I'm still
constantly finding ways to improve it.
> hii my friends
> > ı want to a fil
[EMAIL PROTECTED] writes:
> On Oct 8, 1:23 pm, [EMAIL PROTECTED] (Brian Harvey) wrote:
>> "Kjetil S. Matheussen" <[EMAIL PROTECTED]> writes:
[...]
>
> Does scheme have a gui library?
Scheme is not a language, it's a standard for implementation. How
much implementors choose to implement is enti
[EMAIL PROTECTED] wrote:
> On Oct 8, 1:03 pm, Carsten Haese <[EMAIL PROTECTED]> wrote:
>> On Mon, 2007-10-08 at 10:41 -0700, [EMAIL PROTECTED] wrote:
>> > For example, Windows has seperate listings for
>>
>> > Central America
>> > Central Time (US & Canada)
>> > Guadalahara, Mexico City, Monterry
On Tue, 09 Oct 2007 12:46:34 +, Istvan Albert wrote:
> On Oct 9, 7:26 am, [EMAIL PROTECTED] wrote:
>
>> No, it doesn't stand for anything.
>
> It also reminds me of someone we all know, and I wish it didn't.
>
> As the latin proverb says "Nomen est omen". Calling your package
> "docindexer"
On Tue, 09 Oct 2007 07:05:57 -0500, Larry Bates wrote:
> I have a need to implement a drop folder upload mechanism for secure
> uploading of files to a server. At first glance this appears that it
> would be an easy application to write. Then I begin to think about the
> race conditions that exi
On Oct 9, 2:09 am, "." <[EMAIL PROTECTED]> wrote:
> On Tue, 09 Oct 2007 05:15:49 +, gnuist006 wrote:
> > (3) Is it present in python and java ?
>
> Certainly not Java, I dunno about Python. I've never seen someone use
> them in Python, but the pythonistas seem to want to add everything but a
I have a python-script: myscript, used to start a program on another
computer and I use OptionParser in optpars.
I use it like this: myscript -H host arg1 -x -y zzz
I would like OptionParser to ignore all arguments after arg1, because
these are options that should be used by the program started on
On 2007-10-09, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Comparing apples with apples, how do you compare the scheme
> gui library with wxpython ? Isnt it better than Tkinter ?
I haven't used the newer Scheme GUI bindings. I switched from
STk to tkinter, and then from tkinter to PyGTK and w
Hi everyone,
I have a list of objects where I have want to do two loops.
I want to loop over the list and inside this loop, work on all
the elements of the list after the one being handled in the outer
loop. I can of course do this with indexes:
>>> alist = range(3)
>>> for i in xrange(len(a
On 10/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I'm running a python program that simulates a wireless network
> protocol for a certain number of "frames" (measure of time). I've
> observed the following:
>
> 1. The memory consumption of the program grows as the number of frames
> I sim
On 2007-10-09, Thomas W <[EMAIL PROTECTED]> wrote:
> I want to create a virtual filesystem based on a relational
> database. [...]
http://en.wikipedia.org/wiki/Filesystem_in_Userspace
http://fuse.sourceforge.net/
--
Grant Edwards grante Yow! I'm a nuclear
Is it possible to mix classes defined in both Python and C in the same
module? Ideally I would like to be able to do:
from some.module import MyPythonClass, MyCClass
I guess that would mean that this would look like this on disk:
some/
__init__.py
module.py (contains MyPythonClass)
On Oct 7, 1:01 pm, Michael Torrie <[EMAIL PROTECTED]> wrote:
> timw.google wrote:
> > Hi
>
> > I want to write a python script that runs rsync on a given directory
> > and host. I build the command line string, but when I try to run
> > subprocess.call(cmd), or p=subprocess.Popen(cmd, shell=True),o
On 09 Oct 2007 16:56:30 +0200, Stefan Arentz <[EMAIL PROTECTED]> wrote:
>
> Is it possible to mix classes defined in both Python and C in the same
> module? Ideally I would like to be able to do:
>
> from some.module import MyPythonClass, MyCClass
>
> I guess that would mean that this would look l
On Oct 9, 4:56 pm, Stefan Arentz <[EMAIL PROTECTED]> wrote:
> Is it possible to mix classes defined in both Python and C in the same
> module? Ideally I would like to be able to do:
>
> from some.module import MyPythonClass, MyCClass
>
> I guess that would mean that this would look like this on di
lgwe wrote:
> I have a python-script: myscript, used to start a program on another
> computer and I use OptionParser in optpars.
> I use it like this: myscript -H host arg1 -x -y zzz
> I would like OptionParser to ignore all arguments after arg1, because
> these are options that should be used by
> >>> alist = range(3)
> >>> for i in xrange(len(alist)):
> ... for j in xrange(i+1,len(alist)):
> ... print i,j,alist[i],alist[j]
> ...
> 0 1 0 1
> 0 2 0 2
> 1 2 1 2
> >>>
>
>
> Is there a way to do this without using indexes?
The following works for me, replicating your code,
>>> al
Is there an easy way to implement a specific method of a Python class
in C? Like a native method in Java? I would really like to do the
majority of my class code in Python and just do one or two methods
in C.
S.
--
http://mail.python.org/mailman/listinfo/python-list
On 10/9/07, Tommy Grav <[EMAIL PROTECTED]> wrote:
> Hi everyone,
>
>I have a list of objects where I have want to do two loops.
> I want to loop over the list and inside this loop, work on all
> the elements of the list after the one being handled in the outer
> loop. I can of course do this wi
> I want to make a binary file , which would execute on it's own.
First do
$ which python
to get the location of your python binary. The default, i think, is just
/usr/bin/python.
Then add this line to the top of your file:
#!/usr/bin/python (or whatever the `which` command returned)
th
On 09 Oct 2007 17:20:09 +0200, Stefan Arentz <[EMAIL PROTECTED]> wrote:
>
> Is there an easy way to implement a specific method of a Python class
> in C? Like a native method in Java? I would really like to do the
> majority of my class code in Python and just do one or two methods
> in C.
>
> S.
Stefan Arentz wrote:
>
> Is there an easy way to implement a specific method of a Python class
> in C? Like a native method in Java? I would really like to do the
> majority of my class code in Python and just do one or two methods
> in C.
ctypes or subclassing C-implemented classes.
Diez
--
h
> From: Tommy Grav
>
> Hi everyone,
>
>I have a list of objects where I have want to do two loops.
> I want to loop over the list and inside this loop, work on all
> the elements of the list after the one being handled in the outer
> loop. I can of course do this with indexes:
>
> >>> alist
"Chris Mellon" <[EMAIL PROTECTED]> writes:
> On 09 Oct 2007 17:20:09 +0200, Stefan Arentz <[EMAIL PROTECTED]> wrote:
> >
> > Is there an easy way to implement a specific method of a Python class
> > in C? Like a native method in Java? I would really like to do the
> > majority of my class code in
On 09 Oct 2007 17:45:12 +0200, Stefan Arentz <[EMAIL PROTECTED]> wrote:
>"Chris Mellon" <[EMAIL PROTECTED]> writes:
>
>> On 09 Oct 2007 17:20:09 +0200, Stefan Arentz <[EMAIL PROTECTED]> wrote:
>> >
>> > Is there an easy way to implement a specific method of a Python class
>> > in C? Like a native m
Hi.
I've got a question on the differences and how to define static and
class variables. AFAIK, class methods are the ones which receives the
class itself as an argument, while static methods are the one which
runs statically with the defining class.
Hence, my understanding is that static variabl
On 09 Oct 2007 17:45:12 +0200, Stefan Arentz <[EMAIL PROTECTED]> wrote:
> "Chris Mellon" <[EMAIL PROTECTED]> writes:
>
> > On 09 Oct 2007 17:20:09 +0200, Stefan Arentz <[EMAIL PROTECTED]> wrote:
> > >
> > > Is there an easy way to implement a specific method of a Python class
> > > in C? Like a nat
[EMAIL PROTECTED] wrote:
> Hi.
>
> I've got a question on the differences and how to define static and
> class variables. AFAIK, class methods are the ones which receives the
> class itself as an argument, while static methods are the one which
> runs statically with the defining class.
>
> Hence,
On Tue, 09 Oct 2007 09:16:12 -0700, [EMAIL PROTECTED] wrote:
> I've got a question on the differences and how to define static and
> class variables.
First you have to define what you mean by "static".
> AFAIK, class methods are the ones which receives the
> class itself as an argument, while st
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
| Again I am depressed to encounter a fundamentally new concept that I
| was all along unheard of. Its not even in paul graham's book where i
| learnt part of Lisp. Its in Marc Feeley's video.
|
| Can anyone explain:
|
| (1) its origin
|
> Your question "is variable a
> static or class variable?" has no real answer. After running the
> increment() method on a descendant class, e.g. Child1 will rebind the
> name Child1.a, creating a new name in the namespace of the class. So the
> variable Foo.a is still there, but you are acce
Kay Schluehr wrote:
> Originally I came up with the idea of a pure Python implementation for
> copyable generators as an ActiveState Python Cookbook recipe. Too bad,
> it was badly broken as Klaus Müller from the SimPy project pointed
> out. Two weeks and lots of tests later I got finally a running
[EMAIL PROTECTED] wrote:
> On Oct 9, 8:46 am, Istvan Albert <[EMAIL PROTECTED]> wrote:
>> ps. there is a python project named "The Devil Framework", I cringe
>> every time I hear about it.Nucularis not as bad, but it is close.
>
> Aw shucks. I thought it was funny. Can't I make fun of
> politici
On Oct 9, 9:16 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Hi.
>
> I've got a question on the differences and how to define static and
> class variables. AFAIK, class methods are the ones which receives the
> class itself as an argument, while static methods are the one which
> runs static
> In point #3, you really bind a name to a value. As you probably know, in
> Python, there are names and objects. The initial value of the name 'a'
> is 1. It is an immutable object. The "+=" operator usually increments a
> value of an object. However, because the 'int' type is immutable, the +=
On Oct 9, 2:58 am, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
> On Mon, 08 Oct 2007 10:41:03 -0700, "[EMAIL PROTECTED]"
> <[EMAIL PROTECTED]> declaimed the following in comp.lang.python:
>
>
>
> > There are only 25 timezones: -12, -11, ... -1, 0 (GMT), +1, ... +11,
> > +12.
>
> Uhm... -12
On Oct 9, 7:54 am, "Chris Mellon" <[EMAIL PROTECTED]> wrote:
> On 10/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
> > I'm running a python program that simulates a wireless network
> > protocol for a certain number of "frames" (measure of time). I've
> > observed the following:
>
> > 1
Hi everyone,
I know that the subject of mutable objects as dictionary keys has been
discussed a number of times in this forum (see for instance "freezing" of
classes), but I would love to hear the thoughts of the experts on the approach
below.
The use case that I encounter frequently is the c
On Tue, 09 Oct 2007 19:23:37 +0200, Diez B. Roggisch wrote:
> Your believes aside, this is simply wrong. The statement
>
> a += x
>
> always leads to a rebinding of a to the result of the operation +.
Not true.
>>> L = []
>>> id(L)
3083496716L
>>> L += [1]
>>> id(L)
3083496716L
It's the same
On Oct 9, 7:17 pm, Steven Bethard <[EMAIL PROTECTED]> wrote:
> Kay Schluehr wrote:
> > Originally I came up with the idea of a pure Python implementation for
> > copyable generators as an ActiveState Python Cookbook recipe. Too bad,
> > it was badly broken as Klaus Müller from the SimPy project poi
Can anyone offer any assistance as to how to convert a basic python
dictionary, list, or even tuple into the SOAP type "ArrayOfKeyValue"?
I am currently using SOAPpy, but would be willing to change to ZSI or
something else if it made this conversion easier.
I have tried with the arrayType and str
I sometimes find it useful to store meta data on dictionary keys, like in the
following example:
class Dict(dict):
def __init__(self,*args,**kw):
self.key_dict = {}
super(Dict,self).__init__(*args,**kw)
def __setitem__(self,k,v):
self.key_dict[k] = k
super(Dict,self).__setitem
On Tue, 09 Oct 2007 05:15:49 -, [EMAIL PROTECTED] wrote:
>Again I am depressed to encounter a fundamentally new concept that I
>was all along unheard of. Its not even in paul graham's book where i
>learnt part of Lisp. Its in Marc Feeley's video.
>
>Can anyone explain:
>
>(1) its origin
Lambd
On Oct 9, 8:34 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > On Oct 8, 1:03 pm, Carsten Haese <[EMAIL PROTECTED]> wrote:
> >> On Mon, 2007-10-08 at 10:41 -0700, [EMAIL PROTECTED] wrote:
> >> > For example, Windows has seperate listings for
>
> >> > Central America
On 2007-10-09, Robin Becker <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
>> On Oct 9, 8:46 am, Istvan Albert <[EMAIL PROTECTED]> wrote:
>>> ps. there is a python project named "The Devil Framework", I cringe
>>> every time I hear about it.Nucularis not as bad, but it is close.
>>
>> Aw sh
On Tue, Oct 09, 2007 at 11:21:41AM -0700, [EMAIL PROTECTED] wrote regarding Re:
pytz has so many timezones!:
>
> The Earth says. It takes 24 hours to revolve.
>
> > Why aren't they separated by 30minutes, or 20, or 10? Or 2 hours?
>
> Why isn't an hour defined to be 30 minutes?
>
> > Or why do
On 10/9/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Why aren't they separated by 30minutes, or 20, or 10? Or 2 hours?
>
> Why isn't an hour defined to be 30 minutes?
>
> > Or why don't we have a global time?
>
> Like UTC?
>
> >
> > Your 25 timezones are an abstraction the same way
>
> Not
On 10/9/07, Grant Edwards <[EMAIL PROTECTED]> wrote:
> On 2007-10-09, Robin Becker <[EMAIL PROTECTED]> wrote:
> > [EMAIL PROTECTED] wrote:
> >> On Oct 9, 8:46 am, Istvan Albert <[EMAIL PROTECTED]> wrote:
> >>> ps. there is a python project named "The Devil Framework", I cringe
> >>> every time I he
On 10/9/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> On Oct 9, 8:34 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> > [EMAIL PROTECTED] wrote:
> > > On Oct 8, 1:03 pm, Carsten Haese <[EMAIL PROTECTED]> wrote:
> > >> On Mon, 2007-10-08 at 10:41 -0700, [EMAIL PROTECTED] wrote:
> > >> > For
On Oct 8, 11:09 pm, "." <[EMAIL PROTECTED]> wrote:
> On Tue, 09 Oct 2007 05:15:49 +, gnuist006 wrote:
>
> > Can anyone explain:
>
> > (1) its origin
>
> One of the lambda papers, I think. I don't remember which.
Hey no-name "dot" you are the only one who says its origin is in
one of the old
Special thanks to many of you for your very decent replies.
On Oct 9, 11:18 am, George Neuner wrote:
> On Tue, 09 Oct 2007 05:15:49 -, [EMAIL PROTECTED] wrote:
> >Again I am depressed to encounter a fundamentally new concept that I
> >was all along unheard of. Its not even in paul graham's bo
> (6) any good readable references that explain it lucidly ?
This was something that has been very interesting to me for a while
now, and I'm actually still having a difficult time wrapping my head
around it completely.
The best written explanation that I've come across was in "The Scheme
Progra
Steven D'Aprano wrote:
> On Tue, 09 Oct 2007 19:23:37 +0200, Diez B. Roggisch wrote:
>
>
>> Your believes aside, this is simply wrong. The statement
>>
>> a += x
>>
>> always leads to a rebinding of a to the result of the operation +.
>>
>
> Not true.
>
Hmm. Or you can write __iadd__ to
On Oct 9, 9:14 am, [EMAIL PROTECTED] wrote:
> a great tradition of tounge-in-cheek package names, like
> "Cold fusion", for example.
Cold Fusion is a super cool name. Nobody will every think of it as
representing something odd or silly.
> too late now. sorry again,
why would it be late? is the
1 - 100 of 153 matches
Mail list logo