Re: P3 weird sys.stdout.write()

2009-08-24 Thread Jerzy Jalocha N
On Mon, Aug 24, 2009 at 10:52 AM, Dave Angel wrote: > The write() function changed in 3.0, but not in the way you're describing. >  It now (usually) has a return value, the count of the number of characters > written. [...] > But because you're running from the interpreter, you're seeing the return

Re: P3 weird sys.stdout.write()

2009-08-24 Thread Jerzy Jalocha N
>>> import sys >>> n = sys.stdout.write('something') something>>> n 9 >>> Yes, that works as expected, now, similar to 2.6. Thank you both, Diez and André! -Jerzy -- http://mail.python.org/mailman/listinfo/python-list

P3 weird sys.stdout.write()

2009-08-24 Thread Jerzy Jalocha N
I've stumbled upon the following in Python 3: Python 3.0.1+ (r301:69556, Apr 15 2009, 15:59:22) [GCC 4.3.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> sys.stdout.write("") 0 >>> sys.stdout.write("something") something9 >>> write() is append

Re: Can't find Python Library packages in Ubuntu (Debian)

2008-11-25 Thread Jerzy Jalocha N
Scott David Daniels wrote: >> So, the first question is: How do I install the complete Python test >> framework under Ubuntu (Debian)? > > You could use BZR or SVN to get a copy of the full Lib/test tree. Given > your long-disconnected running, I'd consider getting a full source set > for release2

Re: Can't find Python Library packages in Ubuntu (Debian)

2008-11-24 Thread Jerzy Jalocha N
On Fri, Nov 21, 2008 at 9:37 AM, David Cournapeau <[EMAIL PROTECTED]> wrote: > I think most people using python as a development tool use the version > available in their distribution. Personally, I mostly use the stock > python of Ubuntu. Although building python itself is not difficult on > the t

Re: Can't find Python Library packages in Ubuntu (Debian)

2008-11-21 Thread Jerzy Jalocha N
>> So, the first question is: How do I install the complete Python test >> framework under Ubuntu (Debian)? >> >> So, my second question: What (meta?-)package(s) do I have to install >> under Ubuntu (Debian) in order to get a full (as in the official >> release) Python installation? > I don't have

Can't find Python Library packages in Ubuntu (Debian)

2008-11-20 Thread Jerzy Jalocha N
I'm new in this list (and to Python), so I'd like to start saying hello to everyone first. I am really enjoying this new language! I am trying to use the standard tests (like test_list.py or test_dict.py) from the standard library (Python2.5), but they aren't available on a standard Ubuntu Hardy o