parsing XSD

2008-08-09 Thread Spitfire
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ~ I'm trying to use xml.dom.minidom parser to parse a XML schema file. And, when I invoke 'childNodes' on the root element (schema) I get all the nodes defined under it, instead of just getting the child nodes at the first level! Why? - -- _ _ _]{5p

Re: some kind of trace facility ?

2008-08-09 Thread Timothy Grant
n Sat, Aug 9, 2008 at 4:14 PM, Stef Mientki <[EMAIL PROTECTED]> wrote: > hello, > > I want to investigate on a regular base the flow of my Python (most of them > using wxPython) programs. > So I want to have some log facilty, that logs things like > - every time a function / method is called > - th

Re: how to find out if an object is a class?

2008-08-09 Thread Stefan Behnel
Steven D'Aprano wrote: > On Fri, 08 Aug 2008 16:38:14 +0200, Stefan Behnel wrote: >> Miles wrote: >>> On Fri, Aug 8, 2008 at 2:31 AM, Stefan Behnel wrote: I recently had the reverse case that a (stupidly implemented) extension module required a callback function and I wanted to pass a >>>

Re: Fastest way to store ints and floats on disk

2008-08-09 Thread castironpi
On Aug 9, 4:43 pm, John Machin <[EMAIL PROTECTED]> wrote: > On Aug 10, 4:58 am, castironpi <[EMAIL PROTECTED]> wrote: > > > > > On Aug 7, 2:27 pm, "M.-A. Lemburg" <[EMAIL PROTECTED]> wrote: > > > > On 2008-08-07 20:41, Laszlo Nagy wrote: > > > > >  Hi, > > > > > I'm working on a pivot table. I woul

Re: swig and DWMAPI.dll

2008-08-09 Thread Jack
Or, an equally excellent answer would be "you still use swig? That's so outdated. Try Awesome McAwesomestein's Awesome C++ to Python Autowrap" -- http://mail.python.org/mailman/listinfo/python-list

Re: The wrong approach to things

2008-08-09 Thread Mensanator
On Aug 9, 9:20�pm, teh_sAbEr <[EMAIL PROTECTED]> wrote: > Ok, so this isn't necessarily a programming issue, but anyways. I've > managed to write that random wallpaper changer i've been wanting to > make, but i've run into a little problem. According to the MS > Knowledge Base, SystemParametersInfo

ANN: Chandler 1.0

2008-08-09 Thread Heikki Toivonen
The Chandler Project is pleased to announce the release of Chandler Desktop 1.0! The Chandler Project is an open source, standards-based information manager designed for personal use and small group collaboration. For more information on the Chandler Desktop 1.0, including the major changes we've

Re: Class definition attribute order

2008-08-09 Thread Michele Simionato
On Aug 10, 12:14 am, thebjorn > > FWIW, I have just finished translating the first > > part of the article and I have posted it on my > > blog on Artima: > > >http://www.artima.com/weblogs/viewpost.jsp?thread=236234 > > Great feature and great article!  I haven't used ABCs yet, so my > initial inst

The wrong approach to things

2008-08-09 Thread teh_sAbEr
Ok, so this isn't necessarily a programming issue, but anyways. I've managed to write that random wallpaper changer i've been wanting to make, but i've run into a little problem. According to the MS Knowledge Base, SystemParametersInfo() can't take a .jpg file as an argument when changing the wallp

Re: internet searching program

2008-08-09 Thread greg
Michael Tobis wrote: I think you are talking about "screen scraping". Your program can get the html for the page, and search for an appropriate pattern. However, it wouldn't be "really fast", because you still have to fetch all the pages that might contain data you're looking for. Google sear

scapy

2008-08-09 Thread jonbutler88
I have macpython 2.5 installed, but I cant seem to get scapy installed. I have downloaded scapy.py, and put it in site-packages, for both my /Library/Python/2.5/site-packages and the one located in / System. Scapy fails to import. Is there another site-packages? Or a better way to install it? I am

some kind of trace facility ?

2008-08-09 Thread Stef Mientki
hello, I want to investigate on a regular base the flow of my Python (most of them using wxPython) programs. So I want to have some log facilty, that logs things like - every time a function / method is called - the time spent in that function / method (or even better start / finish time) - in

