Eduardo Biano wrote:
> #---
> # This is the problem code. Ten records
> # is lump into 1 row and written
> # in the output file.
> #
> # My expected output is 10 rows.
> #---
> info = string.join([fn, mi, ln, deg, dat]
Should pr
Don Taylor wrote:
> And if I call my method: A().qualify global_names_bound_to_me() then I
> get an empty list back.
>
> Is what I want to do not possible without referring back to the source?
objects don't have names in Python, and the source is not part of
the running program.
have you read th
Peter Otten wrote:
> def andmap(predicate, items):
> return False not in (predicate(item) for item in items)
>
> def ormap(predicate, items):
> return True in (predicate(items) for item in items)
These are both broken because they imply the test (in e. g. ormap)
if True == predi
Steven D'Aprano wrote:
>
> Doesn't work for me either:
>
> >>> def magic(arg):
> ... import inspect
> ... return inspect.stack()[1][4][0].split("magic")[-1][1:-1]
> ...
> >>> magic(3+4)
> Traceback (most recent call last):
> File "", line 1, in ?
> File "", line 3, in magic
> TypeErro
I am a python newbie and I have a problem with writing
each record read to a file. The expected output is 10
rows of records, but the actual output of the code
below is only one row with a very long record (10
records are lump into one record). Thank you in
advance for your help. Here is the code:
[EMAIL PROTECTED]
> Icon is a language that share some similarities with Python:
> http://www.cs.arizona.edu/icon/
>
> During the execution of a Icon script there are ways to visualize the
> memory:
> http://www.cs.arizona.edu/icon/progvis/memmon/memmon.htm
>
> Related pages:
> http://www.cs.arizon
[EMAIL PROTECTED] wrote:
> Unless someone has any other ideas I'm
> giving up now.
Frederick also suggested http://chardet.feedparser.org/ that is port of
Mozilla's character detection algorithm to pure python. It works pretty
good for web pages, since I haven't seen garbled russian text for year
Diez B. Roggisch wrote:
> 2) your xml is _not_ well-formed, as it doesn't contain a xml-header!
> You need ask these guys to deliver the xml with header. Of course for
> now it is ok to just prepend the text with something like version="1.0" encoding="gbk"?>. But I'd still request them to deliv
Steven Bethard wrote:
> I'm having trouble using elementtree with an XML file that has some
> gbk-encoded text. (I can't read Chinese, so I'm taking their word for
> it that it's gbk-encoded.) I always have trouble with encodings, so I'm
> sure I'm just screwing something simple up. Can anyone
(Whoops, again.)
def __init__(self, config_file):
self.fahdata = fahdata.FAHData()
self.INI = ConfigParser.ConfigParser()
if os.path.exists(config_file):
try:
self.INI.read(config_file)
except ConfigParser.Error, err:
Michael Ekstrand wrote:
> Disclaimer: I am not an expert. Take this with a grain of salt... but
> I'll throw it out for what it's worth.
>
>
> For what it's worth, the Web does not authenticate clients (for the
> most part anyway). The server is authenticated - its certificate is
> checked against
Would something like this be more useful?
def __init__(self, config_file):
self.fahdata = fahdata.FAHData()
self.INI = ConfigParser.ConfigParser()
if os.path.exists(config_file):
try:
self.INI.read(config_file)
except ConfigParser.Err
ProvoWallis wrote:
>
> My document looks like this
>
> A. Title Text
> 1. Title Text
> 1. Title Text
> 1. Title Text
> B. Title Text
> 1. Title Text
> 1. Title Text
>
> but I want to change the numbering of the second level to sequential
> numbers like 1, 2, 3, etc. so my output would look like
I have found the Python sidebar VERY helpful:
http://projects.edgewall.com/python-sidebar/
--
http://mail.python.org/mailman/listinfo/python-list
Paul, thanks for the enlightening intro to pyparsing!
We don't really know what the application is (I suspect it's homework),
but whether it's homework or a real-world one-off this all seems like
overkill to me. There's a time for elegance and a time for quick and
dirty. Assuming line oriented inp
Don Taylor wrote:
> Is there a way to discover the original string form of the instance that
> is represented by self in a method?
>
> For example, if I have:
>
> fred = C()
> fred.meth(27)
>
> then I would like meth to be able to print something like:
>
> about to call meth(fred,
I did not check prices earlier. There are many other clones. How about
Hyperstudio? $70 for student edition?
--
http://mail.python.org/mailman/listinfo/python-list
"Don Taylor" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Is there a way to discover the original string form of the instance that
> is represented by self in a method?
> For example, if I have:
> fred = C()
> fred.meth(27)
> then I would like meth to be able to print something l
mwt wrote:
> Hi -
> I'm having a little trouble using exceptions properly. I currently have
> an initialization function on a little app that looks like this:
>
> def __init__(self, config_file):
> self.fahdata = fahdata.FAHData()
> self.INI = ConfigParser.ConfigParser()
>
"ProvoWallis" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> I've always struggled with classes and this one is no exception.
>
> I'm working in an SGML file and I want to renumber a couple of elements
> in the hierarchy based on the previous level.
>
> E.g.,
>
> My document
Michael Spencer wrote:
>
>
> In general, this requires exhaustive search of name bindings e.g.,:
>
> >>> def get_names_of(obj, ns):
> ... return [name for name, value in ns.iteritems() if value is obj]
> ...
> >>> class A(object):
> ... def global_names_bound_to_me(self):
> ...
http://it.slashdot.org/article.pl?sid=05/08/01/0150222
Customer: Well, then, have you got any Venezuelan Beaver Cheese?
Owner: Sir, this is a self-respecting establishment. I shall thank you
not to imply we should traffic in VB, much less, even mention the foul
product.
Props,
Chris
--
http://ma
Don Taylor wrote:
> Is there a way to discover the original string form of the instance that
> is represented by self in a method?
>
> For example, if I have:
>
> fred = C()
> fred.meth(27)
>
> then I would like meth to be able to print something like:
>
> about to call meth(
Is there a way to discover the original string form of the instance that
is represented by self in a method?
For example, if I have:
fred = C()
fred.meth(27)
then I would like meth to be able to print something like:
about to call meth(fred, 27) or
about to call
On Mar 14, 2006, at 12:45 PM, Ziga Seilnacht wrote:
> Try not using bare exec statements, since they pollute the local
> scope.
> In your example you could use:
>
> compCode = compile(code, "", "exec")
> d = {}
> exec compCode in d
> func = d[nm]
OK, noted and changed in my source.
>>
[EMAIL PROTECTED] wrote:
[Quoting Aaron Watters - *the* Aaron Watters?!]
> > And the patch procedure you described requires
> > a higher degree of motivation (and free time) than
> > most potential contributors might have on offer, imo.
The patch procedure described seemed to involve mailing pyt
kpp9c wrote:
>>Yes, a system which does this has to build a Markov
>>chain from a data set and then traverse it.
>
>>>Any program that actually uses Markov chains to generate
>>>new text based on existing input as you've described
>
> Hi. That isn't really what i have described. If i did i could
Whoops. Those page numbers are from "Cookbook."
As well as the Except section in "Nutshell."
Still stewing away here. ;)
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I've always struggled with classes and this one is no exception.
I'm working in an SGML file and I want to renumber a couple of elements
in the hierarchy based on the previous level.
E.g.,
My document looks like this
A. Title Text
1. Title Text
1. Title Text
1. Title Text
B. Title Text
1.
>Yes, a system which does this has to build a Markov
>chain from a data set and then traverse it.
>>Any program that actually uses Markov chains to generate
>> new text based on existing input as you've described
Hi. That isn't really what i have described. If i did i could use
exsisting algorith
Diez B. Roggisch wrote:
>> Here's what I get with the prepending hack:
>>
>> >>> et.fromstring('\n' +
>> open(filename).read())
>> Traceback (most recent call last):
>> File "", line 1, in ?
>> File "C:\Program
>> Files\Python\lib\site-packages\elementtree\ElementTree.py", line 960,
>> in X
> Yes, a system which does this has to build a Markov chain from a data
> set and then traverse it.
>Any program that actually uses Markov chains to generate new text based
>on existing input as you've described will necessarily create a Markov
>chain.
I think you misunderstood. If you see my ori
Em Ter, 2006-03-14 às 09:44 -0800, [EMAIL PROTECTED] escreveu:
> >Is there any editor or IDE in Python (either Windows or Linux) which
> >has very good debugging facilites like MS VisualStudio has or something
> >like that.
>
> I've been using Eclipse with PyDev and am very happy with it.
I secon
[EMAIL PROTECTED] wrote:
> The following works perfectly:
> import operator
> def andmap(b,L):
> return reduce(operator.and_, [b(x) for x in L])
> def ormap(b,L):
> return reduce(operator.or_, [b(x) for x in L])
Note your [b(x) for x in L] evaluates b(x) for all elements of L
before you b
[EMAIL PROTECTED] wrote:
> Is there any editor or IDE in Python (either Windows or Linux) which
> has very good debugging facilites like MS VisualStudio has or something
> like that.
>
> I like SPE but couldn't easily use winPDP. I need tips to debug my code
> easily.
>
> Every help is greatly ap
Can some kind person please further my education on Threads?
When I create a thread called "t" and I do a "t.start()" am I
guaranteed that "t.isAlive()" will return True as long as the thread
hasn't already completed? Put another way, does "t.start()" ever return
before t.__started is set to True?
> Here's what I get with the prepending hack:
>
> >>> et.fromstring('\n' +
> open(filename).read())
> Traceback (most recent call last):
> File "", line 1, in ?
> File "C:\Program
> Files\Python\lib\site-packages\elementtree\ElementTree.py", line 960, in
> XML
> parser.feed(text)
> F
Fredrik Lundh wrote:
>A.M. Kuchling wrote:
>
>
>
>>I've changed the PSF link, but am not sure what to do about the
>>python-dev link. As others have noted, "Developers" is ambiguous
>>about whether it's for people who develop in Python or who develop
>>Python itself."Core Development"? (Us
Fredrik Lundh wrote:
>A.M. Kuchling wrote:
>
>
>
>>I've changed the PSF link, but am not sure what to do about the
>>python-dev link. As others have noted, "Developers" is ambiguous
>>about whether it's for people who develop in Python or who develop
>>Python itself."Core Development"? (Us
On Tue, 14 Mar 2006 13:33:01 -0800, alainpoint wrote:
>
> Kay Schluehr wrote:
>> [EMAIL PROTECTED] wrote:
>> > jalanb wrote:
>> > > You might like the version here:
>> > > http://www.jorendorff.com/toys/out.html
>> > >
>> > > Especially the "need to know" presentation, which is cute
>> > >
>> > >
Diez B. Roggisch wrote:
> Steven Bethard schrieb:
>> I'm having trouble using elementtree with an XML file that has some
>> gbk-encoded text. (I can't read Chinese, so I'm taking their word for
>> it that it's gbk-encoded.) I always have trouble with encodings, so
>> I'm sure I'm just screwing
Steven Bethard schrieb:
> I'm having trouble using elementtree with an XML file that has some
> gbk-encoded text. (I can't read Chinese, so I'm taking their word for
> it that it's gbk-encoded.) I always have trouble with encodings, so I'm
> sure I'm just screwing something simple up. Can any
> And the patch procedure you described requires
> a higher degree of motivation (and free time) than
> most potential contributors might have on offer, imo.
Another option is to simply email the author/maintainer
for a given module your modifications to their module.
cd ~/dev/python/modified_mod
Steven, Bruno, Terry & Duncon, thank you for your insights, it really
helped me a great deal.
--
mph
--
http://mail.python.org/mailman/listinfo/python-list
Ross Ridge wrote:
> [EMAIL PROTECTED] wrote:
>
>>try:
>>(uni, dummy) = utf8dec(s)
>>except:
>>(uni, dummy) = iso88591dec(s, 'ignore')
>
>
> Is there really any point in even trying to decode with UTF-8? You
> might as well just assume ISO 8859-1.
The point is that you c
Kay Schluehr wrote:
> [EMAIL PROTECTED] wrote:
> > jalanb wrote:
> > > You might like the version here:
> > > http://www.jorendorff.com/toys/out.html
> > >
> > > Especially the "need to know" presentation, which is cute
> > >
> > > --
> > > Alan
> > > http://aivipi.blogspot.com
> >
> > Thank you f
I'm having trouble using elementtree with an XML file that has some
gbk-encoded text. (I can't read Chinese, so I'm taking their word for
it that it's gbk-encoded.) I always have trouble with encodings, so I'm
sure I'm just screwing something simple up. Can anyone help me?
Here's the interac
hmmm. Interesting about the wiki.
It's unusable in my version of IE. Javascript error
on almost every keystroke :(!
http://wiki.python.org/moin/
It works in Firefox, which I have, of course, but
still...
And the patch procedure you described requires
a higher degree of motivation (and free tim
A.M. Kuchling wrote:
> I've changed the PSF link, but am not sure what to do about the
> python-dev link. As others have noted, "Developers" is ambiguous
> about whether it's for people who develop in Python or who develop
> Python itself."Core Development"? (Used on both perl.org and tcl.tk
[EMAIL PROTECTED] wrote:
> I have used Perl for a long time, but I am something of an experimental
> person and mean to try something new. Most of my 'work' with Vector
> Linux entails the use of Perl (a bit of a misnomer as it is not now a
> paid position -- I am not yet even out of K-12), and the
Sullivan WxPyQtKinter schrieb:
> IDLE is no longer satisfactory for me. Other IDEs make me very
> confused. Really do not know which one to use.
>
> I use WinXP sp2 for current development.
>
> So far as I know, Eclipse + PyDev + PyDev Extension is perfect for
> source code editing. Since I am re
A.M. Kuchling wrote:
> On Sun, 12 Mar 2006 10:25:19 +0100,
> Fredrik Lundh <[EMAIL PROTECTED]> wrote:
>> and while you're at it, change "python-dev" to "developers" and
>> "psf" to "foundation" (or use a title on that link).
>
> I've changed the PSF link, but am not sure what to do about th
My code has got big and it is an iterative program. I use print
statements but I thought I could get something handy it would be useful
to me.
thanks
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> Is there any editor or IDE in Python (either Windows or Linux) which
> has very good debugging facilites like MS VisualStudio has or something
> like that.
>
> I like SPE but couldn't easily use winPDP. I need tips to debug my code
> easily.
pythonic "debugging" in thre
Well, we've already got a wiki, of course: http://wiki.python.org/moin/
Regarding the docs for the module you're asking about, the way it's
supposed to work is (I think), you're supposed to checkout the Python
source, add your docs to the docstrings of that module, then either
commit your changes
"Joel Hedlund" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>> footnote: if you have a recent Python 2.5 build,
>
> Who would have that? Is it a good idea to use a pre-alpha python version?
The pre-public release version compiles as 'alpha0'. I have the impression
the current al
On 2006-03-14, Kevin <[EMAIL PROTECTED]> wrote:
> i have a python file called pyq which outputs stock quotes, currently i
> also have a html file that takes stock ticker inputs, i would like to
> bridge the two by building another program that takes the html inputs
> and uses them to call the py
I agree that more progress is needed on the Python documentation
front. For example if you look at the "codecs" module documentation
there is no hint of what a codec is anywhere that I can see. Also
the distinction between an "encoder" and a "decoder" is not explained.
Even though I've used it man
Well, Nicholas Chase just posted an OpenLaszlo tutorial/app that shows
how OpenLaszlo handles sounds. Try
http://www-128.ibm.com/developerworks/edu/os-dw-os-php-openlaszlo1-i.html
You have to register, but it's free, and they don't bug you. It's PHP
driven, but that part's easily ported to Python.
Hi -
I'm having a little trouble using exceptions properly. I currently have
an initialization function on a little app that looks like this:
def __init__(self, config_file):
self.fahdata = fahdata.FAHData()
self.INI = ConfigParser.ConfigParser()
if os.path.exists(config_fi
On 14 Mar 2006 09:25:07 -0800
[EMAIL PROTECTED] wrote:
> Do you prefer epytext or reST?
I personally prefer epytext primarily because it has support
for greek letters and math symbols. That could be very
useful in documenting certain kinds of software. OTOH, I
haven't had much occasion to use that
http://www.osl.iu.edu/~dgregor/bgl-python/
http://sourceforge.net/projects/pygraphlib/
http://sourceforge.net/projects/pynetwork/
https://networkx.lanl.gov/
http://starship.python.net/crew/aaron_watters/kjbuckets/
http://www.python.org/doc/essays/graphs.html
http://yapgvb.sourceforge.net/
http://dk
See this:
https://networkx.lanl.gov/
--
http://mail.python.org/mailman/listinfo/python-list
Oh, that should have been whole number; not while.
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> Is there any editor or IDE in Python (either Windows or Linux) which
> has very good debugging facilites like MS VisualStudio has or something
> like that.
>
> I like SPE but couldn't easily use winPDP. I need tips to debug my code
> easily.
>
> Every help is greatly ap
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> IMO, Perl has docs nailed. I learned Perl before coming
> to Python, and I can tell you that their docs kick butt.
> I believe the reason why is (besides Larry's excellent
> and entertaining writing) because of perldoc. Here's how
> it works: they
Ok. I'm going to try and make something happen. Give me a day or so.
:)
---John
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> jalanb wrote:
> > You might like the version here:
> > http://www.jorendorff.com/toys/out.html
> >
> > Especially the "need to know" presentation, which is cute
> >
> > --
> > Alan
> > http://aivipi.blogspot.com
>
> Thank you for the tip.
> Meanwhile, I found a shorter s
Diez B. Roggisch wrote:
>>Thanks Diez! Epydoc looks great.
>>
>>Can we use epytext to generate output suitable for a manpage?
>
>
> Don't know, never tried that.
>
The answer appear to be No, but there is a man.py file which indicates
that some work was done on it.
Below is the epydoc command
Ed Leafe wrote:
> Hi,
>
> Thanks to the help of many on this list, I've been able to take code
> that is created by the user in my app and add it to an object as an
> instance method. The technique used is roughly:
Just some notes about your code:
> nm = "myMethod"
> code = """def myMethod(
>Is there any editor or IDE in Python (either Windows or Linux) which
>has very good debugging facilites like MS VisualStudio has or something
>like that.
I've been using Eclipse with PyDev and am very happy with it.
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED]:
>Is there any editor or IDE in Python (either Windows or Linux) which
>has very good debugging facilites like MS VisualStudio has or something
>like that.
Here's a recent thread about IDEs:
http://groups.google.nl/group/comp.lang.python/browse_frm/thread/fd9604e225252ad4
--
Re
[EMAIL PROTECTED] wrote:
> try:
> (uni, dummy) = utf8dec(s)
> except:
> (uni, dummy) = iso88591dec(s, 'ignore')
Is there really any point in even trying to decode with UTF-8? You
might as well just assume ISO 8859-1.
Ross Ridge
--
http://mail.pyth
[EMAIL PROTECTED] wrote:
> Is there any editor or IDE in Python (either Windows or Linux) which
> has very good debugging facilites like MS VisualStudio has or something
> like that.
>
> I like SPE but couldn't easily use winPDP. I need tips to debug my code
> easily.
>
> Every help is greatly app
> So far epytext suited my needs.
I like it too.
Ok, now I'm starting to get excited. :)
--
http://mail.python.org/mailman/listinfo/python-list
Is there any editor or IDE in Python (either Windows or Linux) which
has very good debugging facilites like MS VisualStudio has or something
like that.
I like SPE but couldn't easily use winPDP. I need tips to debug my code
easily.
Every help is greatly appreciated.
Thanks
--
http://mail.pytho
> Thanks Diez! Epydoc looks great.
>
> Can we use epytext to generate output suitable for a manpage?
Don't know, never tried that.
> Do you prefer epytext or reST?
So far epytext suited my needs.
Diez
--
http://mail.python.org/mailman/listinfo/python-list
Thanks Diez! Epydoc looks great.
Can we use epytext to generate output suitable for a manpage?
Do you prefer epytext or reST?
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I try to create a COM object with win32com to track events in Visual
SourceSafe.
I tried to modify ExcelAddin.py demo but with no luck.
I've now a Delphi DLL that make that job so I know it's possible.
If someone have an exemple, please help me.
Best regards.
Kadeko
--
http://mail.python.or
> Please note, I certainly don't want to step on the doc-sig folks'
> toes here -- but rather to generate more interest in what they're
> doing, and to help make Python be even better in an area that I
> see it struggling.
>
> What do you folks think?
>
> Yes, I'm trying to make time to look at t
Skipper wrote:
> Well, thank you so much for taking the time to reply. I guess that
> about wraps up all my questions.
>
>
> You fucking putz
>
I'd appreciate it if you;d keep that sort of response to yourself. While
I don't mind you *thinking* it, it isn't the kind of behaviour we want
to e
Just tried Ruby over the past two days. I won't bore you
with the reasons I didn't like it, however one thing really
struck me about it that I think we (the Python community)
can learn from.
Ruby has ... an issue with docs. That is to say, there are
almost none. Well, actually, there are some. For
Kevin:
>#!/usr/bin/python
>
>import os
>import urllib
>os.system("python pyq.py ibm > text1.txt")
Check the return value of os.system.
>note: currently the text1.txt outputted is just blank, however if i run
>the command normally as 'python pyq.py ibm' in the command line, it
>works correctly a
Google for "boost graph python"
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
Are there any tree or graph modules available for python?
Cheers,
--
Ant...
--
http://mail.python.org/mailman/listinfo/python-list
Travis Oliphant wrote:
> This post is to announce the release of NumPy 0.9.6 which fixes some
> important bugs and has several speed improvments.
>
> NumPy is a multi-dimensional array-package for Python that allows
> rapid high-level array computing with Python. It is successor to both
> Nume
i have a python file called pyq which outputs stock quotes, currently i
also have a html file that takes stock ticker inputs, i would like to
bridge the two by building another program that takes the html inputs
and uses them to call the pyq stock ticker program and then output them
into a text
On 3/14/06, A.M. Kuchling <[EMAIL PROTECTED]> wrote:
> On Sun, 12 Mar 2006 10:25:19 +0100,
> Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> > and while you're at it, change "python-dev" to "developers" and
> > "psf" to "foundation" (or use a title on that link).
>
> I've changed the PSF link, b
On Mon, 13 Mar 2006 02:19:39 GMT
Skipper <[EMAIL PROTECTED]> wrote:
> Basically the program will blank the screen and call up
> (for example) 6 pictures. A flashing border with travel
> from picture to picture. When the computer senses a mouse
> click it will clear the screen and present a second
Hi,
I have a wxFrame with some TextCtrl,
if I minimize the Frame when normalize it
lost the Focus and I must click to give the focus to textCtrl again
How can resolve?
Thank's,
Luca
--
http://mail.python.org/mailman/listinfo/python-list
Regarding cleaning of mixed string encodings in
the discography search engine
http://www.xfeedme.com/discs/discography.html
Following 's suggestion I came up with this:
utf8enc = codecs.getencoder("utf8")
utf8dec = codecs.getdecoder("utf8")
iso88591dec = codecs.getdecoder("iso-8859-1")
def chec
> On the Python side I decided to use cPickle. On the C side I would
> write a library that can read the cPickle and generate the correct
> C structure (the data is, more or less, self-describing) and visa
> versa.
>
> I was wondering if anyone has done something like this before
> and if so can t
On Sun, 12 Mar 2006 10:25:19 +0100,
Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> and while you're at it, change "python-dev" to "developers" and
> "psf" to "foundation" (or use a title on that link).
I've changed the PSF link, but am not sure what to do about the
python-dev link. As others
I have a problem that I am trying to solve. I have two different
systems - one written in C and another in Python. I would like the
two to exchange some information.
On the Python side I decided to use cPickle. On the C side I would
write a library that can read the cPickle and generate the corre
Serge Orlov wrote:
>> # So the question becomes: how can I make this work
>> # in a graceful manner?
> change the return statement with this code:
>
> return (substitution.encode(error.encoding,"practical").decode(
>error.encoding), error.start+1)
Thanks, that was a quite neat re
On 14 Mar 2006 06:10:19 -0800, Paul Boddie <[EMAIL PROTECTED]> wrote:
> Alan Franzoni wrote:
> >
> > Just one thing I don't understand: if you're developing all your software
> > inside your company, how would they know if you already coded it or you
> > still have to?
>
> I have no idea. But as I
Ed Leafe wrote:
> Hi,
>
> Thanks to the help of many on this list, I've been able to take code
> that is created by the user in my app and add it to an object as an
> instance method. The technique used is roughly:
>
> nm = "myMethod"
> code = """def myMethod(self):
> print "Line 1"
Alan Franzoni wrote:
>
> Just one thing I don't understand: if you're developing all your software
> inside your company, how would they know if you already coded it or you
> still have to?
I have no idea. But as I said elsewhere, I'm not in any sense a party
to the process that would attempt to d
Scott David Daniels wrote:
> [EMAIL PROTECTED] wrote:
>
>> ... Is the Python debugger fairly stable?
>
> Yes, but it is not massively featured. The "Pythonic" way is to
> rarely use a debugger (test first and straightforward code should
> lead to "shallow" bugs). Often for most of us judiciousl
The following works perfectly:
import operator
def andmap(b,L):
return reduce(operator.and_, [b(x) for x in L])
def ormap(b,L):
return reduce(operator.or_, [b(x) for x in L])
Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 151 matches
Mail list logo