ANN: Peggy 0.02

2009-03-29 Thread Florian Diesch
I'm pleased to announce Peggy 0.02 Get it at http://www.florian-diesch.de/software/peggy/ What is Peggy? === Peggy helps you to create GTK applications that run out-of-the-egg. It offers functions to load ressources (like .glade files, images, locales) from a (zipped or

Re: c.l.py dead, news at 11 (was Re: Mangle function name with decorator?)

2009-03-29 Thread Aaron Brady
On Mar 29, 12:23 am, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Fri, 27 Mar 2009 19:57:41 -0700, Aaron Brady wrote: I see how c-l-py doesn't represent the full interests of Python, Python is a *programming language*. It doesn't have interests. It just sits there, a bunch

Re: garbage collection / reference cycles (cont.)

2009-03-29 Thread Aaron Brady
On Mar 25, 12:11 am, Aaron Brady castiro...@gmail.com wrote: Hello, I am posting the code I mentioned on Saturday that collects garbage and cyclic garbage in a flattened two-step process.  The code takes 122 lines incl. comments, with 100 in tests.  It should be in a reply to this. My aim

Re: garbage collection / reference cycles (cont.)

2009-03-29 Thread Aaron Brady
On Mar 25, 12:12 am, Aaron Brady castiro...@gmail.com wrote: On Mar 25, 12:11 am, Aaron Brady castiro...@gmail.com wrote: Hello, I am posting the code I mentioned on Saturday that collects garbage and cyclic garbage in a flattened two-step process.  The code takes 122 lines incl.

Re: numpy array sorting weirdness

2009-03-29 Thread Robert Kern
On 2009-03-28 22:35, Daniel Fetchinson wrote: Is there any reason the 'axis' keyword argument doesn't default to the value that corresponds to python list behaviour? That would make lot of sense I think. Or retaining compatibility with python lists is not really a goal of numpy.array? Not at

Re: complaints about no replies last week

2009-03-29 Thread Aaron Brady
On Mar 28, 7:31 pm, ajaksu aja...@gmail.com wrote: Hi! Aaron Brady wrote: A week ago, I posted a question and an idea about Python's garbage collector.  I got a few replies. Some very nice, too :) Yes.  Some days later, I posted a mock-up implementation of it, and got *NO* replies.  

Re: PyFits for Windows?

2009-03-29 Thread Scott David Daniels
John Yeung wrote: On Mar 28, 4:03 pm, Michiel Overtoom mot...@xs4all.nl wrote: W. eWatson wrote: It looks like PyFits downloads are for Linux. Isn't there anything available for Win (xp)? To install it, unpack the tar file and type: python setup.py install It looks like PyFits is

Re: dict view to list

2009-03-29 Thread Aaron Brady
On Mar 27, 7:26 pm, Terry Reedy tjre...@udel.edu wrote: Luis Gonzalez wrote: Yes, I know the python approach is to use built-ins. But wouldn't it be cool if we could do mydict.values().tolist() instead? Should we also give every collection a .toset(), .tofrozenset(), .totuple(), and

how to use heapq module as a max-heap?

2009-03-29 Thread Apollo
as we all known, in the standard module 'heapq', we can easily get the smallest item from the heap. i.e. it's an implementation of min-heap. my question is how to use 'heapq' to extract the biggest item from the heap? is it possible? thanks in advance.:)--

Re: tkinter questions: behavior of StringVar, etc

2009-03-29 Thread Scott David Daniels
Alan G Isaac wrote: On Mar 28, 2:15 pm, Alan G Isaac alan.is...@gmail.com wrote: I'm a complete newbie to GUI. I have a couple questions about tkinter. 1. Where is the list of changes in Python 3's tkinter? 2. What exactly is the role of the root object, traditionally created as

Re: how to use heapq module as a max-heap?

2009-03-29 Thread Kevin Lee
I suppose you could wrap your value type in a class and reimplement the builtin __cmp__ method to make it behave reversely or if it's a builtin numeric value type you could even push the negative into the heap in the first place? 2009/3/29 Apollo tju...@qq.com as we all known, in the standard

Re: how to use heapq module as a max-heap?

2009-03-29 Thread apollo
if the 'heapq' module supports user-defined comparasion, this problem will be much easier. Apollo tju...@qq.com ??:mailman.2867.1238312539.11746.python-l...@python.org... as we all known, in the standard module 'heapq', we can easily get the smallest item from the heap. i.e. it's an

Re: how to use heapq module as a max-heap?