Re: "shelve" save object

2008-08-09 Thread John Machin
On Aug 10, 5:32 am, hypermonkey2 <[EMAIL PROTECTED]> wrote: > Hi there! > I am using the "shelve" module in a script to save information in > between runtime sessions of the program. (its a sort of > data collector, so its important to hold on to anything computed ). > In any case, I shelve into a

Re: How to round a floating point to nearest 10?

2008-08-09 Thread Mensanator
On Aug 9, 4:54 pm, John Machin <[EMAIL PROTECTED]> wrote: > On Aug 10, 1:19 am, Mensanator <[EMAIL PROTECTED]> wrote: > > > On Aug 9, 6:31 am, Will Rocisky <[EMAIL PROTECTED]> wrote: > > > > I want my 76.1 to be rounded to decimal 80 and 74.9 to decimal 70. > > > How can I achieve that? > > >>> pri

Re: Win32 trouble with threading, signals, and sleep()

2008-08-09 Thread Tim Golden
Lowell Alleman wrote: I'm running into this issue on Windows with the follow exception at the time when the signal handler is called: Traceback (most recent call last): ... self.done.wait(30) File "D:\Python24\lib\threading.py", line 348, in wait self.__cond.wait(timeout) File "D:

Re: Class definition attribute order

2008-08-09 Thread thebjorn
On Aug 9, 7:55 am, Michele Simionato <[EMAIL PROTECTED]> wrote: > On Aug 5, 5:05 am, Michele Simionato > > > Yep. Seehttp://stacktrace.it/articoli/2008/01/metaclassi-python-3000 > > (I am working on an English translation these days, > > but for the moment you can use Google Translator). > > >  M.

Re: wxPython IDE question

2008-08-09 Thread Mike Driscoll
On Sat, Aug 9, 2008 at 9:13 AM, Samuel Morhaim <[EMAIL PROTECTED]> wrote: > Hi, I know this has been asked many times, but I can't seem to find a real > good IDE for wxPython. > > I look at an application such as testuff.com and I am sure it was written > using wxPython, however the GUI is so clean

RE: How to round a floating point to nearest 10?

2008-08-09 Thread Edwin . Madari
>>> round(76.1, -2) 100.0 >>> round(76.1, -1) 80.0 >>> round(76.1) 76.0 >>> builtin function round, will work for you.. Help on built-in function round in module __builtin__: round(...) round(number[, ndigits]) -> floating point number Round a number to a given precision in

RE: "shelve" save object

2008-08-09 Thread Edwin . Madari
since choice of dbm used by shelve http://docs.python.org/lib/node327.html depends on os, and whats available on it, shevle files saved on one os, most likely do not work on another os, sometimes on similar os but different machines might not work either - goes back to what's available on that m

Re: How to round a floating point to nearest 10?

2008-08-09 Thread John Machin
On Aug 10, 1:19 am, Mensanator <[EMAIL PROTECTED]> wrote: > On Aug 9, 6:31 am, Will Rocisky <[EMAIL PROTECTED]> wrote: > > > I want my 76.1 to be rounded to decimal 80 and 74.9 to decimal 70. > > How can I achieve that? > >>> print '%.0e' % 74.9 > 7e+01 > >>> print '%.0e' % 76.1 > > 8e+01 But: >>>

Re: Ascii to binary conversion

2008-08-09 Thread Terry Reedy
azrael wrote: Any idea how to easily write a function that recieves a character or string and returns a binary number like: ascii("1") is converted to bin("00110001") Other alternatives in 2.6 (I believe) and 3.0: >>> 0b00111010101 469 >>> b='111010101' >>> eval('0b'+b) 469 >>> '{0:b}'.forma

Re: Fastest way to store ints and floats on disk

2008-08-09 Thread John Machin
On Aug 10, 4:58 am, castironpi <[EMAIL PROTECTED]> wrote: > On Aug 7, 2:27 pm, "M.-A. Lemburg" <[EMAIL PROTECTED]> wrote: > > > > > On 2008-08-07 20:41, Laszlo Nagy wrote: > > > > Hi, > > > > I'm working on a pivot table. I would like to write it in Python. I > > > know, I should be doing that in

