Adriaan Renting wrote:
> vi/vim is a godssend if you need a working system that needs to fit in 4
> Mb or ROM, but it's an editor not an IDE.
> When talking about IDE's I mean a lot more as 'just' an editor, below is
> my 'wishlist', I would be very interested what solutions you use, how
> much ti
florent wrote:
> I'm trying to parse html documents from the web, using the HTMLParser
> class of the HTMLParser module (python 2.3), but some web documents are
> not fully valids.
From http://www.crummy.com/software/BeautifulSoup/:
You didn't write that awful page. You're just trying to
Christoph Zwerschke wrote:
> Thanks for the link, Grig. I wasn't aware of the py lib so far. The
> possibility to create fixtures at the three different scopes is exactly
> what I was looking for.
>
> Anyway, I think it would be nice to have that feature in the standard
> lib unittest as well. It
"Yin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I've created a class that reads in and processes a file in the
> initializer __init__. The processing is fairly substantial, and thus,
> instead of processing the file every time the object is created, I
> pickle the object to a f
Fuzzyman wrote:
> This seems to scratch several people's itches.
As I understand it it is something like generating "pythondoc" like javadoc?
Should be pretty easy to develop something a bit more polished than
Bengt's solution (or based on it of course) with maybe similar to
javadoc framesets f
Christoph Zwerschke wrote:
> Björn Lindström wrote:
>
> I already gave the example of creating database connections
> or even creating/importing whole databases. My question was, how do I
> handle these cases with the standard lib unittest?
I do not get why a unit test whould create/import a wh
Magnus Lycka wrote:
> On Windows, you're likely to prefer time.clock(), to
> measure relative times, since time.time() will have too low resolution
> for measuring short thingies.
Specifically, using the NT/XP family of Windows operating systems
time.time() has a resolution of approximately 0.01
rafi wrote:
> In order to unit test a function / method one should use mock objects,
> otherwise you may not be sure that your code is faulty.
'should' may be too strong, 'may' may be better. In the meantime I found:
http://python-mock.sourceforge.net/
my 2 cents
--
rafi
"Im
Christoph Zwerschke wrote:
> I completely agree and I think it makes a lot of sense that unittest
> calls setUp and tearDown for every single test. However, the fact that
> this is *generally* the best way doesn't exclude the fact that there are
> *exceptions* when it makes sense to setUp and te
Russell Blau wrote:
> Try __new__(). http://docs.python.org/ref/customization.html This isn't
> the usual application of __new__, but since it returns an object it should
> be ideal for your purposes.
Or simply create a factory function to return your instances -- which is
in effect what __new_
Is that possible? In order to access a web service it seems like you
need to know how it is defined (IE through the WSDL)
--
http://mail.python.org/mailman/listinfo/python-list
Dennis Lee Bieber wrote:
>On Tue, 02 Aug 2005 17:35:27 +1000, Timothy Smith
><[EMAIL PROTECTED]> declaimed the following in comp.lang.python:
>
>
>
>
>>it's iterally just
>>
>>PDFname = 'tmp.pdf'
>>os.startfile(PDFname)
>>
>>thats the code.
>>
>>
>>
> No "import os"?
> And the fu
Robert and Terry-
Thank you so much for helping me on this!
Yes, it's a problem due to an old version of numarray. I didn't realize that
my windows has a much newer version than the debian machine.
Best,
Xiangyi
- Original Message -
From: "Robert Kern" <[EMAIL PROTECTED]>
To:
Sent: Tu
Where can I find a minimal version of python (less than 2 MB) suitable for
a web server on an embedded linux system? The small size is required
because the system lives on flash memory.
Thanks,
Ken Seehart
--
http://mail.python.org/mailman/listinfo/python-list
Timothy Smith wrote:
> yep the program is executed in the same dir as the pdf file. like i said
> it actually opens it, but throws up an exception as well.
You are far more likely to get informed help if you post the traceback
here, as has been suggested twice already.
--
Michael Hoffman
--
h
Michael Hoffman wrote:
>Timothy Smith wrote:
>
>
>
>>yep the program is executed in the same dir as the pdf file. like i said
>>it actually opens it, but throws up an exception as well.
>>
>>
>
>You are far more likely to get informed help if you post the traceback
>here, as has been sugge
Cliff Wells <[EMAIL PROTECTED]> writes:
>> > Regardless, when you say "Unix", what do you mean? You may as well say
>> > "OS" as this term has little meaning. Linux (which flavor)? BSD? SCO?
>> > HPUX? OS/X? Minix? Whichever way, I suspect that a bit of distutils
>> > hacking would solve yo
Jorge Godoy <[EMAIL PROTECTED]> writes:
> Mike Meyer wrote:
>>> In fact this sounds more like a joke I've heard a while ago: standards,
>>> if you don't like the ones out there, create your own.
>> Works for me.
> What works for you? You believe that chaos is better than having standards?
> I bel
Hi, I'm trying to write an internationalized app. I'm learning python
and read that pygettext would help me, but I found elsewhere it was
obsolete (??)
So, what's the correct and up to date tool to i18n python ?
Is there a tutorial somewhere (python docs has nothing really usable :
I'd like at l
[EMAIL PROTECTED] (phil hunt) writes:
> On Tue, 02 Aug 2005 00:42:53 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote:
>>[EMAIL PROTECTED] (phil hunt) writes:
>>> In practise any Python GUI is going to contain code from otyher
>>> languages since if it was coded all the way down in python it would
>>
Torsten Bronger <[EMAIL PROTECTED]> writes:
> Hallöchen!
> Mike Meyer <[EMAIL PROTECTED]> writes:
>> Torsten Bronger <[EMAIL PROTECTED]> writes:
>>> [...]
>>> I'm interested in a language with a big community. This is my
>>> definition of success. [...]
>>>
>>> GUI applications seem to be the mo
...the name for a drive (hard or removable) that shows up when, for example,
a USB flash drive is recognized by the system. I don't know if this shows
up somewhere in Linux.
Can this be set from Python? I guess it would be some MFC call in Windows
(I don't know anything about doing that), and
Paul McNett <[EMAIL PROTECTED]> writes:
>>>project I've found, but still doable.
>> Well, I've got a long history of installing things from source -
>> going
>> back to v6. On OS X, I like the darwin ports stuff, so I tried that:
>> % sudo port install wxpython
>> It blew up trying to compile wxpyt
Hi All,
does anyone know any cleaver tricks to sort a list of outline numbers.
An outline number is a number of the form...1.2.3
they should be sorted in the following way...
1
1.1
1.2
1.12
python's alpha sort (by design) sorts them...
1
1.1
1.12
1.2
That's no good for me.
I'm planning on
Felix Collins wrote:
> Hi All,
> does anyone know any cleaver tricks to sort a list of outline numbers.
>
> An outline number is a number of the form...1.2.3
>
> they should be sorted in the following way...
>
> 1
> 1.1
> 1.2
> 1.12
>
> python's alpha sort (by design) sorts them...
>
> 1
>
Felix Collins wrote:
> Hi All,
> does anyone know any cleaver tricks to sort a list of outline numbers.
For 2.4 and beyond: (using a key function)
def numparts(outlinetext):
return [int(number) for number in outlinetext.split('.')]
lst = ['1', '1.2', '1.12', '1.1', '3.1']
Robert Kern wrote:
> Felix Collins wrote:
>
> Use the "key" keyword argument to list.sort().
>
> In [1]: outline = ['1.12', '1.1', '1', '1.2']
>
> In [2]: outline.sort(key=lambda x: map(int, x.split('.')))
>
> In [3]: outline
> Out[3]: ['1', '1.1', '1.2', '1.12']
>
Is this new in 2.4? I hav
> "calfdog" == calfdog <[EMAIL PROTECTED]> writes:
calfdog> ina wrote:
>> Look up pamie it should do all the work you need. If it dosn't
>> I can send you ishyBrowser but pamie has more comunity support.
calfdog> # wait for the document to fully load
calfdog> while ie.R
On Tue, 2005-08-02 at 20:17 -0400, Mike Meyer wrote:
> Um - you're not answering the question I asked. I asked "What app do I
> use to bundle my applications for Unix, ala py2exe (or whatever it is)
> for Windows?" You're telling me how to install wxPython on those
> platforms.
> I know how to ins
Felix Collins wrote:
>
> Thanks Scott and Robert for your quick help. This list is amazing!
>
> Regards,
> Felix
Using Decorate, Sort , Undecorate...
works like a charm.
Thanks again.
Felix
--
http://mail.python.org/mailman/listinfo/python-list
Patch / Bug Summary
___
Patches : 354 open ( -3) / 2888 closed ( +3) / 3242 total ( +0)
Bugs: 909 open (+11) / 5152 closed ( +8) / 6061 total (+19)
RFE : 191 open ( +0) / 178 closed ( +0) / 369 total ( +0)
Patches Closed
__
PEP 342 Generator enhance
Scott David Daniels wrote:
> For 2.3: (using DSU -- Decorate, Sort, Undecorate)
> def numparts(outlinetext):
> return [int(number) for number in outlinetext.split('.')]
>
> lst = ['1', '1.2', '1.12', '1.1', '3.1']
> decorated = [(numparts(txt), txt) for txt in lst]
>
Hello All,
I want to use python to download files from sites where authentication is
required. The page appears to send a form with the login and pass by post. I
would like to log in and keep this session open within python and
download a number of files automatically. Could anyone kindly point
[EMAIL PROTECTED] wrote:
> Where can I find a minimal version of python (less than 2 MB) suitable for
> a web server on an embedded linux system? The small size is required
> because the system lives on flash memory.
Such things have been discussed in this list/newsgroup before. I
suggest tryin
Looks like the "label" system command will do it in Windows. That's good
enough for this exercise. So, in Linux...???
"Bob Greschke" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> ...the name for a drive (hard or removable) that shows up when, for
> example, a USB flash drive
> > I really think that the community needs a lot more of STANDARDS not
> > a STANDARD GUI
>
> Standards happen in one of two ways. Either an 800-lb gorrilla
> establishes them by fiat, or a group of people interested in having
> their code play well together hashes out something after they've all
There is a discussion going on regarding how long the presentations
should be for PyCon 2006. In the past the sessions have been 20 minutes
of talk, 5 minutes of questions and 5 minutes to change rooms, grouped
into 90-minute timeslots, with a 30-minute break btw each 90-minutes.
There were co
Hallöchen!
Mike Meyer <[EMAIL PROTECTED]> writes:
> Torsten Bronger <[EMAIL PROTECTED]> writes:
>
>> [...]
>>
>> Because such projects attract the greatest number of developers,
>> many of them being amongst the most diligent developers, too. I
>> expect this to have a positive influence of the
Hello,
you have to put the ocx in a container window (e.g. a dialog or the IE).
Without this the media player just acts like a normal COM object.
Example for the dialog you can find in
[Pythonroot]\Lib\site-packages\pythonwin\pywin\Demos\ocx
Bye
Stefan
> -Original
If you can't find any JBUS/Modbus modules specific for Python it's
possible to use one of the many C/C++ modules available and make a
Python wrapper for it with an interface generator like SWIG or SIP. You
say that you don't have much technical background so you may consider
hiring someone to do it
I'd like to write a simple application that interfaces with the parallel port,
and changes the data on it according to keyboard input. I hope I can get it to
run under windows xp and / or windows 2000.
How can I do this? What do I need to know? It doesn't look like the standard
library (the one
101 - 141 of 141 matches
Mail list logo