On 9/23/07, Diez B. Roggisch <[EMAIL PROTECTED]> wrote:
>
> stef mientki schrieb:
> > Thomas Dybdahl Ahle wrote:
> >> Den Sun, 23 Sep 2007 17:28:38 +0200 skrev stef mientki:
> >>
> >>> yadin wrote:
> >>>
> >>>
> if i were up to make a GUI chich are the advantages of choosing
> python
> ov
On 9/23/07, Diez B. Roggisch <[EMAIL PROTECTED]> wrote:
>
> stef mientki schrieb:
> > Thomas Dybdahl Ahle wrote:
> >> Den Sun, 23 Sep 2007 17:28:38 +0200 skrev stef mientki:
> >>
> >>> yadin wrote:
> >>>
> >>>
> if i were up to make a GUI chich are the advantages of choosing
> python
> ov
I think he meant "Beautiful Soup".
On 7/24/07, Clement <[EMAIL PROTECTED]> wrote:
> On Jul 24, 10:12 pm, johnny <[EMAIL PROTECTED]> wrote:
> > Any python module for navigating and selecting, parsing HTML files?
>
> try beautyfulshop
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
Hrm. Repeating the test several more times, it seems that the value
fluctuates, sometimes one's faster than the other, and sometimes
they're the same.
Perhaps the minute difference between the two is statistically
insignificant? Or perhaps the mechanism underlying both (i.e. the
implementation)
On 7/12/07, Daniel <[EMAIL PROTECTED]> wrote:
> On Fri, 13 Jul 2007 08:51:25 +0300, Gabriel Genellina
> <[EMAIL PROTECTED]> wrote:
> >> data = [row for row in csv.reader(open('some.csv', 'rb'))
> >
> > Note that every time you see [x for x in ...] with no condition, you can
> > write list(...) inst
Ugh.. this would be a repost for the OP, but I forgot to hit "reply to
all" again.
This should do it:
os.execv(sys.argv[0], sys.argv)
Not sure how portable that statement is, though.
On 7/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I packaged up an application I am developing
On 7/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I can't figure out -what- is going wrong here. When the code reaches
> the 'return' line, there is data to be returned, but when it exits out
> to the calling function, 'None' is returned!
>
> import mx.DateTime
>
> def get_weeks(weeks, yea
In this case, [True] and [False] are not lists, rather you're
accessing the items of the list with the index True or False, as per
the following example:
>>> a_list = ['a', 'b']
>>> a_list[True]
'b'
>>> a_list[False]
'a'
This happens because the __getitem__ method takes its argument (which
in thi
If Qt/PyQt is an option, I'd recommend the Qt designer. There is the
odd dual license that they have, though.
On 6/21/07, kromakey <[EMAIL PROTECTED]> wrote:
> Thanks, I'll take a look at these.
> Kromakey
>
> On 20 Jun, 22:10, "Peter Decker" <[EMAIL PROTECTED]> wrote:
> > On 6/20/07, kromakey <[
Error);
should work...
On 4/21/06, Kelvie Wong <[EMAIL PROTECTED]> wrote:
> I do not see the point in doing so (why not just copy+paste that
> string?), but the errno (specifically ENOENT) corresponds to the
> POSIX.1 error number, and the string "No such file or directory&qu
I do not see the point in doing so (why not just copy+paste that
string?), but the errno (specifically ENOENT) corresponds to the
POSIX.1 error number, and the string "No such file or directory" is
done in C via strerror(ENOENT); (check errno(3) and strerror(3)).
I doubt there is something that do
There are only two scopes in Python -- global scope and function scope.
On 4/19/06, Sean Givan <[EMAIL PROTECTED]> wrote:
> Hi. I'm new to Python, and downloaded a Windows copy a little while
> ago. I was doing some experiments with nested functions, and ran into
> something strange.
>
> This co
Is there not a "Reply to all" function in Thunderbird? (and I'd go
shopping for plugins for TB, if not)
(Sorry, Wildemar, looks like I didn't click Reply to all :d)
On 4/19/06, Wildemar Wildenburger <[EMAIL PROTECTED]> wrote:
> Ben Finney wrote:
> > Wildemar Wildenburger <[EMAIL PROTECTED]> write
I have a suspicion it is the collaborative effort that is the problem
here -- I try to use Python whenever possible for
engineering/numerical analysis, but the established industry standard
(for most disciplines of engineering) is still MATLAB.
Although Python is arguably better in most respects,
try this:
string = 'D c a V e r " = d w o r d : 0 0 0 0 0 6 4 0'
import re
re.sub("\s", "", string)
On 4/13/06, david brochu jr <[EMAIL PROTECTED]> wrote:
>
> Hi again,
>
> Trying to remove whitespace from a string in a text file.
>
> the string is:
> D c a V e r " = d w o r d : 0 0 0 0 0 6 4 0
>
While writing docstrings in C, they don't get wrapped properly (i.e.,
lines will break in the middle of a word) when invoking the `help'
function.
Is there any way to have Python break lines automatically, or do I
have to write my own C function/vim script to do it?
Kelvie
--
http://mail.python.
16 matches
Mail list logo