new e-Book on multicore programming

2008-08-09 Thread threadman
http://www.cilk.com/multicore-e-book New e-Book: "How to Survive the Multicore Revolution (or at Least Survive the Hype)" the ebook covers: - Background on the emergence of mainstream multicore processors - The key challenges facing software developers - An introduction to multithrea

swig and DWMAPI.dll

2008-08-09 Thread Jack
Hello, When I try and compile a C++ project into a _mystuff.pyd file using swig with wxDev-C++ it works. I can import, run and everything else in python. When I try to compile with g++ command line or code::blocks, compiles just fine but when I try to import it I get this error: File "", line 1,

Re: .cpp to .pyd

2008-08-09 Thread Carl Banks
On Aug 9, 7:46 am, [EMAIL PROTECTED] wrote: > On 9 kol, 13:34, [EMAIL PROTECTED] wrote: > > > > > On 9 kol, 01:27, Carl Banks <[EMAIL PROTECTED]> wrote: > > > > On Aug 8, 1:11 pm, [EMAIL PROTECTED] wrote: > > > > > Thanks for quick reply.Maybe I'm crazy but I did what you said and I > > > > stll ge

Re: Missing exceptions in PEP 3107

2008-08-09 Thread Matimus
On Aug 9, 9:08 am, Christoph Zwerschke <[EMAIL PROTECTED]> wrote: > I'm just reading PEP 3107 (function annotations) and wonder why > exceptions are not mentioned there. I think it would be helpful if one > could specify which exceptions can be raised by a function, similarly to > how it is possibl

Re: Ascii to binary conversion

2008-08-09 Thread John Machin
On Aug 10, 12:37 am, azrael <[EMAIL PROTECTED]> wrote: [top-posting corrected] > > On 9 kol, 15:39, John Machin <[EMAIL PROTECTED]> wrote: > > > On Aug 9, 11:18 pm, azrael <[EMAIL PROTECTED]> wrote: > > > > Hy folks, > > > > I googled, and searched, and can not bealive that I have not found a > > >

Re: Video information

2008-08-09 Thread Bill McClain
On 2008-08-09, dusans <[EMAIL PROTECTED]> wrote: > Is there a py module, which would get me information of a movie file: > - resolution > - fps I don't know of one. I use the transcode utilities for this and parse their output. -Bill -- Sattre PressIn the Quar

"shelve" save object

2008-08-09 Thread hypermonkey2
Hi there! I am using the "shelve" module in a script to save information in between runtime sessions of the program. (its a sort of data collector, so its important to hold on to anything computed ). In any case, I shelve into a file "test.txt". I notice that when i try running the program on a di

Re: Fastest way to store ints and floats on disk

2008-08-09 Thread castironpi
On Aug 7, 2:27 pm, "M.-A. Lemburg" <[EMAIL PROTECTED]> wrote: > On 2008-08-07 20:41, Laszlo Nagy wrote: > > > > > > >  Hi, > > > I'm working on a pivot table. I would like to write it in Python. I > > know, I should be doing that in C, but I would like to create a cross > > platform version which c

Re: kill thread

2008-08-09 Thread Mathieu Prevot
2008/8/8 <[EMAIL PROTECTED]>: > On 8 Ago, 10:03, "Mathieu Prevot" <[EMAIL PROTECTED]> wrote: >> 2008/8/8 Miki <[EMAIL PROTECTED]>: >> >> > Hello, >> >> >> I have a threading.Thread class with a "for i in range(1,50)" loop >> >> within. When it runs and I do ^C, I have the error [1] as many as >> >

Re: wxPython IDE question

2008-08-09 Thread Banibrata Dutta
This is generally a easy-find on 'google', or your favourite search-engine! :-) ... and of course the Python Wiki too... http://wxglade.sourceforge.net/ http://boa-constructor.sourceforge.net/ are the free ones most often cited, and I'm sure there are others. From a pure IDE (non Visual GUI compo

Re: Extract string from log file

2008-08-09 Thread josephtys86
On Aug 9, 11:22 pm, [EMAIL PROTECTED] wrote: > from each line separate out url and request parts. split the request into > key-value pairs, use urllib to unquote key-value pairs..as show below... > > import urllib > line = "GET > /stat.gif?stat=v&c=F-Secure&v=1.1%20Build%2014231&s=av%7BNorton

