-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
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
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
>>>
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
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
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
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
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
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
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
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
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
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
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
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:
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.
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
>>> 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
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
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:
>>>
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
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
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
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,
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
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
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
> > >
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
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
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
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
>> >
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
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
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
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
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.
Is there a py module, which would get me information of a movie file:
- resolution
- fps
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
[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
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
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
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:
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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..
FLJ.
--
http://mail.python.org/mailman/listinfo/python-list
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
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
[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
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
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
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
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.
>
>
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
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
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
79 matches
Mail list logo