Re: problem writing to a file each record read

2006-03-14 Thread Peter Otten
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

Re: Printable string for 'self'

2006-03-14 Thread Fredrik Lundh
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

Re: andmap and ormap

2006-03-14 Thread Peter Otten
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

Re: Is this possible in Python?

2006-03-14 Thread alainpoint
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

problem writing to a file each record read

2006-03-14 Thread Eduardo Biano
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:

Re: Memory visualization

2006-03-14 Thread Tim Peters
[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

Re: recycling internationalized garbage

2006-03-14 Thread Serge Orlov
[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

Re: elementtree and gbk encoding

2006-03-14 Thread Fredrik Lundh
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

Re: elementtree and gbk encoding

2006-03-14 Thread Fredrik Lundh
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

Re: Little Help with Exceptions and ConfigParser

2006-03-14 Thread mwt
(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:

Re: SSL/TLS - am I doing it right?

2006-03-14 Thread Frank Millman
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

Re: Little Help with Exceptions and ConfigParser

2006-03-14 Thread mwt
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

Re: Newbie Class/Counter question

2006-03-14 Thread Michael Spencer
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

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-14 Thread Steve
I have found the Python sidebar VERY helpful: http://projects.edgewall.com/python-sidebar/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie Class/Counter question

2006-03-14 Thread Michael Tobis
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

Re: Printable string for 'self'

2006-03-14 Thread Ben Cartwright
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,

Re: Please, I Have A Question before I get started

2006-03-14 Thread Ravi Teja
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

Re: Printable string for 'self'

2006-03-14 Thread Terry Reedy
"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

Re: Little Help with Exceptions and ConfigParser

2006-03-14 Thread Kent Johnson
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() >

Re: Newbie Class/Counter question

2006-03-14 Thread Paul McGuire
"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

Re: Printable string for 'self'

2006-03-14 Thread Don Taylor
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): > ...

Re: Cheese Shop: some history for the new-comers--Gratuitous self-quote

2006-03-14 Thread Chris Smith
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

Re: Printable string for 'self'

2006-03-14 Thread Michael Spencer
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(

Printable string for 'self'

2006-03-14 Thread Don Taylor
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

Re: Trace dynamically compiled code?

2006-03-14 Thread Ed Leafe
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. >>

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-14 Thread Paul Boddie
[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

Re: markov query

2006-03-14 Thread Robert Kern
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

Re: Little Help with Exceptions and ConfigParser

2006-03-14 Thread mwt
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

Newbie Class/Counter question

2006-03-14 Thread ProvoWallis
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.

Re: markov query

2006-03-14 Thread kpp9c
>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

Re: elementtree and gbk encoding

2006-03-14 Thread Steven Bethard
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

Re: markov query

2006-03-14 Thread kpp9c
> 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

Re: Python Debugger / IDE ??

2006-03-14 Thread Felipe Almeida Lessa
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

Re: andmap and ormap

2006-03-14 Thread Scott David Daniels
[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

Re: Python Debugger / IDE ??

2006-03-14 Thread Larry Bates
[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

Threads: does Thread.start() atomically set Thread.__started ?

2006-03-14 Thread Enigma Curry
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?

Re: elementtree and gbk encoding

2006-03-14 Thread Diez B. Roggisch
> 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

Re: Cheese Shop: some history for the new-comers

2006-03-14 Thread Tim Parkin
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

Re: Cheese Shop: some history for the new-comers

2006-03-14 Thread Tim Parkin
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

Re: Is this possible in Python? SOLUTION FOUND

2006-03-14 Thread Steven D'Aprano
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 >> > > >> > >

Re: elementtree and gbk encoding

2006-03-14 Thread Steven Bethard
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

Re: elementtree and gbk encoding

2006-03-14 Thread Diez B. Roggisch
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

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-14 Thread john_sips_tea
> 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

Re: PEP 8 example of 'Function and method arguments'

2006-03-14 Thread Martin P. Hellwig
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

Re: recycling internationalized garbage

2006-03-14 Thread Martin v. Löwis
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

Re: Is this possible in Python? SOLUTION FOUND

2006-03-14 Thread alainpoint
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

elementtree and gbk encoding

2006-03-14 Thread Steven Bethard
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

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-14 Thread aaronwmail-usenet
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

Re: Cheese Shop: some history for the new-comers

2006-03-14 Thread Fredrik Lundh
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

Re: Very, Very Green Python User

2006-03-14 Thread bruno at modulix
[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

Re: Python IDE: great headache....

2006-03-14 Thread Michael Amrhein
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

Re: Cheese Shop: some history for the new-comers

2006-03-14 Thread Steven Bethard
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

Re: Python Debugger / IDE ??

2006-03-14 Thread krypto . wizard
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

Re: Python Debugger / IDE ??

2006-03-14 Thread bruno at modulix
[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

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-14 Thread john_sips_tea
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

Re: andmap and ormap

2006-03-14 Thread Terry Reedy
"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

Re: calling another python file within python

2006-03-14 Thread Ben C
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

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-14 Thread aaronwmail-usenet
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

Re: Please, I Have A Question before I get started

2006-03-14 Thread paron
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.

Little Help with Exceptions and ConfigParser

2006-03-14 Thread mwt
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

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-14 Thread Terry Hancock
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

Re: Tree and Graph structures in Python.

2006-03-14 Thread bearophileHUGS
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

Re: Tree and Graph structures in Python.

2006-03-14 Thread Istvan Albert
See this: https://networkx.lanl.gov/ -- http://mail.python.org/mailman/listinfo/python-list

Re: convert hex to decimal

2006-03-14 Thread challman
Oh, that should have been whole number; not while. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Debugger / IDE ??

2006-03-14 Thread Scott David Daniels
[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

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-14 Thread Nick Craig-Wood
[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

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-14 Thread john_sips_tea
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

Re: Is this possible in Python? SOLUTION FOUND

2006-03-14 Thread Kay Schluehr
[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

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-14 Thread Colin J. Williams
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

Re: Trace dynamically compiled code?

2006-03-14 Thread Ziga Seilnacht
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(

Re: Python Debugger / IDE ??

2006-03-14 Thread [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. I've been using Eclipse with PyDev and am very happy with it. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Debugger / IDE ??

2006-03-14 Thread Rene Pijlman
[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

Re: recycling internationalized garbage

2006-03-14 Thread Ross Ridge
[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

Re: Python Debugger / IDE ??

2006-03-14 Thread olsongt
[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

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-14 Thread john_sips_tea
> 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

Python Debugger / IDE ??

2006-03-14 Thread krypto . wizard
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

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-14 Thread Diez B. Roggisch
> 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

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-14 Thread john_sips_tea
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

How to create a Visual SourceSafe plugin in Python

2006-03-14 Thread looping
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

Re: Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-14 Thread Diez B. Roggisch
> 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

Re: Please, I Have A Question before I get started

2006-03-14 Thread Steve Holden
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

Tried Ruby (or, "what Python *really* needs" or "perldoc!")

2006-03-14 Thread john_sips_tea
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

Re: calling another python file within python

2006-03-14 Thread Rene Pijlman
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

Re: Tree and Graph structures in Python.

2006-03-14 Thread Lonnie Princehouse
Google for "boost graph python" -- http://mail.python.org/mailman/listinfo/python-list

Tree and Graph structures in Python.

2006-03-14 Thread Ant
Hi all, Are there any tree or graph modules available for python? Cheers, -- Ant... -- http://mail.python.org/mailman/listinfo/python-list

Re: [Numpy-discussion] [ANN] NumPy 0.9.6 released

2006-03-14 Thread Colin J. Williams
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

calling another python file within python

2006-03-14 Thread Kevin
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

Re: Cheese Shop: some history for the new-comers

2006-03-14 Thread Robert Boyd
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

Re: Please, I Have A Question before I get started

2006-03-14 Thread Terry Hancock
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

EVT_ICONIZE lost focus

2006-03-14 Thread lux
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

Re: recycling internationalized garbage

2006-03-14 Thread aaronwmail-usenet
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

Re: Writing 'C' structures out in cPickle format?

2006-03-14 Thread Diez B. Roggisch
> 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

Re: Cheese Shop: some history for the new-comers

2006-03-14 Thread A.M. Kuchling
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

Writing 'C' structures out in cPickle format?

2006-03-14 Thread Chance Ginger
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

Re: Customizing character set conversions with an error handler

2006-03-14 Thread Jukka Aho
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

Re: Which GUI toolkit is THE best?

2006-03-14 Thread Chris Mellon
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

Re: Trace dynamically compiled code?

2006-03-14 Thread Thomas Heller
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"

Re: Which GUI toolkit is THE best?

2006-03-14 Thread Paul Boddie
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

Re: Very, Very Green Python User

2006-03-14 Thread bruno at modulix
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

Re: andmap and ormap

2006-03-14 Thread wkehowski
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   2   >