Re: How can Python print the value of an attribute but complain it does not exist?

2007-10-10 Thread Karen Tracey
On 10/10/07, Emre Sevinc <[EMAIL PROTECTED]> wrote: [snip] $ python generatefeedvector-debug.py > Signal vs. Noise > Traceback (most recent call last): > File "generatefeedvector-debug.py", line 37, in ? > title = getwordcounts(feedurl) > File "generatefeedvector-debug.py ", line 21, in ge

Re: Unicode issue on Windows cmd line

2009-02-11 Thread Karen Tracey
On Wed, Feb 11, 2009 at 2:50 PM, jeffg wrote: > On Feb 11, 2:35 pm, Albert Hopkins wrote: > > On Wed, 2009-02-11 at 10:35 -0800, jeffg wrote: > > > Having issue on Windows cmd. > > > > Python.exe > > > >>>a = u'\xf0' > > > >>>print a > > > > > This gives a unicode error. > > > > > Works fine in

Re: select.select and socket.setblocking

2008-12-31 Thread Karen Tracey
On Wed, Dec 31, 2008 at 5:39 AM, Francesco Bochicchio wrote: > Francesco Bochicchio ha scritto: > >> >>> No, in blocking mode it will wait to receive _some_ data (1 or >>> more bytes). The "requested" amount is strictly an upper >>> limit: recv won't return more than the requested number of >>> b

Re: Unicode equality from raw_input

2008-10-11 Thread Karen Tracey
2008/10/11 Damian Johnson <[EMAIL PROTECTED]> > Hi, when getting text via the raw_input method it's always a string (even > if it contains non-ASCII characters). The problem lies in that whenever I > try to check equality against a Unicode string it fails. I've tried using > the unicode method to

Change in Decimal repr in Python 2.6

2008-07-18 Thread Karen Tracey
I noticed when trying out Python's 2.6b2 release that the repr of Decimal has changed since 2.5. On 2.5: Python 2.5.1 (r251:54863, Mar 7 2008, 04:10:12) [GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>>

Re: Change in Decimal repr in Python 2.6

2008-07-18 Thread Karen Tracey
On Fri, Jul 18, 2008 at 10:12 PM, Terry Reedy <[EMAIL PROTECTED]> wrote: > If answers here do not satisfy, the pydev list would be the place to > request that this change be put off until 3.0, when changes that break are > more permissible. I do not remember any discussion of this issue. You can

Re: Stripping parts of a path

2008-07-26 Thread Karen Tracey
On Sat, Jul 26, 2008 at 7:59 AM, Tim Cook <[EMAIL PROTECTED]>wrote: > Hi All, > > I just ran into an issue with the rstrip method when using it on path > strings. > > When executing a function I have a need to strip off a portion of the > current working directory and add on a path to a log file.

Re: Rant (was Re: x*x if x>10

2008-07-27 Thread Karen Tracey
On Sun, Jul 27, 2008 at 10:17 AM, DaveM <[EMAIL PROTECTED]> wrote: > On Sun, 27 Jul 2008 05:24:36 -0700 (PDT), alex23 <[EMAIL PROTECTED]> > wrote: > > >On Jul 27, 10:13 pm, ssecorp <[EMAIL PROTECTED]> wrote: > >> I have seen somewhere that you can write something like: > > >> x*x if x>10 > >> but