Devon, 24.10.2010 01:40:
I must quickly and efficiently parse some data contained in multiple
XML files in order to perform some learning algorithms on the data.
I have thousands of files, each file corresponds to a single song.
Each XML file contains information extracted from the song (called
sorry 4 the sillu question.
I've designed a GUI. How can I center on the screen? (i.e. it's always
launched in the center of the screen)
cheers,
Alex
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, Oct 24, 2010 at 12:21 AM, Jah_Alarm wrote:
> sorry 4 the sillu question.
>
> I've designed a GUI. How can I center on the screen? (i.e. it's always
> launched in the center of the screen)
Which GUI toolkit did you use?
Cheers,
Chris
--
http://mail.python.org/mailman/listinfo/python-list
I want to start python, I have just downloaded python compiler, Can
somebody please tell me what python really is and explain its
architecture, in what problems it is used and from where should I
start?
--
http://mail.python.org/mailman/listinfo/python-list
hi, I'm using Tkinter
cheers,
Alex
On 24 окт, 20:26, Chris Rebert wrote:
> On Sun, Oct 24, 2010 at 12:21 AM, Jah_Alarm wrote:
> > sorry 4 the sillu question.
>
> > I've designed a GUI. How can I center on the screen? (i.e. it's always
> > launched in the center of the screen)
>
> Which GUI too
On Sun, Oct 24, 2010 at 12:29 AM, Hrishikesh wrote:
> I want to start python, I have just downloaded python compiler,
Most consider it an interpreter (though it does compile the source
code into high-level bytecode).
> Can
> somebody please tell me what python really is
A programming language.
Hrishikesh writes:
> I want to start python, I have just downloaded python compiler, Can
> somebody please tell me what python really is and explain its
> architecture, in what problems it is used and from where should I
> start?
I would start by looking at
http://www.python.org
To learn P
On Oct 24, 12:48 am, Arnaud Delobelle wrote:
> Hrishikesh writes:
> > I want to start python, I have just downloaded python compiler, Can
> > somebody please tell me what python really is and explain its
> > architecture, in what problems it is used and from where should I
> > start?
>
> I would
Hrishikesh writes:
> Thanks guys,
>
> I knew its an interpreter, mistakenly put compiler [...]
Oops! You just started a flame war ;)
--
Arnaud
--
http://mail.python.org/mailman/listinfo/python-list
Am 24.10.2010 07:01, schrieb Steve Holden:
> I was somewhat surprised to discover that Python 3 no longer allows an
> exception to be raised in an except clause (or rather that it reports it
> as a separate exception that occurred during the handling of the first).
I think you are misinterpreting
Jah_Alarm wrote:
> hi, I'm using Tkinter
>
> cheers,
>
> Alex
>
> On 24 окт, 20:26, Chris Rebert wrote:
>> On Sun, Oct 24, 2010 at 12:21 AM, Jah_Alarm wrote:
>> > sorry 4 the sillu question.
>>
>> > I've designed a GUI. How can I center on the screen? (i.e. it's always
>> > launched in the ce
*** Fundamental Right of Every Child
Education is a human right with immense power to transform. On its
foundation rest the cornerstones of freedom, democracy and sustainable
human development."Education is an act or experience that has a
formative effect on the mind, character or physical p
Hello,
I'm looking for a tool which can read Python files and write
a corresponding XMI file for import into UML tools.
Ideally, the conversion tool should:
- be open source or freeware
- be available for Linux
- be a command line tool
- allow to specify exactly the Python files that should t
<<< What Online University Scholarships Are Available? >>>
Contrary to what you might believe, college scholarships and grants
are available to students other than those with a perfect SAT score,
or the star of the basketball team. They are available for every type
of student interested in a highe
Steve Holden wrote:
> On 10/24/2010 1:26 AM, Chris Rebert wrote:
>>> I was somewhat surprised to discover that Python 3 no longer allows an
>>> > exception to be raised in an except clause (or rather that it reports
>>> > it as a separate exception that occurred during the handling of the
>>> > fi
On 2:59 PM, Lawrence D'Oliveiro wrote:
In message
, Dave Angel wrote:
Presumably the original pythonw.exe was called that because it's marked
as a windows-app. In win-speak, that means it has a gui. Applications
that are not so-marked are console-apps, and get a console created if
they weren't
Hi,
I'm trying to use the interactive mode under DOS for Python 2.7. As a
newbie, I do NOT know what is the following problem:
>>>world_is_flat=1
>>>if world_is_flat:
. . . print "be carefule to be not fall out!"
File "", line 2
print "be carefule to be not fall out!"
^
In
On 10/24/10 21:37, huisky wrote:
> Hi,
>
> I'm trying to use the interactive mode under DOS for Python 2.7. As a
> newbie, I do NOT know what is the following problem:
>
world_is_flat=1
if world_is_flat:
> .. . . print "be carefule to be not fall out!"
> File "", line 2
> prin
huisky wrote:
> Hi,
>
> I'm trying to use the interactive mode under DOS for Python 2.7. As a
> newbie, I do NOT know what is the following problem:
>
world_is_flat=1
if world_is_flat:
> . . . print "be carefule to be not fall out!"
> File "", line 2
> print "be carefule to be
On 10/24/2010 4:48 AM, Martin v. Loewis wrote:
> Am 24.10.2010 07:01, schrieb Steve Holden:
>> I was somewhat surprised to discover that Python 3 no longer allows an
>> exception to be raised in an except clause (or rather that it reports it
>> as a separate exception that occurred during the handl
On 10/24/2010 3:29 AM, Hrishikesh wrote:
> I want to start python, I have just downloaded python compiler, Can
> somebody please tell me what python really is and explain its
> architecture, in what problems it is used and from where should I
> start?
If you don't know the answers to *any* of thos
On 10/24/2010 2:22 AM, Lawrence D'Oliveiro wrote:
> In message , Steve
> Holden wrote:
>
>> I was somewhat surprised to discover that Python 3 no longer allows an
>> exception to be raised in an except clause (or rather that it reports it
>> as a separate exception that occurred during the handli
Need Google AdWords Coupons $100,$75,$50 ..
Contact me at turnier76 @ gmail.com
Only @ Cheap Rates.
--
http://mail.python.org/mailman/listinfo/python-list
Devon writes:
> I must quickly and efficiently parse some data contained in multiple
> XML files in order to perform some learning algorithms on the data.
> Info:
>
> I have thousands of files, each file corresponds to a single song.
> Each XML file contains information extracted from the song (c
I thought about that. I won't use decorators for all the things. I
will use it only to free the simulator users to set which methods they
wanna log or save in a statistic, eq.: number of packets sent,
received, lost...
2010/10/24, Tim Roberts :
> Felipe Bastos Nunes wrote:
>>
>>Hi! I was looking
On 27/09/2010 20:44, Ken Watford wrote:
On Mon, Sep 27, 2010 at 1:15 PM, Tim Diels wrote:
On 27/09/2010 09:02, Chris Rebert wrote:
On Sun, Sep 26, 2010 at 11:56 PM, Tim Dielswrote:
Hi all
I've just switched to python3 and it turns out my current API
documentation
generator (epydoc) no
On 10/24/10 16:01, Steve Holden wrote:
> I was somewhat surprised to discover that Python 3 no longer allows an
> exception to be raised in an except clause (or rather that it reports it
> as a separate exception that occurred during the handling of the first).
FYI, Java has a similar behavior. In
On Oct 24, 1:15 pm, Peter Otten <__pete...@web.de> wrote:
> huisky wrote:
> > Hi,
>
> > I'm trying to use the interactive mode under DOS for Python 2.7. As a
> > newbie, I do NOT know what is the following problem:
>
> world_is_flat=1
> if world_is_flat:
> > . . . print "be carefule to be n
Hello
I was wondering if there is an existing function that would let me
determine the difference in time. To explain:
Upon starting a program:
startup = time.time()
After some very long processing:
now = time.time()
On, doing now - startup I want the program to return in terms of days. How
On 10/24/2010 1:55 PM, mukkera harsha wrote:
> Hello
> I was wondering if there is an existing function that would let me
> determine the difference in time. To explain:
>
> Upon starting a program:
>
> startup = time.time()
>
> After some very long processing:
> now = time.time()
>
>
On 10/24/2010 07:55 PM, mukkera harsha wrote:
On, doing now - startup I want the program to return in terms of days. How ?
>>> import datetime
>>> now = datetime.datetime.now()
>>> after_few_seconds = datetime.datetime.now()
>>> after_few_seconds - now
datetime.timedelta(0, 14, 256614)
>>> (aft
Hi Sebastian,
On 2010-10-21 00:27, Sebastian wrote:
> Is there a simpler way to yield all elements of a sequence than this?
> for x in xs:
> yield x
Can you give an example where you would need this? Can't
you just iterate over the sequence? If you really need an
iterator, you can use `iter(s
I'm not able to find the shared library version of Python3 on my Mac.
There are libpython.dylib things for Python2. There is a Python3
libpython.a static lib.
The docs on linking indicate a serious problem, there is mention
of applications containing symbols needed by dynamically loaded
extension
Hello,
I wanted to use python to scrub an html file for score data, but I'm
having trouble.
I'm using HTMLParser, and the parsing seems to fizzle out around line
192 or so. None of the event functions are being called anymore
(handle_starttag, handle_endtag, etc.) and I don't understand why,
becau
On Oct 24, 4:36 pm, josh logan wrote:
> Hello,
>
> I wanted to use python to scrub an html file for score data, but I'm
> having trouble.
> I'm using HTMLParser, and the parsing seems to fizzle out around line
> 192 or so. None of the event functions are being called anymore
> (handle_starttag, ha
On 10/23/2010 10:42 PM, Steve Holden wrote:
On 10/24/2010 1:26 AM, Chris Rebert wrote:
I was somewhat surprised to discover that Python 3 no longer
allows an
exception to be raised in an except clause (or rather that it
reports it as a separate exception that occurred during the
handling of the
On Sun, Oct 24, 2010 at 4:15 PM, john skaller
wrote:
> I'm not able to find the shared library version of Python3 on my Mac.
> There are libpython.dylib things for Python2. There is a Python3
> libpython.a static lib.
>
>
> The docs on linking indicate a serious problem, there is mention
> of app
On Oct 24, 7:31 am, Steve Holden wrote:
> On 10/24/2010 3:29 AM, Hrishikesh wrote:
>
> > I want to start python, I have just downloaded python compiler, Can
> > somebody please tell me what python really is and explain its
> > architecture, in what problems it is used and from where should I
> > s
On 10/24/2010 4:44 PM, John Nagle wrote:
> Are exception semantics changing in a way which would affect that?
No, I don't believe so. I simply felt that the traceback gives too much
information in the case where an exception is specifically being raised
to replace the one currently being handled.
On 10/24/2010 5:19 PM, rantingrick wrote:
> On Oct 24, 7:31 am, Steve Holden wrote:
>> On 10/24/2010 3:29 AM, Hrishikesh wrote:
>>
>>> I want to start python, I have just downloaded python compiler, Can
>>> somebody please tell me what python really is and explain its
>>> architecture, in what pro
I tried the following...
#!/usr/bin/python
class foo:
def first(self):
print "Chad "
def last(self):
print "A "
x = foo()
y = x.first()
y.last()
But when I ran it, I got the following...
[cdal...@localhost oakland]$ ./chain.py
Chad
Traceback (most recent call last):
On Sun, Oct 24, 2010 at 3:47 PM, chad wrote:
> How do I chain methods?
> I tried the following...
>
> #!/usr/bin/python
>
> class foo:
> def first(self):
> print "Chad "
>
> def last(self):
> print "A "
>
> x = foo()
> y = x.first()
> y.last()
>
> But when I ran it, I got the f
On 24Oct2010 20:58, Stefan Schwarzer wrote:
| On 2010-10-21 00:27, Sebastian wrote:
| > Is there a simpler way to yield all elements of a sequence than this?
| > for x in xs:
| > yield x
|
| Can you give an example where you would need this? Can't
| you just iterate over the sequence?
The us
On Mon, Oct 25, 2010 at 8:47 AM, chad wrote:
> I tried the following...
>
>
>
> #!/usr/bin/python
>
> class foo:
> def first(self):
> print "Chad "
>
> def last(self):
> print "A "
>
> x = foo()
> y = x.first()
> y.last()
>
> But when I ran it, I got the following...
>
> [cdal.
On Mon, Oct 25, 2010 at 9:02 AM, Chris Rebert wrote:
> Method chaining is usually* not idiomatic in Python.
I don't agree but anyway... I've just not seen it commonly used
amongst python programmers.
cheers
James
--
-- James Mills
--
-- "Problems are solved by method"
--
http://mail.python.or
On Oct 24, 4:11 pm, James Mills wrote:
> On Mon, Oct 25, 2010 at 9:02 AM, Chris Rebert wrote:
> > Method chaining is usually* not idiomatic in Python.
>
> I don't agree but anyway... I've just not seen it commonly used
> amongst python programmers.
>
> cheers
> James
>
I just saw this technique
Hi Cameron,
On 2010-10-25 01:08, Cameron Simpson wrote:
> On 24Oct2010 20:58, Stefan Schwarzer wrote:
> | On 2010-10-21 00:27, Sebastian wrote:
> | > Is there a simpler way to yield all elements of a sequence than this?
> | > for x in xs:
> | > yield x
> |
> | Can you give an example where y
On Mon, Oct 25, 2010 at 9:21 AM, chad wrote:
> I just saw this technique used in python script that was/is used to
> automatically log them in myspace.com. Hence the question.
Function/Method Chaining is probably used a lot in Python itself:
>>> x = 4
>>> x.__add__(1).__sub__(3)
2
The implement
Steve Holden writes:
> I simply felt that the traceback gives too much information in the
> case where an exception is specifically being raised to replace the
> one currently being handled.
Ideally, that description of the problem would suggest the obvious
solution: replace the class of the exc
On 10/24/2010 7:39 PM, James Mills wrote:
> On Mon, Oct 25, 2010 at 9:21 AM, chad wrote:
>> I just saw this technique used in python script that was/is used to
>> automatically log them in myspace.com. Hence the question.
>
> Function/Method Chaining is probably used a lot in Python itself:
>
>>
"Tim Roberts" wrote in message
news:5na7c6dlv0qii3pta58as50lmjcrrtk...@4ax.com...
Baba wrote:
a^a + b^b = c^c is the condition to satisfy
No, it's not. It's a^2 + b^2 = c^2, where a, b, and c are integers.
Perhaps you meant a*a + b*b = c*c.
Or possibly a**2 + b**2 = c**2
and i need t
On 25Oct2010 01:37, Stefan Schwarzer wrote:
| From the question and the code snippet the OP gave I assumed
| he meant that there already was a sequence (i. e. linear
| structure) to begin with.
I suspected that was your interpretation.
| By the way, I think a well-known example of what you
| des
I'm designing a system that will be very memory hungry unless it
is "garbage-collected" very aggressively.
In the past I have had disappointing results with the gc module:
I noticed practically no difference in memory usage with and without
it. It is possible, however, that I was not measuring
In message , Piet van Oostrum
wrote:
> With xsltproc song.xsl song*.xml you would get your output.
> No python necessary.
Is that supposed to be some kind of advantage?
--
http://mail.python.org/mailman/listinfo/python-list
In message , Dave Angel
wrote:
> On 2:59 PM, Lawrence D'Oliveiro wrote:
>>
>> In message
>> , Dave Angel wrote:
>>
>>> Presumably the original pythonw.exe was called that because it's marked
>>> as a windows-app. In win-speak, that means it has a gui. Applications
>>> that are not so-marked are c
In message , Steve
Holden wrote:
> Yes, *if the exception is caught* then it doesn't make any difference.
> If the exception creates a traceback, however, I maintain that the
> additional information is confusing to the consumer (while helpful to
> the debugger of the consumed code).
Who needs t
On 25/10/2010 02:19, Lawrence D'Oliveiro wrote:
In message, Dave Angel
wrote:
On 2:59 PM, Lawrence D'Oliveiro wrote:
In message
, Dave Angel wrote:
Presumably the original pythonw.exe was called that because it's marked
as a windows-app. In win-speak, that means it has a gui. Applications
t
On Oct 24, 4:38 pm, josh logan wrote:
> On Oct 24, 4:36 pm, josh logan wrote:
>
>
>
>
>
> > Hello,
>
> > I wanted to use python to scrub an html file for score data, but I'm
> > having trouble.
> > I'm using HTMLParser, and the parsing seems to fizzle out around line
> > 192 or so. None of the ev
On Mon, 25 Oct 2010 09:39:47 +1000, James Mills wrote:
> On Mon, Oct 25, 2010 at 9:21 AM, chad wrote:
>> I just saw this technique used in python script that was/is used to
>> automatically log them in myspace.com. Hence the question.
>
> Function/Method Chaining is probably used a lot in Python
On Mon, Oct 25, 2010 at 12:49 PM, Steven D'Aprano
wrote:
> ...if you're writing x.__add__(1).__sub__(3) instead of x + 1 - 3 then
> you're almost certainly doing it wrong.
It was just an example :) ... And this isn't python-tutor
--James
--
-- James Mills
--
-- "Problems are solved by method"
On Mon, Oct 25, 2010 at 9:39 AM, James Mills
wrote:
> Function/Method Chaining is probably used a lot in Python itself:
>
x = 4
x.__add__(1).__sub__(3)
> 2
>
> The implementation of many common operators return self (the object
> you're working with).
My apologies, this was a terribly e
Announcing the 0.3 release of littletable (the module formerly known
as dulce). The version includes (thanks to much help from Colin
McPhail, thanks Colin!):
- support for namedtuples as table objects
- Python 3 compatibility
- Table.pivot() to summarize record counts by 1 or 2 table attributes
l
On Sun, Oct 24, 2010 at 4:11 PM, James Mills
wrote:
> On Mon, Oct 25, 2010 at 9:02 AM, Chris Rebert wrote:
>> Method chaining is usually* not idiomatic in Python.
>
> I don't agree but anyway... I've just not seen it commonly used
> amongst python programmers.
If Python wanted to encourage metho
On 10/24/2010 7:51 PM, Ben Finney wrote:
> which means, AFAICT, that re-binding ‘__class__’ is only allowed for
> objects of a type defined in the Python run-time heap, not those defined
> in C code (like the built-in-exception types).
Yeah, that's a given. Ruby would probably let you do that, but
On 10/24/2010 8:39 PM, kj wrote:
> What's the most accurate way to monitor memory consumption in a
> Python program, and thereby ensure that gc is working properly?
Trust me, it is. But don't forget that CPython doesn't actually *use*
the garbage collector until you start to create cyclic data str
On 10/24/2010 11:42 PM, Chris Rebert wrote:
> On Sun, Oct 24, 2010 at 4:11 PM, James Mills
> wrote:
>> On Mon, Oct 25, 2010 at 9:02 AM, Chris Rebert wrote:
>>> Method chaining is usually* not idiomatic in Python.
>>
>> I don't agree but anyway... I've just not seen it commonly used
>> amongst pyt
On 10/24/2010 9:40 PM, MRAB wrote:
> On 25/10/2010 02:19, Lawrence D'Oliveiro wrote:
>> In message, Dave
>> Angel
>> wrote:
>>
>>> On 2:59 PM, Lawrence D'Oliveiro wrote:
In message
, Dave Angel wrote:
> Presumably the original pythonw.exe was called that because it's
> m
In message , Petite
Abeille wrote:
> Characters vs. Bytes
And why do certain people insist on referring to bytes as “octets”?
--
http://mail.python.org/mailman/listinfo/python-list
In message , Chris Rebert
wrote:
> There is no such thing as "plain Unicode representation".
UCS-4 or UTF-16 probably come the closest.
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, Oct 24, 2010 at 10:43 PM, Lawrence D'Oliveiro
wrote:
> In message , Chris Rebert
> wrote:
>
>> There is no such thing as "plain Unicode representation".
>
> UCS-4 or UTF-16 probably come the closest.
How do you figure that?
Cheers,
Chris
--
http://mail.python.org/mailman/listinfo/python
Google Adsense Account For Cheap rate : p.sathi...@gmail.com
> On Wednesday, March 31, 2010 4:18 PM SWETHA wrote:
> Genuine Google Adsense Account for Rs.300/-
>
> We will approve your google adsense approval.
>
> We will help you till you get the first adsense check.
>
> Please send your mobi
On 10/25/2010 1:42 AM, Lawrence D'Oliveiro wrote:
> In message , Petite
> Abeille wrote:
>
>> Characters vs. Bytes
>
> And why do certain people insist on referring to bytes as “octets”?
Because back in the old days bytes were of varying sizes on different
architectures - indeed the DECSystem-1
josh logan, 25.10.2010 04:14:
I found the error. The HTML file I'm parsing has invalid HTML at line
193. It has something like:
Note there is no space between the closing quote for the "href" tag
and the class attribute. I guess I'll go through each file and correct
these issues as I parse the
73 matches
Mail list logo