|
From: Michael F. <fuz...@vo...> - 2010-02-09 12:10:11
|
On 09/02/2010 09:52, Philippe Lachaud wrote: > Hi, > I've just downloaded the version 4.7.1 of ConfigObj and I geta > Syntax error when importing it (Python 2.3 and 2.5). > It happens in: 4.7.1 works for me in Python 2.4 and 2.5. That syntax is perfectly valid in Python 2.4, but it may indeed be invalid in 2.3. I need to install Python 2.3 to check. :-( Python 2.4.4 (#1, Oct 18 2006, 10:34:39) [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import configobj >>> configobj.__version__ '4.7.1' >>> a = [1, 2, 3] >>> b = [] >>> b.extend(int(x) for x in a) >>> b [1, 2, 3] If it is a problem with 2.3 (likely to be the case) then I'll fix it and do a 4.7.2 release. My apologies. All the best, Michael Foord > def get_extra_values(...): > .... > out.extend((_prepend, name) for name in conf.extra_values) > .... > I guess it should be something like: > out.extend(*[*(_prepend, name) for name in conf.extra_values*]*) > Or am I wrong? > Cheers, > Philippe > > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > > > _______________________________________________ > Configobj-develop mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/configobj-develop > -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/blog READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies ("BOGUS AGREEMENTS") that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer. |