Re: internet searching program

2008-08-09 Thread alex23
On Aug 9, 12:59 pm, KillSwitch <[EMAIL PROTECTED]> wrote: > Is it possible to make a program to search a site on the internet, > then get certain information from the web pages that match and display > them? Like, you would put in keywords to be searched for on > youtube.com, then it would search y

Missing exceptions in PEP 3107

2008-08-09 Thread Christoph Zwerschke
I'm just reading PEP 3107 (function annotations) and wonder why exceptions are not mentioned there. I think it would be helpful if one could specify which exceptions can be raised by a function, similarly to how it is possible in C++ using the "throw" clause. The syntax would be something like

Re: internet searching program

2008-08-09 Thread Michael Tobis
I think you are talking about "screen scraping". Your program can get the html for the page, and search for an appropriate pattern. Look at the source for a YouTube view page and you will see a string var embedUrl = 'http:// You can write code to search for that in the html text.

Video information

2008-08-09 Thread dusans
Is there a py module, which would get me information of a movie file: - resolution - fps -- http://mail.python.org/mailman/listinfo/python-list

Constructing MIME message without loading message stream

2008-08-09 Thread Kris Kennaway
I would like to MIME encode a message from a large file without first loading the file into memory. Assume the file has been pre-encoded on disk (actually I am using encode_7or8bit, so the encoding should be null). Is there a way to construct the flattened MIME message such that data is strea

Re: Ascii to binary conversion

2008-08-09 Thread azrael
You see, I don't like reading some tutorials. I pick myself a problem and look for ways to slove it. I am using Python for about 2 years, but mostly for image processing. As you say, ord is oposite to chr. I learn by example. thnx guys, this looks great On 9 kol, 16:47, Larry Bates <[EMAIL PROTE

Re: internet searching program

2008-08-09 Thread KillSwitch
No, I mean to search the internet really fast and display only REALLY SPECIFIC information about certain web pages. Like, stuff Google wouldn't have. For instance, in the youtube example, it would name the names of the videos, the url's of them, and the EMBED information without you having to view

RE: Extract string from log file

2008-08-09 Thread Edwin . Madari
from each line separate out url and request parts. split the request into key-value pairs, use urllib to unquote key-value pairs..as show below... import urllib line = "GET /stat.gif?stat=v&c=F-Secure&v=1.1%20Build%2014231&s=av%7BNorton%20360%20%28Symantec%20Corporation%29+69%3B%7Dsw%7BNorto

Re: How to round a floating point to nearest 10?

2008-08-09 Thread Mensanator
On Aug 9, 6:31�am, Will Rocisky <[EMAIL PROTECTED]> wrote: > I want my 76.1 to be rounded to decimal 80 and 74.9 to decimal 70. > How can I achieve that? >>> print '%.0e' % 74.9 7e+01 >>> print '%.0e' % 76.1 8e+01 -- http://mail.python.org/mailman/listinfo/python-list

Re: Extract string from log file

2008-08-09 Thread Larry Bates
[EMAIL PROTECTED] wrote: 203.114.10.66 - - [01/Aug/2008:05:41:21 +0300] "GET /stat.gif? stat=v&c=F-Secure&v=1.1%20Build%2014231&s=av%7BNorton %20360%20%28Symantec%20Corporation%29+69%3B%7Dsw%7BNorton %20360%20%28Symantec%20Corporation%29+69%3B%7Dfw%7BNorton %20360%20%28Symantec%20Corporation%29+5

Re: list question... unique values in all possible unique spots

2008-08-09 Thread Mensanator
On Aug 9, 8:05�am, ToshiBoy <[EMAIL PROTECTED]> wrote: > I'm wondering how to do this the most elegant way: I found this quiz > in some magazine. I've already solved it on paper, but want to write a > python program to solve it. It comes down to being able to represent > range(1,27) through a numbe

Re: Ascii to binary conversion

2008-08-09 Thread Mensanator
On Aug 9, 8:18�am, azrael <[EMAIL PROTECTED]> wrote: > Hy folks, > > I googled, and searched, and can not bealive that I have not found a > built in way to convert the easy and elegant python way a function to > easily convert simple ascii data to binary and back. > > I've written some my own but t

