Berteun Damman schrieb:
> Hello,
>
> I was wondering a bit about the differences between methods and
> functions. I have the following:
>
> def wrap(arg):
> print type(arg)
> return arg
>
> class C:
> def f():
> pass
>
> @wrap
> def g():
> pass
>
> def h():
I've found some class on the Net which takes basically this form :
##
class Foo:
def __init__(self):
self.tasks = []
...
def method1(self):
tasks = []
while True:
...
append/pop elements into/from tasks
...
if condition : break
self.tasks[:] = t
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:python-
> [EMAIL PROTECTED] On Behalf Of Torsten Bronger
> Sent: Thursday, February 07, 2008 3:32 PM
> To: python-list@python.org
> Subject: Re: Why not a Python compiler?
>
> >
> > I wonder if George Lucas intended it as a joke or if
On Feb 7, 10:37 pm, [EMAIL PROTECTED] wrote:
> > On Wed, 06 Feb 2008 17:32:53 -0600, Robert Kern wrote:
>
> > > Jeff Schwab wrote:
> > ...
> > >> If the strings happen to be the same length, the Levenshtein distance
> > >> is equivalent to the Hamming distance.
>
> Is this really what the OP was as
Hello,
I have been developing an application in C++ that embeds Python interpreter.
It takes advantage of too many modules from Python.
When I want to package this application, I need to add too many files (.pyc)
from Python/lib folder together with Python25.dll.
Is there a way to pack these .pyc
I do not have access to my development machine right now.
but is it enough adding just a simple line at the top of my main python file
'sys.path.append("modules.zip")' before importing any other modules?
On 2/7/08, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
>
> En Thu, 07 Feb 2008 16:18:57 -0200
On Feb 7, 2008 8:52 AM, <[EMAIL PROTECTED]> wrote:
> I try to install Python in a Dell D620 with XP PRO version 5.1.2600
> and I am getting this error. I assume that some dlls are missing but I
> installed form a fresh python-2.5.1.msi without errors msg.
>
> Thanks
>
> Roberto
>
>
Sounds like a
I'm developing a program that runs using an asyncore loop. Right now
I can adequately terminate it using Control-C, but as things get
refined I need a better way to stop it. I've developed another
program that executes it as a child process using popen2.Popen4(). I
was attempting to use signals
On Thu, 2008-02-07 at 16:33 +0100, M.-A. Lemburg wrote:
> mxODBC has support for named cursors that you can later
> use for positioned updates.
Since we're on the topic of shameless plugs, InformixDB has this
feature, too :)
>
> However, it's usually better to do updates in the classical
> way,
Here,computer oriented programs only.
job oppurtunities inside
http://onlinejob7.googlepages.com
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano wrote:
> On Thu, 07 Feb 2008 13:44:05 -0700, Ivan Van Laningham wrote:
>
>> Gary Kurtz at SunCon 77 explained that it was a test to see if Obi-Wan
>> knew what he was doing; supposedly, Obi-Wan's expression indicated that
>> he knew Solo was feeding him shit.
>
> Why the hell woul
En Thu, 07 Feb 2008 11:31:44 -0200, Diez B. Roggisch <[EMAIL PROTECTED]>
escribió:
>> I see list has index member, but is there an index function that applies
>> to any sequence type?
>>
>> If not, shouldn't there be?
>
> Looks like an oversight to me as well, yes. The only "difficult"
> impleme
On Feb 7, 2008, at 3:19 PM, James Turk wrote:
> if you do
> a = [1,2,3]
> b = []
> b = a
>
> then assign: b[1] = 9
> now a[1] == 9 as well
>
> with a[:] = b you are actually getting a copy of the list rather than
> an alias
Of course, this only works if 'b' is already a list. A more comm
On Feb 7, 3:30 pm, [EMAIL PROTECTED] wrote:
> On Feb 7, 11:15 am, Henry Hollenberg <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hello,
>
> > I have written a script that uses environment variables set during
> > a particular users login in ".bash_profile" and ".profile".
>
> > I have changed to that users
En Thu, 07 Feb 2008 16:16:11 -0200, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> escribió:
> On Feb 7, 11:38 am, [EMAIL PROTECTED] wrote:
> I don't see why you should get either.
>
> Especially considering this behaviour:
>
a=[]
row=[ [] for n in range(0,10) ]
a.extend(row[:])
a
> [
On Feb 7, 7:53 am, Guido van Brakel <[EMAIL PROTECTED]> wrote:
> Hello
>
> I totally new to python and i'm doing a python course now. Maybe someone
> could help me a little bit here:
>
> I need to create this script.
>
> If i enter a center digit like 5 for example i need to create two
> vertical a
>>> self.tasks[:] = tasks
>>>
>>> What I do not fully understand is the line "self.tasks[:] = tasks". Why
>>> does
>>> the guy who coded this did not write it as "self.tasks = tasks"? What is
>>> the
>>> use of the "[:]" trick ?
>>
>> It changes the list in-place. If it has been given to ot
On Feb 7, 3:30 pm, Fuzzyman <[EMAIL PROTECTED]> wrote:
> On Feb 7, 2:35 pm, "Luis M. González" <[EMAIL PROTECTED]> wrote:
>
>
>
> > On 7 feb, 05:52, Fuzzyman <[EMAIL PROTECTED]> wrote:
>
> > > Luis M. González wrote:
> > > > On 6 feb, 21:17, Fuzzyman <[EMAIL PROTECTED]> wrote:
> > > > > On Feb 6, 9
On 7 fév, 22:16, Steve Holden <[EMAIL PROTECTED]> wrote:
> Diez B. Roggisch wrote:
> >> self.tasks[:] = tasks
>
> >> What I do not fully understand is the line "self.tasks[:] = tasks". Why
> >> does
> >> the guy who coded this did not write it as "self.tasks = tasks"? What is
> >> the
> >> u
On Feb 7, 4:25 pm, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> On Thu, 07 Feb 2008 15:59:13 +0100, Wildemar Wildenburger wrote:
> > Arnaud Delobelle wrote:
> >> Personally, between
>
> >> * foo if foo else bar
> >> * foo or bar
>
> >> I prefer the second. Maybe it could be spelt
Hi I have a socket script, written in perl, which I use to send audio
data from one server to another. I would like to rewrite this in
python so as to replicate exactly the functionality of the perl
script, so as to incorporate this into a larger python program.
Unfortunately I still don't really
"Denis Bilenko" <[EMAIL PROTECTED]> writes:
> I convinced that this
>
> line = self._buffer.get(self._bufindex)
> if line is None:
> self._bufindex += 1
> self._lineno += 1
> self._filelineno += 1
> return line
> line = self.readline()
I haven't looked
On Feb 7, 11:15 am, Henry Hollenberg <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have written a script that uses environment variables set during
> a particular users login in ".bash_profile" and ".profile".
>
> I have changed to that users uid and gid in my python script using:
>
> import os
> os.se
-On [20080207 22:09], Reedick, Andrew ([EMAIL PROTECTED]) wrote:
>Errr... didn't one of the novels explain it away by describing the
>kessel run as a region of space warped by black holes or other objects?
>Bragging rights for crossing such a field thus centered on shortest
>di
On Thu, 07 Feb 2008 09:06:32 -0500, Steve Holden wrote:
> Ryszard Szopa wrote:
>> On Feb 5, 9:30 am, [EMAIL PROTECTED] wrote:
>>
>>> I don't know the exact details but I think the issue is the dynamic
>>> nature of Python makes it impossible to correctly store the various
>>> types and changes in
Guido van Brakel wrote:
> Hello
>
> I totally new to python and i'm doing a python course now. Maybe someone
> could help me a little bit here:
>
> I need to create this script.
>
> If i enter a center digit like 5 for example i need to create two
> vertical and horzitonal rows that looks like
Alan Illeman wrote:
> "Steve Holden" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> Steve Holden wrote:
>>> Alan Illeman wrote:
Win2k Pro - installed python: ok
>> [...]
=
>>> C:\Python25\Lib\site-packages\pythonwi
In article <[EMAIL PROTECTED]>,
Torsten Bronger <[EMAIL PROTECTED]> wrote:
> > a parsec was a unit of time.
>
> The latter because it was corrected in the novelization.
>
> Tschö,
> Torsten.
Sounds like one. The reverse of light year that sounds like a unit of
time, but isn't. I've heard it
On Feb 7, 12:20 pm, "Sébastien Vincent" free.fr>
wrote:
> I've found some class on the Net which takes basically this form :
>
> ##
> class Foo:
> def __init__(self):
> self.tasks = []
>...
>
> def method1(self):
> tasks = []
> while True:
> ...
> append
On Feb 7, 12:52 pm, [EMAIL PROTECTED] wrote:
> I try to install Python in a Dell D620 with XP PRO version 5.1.2600
> and I am getting this error. I assume that some dlls are missing but I
> installed form a fresh python-2.5.1.msi without errors msg.
>
> Thanks
>
> Roberto
What is the install path
On Thu, 07 Feb 2008 13:44:05 -0700, Ivan Van Laningham wrote:
> Gary Kurtz at SunCon 77 explained that it was a test to see if Obi-Wan
> knew what he was doing; supposedly, Obi-Wan's expression indicated that
> he knew Solo was feeding him shit.
Why the hell would the pilot care whether the passe
On Thu, 07 Feb 2008 15:59:13 +0100, Wildemar Wildenburger wrote:
> Arnaud Delobelle wrote:
>> Personally, between
>>
>> * foo if foo else bar
>> * foo or bar
>>
>> I prefer the second. Maybe it could be spelt
>>
>> * foo else bar ?
>>
> How about
>
> val = foo rather than bar
>
> If that is
Steven D'Aprano wrote:
> On Thu, 07 Feb 2008 09:06:32 -0500, Steve Holden wrote:
>
>> Ryszard Szopa wrote:
>>> On Feb 5, 9:30 am, [EMAIL PROTECTED] wrote:
>>>
I don't know the exact details but I think the issue is the dynamic
nature of Python makes it impossible to correctly store the v
Gary Kurtz at SunCon 77 explained that it was a test to see if Obi-Wan
knew what he was doing; supposedly, Obi-Wan's expression indicated
that he knew Solo was feeding him shit.
I think Lucas didn't have a clue, myself; it's not credible that
citizens of a starfaring civilization who deliberately
Diez B. Roggisch wrote:
> "S����������������������������������������������" schrieb:
>> I've found some class on the Net which takes basically this form :
>>
>> ##
>> class Foo:
>> def __init__(self)
Steve Holden ha scritto:
>>> What I do not fully understand is the line "self.tasks[:] = tasks".
>>> Why does the guy who coded this did not write it as "self.tasks =
>>> tasks"? What is the use of the "[:]" trick ?
>>
>> It changes the list in-place. If it has been given to other objects,
>> i
Hi all,
This is slightly OT but it drives me nuts. Whenever I create a
shortcut in the start menu (in Windows) of a python script, it will
only execute it when the path where the script resides in contains no
spaces. For example;
d:\src\app\app.py
If I drag that to the Start Menu it can be execu
On Thu, 07 Feb 2008 13:53:48 +0100, Guido van Brakel wrote:
> Hello
>
> I totally new to python and i'm doing a python course now. Maybe someone
> could help me a little bit here:
>
> I need to create this script.
>
> If i enter a center digit like 5 for example i need to create two
> vertical
En Thu, 07 Feb 2008 16:18:57 -0200, Joshua Kugler <[EMAIL PROTECTED]>
escribió:
> Furkan Kuru wrote:
>>
>> I have been developing an application in C++ that embeds Python
>> interpreter. It takes advantage of too many modules from Python.
>> When I want to package this application, I need to add
On 7 feb, 05:52, Fuzzyman <[EMAIL PROTECTED]> wrote:
> Luis M. González wrote:
> > On 6 feb, 21:17, Fuzzyman <[EMAIL PROTECTED]> wrote:
> > > On Feb 6, 9:59 pm, "Luis M. Gonz�lez" <[EMAIL PROTECTED]> wrote:
>
> > > > On Feb 6, 6:27 pm, Huayang Xia <[EMAIL PROTECTED]> wrote:
>
> > > > > Hello All,
>
Hi, All:
Many thanks for the excellent leads. I've also found several
functions to find phonetic similarity between English names: the
mentioned above soundex, then, also, one called metaphone. I'm now
thinking of the best way to use some combination of these functions.
--
http://mail.python.or
Paul Boddie wrote:
[...]
>
> I don't use psycopg2 at the moment, but I did patch it to allow more
> transparent usage of cursors, and there's an unapplied patch for this
> floating around in the bug tracker. Lately, I've been using pyPgSQL
> instead and not really doing huge selects from Python co
Stefan Behnel <[EMAIL PROTECTED]> writes:
> def find_index(seq, value):
> try:
> find_index = seq.index
> except AttributeError:
> def find_index(value):
> for i,v in enumerate(seq):
>if v == value: return i
> raise V
Bjoern Schliessmann wrote:
> Learning English also is not too hard. So everyone should be
> capable of writing poetry of Shakespeare niveau.
You're lucky that you can infer anything from a wrong statement.
http://www.mipmip.org/tidbits/pronunciation.shtml
Stefan
--
http://mail.python.org/mailma
Jorgen Bodde wrote:
> Hi all,
>
> This is slightly OT but it drives me nuts. Whenever I create a
> shortcut in the start menu (in Windows) of a python script, it will
> only execute it when the path where the script resides in contains no
> spaces. For example;
>
> d:\src\app\app.py
>
> If I dra
> If i enter a center digit like 5 for example i need to create two
> vertical and horzitonal rows that looks like this. If i enter 6 it shows
> 6 six starts. How can i do this, because i don't have any clue.
>
> *
> * *
> * *
> * *
> *
Well we start by introducing the neophite progr
En Thu, 07 Feb 2008 19:36:57 -0200, George Sakkis
<[EMAIL PROTECTED]> escribió:
> On Feb 7, 4:25 pm, Steven D'Aprano <[EMAIL PROTECTED]
> cybersource.com.au> wrote:
>> On Thu, 07 Feb 2008 15:59:13 +0100, Wildemar Wildenburger wrote:
>>
>> > val = foo rather than bar
>>
>> > If that is not clear
I'm trying to install matplotlib and currently getting the below
error. I searched the group and google and couldn't find anything
similar... Any ideas?
Thanks in advance!
src/ft2font.cpp: In member function 'Py::Object
Glyph::get_path(FT_FaceRec_* const&)':
src/ft2font.cpp:441: error: 'FT_CURVE
Steve Holden wrote:
> These versions differ with respect to treatment of blank lines, which
> indicates how easy it is to go astray in this kind of semantic
> optimization. Your example simply wouldn't work (though you could patch
> it up using "if line is None". (despite the use of short-circuiti
On Feb 7, 1:57 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
> Tuples are worse: they implement
> __contains__ but not index. So you can say:
>
> py> 2 in (1,2,4,8)
> True
>
> but not:
>
> py> (1,2,4,8).index(2)
You must be using an old version of Python like 2.5 ;-)
As of yesterday, Py2.6 h
Ravi Kumar wrote:
> I have to design a Web-based CVS client. I could not find any module,
> cvs-binding in python.
>
> I have investigated all sort of Web Interface, including Sandweb, and
> ViewCVS etc.
> But these provide Read-only access and features. I need to provide
> almost all sort of b
On Feb 8, 12:08 am, Bjoern Schliessmann wrote:
> kettle wrote:
> > Hi I have a socket script, written in perl, which I use to send
> > audio data from one server to another. I would like to rewrite
> > this in python so as to replicate exactly the functionality of the
> > perl script, so as to in
En Thu, 07 Feb 2008 20:13:00 -0200, Raymond Hettinger <[EMAIL PROTECTED]>
escribió:
> On Feb 7, 1:57 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
>> Tuples are worse: they implement
>> __contains__ but not index. So you can say:
>>
>> py> 2 in (1,2,4,8)
>> True
>>
>> but not:
>>
>> py> (1,
Ivan Van Laningham wrote:
> Gary Kurtz at SunCon 77 explained that it was a test to see if Obi-Wan
> knew what he was doing; supposedly, Obi-Wan's expression indicated
> that he knew Solo was feeding him shit.
>
> I think Lucas didn't have a clue, myself; it's not credible that
> citizens of a st
Mike Hjorleifsson wrote:
> I wrote a lil module using paramiko's module to send a file via
> sftp.. it works great using the username and password.
> I would prefer to use id_dsa.pub to have an autologon and not save
> the
> password anywhere on the disk.. I cant find a good example of this.
> Can
En Thu, 07 Feb 2008 10:40:58 -0200, rodmc <[EMAIL PROTECTED]>
escribi�:
> Also how do I find out if a cookie has expired? I have tried various
> methods but to no avail?
The browser won't send the cookie in that case. The server cannot tell
whether the cookie expired or it never existed, AFAI
Kim Komando recommended SpamBayes (a Python-based Bayesian spam filter -
http://www.spambayes.org/) today to her readers/listening audience:
http://www.komando.com/coolsites/
On one level this is very gratifying. On another level it's created a whole
new set of requests like "Does SpamBayes
Steven D'Aprano <[EMAIL PROTECTED]> writes:
> Be fair -- he's asking what specific features of Python make it
> hard. That's a reasonable question.
Indeed. The best explanation I've seen explained goes something like
this: imagine a hypothetical Python compiler that achieves native
compilation
John schrieb:
> I'm trying to install matplotlib and currently getting the below
> error. I searched the group and google and couldn't find anything
> similar... Any ideas?
>
> Thanks in advance!
>
> src/ft2font.cpp: In member function 'Py::Object
> Glyph::get_path(FT_FaceRec_* const&)':
> src/f
On Feb 7, 9:38 pm, Huayang Xia <[EMAIL PROTECTED]> wrote:
> On Feb 7, 3:30 pm, Fuzzyman <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Feb 7, 2:35 pm, "Luis M. González" <[EMAIL PROTECTED]> wrote:
>
> > > On 7 feb, 05:52, Fuzzyman <[EMAIL PROTECTED]> wrote:
>
> > > > Luis M. González wrote:
> > > > > On 6
On Feb 7, 3:13 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
> En Thu, 07 Feb 2008 16:16:11 -0200, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> escribió:
>
> > On Feb 7, 11:38 am, [EMAIL PROTECTED] wrote:
> > I don't see why you should get either.
>
> > Especially considering this behaviour:
>
>
I do not understand why people such as yourself cannot construct
anything but insults and complaints. Please e-mail me something that is
of reasonable technological value regarding Python development, not just
informing me that that my messages are difficult to read under
circumstances that are ri
Looks like Microsoft has a language aimed at taking all of Pythons
strengths and attacking its weaknesses. Quoted as a compiled language
that has optional dynamic binding. I've just started investigating the
web site, but this is looking to shape up to a rather decent challenge
to Python for an
I've done this the rather old-fashioned way.
Basically, what I do is:
Step 1:
Embed Python:
if(!::getenv("PYTHONHOME"))
{
::putenv("PYTHONHOME=");
}
if(!::getenv("PYTHONPATH"))
{
::putenv("PYTHONPATH=.");
}
Py_SetProgramName("leaktester");
Py_InitializeEx(0);
init_memor
"Mike Hjorleifsson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> on windows you can put this in HKEY_Local_Machine\Software\Microsoft
> \Windows\Current Version\Run and it will run at logon (or fast user
> switch) for each user
> or if you only want to do it for a specific user you
On the off chance that anyone is still following this:
I've got a relatively simple example of a program that loads 100
interpreters (sequentially) which all load the same swig module, do
something trival, and exit.
Each cycle leaks (or loses) 132k, which is a significant hit -- in my
real progra
All the touted features and the integration with .Net and the friendly
Visual Studio IDE will make it a fearsome adversary.
And the name clearly suggests where it intends to harvest converts.
Interesting times ahead.
On 02/07/2008 06:07 PM, Peter Dilley wrote:
Looks like
Microsoft has a langu
On Feb 8, 4:01 am, Hrvoje Niksic <[EMAIL PROTECTED]> wrote:
> kettle <[EMAIL PROTECTED]> writes:
> > # pack $length as a 32-bit network-independent long
> > my $len = pack('N', $length);
> [...]
> > the sticking point seems to be the $len variable.
>
> Use len = struct.pack('!L', length) in Python.
On 08/02/2008, Peter Dilley <[EMAIL PROTECTED]> wrote:
> I am not, however, an in depth language nutter, so would
> appreciate any of our more learned readers comments.
Looks like MS forgot E and E and went straight for E this time.
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
א-ב-
On Feb 7, 2:48 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> Jean-Paul Calderone schrieb:
>
>
>
>
>
> > On Wed, 06 Feb 2008 23:59:27 +0100, "Diez B. Roggisch"
> > <[EMAIL PROTECTED]> wrote:
> >> [EMAIL PROTECTED] schrieb:
> >>> def run3( block ):
> >>> for _ in range( 3 ):
> >>> bloc
2008/2/7, Dotan Cohen <[EMAIL PROTECTED]>:
> On 08/02/2008, Peter Dilley <[EMAIL PROTECTED]> wrote:
> > I am not, however, an in depth language nutter, so would
> > appreciate any of our more learned readers comments.
>
>
> Looks like MS forgot E and E and went straight for E this time.
>
I coul
> > > I am not, however, an in depth language nutter, so would
> > > appreciate any of our more learned readers comments.
Maybe I'm missing the obvious here, but what does Cobra have to do
with Microsoft?
(Apart from being .NET oriented.) It seems it's an open source project
of a guy who doesn't
On 08/02/2008, Guilherme Polo <[EMAIL PROTECTED]> wrote:
> > > I am not, however, an in depth language nutter, so would
> > > appreciate any of our more learned readers comments.
> >
> > Looks like MS forgot E and E and went straight for E this time.
>
> I couldn't understand what you said, m
Thank you.
So example 2 was clearly wrong, and example 1 was not clear :~).
pipe is a serial port object: when I print pipe it shows first that it is
connected to port 5, then that it is connected to port 6. I'll discard
the clearly wrong code, and concentrate on the unclear code: probably
by th
On Feb 7, 2008 8:59 PM, ajaksu <[EMAIL PROTECTED]> wrote:
> On Feb 7, 10:05 pm, "Blubaugh, David A." <[EMAIL PROTECTED]> wrote:
> > I do not understand why people such as yourself cannot construct
> > anything but insults and complaints.
>
> I can help with that. People asked politely a few days ag
On Feb 7, 10:05 pm, "Blubaugh, David A." <[EMAIL PROTECTED]> wrote:
> I do not understand why people such as yourself cannot construct
> anything but insults and complaints.
I can help with that. People asked politely a few days ago. Didn't you
see it? It happens because you're not following basic
En Thu, 07 Feb 2008 21:05:46 -0200, Furkan Kuru <[EMAIL PROTECTED]>
escribió:
> I do not have access to my development machine right now.
> but is it enough adding just a simple line at the top of my main python
> file
> 'sys.path.append("modules.zip")' before importing any other modules?
Alm
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hallo,
>
> I'm after
>
> [[[],[],[],[],[]],[[],[],[],[],[]],[[],[],[],[],[]],[[],[],[],[],[]],[[],[],[],[],[]]]
>
How about:
>>> [[[]]*5]*5
[[[], [], [], [], []], [[], [], [], [], []], [[], [], [], [], []], [[], [],
[], [], []], [[]
"Mark Tolonen" <[EMAIL PROTECTED]> writes:
> <[EMAIL PROTECTED]> wrote:
> > I'm after
> > [[[],[],[],[],[]],[[],[],[],[],[]],[[],[],[],[],[]],[[],[],[],[],[]],[[],[],[],[],[]]]
>
> How about:
>
> >>> [[[]]*5]*5
> [[[], [], [], [], []], [[], [], [], [], []], [[], [], [], [], []],
> [[], [], [], [
"Mark Tolonen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
|
| <[EMAIL PROTECTED]> wrote in message
| news:[EMAIL PROTECTED]
| > Hallo,
| >
| > I'm after
| >
| >
[[[],[],[],[],[]],[[],[],[],[],[]],[[],[],[],[],[]],[[],[],[],[],[]],[[],[],[],[],[]]]
| >
|
| How about:
|
| >>> [[[]
On Feb 7, 3:38 pm, [EMAIL PROTECTED] wrote:
> This message and any attachments (the "message") is
> intended solely for the addressees and is confidential.
> If you receive this message in error, please delete it and
> immediately notify the sender. Any use not in accord with
> its purpose, any dis
I realize in the new style, getattr and setattr are supposed to
reference something in a base class, but here is what I'm trying to
do:
class tryit:
def __init__(self, a, b):
self.__dict__["a"] = a
self.__dict__["b"] = b
def __dir__(self):
return [ "geta", "getb" ]
"Mariano Suárez-Alvarez" <[EMAIL PROTECTED]> writes:
> On Feb 7, 3:38 pm, [EMAIL PROTECTED] wrote:
> > [disclaimer dozens of lines long]
>
> Is this absurd signature really necessary?
No.
http://www.goldmark.org/jeff/stupid-disclaimers/>
--
\ "Never use a long word when there's a c
Hi Folks,
for those of you who are familiar with the micropledge.com project,
here is a good opportunity to spend or earn something:
http://micropledge.com/projects/pysalsa20
I know that the details of this project are still a bit unclear, but
that is something we could discuss. By the way, the e
On Feb 7, 7:13 pm, [EMAIL PROTECTED] wrote:
> On Feb 7, 2:48 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Jean-Paul Calderone schrieb:
>
> > > On Wed, 06 Feb 2008 23:59:27 +0100, "Diez B. Roggisch"
> > > <[EMAIL PROTECTED]> wrote:
> > >> [EMAIL PROTECTED] schrieb:
> > >>> def run
On Feb 8, 6:50 am, [EMAIL PROTECTED] wrote:
> Sometimes, it's more appropriate to write
>
> @call
> def f():
> normal_suite()
>
> than
>
> def f():
> normal_suite()
> f().
>
> It's clearer to the eye and reader, and truer to the meaning of the
> code. From reading the docs, it's pretty clear
On Feb 7, 8:44 am, Steve Holden <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > I'd like to know what others think about it, about this anti-feature.
> > What I can say is that other computer languages too think that boolean
> > operations must return boolean values only, so I am not alon
On Feb 7, 11:25 pm, Hrvoje Niksic <[EMAIL PROTECTED]> wrote:
> Steven D'Aprano <[EMAIL PROTECTED]> writes:
> > Be fair -- he's asking what specific features of Python make it
> > hard. That's a reasonable question.
>
> Indeed. The best explanation I've seen explained goes something like
> this: i
> Each cycle leaks (or loses) 132k, which is a significant hit -- in my
> real program the hit is around 800k/interpreter.
>
> I ran it through purify (after rebuilding python with the puremodule, no
> pymalloc, no optimization, no threads, and debugging), and while the
> results are somewhat ambi
> sorry i meant a code example that i pass the id_dsa.pub file contents
> too
> so i am not reliant on the host system to have the ssh-agent.
c.connect("",username="loewis",key_filename=".ssh/identity")
works for me with ssh-agent disabled.
Regards,
Martin
--
http://mail.python.org/mailman/list
Hallöchen!
Reedick, Andrew writes:
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:python-
>> [EMAIL PROTECTED] On Behalf Of Torsten Bronger
>> Sent: Thursday, February 07, 2008 3:32 PM
>> To: python-list@python.org
>> Subject: Re: Why not a Python compiler?
>>
>>> I wonder if G
101 - 191 of 191 matches
Mail list logo