2009-03-29 Thread Steven D'Aprano
(Top posting and incorrect quoting corrected.) On Sun, 29 Mar 2009 16:48:53 +0800, apollo wrote: as we all known, in the standard module 'heapq', we can easily get the smallest item from the heap. i.e. it's an implementation of min-heap. my question is how to use 'heapq' to extract

Psycopg Documentation

2009-03-29 Thread taliesin
Hi, I'm probably being very dense so apologies in advance, but I can't find any decent documentation for the psycopg module for PostgreSQL interfacing. Google and Yahoo don't seem to return much for any of the queries I gave them and what's listed as the homepage for psycopg is this:

Re: Psycopg Documentation

2009-03-29 Thread Diez B. Roggisch
taliesin schrieb: Hi, I'm probably being very dense so apologies in advance, but I can't find any decent documentation for the psycopg module for PostgreSQL interfacing. Google and Yahoo don't seem to return much for any of the queries I gave them and what's listed as the homepage for psycopg

Re: Psycopg Documentation

2009-03-29 Thread taliesin
Diez B. Roggisch wrote: taliesin schrieb: Hi, I'm probably being very dense so apologies in advance, but I can't find any decent documentation for the psycopg module for PostgreSQL interfacing. Google and Yahoo don't seem to return much for any of the queries I gave them and what's listed

Re: how to use heapq module as a max-heap?

2009-03-29 Thread bearophileHUGS
Apollo:  my question is how to use 'heapq' to extract the biggest item from the heap?  is it possible? This wrapper allows you to give a key function: http://code.activestate.com/recipes/502295/ Bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list

Setting an exclusive lock on a file

2009-03-29 Thread Eugene Perederey
Hi all, I want to set an exclusive lock on a file so other processes wouldn't be able to write to it. So I write import fcntl fd=open('myfile','w') fcntl.lockf(fd, fcntl.LOCK_EX) fd.write('some bytes') fd.close() But it turns out that my script doesn't write anything to file whereas other

Re: tkinter questions: behavior of StringVar, etc

2009-03-29 Thread Francesco Bochicchio
Alan G Isaac ha scritto: On Mar 28, 2:15 pm, Alan G Isaac alan.is...@gmail.com wrote: I'm a complete newbie to GUI. I have a couple questions about tkinter. 1. Where is the list of changes in Python 3's tkinter? 2. What exactly is the role of the root object, traditionally created

Re: read web page that requires javascript on client

2009-03-29 Thread lkcl
On Mar 18, 8:01 pm, Greg gregsaundersem...@gmail.com wrote: Hello all, I've been trying to find a way to fetch and read a web page that requires javascript on the client side and it seems impossible. you're right: it's not impossible. I've read several threads in this group that say as much

Re: read web page that requires javascript on client

2009-03-29 Thread lkcl
On Mar 18, 8:25 pm, R. David Murray rdmur...@bitdance.com wrote: Greg gregsaundersem...@gmail.com wrote: Hello all, I've been trying to find a way to fetch and read a web page that requiresjavascripton the client side and it seems impossible. I've read several threads in this group that say

Accessing shell output from HTTP

