Hi,
Does anyone have any clues why I can import a module (pgdb) from the
python command line, but trying to run a script doing it from IDLE I
get "ImportError: DLL load failed: The specified module could not be
found."?
How does the search path differ between IDLE and the Python command
line?
I'
In <[EMAIL PROTECTED]>, crystalattice
wrote:
>> What are the problems you fear when using `shelve` by the way?
>>
> The ideas I got about shelve are mostly due to this thread:
> http://tinyurl.com/lueok. There weren't any other threads
> contradicting the information so I figured it has merit.
M
Patch / Bug Summary
___
Patches : 396 open ( -5) / 3354 closed (+12) / 3750 total ( +7)
Bugs: 864 open (-32) / 6087 closed (+52) / 6951 total (+20)
RFE : 226 open ( +2) / 234 closed ( +1) / 460 total ( +3)
New / Reopened Patches
__
Move fire
Delaney, Timothy (Tim) wrote:
> Edmond Dantes wrote:
>
> > Of course, it's all what you really mean by "clever". To me, being
> > "clever" partly means writing code without bugs in the first place,
> > so there is nothing that needs debugging
>
> "Clever" in this context generally means us
On Tue, 01 Aug 2006 23:26:14 -0300, Gerhard Fiedler wrote:
> On 2006-08-01 21:04:07, Conrad wrote:
>
>>> A few years ago I did some research, and the result was that while
>>> PostgreSQL was claimed to have more features and a better design, the
>>> reports of database corruption seemed to have b
[EMAIL PROTECTED] wrote:
> John Machin wrote:
> > [EMAIL PROTECTED] wrote:
> >
> > >My version assumes three subroutines: extracting
> > > nibbles, shifting, and adding, Those are pretty simple, so I asked
> > > if he needed them rather than presenting them.
> > > Assuming we have
> > > them, the
For a tutorial try the Python Tutorial @ http://docs.python.org/tut/
For a book try "Learning Python" from O'Reilly Press
For reference try the Python library reference @
http://docs.python.org/lib/lib.html
For another good book try "Dive Into Python" @
http://diveintopython.org/
It is a book
OriginalBrownster wrote:
> I want to zip all the files within a directory called "temp"
> and have the zip archive saved in a directory with temp called ziptemp
>
> I was trying to read up on how to use the zipfile module python
> provides, but I cannot seem to find adequate documentation on funct
Jeremy,
Which method of extension are you using? For example you can pass the
function to C++/C directly using weave, without the need to convert to
Python first. Python has a different syntax than C++. Also I assume you
want exponentiation in you example "x^2..." and not 'xor', well, in
Python th
QOTW: "[U]sing Python is not programming, it IS a fun!" - Tolga
"The reason for making complex a builtin is _not_ to ease a single
program, but to create a convention allowing different modules which
operate on complex numbers to communicate." -Scott David Daniels
Komodo 4.0 debuted at last
In article <[EMAIL PROTECTED]>,
Carl J. Van Arsdall <[EMAIL PROTECTED]> wrote:
>Well, although you spawn seperate telnet processes there is still only
>one thread of control in your pythons script. If you need to do two
>things simultaneously you'll need to setup a parallel control
>mechanism.
Greetings,
For user actions on a wxWidget that trigger multiple events for that
wxWidget, is the order those events are processed in undefined,
and therefore arbitrary from one platform (ie Windows) to the next
(ie Linux)?
Specifically, I have a convience aggregate class that combines
a wxStaticT
what abt
os.path.getmtime or may be
os.stat(filename)[ST_MTIME];
cheers
-Thomas
Thomas[EMAIL PROTECTED]Phone. +64
7 855 8478Fax. +64 7 855
8871
--
http://mail.python.org/mailman/listinfo/python-list
Edmond Dantes wrote:
> Dan wrote:
>
>> But taken out of that context, I'll challenge it. I was first exposed
>> to Python about five or six years ago--my boss asked me to consider it.
>> What I found was that the current version of Python was V2.2, but newest
>> version (that I could find) that r
Hi Stephen,
some code that I have been using for a similar purpose.
def
addFolderToZip(myZipFile,folder): folder =
folder.encode('ascii') #convert path to ascii for ZipFile
Method for file in
glob.glob(folder+"/*"):
if
os.path.isfile(file):
print
fil
Pupeno wrote:
> I want to jump over a method in the class hierarchy, that is: If I have
> class A(object), clas B(A), class C(B) and in C, I want a method to do
> exactly what A does but not what B does in its reimplementation, would it
> be correct to do: super(A, super(B, self)).method() in C ?
Hi All,
I need to process a file to create a hash.. the
file contain a section
similar to
string MetaDataPrompt = "Discovery No";
string MetaDataFieldName = "Discovery No";
string MetaDataType = "string";
string MetaDataValue = "£500";
everything was working fine until recently I got an e
jeremito wrote:
> I am extending python with C++ and need some help. I would like to
> convert a string to a mathematical function and then make this a C++
> function. My C++ code would then refer to this function to calculate
> what it needs. For example I want to tell my function to calculate
John Machin wrote:
> [EMAIL PROTECTED] wrote:
>
> >My version assumes three subroutines: extracting
> > nibbles, shifting, and adding, Those are pretty simple, so I asked
> > if he needed them rather than presenting them.
> > Assuming we have
> > them, the algorithm is three lines long.
>
> Perhap
On 2006-08-01 21:04:07, Conrad wrote:
>> A few years ago I did some research, and the result was that while
>> PostgreSQL was claimed to have more features and a better design, the
>> reports of database corruption seemed to have been more frequent than with
>> MySQL.
> I can't claim to have don
This will probably sound like a very dumb question.
I am trying to zip some files within a directory.
I want to zip all the files within a directory called "temp"
and have the zip archive saved in a directory with temp called ziptemp
I was trying to read up on how to use the zipfile module pytho
Em Ter, 2006-08-01 às 18:45 -0700, jeremito escreveu:
> I am extending python with C++ and need some help. I would like to
> convert a string to a mathematical function and then make this a C++
> function.
I may be wrong, but I don't think you can create new C++ functions
on-the-fly. At least I
I am extending python with C++ and need some help. I would like to
convert a string to a mathematical function and then make this a C++
function. My C++ code would then refer to this function to calculate
what it needs. For example I want to tell my function to calculate
"x^2 + 3x +2", but later
url81-1 wrote:
> Actually this has nothing to do with datetime.datetime -- he's asking
> how to find the created time of the directory.
>
> Python has a builtin module called "stat" (afer sys/stat.h) which
> includes ST_ATIME, ST_MTIME, ST_CTIME members which are times accessed,
> modified, and cr
No, but before I signed up with them I asked if it was available
and they said yes.
wes
mbstevens wrote:
> I keep chatting with the tech support people at Earthlink, asking where
> the location of the Python interpreter is. They don't seem to know where
> it is. They don't know if Python is run
Actually this has nothing to do with datetime.datetime -- he's asking
how to find the created time of the directory.
Python has a builtin module called "stat" (afer sys/stat.h) which
includes ST_ATIME, ST_MTIME, ST_CTIME members which are times accessed,
modified, and created, respectively.
Best
Boris Borcic wrote:
> John Salerno wrote:
> > The code to look at is the try statement in the NumbersValidator class,
> > just a few lines down. Is this a clean way to write it? i.e. is it okay
> > to have all those return statements? Is this a good use of try? Etc.
> >
> > Thanks.
> >
> >
John Salerno wrote:
> John Salerno wrote:
> > The code to look at is the try statement in the NumbersValidator class,
> > just a few lines down. Is this a clean way to write it? i.e. is it okay
> > to have all those return statements? Is this a good use of try? Etc.
>
> I cleaned it up a little and
On Mon, 31 Jul 2006 17:12:56 -0300, Gerhard Fiedler wrote:
> On 2006-07-31 15:00:15, Bruno Desthuilliers wrote:
>
>> In fact, the real question IMHO is: what would MySQL advantage over
>> PostgreSQL be ?-)
>
> A few years ago I did some research, and the result was that while
> PostgreSQL was cl
c00i90wn wrote:
On first write of the xml everything goes
> as it should but on subsequent writes it starts to add more and more
> unneeded newlines to it making it hard to read and ugly.
Pretty make it pretty by putting in newlines (and spaces) that are not
in the original data. That is, if you
On Mon, 31 Jul 2006 19:14:03 +0200, Bruno Desthuilliers wrote:
> northband wrote:
>> Hi, I am interested in re-writing my website in Python vs PHP but have a
>> few questions. Here are my specs, please advise as to which
>> configuration would be best:
>>
>> 1.Dell Poweredge Server, w/IIS, curren
[EMAIL PROTECTED] wrote:
> Hi all. I've been try to learn ruby for a few months but I'm about
> ready to give up. The available books either assume a programming
> background, or are out of date. Anyway,
http://www.awaretek.com/book.html
--
http://mail.python.org/mailman/listinfo/python-list
Avell Diroll wrote:
> beno wrote:
> > I have to rebuild
> > python. [snip] Platform is FreeBSD 5.? I have
> > the following questions:
> >
> > What is meant by pointing to this folder thus:
> > ./configure --prefix=/usr/python
> >
> > When I run make test I get these errors:
> >
> *** errors ***
Carl J. Van Arsdall wrote:
> I've been looking around the OS module and I haven't found anything
> useful yet. Does anyone know how to get the age of a file or directory
> in days? I'm using unix and don't seem to find anything that will help
> me. The only function that comes close so far is
>
On 2006-08-01 16:29:54, Sybren Stuvel wrote:
>> - Mac OS: ':'
>
> It's a slash too, at least on non-obsolete Mac OS versions.
I wrote "Mac OS". That's not "Mac OSX". Ask Apple... :) And Mac OSX is
quite arguably a Unix-type system.
>> Maybe someone else can fill in some of the missing OSes. It
John Salerno wrote:
> The code to look at is the try statement in the NumbersValidator class,
> just a few lines down. Is this a clean way to write it? i.e. is it okay
> to have all those return statements? Is this a good use of try? Etc.
>
> Thanks.
>
>
>
> import
Edmond Dantes wrote:
> Of course, it's all what you really mean by "clever". To me, being
> "clever" partly means writing code without bugs in the first place,
> so there is nothing that needs debugging
"Clever" in this context generally means using a trick/hack that is
non-obvious (often
[EMAIL PROTECTED] wrote:
>My version assumes three subroutines: extracting
> nibbles, shifting, and adding, Those are pretty simple, so I asked
> if he needed them rather than presenting them.
> Assuming we have
> them, the algorithm is three lines long.
Perhaps you could enlighten us by publishi
I've been looking around the OS module and I haven't found anything
useful yet. Does anyone know how to get the age of a file or directory
in days? I'm using unix and don't seem to find anything that will help
me. The only function that comes close so far is
os.path.getctime(path)
However
If I use the dialog template for tkinter, how do I go about customizing
its color?
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
I've written an xml parser using xml.sax which works most of the time
but often traces back when trying to read a file. The output of the
traceback is below:
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/cherrypy/_cphttptools.py",
line 271, in run
main()
File "/
Here's how I would do it:
def Validate(self, parent):
try:
text_ctrl = self.GetWindow()
text = text_ctrl.GetValue()
if not text: raise ValueError
if int(text) <= 0: raise ValueError
return True
except ValueError, error
Simon Forman wrote:
> John Salerno wrote:
> > John Salerno wrote:
> > > The code to look at is the try statement in the NumbersValidator class,
> > > just a few lines down. Is this a clean way to write it? i.e. is it okay
> > > to have all those return statements? Is this a good use of try? Etc.
>
On Tue, 2006-08-01 at 14:05, [EMAIL PROTECTED] wrote:
> Carsten Haese wrote:
> > Once again, I'll need
> > the create table statement for the table you're selecting from in order
> > to investigate what's happening.
>
> Here it is:
>
> CREATE TABLE DEV_LOG(
> LOG_ID SERIAL,
> LEVEL VARCHAR (10)
John Salerno wrote:
> John Salerno wrote:
> > The code to look at is the try statement in the NumbersValidator class,
> > just a few lines down. Is this a clean way to write it? i.e. is it okay
> > to have all those return statements? Is this a good use of try? Etc.
>
> I cleaned it up a little and
In article <[EMAIL PROTECTED]>,
northband <[EMAIL PROTECTED]> wrote:
>Just spoke with my department and looks like we still want to go with a
>server scripting method. Although MVC may be better fit, for the sake
>of the learning curve, we want to use a PSP style method.
.
Hello,
Having A(unittest.TestCase) and B(A), the unittests framework seems not to
run A's test when testing B, right ?
If so, is there any way to 'fix' it ? that is, make all tests in A, also run
for B ?
Thanks.
--
Pupeno <[EMAIL PROTECTED]> (http://pupeno.com)
--
http://mail.python.org/mailman/l
Thanks for all input..
I think I should put all data on a mysql base..
The company will need this for reports and statistics for a year.
[EMAIL PROTECTED] wrote:
> [EMAIL PROTECTED]:
>
> > 1- Read the data and put all variables in a list
> > 2- Read the data and put all the variables in dictionary
Makes sense Frank, and that seemed to work also, so thanks a lot!
Frank Millman wrote:
> Kiran wrote:
> > I am creating 2 timers inside a GUI, but it seems that only the one
> > declared last (the second timer), gets triggered, but the first one
> > doesnt.
> >
>
> You really should check the arc
Hello All,
My question is regarding MDI Windows Support for Linux in wxPython.
I am currently writing an application which uses MDI.
I have seen that in linux, it basically makes all MDI windows tabs
(without close, minimize, or maximize buttons and other tools such as
cascade and stuff), which
John Salerno wrote:
> The code to look at is the try statement in the NumbersValidator class,
> just a few lines down. Is this a clean way to write it? i.e. is it okay
> to have all those return statements? Is this a good use of try? Etc.
I cleaned it up a little and did this, but of course this
I have to create a small and simple GUI app in Python which is similar
to a netwrok game. Let me expalain you. I need some suggestions. I
might use wxPython for GUI because that is the only GUI oolkit I know.
There are 6 players in the game. They are all connected though a LAN
(possible an interna
Pupeno <[EMAIL PROTECTED]> wrote:
> be correct to do: super(A, super(B, self)).method() in C ?
Why do you want to use super? Is there any diamond shaped inheritance
in sight? Anyway, have you actually tried, what you suggested? Well, ...
--8<---
The code to look at is the try statement in the NumbersValidator class,
just a few lines down. Is this a clean way to write it? i.e. is it okay
to have all those return statements? Is this a good use of try? Etc.
Thanks.
import wx
class NumbersValidator(wx.PyVali
Ravi Teja wrote:
>> 'Clever is not considered a compliment in Python.' (don't know where I
>> read that...)
>
> On a similar note.
>
> "Debugging is twice as hard as writing the code in the first place.
> Therefore, if you write the code as cleverly as possible, you are, by
> definition, not sm
- Original Message -
From: "Claudio Grondi" <[EMAIL PROTECTED]>
Newsgroups: comp.lang.python
To:
Sent: Tuesday, August 01, 2006 2:42 PM
Subject: Re: Html character entity conversion
> Anthra Norell wrote:
>
> import SE# Available at the Cheese Shop
>
> I mean, that OP request
Tim Chase a écrit :
> class Foo(object):
>>
>> ... pass
>> ...
>>
> b = Foo
> b.__name__
>>
>> 'Foo'
>
>
> While this is surely true, would somebody explain why I had such trouble
> finding this?
Mmm... Documentation needs update ?
> help(dir)
> > Help on built-in functi
crystalattice wrote:
> Of course there's the O'Reilly set: Learning Python, Programming
> Python, Python in a Nutshell, etc.
Yep, Learning Python is the best to start. I haven't tried Programming
Python yet (new edition soon), and once you understand Python, Python in
a Nutshell is an excelle
Hello all,
I have released version 0.7.0 of my functional module, a collection of
higher-order and functional programming tools for Python. Currently
offered are tools for function composition, partial function
application, plus filter, flip, foldl, foldr, map, scanl and scanr
functions.
Two vers
On Tue, 2006-08-01 at 07:37 -0400, Michael Yanowitz wrote:
> # * class BitsClass *
> class BitsClass (object):
> def __init__(self, num_bits):
> self.bits=[]
> for i in range(num_bits):
> self.bits.append(0)
> de
Hi
Thanks for the reply.
I will send it in when I am done :-)
Simon Forman wrote:
> ChaosKCW wrote:
> > Hi
> >
> > Has anyone caputerd the output from the std ftp lib? It seems a bit
> > annoying that everything is printed to stdout. It means incorporating
> > this into any real program is a pr
Gary Herron wrote:
> Gregory Guthrie wrote:
>
>>Sorry for a simple question- but I don't understand how to parse this use of
>>a list comprehension.
>>
>>The "or" clauses are odd to me.
>>
>>It also seems like it is being overly clever (?) in using a lc expression as
>>a for loop to drive the re
[EMAIL PROTECTED] wrote:
> Hi all. I've been try to learn ruby for a few months but I'm about
> ready to give up. The available books either assume a programming
> background, or are out of date. Anyway, I think python may suit me more
> due to its 'theres one way to do it' philosophy (hope the quo
Paddy wrote:
> Paul McGuire wrote:
> > Back in the mid-90's, Kees Blom generated a set of railroad syntax diagrams
> > for Python
> > (http://python.project.cwi.nl/search/hypermail/python-1994q3/0286.html).
> > This pre-dates any Python awareness on my part, but I'm sure this would have
> > been v
[EMAIL PROTECTED] wrote:
> 'Clever is not considered a compliment in Python.' (don't know where I
> read that...)
"To describe something as clever is NOT considered a compliment in the
Python culture."--Alex Martelli, Python Cookbook 2nd Ed. pg. 230 (a
great book for learning by doing, after yo
> 'Clever is not considered a compliment in Python.' (don't know where I
> read that...)
On a similar note.
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it."
-- Br
Dennis Lee Bieber wrote:
> On Tue, 01 Aug 2006 10:56:52 -0500, Kirk Strauser <[EMAIL PROTECTED]>
> declaimed the following in comp.lang.python:
>
>> Larry Bates wrote:
>>
>>> print print b.__class__.__name__ gives what you want
>> That doesn't seem to do it, though. Here's the result of importin
Paul McGuire wrote:
> Back in the mid-90's, Kees Blom generated a set of railroad syntax diagrams
> for Python
> (http://python.project.cwi.nl/search/hypermail/python-1994q3/0286.html).
> This pre-dates any Python awareness on my part, but I'm sure this would have
> been version 1.3 or something.
Hi all. I've been try to learn ruby for a few months but I'm about
ready to give up. The available books either assume a programming
background, or are out of date. Anyway, I think python may suit me more
due to its 'theres one way to do it' philosophy (hope the quote is
right)! Another quote that
Pupeno wrote:
> Hello,
> I want to jump over a method in the class hierarchy, that is: If I have
> class A(object), clas B(A), class C(B) and in C, I want a method to do
> exactly what A does but not what B does in its reimplementation, would it
> be correct to do: super(A, super(B, self)).method(
Very helpful, thanks!!
So I see that it parses as:
m='1'
a="asdf"
b="1234"
print [((m in a) or b) for m in '%d'%1234 ]
I get it.
Thanks,
Greg
"Duncan Booth" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Gregory Guthrie wrote:
>
>> Sorry for a simple question- but I d
Sorry for not answering such a long time. It's because my question
originated from a discussion within our company which moved out of focus
shortly after I posted, and over waiting for some response from them
before replying here, I forgot about it.
Steve Holden wrote:
>> - f might catch E excep
On Tue, 2006-08-01 at 06:38 -0700, Luis M. González wrote:
> Well... yes, you're right.
> I guess that the reason for not having used a framework already is
> laziness...
Trust me, I'm quite familiar with the laziness problem =)
> I have experience with Karrigell, which rocks too, but it lacks s
On 2006-08-01, Roy Smith <[EMAIL PROTECTED]> wrote:
> Paul McGuire <[EMAIL PROTECTED]> wrote:
>> For those who are not familiar with railroad syntax diagrams, they
>> show a grammar's syntax using arrows and blocks, instead of BNF
>
> I've always liked railroad diagrams.
Me too. The Pascal text w
Carsten Haese wrote:
> Once again, I'll need
> the create table statement for the table you're selecting from in order
> to investigate what's happening.
Here it is:
CREATE TABLE DEV_LOG(
LOG_ID SERIAL,
LEVEL VARCHAR (10),
POI_NM VARCHAR (255),
MSG_TX LVARCHAR(2000),
MSG2_TX LVARCHAR(5000)
On 2006-08-01, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
> On Tue, 1 Aug 2006 11:12:31 -0300, Gerhard Fiedler <[EMAIL PROTECTED]>
> declaimed the following in comp.lang.python:
>
>> There's maybe a point in comparing Python variables to C pointers. But it
>> lacks in the respect that a C program
Gregory Guthrie wrote:
> Sorry for a simple question- but I don't understand how to parse this use of
> a list comprehension.
>
> The "or" clauses are odd to me.
>
> It also seems like it is being overly clever (?) in using a lc expression as
> a for loop to drive the recursion.
>
> Thanks for an
On 2006-08-01 12:31:01, Sybren Stuvel wrote:
> Ehm... replace that with "the latter with bonk on every OS except
> Microsoft Windows". Windows is the weird one in OS-land, because they
> are the only one that use the most widely used escape-character (the
> backslash) as path separator.
Is that r
On Tue, 2006-08-01 at 10:41 -0300, Gerhard Fiedler wrote:
> On 2006-08-01 04:11:18, Cliff Wells wrote:
>
> > You say that you haven't tried Django or any other Python framework.
> > Perhaps you should. You seem to have at least the start of the right
> > idea about web application organization, s
Gregory Guthrie wrote:
> Sorry for a simple question- but I don't understand how to parse this
> use of a list comprehension.
>
> The "or" clauses are odd to me.
>
> It also seems like it is being overly clever (?) in using a lc
> expression as a for loop to drive the recursion.
You are spot on
On 2006-08-01 13:41:47, Terry Reedy wrote:
>> Instead of mimicking a browser to access this e-mail account through the
>> web interface, see if there is a POP3 access to your free e-mail (I'd
>> be surprised if there isn't).
>
> To the contrary: Yahoo, for instance, charges for POP3 access; for '
Paul McGuire <[EMAIL PROTECTED]> wrote:
> For those who are not familiar with railroad syntax diagrams, they
> show a grammar's syntax using arrows and blocks, instead of BNF
I've always liked railroad diagrams. Oracle used to use them (maybe
they still do?) in their SQL reference manuals. I fin
[EMAIL PROTECTED]:
> 1- Read the data and put all variables in a list
> 2- Read the data and put all the variables in dictionary?
> the logs is in this format
> xx
> The separation is by byte size like
> xxx three bytes for code x , bytes for hour, etc..
> I have two m
Not exactly Wha I am looking, this seems to be a good project, but the
way to parse the file I already have done that.
I am looking in "desing pattern" advices, how to deal with the data.
Must I use dbm? Must I make all the statistics and save in a dmf file?
Any insights?
Gregor Horvath wrote:
> H
beno wrote:
> It's been years since I've done this. I had a programmer working for me
> who disappeared one day, and now I'm taking over his responsibilities. I
> need to re-configure Apache for mod_python which means I have to rebuild
> python. I'm working with the latest distro. I'm heavily depen
Sorry for a simple question- but I don't understand how to parse this use of
a list comprehension.
The "or" clauses are odd to me.
It also seems like it is being overly clever (?) in using a lc expression as
a for loop to drive the recursion.
Thanks for any insight!
Gregory
---
Simon Hibbs wrote:
> I've recently gone through a similar evaluation of my options for
> persisting data. Object serialization to pickles or XML is a very easy,
> quick way of persisting data but it does have drawbacks. I'm not a
> professional developer, so if there are errors in my analysis, I'd
Hi everyone,
As shown in the code below (modified based on the Image.py in
wxpython demo), an image is created at location 1: (50,10) with
rotated angle 1.12. Now, suppose I got another set of new data, I want
to move the image to location 2: (166,400) with rotated angle 1.5.
case 1:
i
Marc 'BlackJack' Rintsch wrote:
> In <[EMAIL PROTECTED]>, crystalattice wrote:
>
> > On Mon, 31 Jul 2006 14:35:39 -1000, Simon Forman <[EMAIL PROTECTED]>
> > wrote:
> >
> >> What kind of trouble were you having with pickle?
> >
> > It's mostly a combination of things (I hope you can follow my logi
Brian you are right, but in my case (host, port, protocol) is unique.
[EMAIL PROTECTED] schreef:
> Guyon Morée wrote:
> > i have a big list of tuples like this:
> >
> > [ (host, port, protocol, startime, endtime), .. ] etc
> >
> > now i have another big(ger) list of tuples like this:
> >
> > [(s
Back in the mid-90's, Kees Blom generated a set of railroad syntax diagrams
for Python
(http://python.project.cwi.nl/search/hypermail/python-1994q3/0286.html).
This pre-dates any Python awareness on my part, but I'm sure this would have
been version 1.3 or something.
For those who are not familiar
On Tue, 2006-08-01 at 11:47, [EMAIL PROTECTED] wrote:
> Another thing...
>
> > Output is:
> > description is <('msg_tx', 'lvarchar', 0, 0, None, None, 1)>
>
> The 0's worried me, as I could see where they could be used as parms to
> allocate/trim things as necessary... just a thought.
That is i
On Tue, 2006-08-01 at 11:41, [EMAIL PROTECTED] wrote:
> Carsten Haese wrote:
> > Could you possibly send me a minimal test script that shows the problem?
> > Also, in case it matters, I'd like to know which versions of IDS and
> > CSDK or Informix Connect you're using.
>
>
> Here's a sample scrip
"Paul McGuire" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Instead of mimicking a browser to access this e-mail account through the
> web
> interface, see if there is a POP3 access to your free e-mail (I'd be
> surprised if there isn't).
To the contrary: Yahoo, for instance, c
Kirk Strauser wrote:
[snip]
> OK, now for the good stuff. In the code below, how can I find the name of
> the class that 'bar' belongs to:
>
> >>> class Foo(object):
> ... def bar(self):
> ... pass
> ...
> >>> b = Foo.bar
>>> print b.im_class.__name__
Foo
But if you are writing
Pupeno írta:
> Hello,
> I want to jump over a method in the class hierarchy, that is: If I have
> class A(object), clas B(A), class C(B) and in C, I want a method to do
> exactly what A does but not what B does in its reimplementation, would it
> be correct to do: super(A, super(B, self)).method()
Shane Hathaway wrote:
> Don't forget to file a bug.
I'm reluctant to call it a bug just yet. Here's more stuff below.
There's obviously a difference between old- and new-style classes. It
seems that as far as new-style is concerned, __name__ is an attribute of
__class__ (along with a bunch of
Guyon Morée wrote:
> i have a big list of tuples like this:
>
> [ (host, port, protocol, startime, endtime), .. ] etc
>
> now i have another big(ger) list of tuples like this:
>
> [(src_host, src_port, dest_src, dest_port, protocol, time), ... ] etc
>
> now i need to find all the items in the seco
Dan wrote:
> But taken out of that context, I'll challenge it. I was first exposed
> to Python about five or six years ago--my boss asked me to consider it.
> What I found was that the current version of Python was V2.2, but newest
> version (that I could find) that ran on VMS was V1.4. I decide
Bruno Desthuilliers wrote:
> Kirk Strauser wrote:
> class foo(object):
> pass
>>
>> how can I find its name, such as:
>>
> b = foo
> I suppose you mean b = foo() ?
Actually, I meant 'b = foo' in this case - I want to find the name of the
class that b references, but the name o
1 - 100 of 180 matches
Mail list logo