on 31.07.2008 11:29 Diez B. Roggisch said the following:
The packaged version of pylint (0.13.2) fails with this error (last line):
So - anybody out here having an actually working pylint config and can tell
me what versions work together? I've become pretty dependend on it to be
honest...
on 22.01.2008 16:09 Paul McGuire said the following:
> On Jan 22, 7:46 am, Stefan Rank <[EMAIL PROTECTED]> wrote:
>> I also need to test for generator functions from time to time for which
>> I use::
>>
>>def _isaGeneratorFunction(func):
>>'
on 22.01.2008 14:20 Diez B. Roggisch said the following:
>
> def isgenerator(v):
> def _g(): yield
> return type(v) == type(_g())
>
> But I wonder why there is no such method already available?
This tests for generator objects, and you could also use::
return type(v) is types.Genera
on 06.09.2007 13:16 Tim Golden said the following:
> I'm a bit embarrassed about this, but I've scoured
> the docutils docs and I can't seem to work out how
> to take a block of ReStructuredText and output a
> raw HTML fragment, ideally without a surrounding
> document or embedded/linked css etc. (
on 18.04.2007 07:39 Steven D'Aprano said the following:
> I thought that an iterator was any object that follows the iterator
replace object with "instance of a class", i.e. the relevant methods are
looked up in the __class__ not in the instance (I think).
I had the same troubles trying to dynami
on 16.02.2007 13:02 Edward K Ream said the following:
>> There are a tool called "2to3" that translates things like "print foo" to
>> print(foo).
>
> The point of my original post was that if I want to maintain a common code
> base the tool must translate 'print foo' to 'print2(foo)'.
I think y
on 05.02.2007 03:49 John Nagle said the following:
> (Was prevously posted as a followup to something else by accident.)
>
> I'm running a website page through BeautifulSoup. It parses OK
> with Python 2.4, but Python 2.5 fails with an exception:
>
> Traceback (most recent call last):
>
[BTW, there is a list/newsgroup specifically for pywin32]
on 06.09.2006 12:56 Rama said the following:
> Hi,
>
> I want to list the names of all the processes running on my
> machine. I am stuck at this point and do not know how to extract the
> name of a process.
>
> Using win32pro
on 28.02.2006 12:14 Carl Banks said the following:
[snip]
>
>>> It's a pretty weak case to have a dedicated builtin to prevent
>>> duplicates in something that changes maybe once a month, as enums tend
>>> to change rather slowly. (At least, that's the way enums in other
>>> languages are used, a
on 28.02.2006 07:50 Carl Banks said the following:
> Ben Finney wrote:
>> This PEP specifies an enumeration data type for Python.
>
[snip]
>
> Here's why I think it's not too useful to begin with: the benefits of
> the enum you describe here are pretty weak.
I need to disagree heavily here :)
+
on 11.01.2006 11:44 Steve Holden said the following:
>
> http://beta.python.org
>
Very nice!
Just wanted to note that the content area and the menu area overlap
(leaving some content unreadable)
in Opera 8.51 / WinXP
str
--
http://mail.python.org/mailman/listinfo/python-list
on 13.12.2005 11:39 Fredrik Lundh said the following:
> Duncan Booth wrote:
>>Another reason to have a boolean type is of course to provide a cast:
>>
>> def isNameSet(self):
>> return boolean(self.name)
[snip]
>
> given that Python already had a function for this, that wasn't
> much of a r
on 19.11.2005 06:56 Steven D'Aprano said the following:
[snip]
>
> Perhaps Python should concatenate numeric literals at compile time:
>
> 123 456 is the same as 123456.
>
> Off the top of my head, I don't think this should break any older code,
> because 123 456 is not currently legal in Python
on 08.11.2005 17:40 Brendan said the following:
[snip config/properties file needs]
>
> I've checked out ConfigParser, ConfigObj, Pickle, PyYaml and
> gnossis.xml.serialize, and none meet all the above criteria (though
> they're all neat).
>
> So I've decide to use ...drumroll please plistlib
on 12.10.2005 10:02 Diez B. Roggisch said the following:
> Rune Strand wrote:
>
>>Currently I have this in my scripts:
>>__filename__ = __file__.replace('\\', '/').rsplit('/', 1)[-1]
>
> This is neither platform independent nor less "overhead". This is:
>
> import os
> __filname__ = os.path.spli
> [snipped alot from others about indexing, slicing problems,
> and the inadequacy of -1 as Not Found indicator]
on 31.08.2005 16:16 Ron Adam said the following:
> The problem with negative index's are that positive index's are zero
> based, but negative index's are 1 based. Which leads to a no
Hi all,
in a python re pattern, how do I match all unicode uppercase characters
(in a unicode string/in a utf-8 string)?
I know that there is string.uppercase/.lowercase which are
'locale-aware', but I don't think there is a "all locales" locale.
I know that there is a re.U switch that makes \
on 04.08.2005 11:15 Matt Hammond said the following:
> Hi Stefan,
>
>>It seems as though all components basically have to do busy waiting now.
>
> You are right - components are, for the most part, busy-waiting. Which
> is not a good thing!
>
>>So do you plan on including a kind of scheduler-awa
on 04.08.2005 00:36 Michael Sparks said the following:
> Peter Tillotson wrote:
>>I'm quite interested in the mini version and also using the modules as
>>mobile code rather than installing it formally.
>
> I'll document it slightly better and post up on the website in the next 48
> hours or so.
on 30.07.2005 10:20 Paolino said the following:
> why (x**2 with(x))<(x**3 with(x)) is not taken in consideration?
>
> If 'with' must be there (and substitue 'lambda:') then at least the
> syntax is clear.IMO Ruby syntax is also clear.
>
I am sorry if this has already been proposed (I am sure i
[__div__ for .joinpath()]
on 29.07.2005 04:48 Tony Meyer said the following:
>>I, herewith, claim to have used it in the past.
>>But I am indifferent as to if its needed, it just looks natural to me.
>
> So far there seem to have been a few +0s, but no +1s...
>
>>What I use quite often is::
>>
>
on 25.07.2005 10:44 Michael Hoffman said the following:
> Reinhold Birkenfeld wrote:
>>Tony Meyer wrote:
>>>Do people really like using __div__ to mean join?
>>Of course, one can use joinwith() if he doesn't like '/'.
> Personally, I'm -0 on __div__, but I suppose if anyone here claimed to
> have
on 22.07.2005 16:14 George Sakkis said the following:
> "Duncan Booth" <[EMAIL PROTECTED]> wrote:
>
>>Personally I think the concept of a specific path type is a good one, but
>>subclassing string just cries out to me as the wrong thing to do. In other
>>words, to me a path represents something in
on 22.07.2005 00:21 Michael Hoffman said the following:
> Reinhold Birkenfeld wrote:
>
>>John Roth wrote:
>>
>>
>>>Why did Guido want a PEP?
>>
>>He said,
>>
>>"""
>>Whoa! Do we really need a completely different mechanism for doing the
>>same stuff we can already do? The path module seems mostly
24 matches
Mail list logo