v 3.0 mpkg
Does anyone know if Python v3.0 is available as an .mpkg installer for Mac 10.5.6. I have used 2.5 & updated to 2.6.1 this way, but can't find any reference to one on the Python.org download site. I've downloaded the Python 3.0 folder but can't follow how to install it without a .mpkg file. Any help would be really appreciated. Regards John -- http://mail.python.org/mailman/listinfo/python-list
string to list conversion
I need to convert an input string say '' to a list of the form ['' ,]. If I use list(stringname), I get ['x','x','x','x'] ; list.join() is an error; and str.join() won't use lists. I do need the comma after the string. Is there a simple solution? Regards John -- http://mail.python.org/mailman/listinfo/python-list
Fwd: IDLE error on 3.0.1
Regards John Begin forwarded message: From: John Forse Date: 20 February 2009 02:46:19 GMT To: python-list@python.org Subject: IDLE error on 3.0.1 Occaisionally, if I mistype in python shell or try to copy & paste a line there, I get a permanent hang with the error below. It isn't corrected by quitting IDLE, but is put right with a restart. I am running 3.0.1 on Mac 10.5.6. Is this a bug, as it never happened on the same system with 2.5 &2.6.1 ? Is there another way to prevent this? Regards John Forse IDLE cant bind TCP/IP port 8833 which is necessary to communicate with it's python execution server. Either no networking is installed on this computer or another process(another IDLE?) is using the port. Run IDLE with the -n command line switch to start without a sub-process and refer to help/IDLE Help 'Running without a sub- process' for further details PS I AM connected to the network at the time and Help/Idle help is greyed-out on my IDLE. I've tried entering -n to IDLE on the initial blank window, but it seems to make no difference to the problem. I don't understand what is happening.-- http://mail.python.org/mailman/listinfo/python-list
getting tut. example to work
I'm trying some examples from the language ref sections on the site in the process of learning some python in 3.0.1. I've tried to run both of the samples below ,but the only printout is "generator object chain at 0x11f4dc8" whether I use print() or not . How do I use the sample to produce the expected printout a b c d e f. Thanks John F A def chain(*iterables): for it in iterables: for element in it: print(element) yield element def main(): chain('abc','def') main() B alternative import itertools itertools.chain('abc','def') -- http://mail.python.org/mailman/listinfo/python-list