Re: Ascii to binary conversion

2008-08-09 Thread Larry Bates
azrael wrote: looks nice. is there an oposite function of ord() so I could also bring a binary number also back to ascii. the speed matters if you plan to exchange about 10 M ascii chars and don't wont to wait a year for the results. :) On 9 kol, 15:39, John Machin <[EMAIL PROTECTED]> wrote:

Extract string from log file

2008-08-09 Thread josephtys86
203.114.10.66 - - [01/Aug/2008:05:41:21 +0300] "GET /stat.gif? stat=v&c=F-Secure&v=1.1%20Build%2014231&s=av%7BNorton %20360%20%28Symantec%20Corporation%29+69%3B%7Dsw%7BNorton %20360%20%28Symantec%20Corporation%29+69%3B%7Dfw%7BNorton %20360%20%28Symantec%20Corporation%29+5%3B%7Dv%7BMicrosoft%20Windo

Re: Large production environments using ZODB/ZOE?

2008-08-09 Thread Larry Bates
Phillip B Oldham wrote: I've been reading a lot recently on ZODB/ZOE, but I've not seen any reference to its use in large-scale production envrironments. Are there any real-world examples of ZODB/ZOE in use for a large system? By large, I'm thinking in terms of both horizontally-scaled systems a

Re: Ascii to binary conversion

2008-08-09 Thread azrael
looks nice. is there an oposite function of ord() so I could also bring a binary number also back to ascii. the speed matters if you plan to exchange about 10 M ascii chars and don't wont to wait a year for the results. :) On 9 kol, 15:39, John Machin <[EMAIL PROTECTED]> wrote: > On Aug 9, 11:1

wxPython IDE question

2008-08-09 Thread Samuel Morhaim
Hi, I know this has been asked many times, but I can't seem to find a real good IDE for wxPython. I look at an application such as testuff.com and I am sure it was written using wxPython, however the GUI is so clean and robust that I can't imagine them not using an IDE with those characteristics.

Re: Ascii to binary conversion

2008-08-09 Thread John Machin
On Aug 9, 11:18 pm, azrael <[EMAIL PROTECTED]> wrote: > Hy folks, > > I googled, and searched, and can not bealive that I have not found a > built in way to convert the easy and elegant python way a function to > easily convert simple ascii data to binary and back. > > I've written some my own but

Re: list question... unique values in all possible unique spots

2008-08-09 Thread George Sakkis
On Aug 9, 9:05 am, ToshiBoy <[EMAIL PROTECTED]> wrote: > I'm wondering how to do this the most elegant way: I found this quiz > in some magazine. I've already solved it on paper, but want to write a > python program to solve it. It comes down to being able to represent > range(1,27) through a numb

Ascii to binary conversion

2008-08-09 Thread azrael
Hy folks, I googled, and searched, and can not bealive that I have not found a built in way to convert the easy and elegant python way a function to easily convert simple ascii data to binary and back. I've written some my own but they were pretty slow using binascii linbrary with hexifly and unh

list question... unique values in all possible unique spots

2008-08-09 Thread ToshiBoy
I'm wondering how to do this the most elegant way: I found this quiz in some magazine. I've already solved it on paper, but want to write a python program to solve it. It comes down to being able to represent range(1,27) through a number of formulas. How do I write a loop that will loop through thi

Re: Why is ::= used as assignment operator in doc statements?

2008-08-09 Thread Colin J. Williams
Ben Finney wrote: [EMAIL PROTECTED] writes: Why is statments expressed with ::= as the assigning operator? like: http://docs.python.org/ref/grammar.txt That page is part of the language reference. It shows, not Python code, but a description of part of the Python grammar. See §1.2 http://www

Re: How to round a floating point to nearest 10?

2008-08-09 Thread Daniel Klein
On Sat, 9 Aug 2008 04:31:38 -0700 (PDT), Will Rocisky <[EMAIL PROTECTED]> wrote: >I want my 76.1 to be rounded to decimal 80 and 74.9 to decimal 70. >How can I achieve that? >>> for n in (74.9, 76.1): print int((n+5)/10)*10 70 80 Dan -- http://mail.python.org/mailman/listinfo/python-lis

