Re: [Python-Dev] Tracker archeology
On 2009-02-10, Tarek Ziadé wrote: > On Tue, Feb 10, 2009 at 2:23 PM, Daniel (ajax) Diniz wrote: > > > > > If anyone is interested in being added as nosy for any category of > > bugs, let me know and I'll do that as I scan the tracker. > > I'll take Distutils related issues, If you could look at a solution for http://bugs.python.org/issue1533164 I would be eternally grateful. -- Regards, Stephen Thorne Development Engineer NetBox Blue - 1300 737 060 NetBox Blue is proud to be a sponsor and exhibitor at IBM's Solutions Showcase 2009 events. These are held in Perth, Adelaide, Brisbane, Sydney and Melbourne in February and March. For more details and to register please visit: http://www.ibm.com/solutionsshowcase/au Scanned by the NetBox from NetBox Blue (http://netboxblue.com/) ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
[Python-Dev] Python Library Support in 3.x (Was: email package status in 3.X)
Steve Holden Wrote: > We are also attempting to enable tax-deductible fund raising to increase > the likelihood of David's finding support. Perhaps we need to think > about a broader campaign to increase the quality of the python 3 > libraries. I find it very annoying that the #python IRC group still has > "Don't use Python 3" in it's topic. They adamantly refuse to remove it > until there is better library support, and they are the guys who see the > issues day in day out so it is hard to argue with them (and I don't > think an autocratic decision-making process would be appropriate). Yes, #python keeps the text "It's too early to use Python 3.x" in its topic. Library support is the only reason. -- Regards, Stephen Thorne Development Engineer ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Python Library Support in 3.x (Was: email package status in 3.X)
On 2010-06-19, Arc Riley wrote: > You mean Twisted support, No. I don't. Often, on #python, we get the situation where someone approaches us saying, "I have this problem in my python code, why does this not work for me?" and usually very quickly we establish the programmer has followed a tutorial or attempted to use a library that depends on python 2, but the programmer is running python 3. Queried on why they are using python 3, the answer is frequently, "Because I downloaded the latest version." For those people, we believe it is too early to use python 3. When talking to these people with a world view of "why shouldn't i use the latest version" having a concrete preexisting statement in the topic we can point to is invaluable. We don't always ask those who are having python 3 problems to go to python2. Often we simply explain about all strings bring unicode or print now being a function, and the conversation dies. There are also programmers who definately should be using python 3 for their work. They know who they are. They do receive support in #python. -- In writing this email to python-dev, I have reviewed my logs of #python specifically looking for the phrase 'python 3'. Here are some packages that were named in the conversations: - py2exe - cx_Freeze - twisted - PIL - ctypes - email I present this list because they are what programmers are coming to #python to ask about, and that may be relevent to your discussion about python 3 ports. -- Regards, Stephen Thorne ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
[Python-Dev] "2 or 3" link on python.org
Steve Holden Wrote: > Given the amount of interest this thread has generated I can't help > wondering why it isn't more prominent in python.org content. Is the > developer community completely disjoint with the web content editor > community? > > If there is such a disconnect we should think about remedying it: a > large "Python 2 or 3?" button could link to a reasoned discussion of the > pros and cons as evinced in this thread. That way people will end up > with the right version more often (and be writing Python 2 that will > more easily migrate to Python 3, if they cannot yet use 3). > > There seems to be a perception that the PSF can help fund developments, > and indeed Jesse Noller has made a small start with his sprint funding > proposal (which now has some funding behind it). I think if it is to do > so the Foundation will have to look for substantial new funding. I do > not currently understand where this funding would come from, and would > like to tap your developer creativity in helping to define how the > Foundation can effectively commit more developer time to Python. > > GSoC and GHOP are great examples, but there is plenty of room for all > sorts of initiatives that result in development opportunities. I'd like > to help. I am extremely keen for this to happen. Does anyone have ownership of this project? There was some discussion of it up-list but the discussion fizzled. -- Regards, Stephen Thorne Development Engineer Netbox Blue ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] "2 or 3" link on python.org
On 2010-06-25, "Martin v. Löwis" wrote: > Am 25.06.2010 01:28, schrieb Stephen Thorne: > > Steve Holden Wrote: > >> Given the amount of interest this thread has generated I can't help > >> wondering why it isn't more prominent in python.org content. Is the > >> developer community completely disjoint with the web content editor > >> community? > >> > >> If there is such a disconnect we should think about remedying it: a > >> large "Python 2 or 3?" button could link to a reasoned discussion of the > >> pros and cons as evinced in this thread. That way people will end up > >> with the right version more often (and be writing Python 2 that will > >> more easily migrate to Python 3, if they cannot yet use 3). > >> > >> There seems to be a perception that the PSF can help fund developments, > >> and indeed Jesse Noller has made a small start with his sprint funding > >> proposal (which now has some funding behind it). I think if it is to do > >> so the Foundation will have to look for substantial new funding. I do > >> not currently understand where this funding would come from, and would > >> like to tap your developer creativity in helping to define how the > >> Foundation can effectively commit more developer time to Python. > >> > >> GSoC and GHOP are great examples, but there is plenty of room for all > >> sorts of initiatives that result in development opportunities. I'd like > >> to help. > > > > I am extremely keen for this to happen. Does anyone have ownership of this > > project? There was some discussion of it up-list but the discussion fizzled. > > Can you please explain what "this project" is, in the context of your > message? GSoC? GHOP? Oh, I thought this was quite clear. I was specifically meaning the large "Python 2 or 3" button on python.org. It would help users who want to know what version of python to use if they had a clear guide as to what version to download. It doesn't help if someone goes to do greenfield development in python if a library they depend upon has yet to be ported, and they're trying to use python 3. (As an addendum add pygtk to the list of libs that python 3 users on #python are alarmed to find haven't been ported yet) -- Regards, Stephen Thorne Development Engineer Netbox Blue ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] "2 or 3" link on python.org
On 2010-06-25, "Martin v. Löwis" wrote: > > What page were we suggesting linking to? > > I don't think anybody proposed anything specific. Steve Holden > suggested it should go to "reasoned discussion of the > pros and cons as evinced in this thread". Stephen Thorne didn't > propose anything specific but to have a large button. I didn't propose anything, I heard a good idea that I'd like to see followed through. -- Regards, Stephen Thorne ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
[Python-Dev] list.__init__() vs. dict.__init__() behaviour
Hi, When testing some 'real world' code using pypy, an inconsistancy with the way __init__ works between lists and dicts. The assumption was made when implementing __init__ for pypy that list.__init__ and dict.__init__ would both wipe the contents of the objects, but it seems that in cpython, this isn't precisely the case. >>> l = [2,3] >>> list.__init__(l) >>> l [] >>> d = {2: 3} >>> dict.__init__(d) >>> d {2: 3} dict.__init__(mydict) does not wipe the keys. list.__init__(mylist) wipes the lists contents. https://codespeak.net/issue/pypy-dev/issue240 Is there a good reason for this behaviour? It has broken my code (a subclass of dict that populates a key before calling the superclasses constructer, in the twisted codebase). -- Stephen Thorne "Give me enough bandwidth and a place to sit and I will move the world." --Jonathan Lange ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
[Python-Dev] Re: Zen of Python
On Wed, 19 Jan 2005 19:03:25 -0500, Timothy Fitz <[EMAIL PROTECTED]> wrote: > On Thu, 20 Jan 2005 09:03:30 +1000, Stephen Thorne > <[EMAIL PROTECTED]> wrote: > > "Flat is better than nested" has one foot in concise powerful > > programming, the other foot in optimisation. > > > > foo.bar.baz.arr involves 4 hashtable lookups. arr is just one hashtable > > lookup. > > I find it amazingly hard to believe that this is implying optimization > over functionality or clarity. There has to be another reason, yet I > can't think of any. What I meant to say was, 'flat is better than nested' allows you to write more concise code, while also writing faster code. Stephen. ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
[Python-Dev] string_join overrides TypeError exception thrown in generator
Hi, An interesting problem was pointed out to me, which I have distilled to this testcase: def gen(): raise TypeError, "I am a TypeError" yield 1 def one(): return ''.join( x for x in gen() ) def two(): return ''.join([x for x in gen()]) for x in one, two: try: x() except TypeError, e: print e Expected output is: """ I am a TypeError I am a TypeError """ Actual output is: """ sequence expected, generator found I am a TypeError """ Upon looking at the implementation of 'string_join' in stringobject.c[1], It's quite obvious what's gone wrong, an exception has been triggered in PySequence_Fast, and string_join overrides that exception, assuming that the only TypeErrors thrown by PySequence_Fast are caused by 'orig' being a value that was an invalid sequence type, ignoring the possibility that a TypeError could be thrown by exhausting a generator. seq = PySequence_Fast(orig, ""); if (seq == NULL) { if (PyErr_ExceptionMatches(PyExc_TypeError)) PyErr_Format(PyExc_TypeError, "sequence expected, %.80s found", orig->ob_type->tp_name); return NULL; } I can't see an obvious solution, but perhaps generators should get special treatment regardless. Reading over this code it looks like the generator is exhausted all at once, instead of incrementally.. -- Stephen Thorne Development Engineer [1] http://cvs.sourceforge.net/viewcvs.py/python/python/dist/src/Objects/stringobject.c?rev=2.231&view=markup ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com