Re: garbage collection / reference cycles (cont.)

2009-03-29 Thread Aaron Brady
On Mar 25, 12:11 am, Aaron Brady 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 is a buffer-l

Re: garbage collection / reference cycles (cont.)

2009-03-29 Thread Aaron Brady
On Mar 25, 12:12 am, Aaron Brady wrote: > On Mar 25, 12:11 am, Aaron Brady 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 shoul

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 al

Re: complaints about no replies last week

2009-03-29 Thread Aaron Brady
On Mar 28, 7:31 pm, ajaksu 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.  Does

Re: PyFits for Windows?

2009-03-29 Thread Scott David Daniels
John Yeung wrote: On Mar 28, 4:03 pm, Michiel Overtoom 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 platform-independent. Per

Re: dict view to list

2009-03-29 Thread Aaron Brady
On Mar 27, 7:26 pm, Terry Reedy 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 .todict() m

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.:)-- http://mail.python.org/mailma

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 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 ``root=tk.Tk()``? On

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 > > as we all known, in the standard module 'heapq

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" ??:[email protected]... 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

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' t

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: http://init

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 i

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 a

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 process

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 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 ``root=tk.Tk()``?

Re: read web page that requires javascript on client

2009-03-29 Thread lkcl
On Mar 18, 8:01 pm, Greg 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 but I just > can't believ

Re: read web page that requires javascript on client

2009-03-29 Thread lkcl
On Mar 18, 8:25 pm, "R. David Murray" wrote: > Greg 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 as much but I just > > can't believe it

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 wrote: > On Mar 18, 7:25 pm, Carl wrote: > > > > > On Mar 18, 1:56 pm, [email protected] (Aahz) wrote: > > > > In article , > > > R. David Murray wrote: > > > > >That said, I've heard mention here of something that can apparently be > > > >used for this. I think it w

Re: Embed a web browser into a page

2009-03-29 Thread lkcl
On Feb 12, 12:44 am, "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 "its" not "it's". "it apostrophe s" is short for "it is". so you've said "i created an app tha

Re: Programming Python 4th Edition?

2009-03-29 Thread Nick Craig-Wood
Esmail wrote: > [email protected] 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 appli

Re: Embed a web browser into a page

2009-03-29 Thread lkcl
On Feb 12, 9:22 am, "Diez B. Roggisch" 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 control. There w

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 s

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 t

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 t

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 implemente

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 th

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 al

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 an

Re: PyFits for Windows?

2009-03-29 Thread W. eWatson
John Yeung wrote: On Mar 28, 4:03 pm, Michiel Overtoom 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 platform-independent. Per

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

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

2009-03-29 Thread Paddy3118
On Mar 29, 8:36 am, "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 the biggest item from the heap? >  is it possible? > >  thanks  

Re: PID lockfile

2009-03-29 Thread Aahz
In article <[email protected]>, Ben Finney wrote: >[email protected] (Aahz) writes: >> In article <[email protected]>, >> Ben Finney wrote: >>> >>>In the case of the ‘lockfile’ library, Skip is aiming for a >>>cross-platform solution, with atomic behavi

Re: blocked on futex

2009-03-29 Thread Aahz
In article <7aea1500-aebc-4585-97c3-ba15f5dc7...@n20g2000vba.googlegroups.com>, msoulier wrote: >On Mar 25, 10:27=A0am, [email protected] (Aahz) wrote: > >> That's a bit bizarre. =A0You're correct that if this is a Python bug, the= >re >> will be no fixes available. =A0However, you said earlie

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 wit

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, , > has a lot of tutorial ma

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 answ

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 dis

Re: Python AppStore / Marketplace

2009-03-29 Thread Paul Boddie
On 27 Mar, 06:54, David Lyon 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 have source at the

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 wa

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 b

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 =

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 w

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 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 have optio

Re: Ordered Sets

2009-03-29 Thread Aahz
In article <[email protected]>, Steven D'Aprano 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 part is what g

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_m

Re: Geometry package

2009-03-29 Thread Max Erickson
Justin Pearson 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 dimensions), but t

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 about

Re: Safe to call Py_Initialize() frequently?

2009-03-29 Thread Aahz
[p&e] In article , Graham Dumpleton 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. When it reloads both, the global static >variables where information was left behind hav

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, , has a lot of tut

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 ma

Re: PyFits for Windows?

2009-03-29 Thread [email protected]
On Mar 29, 9:39 am, "W. eWatson" wrote: > John Yeung wrote: > > On Mar 28, 4:03 pm, Michiel Overtoom 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 s

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 bel

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 vario

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" wrote: > En Thu, 26 Mar 2009 12:20:17 -0300, Scott David Daniels   > escribió: > > > (2) Why, oh why, do people feel so comforted adding double_underscores > >      to data structures? Probably because other authors feel too comfortable using single unders

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

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, [email protected] (Aahz) wrote: > [p&e] > > In article > , > Graham Dumpleton   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. When it r

Re: Bullshit Generator

2009-03-29 Thread Martin P. Hellwig
Tim Chase wrote: 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 -- http://mail.python.org/mailman/listinfo/python-l

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 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 pro

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/ -- ht

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 ,i

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

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+USA&output=json&oe=utf8&sensor=true&key=your_api_key I then read it using; gmapiresult = json.loads(fg.read()) somedata = gmapiresult['

Re: Understanding JSON

2009-03-29 Thread Chris Rebert
On Sun, Mar 29, 2009 at 1:39 PM, WallyDD 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+USA&output=json&oe=utf8&sensor=true&key=your_api_key > > I then read it using

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

Re: Introducing Python to others

2009-03-29 Thread BackSeat
On Mar 26, 10:35 am, "Paddy O'Loughlin" 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 application in 2-3 minutes

Re: New Python Runtime

2009-03-29 Thread Tim Roberts
Adonis 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 question is will this make Vista ru

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 fro

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 unders

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 thi

Re: Python AppStore / Marketplace

2009-03-29 Thread David Lyon
On Fri, 27 Mar 2009 08:16:01 -0700, Daniel Fetchinson 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 you considered joining o

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 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) amenu.add_command(., command=update_lab

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 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 python style guide

Re: PyGTK and skins?

2009-03-29 Thread Emanuele D'Arrigo
On Mar 29, 12:28 am, Cousin Stanley 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 -- Ps

Re: Bullshit Generator

2009-03-29 Thread james
just make sure it stays out of the hands of IT managers. Quoting 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. - wa

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 String

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 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 architected the w

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 "packag

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 prob

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 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 knowing the retu

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: 5.12060http:

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 intereste

Re: dict view to list

2009-03-29 Thread Rhodri James
On Sun, 29 Mar 2009 08:39:10 +0100, Aaron Brady 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" and I'd have to ag

Re: tkinter questions: behavior of StringVar, etc

2009-03-29 Thread Rhodri James
On Mon, 30 Mar 2009 00:13:46 +0100, Alan G Isaac wrote: Since you did not address my question about the nuance of "magic", I'm inclined to treat you as a "no" vote. And you'd be wrong. -- Rhodri James *-* Wildebeeste Herder to the Masses -- http://mail.python.org/mailman/listinfo/python-li

Re: Bullshit Generator

2009-03-29 Thread livibetter
This is fun. I tried to add speech synthesis on Linux, hope you don't mind. If you have speech-dispatcher [1] worked normally, you can replace the main program with # -- # main program # -- try: im

  1   2   >