On Mar 18, 6:55 pm, Carl Banks wrote:
> On Mar 18, 5:31 pm, J Peyret wrote:
>
> > If I ever specifically work on an OSS project's codeline, I'll post
> > bug reports, but frankly that FF example is a complete turn-off to
> > contributing by reporting bugs.
>
On Mar 18, 2:15 pm, Carl Banks wrote:
> Multiple people reproduce a Python hang/crash yet it looks like no one
> bothered to submit a bug report
>
> I observed the same behavior (2.6 and 3.2 on Linux, hangs) and went
> ahead and submitted a bug report.
>
> Carl Banks
Speaking for myself, I'v
On Mar 16, 10:19 am, a...@pythoncraft.com (Aahz) wrote:
> In article ,
> >always recommend people to use PostgreSQL, though; which is superior in
> >almost every way, especially the C client library and the wire protocol.)
>
> Can you point at a reference for the latter? I have been trying to
> c
On Mar 17, 9:37 pm, Terry Reedy wrote:
> On 3/17/2011 10:00 PM, Terry Reedy wrote:
>
> > On 3/17/2011 8:24 PM, J Peyret wrote:
> >> This gives a particularly nasty abend in Windows - "Python.exe has
> >> stopped working", rather than a regular exception
This gives a particularly nasty abend in Windows - "Python.exe has
stopped working", rather than a regular exception stack error. I've
fixed it, after I figured out the cause, which took a while, but maybe
someone will benefit from this.
Python 2.6.5 on Windows 7.
class Foo(object):
pass
On Dec 31 2009, 2:06 pm, Steve Howell wrote:
> FYI:
>
> http://twitter.com/gvanrossum
>
> Python is a truly awesome programming language. Not only is Guido a
> genius language designer, but he is also a great project leader. What
> an accomplishment. Congratulations to everybody who has contrib
I'm starting to look at the iPhone SDK and I'd like to know of
resources on the Net that approach that language with a Pythonic
mindset. Mind you, I want to code Objective-C, not pine about Python
not being on the iPhone either. The kind of elegant simple code that
a good Python coder who also kn
On Oct 12, 8:19 am, [EMAIL PROTECTED] wrote:
> I would like to get some opinions on this approach.
> Thanks.
I realize I will be minority here, but...
I've never quite understood why folks want to repeat the database's
metadata in XML files. I've gotten much better results just using
plain ol'
On Sep 25, 12:24 pm, [EMAIL PROTECTED] wrote:
> def whoisthethief("List" x):
> return iknowit(x)
>
> def whoisthethief("String" x, "String" y):
> return iknowit([x,y])
>
I dunno if this is very Pythonic in nature, but I've done things like
rebinding methods dynamically.
ex:
>>> def test(a):
On Sep 23, 8:31 am, [EMAIL PROTECTED] wrote:
Guys, this looks like a great data structure/algo for something I am
working on.
But... where do I find some definitions of the original BK-tree idea?
I looked through Amazon
and only a few books mention something like BK-Tree and these are
mostly conf
Hmmm, for lack of a better response, here are some suggestions, based
on what I've seen on Windows+Linux.
#1 put the .pth in the site-packages directory (this is what I do on
Linux). I think Python considers it special and looks for pth.
you can probably get that directory from doing
import sys
On Feb 18, 10:54 pm, 7stud <[EMAIL PROTECTED]> wrote:
> One last point: you can't display a unicode string. The very act of
> trying to print a unicode string causes it to be converted to a
> regular string. If you try to display a unicode string without
> explicitly encode()'ing it first, i.e.
OK, txs a lot. I will have to think a bit more about you said, what I
am doing and how encode/decode fits in.
You are right, I am confused about unicode. Guilty as charged.
I've seen the decode+encode chaining invoked in some of the examples,
but not the rationale for it.
Also doesn't help that
Well, as usual I am confused by unicode encoding errors.
I have a string with problematic characters in it which I'd like to
put into a postgresql table.
That results in a postgresql error so I am trying to fix things with
.encode
>>> s = 'he Company\xef\xbf\xbds ticker'
>>> print s
he Company�s
On Feb 14, 8:50 am, "W. Watson" <[EMAIL PROTECTED]> wrote:
(snip)
> I thought this might be more difficult judging by a long ago experience with
> Java.
(snip)
+1 QOTW
--
http://mail.python.org/mailman/listinfo/python-list
I got coverage.py to work after somewhat of a difficult start...
Hint: if moving your code from Windows to Linux and if running
'coverage.py -r mymodule.py' causes SyntaxError/SyntaxException, the
'flip' utility is your friend to deal with removing those nasty \r\n
newlines that are preventing co
On Feb 8, 5:38 pm, Freek Dijkstra <[EMAIL PROTECTED]> wrote:
If you want to subclass, my initial example did not cover that. This
will, or at least, I don't have any problems with similar code:
... def __new__(cls,uri,*args,**kwds):
... try:
... return cls.cache[(cls,uri
I think the metaclass stuff is a bit too black magic for a pretty
simple requirement.
Txs in any case for showing me the __init__ issue, I wasn't aware of
it.
Here's a workaround - not exactly elegant in terms of OO, with the
isInitialized flag, but it works.
>>> class RDFObject(object):
...
18 matches
Mail list logo