2009-03-29 Thread Brendon Wickham
Hi there, I would like users of my web application to be able to download a backup file of a database (using* *MySQL's *mysqldump* command). My strategy is to use *zipfile* to create a zip file object (with the * mysqldump* output as the contents of the zipped file) and then use * sys.stdout* to

Re: read web page that requires javascript on client

2009-03-29 Thread lkcl
On Mar 20, 1:09 am, Greg gregsaundersem...@gmail.com wrote: On Mar 18, 7:25 pm, Carl tg2.u...@gmail.com wrote: On Mar 18, 1:56 pm, a...@pythoncraft.com (Aahz) wrote: In article mailman.2143.1237407931.11746.python-l...@python.org, R. David Murray rdmur...@bitdance.com wrote: That

Re: Embed a web browser into a page

2009-03-29 Thread lkcl
On Feb 12, 12:44 am, Carbon Man dar...@nowhere.com wrote: Hi, I need to embed a web browser into a python page. I am coming from the MS world where I created an app that all of it's interfaces were actually web its not it's. it apostrophe s is short for it is. so you've said i created an

Re: Programming Python 4th Edition?

2009-03-29 Thread Nick Craig-Wood
Esmail ebo...@hotmail.com wrote: prueba...@latinmail.com wrote: It isn't a introduction to the Python language like Learning Python, it doesn't work as reference like Python in a Nutshell, it doesn't contain short idiomatic code like Python Cookbook. What you are left with is different

Re: Embed a web browser into a page

2009-03-29 Thread lkcl
On Feb 12, 9:22 am, Diez B. Roggisch de...@nospam.web.de wrote: Carbon Man wrote: Hi, I need to embed a web browser into a python page. I am coming from the MS world where I created an app that all of it's interfaces were actually web pages rendered in an Internet Explorer activex

help needed on loop controls

2009-03-29 Thread Gaudha
Hi Pythons I have got some problems with exiting and continuing nested loops. Some solving ideas found somewhere like http://offog.org/ideas/python-loop-exit.html. I searched in depth of the Official Python Documentation and couldn't find any like that. Did that ideas implemented as it is or in

Re: Setting an exclusive lock on a file

2009-03-29 Thread Diez B. Roggisch
Eugene Perederey schrieb: Hi all, I want to set an exclusive lock on a file so other processes wouldn't be able to write to it. So I write import fcntl fd=open('myfile','w') fcntl.lockf(fd, fcntl.LOCK_EX) fd.write('some bytes') fd.close() But it turns out that my script doesn't write anything

Re: Setting an exclusive lock on a file

2009-03-29 Thread Diez B. Roggisch
Eugene Perederey schrieb: Hi all, I want to set an exclusive lock on a file so other processes wouldn't be able to write to it. So I write import fcntl fd=open('myfile','w') fcntl.lockf(fd, fcntl.LOCK_EX) fd.write('some bytes') fd.close() But it turns out that my script doesn't write anything

Re: help needed on loop controls

2009-03-29 Thread Diez B. Roggisch
Gaudha schrieb: Hi Pythons I have got some problems with exiting and continuing nested loops. Some solving ideas found somewhere like http://offog.org/ideas/python-loop-exit.html. I searched in depth of the Official Python Documentation and couldn't find any like that. Did that ideas

Did you noticed that Unipath is not more available?

2009-03-29 Thread Andrea Francia
Do you know/use Unipath? Unipath is a OO path manipulation library. It's used, for example, to rename, copy, deleting files. Unfortunately this library is no more available as I reported in [1]. I found a copy of the .egg in a my old system backup but I need also the source tarball. I need

Re: PyFits for Windows?

2009-03-29 Thread W. eWatson
Michiel Overtoom wrote: W. eWatson wrote: It looks like PyFits downloads are for Linux. Isn't there anything available for Win (xp)? According to http://www.stsci.edu/resources/software_hardware/pyfits: PyFITS’s source code is pure Python. It requires Python version 2.3 or newer. PyFITS

Re: Psycopg Documentation

2009-03-29 Thread Albert Hopkins
On Sun, 2009-03-29 at 11:35 +0100, taliesin wrote: Hi, I'm probably being very dense so apologies in advance, but I can't find any decent documentation for the psycopg module for PostgreSQL interfacing. Google and Yahoo don't seem to return much for any of the queries I gave them and

Re: PyFits for Windows?

2009-03-29 Thread W. eWatson
John Yeung wrote: On Mar 28, 4:03 pm, Michiel Overtoom mot...@xs4all.nl wrote: W. eWatson wrote: It looks like PyFits downloads are for Linux. Isn't there anything available for Win (xp)? To install it, unpack the tar file and type: python setup.py install It looks like PyFits is

Re: Did you noticed that Unipath is not more available?

2009-03-29 Thread Albert Hopkins
On Sun, 2009-03-29 at 15:17 +0200, Andrea Francia wrote: Do you know/use Unipath? Unipath is a OO path manipulation library. It's used, for example, to rename, copy, deleting files. Unfortunately this library is no more available as I reported in [1]. I found a copy of the .egg in a my

Re: how to use heapq module as a max-heap?

2009-03-29 Thread Paddy3118
On Mar 29, 8:36 am, Apollo tju...@qq.com wrote: as we all known, in the standard module 'heapq',  we can easily get the smallest item from the heap. i.e. it's an implementation of min-heap.  my question is how to use 'heapq' to extract the biggest item from the heap?  is it possible?  

Re: PID lockfile

2009-03-29 Thread Aahz
In article 87zlf5qi4z@benfinney.id.au, Ben Finney ben+pyt...@benfinney.id.au wrote: a...@pythoncraft.com (Aahz) writes: In article 87iqlwvemo@benfinney.id.au, Ben Finney bignose+hates-s...@benfinney.id.au wrote: In the case of the ‘lockfile’ library, Skip is aiming for a

Re: blocked on futex

2009-03-29 Thread Aahz
In article 7aea1500-aebc-4585-97c3-ba15f5dc7...@n20g2000vba.googlegroups.com, msoulier msoul...@digitaltorque.ca wrote: On Mar 25, 10:27=A0am, a...@pythoncraft.com (Aahz) wrote: That's a bit bizarre. =A0You're correct that if this is a Python bug, the= re will be no fixes available.

Re: PyFits for Windows?

2009-03-29 Thread W. eWatson
W. eWatson wrote: Michiel Overtoom wrote: W. eWatson wrote: It looks like PyFits downloads are for Linux. Isn't there anything available for Win (xp)? According to http://www.stsci.edu/resources/software_hardware/pyfits: PyFITS’s source code is pure Python. It requires Python version 2.3

Re: Calendar module: HTMLCalendar overrides style sheet settings

2009-03-29 Thread Sibylle Koczian
Sibylle Koczian schrieb: Hello, So I looked into the calendar module and made a LocalHTMLCalendar subclass. Putting in additional style classes for my dates wasn't difficult, but there is one thing I don't like at all: the methods formatmonth() and formatyear() both return tables with

Re: PyFits for Windows?

2009-03-29 Thread andrew cooke
W. eWatson wrote: I downloaded the tar file, and untarred it with IZarc. That's a strange way to package it, that is, for Windows. This almost suggests not many Win users are using it. One of the pages, http://www.scipy.org/wikis/topical_software/Tutorial, has a lot of tutorial material.

Re: tkinter questions: behavior of StringVar, etc

2009-03-29 Thread Alan G Isaac
On 3/29/2009 3:43 AM Scott David Daniels apparently wrote: OK, that was plain rude. a couple of questions is not six questions. A reply telling you how to get to some of what you are looking for is assistance. If you want exact answers to an array of questions, pay someone to fetch you the

Help with dict and iter

2009-03-29 Thread mattia
Hi all, I a list of jobs and each job has to be processed in a particular order by a list of machines. A simple representation is: # Ordering of machines JOB1 = [3, 1, 2, 4] JOB2 = [2, 3, 1, 4] JOBS = [JOB1, JOB2] NJOBS = len(JOBS) Now, I have a list of jobs and I want to have the associated list

Re: Cross platform installer builder for Python? (like IzPack for Java)

2009-03-29 Thread W. Martin Borgert
Hola Gabriel: On 2009-03-25 19:19, Gabriel Genellina wrote: To distribute complete applications, py2exe + InnoSetup (Windows). That's the point: IzPack (Java) creates installers, that work at least on Windows and Linux, create menu entries in Windows and Gnome/KDE etc. Only one .jar file to

Re: Python AppStore / Marketplace

2009-03-29 Thread Paul Boddie
On 27 Mar, 06:54, David Lyon david.l...@preisshare.net wrote: Just a GUI for package management that lets you seperate what is available for the python platform that you are running on. Install, deinstall, and get package information. https://sourceforge.net/projects/pythonpkgmgr/ We only

Re: Help with dict and iter

2009-03-29 Thread andrew cooke
mattia wrote: Hi all, I a list of jobs and each job has to be processed in a particular order by a list of machines. A simple representation is: # Ordering of machines JOB1 = [3, 1, 2, 4] JOB2 = [2, 3, 1, 4] JOBS = [JOB1, JOB2] NJOBS = len(JOBS) Now, I have a list of jobs and I want to

Re: tkinter questions: behavior of StringVar, etc

2009-03-29 Thread Alan G Isaac
On 3/29/2009 7:29 AM Francesco Bochicchio apparently wrote: 1. Tkinter is only a thin wrapper over Tk, a GUI library initially developed for Tcl language, so many of the answer to the design choices you question (e.g. what is the master) cannot between answered within the python documentation

Re: Help with dict and iter

2009-03-29 Thread mattia
Il Sun, 29 Mar 2009 11:17:50 -0400, andrew cooke ha scritto: mattia wrote: Hi all, I a list of jobs and each job has to be processed in a particular order by a list of machines. A simple representation is: # Ordering of machines JOB1 = [3, 1, 2, 4] JOB2 = [2, 3, 1, 4] JOBS = [JOB1, JOB2]

Re: Help with dict and iter

2009-03-29 Thread andrew cooke
mattia wrote: [i wrote]: don't you just want to have a new job machine? for job_list in job_list_list: job_machine = dict((x+1, iter(JOBS[x])) for x in range(NJOBS)) for x in job_list: print(next(job_machine[x])) ok - btw you can probably simplify the code. this might work:

Re: meta question - how to read comp.lang.python w/o usenet feed/google interface?

2009-03-29 Thread Aahz
In article 03081704-17b5-4c7d-82db-8efb7ebce...@q11g2000yqh.googlegroups.com, Esmail ebo...@gmail.com wrote: I've been reading/posting to usenet since the 80s with a variety of tools (vn, and most recently Thunderbird) but since my ISP (TimeWarner) no longer provides usenet feeds I'm stuck. You

Re: Ordered Sets

2009-03-29 Thread Aahz
In article 01d457aa$0$17208$c3e8...@news.astraweb.com, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: On Fri, 20 Mar 2009 11:50:28 -0700, Scott David Daniels wrote: Raymond Hettinger wrote: [Aahz] The doubly-linked list part is what's sick and perverted. The doubly-linked list

Re: Help with dict and iter

2009-03-29 Thread mattia
Il Sun, 29 Mar 2009 12:00:38 -0400, andrew cooke ha scritto: mattia wrote: [i wrote]: don't you just want to have a new job machine? for job_list in job_list_list: job_machine = dict((x+1, iter(JOBS[x])) for x in range(NJOBS)) for x in job_list: print(next(job_machine[x])) ok -

Re: Geometry package

2009-03-29 Thread Max Erickson
Justin Pearson justin.pear...@gmail.com wrote: Hi all, I'm looking for a geometry package in Python; something that will let me define line segments, and can tell me if two line segments intersect. It would be nice if the lines could be defined in n-space (rather than be confined to 2 or 3

Re: PyFits for Windows?

2009-03-29 Thread Scott David Daniels
W. eWatson wrote: Michiel Overtoom wrote: W. eWatson wrote: It looks like PyFits downloads are for Linux. Isn't there anything available for Win (xp)? According to http://www.stsci.edu/resources/software_hardware/pyfits: ... That link gives me a Resource Not Found!, but does have info

Re: Safe to call Py_Initialize() frequently?

2009-03-29 Thread Aahz
[pe] In article e97efd52-4868-47a5-91ec-657bba5f0...@z16g2000prd.googlegroups.com, Graham Dumpleton graham.dumple...@gmail.com wrote: In mod_wsgi however, Apache will completely unload the mod_wsgi module on a restart. This would also mean that the Python library is also unloaded from memory.

Re: PyFits for Windows?

2009-03-29 Thread W. eWatson
andrew cooke wrote: W. eWatson wrote: I downloaded the tar file, and untarred it with IZarc. That's a strange way to package it, that is, for Windows. This almost suggests not many Win users are using it. One of the pages, http://www.scipy.org/wikis/topical_software/Tutorial, has a lot of

Read Garmin XML (TCX) files in Python...

2009-03-29 Thread cmalmqui
Dear All, Garmin uses XML as an exchange format for their Forerunner GPS series (http://developer.garmin.com/schemas/tcx/v2/) and I have been thinking about creating a python script that parses the Garmin XML file and dumps the training information to a KML file as well as various graphs (png or

Re: PyFits for Windows?

2009-03-29 Thread drobi...@gmail.com
On Mar 29, 9:39 am, W. eWatson notval...@sbcglobal.net wrote: John Yeung wrote: On Mar 28, 4:03 pm, Michiel Overtoom mot...@xs4all.nl wrote: W. eWatson wrote: It looks like PyFits downloads are for Linux. Isn't there anything available for Win (xp)? To install it, unpack the tar file

Bullshit Generator

2009-03-29 Thread Pierre Denis
Hello, For those of you that - want to surf on the edge of Web technology without understanding it, - desire to be considered as a software guru, - are forced to write technical documents that nobody will read. - want to laugh a bit, I have written a Bullshit Generator script in Python (see

Re: Read Garmin XML (TCX) files in Python...

2009-03-29 Thread Diez B. Roggisch
cmalmqui schrieb: Dear All, Garmin uses XML as an exchange format for their Forerunner GPS series (http://developer.garmin.com/schemas/tcx/v2/) and I have been thinking about creating a python script that parses the Garmin XML file and dumps the training information to a KML file as well as

How to access object created in Main?

2009-03-29 Thread Muddy Coder
Hi Folks, I need to update the text field of a Label created in Main, but can't find a way to do it. Please take a look at my code: from Tkinter import * def makemenu(r) amenu = Menu(r) amenu.add_command(., command=update_label) def update_label(): how to access mesg created in

Re: Ordered Sets

2009-03-29 Thread CTO
On Mar 28, 3:33 am, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Thu, 26 Mar 2009 12:20:17 -0300, Scott David Daniels   scott.dani...@acm.org escribió: (2) Why, oh why, do people feel so comforted adding double_underscores      to data structures? Probably because other authors feel

Re: tkinter questions: behavior of StringVar, etc

2009-03-29 Thread Scott David Daniels
Alan G Isaac wrote: On 3/29/2009 3:43 AM Scott David Daniels apparently wrote: OK, that was plain rude. a couple of questions is not six questions. A reply telling you how to get to some of what you are looking for is assistance. If you want exact answers to an array of questions, pay someone

Re: Bullshit Generator

2009-03-29 Thread Daniel Fetchinson
Hello, For those of you that - want to surf on the edge of Web technology without understanding it, - desire to be considered as a software guru, - are forced to write technical documents that nobody will read. - want to laugh a bit, I have written a Bullshit Generator script in Python

Re: numpy array sorting weirdness

2009-03-29 Thread Daniel Fetchinson
Is there any reason the 'axis' keyword argument doesn't default to the value that corresponds to python list behaviour? That would make lot of sense I think. Or retaining compatibility with python lists is not really a goal of numpy.array? Not at all. It's an entirely different data

Re: Bullshit Generator

2009-03-29 Thread Tim Chase
For those of you that - want to surf on the edge of Web technology without understanding it, - desire to be considered as a software guru, - are forced to write technical documents that nobody will read. - want to laugh a bit, I have written a Bullshit Generator script in Python (see below). It

speak or Speak ?, was Re: Bullshit Generator

2009-03-29 Thread Stef Mientki
quit nice ! But I had to replace speak by Speak voice.Speak ( generatedSentence ) not a big issue, but as I want to deploy programs with Sapi, I'm interested if there are different speak engines around. thanks Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

CGIXMLRPCRequestHandler example

2009-03-29 Thread Phoe6
I have the following CGIXMLRPCRequestHandler usage example. I have both the server and the client in the same directory. I based this following this example: http://mail.python.org/pipermail/python-list/2005-May/320696.html Server Code: Foo.py import os import SimpleXMLRPCServer class Foo:

Re: Safe to call Py_Initialize() frequently?

2009-03-29 Thread Graham Dumpleton
On Mar 30, 4:35 am, a...@pythoncraft.com (Aahz) wrote: [pe] In article e97efd52-4868-47a5-91ec-657bba5f0...@z16g2000prd.googlegroups.com, Graham Dumpleton  graham.dumple...@gmail.com wrote: In mod_wsgi however, Apache will completely unload the mod_wsgi module on a restart. This would

Re: Bullshit Generator

2009-03-29 Thread Martin P. Hellwig
Tim Chase wrote: cut Is it an upgrade from from urllib import urlopen bs = urlopen(http://xahlee.org;).read() Yes it is. Although both produce random quantities of text, only the name can be interpreted offensive, not the content. -- mph --

Re: Bullshit Generator

2009-03-29 Thread Irmen de Jong
Pierre Denis wrote: I have written a Bullshit Generator script in Python (see below). It generates English sentences at random, talking about leading-edge Web-based technologies. For example it can produce simple sentences like The interface subscriber manages the web-based online ontology.

Re: meta question - how to read comp.lang.python w/o usenet feed/google interface?

2009-03-29 Thread skip
aahz In article 03081704-17b5-4c7d-82db-8efb7ebce...@q11g2000yqh.googlegroups.com, aahz Esmail ebo...@gmail.com wrote: I've been reading/posting to usenet since the 80s with a variety of tools (vn, and most recently Thunderbird) but since my ISP (TimeWarner) no

Cannot register to submit a bug report

2009-03-29 Thread John Posner
I've tried twice to register myself at bugs.python.org. But the confirmation email message never arrives. (Yes, I checked my spam folder.) What do I do now? E-mail message checked by Spyware Doctor (6.0.0.386) Database version: 5.12060 http://www.pctools.com/en/spyware-doctor-antivirus/ --

Wing IDE Backup configuration settings?

2009-03-29 Thread John Doe
Anyone know how to back up the configuration settings like font sizes and colors in the Wing IDE? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

i have to change default tab length in pydev

2009-03-29 Thread Coonay
during last few days, i code python using notepad++ or pydev, the compiler always complain there is a problem with Indentation,in my eyes ,there is no Indentation problem at all,because i format the code to make it comply with python style guide strictly,but after i change the default tab length

if there is a return type of a method definition like java does

2009-03-29 Thread Coonay
if there is a return type of a method definition,that would lead to faster decision to do with the method called,do you think so? -- http://mail.python.org/mailman/listinfo/python-list

Re: PyFits for Windows?

2009-03-29 Thread andrew cooke
W. eWatson wrote: [...] Along these lines, there was an astronomy python site at the U of Washington not many months ago. The link is broken. Any idea where it went? I sent the astro dept a msg about it a few hours ago. NASA has one too, but it's not loading today. The govt. sites seem to

Understanding JSON

2009-03-29 Thread WallyDD
Hello, I am trying to geocode some map data using the google maps API. By using the urllib I can get the JSON output; http://maps.google.com/maps/geo?q=New+York+USAoutput=jsonoe=utf8sensor=truekey=your_api_key I then read it using; gmapiresult = json.loads(fg.read()) somedata =

Re: Understanding JSON

2009-03-29 Thread Chris Rebert
On Sun, Mar 29, 2009 at 1:39 PM, WallyDD shaneb...@gmail.com wrote: Hello, I am trying to geocode some map data using the google maps API. By using the urllib I can get the JSON output; http://maps.google.com/maps/geo?q=New+York+USAoutput=jsonoe=utf8sensor=truekey=your_api_key I then read

Re: Bullshit Generator

2009-03-29 Thread Dotan Cohen
Hello, For those of you that - want to surf on the edge of Web technology without understanding it, - desire to be considered as a software guru, - are forced to write technical documents that nobody will read. - want to laugh a bit, I have written a Bullshit Generator script in Python

Re: Introducing Python to others

2009-03-29 Thread BackSeat
On Mar 26, 10:35 am, Paddy O'Loughlin patrick.olough...@gmail.com wrote: If I were to do a (very) short demonstration one web framework for the PHP devs, what should I use? No question: use web2py. See the website and the videos that demonstrate it. You could build a reasonably substantial

Re: New Python Runtime

2009-03-29 Thread Tim Roberts
Adonis adonis_var...@remove_this_bellsouth.net wrote: Came across this article on Ars on a new LLVM (Low Level Virtual Machine) JIT compiler for Python being built by Google: http://arstechnica.com/open-source/news/2009/03/google-launches-project-to-boost-python-performance-by-5x.ars Now the

Re: Can't get a simple TCP program to work

2009-03-29 Thread Irmen de Jong
Zach wrote: The following *extremely* simple script complains that Socket is not connected when I try to call recv. Could anyone provide some quick guidance? http://pastebin.com/m64317b32 replace node2.recv() by new_socket.recv() - you need to get data from the client socket that you got from

RE: tkinter questions: behavior of StringVar, etc

2009-03-29 Thread John Posner
Scott David Daniels said: You ask, What exactly is the role of ..., rather than saying something like, I don't understand the role of ..., and continue to ask why the code is not architected the way you first expected it to be architected, calling those things you do not understand

Re: tkinter questions: behavior of StringVar, etc

2009-03-29 Thread Alan G Isaac
Alan asked: - Why does a Variable need a master? - If s is a StringVar instance, why is str(s) its name rather than its value? On 3/29/2009 2:46 PM Scott David Daniels apparently wrote: The answer to that, grasshopper, lies in the answer to the question, What are StringVars designed to do?

Re: tkinter questions: behavior of StringVar, etc

2009-03-29 Thread Alan G Isaac
On 3/29/2009 2:46 PM Scott David Daniels apparently wrote: You ask, What exactly is the role of ..., rather than saying something like, I don't understand the role of ..., and continue to ask why the code is not architected the way you first expected it to be architected, calling those things

Re: Python AppStore / Marketplace

2009-03-29 Thread David Lyon
On Fri, 27 Mar 2009 08:16:01 -0700, Daniel Fetchinson fetchin...@googlemail.com wrote: How will your solution be different from distutils, setuptools, pip, zc.buildout and a couple other similar packages I don't recall now? For a start.. it doesn't replace those.. it drives them... Have

Re: How to access object created in Main?

2009-03-29 Thread Rhodri James
On Sun, 29 Mar 2009 19:12:23 +0100, Muddy Coder cosmo_gene...@yahoo.com wrote: Hi Folks, I need to update the text field of a Label created in Main, but can't find a way to do it. Please take a look at my code: from Tkinter import * def makemenu(r) amenu = Menu(r)

Re: i have to change default tab length in pydev

2009-03-29 Thread Rhodri James
On Sat, 28 Mar 2009 11:30:36 -, Coonay fla...@gmail.com wrote: during last few days, i code python using notepad++ or pydev, the compiler always complain there is a problem with Indentation,in my eyes ,there is no Indentation problem at all,because i format the code to make it comply with

Re: PyGTK and skins?

2009-03-29 Thread Emanuele D'Arrigo
On Mar 29, 12:28 am, Cousin Stanley cousinstan...@gmail.com wrote:     You might try the pygtk mailing list available     via the  news.gmane.org  server Than you Stanley, much appreciated! Manu -- http://mail.python.org/mailman/listinfo/python-list

2.5/2.4 multiprocessing backport doc typo

2009-03-29 Thread Daniel Fetchinson
Whoever wrote the multiprocessing backport for 2.4/2.5, a big thank you! Just one note: on the page http://pypi.python.org/pypi/multiprocessing/ there is a news item from the future: === Changes === 2.6.1.1 -- 2009-12-07 I guess it should be 2008-12-07 :) Cheers, Daniel --

Re: Bullshit Generator

2009-03-29 Thread james
just make sure it stays out of the hands of IT managers. Quoting Dotan Cohen dotanco...@gmail.com: Hello, For those of you that - want to surf on the edge of Web technology without understanding it, - desire to be considered as a software guru, - are forced to write technical documents that

Re: tkinter questions: behavior of StringVar, etc

2009-03-29 Thread Scott David Daniels
Alan G Isaac wrote: Alan asked: - Why does a Variable need a master? - If s is a StringVar instance, why is str(s) its name rather than its value? On 3/29/2009 2:46 PM Scott David Daniels apparently wrote: The answer to that, grasshopper, lies in the answer to the question, What are

Re: tkinter questions: behavior of StringVar, etc

2009-03-29 Thread Rhodri James
On Sun, 29 Mar 2009 22:37:24 +0100, Alan G Isaac alan.is...@gmail.com wrote: On 3/29/2009 2:46 PM Scott David Daniels apparently wrote: You ask, What exactly is the role of ..., rather than saying something like, I don't understand the role of ..., and continue to ask why the code is not

Re: Python AppStore / Marketplace

2009-03-29 Thread Daniel Fetchinson
How will your solution be different from distutils, setuptools, pip, zc.buildout and a couple other similar packages I don't recall now? For a start.. it doesn't replace those.. it drives them... Have you considered joining one of these efforts in order to not fragment the packaging and

Re: Cannot register to submit a bug report

2009-03-29 Thread Terry Reedy
John Posner wrote: I've tried twice to register myself at bugs.python.org. But the confirmation email message never arrives. (Yes, I checked my spam folder.) What do I do now? I will not suggest that you register at the roundup tracker to report this ;-, especially since it may be a local

Re: if there is a return type of a method definition like java does

2009-03-29 Thread Rhodri James
On Sat, 28 Mar 2009 03:11:20 -, Coonay fla...@gmail.com wrote: if there is a return type of a method definition,that would lead to faster decision to do with the method called,do you think so? A method definition always returns a function object. There. Less facetiously, I don't see how

Re: Cannot register to submit a bug report

2009-03-29 Thread ajaksu
John Posner wrote: I've tried twice to register myself at bugs.python.org. But the confirmation email message never arrives. (Yes, I checked my spam folder.) What do I do now? We can try to debug this :) E-mail message checked by Spyware Doctor (6.0.0.386) Database version:

Re: tkinter questions: behavior of StringVar, etc

2009-03-29 Thread Alan G Isaac
On 3/29/2009 6:50 PM Rhodri James apparently wrote: In this case, your choice of wording (the nearest thing we have in print to tone of voice) did not inspire me to go digging around in source that you have just as easy access to, in order to answer questions that I'm not particularly interested

Re: dict view to list

2009-03-29 Thread Rhodri James
On Sun, 29 Mar 2009 08:39:10 +0100, Aaron Brady castiro...@gmail.com wrote: I guess there are two arguments for the change. 1. Flat is better than nested. I don't think that's really what this is refering to. 2. It interferes with the way people read text. Insert some before people

  1   2   3   4   >