From wam at cisco.com Tue Mar 2 17:46:20 2010 From: wam at cisco.com (William McVey) Date: Tue, 02 Mar 2010 11:46:20 -0500 Subject: [py-dev] py.path.local no longer iterable? Message-ID: <1267548380.3539.486.camel@talyn.cisco.com> So, I've been running py-1.0.2 for quite a while. I'm now trying to upgrade my code to use the current py library (1.2.1) and standalone execnet. I'm curious whether the removal of the iterator functionality on os.path.local() objects was intentional. I read through the changelog, and didn't see anything other than: 1.0.2 -> 1.1.0 * simplified internal localpath implementation To me though, I would have expected the API to stay consistent though. -- William P.S. Perhaps I missed it, but Py lib's website doesn't seem to give a link to a public code repository for the Py lib. I eventually found it (I think) under Holger's bitbucket account. From Adam.Schmalhofer at gmx.de Wed Mar 3 18:27:46 2010 From: Adam.Schmalhofer at gmx.de (Adam) Date: Wed, 3 Mar 2010 18:27:46 +0100 Subject: [py-dev] py.path.local no longer iterable? In-Reply-To: <1267548380.3539.486.camel@talyn.cisco.com> References: <1267548380.3539.486.camel@talyn.cisco.com> Message-ID: <20100303182746.7476b638@deepthought> William McVey wrote: > So, I've been running py-1.0.2 for quite a while. I'm now trying to > upgrade my code to use the current py library (1.2.1) and standalone > execnet. I'm curious whether the removal of the iterator functionality > on os.path.local() objects was intentional. I read through the > changelog, and didn't see anything other than: > > 1.0.2 -> 1.1.0 > * simplified internal localpath implementation > > To me though, I would have expected the API to stay consistent though. Use py.path.local('~').visit() it works in both Versions. Can't tell you if the removal was intentional or not. --Adam -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 828 bytes Desc: not available URL: From holger at merlinux.eu Thu Mar 4 21:03:39 2010 From: holger at merlinux.eu (holger krekel) Date: Thu, 4 Mar 2010 21:03:39 +0100 Subject: [py-dev] py.path.local no longer iterable? In-Reply-To: <1267548380.3539.486.camel@talyn.cisco.com> References: <1267548380.3539.486.camel@talyn.cisco.com> Message-ID: <20100304200339.GL3492@trillke.net> On Tue, Mar 02, 2010 at 11:46 -0500, William McVey wrote: > So, I've been running py-1.0.2 for quite a while. I'm now trying to > upgrade my code to use the current py library (1.2.1) and standalone > execnet. I'm curious whether the removal of the iterator functionality > on os.path.local() objects was intentional. I read through the > changelog, and didn't see anything other than: > > 1.0.2 -> 1.1.0 > * simplified internal localpath implementation not very detailed, sorry. iterator got removed because there should be only one way to do it and "listdir()" does what the iterator does already. > To me though, I would have expected the API to stay consistent though. In retrospect it's maybe questionable to remove the iterator (and the __contains__ method). To be honest i am never quite sure how many people depend on py.path as opposed to py.test. > -- William > > P.S. Perhaps I missed it, but Py lib's website doesn't seem to give a > link to a public code repository for the Py lib. I eventually found it > (I think) under Holger's bitbucket account. I think that http://codespeak.net/py/dist/install.html has several pointers to the hg repository or did you look at other docs? cheers, holger From Ronny.Pfannschmidt at gmx.de Mon Mar 8 15:59:10 2010 From: Ronny.Pfannschmidt at gmx.de (Ronny Pfannschmidt) Date: Mon, 08 Mar 2010 15:59:10 +0100 Subject: [py-dev] py.path.local no longer iterable? In-Reply-To: <20100304200339.GL3492@trillke.net> References: <1267548380.3539.486.camel@talyn.cisco.com> <20100304200339.GL3492@trillke.net> Message-ID: <1268060350.23770.7.camel@localhost> Hi, Since i also started to depend on py.path, i started to think about making it a standalone library. Since this would also help me to make py.path a more suitable base for anyvc, as well as a good runtime dependency for kij and pida i'm obviously in favor. How do others think about such a change? Regards, Ronny On Thu, 2010-03-04 at 21:03 +0100, holger krekel wrote: > On Tue, Mar 02, 2010 at 11:46 -0500, William McVey wrote: > > So, I've been running py-1.0.2 for quite a while. I'm now trying to > > upgrade my code to use the current py library (1.2.1) and standalone > > execnet. I'm curious whether the removal of the iterator functionality > > on os.path.local() objects was intentional. I read through the > > changelog, and didn't see anything other than: > > > > 1.0.2 -> 1.1.0 > > * simplified internal localpath implementation > > not very detailed, sorry. > iterator got removed because there should be only one way to do it > and "listdir()" does what the iterator does already. > > > To me though, I would have expected the API to stay consistent though. > > In retrospect it's maybe questionable to remove the iterator (and the > __contains__ method). To be honest i am never quite sure how many > people depend on py.path as opposed to py.test. > > > -- William > > > > P.S. Perhaps I missed it, but Py lib's website doesn't seem to give a > > link to a public code repository for the Py lib. I eventually found it > > (I think) under Holger's bitbucket account. > > I think that > > http://codespeak.net/py/dist/install.html > > has several pointers to the hg repository or did you look > at other docs? > > cheers, > holger From johnny at johnnydebris.net Tue Mar 30 14:34:22 2010 From: johnny at johnnydebris.net (Johnny deBris) Date: Tue, 30 Mar 2010 14:34:22 +0200 Subject: [py-dev] Documentation site broken Message-ID: <4BB1EFCE.5080403@johnnydebris.net> Hi! I noticed that there are many broken links on codespeak.net/py since recently, it seems none of the py/test docs are available anymore. Could that be fixed please? Cheers, Guido From prologic at shortcircuit.net.au Tue Mar 30 17:59:32 2010 From: prologic at shortcircuit.net.au (James Mills) Date: Wed, 31 Mar 2010 01:59:32 +1000 Subject: [py-dev] Documentation site broken In-Reply-To: <4BB1EFCE.5080403@johnnydebris.net> References: <4BB1EFCE.5080403@johnnydebris.net> Message-ID: On Tue, Mar 30, 2010 at 10:34 PM, Johnny deBris wrote: > I noticed that there are many broken links on codespeak.net/py since > recently, it seems none of the py/test docs are available anymore. Could > that be fixed please? Aren't the docs and the website here: http://codespeak.net/py/dist/test/ ? Redirected from http://pytest.org/ cheers James From johnny at johnnydebris.net Wed Mar 31 10:49:58 2010 From: johnny at johnnydebris.net (Johnny deBris) Date: Wed, 31 Mar 2010 10:49:58 +0200 Subject: [py-dev] Documentation site broken In-Reply-To: References: <4BB1EFCE.5080403@johnnydebris.net> Message-ID: <4BB30CB6.6020307@johnnydebris.net> James Mills wrote: > Aren't the docs and the website here: > http://codespeak.net/py/dist/test/ ? > > Redirected from http://pytest.org/ > > Ah, that at least gives me the docs I was looking for... Thanks! Of course that does still mean there's a lot of broken links on the website, I guess it would make sense if someone could fix them (not sure where they need to point to, I might still have access to the codespeak host but am unsure how to fix this properly). Cheers, Guido