From glez_b at comunidad.unam.mx Thu Apr 19 02:52:54 2012 From: glez_b at comunidad.unam.mx (Boris Vladimir Comi) Date: Thu, 19 Apr 2012 00:52:54 +0000 Subject: [Python-porting] Tutor Digest, Vol 98, Issue 51 In-Reply-To: References: Message-ID: Hi I have the following code that calculates the position and the value of each pixel of the image: def scm(directory): import os; fs = os.listdir(directory); # now fs will be a list of all the files in directory from edu.wisc.ssec.mcidas import AreaFile; for name in fs: print "Reading in:",name af = AreaFile(directory+"/"+name); ad = af.getAreaDirectory(); count = 0; data = af.getFloatData(); # now look through the first band y count pixels # MCS detected when his temperature infrared (TIR) is < 219 K for i in xrange(ad.getLines()): for j in xrange(ad.getElements()): if 552 < i < 900 and 244 < j < 572: if (data[0][i][j]) > 206 and (data[0][i][j]) < 208: print i, j, data[0][i][j]; Where in the code I can add the condition: to only print those values ??(206-208) to be maintained for three hours or more Boris Vladimir Comi Gonzalez Universidad Nacional Aut?noma de M?xico Grupo de Tormentas Convecivas -------------- next part -------------- An HTML attachment was scrubbed... URL: From regebro at gmail.com Thu Apr 19 06:50:29 2012 From: regebro at gmail.com (Lennart Regebro) Date: Thu, 19 Apr 2012 06:50:29 +0200 Subject: [Python-porting] Tutor Digest, Vol 98, Issue 51 In-Reply-To: References: Message-ID: >From the headers of this mail: To: python codigo This is wrong. Is this an indication of the reason why we get Tutor mails to python-porting a lot nowadays? Somebody typed the wrong address in a site somewhere? //Lennart From barry at python.org Tue Apr 24 20:12:31 2012 From: barry at python.org (Barry Warsaw) Date: Tue, 24 Apr 2012 14:12:31 -0400 Subject: [Python-porting] Is this the best place for Python 3 porting discussions? Message-ID: <20120424141231.4bb6c5ec@resist.wooz.org> I'm about to ramp up Ubuntu's efforts for Python 3 for the new 12.10 cycle. Note that while the purpose of this is ostensibly to remove Python 2 from the Ubuntu 12.10 desktop CD images, I really want to continue to push the wider Python community onto Python 3. This mailing list seems like the best place to point people to for help, status, and various related discussions. But the list has been very low traffic for quite some time. Does anybody have a better suggestion for forum to advertise for folks interesting in given and getting help with a community-driven Python 3 porting effort? Cheers, -Barry -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: not available URL: From brian at python.org Tue Apr 24 20:18:33 2012 From: brian at python.org (Brian Curtin) Date: Tue, 24 Apr 2012 13:18:33 -0500 Subject: [Python-porting] Is this the best place for Python 3 porting discussions? In-Reply-To: <20120424141231.4bb6c5ec@resist.wooz.org> References: <20120424141231.4bb6c5ec@resist.wooz.org> Message-ID: On Tue, Apr 24, 2012 at 13:12, Barry Warsaw wrote: > I'm about to ramp up Ubuntu's efforts for Python 3 for the new 12.10 cycle. > Note that while the purpose of this is ostensibly to remove Python 2 from the > Ubuntu 12.10 desktop CD images, I really want to continue to push the wider > Python community onto Python 3. > > This mailing list seems like the best place to point people to for help, > status, and various related discussions. ?But the list has been very low > traffic for quite some time. ?Does anybody have a better suggestion for forum > to advertise for folks interesting in given and getting help with a > community-driven Python 3 porting effort? I don't know of a better location where this is discussion has been going on at, but I can work on drumming up some publicity to this list if that would help. I have the keys to Python's facebook and Google+ accounts, and can write about it on blog.python.org as well. Reddit seems to have more people chiming in about porting in recent times (but a good share of porting haters, as well), and could put something up there as well. ...and outside of publicity, I'm all in on this movement :) From a.badger at gmail.com Tue Apr 24 20:19:47 2012 From: a.badger at gmail.com (Toshio Kuratomi) Date: Tue, 24 Apr 2012 11:19:47 -0700 Subject: [Python-porting] Is this the best place for Python 3 porting discussions? In-Reply-To: <20120424141231.4bb6c5ec@resist.wooz.org> References: <20120424141231.4bb6c5ec@resist.wooz.org> Message-ID: <20120424181947.GO28774@unaka.lan> On Tue, Apr 24, 2012 at 02:12:31PM -0400, Barry Warsaw wrote: > I'm about to ramp up Ubuntu's efforts for Python 3 for the new 12.10 cycle. > Note that while the purpose of this is ostensibly to remove Python 2 from the > Ubuntu 12.10 desktop CD images, I really want to continue to push the wider > Python community onto Python 3. > > This mailing list seems like the best place to point people to for help, > status, and various related discussions. But the list has been very low > traffic for quite some time. Does anybody have a better suggestion for forum > to advertise for folks interesting in given and getting help with a > community-driven Python 3 porting effort? > Last year or possibly the year before python-dev directed me to this list as the place for discussing python3 porting. The list has been pretty quiet so I doubt that anyone would care if they suddenly found it was being used for that purpose ;-) -Toshio -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: not available URL: From regebro at gmail.com Tue Apr 24 20:19:47 2012 From: regebro at gmail.com (Lennart Regebro) Date: Tue, 24 Apr 2012 20:19:47 +0200 Subject: [Python-porting] Is this the best place for Python 3 porting discussions? In-Reply-To: <20120424141231.4bb6c5ec@resist.wooz.org> References: <20120424141231.4bb6c5ec@resist.wooz.org> Message-ID: On Tue, Apr 24, 2012 at 20:12, Barry Warsaw wrote: > I'm about to ramp up Ubuntu's efforts for Python 3 for the new 12.10 cycle. > Note that while the purpose of this is ostensibly to remove Python 2 from the > Ubuntu 12.10 desktop CD images, I really want to continue to push the wider > Python community onto Python 3. +loads > This mailing list seems like the best place to point people to for help, > status, and various related discussions. ?But the list has been very low > traffic for quite some time. ?Does anybody have a better suggestion for forum > to advertise for folks interesting in given and getting help with a > community-driven Python 3 porting effort? Yeah, people are for some weird reason not asking questions. Not here, not anywhere. It's annoying as they sometimes come to the wrong conclusions about porting. I think this is the best place for discussions, and for straight questions and problems, Stackexhange is hard to beat. //Lennart From barry at python.org Tue Apr 24 22:39:14 2012 From: barry at python.org (Barry Warsaw) Date: Tue, 24 Apr 2012 16:39:14 -0400 Subject: [Python-porting] Is this the best place for Python 3 porting discussions? In-Reply-To: References: <20120424141231.4bb6c5ec@resist.wooz.org> Message-ID: <20120424163914.1b96f498@resist.wooz.org> On Apr 24, 2012, at 08:19 PM, Lennart Regebro wrote: >Yeah, people are for some weird reason not asking questions. Not here, >not anywhere. It's annoying as they sometimes come to the wrong >conclusions about porting. Agreed. And I have to say, your python3porting.com site has been *tremendously* helpful. I've been using that as the definitive reference for porting issues. There are some omissions though, and I'm wondering if it's possible to contribute content. Since it's currently only available online, maybe you'd consider publishing a branch some place where we can submit updates? Also, I've been modestly working on a quick reference guide. https://wiki.ubuntu.com/Python/3 There's no particular reason why it has to be on this wiki, it's just a convenient place for it. I'd be happy to fold the more general Python recommendations into a quick reference guide elsewhere (maybe on your site) if you feel it's appropriate. >I think this is the best place for discussions, and for straight >questions and problems, Stackexhange is hard to beat. Do you hang out there? There doesn't appear to be a Python-specific site and I took a quick look at the programmers site but don't see much in the way of Python 3 questions. How can we best use Stackexchange for providing Python 3 help? I'm also thinking about an IRC channel on Freenode. A quick search didn't turn up a #python3 channel, so I'd like to register one. Any opinions on whether #python3 or #python3porting be more appropriate? (Shorter seems better to me). Cheers, -Barry -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: not available URL: From barry at python.org Tue Apr 24 22:42:22 2012 From: barry at python.org (Barry Warsaw) Date: Tue, 24 Apr 2012 16:42:22 -0400 Subject: [Python-porting] Is this the best place for Python 3 porting discussions? In-Reply-To: References: <20120424141231.4bb6c5ec@resist.wooz.org> Message-ID: <20120424164222.6e67e59a@resist.wooz.org> On Apr 24, 2012, at 01:18 PM, Brian Curtin wrote: >I don't know of a better location where this is discussion has been >going on at, but I can work on drumming up some publicity to this list >if that would help. It would! >I have the keys to Python's facebook and Google+ accounts, and can write >about it on blog.python.org as well. Excellent, thanks. I'm about to publish an article in my own blog about this effort, and I think/hope it will get syndicated to blog.python.org. I'll post a link here when it's published. >Reddit seems to have more people chiming in about porting in recent times >(but a good share of porting haters, as well), and could put something up >there as well. +1 >...and outside of publicity, I'm all in on this movement :) Yay! -Barry -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: not available URL: From jnoller at gmail.com Tue Apr 24 22:50:02 2012 From: jnoller at gmail.com (Jesse Noller) Date: Tue, 24 Apr 2012 16:50:02 -0400 Subject: [Python-porting] Is this the best place for Python 3 porting discussions? In-Reply-To: <20120424164222.6e67e59a@resist.wooz.org> References: <20120424141231.4bb6c5ec@resist.wooz.org> <20120424164222.6e67e59a@resist.wooz.org> Message-ID: Who wants commit bits for getpython3.com? On Apr 24, 2012, at 4:42 PM, Barry Warsaw wrote: > On Apr 24, 2012, at 01:18 PM, Brian Curtin wrote: > >> I don't know of a better location where this is discussion has been >> going on at, but I can work on drumming up some publicity to this list >> if that would help. > > It would! > >> I have the keys to Python's facebook and Google+ accounts, and can write >> about it on blog.python.org as well. > > Excellent, thanks. I'm about to publish an article in my own blog about this > effort, and I think/hope it will get syndicated to blog.python.org. I'll post > a link here when it's published. > >> Reddit seems to have more people chiming in about porting in recent times >> (but a good share of porting haters, as well), and could put something up >> there as well. > > +1 > >> ...and outside of publicity, I'm all in on this movement :) > > Yay! > -Barry > > _______________________________________________ > Python-porting mailing list > Python-porting at python.org > http://mail.python.org/mailman/listinfo/python-porting From tshepang at gmail.com Tue Apr 24 23:05:42 2012 From: tshepang at gmail.com (Tshepang Lekhonkhobe) Date: Tue, 24 Apr 2012 23:05:42 +0200 Subject: [Python-porting] Is this the best place for Python 3 porting discussions? In-Reply-To: <20120424163914.1b96f498@resist.wooz.org> References: <20120424141231.4bb6c5ec@resist.wooz.org> <20120424163914.1b96f498@resist.wooz.org> Message-ID: On Tue, Apr 24, 2012 at 22:39, Barry Warsaw wrote: > Agreed. ?And I have to say, your python3porting.com site has been > *tremendously* helpful. ?I've been using that as the definitive reference for > porting issues. ?There are some omissions though, and I'm wondering if it's > possible to contribute content. ?Since it's currently only available online, > maybe you'd consider publishing a branch some place where we can submit > updates? Here's me asking 1 question 3 times: What is the difference between the official http://docs.python.org/howto/pyporting.html and http://python3porting.com/? Do they complement each other, or are they largely duplicates? Which to choose? From tshepang at gmail.com Tue Apr 24 23:14:55 2012 From: tshepang at gmail.com (Tshepang Lekhonkhobe) Date: Tue, 24 Apr 2012 23:14:55 +0200 Subject: [Python-porting] Is this the best place for Python 3 porting discussions? In-Reply-To: <20120424163914.1b96f498@resist.wooz.org> References: <20120424141231.4bb6c5ec@resist.wooz.org> <20120424163914.1b96f498@resist.wooz.org> Message-ID: On Tue, Apr 24, 2012 at 22:39, Barry Warsaw wrote: >>I think this is the best place for discussions, and for straight >>questions and problems, Stackexhange is hard to beat. > > Do you hang out there? ?There doesn't appear to be a Python-specific site and > I took a quick look at the programmers site but don't see much in the way of > Python 3 questions. ?How can we best use Stackexchange for providing Python 3 > help? Stack Overflow accepts questions on all programming languages, and for the specific problems of porting to py3k, you need only use 3 tags: * python * py3k * porting @lennart Maybe a special flag for porting to py3k needs to be created? From tshepang at gmail.com Tue Apr 24 23:17:52 2012 From: tshepang at gmail.com (Tshepang Lekhonkhobe) Date: Tue, 24 Apr 2012 23:17:52 +0200 Subject: [Python-porting] Is this the best place for Python 3 porting discussions? In-Reply-To: References: <20120424141231.4bb6c5ec@resist.wooz.org> <20120424163914.1b96f498@resist.wooz.org> Message-ID: > Stack Overflow accepts questions on all programming languages, and for > the specific problems of porting to py3k, you need only use 3 tags: > > * python > * py3k > * porting Currently there's sadly only 4 such questions: http://stackoverflow.com/questions/tagged/python+porting+python-3.x From barry at python.org Tue Apr 24 23:27:21 2012 From: barry at python.org (Barry Warsaw) Date: Tue, 24 Apr 2012 17:27:21 -0400 Subject: [Python-porting] Is this the best place for Python 3 porting discussions? In-Reply-To: References: <20120424141231.4bb6c5ec@resist.wooz.org> <20120424163914.1b96f498@resist.wooz.org> Message-ID: <20120424172721.278bd9e9@resist.wooz.org> On Apr 24, 2012, at 11:17 PM, Tshepang Lekhonkhobe wrote: >> Stack Overflow accepts questions on all programming languages, and for >> the specific problems of porting to py3k, you need only use 3 tags: >> >> * python >> * py3k >> * porting > >Currently there's sadly only 4 such questions: >http://stackoverflow.com/questions/tagged/python+porting+python-3.x Ah. stackoverflow.com != stackexchange.com :) -Barry -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: not available URL: From barry at python.org Tue Apr 24 23:28:53 2012 From: barry at python.org (Barry Warsaw) Date: Tue, 24 Apr 2012 17:28:53 -0400 Subject: [Python-porting] Is this the best place for Python 3 porting discussions? In-Reply-To: References: <20120424141231.4bb6c5ec@resist.wooz.org> <20120424164222.6e67e59a@resist.wooz.org> Message-ID: <20120424172853.6fb66fe3@resist.wooz.org> On Apr 24, 2012, at 04:50 PM, Jesse Noller wrote: >Who wants commit bits for getpython3.com? Me please! -Barry -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: not available URL: From jnoller at gmail.com Tue Apr 24 23:40:06 2012 From: jnoller at gmail.com (Jesse Noller) Date: Tue, 24 Apr 2012 17:40:06 -0400 Subject: [Python-porting] Is this the best place for Python 3 porting discussions? In-Reply-To: <20120424172853.6fb66fe3@resist.wooz.org> References: <20120424141231.4bb6c5ec@resist.wooz.org> <20120424164222.6e67e59a@resist.wooz.org> <20120424172853.6fb66fe3@resist.wooz.org> Message-ID: <7D816EC8-AF6D-4BF4-BA13-5E315A4C81B8@gmail.com> I need github usernames :) On Apr 24, 2012, at 5:28 PM, Barry Warsaw wrote: > On Apr 24, 2012, at 04:50 PM, Jesse Noller wrote: > >> Who wants commit bits for getpython3.com? > > Me please! > -Barry From brett at python.org Wed Apr 25 03:26:36 2012 From: brett at python.org (Brett Cannon) Date: Tue, 24 Apr 2012 21:26:36 -0400 Subject: [Python-porting] Is this the best place for Python 3 porting discussions? In-Reply-To: References: <20120424141231.4bb6c5ec@resist.wooz.org> <20120424163914.1b96f498@resist.wooz.org> Message-ID: On Tue, Apr 24, 2012 at 17:05, Tshepang Lekhonkhobe wrote: > On Tue, Apr 24, 2012 at 22:39, Barry Warsaw wrote: > > Agreed. And I have to say, your python3porting.com site has been > > *tremendously* helpful. I've been using that as the definitive > reference for > > porting issues. There are some omissions though, and I'm wondering if > it's > > possible to contribute content. Since it's currently only available > online, > > maybe you'd consider publishing a branch some place where we can submit > > updates? > > Here's me asking 1 question 3 times: > > What is the difference between the official > http://docs.python.org/howto/pyporting.html and > http://python3porting.com/? Do they complement each other, or are they > largely duplicates? Which to choose? > Consider the HOWTO an abbreviated version of Lennart's site. I wrote the HOWTO, but took input from Lennart and tried to keep it short enough to digest (which is why I link to Lennart's site in the HOWTO). -Brett > _______________________________________________ > Python-porting mailing list > Python-porting at python.org > http://mail.python.org/mailman/listinfo/python-porting > -------------- next part -------------- An HTML attachment was scrubbed... URL: From barry at python.org Wed Apr 25 22:55:57 2012 From: barry at python.org (Barry Warsaw) Date: Wed, 25 Apr 2012 16:55:57 -0400 Subject: [Python-porting] Ubuntu 12.10's plans for Python 3 Message-ID: <20120425165557.5349b13c@limelight.wooz.org> Hello again Python porters! I've now published my article on Ubuntu's Python plans for 12.10: http://tinyurl.com/7su6ewh with some healthy discussion already underway in the comments. A more detailed specification of the work is available here: https://wiki.ubuntu.com/Python/FoundationsQPythonVersions and probably most important, is a Google doc spreadsheet indicating our priorities for porting to Python 3, both for libraries and applications. The wiki page above has a legend for the colors. http://tinyurl.com/7dsyywo With Allen Short's help, I've gained +op on #python3 on Freenode, so that's a great place to come and discuss porting issues. I've also started a quick reference guide here: https://wiki.ubuntu.com/Python/3 although it would be great to fold that into one of the existing guides, either Lennart's or getpython3.com. I admit to being deliberately more opinionated on the "best" way to port. I think it's more helpful to have a very cookbook-style guide with strong opinions, and links to more detailed discussions with alternatives for those who want to dive in deeper. Anyway, I really hope you'll consider helping out with any of the packages listed in the spreadsheet. Certainly some are rather Ubuntu specific, but more importantly, there are packages for which a port would help everyone. I'm especially trying to round up folks to help with the Twisted packages, so let me know if you're willing and able. Now I'm going to go spam python-announce, python-list, and (yes) python-dev to point people over here. Cheers, -Barry -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: not available URL: From barry at python.org Fri Apr 27 17:38:22 2012 From: barry at python.org (Barry Warsaw) Date: Fri, 27 Apr 2012 11:38:22 -0400 Subject: [Python-porting] Py_TPFLAGS_HAVE_{WEAKREFS,ITER} in Python 3 Message-ID: <20120427113822.599c7ed8@limelight.wooz.org> Someone is trying to build gdb 7.4 with Python 3 and hit a problem with Py_TPFLAGS_HAVE_ITER. PEP 234 describes this flag, which no longer exists in Python 3. python3porting.com has precious little to say about Py_TPFLAGS changes in Python 3. When I did the dbus-python port, I found that Py_TPFLAGS_HAVE_WEAKREFS is both unnecessary and undefined in Python 3. Unfortunately, if you're going to support both Python 2 and 3 with the same C code, you'll need to #ifdef that away (since it's still required in Python 2). My guess is that HAVE_ITER falls under the same recommendation, but I'm looking for verification. For now, I've added this to https://wiki.ubuntu.com/Python/3 Cheers, -Barry -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: not available URL: From amauryfa at gmail.com Fri Apr 27 17:48:49 2012 From: amauryfa at gmail.com (Amaury Forgeot d'Arc) Date: Fri, 27 Apr 2012 17:48:49 +0200 Subject: [Python-porting] Py_TPFLAGS_HAVE_{WEAKREFS,ITER} in Python 3 In-Reply-To: <20120427113822.599c7ed8@limelight.wooz.org> References: <20120427113822.599c7ed8@limelight.wooz.org> Message-ID: Hi, 2012/4/27 Barry Warsaw > Someone is trying to build gdb 7.4 with Python 3 and hit a problem with > Py_TPFLAGS_HAVE_ITER. PEP 234 describes this flag, which no longer exists > in > Python 3. python3porting.com has precious little to say about Py_TPFLAGS > changes in Python 3. > > When I did the dbus-python port, I found that Py_TPFLAGS_HAVE_WEAKREFS is > both > unnecessary and undefined in Python 3. Unfortunately, if you're going to > support both Python 2 and 3 with the same C code, you'll need to #ifdef > that > away (since it's still required in Python 2). > > My guess is that HAVE_ITER falls under the same recommendation, but I'm > looking for verification. For now, I've added this to > https://wiki.ubuntu.com/Python/3 This is correct. I checked that everywhere Py_TPFLAGS_HAVE_ITER is used in Python2.7, the corresponding code in Python 3 does as if this flag is always set. So you could either #ifdef its usage, or simply put in some compatibility header file: #if PY_MAJOR_VERSION >=3 # define Py_TPFLAGS_HAVE_ITER 0 #endif -- Amaury Forgeot d'Arc -------------- next part -------------- An HTML attachment was scrubbed... URL: From barry at python.org Fri Apr 27 19:06:52 2012 From: barry at python.org (Barry Warsaw) Date: Fri, 27 Apr 2012 13:06:52 -0400 Subject: [Python-porting] Py_TPFLAGS_HAVE_{WEAKREFS,ITER} in Python 3 In-Reply-To: References: <20120427113822.599c7ed8@limelight.wooz.org> Message-ID: <20120427130652.4b139c99@limelight.wooz.org> On Apr 27, 2012, at 05:48 PM, Amaury Forgeot d'Arc wrote: >This is correct. I checked that everywhere Py_TPFLAGS_HAVE_ITER is used in >Python2.7, the corresponding code in Python 3 does as if this flag is always >set. > >So you could either #ifdef its usage, or simply put in some compatibility >header file: >#if PY_MAJOR_VERSION >=3 ># define Py_TPFLAGS_HAVE_ITER 0 >#endif Thanks for the confirmation. I've been wondering if Benjamin might be interested in contributions to `six` that address C compatibility. -Barry -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: not available URL: From regebro at gmail.com Fri Apr 27 23:23:23 2012 From: regebro at gmail.com (Lennart Regebro) Date: Fri, 27 Apr 2012 23:23:23 +0200 Subject: [Python-porting] Py_TPFLAGS_HAVE_{WEAKREFS,ITER} in Python 3 In-Reply-To: <20120427130652.4b139c99@limelight.wooz.org> References: <20120427113822.599c7ed8@limelight.wooz.org> <20120427130652.4b139c99@limelight.wooz.org> Message-ID: On Fri, Apr 27, 2012 at 19:06, Barry Warsaw wrote: > Thanks for the confirmation. ?I've been wondering if Benjamin might be > interested in contributions to `six` that address C compatibility. A big header file with ifdefs would definitely help a lot of people, I think. I only did the things I encountered, and I only did some small things like zope.interface. //Lennart From barry at python.org Fri Apr 27 23:29:03 2012 From: barry at python.org (Barry Warsaw) Date: Fri, 27 Apr 2012 17:29:03 -0400 Subject: [Python-porting] Py_TPFLAGS_HAVE_{WEAKREFS,ITER} in Python 3 In-Reply-To: References: <20120427113822.599c7ed8@limelight.wooz.org> <20120427130652.4b139c99@limelight.wooz.org> Message-ID: <20120427172903.28f8d73e@resist.wooz.org> On Apr 27, 2012, at 11:23 PM, Lennart Regebro wrote: >On Fri, Apr 27, 2012 at 19:06, Barry Warsaw wrote: >> Thanks for the confirmation. ?I've been wondering if Benjamin might be >> interested in contributions to `six` that address C compatibility. > >A big header file with ifdefs would definitely help a lot of people, I >think. I only did the things I encountered, and I only did some small >things like zope.interface. Cool, also Lennart, what's the best way to give you updates for python3porting.com? -Barry -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: not available URL: From benjamin at python.org Fri Apr 27 23:33:19 2012 From: benjamin at python.org (Benjamin Peterson) Date: Fri, 27 Apr 2012 17:33:19 -0400 Subject: [Python-porting] Py_TPFLAGS_HAVE_{WEAKREFS,ITER} in Python 3 In-Reply-To: <20120427130652.4b139c99@limelight.wooz.org> References: <20120427113822.599c7ed8@limelight.wooz.org> <20120427130652.4b139c99@limelight.wooz.org> Message-ID: 2012/4/27 Barry Warsaw : > On Apr 27, 2012, at 05:48 PM, Amaury Forgeot d'Arc wrote: > >>This is correct. I checked that everywhere Py_TPFLAGS_HAVE_ITER is used in >>Python2.7, the corresponding code in Python 3 does as if this flag is always >>set. >> >>So you could either #ifdef its usage, or simply put in some compatibility >>header file: >>#if PY_MAJOR_VERSION >=3 >># ?define Py_TPFLAGS_HAVE_ITER 0 >>#endif > > Thanks for the confirmation. ?I've been wondering if Benjamin might be > interested in contributions to `six` that address C compatibility. Yes, absolutely. I haven't ported gobs of C code, so I'm not up on what exactly people want. -- Regards, Benjamin From regebro at gmail.com Fri Apr 27 23:47:27 2012 From: regebro at gmail.com (Lennart Regebro) Date: Fri, 27 Apr 2012 23:47:27 +0200 Subject: [Python-porting] Py_TPFLAGS_HAVE_{WEAKREFS,ITER} in Python 3 In-Reply-To: <20120427172903.28f8d73e@resist.wooz.org> References: <20120427113822.599c7ed8@limelight.wooz.org> <20120427130652.4b139c99@limelight.wooz.org> <20120427172903.28f8d73e@resist.wooz.org> Message-ID: On Fri, Apr 27, 2012 at 23:29, Barry Warsaw wrote: > Cool, also Lennart, what's the best way to give you updates for > python3porting.com? Not sure, I'm pondering the options. :-) //Lennart From barry at python.org Sat Apr 28 00:23:21 2012 From: barry at python.org (Barry Warsaw) Date: Fri, 27 Apr 2012 18:23:21 -0400 Subject: [Python-porting] Py_TPFLAGS_HAVE_{WEAKREFS,ITER} in Python 3 In-Reply-To: References: <20120427113822.599c7ed8@limelight.wooz.org> <20120427130652.4b139c99@limelight.wooz.org> Message-ID: <20120427182321.3cf23813@resist.wooz.org> On Apr 27, 2012, at 05:33 PM, Benjamin Peterson wrote: >Yes, absolutely. I haven't ported gobs of C code, so I'm not up on >what exactly people want. I have a few big extensions under my belt, so I can take a first crack at it. I guess the thing to do is to branch six on bitbucket. I'll probably do that next week. -Barry -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: not available URL: