[RELEASED] Python 3.2.6, Python 3.3.6

2014-10-12 Thread Georg Brandl
These are production versions, please report any bugs to http://bugs.python.org/ Enjoy! - -- Georg Brandl, Release Manager georg at python.org (on behalf of the entire python-dev team and contributors) -BEGIN PGP SIGNATURE- Version: GnuPG v2 iEYEARECAAYF

[RELEASED] Python 3.2.6rc1, Python 3.3.6rc1

2014-10-04 Thread Georg Brandl
https://www.python.org/downloads/release/python-336rc1/ These are pre-releases, please report any bugs to http://bugs.python.org/ The final releases are scheduled one week from now. Enjoy! - -- Georg Brandl, Release Manager georg at python.org (on behalf of the entire python-dev team and contrib

[RELEASED] Python 3.3.5

2014-03-09 Thread Georg Brandl
3.3.5 visit: http://www.python.org/downloads/release/python-335/ This is a production release, please report any bugs to http://bugs.python.org/ The final release is scheduled one week from now. Enjoy! - -- Georg Brandl, Release Manager georg at python.org (on behalf of the entire p

[RELEASED] Python 3.3.5 release candidate 2

2014-03-03 Thread Georg Brandl
nload Python 3.3.5 visit: http://www.python.org/download/releases/3.3.5/ This is a preview release, please report any bugs to http://bugs.python.org/ The final release is scheduled one week from now. Enjoy! - -- Georg Brandl, Release Manager georg at python.org (on behalf of the entire p

[RELEASED] Python 3.3.5 release candidate 1

2014-02-23 Thread Georg Brandl
nload Python 3.3.5 visit: http://www.python.org/download/releases/3.3.5/ This is a preview release, please report any bugs to http://bugs.python.org/ The final release is scheduled one week from now. Enjoy! - -- Georg Brandl, Release Manager georg at python.org (on behalf of the entire p

[RELEASED] Python 3.3.4

2014-02-10 Thread Georg Brandl
http://bugs.python.org/ Enjoy! - -- Georg Brandl, Release Manager georg at python.org (on behalf of the entire python-dev team and 3.3's contributors) -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlL5PMwACgkQN9GcIYhpnLCv4wCePNVqwsOYCHdJBi

[RELEASED] Python 3.3.4 release candidate 1

2014-01-26 Thread Georg Brandl
http://www.python.org/download/releases/3.3.4/ This is a preview release, please report any bugs to http://bugs.python.org/ The final version is scheduled to be released in two weeks' time, on or about the 10th of February. Enjoy! - -- Georg Brandl, Release Manager georg at pyth

[RELEASED] Python 3.3.3 final

2013-11-18 Thread Georg Brandl
visit: http://www.python.org/download/releases/3.3.3/ This is a production release, please report any bugs to http://bugs.python.org/ Enjoy! - -- Georg Brandl, Release Manager georg at python.org (on behalf of the entire python-dev team and 3.3's contributors) [1] http://bugs.

Re: Self-defence

2013-11-17 Thread Georg Brandl
Am 17.11.2013 18:33, schrieb Mark Lawrence: >> This is a last-ditch request, and not one I particularly expect to >> succeed, but I honestly can't stand to watch this happen to python-list >> for very much longer, and am very close to unsubscribing after six years >> as an admittedly not very acti

[RELEASED] Python 3.3.3 release candidate 2

2013-11-11 Thread Georg Brandl
gs to http://bugs.python.org/ Enjoy! - -- Georg Brandl, Release Manager georg at python.org (on behalf of the entire python-dev team and 3.3's contributors) -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlKB1G4ACgkQN9GcIYhpnLAu5gCfRkfpnEs+rmtZ9i

Re: Problem installing matplotlib 1.3.1 with Python 2.7.6 and 3.3.3 (release candidate 1)

2013-11-03 Thread Georg Brandl
Am 04.11.2013 01:59, schrieb Ned Deily: > In article <21110.62791.44734.656...@cochabamba.vanoostrum.org>, > Piet van Oostrum wrote: >> I tried to install matplotlib 1.3.1 on the release candidates of Python >> 2.7.6 >> and 3.3.3. > > [...] > > Please open an issue on the Python bug tracker f

[RELEASED] Python 3.3.3 release candidate 1

2013-10-27 Thread Georg Brandl
to be released in two weeks' time, on or about the 10th of November. Enjoy! - -- Georg Brandl, Release Manager georg at python.org (on behalf of the entire python-dev team and 3.3's contributors) -BEGIN PGP SIGNATURE- Version: GnuPG v2.

[RELEASED] Python 3.2.5 and Python 3.3.2

2013-05-15 Thread Georg Brandl
report bugs to http://bugs.python.org/ (Thank you to those who reported these regressions.) Enjoy! - -- Georg Brandl, Release Manager georg at python.org (on behalf of the entire python-dev team and all contributors) -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.19 (GNU/Linux

Re: [RELEASED] Python 3.2.4 and Python 3.3.1

2013-04-06 Thread Georg Brandl
Am 06.04.2013 22:48, schrieb cmcp: > On Saturday, 6 April 2013 21:43:11 UTC+1, Georg Brandl wrote: >> -BEGIN PGP SIGNED MESSAGE- >> >> Hash: SHA1 >> >> >> >> On behalf of the Python development team, I am pleased to announce the &g

[RELEASED] Python 3.2.4 and Python 3.3.1

2013-04-06 Thread Georg Brandl
://www.python.org/download/releases/3.3.1/ respectively. As always, please report bugs to http://bugs.python.org/ Enjoy! - -- Georg Brandl, Release Manager georg at python.org (on behalf of the entire python-dev team and all contributors) -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.19 (GNU

[RELEASED] Python 3.2.4 rc 1 and Python 3.3.1 rc 1

2013-03-25 Thread Georg Brandl
notice to: http://bugs.python.org/ To download Python 3.2.4 or Python 3.3.1, visit: http://www.python.org/download/releases/3.2.4/ or http://www.python.org/download/releases/3.3.1/ respectively. Enjoy! - -- Georg Brandl, Release Manager georg at python.org (on behalf of the entire

Re: [RELEASED] Python 3.3.0

2012-09-30 Thread Georg Brandl
On 09/29/2012 06:53 PM, Antoine Pitrou wrote: Hello, I've created a 3.3 category on the buildbots: http://buildbot.python.org/3.3/ http://buildbot.python.org/3.3.stable/ Someone will have to update the following HTML page: http://python.org/dev/buildbot/ Should be done now. Georg -- http:

[RELEASED] Python 3.3.0

2012-09-29 Thread Georg Brandl
of changes in 3.3.0, see http://docs.python.org/3.3/whatsnew/3.3.html To download Python 3.3.0 visit: http://www.python.org/download/releases/3.3.0/ This is a production release, please report any bugs to http://bugs.python.org/ Enjoy! -- Georg Brandl, Release Manager georg at python.org (on behalf of the entire python-dev team and 3.3's contributors) -- http://mail.python.org/mailman/listinfo/python-list

[RELEASED] Python 3.3.0 release candidate 3

2012-09-23 Thread Georg Brandl
eases/3.3.0/ Please consider trying Python 3.3.0 with your code and reporting any bugs you may notice to: http://bugs.python.org/ Enjoy! - -- Georg Brandl, Release Manager georg at python.org (on behalf of the entire python-dev team and 3.3's contributors) -BEGIN PGP SIGNATURE- Ve

[RELEASED] Python 3.3.0 release candidate 2

2012-09-09 Thread Georg Brandl
eases/3.3.0/ Please consider trying Python 3.3.0 with your code and reporting any bugs you may notice to: http://bugs.python.org/ Enjoy! - -- Georg Brandl, Release Manager georg at python.org (on behalf of the entire python-dev team and 3.3's contributors) -BEGIN PGP SIGNATURE- Ve

[RELEASED] Python 3.3.0 release candidate 1

2012-08-25 Thread Georg Brandl
otal, almost 500 API items are new or improved in Python 3.3. For a more extensive list of changes in 3.3.0, see http://docs.python.org/3.3/whatsnew/3.3.html To download Python 3.3.0 visit: http://www.python.org/download/releases/3.3.0/ Please consider trying Python 3.3.0 with you

[RELEASED] Python 3.3.0 beta 2

2012-08-12 Thread Georg Brandl
.0 visit: http://www.python.org/download/releases/3.3.0/ Please consider trying Python 3.3.0 with your code and reporting any bugs you may notice to: http://bugs.python.org/ Enjoy! (*) Please note that this document is usually finalized late in the release cycle and therefore may h

[RELEASED] Python 3.3.0 beta 1

2012-06-26 Thread Georg Brandl
ng any bugs you may notice to: http://bugs.python.org/ Enjoy! (*) Please note that this document is usually finalized late in the release cycle and therefore may have stubs and missing entries at this point. -- Georg Brandl, Release Manager georg at python.org (on behalf of the entire python-dev team and 3.3's contributors) -- http://mail.python.org/mailman/listinfo/python-list

[RELEASED] Python 3.3.0 alpha 4

2012-05-31 Thread Georg Brandl
load Python 3.3.0 visit: http://www.python.org/download/releases/3.3.0/ Please consider trying Python 3.3.0 with your code and reporting any bugs you may notice to: http://bugs.python.org/ Enjoy! (*) Please note that this document is usually finalized late in the release cycle and

[RELEASED] Python 3.3.0 alpha 3

2012-05-01 Thread Georg Brandl
3.0 visit: http://www.python.org/download/releases/3.3.0/ Please consider trying Python 3.3.0 with your code and reporting any bugs you may notice to: http://bugs.python.org/ Enjoy! (*) Please note that this document is usually finalized late in the release cycle and therefore

[RELEASED] Python 3.3.0 alpha 2

2012-04-01 Thread Georg Brandl
any bugs you may notice to: http://bugs.python.org/ Enjoy! (*) Please note that this document is usually finalized late in the release cycle and therefore may have stubs and missing entries at this point. - - -- Georg Brandl, Release Manager georg at python

[RELEASED] Python 3.3.0 alpha 1

2012-04-01 Thread Georg Brandl
ython.org/ Enjoy! (*) Please note that this document is usually finalized late in the release cycle and therefore may have stubs and missing entries at this point. - -- Georg Brandl, Release Manager georg at python.org (on behalf of the entire python-dev team and 3.3's cont

[RELEASED] Python 3.3.0 alpha 1

2012-03-04 Thread Georg Brandl
s such as "sendfile()" For a more extensive list of changes in 3.3.0, see http://docs.python.org/3.3/whatsnew/3.3.html To download Python 3.3.0 visit: http://www.python.org/download/releases/3.3.0/ Please consider trying Python 3.3.0a1 with your code and reporting any bugs you

[RELEASED] Python 3.2.2

2011-09-04 Thread Georg Brandl
list of changes in 3.2, see http://docs.python.org/3.2/whatsnew/3.2.html To download Python 3.2 visit: http://www.python.org/download/releases/3.2/ Please consider trying Python 3.2 with your code and reporting any bugs you may notice to: http://bugs.python.org/ Enjoy! - -- Georg

[RELEASED] Python 3.2.1

2011-07-10 Thread Georg Brandl
features in the 3.2 line, see http://docs.python.org/3.2/whatsnew/3.2.html To download Python 3.2.1 visit: http://www.python.org/download/releases/3.2.1/ This is a final release: Please report any bugs you may notice to: http://bugs.python.org/ Enjoy! - -- Georg Brandl, Release

[RELEASED] Python 3.2.1 rc 2

2011-07-04 Thread Georg Brandl
http://docs.python.org/3.2/whatsnew/3.2.html To download Python 3.2.1 visit: http://www.python.org/download/releases/3.2.1/ This is a testing release: Please consider trying Python 3.2.1 with your code and reporting any bugs you may notice to: http://bugs.python.org/ Enjoy! -- Georg

[RELEASED] Python 3.2.1 rc 1

2011-05-17 Thread Georg Brandl
http://docs.python.org/3.2/whatsnew/3.2.html To download Python 3.2.1 visit: http://www.python.org/download/releases/3.2.1/ This is a testing release: Please consider trying Python 3.2.1 with your code and reporting any bugs you may notice to: http://bugs.python.org/ Enjoy! -- Georg

[RELEASED] Python 3.2

2011-02-20 Thread Georg Brandl
notice to: http://bugs.python.org/ Enjoy! - -- Georg Brandl, Release Manager georg at python.org (on behalf of the entire python-dev team and 3.2's contributors) -- http://mail.python.org/mailman/listinfo/python-list

[RELEASED] Python 3.2 rc 3

2011-02-13 Thread Georg Brandl
ing Python 3.2 with your code and reporting any bugs you may notice to: http://bugs.python.org/ Enjoy! - -- Georg Brandl, Release Manager georg at python.org (on behalf of the entire python-dev team and 3.2's contributors) -BEGIN PGP SIGNATURE- Version: GnuPG v1.

[RELEASED] Python 3.2 rc 2

2011-01-31 Thread Georg Brandl
der trying Python 3.2 with your code and reporting any bugs you may notice to: http://bugs.python.org/ Enjoy! - -- Georg Brandl, Release Manager georg at python.org (on behalf of the entire python-dev team and 3.2's contributors) -BEGIN PGP SIGNATURE- Version: GnuPG v1.

[RELEASED] Python 3.2 rc 1

2011-01-15 Thread Georg Brandl
der trying Python 3.2 with your code and reporting any bugs you may notice to: http://bugs.python.org/ Enjoy! - -- Georg Brandl, Release Manager georg at python.org (on behalf of the entire python-dev team and 3.2's contributors) -BEGIN PGP SIGNATURE- Version: GnuPG v2.

[RELEASED] Python 3.2 beta 2

2010-12-21 Thread Georg Brandl
g/ Enjoy! - -- Georg Brandl, Release Manager georg at python.org (on behalf of the entire python-dev team and 3.2's contributors) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk0Q/aAACgkQN9GcIYhpnLDf8gCgkLGAsE+T3R505jZc1RxXDYsa NSsAnRGaFjeTm9o2Z5O8FuIzTUG8t1PT =hH

[RELEASED] Python 3.2 beta 1

2010-12-06 Thread Georg Brandl
g/ Enjoy! - -- Georg Brandl, Release Manager georg at python.org (on behalf of the entire python-dev team and 3.2's contributors) -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.16 (GNU/Linux) iEYEARECAAYFAkz9WcgACgkQN9GcIYhpnLBRYwCeMmH1GMmKOx9fVk8a/F0/TOzj Vp0AoIHYBNcxV/U0AXIwMGWFHi1bAB+a =KB

[RELEASED] Python 3.2 alpha 4

2010-11-16 Thread Georg Brandl
e found at: http://docs.python.org/3.2/ Please consider trying Python 3.2 with your code and reporting any bugs you may notice to: http://bugs.python.org/ Enjoy! - -- Georg Brandl, Release Manager georg at python.org (on behalf of the entire python-dev team and 3.2's contributors)

[RELEASED] Python 3.2 alpha 3

2010-10-12 Thread Georg Brandl
http://docs.python.org/3.2/ Please consider trying Python 3.2 with your code and reporting any bugs you may notice to: http://bugs.python.org/ Enjoy! - -- Georg Brandl, Release Manager georg at python.org (on behalf of the entire python-dev team and 3.2's contributors) -BEGI

[RELEASED] Python 3.2 alpha 2

2010-09-06 Thread Georg Brandl
python.org/3.2/ Please consider trying Python 3.2 with your code and reporting any bugs you may notice to: http://bugs.python.org/ Enjoy! - -- Georg Brandl, Release Manager georg at python.org (on behalf of the entire python-dev team and 3.2's contributors) -BEGIN PGP SIGNATURE-

[RELEASED] Python 3.2 alpha 1

2010-08-01 Thread Georg Brandl
r code and reporting any bugs you may notice to: http://bugs.python.org/ Enjoy! - -- Georg Brandl, Release Manager georg at python.org (on behalf of the entire python-dev team and 3.2's contributors) -BEGIN PGP SIGNATURE- Version: GnuPG v2.

Reminder: Python Bug Day on Saturday

2009-04-23 Thread Georg Brandl
Hi, I'd like to remind everyoone that there will be a Python Bug Day on April 25. As always, this is a perfect opportunity to get involved in Python development, or bring your own issues to attention, discuss them and (hopefully) resolve them together with the core developers. We will coordinate

Correction: Python Bug Day on April 25

2009-04-15 Thread Georg Brandl
Hi, I managed to screw up the date, so here it goes again: I'd like to announce that there will be a Python Bug Day on April 25. As always, this is a perfect opportunity to get involved in Python development, or bring your own issues to attention, discuss them and (hopefully) resolve them togethe

Python Bug Day on April 23

2009-04-15 Thread Georg Brandl
Hi, I'd like to announce that there will be a Python Bug Day on April 23. As always, this is a perfect opportunity to get involved in Python development, or bring your own issues to attention, discuss them and (hopefully) resolve them together with the core developers. We will coordinate over IRC

Re: Bragging about Python

2007-06-07 Thread Georg Brandl
Mathias Panzenboeck schrieb: > Steve Howell schrieb: >> --- "[EMAIL PROTECTED]" >> <[EMAIL PROTECTED]> wrote: >> >>> Is there a resource somewhere on the net that can be >>> used to quickly >>> and effectively show Python's strengths to >>> non-Python programmers? >>> Small examples that will make

Re: What makes an iterator an iterator?

2007-04-18 Thread Georg Brandl
Stefan Rank schrieb: > on 18.04.2007 07:39 Steven D'Aprano said the following: >> I thought that an iterator was any object that follows the iterator > > replace object with "instance of a class", i.e. the relevant methods are > looked up in the __class__ not in the instance (I think). > I had th

Re: proposed PEP: iterator splicing

2007-04-15 Thread Georg Brandl
Steven Bethard schrieb: > Paul Rubin wrote: >> The boilerplate >> >> def some_gen(): >>... >>for x in some_other_gen(): >>yield x >>... >> >> is so common (including the case where some_other_gen is the same as >> some_gen, i.e. it's a recursive call) t

Re: Python Feature Request: Add the "using" keyword which works like "with" in Visual Basic

2007-04-14 Thread Georg Brandl
BJörn Lindqvist schrieb: > On 4/14/07, BJörn Lindqvist <[EMAIL PROTECTED]> wrote: >> On 14 Apr 2007 07:24:32 -0700, jamadagni <[EMAIL PROTECTED]> wrote: >> > > You already can emulate the using statement like this: >> > >> > You can emulate only assignments like this. How would you emulate >> > fun

Re: exec statement Syntax Error on string pulled from MySQL

2007-04-10 Thread Georg Brandl
[EMAIL PROTECTED] schrieb: > It's the strangest thing, I'm pulling some text out of a MySQL table > and trying to run exec on it, and it keeps giving me a syntax error, > always at the end of the first line. > > Thanks in advance for any help. I'm really stuck on this one! > > -Greg > > I'm no

Re: RFC: Assignment as expression (pre-PEP)

2007-04-10 Thread Georg Brandl
Alex Martelli schrieb: > Adam Atlas <[EMAIL PROTECTED]> wrote: > >> Hasn't this been discussed many many times before? I think Guido has >> been favourable to the idea of allowing :=, but that was a long time >> ago, and I don't think anything ever came of it. >> >> Personally, if anything, I'd l

Re: Unicode problem

2007-04-09 Thread Georg Brandl
Martin v. Löwis schrieb: >> Thanks! That's a nice little stumbling block for a newbie like me ;) Is >> there a way to make utf-8 the default encoding for every string, so that >> I do not have to encode each string explicitly? > > You can make sys.stdout encode each string with UTF-8, with > >

Re: tuples, index method, Python's design

2007-04-09 Thread Georg Brandl
Paul Rubin schrieb: > Steven D'Aprano <[EMAIL PROTECTED]> writes: >> I think the problem is that Python developers are split between those who >> see tuples as immutable lists, and those who see them as records/structs. > > I think the construction > >def f(*a): ... > > shows that the "immut

Re: tuples, index method, Python's design

2007-04-09 Thread Georg Brandl
Paul Rubin schrieb: > Carsten Haese <[EMAIL PROTECTED]> writes: >> Will tuples also get a sort method? What about append and extend? pop? >> __iadd__? __delslice__? > > They are immutable so they won't get .sort() etc. sorted(...) already > works on them. > >> How many brain cells are actually f

Re: Exec Statement Question

2007-04-08 Thread Georg Brandl
Gregory Piñero schrieb: > I'm curious why this code isn't working how I expect it to: > > import sys > d=3 > > def func1(a,b,c): > print a,b,c,d > print sys.path > > exec "func1(1,2,3)" in {'func1':func1} > > > returns: > 1 2 3 3 > [ sys.path stuff ] > > Since I'm telling exec

Re: How do I get a slice of a string held in a tuple?

2007-04-08 Thread Georg Brandl
Lorenzo schrieb: >> > How do I go about it? >> >> Do it correctly. Post your actual example that fails >> and the related error message. Possibnly your indexes >> were out of range. >> >> > I googled this and found a couple >> > of references, but no solution. >> >> Well, there wouldn't be a s

Re: block scope?

2007-04-08 Thread Georg Brandl
Alex Martelli schrieb: > Paul Rubin wrote: > >> [EMAIL PROTECTED] (Alex Martelli) writes: >> > > exec? >> > option 1: that just runs the compiler a bit later ... >> >> Besides exec, there's also locals(), i.e. >>locals['x'] = 5 >> can shadow a variable. Any bad res

Re: How can i compare a string which is non null and empty

2007-04-01 Thread Georg Brandl
[EMAIL PROTECTED] schrieb: > Hi, > > how can i compare a string which is non null and empty? > > > i look thru the string methods here, but cant find one which does it? > > http://docs.python.org/lib/string-methods.html#string-methods > > In java,I do this: > if (str != null) && (!str.equals("

Re: Unicode list

2007-04-01 Thread Georg Brandl
Rehceb Rotkiv schrieb: > Hello, > > I have this little grep-like program: > > ++snip++ > #!/usr/bin/python > > import sys > import re > > pattern = sys.argv[1] > inputfile = file(sys.argv[2], 'r') > > for line in inputfile: > matches = re.findall(pattern, line) > if mat

Re: PyPy for dummies

2007-03-31 Thread Georg Brandl
Cameron Laird schrieb: > In article <[EMAIL PROTECTED]>, > Paddy <[EMAIL PROTECTED]> wrote: > . > . > . >>It is also European funding for an open source project with sprints. >>I'm sure some eurocrat will be dissecting the project to

Re: Question about extending tuple

2007-03-28 Thread Georg Brandl
abcd schrieb: >> As an immutable type, tuple makes use of __new__. >> >> class MyTuple(tuple): >> def __new__(cls, *args): >> return tuple.__new__(cls, args) >> >> should work. >> >> Georg > > strange. not very consistent. On the contrary -- __new__ *and* __init__ exist for all typ

Re: Question about extending tuple

2007-03-28 Thread Georg Brandl
abcd schrieb: > I wanted to extend tuple but ran into a problem. Here is what I > thought would work > > class MyTuple(tuple): > def __init__(self, *args): > tuple.__init__(self, args) > > x = MyTuple(1,2,3,4) > > That gives me... > > TypeError: tuple() takes at most 1 argument (4

Re: very strange syntax errors

2007-03-28 Thread Georg Brandl
Peter Otten schrieb: > hg wrote: > >> I'v been facing some very strange errors lately: >> >> one example: >> >> def __init__(self): >> >> import my_info >> some_text = my_info.T_SOME_TEXT >> ^ syntax error >> >> >> I manage to get rid

Re: Weekly Python Patch/Bug Summary

2007-03-12 Thread Georg Brandl
Kurt B. Kaiser schrieb: > Patch / Bug Summary > ___ > > Patches : 380 open (-36) / 3658 closed (+65) / 4038 total (+29) We should really try to keep the numbers in this magnitude :) Georg -- http://mail.python.org/mailman/listinfo/python-list

ANN: Pygments 0.7 "Faschingskrapfn" released

2007-02-14 Thread Georg Brandl
I'm very pleased to announce the third public release of Pygments, the generic Python syntax highlighter. Download it from , or look at the demonstration at . News The new features since 0.6 include: * New lexers for

Re: list1.append(list2) returns None

2006-12-21 Thread Georg Brandl
Pyenos schrieb: > i rewrote the code following the advices from subdir of the parent thread: > > # well, table is composed of a list of columns. > # so let's stick them together > def enlargetable(table,col): > table.append(col) # the code won't return sorted lists :-o Why should it sort the

ANN: Pygments 0.6 "Zimtstern" released

2006-12-20 Thread Georg Brandl
... and it highlights even Brainf*ck! The home page is at <http://pygments.pocoo.org>. Read more in the FAQ list <http://pygments.pocoo.org/faq> or look at the documentation <http://pygments.pocoo.org/docs>. regards, Georg Brandl -- http://mail.python.org/mailman/listinfo/python-list

Re: perl better than python for users with disabilities?

2006-12-20 Thread Georg Brandl
Thomas Ploch schrieb: > Martin P. Hellwig schrieb: >> Quite punny title though I assume you are really serious and mean people >> with a physical disability, I won't comment any further on this subject >> :-), if I already offended anyone, please excuse me, since I'm original >> from Germany I'm

Re: Fall of Roman Empire

2006-12-20 Thread Georg Brandl
Felix Benner schrieb: >> Sorry, somehow had to do this. Please slap me (i like it, don't worry) >> if it's totally stupid >> >> > > s totally stupid! You forgot the main function! (not to mention you > returned universe instead of everything) > > static int main(int argc, char **argv) { >

Re: Property error

2006-12-15 Thread Georg Brandl
king kikapu wrote: > Hi to all, > > i am trying to use properties in Python and i am sure i have made > something wrong with the below code but i just cannot see what it is. > > Can anyone please help me on this ? > > The code is : > > class Person(object): > age = 0 > > @property >

Re: Property error

2006-12-15 Thread Georg Brandl
Peter Otten wrote: > @decorator > def f(): ># ... > > is the same as > > def f(): > # ... > f = decorator(f()) ^^ Nope, f is not called here. (Think of staticmethod). Georg -- http://mail.python.org/mailman/listinfo/python-list

Re: tuple.index()

2006-12-14 Thread Georg Brandl
Nick Maclaren schrieb: > In article <[EMAIL PROTECTED]>, > "Glenn Hutchings" <[EMAIL PROTECTED]> writes: > |> Fredrik Lundh wrote: > |> > |> > if you don't want to understand the design, nobody can force you. but > arguing > |> > that the people behind the design "don't get it" isn't very practi

Re: funcs without () like print

2006-12-07 Thread Georg Brandl
iwl wrote: > Hello can I make funktions callable without () like print > at time the interpreter seems to printout the adres when I type the > function without () print is not a function, it's a statement, and as such equivalent to raise or assert. Georg -- http://mail.python.org/mailman/listinf

Re: Common Python Idioms

2006-12-07 Thread Georg Brandl
Stephen Eilert wrote: > Hendrik van Rooyen escreveu: > >> <[EMAIL PROTECTED]> wrote: >> >> > Peter> Bjoern Schliessmann wrote: >> > >> Wouldn't be "if k in d.keys()" be the exact replacement? >> > >> > Peter> No, 'k in d' is equivalent to 'd.has_key(k)', only with less >> > Peter>

Re: Python25.zip

2006-12-02 Thread Georg Brandl
Colin J. Williams wrote: > Dennis Lee Bieber wrote: >> On Thu, 30 Nov 2006 18:14:11 -0500, "Colin J. Williams" >> <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: >> >>> As part of the Python initialization, C:\Windows\System32\Python25.zip >>> is set up in the path. >>> >>> I hav

Re: Parsing/Splitting Line

2006-11-22 Thread Georg Brandl
Fredrik Lundh schrieb: > Noah Rawlins wrote: > > >> I'm a nut for regular expressions and obfuscation... >> >> import re >> def splitline(line, size=4): >> return re.findall(r'.{%d}' % size, line) >> >> >>> splitline("helloiamsuperman") >> ['hell', 'oiam', 'supe', 'rman'] > > there are l

Re: atexit.register does not return the registered function. IMHO, it should.

2006-11-16 Thread Georg Brandl
Skip Montanaro schrieb: >> Since that the decorator syntax is upon us, I think it would be good if >> atexit.register() was returning the function passed as argument. This >> simple change to the library would solve a problem with the use of >> atexit.register as a decorator (and I can't think of

Re: Py3K idea: why not drop the colon?

2006-11-13 Thread Georg Brandl
Michael Hobbs wrote: > Georg Brandl wrote: >> Ron Adam wrote: >> >>> Michael Hobbs wrote: >>> >>> >>>> The same problem that is solved by not having to type parens around the >>>> 'if' conditional, a la C and

Re: Python 3000 idea -- + on iterables -> itertools.chain

2006-11-13 Thread Georg Brandl
Carl Banks wrote: > Georg Brandl wrote: >> What has a better chance of success in my eyes is an extension to yield >> all items from an iterable without using an explicit for loop: instead of >> >> for item in iterable: >> yield item >> >> you c

Re: Python 3000 idea -- + on iterables -> itertools.chain

2006-11-13 Thread Georg Brandl
George Sakkis wrote: > Fredrik Lundh wrote: > >> John Reese wrote: >> >> > It seems like it would be clear and mostly backwards compatible if the >> > + operator on any iterables created a new iterable that iterated >> > throught first its left operand and then its right, in the style of >> > iter

Re: Py3K idea: why not drop the colon?

2006-11-11 Thread Georg Brandl
Ron Adam wrote: > Georg Brandl wrote: >> Ron Adam wrote: >>> Michael Hobbs wrote: >>> >>>> The same problem that is solved by not having to type parens around the >>>> 'if' conditional, a la C and its derivatives. That is, it's un

Re: Py3K idea: why not drop the colon?

2006-11-11 Thread Georg Brandl
Ron Adam wrote: > Michael Hobbs wrote: > >> The same problem that is solved by not having to type parens around the >> 'if' conditional, a la C and its derivatives. That is, it's unnecessary >> typing to no good advantage, IMHO. I was coding in Ruby for several >> months and got very comfortabl

Re: Simple question to split

2006-11-09 Thread Georg Brandl
Diez B. Roggisch schrieb: > Diez B. Roggisch schrieb: >> Matthias Winterland schrieb: >>> Hi, >>> >>> I have a simple question. When I read in a string like: >>> a='1,2,3,4,5 6 7,3,4', can I get the list l=[1,2,3,4,5,6,7,3,4] with a >>> single split-call? >> >> Nope. But you could replace the com

Re: Is there a commas-in-between idiom?

2006-11-08 Thread Georg Brandl
Peter van Kampen schrieb: > On 2006-11-06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: >> I've collected a bunch of list pydioms and other notes here: >> >> http://effbot.org/zone/python-list.htm > > """ > A = B = [] # both names will point to the same list > """ > > I've been bitten by this onc

Re: Unicode/ascii encoding nightmare

2006-11-06 Thread Georg Brandl
Thomas W wrote: > I'm getting really annoyed with python in regards to > unicode/ascii-encoding problems. > > The string below is the encoding of the norwegian word "fødselsdag". > s = 'f\xc3\x83\xc2\xb8dselsdag' Which encoding is this? > I stored the string as "fødselsdag" but somewhere i

Re: Python Distilled

2006-11-06 Thread Georg Brandl
Paul McGuire wrote: > "Marc 'BlackJack' Rintsch" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> In <[EMAIL PROTECTED]>, Simon Wittber >> wrote: >> >>> I'd also like to remove any deprecated or stuff which is left in for >>> backwards functionality (eg Classic classes). >> >> Clas

Re: Python Distilled

2006-11-06 Thread Georg Brandl
Marc 'BlackJack' Rintsch wrote: > In <[EMAIL PROTECTED]>, Simon Wittber > wrote: > >> I'd also like to remove any deprecated or stuff which is left in for >> backwards functionality (eg Classic classes). > > Classic classes are still needed for exceptions: > class E(object): > ...pass >

Re: enumerate improvement proposal

2006-10-29 Thread Georg Brandl
James Stroud wrote: > I think that it would be handy for enumerate to behave as such: > > def enumerate(itrbl, start=0, step=1): >i = start >for it in itrbl: > yield (i, it) > i += step > > This allows much more flexibility than in the current enumerate, > tightens up code in m

Re: Metaclasses are not called in subclasses. What did I wrong?

2006-10-29 Thread Georg Brandl
Létező wrote: > I use Python 2.4.4. Please read the code below: > > --- > from new import classobj > > def mymeta(name,bases,clsdict): > print 'meta: %s'%name > return classobj(name,bases,clsdict) > > class A(object): > __metacl

Re: question about True values

2006-10-29 Thread Georg Brandl
Chetan wrote: >>> I am joining after some network downtime here, so I seem to have missed what >>> the real issue here is. At the risk of being completely irrelevant to the >>> discussion here, I think it doesn't seem to be just about something or >>> nothing - is None something or nothing? It see

Re: question about True values

2006-10-28 Thread Georg Brandl
Chetan wrote: >> Steven D'Aprano wrote: >> > On Sat, 28 Oct 2006 03:13:42 +0100, Steve Holden wrote: >> > >> >>> Finally, while True/False is a good mental mapping for numeric >> >>> comparisons, >> >>> take the following: >> >>> >> >>> >>> if "Cliff is a pillar of the open source community": >>

Re: question about True values

2006-10-28 Thread Georg Brandl
J. Clifford Dyer wrote: > Georg Brandl wrote: >> J. Clifford Dyer wrote: >> >>> >>> (1 > 0) < 1 >>> False >>> >>> 1 > 0 < 1 >>> True >>> >>> 1 > (0 < 1) >>> False >>> >

Re: what is "@param" in docstrings?

2006-10-28 Thread Georg Brandl
[EMAIL PROTECTED] wrote: > I'm starting to read about twisted and I keep seeing things like: > [from twisted/internet/app.py] > > def __init__(self, name, uid=None, gid=None, authorizer=None, > authorizer_=None): > """Initialize me. > If uid and gid arguments are not provided,

Re: Import if condition is correct

2006-10-28 Thread Georg Brandl
MindClass wrote: > Is possible import a library according to a condition? > > if Foo = True: > import bar > Why don't you try it? (in the above code, not the import is the problem, but using the assignment operator in an expression) Georg -- http://mail.python.org/mailman/listinfo/python-

Re: question about True values

2006-10-28 Thread Georg Brandl
J. Clifford Dyer wrote: > >>> (1 > 0) < 1 > False > >>> 1 > 0 < 1 > True > >>> 1 > (0 < 1) > False > >>> 10 > (0 < 1) > True I hope you know why this works the way it does. Georg -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN compiler2 : Produce bytecode from Python 2.5 Abstract Syntax Trees

2006-10-23 Thread Georg Brandl
Michael Spencer wrote: > Georg Brandl wrote: >> Michael Spencer wrote: >>> Announcing: compiler2 >>> - >>> >>> For all you bytecode enthusiasts: 'compiler2' is an alternative to the >>> standard >>&

Re: pylint: What's wrong with the builtin map()

2006-10-22 Thread Georg Brandl
Tuomas wrote: > Georg Brandl wrote: >> Some people think that all occurences of map() must be replaced >> by list comprehensions. The designer of pylint seems to be >> one of those. > > So it seems, but why? See Fredrik's post. There's no error in the

Re: pylint: What's wrong with the builtin map()

2006-10-22 Thread Georg Brandl
Tuomas wrote: > #!/usr/bin/python > """test pydev_0.9.3/../pylint""" > __revision__ = "test_mod 0.1 by TV 06/10/22" > > lst = ['aaa', ' bbb', '\tccc\n'] > lst = map(lambda x: x.strip(), lst) > > result = """ > No config file found, using default configuration > * Module test_mod > W:

Re: ANN compiler2 : Produce bytecode from Python 2.5 Abstract Syntax Trees

2006-10-22 Thread Georg Brandl
Michael Spencer wrote: > Announcing: compiler2 > - > > For all you bytecode enthusiasts: 'compiler2' is an alternative to the > standard > library 'compiler' package, with several advantages. Is this a rewrite from scratch, or an improved stdlib compiler package? In the la

Re: default variable in python $_

2006-10-10 Thread Georg Brandl
rh0dium wrote: > Hi all, > > So I have this simple little routine.. say like this.. > > > def foo() >return {"a":"b", "b":"c"} > > if foo(): >print "Have foo" > > > Now I want the dictionary item a (ie. b) > > How can I do it the above way or do I still have to go like this.. > > d

  1   2   3   4   >