Re: mktime overflow in March 2008?

2008-08-09 Thread Robert Latest
Tim Roberts wrote: > What time zone are you in? March 30, 2008, was a Sunday. If that happened > to be the date your country transitioned to summer time, then the hour > between 2 AM and 3 AM would not exist. > > Does it work if you use 3:43 AM? Actually you're right; I'm in Middle Europe, and D

Re: How to round a floating point to nearest 10?

2008-08-09 Thread Will Rocisky
On Aug 9, 5:46 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > Will Rocisky wrote: > > I want my 76.1 to be rounded to decimal 80 and 74.9 to decimal 70. > > How can I achieve that? > >>> help(round) > > Help on built-in function round in module __builtin__: > > round(...) >     round(number[, ndigits

Re: .cpp to .pyd

2008-08-09 Thread vedrandekovic
On 9 kol, 13:34, [EMAIL PROTECTED] wrote: > On 9 kol, 01:27, Carl Banks <[EMAIL PROTECTED]> wrote: > > > On Aug 8, 1:11 pm, [EMAIL PROTECTED] wrote: > > > > Thanks for quick reply.Maybe I'm crazy but I did what you said and I > > > stll get the same error :(  :(  :( :(.I have boost version 1.34.1 a

Re: How to round a floating point to nearest 10?

2008-08-09 Thread Peter Otten
Will Rocisky wrote: > I want my 76.1 to be rounded to decimal 80 and 74.9 to decimal 70. > How can I achieve that? >>> help(round) Help on built-in function round in module __builtin__: round(...) round(number[, ndigits]) -> floating point number Round a number to a given precision in

Re: How to round a floating point to nearest 10?

2008-08-09 Thread John Machin
On Aug 9, 9:31 pm, Will Rocisky <[EMAIL PROTECTED]> wrote: > I want my 76.1 to be rounded to decimal 80 and 74.9 to decimal 70. > How can I achieve that? >>> import decimal >>> [decimal.Decimal(int(round(x, -1))) for x in (76.1, 74.9)] [Decimal("80"), Decimal("70")] >>> -- http://mail.python.org

Re: Fastest way to store ints and floats on disk

2008-08-09 Thread Matthew Woodcraft
Laszlo Nagy <[EMAIL PROTECTED]> writes: > The facts table cannot be kept in memory because it is too big. I need to > store it on disk, be able to read incrementally, and make statistics. In most > cases, the "statistic" will be simple sum of the measures, and counting the > number of facts affect

Second mortgage loans

2008-08-09 Thread Antony Vijayendran
The arrears rate stood at 1.33 percent of all mortgages by the end of the first half, up from 1.10 percent at the end of 2007 and 1.02 percent at the end of the first half of last year, the CML said. The CML is maintaining its forecast of 45,000 total possessions and 170,000 mortgages in arrears o

Re: .cpp to .pyd

2008-08-09 Thread vedrandekovic
On 9 kol, 01:27, Carl Banks <[EMAIL PROTECTED]> wrote: > On Aug 8, 1:11 pm, [EMAIL PROTECTED] wrote: > > > Thanks for quick reply.Maybe I'm crazy but I did what you said and I > > stll get the same error :(  :(  :( :(.I have boost version 1.34.1 and > > I'm > > running it on Windows XP SP2. > > Whi

How to round a floating point to nearest 10?

2008-08-09 Thread Will Rocisky
I want my 76.1 to be rounded to decimal 80 and 74.9 to decimal 70. How can I achieve that? -- http://mail.python.org/mailman/listinfo/python-list

cresitrepair

2008-08-09 Thread raj
hi guys you can download the softwares and can get the latest tips and tricks about computers in this blog so just visit hte site and enjoy. If you don't gat what you want try the ads given there and son't forger to search in google search box what you want. the site is www.creditrepairs

invite friends: contact list importing from hotmail, yahoo, gmail etc.

2008-08-09 Thread Sanjay
Hi All, I googled a lot trying to find out any FOSS python software for the above, but could not find one. Any pointers would be of vital help. thanks, Sanjay -- http://mail.python.org/mailman/listinfo/python-list

Free Mobile Softwares

2008-08-09 Thread Majestic_Mbl
Http://www.mobilestreet.net Mobilestreet Download Free Mobile Stuff From Mobile Street. Largest Collection of Mobile Stuff On Internet , Themes , Games , Islamic Section , Ringtones, Funny Movies and Naat Much More Avaliable, Nokia , Sony Ericsson, Motorola, Smart Phones, Pocket Pc and Much More..

[EMAIL PROTECTED]

2008-08-09 Thread [EMAIL PROTECTED]
FLJ. -- http://mail.python.org/mailman/listinfo/python-list

ANN: eric 4.2.0 released

2008-08-09 Thread Detlev Offenbach
Hi, I am proud to announce the immediate availability of eric 4.2.0. It is available via http://www.die-offenbachs.de/eric/index.html. The highlight of changes are as follows. APIs: - added API file for Ruby - added Ruby API file for eric4 Ruby files - enhanced the API file generation tool and

ANN: P4D 1.2

2008-08-09 Thread Kay Schluehr
P4D = E4X style embedded DSL for Python but without E and X. The main feature of P4D 1.2 are *Bytelets*. While the primary purpose of P4D 1.1 was the support textual data which can be considered as isomorphic to XML the new release is focussed on binary data. Bytelets are P4D objects that are asse

Re: Why is ::= used as assignment operator in doc statements?

2008-08-09 Thread Ben Finney
[EMAIL PROTECTED] writes: > Why is statments expressed with ::= as the assigning operator? > like: http://docs.python.org/ref/grammar.txt That page is part of the language reference. It shows, not Python code, but a description of part of the Python grammar. See §1.2 http://www.python.org/doc/ref

Re: Tkinter Entry widgets 'font' property (API ?) changed in Python 2.5.2 ?

2008-08-09 Thread Atul
Hi Eric, Thanks for your response. > Tkinter is a very thin wrapper over an embedded tcl/tk interpreter. So I   > guess the API change is caused by a tcl/tk version change, not by a Python   > one. You can check the version of the tcl/tk interpreter you're using from   > Python via: > > root = Tk

Re: Problem with global variables

2008-08-09 Thread Nick Craig-Wood
Anthony Kuhlman <[EMAIL PROTECTED]> wrote: > Pythoners, > I'm having trouble understanding the behavior of global variables in a > code I'm writing. I have a file, test.py, with the following contents > > foo = [] > > def goo(): > global foo > foo = [] > foo.append(2) > > d

Re: Class definition attribute order

2008-08-09 Thread Michele Simionato
On Aug 5, 5:05 am, Michele Simionato > Yep. Seehttp://stacktrace.it/articoli/2008/01/metaclassi-python-3000 > (I am working on an English translation these days, > but for the moment you can use Google Translator). > >  M. Simionato FWIW, I have just finished translating the first part of the arti

Re: mktime overflow in March 2008?

2008-08-09 Thread Tim Roberts
Robert Latest <[EMAIL PROTECTED]> wrote: > >Here's what happens on my Windows machine (Win XP / Cygwin) at work. >I've googled a bit about this problem but only found references to >instances where people referred to dates before the Epoch. > >Of course at home on my Linux box everything works. > >

Re: interpreter vs. compiled

2008-08-09 Thread castironpi
On Aug 5, 2:09 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Regarding exploring processor instructions. > > Lets say you compile a C program targeting x86 architecture, with > optimizations > turned on for speed, and let the compiler automatic select MMX and SSE > instructions > for numeric

Re: relative imports improve program organization... suggestions?

2008-08-09 Thread castironpi
On Aug 8, 12:37 pm, DG <[EMAIL PROTECTED]> wrote: > Alright, I have searched and searched and read many conversations on > the topic of relative and absolute imports and am still not getting > the whole thing through my skull. > > Highlights of what I've > read:http://mail.python.org/pipermail/pyt

Re: internet searching program

2008-08-09 Thread Steven D'Aprano
On Fri, 08 Aug 2008 19:59:02 -0700, KillSwitch wrote: > Is it possible to make a program to search a site on the internet, then > get certain information from the web pages that match and display them? > Like, you would put in keywords to be searched for on youtube.com, then > it would search yout