Does anyone have a good rtf library for python, have exprience with
pyRTF or a link to a good tutorial?
thx Stephane
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
i have the following function:
def getGNUPlotInputFeaturesVersion(self):
s=""
bugCommits=0
trdocCommits=0
featCommits=0
ct=CommitType()
for version in self.releaseVersionsList_:
self.execQuery("SEL
Gary Jefferson wrote:
> My setup.py (with extension) seems to work great for build and
> install, but for bdist_rpm, compilation of the extension fails because
> some of the headers needed to build the extension aren't in the bdist
> tarball.
>
> I've tried adding a 'depends=[]' to the Extension d
On Thu, 20 Sep 2007 03:46:08 +, prikar20 wrote:
> On Sep 19, 5:25 pm, Mark Dickinson <[EMAIL PROTECTED]> wrote:
>> On Sep 19, 7:26 pm, Karthik Gurusamy <[EMAIL PROTECTED]> wrote:
>>
>> > If I did, a = [10, 20] and I did d[a]= 'foo', then a.append(30).
>> > If dict complains key error on d[a] n
"TheFlyingDutchman" <[EMAIL PROTECTED]> wrote:
> Around 2000 I heard that Google was using Python to some extent. Now I
> see that Guido Van Rossum works for them as well as Alex Martellis
8< -
-
It seems that s
"W. Watson" <[EMAIL PROTECTED]> wrote:
> I'm just trying to get some feel for how canvas works. I'm about to modify a
> program I use for meteor work. It uses canvas to display images, and I plan
> to draw on the image. For example, I plan to draw compass headings on a
> circle every 30 degre
"Steven D'Aprano" <[EMAIL PROTECTED]> wrote:
>
> I think a better question is, how much faster/slower would Stein's code
> be on today's processors, versus CPython being hand-simulated in a giant
> virtual machine made of clockwork?
This obviously depends on whether or not the clockwork is o
On Thu, 20 Sep 2007 10:31:43 +0400, Dmitry Teslenko wrote:
> I'm using os.popen to perform lengthy operation such as building some
> project from source.
> It looks like this:
> def execute_and_save_output( command, out_file, err_file):
>
> import os
>
> def execute_and_save_output( command, out
On Sep 20, 6:02 am, Karthik Gurusamy <[EMAIL PROTECTED]> wrote:
> On Sep 19, 7:17 pm, Steven D'Aprano <[EMAIL PROTECTED]
>
[...]
> > (2) Allow the hash of mutable objects to change, which means you can use
> > mutable objects as keys in dicts but if you change them, you can no
> > longer find them
On Sep 20, 9:50 am, thebjorn <[EMAIL PROTECTED]>
wrote:
it's bad form to reply to myself, I know, but
> def __iter__(self):
> for k in super(mdict,self).__iter__():
> yield eval(k)
should probably be
def __iter__(self):
return (eval(k) for k in super(mdict,se
TheFlyingDutchman asked of someone:
> Would you know what technique the custom web server uses
> to invoke a C++ app
No, I expect he would not know that. I can tell you
that GWS is just for Google, and anyone else is almost
certainly better off with Apache.
> (ditto for Java and Python) CGI is s
Hello,
I am Rafael Marin Perez, and work as a researcher in University of
Murcia (Spain).
We are using the Network Storage Link for USB2.0 (NSLU2) device to
desploy a wireless sensor network (WSN).
And I need to install a bootstrap-loader of MSP430 in my NSLU2 to transfer
the compiled images to
Ben Finney <[EMAIL PROTECTED]> writes:
>> The definition of superclass is not the issue, the issue is
>> "superclass *of which class*"? You expect super(A, self) to iterate
>> only over superclasses of A, even when self is an instance of a
>> subtype of A.
>
> Yes. Those are the specific paramete
On Sep 19, 9:46 pm, Simon Hibbs <[EMAIL PROTECTED]> wrote:
> On 9/18/07, Thomas Harding <[EMAIL PROTECTED]> wrote:
>
> > Hi guys, sorry to post another topic on this, as I am aware that it
> has
> > already been posted a few times, but not with specifically what I
> am looking
> > for. I want a
Jonas Maurus wrote:
> I want to write a Python program that receives messages via SMTP and
> stores them in a dict or an array. For my purposes it would be
> important that all received mail would be kept in RAM and not cached
> out to disk. If a new message comes in that can't fit in the allocate
On 20 Set, 09:01, Rufman <[EMAIL PROTECTED]> wrote:
> Does anyone have a good rtf library for python, have exprience with
> pyRTF or a link to a good tutorial?
>
> thx Stephane
I have just used PyRtf to create a "report" with table and simple
images.
What is your question?
Marco Bonifazi
http://
On 20 Sep, 00:59, TheFlyingDutchman <[EMAIL PROTECTED]> wrote:
>
> Paul it's a pleasure to see that you are not entirely against
> complaints.
Well, it seems to me that I'm usually the one making them. ;-)
> The very fastest Intel processor of the last 1990's that I found came
> out in October 19
On Thu, 20 Sep 2007 14:52:50 +1000, Ben Finney wrote:
> Can you give a code example of how you think mixins should be
> implemented in Python, assuming the absence of multiple inheritance?
I'll take a shot at it... use automatic delegation to the mixin class.
class Parrot(object):
def fl
Shawn Milochik <[EMAIL PROTECTED]> wrote:
> Any improvements anyone?
>>> import gmpy
>>> for x in range(3,1000,2):
... if gmpy.is_prime(x):
... print x,"is prime"
...
3 is prime
5 is prime
7 is prime
[...]
>>> gmpy.is_prime(2**607-1)
1
>>> gmpy.is_prime(2**
Paul Boddie <[EMAIL PROTECTED]> wrote:
> On 19 Sep, 20:36, Paul McGuire <[EMAIL PROTECTED]> wrote:
> The inquirer might also consider crosstool, which is good at building
> cross-compilers for GNU/Linux targeting "Embedded Linux":
>
> http://www.kegel.com/crosstool/
>
> As for building Pytho
Hello Guys,
I've got some code here which I'm using to kill a process if it freezes.
However I have no real way of testing it as I can't force a freeze on my
application. So thought I would run the code past you lot to see if anything
jumps out as not being quite right.
Now, my main applica
Karthik Gurusamy wrote:
> On Sep 19, 7:17 pm, Steven D'Aprano <[EMAIL PROTECTED]
> cybersource.com.au> wrote:
>> On Wed, 19 Sep 2007 20:58:03 +, Karthik Gurusamy wrote:
>>> While it's easy to explain the behavior, I think the decision to dis-
>>> allow mutable items as keys is a bit arbitrary.
On 19 Set, 21:02, Bruno Desthuilliers
<[EMAIL PROTECTED]> wrote:
>
> I don't know what's "onyx-style" xml,
i'm not used to xml, so for me onyx is just a mess...
http://www.onyx.com/Products/xml.asp
> but if it's xml, any xml parser
> will parse it, and any validating parser should be able to val
i'm such a lame... i meant onix... not onyx...
http://xml.coverpages.org/onix.html
the questions remain the same ones...
thanx
On 20 Set, 12:01, [EMAIL PROTECTED] wrote:
> On 19 Set, 21:02, Bruno Desthuilliers
>
> <[EMAIL PROTECTED]> wrote:
>
> > I don't know what's "onyx-style" xml,
>
> i'm n
Hi,
I am getting the following error while installing PyDB2 package on
AIX machine.
So can anybody give me the requirements list and a procedure to install
PyDb2 package on AIX.
[EMAIL PROTECTED]:/home/xn75/PyDB2-1.1.0> python setup.py install
Your DB2 root is:
WARNING: it seems that y
does anyone know some good tutorial for unittest? (with examples how unit work)?
thank you
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] a écrit :
(top-post corrected)
> On 20 Set, 12:01, [EMAIL PROTECTED] wrote:
>> On 19 Set, 21:02, Bruno Desthuilliers
>>
>> <[EMAIL PROTECTED]> wrote:
>>
>>> I don't know what's "onyx-style" xml,
>> i'm not used to xml, so for meonyxis just a
>> mess...http://www.onyx.com/Products
On Sep 19, 10:58 pm, Bryan Olson <[EMAIL PROTECTED]> wrote:
> Bad news: Python 3000 has no immutable type for byte-strings.
> The new bytes type cannot serve for dict keys or set members.
> Many things one would want to hash are unhashable -- for
> example, the results of the hash functions in hash
On Thu, 20 Sep 2007 04:02:03 +, Karthik Gurusamy wrote:
> On Sep 19, 7:17 pm, Steven D'Aprano <[EMAIL PROTECTED]
> cybersource.com.au> wrote:
>> On Wed, 19 Sep 2007 20:58:03 +, Karthik Gurusamy wrote:
>> > While it's easy to explain the behavior, I think the decision to dis-
>> > allow mut
TheFlyingDutchman a écrit :
(snip)
> I am confused about the benefits/disadvantages of the "GIL removal".
> Is it correct that the GIL is preventing CPython from having threads?
>
> Is it correct that the only issue with the GIL is the prevention of
> being able to do multi-threading?
http://doc
Laurent Pointal wrote:
> I use lxml to parse a document, modify some elements in the tree, run
> xinclude on it (thanks to Stefan Behnel for the pointer), and finally use
> the data to feed my sax-aware tool.
>
> To report warnings/errors to the user (not related to XML itself, but to
> things lik
[EMAIL PROTECTED] schrieb:
> i'm such a lame... i meant onix... not onyx...
> http://xml.coverpages.org/onix.html
>
> the questions remain the same ones...
lxml is a validating parser for python.
Diez
--
http://mail.python.org/mailman/listinfo/python-list
I am trying to write a basic anagram system, that takes a text file
line by line and by sorting the string into its alphabetical form
compares it to keys within a dictionary.
If it matches a key I want to add it (in its unordered form) to a list
for that key.
So far this is what I have
import sy
On 20 Set, 12:55, Bruno Desthuilliers wrote:
>
> First question : do you *really* need a validating parser ?
>
that's what they told me ("they" being "da boss")... I mean: i have to
validate and to parse... i guess you can't do it at the same time, can
you?
> Second question : did you try to go
On 20 Set, 14:29, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
>
> lxml is a validating parser for python.
>
> Diez
thank u, i'll take a look
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] schrieb:
> On 20 Set, 12:55, Bruno Desthuilliers [EMAIL PROTECTED]> wrote:
>
>> First question : do you *really* need a validating parser ?
>>
> that's what they told me ("they" being "da boss")... I mean: i have to
> validate and to parse... i guess you can't do it at the same
On Sep 20, 10:08 am, "exhuma.twn" <[EMAIL PROTECTED]> wrote:
> On Sep 19, 9:46 pm, Simon Hibbs <[EMAIL PROTECTED]> wrote:
>
>
>
> > On 9/18/07, Thomas Harding <[EMAIL PROTECTED]> wrote:
>
> > > Hi guys, sorry to post another topic on this, as I am aware that it
> > has
> > > already been posted
On Thu, 2007-09-20 at 16:05 +0530, Shilavantar, Praveen wrote:
> Hi,
>
> I am getting the following error while installing PyDB2 package on
> AIX machine.
> So can anybody give me the requirements list and a procedure to
> install PyDb2 package on AIX.
>
>
> [EMAIL PROTECTED]:/home/xn75/
prajwala wrote:
>I want to convert xml file to a word document using python. Is
> there
> any built in module available?
>or Is there any other way to convert xml file to word document.
Insofar as it is textual, an xml file *is* a Word document.
Just open it up in Word and see. I assume yo
> Steven D'Aprano <[EMAIL PROTECTED]> (SD) wrote:
>SD> In other words, if you have two mutable objects M1 and M2, then you
>SD> expect:
>SD> hash(M1) == hash(M2) if and only if M1 and M2 are equal
>SD> hash(M1) != hash(M2) if M1 and M2 are unequal
Huh? Unequal things may hash to the same va
George Trojan wrote:
> A while ago I found somewhere the following implementation of frange():
.
.
.
> return (limit1 + n*increment for n in range(count))
>
> I am puzzled by the parentheses in the last line. Somehow they make
> frange to be a generator:
> But I always thought that generato
On Thu, 20 Sep 2007 09:08:17 -0400, George Trojan wrote:
> A while ago I found somewhere the following implementation of frange():
>
> def frange(limit1, limit2 = None, increment = 1.):
> """
> Range function that accepts floats (and integers). Usage:
> frange(-2, 2, 0.1)
> fr
I want to convert xml file to a word document using python. Is
there
any built in module available?
or Is there any other way to convert xml file to word document.
Please suggest me. This is very urgent now.
Thanks,
prajwala
--
http://mail.python.org/mailman/listinfo/python-list
A while ago I found somewhere the following implementation of frange():
def frange(limit1, limit2 = None, increment = 1.):
"""
Range function that accepts floats (and integers).
Usage:
frange(-2, 2, 0.1)
frange(10)
frange(10, increment = 0.5)
The returned value i
On 9/19/07, TheFlyingDutchman <[EMAIL PROTECTED]> wrote:
> On Sep 19, 5:08 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote:
> > "Terry Reedy" <[EMAIL PROTECTED]> wrote in message
>
> This is a little confusing because google groups does not show your
> original post (not uncommon for them to lose a pos
Hello,
please, is there something like 'attach' in pdb yet? My application uses
threads
and when it freezes (e.g. due to a deadlock situation), I'd like to get
the traceback
of all threads and inspect at which point did the application get into
problems.
Or could I send a signal to such a pytho
Gigs_ <[EMAIL PROTECTED]> wrote:
> does anyone know some good tutorial for unittest? (with examples
> how unit work)?
There is one in Dive into Python
http://www.diveintopython.org/unit_testing/index.html
Buy the book is my advice!
--
Nick Craig-Wood <[EMAIL PROTECTED]> -- http://www.craig-
On 2007-09-19, Jason Yamada-Hanff <[EMAIL PROTECTED]> wrote:
> Hi all,
> I'm working on a project that would benefit very much from Python
> Freetype2 bindings (the Fonty Python project). I don't want to
> duplicate efforts and wrap the library again if we don't have to.
> Interestingly, it seems
Hello,
please, is there something like 'attach' in pdb yet? My application uses
threads
and when it freezes (e.g. due to a deadlock situation), I'd like to get
the traceback
of all threads and inspect at which point did the application get into
problems.
Or could I send a signal to such a pyth
Robert, thanks for the help!
On Sep 20, 1:22 am, Robert Kern <[EMAIL PROTECTED]> wrote:
>
> Use the "headers" keyword to setup() to list the header files you want
> installed.
I've tried "headers=['header1.h', 'header2.h']" in setup() as well
as in Extension(), and neither seem to get the fil
On 20 sep, 08:31, "Dmitry Teslenko" <[EMAIL PROTECTED]> wrote:
> I'm using os.popen to perform lengthy operation such as building some
> project from source.
> def execute_and_save_output( command, out_file, err_file):
> (i,o,e) = os.popen3( command )
You should consider using the higher
If I wanted to accomplish looking up values from one table based on a
value from another table or file, how would I go about doing this in
Python? Would I build a dictionary or an array?
exp:
Table1:
Site = 103
Lane = 2
Dir = ? # Get this from Table2
Table2:
Site, Lane, Direction,
103, 1, 1
On 2007-09-20, TheFlyingDutchman <[EMAIL PROTECTED]> wrote:
> Is the only point in getting rid of the GIL to allow multi-threaded
> applications?
That's the main point.
> Can't multiple threads also provide a performance boost versus
> multiple processes on a single-core machine?
That depends o
On 2007-09-20, Rufman <[EMAIL PROTECTED]> wrote:
> Does anyone have a good rtf library for python,
pyRTF is the only one I found.
> have exprience with pyRTF
Yes.
> or a link to a good tutorial?
Just the examples that come with pyRTF.
FWIW, I've added support for EMF graphics and enhanced th
On Sep 20, 6:48 am, Gigs_ <[EMAIL PROTECTED]> wrote:
> does anyone know some good tutorial for unittest? (with examples how unit
> work)?
>
> thank you
http://www.onlamp.com/pub/a/python/2005/02/03/tdd_pyunit2.html
--
http://mail.python.org/mailman/listinfo/python-list
Michele Simionato <[EMAIL PROTECTED]> writes:
> I am not against mixins (even if I am certainly very much against the
> *abuse* of mixins, such as in Zope 2). What I would advocate (but I
> realize that it will never happen in Python) is single inheritance +
> mixins a la Ruby.
Ruby might be a ba
Steven D'Aprano <[EMAIL PROTECTED]> writes:
> That's why your "comparatively wimpy site" preferred to throw extra web
> servers at the job of serving webpages rather than investing in smarter,
> harder-working programmers to pull the last skerricks of performance out
> of the hardware you alread
Hi all,
So I'm working on a C++ application that will eventually embed or
extend Python using Boost.Python, but I first need to get Python
compiled correctly for my platform. I've got a Windows Vista 64-bit
machine with a Core 2 processor, and I'm compiling with a VC8.
I downloaded the Python 2.5
[EMAIL PROTECTED] wrote:
> I am trying to write a basic anagram system, that takes a text file
> line by line and by sorting the string into its alphabetical form
> compares it to keys within a dictionary.
>
> If it matches a key I want to add it (in its unordered form) to a list
> for that key.
>
On 20 Sep 2007 07:43:18 -0700, Paul Rubin
<"http://phr.cx"@nospam.invalid> wrote:
> Steven D'Aprano <[EMAIL PROTECTED]> writes:
> > That's why your "comparatively wimpy site" preferred to throw extra web
> > servers at the job of serving webpages rather than investing in smarter,
> > harder-working
"Chris Mellon" <[EMAIL PROTECTED]> writes:
> No. Python has threads, and they're wrappers around true OS level
> system threads. What the GIL does is prevent *Python* code in those
> threads from running concurrently.
Well, C libraries can release the GIL if they are written for thread
safety, but
On 20 Set, 16:40, Grant Edwards <[EMAIL PROTECTED]> wrote:
> On 2007-09-20, Rufman <[EMAIL PROTECTED]> wrote:
>
> > Does anyone have a good rtf library for python,
>
> pyRTF is the only one I found.
>
> > have exprience with pyRTF
>
> Yes.
>
> > or a link to a good tutorial?
>
> Just the examples t
Hello,
is there a way to do something like
for i,j in l1, l2:
print i,j
?
Thanks in advance,
Chris
--
M.Sc. Christoph Scheit
Institute of Fluid Mechanics
FAU Erlangen-Nuremberg
Cauerstrasse 4
D-91058 Erlangen
Phone: +49 9131 85 29508
===
Zip do what you want?
Python 2.5 (r25:51918, Sep 19 2006, 08:49:13)
[GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> l1 = [1,2,3,4,5]
>>> l2 = ['a', 'b', 'c', 'd', 'e']
>>> for i,j in zip(l1, l2):
... print i,j
.
On Sep 19, 1:31 pm, "Shawn Milochik" <[EMAIL PROTECTED]> wrote:
> > If you'd just search the archives, you would have found this:
>
> >http://groups.google.com/group/comp.lang.python/browse_thread/thread/...
>
> Yeah, but that's no fun. ;o)
Yes! Never do what you can fool others into doing for you
Hi,
I am new to python and are tryint to write a simple program delete log
files that are older than 30 days.
So I used os.path.getmtime(filepath) and compare it with a date but it
does not compile.
threshold_time = datetime.date.today() - datetime.timedelta(days=30)
mod_time = os.path.getmtime(f
On Sep 20, 4:31 pm, "Marshall T. Vandegrift" <[EMAIL PROTECTED]>
wrote:
> Michele Simionato <[EMAIL PROTECTED]> writes:
> > I am not against mixins (even if I am certainly very much against the
> > *abuse* of mixins, such as in Zope 2). What I would advocate (but I
> > realize that it will never ha
On Sep 20, 1:59 pm, prajwala <[EMAIL PROTECTED]> wrote:
>I want to convert xml file to a word document using python. Is
> there
> any built in module available?
>or Is there any other way to convert xml file to word document.
> Please suggest me. This is very urgent now.
>
> Thanks,
> pra
On 9/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> On Sep 19, 1:31 pm, "Shawn Milochik" <[EMAIL PROTECTED]> wrote:
> > > If you'd just search the archives, you would have found this:
> >
> > >http://groups.google.com/group/comp.lang.python/browse_thread/thread/...
> >
> > Yeah, but that's n
"Chris Mellon" <[EMAIL PROTECTED]> writes:
> > The compute intensive stuff (image rendering and crunching) has
> > already had most of those skerricks pulled out. It is written in C
> > and assembler
> That means that this part is also unaffected by the GIL.
Right, it was a counterexample against
Christoph Scheit wrote:
> Hello,
>
> is there a way to do something like
> for i,j in l1, l2:
> print i,j
I'm assuming that l1 and l2 are in fact
lists (or at least sequences). If that's
the case:
l1 = [1, 2, 3]
l2 = ['a', 'b', 'c']
for i, j in zip (l1, l2):
print i, j
TJG
--
http:/
[EMAIL PROTECTED] a écrit :
> If I wanted to accomplish looking up values from one table based on a
> value from another table or file, how would I go about doing this in
> Python? Would I build a dictionary or an array?
>
> exp:
>
> Table1:
>
> Site = 103
> Lane = 2
> Dir = ? # Get this from
[EMAIL PROTECTED] wrote:
> Hi,
> I am new to python and are tryint to write a simple program delete log
> files that are older than 30 days.
>
> So I used os.path.getmtime(filepath) and compare it with a date but it
> does not compile.
>
> threshold_time = datetime.date.today() - datetime.timedelta
On Sep 20, 10:34 am, Bruno Desthuilliers wrote:
> [EMAIL PROTECTED] a écrit :
>
>
>
>
>
> > If I wanted to accomplish looking up values from one table based on a
> > value from another table or file, how would I go about doing this in
> > Python? Would I build a dictionary or an array?
>
> > exp:
On Sep 20, 5:31 pm, [EMAIL PROTECTED] wrote:
> Hi,
> I am new to python and are tryint to write a simple program delete log
> files that are older than 30 days.
>
> So I used os.path.getmtime(filepath) and compare it with a date but it
> does not compile.
>
> threshold_time = datetime.date.today()
[EMAIL PROTECTED] wrote:
> Hi,
> I am new to python and are tryint to write a simple program delete log
> files that are older than 30 days.
>
> So I used os.path.getmtime(filepath) and compare it with a date but it
> does not compile.
>
> threshold_time = datetime.date.today() - datetime.timedelta
On 2007-09-20, Marco Bonifazi <[EMAIL PROTECTED]> wrote:
>> FWIW, I've added support for EMF graphics and enhanced the
>> scaling options for graphics:
>>
>> http://groups.google.com/group/comp.lang.python.announce/browse_threa...
> Oh, wonderful! Is licensed with the GPL and LGPL as like the
> p
That's odd; however, it's likely close enough.
Hendrik van Rooyen wrote:
> "W. Watson" <[EMAIL PROTECTED]> wrote:
>
>
>> I'm just trying to get some feel for how canvas works. I'm about to modify a
>> program I use for meteor work. It uses canvas to display images, and I plan
>> to draw on the
Is there an editor that allows one to position to put the cursor and then by
pushing some button goes to the end of the def?
--
Wayne Watson (Nevada City, CA)
Web Page:
--
http://mail.python.org/mailman/listinfo/python-list
Thanks, that works perfectly!
On 9/20/07, Anthony Greene <[EMAIL PROTECTED]> wrote:
>
> [EMAIL PROTECTED] wrote:
> > Hi,
> > I am new to python and are tryint to write a simple program delete log
> > files that are older than 30 days.
> >
> > So I used os.path.getmtime(filepath) and compare it wit
W. Watson a écrit :
> Is there an editor that allows one to position to put the cursor and
> then by pushing some button goes to the end of the def?
Emacs. And you don't even have to "push some button" (just remember the
correct key sequence !-)
--
http://mail.python.org/mailman/listinfo/python
"W. Watson" <[EMAIL PROTECTED]> writes:
> Is there an editor that allows one to position to put the cursor and
> then by pushing some button goes to the end of the def?
C-M-e in emacs/python-mode.
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] a écrit :
> On Sep 20, 10:34 am, Bruno Desthuilliers [EMAIL PROTECTED]> wrote:
>> [EMAIL PROTECTED] a écrit :
(snip)
>>> Normally in Access I would just use a Dlookup and be done with it, or
>>> use a Recordset in VB. Thanks guys.
>> What about using a database ? Like SQLite ?
On 2007-09-20, Grant Edwards <[EMAIL PROTECTED]> wrote:
> I'm really sure how the LGPL applies to Python applications.
That should have read I'm _not_ really sure how the LGPL
applies to Python applications. There are clauses about
providing a way for the user to replace the library and
whatnot.
Steven D'Aprano wrote:
> class super(object)
> | super(type) -> unbound super object
> | super(type, obj) -> bound super object; requires isinstance(obj,
> | type) super(type, type2) -> bound super object; requires
> | issubclass(type2, type) Typical use to call a cooperative
> | superclass m
On 2007-09-20, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
>> In the new model, it should be the value at the time of
>> addition. That is [1,2] (not [1,2,3]). This does mean a copy
>> of key in maintained internally in the dict.
>
> A copy!? That has to be a deep copy. Which would make
>
Thanks, but no thanks. The learning curve is way too steep.
Paul Rudin wrote:
> "W. Watson" <[EMAIL PROTECTED]> writes:
>
>> Is there an editor that allows one to position to put the cursor and
>> then by pushing some button goes to the end of the def?
>
> C-M-e in emacs/python-mode.
--
Steven D'Aprano wrote:
> But of course you can't look up the dict by value, only by
> identity. But that's what you wanted.
Actually, if I understand the OP's examples right, he wants to look
up only by value, not by identity.
--
--OKB (not okblacke)
Brendan Barnwell
"Do not follow whe
On 9/20/07, Dustan <[EMAIL PROTECTED]> wrote:
> On Sep 19, 10:58 pm, Bryan Olson <[EMAIL PROTECTED]> wrote:
> > Bad news: Python 3000 has no immutable type for byte-strings.
> > The new bytes type cannot serve for dict keys or set members.
> > Many things one would want to hash are unhashable -- fo
"W. Watson" <[EMAIL PROTECTED]> writes:
> Thanks, but no thanks. The learning curve is way too steep.
Up to you but, these days emacs comes with all sorts of
pointing-clicky-menu-y type things - you don't really have to learn
anything to get started.
(It even gives useful advice on top-posting i
On 9/20/07, OKB (not okblacke) <[EMAIL PROTECTED]> wrote:
> Steven D'Aprano wrote:
>
> > But of course you can't look up the dict by value, only by
> > identity. But that's what you wanted.
>
> Actually, if I understand the OP's examples right, he wants to look
> up only by value, not by id
Hi,
Does anyone know how to interrupt the lookup of an integer value? I
know I need to subclass int, since builtin types can't be altered
directly...
Below is how far I've come... What I want is to tap into the access of
instance i's value 1...
>>> class Int(int):
def __init__(self, *a,
On Sep 19, 2007, at 11:04 PM, Diez B. Roggisch wrote:
> Ahmad ㋡ Baitalmal schrieb:
>> Hi,
>> I'm having a hard time getting python-mcrypt extension to build.
>> I installed libmcrypt with --prefix=/usr and I checked that the
>> library
>> exists
>>
>> -rwxr-xr-x 1 root wheel352K Sep 19 16
I'm investigating the possibility of internationalizing a Tkinter
application that I develop. Tcl/Tk provides facilities for
internationalizing applications via its msgcat package, documented in
"how-to" fashion below:
http://www.tcl.tk/doc/howto/i18n.html
As far as I can tell, Tkinter does no
"Chris Mellon" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
| On 9/20/07, Dustan <[EMAIL PROTECTED]> wrote:
| > On Sep 19, 10:58 pm, Bryan Olson <[EMAIL PROTECTED]> wrote:
| > > Bad news: Python 3000 has no immutable type for byte-strings.
| > > The new bytes type cannot serve for
Gary Jefferson wrote:
> On Sep 20, 1:22 am, Robert Kern <[EMAIL PROTECTED]> wrote:
>> Use the "headers" keyword to setup() to list the header files you want
>> installed.
>
> I've tried "headers=['header1.h', 'header2.h']" in setup() as well
> as in Extension(), and neither seem to get the file
On Sep 19, 2007, at 11:04 PM, Diez B. Roggisch wrote:
> Ahmad ㋡ Baitalmal schrieb:
>> Hi,
>> I'm having a hard time getting python-mcrypt extension to build.
>> I installed libmcrypt with --prefix=/usr and I checked that the
>> library
>> exists
>>
>> -rwxr-xr-x 1 root wheel352K Sep 19 1
"Paul Rubin" <"http://phr.cx"@NOSPAM.invalid> wrote in message
news:[EMAIL PROTECTED]
| funding into PyPy development, since I think I saw something about the
| EU funding being interrupted.
As far as I know, the project was completed and promised funds paid. But I
don't know of any major foll
"Paul Rubin" <"http://phr.cx"@NOSPAM.invalid> wrote in message
news:[EMAIL PROTECTED]
| It does sound like removing the GIL from CPython would have very high
| costs in more than one area. Is my hope that Python will transition
| from CPython to PyPy overoptimistic?
I presume you mean 'will the
Ben Finney a écrit :
(snip)
> One common response to that is "Processes are expensive on Win32". My
> response to that is that if you're programming on Win32 and expecting
> the application to scale well, you already have problems that must
> first be addressed that are far more fundamental than th
1 - 100 of 192 matches
Mail list logo