From cbutcher at fox-it.com Mon Dec 14 09:55:08 2009 From: cbutcher at fox-it.com (Christo Butcher) Date: Mon, 14 Dec 2009 09:55:08 +0100 Subject: [python-nl] PUN meetup this Thursday Message-ID: Hello PUNners, Don't forget this Thursday's meetup at Fox-IT in Delft. Call for presentations: anybody who'd like to share some thoughts with the rest of us, please let me know! Currently only some small talks on the program. Call for hungry people: the canteen staff is busy organizing food for 30 people, however only about 20 people have told me they'll come. (Food hint: satay, various salads, beer, wine, drinks, borrelhapjes, etc.) Hope to see you all on Thursday, -- Christo. From reinout at vanrees.org Wed Dec 16 23:18:30 2009 From: reinout at vanrees.org (Reinout van Rees) Date: Wed, 16 Dec 2009 23:18:30 +0100 Subject: [python-nl] PUN meetup this Thursday In-Reply-To: References: Message-ID: <4B295CB6.6030208@vanrees.org> On 12/14/09 9:55 AM, Christo Butcher wrote: > > Don't forget this Thursday's meetup at Fox-IT in Delft. I'm giving a presentation on managing dependencies. Setup.py dependencies are real handy. But don't install everything in your system python's site_packages directory. Keep that maintainable. And what about versions? And how to keep your setup.py up-to-date with what you're actually using/importing in your package? I'll give a 30 minute presentation that hopefully gives you some pointers and tricks. See you thursday evening! Reinout -- Reinout van Rees - reinout at vanrees.org - http://reinout.vanrees.org Software developer at http://www.thehealthagency.com "Military engineers build missiles. Civil engineers build targets" From gijs at pythonic.nl Thu Dec 17 08:40:36 2009 From: gijs at pythonic.nl (Gijs Molenaar) Date: Thu, 17 Dec 2009 08:40:36 +0100 Subject: [python-nl] PUN meetup this Thursday In-Reply-To: <4B295CB6.6030208@vanrees.org> References: <4B295CB6.6030208@vanrees.org> Message-ID: <4B29E074.4060807@pythonic.nl> Can't make it to the meeting, I would love to see the minutes of this... - gijs On 16-12-2009 23:18, Reinout van Rees wrote: > On 12/14/09 9:55 AM, Christo Butcher wrote: >> >> Don't forget this Thursday's meetup at Fox-IT in Delft. > > I'm giving a presentation on managing dependencies. Setup.py > dependencies are real handy. But don't install everything in your > system python's site_packages directory. Keep that maintainable. And > what about versions? And how to keep your setup.py up-to-date with > what you're actually using/importing in your package? > > I'll give a 30 minute presentation that hopefully gives you some > pointers and tricks. > > > See you thursday evening! > > Reinout > > ------------- volgend deel ------------ Een niet-tekst bijlage is gescrubt... Naam: signature.asc Type: application/pgp-signature Grootte: 260 bytes Omschrijving: OpenPGP digital signature URL : From reinoutvanrees at gmail.com Thu Dec 17 09:29:09 2009 From: reinoutvanrees at gmail.com (Reinout van Rees) Date: Thu, 17 Dec 2009 09:29:09 +0100 Subject: [python-nl] PUN meetup this Thursday In-Reply-To: <4B29E074.4060807@pythonic.nl> References: <4B295CB6.6030208@vanrees.org> <4B29E074.4060807@pythonic.nl> Message-ID: There'll be a summary. It is on my harddisk already :-) Reinout -- Reinout van Rees reinout at vanrees.org http://reinout.vanrees.org http://www.thehealthagency.com On 17 dec 2009, at 08:40, Gijs Molenaar wrote: > > Can't make it to the meeting, I would love to see the minutes of > this... > > - gijs > > > > On 16-12-2009 23:18, Reinout van Rees wrote: >> On 12/14/09 9:55 AM, Christo Butcher wrote: >>> >>> Don't forget this Thursday's meetup at Fox-IT in Delft. >> >> I'm giving a presentation on managing dependencies. Setup.py >> dependencies are real handy. But don't install everything in your >> system python's site_packages directory. Keep that maintainable. >> And >> what about versions? And how to keep your setup.py up-to-date with >> what you're actually using/importing in your package? >> >> I'll give a 30 minute presentation that hopefully gives you some >> pointers and tricks. >> >> >> See you thursday evening! >> >> Reinout >> >> > > > _______________________________________________ > Python-nl mailing list > Python-nl at python.org > http://mail.python.org/mailman/listinfo/python-nl From kuno at frob.nl Thu Dec 17 11:44:34 2009 From: kuno at frob.nl (Kuno Woudt) Date: Thu, 17 Dec 2009 11:44:34 +0100 Subject: [python-nl] PUN meetup this Thursday In-Reply-To: <4B295CB6.6030208@vanrees.org> References: <4B295CB6.6030208@vanrees.org> Message-ID: <20091217104434.GA8482@thwomp.bliss> On Wed, Dec 16, 2009 at 11:18:30PM +0100, Reinout van Rees wrote: > > I'm giving a presentation on managing dependencies. Setup.py > dependencies are real handy. But don't install everything in your > system python's site_packages directory. Keep that maintainable. And > what about versions? And how to keep your setup.py up-to-date with what > you're actually using/importing in your package? > > I'll give a 30 minute presentation that hopefully gives you some > pointers and tricks. Will you touch on setuptools/easy_install/distribute/pip? I've never packaged anything I've written in python and am a bit confused which of the above tools you need and how they relate to eachother. So a quick intro on that would be really appreciated. -- kuno. From reinout at vanrees.org Thu Dec 17 12:16:03 2009 From: reinout at vanrees.org (Reinout van Rees) Date: Thu, 17 Dec 2009 12:16:03 +0100 Subject: [python-nl] PUN meetup this Thursday In-Reply-To: <20091217104434.GA8482@thwomp.bliss> References: <4B295CB6.6030208@vanrees.org> <20091217104434.GA8482@thwomp.bliss> Message-ID: <4B2A12F3.5020209@vanrees.org> On 12/17/09 11:44 AM, Kuno Woudt wrote: > On Wed, Dec 16, 2009 at 11:18:30PM +0100, Reinout van Rees wrote: >> >> I'm giving a presentation on managing dependencies. Setup.py >> dependencies are real handy. But don't install everything in your >> system python's site_packages directory. Keep that maintainable. And >> what about versions? And how to keep your setup.py up-to-date with what >> you're actually using/importing in your package? >> >> I'll give a 30 minute presentation that hopefully gives you some >> pointers and tricks. > > Will you touch on setuptools/easy_install/distribute/pip? > > I've never packaged anything I've written in python and am a bit > confused which of the above tools you need and how they relate to > eachother. So a quick intro on that would be really appreciated. Yep, I mention (and explain) all four of them :-) And more of course, but the quick intro is in there. Reinout -- Reinout van Rees - reinout at vanrees.org - http://reinout.vanrees.org Software developer at http://www.thehealthagency.com "Military engineers build missiles. Civil engineers build targets" From kuno at frob.nl Thu Dec 17 12:22:10 2009 From: kuno at frob.nl (Kuno Woudt) Date: Thu, 17 Dec 2009 12:22:10 +0100 Subject: [python-nl] PUN meetup this Thursday In-Reply-To: <4B2A12F3.5020209@vanrees.org> References: <4B295CB6.6030208@vanrees.org> <20091217104434.GA8482@thwomp.bliss> <4B2A12F3.5020209@vanrees.org> Message-ID: <20091217112209.GD8482@thwomp.bliss> On Thu, Dec 17, 2009 at 12:16:03PM +0100, Reinout van Rees wrote: > On 12/17/09 11:44 AM, Kuno Woudt wrote: >> >> Will you touch on setuptools/easy_install/distribute/pip? >> >> I've never packaged anything I've written in python and am a bit >> confused which of the above tools you need and how they relate to >> eachother. So a quick intro on that would be really appreciated. > > Yep, I mention (and explain) all four of them :-) > > And more of course, but the quick intro is in there. Cool, thanks, looking forward to it. -- kuno. From reinout at vanrees.org Thu Dec 17 12:24:24 2009 From: reinout at vanrees.org (Reinout van Rees) Date: Thu, 17 Dec 2009 12:24:24 +0100 Subject: [python-nl] PUN meetup this Thursday In-Reply-To: <20091217112209.GD8482@thwomp.bliss> References: <4B295CB6.6030208@vanrees.org> <20091217104434.GA8482@thwomp.bliss> <4B2A12F3.5020209@vanrees.org> <20091217112209.GD8482@thwomp.bliss> Message-ID: <4B2A14E8.8060009@vanrees.org> On 12/17/09 12:22 PM, Kuno Woudt wrote: > On Thu, Dec 17, 2009 at 12:16:03PM +0100, Reinout van Rees wrote: >> On 12/17/09 11:44 AM, Kuno Woudt wrote: >>> >>> Will you touch on setuptools/easy_install/distribute/pip? >>> >>> I've never packaged anything I've written in python and am a bit >>> confused which of the above tools you need and how they relate to >>> eachother. So a quick intro on that would be really appreciated. >> >> Yep, I mention (and explain) all four of them :-) >> >> And more of course, but the quick intro is in there. > > Cool, thanks, looking forward to it. Just at this very moment I'm being bitten again by some setuptools/distribute difference thingy... Ah well, debugging :-) Reinout -- Reinout van Rees - reinout at vanrees.org - http://reinout.vanrees.org Software developer at http://www.thehealthagency.com "Military engineers build missiles. Civil engineers build targets" From tim at timmolendijk.nl Thu Dec 17 14:06:29 2009 From: tim at timmolendijk.nl (Tim Molendijk) Date: Thu, 17 Dec 2009 14:06:29 +0100 Subject: [python-nl] PUN meetup this Thursday In-Reply-To: <4B2A14E8.8060009@vanrees.org> References: <4B295CB6.6030208@vanrees.org> <20091217104434.GA8482@thwomp.bliss> <4B2A12F3.5020209@vanrees.org> <20091217112209.GD8482@thwomp.bliss> <4B2A14E8.8060009@vanrees.org> Message-ID: Python packaging / dependencies / distribution / deployment can be both extremely powerful (if you sort of understand what's going on) and extremely confusing (in most of the other situations). It's a field that could use a lot of improvement, which is fortunately happening (distribute and pip are two examples). I'm always impressed by the level of expertise that Reinout can demonstrate on this topic, so I'm looking forward to his talk. -- http://timmolendijk.nl ? http://twitter.com/timmolendijk 2009/12/17 Reinout van Rees > On 12/17/09 12:22 PM, Kuno Woudt wrote: > >> On Thu, Dec 17, 2009 at 12:16:03PM +0100, Reinout van Rees wrote: >> >>> On 12/17/09 11:44 AM, Kuno Woudt wrote: >>> >>>> >>>> Will you touch on setuptools/easy_install/distribute/pip? >>>> >>>> I've never packaged anything I've written in python and am a bit >>>> confused which of the above tools you need and how they relate to >>>> eachother. So a quick intro on that would be really appreciated. >>>> >>> >>> Yep, I mention (and explain) all four of them :-) >>> >>> And more of course, but the quick intro is in there. >>> >> >> Cool, thanks, looking forward to it. >> > > Just at this very moment I'm being bitten again by some > setuptools/distribute difference thingy... Ah well, debugging :-) > > > > Reinout > > -- > Reinout van Rees - reinout at vanrees.org - http://reinout.vanrees.org > Software developer at http://www.thehealthagency.com > "Military engineers build missiles. Civil engineers build targets" > _______________________________________________ > Python-nl mailing list > Python-nl at python.org > http://mail.python.org/mailman/listinfo/python-nl > -------------- next part -------------- An HTML attachment was scrubbed... URL: From egbertum at xs4all.nl Thu Dec 17 23:45:50 2009 From: egbertum at xs4all.nl (egbert) Date: Thu, 17 Dec 2009 23:45:50 +0100 Subject: [python-nl] html5lib enz Message-ID: <20091217224550.GA16418@xs4all.nl> Ik probeer iets te begrijpen van html5lib en zijn HTMLParser, maar ik kan geen fatsoenlijke documentatie vinden. Ook de samenwerking met BeautifulSoup interesseert me. Gebruikt de een de ander, of de ander de een, en waarom. Kent iemand een gebruiksaanwijzing, tutorial, oid ? egbert -- Egbert Bouwman - Keizersgracht 197 II - 1016 DS Amsterdam - 020 6257991 ======================================================================== From dirkjan at ochtman.nl Fri Dec 18 11:14:21 2009 From: dirkjan at ochtman.nl (Dirkjan Ochtman) Date: Fri, 18 Dec 2009 11:14:21 +0100 Subject: [python-nl] html5lib enz In-Reply-To: <20091217224550.GA16418@xs4all.nl> References: <20091217224550.GA16418@xs4all.nl> Message-ID: 2009/12/17 egbert : > Ik probeer iets te begrijpen van html5lib en zijn HTMLParser, > maar ik kan geen fatsoenlijke documentatie vinden. > Ook de samenwerking met BeautifulSoup interesseert me. > Gebruikt de een de ander, of de ander de een, en waarom. > Kent iemand een gebruiksaanwijzing, tutorial, oid ? Zo te zien is er geen documentatie, dus dat is een kwestie van Googlen! Dit is tot nu toe het beste wat ik heb gevonden: http://deathofagremmie.com/2009/04/12/using-html5lib-to-sanitize-user-input/ Als je een blog hebt is dit dus een goede optie om je google juice een beetje te verbeteren, door wat door de code te grasduinen en zelf een tutorial te klussen. Groet, Dirkjan From sergej.dergatsjev at gmail.com Sat Dec 19 11:22:53 2009 From: sergej.dergatsjev at gmail.com (Sergej dergatsjev eecho) Date: Sat, 19 Dec 2009 11:22:53 +0100 Subject: [python-nl] html5lib enz In-Reply-To: <20091217224550.GA16418@xs4all.nl> References: <20091217224550.GA16418@xs4all.nl> Message-ID: <61c210640912190222l7e48667bkfe4d0f559a511df9@mail.gmail.com> Als ik probeer een lib te begrijpen en er is geen documentatie dan start ik in tests http://code.google.com/p/html5lib/source/browse/python/tests/ Code lezen kan ook helpen. zie ik niet direct nut van deze lib. BeautifulSoup voldoet meestal aan mijn eisen. Integratie van BeautifulSoup met mechanize is ook een interessante optie als dat aan het zoeken bent. http://wwwsearch.sourceforge.net/mechanize/ Op 17 december 2009 23:45 heeft egbert het volgende geschreven: > Ik probeer iets te begrijpen van html5lib en zijn HTMLParser, > maar ik kan geen fatsoenlijke documentatie vinden. > Ook de samenwerking met BeautifulSoup interesseert me. > Gebruikt de een de ander, of de ander de een, en waarom. > Kent iemand een gebruiksaanwijzing, tutorial, oid ? > egbert > -- > Egbert Bouwman - Keizersgracht 197 II - 1016 DS ?Amsterdam - 020 6257991 > ======================================================================== > _______________________________________________ > Python-nl mailing list > Python-nl at python.org > http://mail.python.org/mailman/listinfo/python-nl > From hendrikusgodvliet at gmail.com Mon Dec 21 15:25:48 2009 From: hendrikusgodvliet at gmail.com (Hendrikus Godvliet) Date: Mon, 21 Dec 2009 15:25:48 +0100 Subject: [python-nl] Addition and subtraction the results of optellen(), and aftrekken(). Message-ID: Hello all. I'm new on the mailing list. I would like to have the opportunity to Addition and subtraction the results of optellen(), and aftrekken(). How can i do this? #! /user/bin/python2.6 def aftrekken(): som_01 = 90 - 10 print som_01 def optellen(): som_02 = 10 + 10 print som_02 def text_rekenen(): text = """Hier zijn enkele berekeningen van de laatste opdrachten.""" print text text_rekenen() optellen() aftrekken() ------------- volgend deel ------------ Een HTML-bijlage is gescrubt... URL: From berry.groenendijk at gmail.com Mon Dec 21 15:35:32 2009 From: berry.groenendijk at gmail.com (berry groenendijk) Date: Mon, 21 Dec 2009 15:35:32 +0100 Subject: [python-nl] Addition and subtraction the results of optellen(), and aftrekken(). In-Reply-To: References: Message-ID: <680bcd950912210635v5095cbf2ife23a89a38eb2c6e@mail.gmail.com> Bedoel je dit? #! /user/bin/python def aftrekken(): som_01 = 90 - 10 return som_01 def optellen(): som_02 = 10 + 10 return som_02 def text_rekenen(): text = """Hier zijn enkele berekeningen van de laatste opdrachten.""" print text text_rekenen() print optellen() print aftrekken() print optellen() + aftrekken() print optellen() - aftrekken() On Mon, Dec 21, 2009 at 3:25 PM, Hendrikus Godvliet < hendrikusgodvliet at gmail.com> wrote: > Hello all. I'm new on the mailing list. > > I would like to have the opportunity to Addition and > subtraction the results of optellen(), and aftrekken(). > How can i do this? > > #! /user/bin/python2.6 > > def aftrekken(): > som_01 = 90 - 10 > print som_01 > > def optellen(): > som_02 = 10 + 10 > print som_02 > > def text_rekenen(): > text = """Hier zijn enkele berekeningen van de laatste opdrachten.""" > print text > > > text_rekenen() > optellen() > aftrekken() > > > > > > > _______________________________________________ > Python-nl mailing list > Python-nl at python.org > http://mail.python.org/mailman/listinfo/python-nl > > -- Berry Groenendijk [m] 06 13551472 [w] http://www.caerleon.nl -------------- next part -------------- An HTML attachment was scrubbed... URL: From hendrikusgodvliet at gmail.com Tue Dec 22 12:23:34 2009 From: hendrikusgodvliet at gmail.com (Hendrikus Godvliet) Date: Tue, 22 Dec 2009 12:23:34 +0100 Subject: [python-nl] Python-nl Digest, Vol 67, Issue 5 In-Reply-To: References: Message-ID: Bedoel je dit? #! /user/bin/python def aftrekken(): som_01 = 90 - 10 return som_01 def optellen(): som_02 = 10 + 10 return som_02 def text_rekenen(): text = """Hier zijn enkele berekeningen van de laatste opdrachten.""" print text text_rekenen() print optellen() print aftrekken() print optellen() + aftrekken() print optellen() - aftrekken() Ja dit is wat ik bedoel en het werkt. Bedankt. Volgende vraag. Om beter te leren begrijpen wat een class is en hoe het werkt. Kan ik van de bovenstaande code ook een class maken? Gr Hendrikus ------------- volgend deel ------------ Een HTML-bijlage is gescrubt... URL: From vm at klankschap.nl Tue Dec 22 12:31:12 2009 From: vm at klankschap.nl (Floris van Manen) Date: Tue, 22 Dec 2009 12:31:12 +0100 Subject: [python-nl] Python-nl Digest, Vol 67, Issue 5 In-Reply-To: References: Message-ID: class OpEnAf: def __init__(self, v) self.v = v def erbij(self, x): self.v += x def eraf(self, x): self.v -= x def resultaat(self): return self.v a = OpEnAf( 10 ) print a.resultaat() print a.v a.erbij(100) print a.v a.eraf(20) print a.v for i in range(10): a.erbij(i) print i, a.v print a.resultaat() On Dec 22, 2009, at 12:23, Hendrikus Godvliet wrote: > Bedoel je dit? > > #! /user/bin/python > > def aftrekken(): > som_01 = 90 - 10 > return som_01 > > def optellen(): > som_02 = 10 + 10 > return som_02 > > def text_rekenen(): > text = """Hier zijn enkele berekeningen van de laatste opdrachten.""" > print text > > > text_rekenen() > print optellen() > print aftrekken() > > print optellen() + aftrekken() > print optellen() - aftrekken() > > Ja dit is wat ik bedoel en het werkt. Bedankt. > Volgende vraag. Om beter te leren begrijpen wat een class is en hoe het werkt. Kan ik van de bovenstaande code ook een class maken? > > Gr Hendrikus > > > > _______________________________________________ > Python-nl mailing list > Python-nl at python.org > http://mail.python.org/mailman/listinfo/python-nl From vm at klankschap.nl Tue Dec 22 12:56:14 2009 From: vm at klankschap.nl (Floris van Manen) Date: Tue, 22 Dec 2009 12:56:14 +0100 Subject: [python-nl] Python-nl Digest, Vol 67, Issue 5 In-Reply-To: References: Message-ID: On Dec 22, 2009, at 12:31, Floris van Manen wrote: class OpEnAf: def __init__(self, v) self.v = v def erbij(self, x): self.v += x def eraf(self, x): self.v -= x def show(self): print 'Tussenstand:', self.v a = OpEnAf( 10 ) a.show() a.erbij(100) a.show() a.eraf(20) a.show() for i in range(10): a.erbij(i) print i, 'erbij is', a.v a.show() From cariserene at gmail.com Thu Dec 24 07:35:56 2009 From: cariserene at gmail.com (Cari Davidson) Date: Thu, 24 Dec 2009 07:35:56 +0100 Subject: [python-nl] Python / Django developer position at Layar Message-ID: <5c1ae4820912232235i67640b49s1e1a7f6f100cb04b@mail.gmail.com> Want to be part of a great team and help make something amazing? Layar is the creator of the leading augmented reality browser for Android and iPhone and a great place to work. We're located in Amsterdam, The Netherlands. If you're motivated by code, love python (and JavaScript), you'll love this job... To apply, send your CV/resum? (link or pdf) and cover letter to . (or if you want the fast track, send it straight to me! :) We are currently looking to fill the following vacancies: - Web/Python Developer, Server team -------------- next part -------------- An HTML attachment was scrubbed... URL: From reinout at vanrees.org Thu Dec 24 07:57:12 2009 From: reinout at vanrees.org (Reinout van Rees) Date: Thu, 24 Dec 2009 07:57:12 +0100 Subject: [python-nl] Python / Django developer position at Layar In-Reply-To: <5c1ae4820912232235i67640b49s1e1a7f6f100cb04b@mail.gmail.com> References: <5c1ae4820912232235i67640b49s1e1a7f6f100cb04b@mail.gmail.com> Message-ID: <4B3310C8.9040407@vanrees.org> On 12/24/09 7:35 AM, Cari Davidson wrote: > Want to be part of a great team and help make something amazing? Layar > is the creator of the leading augmented reality browser for Android and > iPhone and a great place to work. We're located in Amsterdam, The > Netherlands. If you're motivated by code, love python (and JavaScript), > you'll love this job... What I think I'll love, too: a talk at a PUN meeting about what Layar is doing with python! Reinout -- Reinout van Rees - reinout at vanrees.org - http://reinout.vanrees.org Software developer at http://www.thehealthagency.com "Military engineers build missiles. Civil engineers build targets" From cariserene at gmail.com Thu Dec 24 08:45:58 2009 From: cariserene at gmail.com (Cari Davidson) Date: Thu, 24 Dec 2009 08:45:58 +0100 Subject: [python-nl] Python / Django developer position at Layar In-Reply-To: <4B3310C8.9040407@vanrees.org> References: <5c1ae4820912232235i67640b49s1e1a7f6f100cb04b@mail.gmail.com> <4B3310C8.9040407@vanrees.org> Message-ID: <5c1ae4820912232345o48a3d4e0td0f2af45baf2ae7f@mail.gmail.com> Hi Reinout, I'd love to. I don't think it's that exciting though... it's just a Django web site and some django web services. I just joined the list, so I guess now I can participate. Can you send me the information on the next meeting? Thanks, Cari On Thu, Dec 24, 2009 at 7:57 AM, Reinout van Rees wrote: > On 12/24/09 7:35 AM, Cari Davidson wrote: > >> Want to be part of a great team and help make something amazing? Layar >> is the creator of the leading augmented reality browser for Android and >> iPhone and a great place to work. We're located in Amsterdam, The >> Netherlands. If you're motivated by code, love python (and JavaScript), >> you'll love this job... >> > > What I think I'll love, too: a talk at a PUN meeting about what Layar is > doing with python! > > > Reinout > > -- > Reinout van Rees - reinout at vanrees.org - http://reinout.vanrees.org > Software developer at http://www.thehealthagency.com > "Military engineers build missiles. Civil engineers build targets" > _______________________________________________ > Python-nl mailing list > Python-nl at python.org > http://mail.python.org/mailman/listinfo/python-nl > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cariserene at gmail.com Thu Dec 24 08:47:23 2009 From: cariserene at gmail.com (Cari Davidson) Date: Thu, 24 Dec 2009 08:47:23 +0100 Subject: [python-nl] Python / Django developer position at Layar In-Reply-To: <5c1ae4820912232345o48a3d4e0td0f2af45baf2ae7f@mail.gmail.com> References: <5c1ae4820912232235i67640b49s1e1a7f6f100cb04b@mail.gmail.com> <4B3310C8.9040407@vanrees.org> <5c1ae4820912232345o48a3d4e0td0f2af45baf2ae7f@mail.gmail.com> Message-ID: <5c1ae4820912232347t2cf0675di1b564f1ffe0cfc69@mail.gmail.com> so.. that's embarrassing. I hate when "Reply" replies to all by default. .... Sorry to spam the list. (twice now) On Thu, Dec 24, 2009 at 8:45 AM, Cari Davidson wrote: > Hi Reinout, > > I'd love to. I don't think it's that exciting though... it's just a > Django web site and some django web services. I just joined the list, so I > guess now I can participate. Can you send me the information on the next > meeting? > > Thanks, > Cari > > > > On Thu, Dec 24, 2009 at 7:57 AM, Reinout van Rees wrote: > >> On 12/24/09 7:35 AM, Cari Davidson wrote: >> >>> Want to be part of a great team and help make something amazing? Layar >>> is the creator of the leading augmented reality browser for Android and >>> iPhone and a great place to work. We're located in Amsterdam, The >>> Netherlands. If you're motivated by code, love python (and JavaScript), >>> you'll love this job... >>> >> >> What I think I'll love, too: a talk at a PUN meeting about what Layar is >> doing with python! >> >> >> Reinout >> >> -- >> Reinout van Rees - reinout at vanrees.org - http://reinout.vanrees.org >> Software developer at http://www.thehealthagency.com >> "Military engineers build missiles. Civil engineers build targets" >> _______________________________________________ >> Python-nl mailing list >> Python-nl at python.org >> http://mail.python.org/mailman/listinfo/python-nl >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From reinout at vanrees.org Thu Dec 24 09:44:30 2009 From: reinout at vanrees.org (Reinout van Rees) Date: Thu, 24 Dec 2009 09:44:30 +0100 Subject: [python-nl] Python / Django developer position at Layar In-Reply-To: <5c1ae4820912232345o48a3d4e0td0f2af45baf2ae7f@mail.gmail.com> References: <5c1ae4820912232235i67640b49s1e1a7f6f100cb04b@mail.gmail.com> <4B3310C8.9040407@vanrees.org> <5c1ae4820912232345o48a3d4e0td0f2af45baf2ae7f@mail.gmail.com> Message-ID: <4B3329EE.5020003@vanrees.org> On 12/24/09 8:45 AM, Cari Davidson wrote: > Hi Reinout, > > I'd love to. I don't think it's that exciting though... it's just a > Django web site and some django web services. I just joined the list, > so I guess now I can participate. Can you send me the information on > the next meeting? http://wiki.python.org/moin/PUN/ Next one is at 25 march 2010, location not yet known. Note that there's also a Dutch django meeting coming up: http://wiki.python.org/moin/DjangoMeetingNL. "Our first meeting will be held on the evening of probably Thursday 14 January 2010, in the Beurs van Berlage in Amsterdam". (I only found out about that django meeting last week: it wasn't really advertised here on this list). Highly recommended, attending a PUN meeting! Reinout -- Reinout van Rees - reinout at vanrees.org - http://reinout.vanrees.org Software developer at http://www.thehealthagency.com "Military engineers build missiles. Civil engineers build targets" From remco.wendt at gmail.com Thu Dec 24 08:02:06 2009 From: remco.wendt at gmail.com (Remco Wendt) Date: Thu, 24 Dec 2009 08:02:06 +0100 Subject: [python-nl] Python / Django developer position at Layar In-Reply-To: <4B3310C8.9040407@vanrees.org> References: <5c1ae4820912232235i67640b49s1e1a7f6f100cb04b@mail.gmail.com> <4B3310C8.9040407@vanrees.org> Message-ID: I second that! --- Sent from my phone Op 24 dec 2009 om 07:57 heeft Reinout van Rees het volgende geschreven:\ > On 12/24/09 7:35 AM, Cari Davidson wrote: >> Want to be part of a great team and help make something amazing? >> Layar >> is the creator of the leading augmented reality browser for Android >> and >> iPhone and a great place to work. We're located in Amsterdam, The >> Netherlands. If you're motivated by code, love python (and >> JavaScript), >> you'll love this job... > > What I think I'll love, too: a talk at a PUN meeting about what > Layar is doing with python! > > > Reinout > > -- > Reinout van Rees - reinout at vanrees.org - http://reinout.vanrees.org > Software developer at http://www.thehealthagency.com > "Military engineers build missiles. Civil engineers build targets" > _______________________________________________ > Python-nl mailing list > Python-nl at python.org > http://mail.python.org/mailman/listinfo/python-nl From remco.wendt at gmail.com Thu Dec 24 09:54:51 2009 From: remco.wendt at gmail.com (Remco Wendt) Date: Thu, 24 Dec 2009 09:54:51 +0100 Subject: [python-nl] Python / Django developer position at Layar In-Reply-To: <4B3329EE.5020003@vanrees.org> References: <5c1ae4820912232235i67640b49s1e1a7f6f100cb04b@mail.gmail.com> <4B3310C8.9040407@vanrees.org> <5c1ae4820912232345o48a3d4e0td0f2af45baf2ae7f@mail.gmail.com> <4B3329EE.5020003@vanrees.org> Message-ID: <16AA80F0-C56F-4AA6-A272-E727EB5028CF@gmail.com> Maybe layar would be interested in hosting the next pun? :) --- Sent from my phone Op 24 dec 2009 om 09:44 heeft Reinout van Rees het volgende geschreven:\ > On 12/24/09 8:45 AM, Cari Davidson wrote: >> Hi Reinout, >> >> I'd love to. I don't think it's that exciting though... it's just a >> Django web site and some django web services. I just joined the >> list, >> so I guess now I can participate. Can you send me the information >> on >> the next meeting? > > http://wiki.python.org/moin/PUN/ > > Next one is at 25 march 2010, location not yet known. > > Note that there's also a Dutch django meeting coming up: http://wiki.python.org/moin/DjangoMeetingNL > . "Our first meeting will be held on the evening of probably > Thursday 14 January 2010, in the Beurs van Berlage in Amsterdam". > > (I only found out about that django meeting last week: it wasn't > really advertised here on this list). > > > Highly recommended, attending a PUN meeting! > > Reinout > > -- > Reinout van Rees - reinout at vanrees.org - http://reinout.vanrees.org > Software developer at http://www.thehealthagency.com > "Military engineers build missiles. Civil engineers build targets" > _______________________________________________ > Python-nl mailing list > Python-nl at python.org > http://mail.python.org/mailman/listinfo/python-nl From vm at klankschap.nl Thu Dec 24 11:33:17 2009 From: vm at klankschap.nl (Floris van Manen) Date: Thu, 24 Dec 2009 11:33:17 +0100 Subject: [python-nl] Python / Django developer position at Layar In-Reply-To: <16AA80F0-C56F-4AA6-A272-E727EB5028CF@gmail.com> References: <5c1ae4820912232235i67640b49s1e1a7f6f100cb04b@mail.gmail.com> <4B3310C8.9040407@vanrees.org> <5c1ae4820912232345o48a3d4e0td0f2af45baf2ae7f@mail.gmail.com> <4B3329EE.5020003@vanrees.org> <16AA80F0-C56F-4AA6-A272-E727EB5028CF@gmail.com> Message-ID: On Dec 24, 2009, at 09:54, Remco Wendt wrote: > Maybe layar would be interested in hosting the next pun? :) In inverted-layar mode: e.g. we all stay home and look at the augmented meeting through our phones... .F From cariserene at gmail.com Thu Dec 24 12:42:15 2009 From: cariserene at gmail.com (Cari Davidson) Date: Thu, 24 Dec 2009 12:42:15 +0100 Subject: [python-nl] Python / Django developer position at Layar In-Reply-To: References: <5c1ae4820912232235i67640b49s1e1a7f6f100cb04b@mail.gmail.com> <4B3310C8.9040407@vanrees.org> <5c1ae4820912232345o48a3d4e0td0f2af45baf2ae7f@mail.gmail.com> <4B3329EE.5020003@vanrees.org> <16AA80F0-C56F-4AA6-A272-E727EB5028CF@gmail.com> Message-ID: <5c1ae4820912240342n186b88dcv554fa676dae0a42c@mail.gmail.com> it's augmented reality... not a replacement for it. :) So what's involved in hosting a PUN meeting? One thing I'm thinking about is that we could have one day of our 2-day AR Dev Camp in Amsterdam be dedicated to coding (in python, of course, since it is, after all, a superior language :) ) an AR layer... So, here are my questions: - Is the location pre-determined? ... or can it be a place of our choosing? - How many people do we need to have room for? - How long does a PUN last? - Is English OK? (I assume it is, since we're using it now. :) - Is the date pre-determined? - Would there be other speakers/projects? - Is it a problem if we spent the whole PUN talking about/playing with just one thing? My apologies if these seem like silly questions. I do intend on becoming more active in the community, but I haven't been to a PUN yet... It might be better to talk details off-list... whoever is 'in charge' can send me an email, and we can start planning. -- Cari P.S. I code. I'm not really an events planner or marketingy person, so bear with me a little. =D On Thu, Dec 24, 2009 at 11:33 AM, Floris van Manen wrote: > > On Dec 24, 2009, at 09:54, Remco Wendt wrote: > > > Maybe layar would be interested in hosting the next pun? :) > > In inverted-layar mode: > e.g. we all stay home and look at the augmented meeting through our > phones... > > .F > > _______________________________________________ > Python-nl mailing list > Python-nl at python.org > http://mail.python.org/mailman/listinfo/python-nl > -------------- next part -------------- An HTML attachment was scrubbed... URL: From johnny at johnnydebris.net Thu Dec 24 13:32:04 2009 From: johnny at johnnydebris.net (Johnny deBris) Date: Thu, 24 Dec 2009 13:32:04 +0100 Subject: [python-nl] Python / Django developer position at Layar In-Reply-To: <5c1ae4820912240342n186b88dcv554fa676dae0a42c@mail.gmail.com> References: <5c1ae4820912232235i67640b49s1e1a7f6f100cb04b@mail.gmail.com> <4B3310C8.9040407@vanrees.org> <5c1ae4820912232345o48a3d4e0td0f2af45baf2ae7f@mail.gmail.com> <4B3329EE.5020003@vanrees.org> <16AA80F0-C56F-4AA6-A272-E727EB5028CF@gmail.com> <5c1ae4820912240342n186b88dcv554fa676dae0a42c@mail.gmail.com> Message-ID: <4B335F44.9030100@johnnydebris.net> Cari Davidson wrote: > So what's involved in hosting a PUN meeting? Basically, if there's beer, or a place where we can get some nearby, it's a valid PUN meeting I'd say... ;) So far PUN meetings ranged from very informal (the first was just a meetup in some bar) to relatively formal (with a proper program of some half-hour talks and some lightning talks in some fancy conference venue) - I'm pretty sure there are people who like the more formal approach, as well as those who like the meetings to be more informal... > - Is the location pre-determined? ... or can it be a place of our > choosing? A place of your choosing. > - How many people do we need to have room for? That really depends on how many people decide to show up, can range from around 5 to around 30 I guess... It usually makes sense to put a page up in the wiki where people can pre-register, at least then you get an idea of how many people feel like showing up. > - How long does a PUN last? We had meetings without any formal program lasting 'an evening in the bar', and full day meetings, whatever you wish/can handle... > - Is English OK? (I assume it is, since we're using it now. :) Usually talks are given in English, because most of the time there are some non-natives around, though of course it's the Dutch user group... > - Is the date pre-determined? Nope. > - Would there be other speakers/projects? Usually the organizer requests for speakers on this list, but again, it's up to you... > - Is it a problem if we spent the whole PUN talking about/playing with > just one thing? > Well, no, provided that it's an interesting 'thing'... And of course that there's beer! :) > It might be better to talk details off-list... whoever is 'in > charge' can send me an email, and we can start planning. > I don't think anyone is 'in charge', though I guess Remco Wendt has been one of the driving forces behind the last couple of meetings (not entirely sure though, Remco, could you speak up here please?)... Anyway, the idea behind PUN is to have fun and chat with other developers, and there are no real rules or even guidelines, you can just make them up as you go... If you need hints or help, of course, you can ask here. Cheers, Guido From reinout at vanrees.org Thu Dec 24 14:15:05 2009 From: reinout at vanrees.org (Reinout van Rees) Date: Thu, 24 Dec 2009 14:15:05 +0100 Subject: [python-nl] Python / Django developer position at Layar In-Reply-To: <4B335F44.9030100@johnnydebris.net> References: <5c1ae4820912232235i67640b49s1e1a7f6f100cb04b@mail.gmail.com> <4B3310C8.9040407@vanrees.org> <5c1ae4820912232345o48a3d4e0td0f2af45baf2ae7f@mail.gmail.com> <4B3329EE.5020003@vanrees.org> <16AA80F0-C56F-4AA6-A272-E727EB5028CF@gmail.com> <5c1ae4820912240342n186b88dcv554fa676dae0a42c@mail.gmail.com> <4B335F44.9030100@johnnydebris.net> Message-ID: <4B336959.2030504@vanrees.org> On 12/24/09 1:32 PM, Johnny deBris wrote: > Cari Davidson wrote: >> - Is the location pre-determined? ... or can it be a place of our >> choosing? > A place of your choosing. Preferably reachable by public transport, though. >> - How many people do we need to have room for? > That really depends on how many people decide to show up, can range from > around 5 to around 30 I guess... It usually makes sense to put a page up > in the wiki where people can pre-register, at least then you get an idea > of how many people feel like showing up. Last time was real busy with 40 people showing up. >> - Is the date pre-determined? > Nope. Though the last 1.5 year or so we had regular meetings on the last thursday of the last month of the quarter. It helps keep a certain rythm as otherwise you can go a year without a meeting. So the next one is 25 March. Reinout -- Reinout van Rees - reinout at vanrees.org - http://reinout.vanrees.org Software developer at http://www.thehealthagency.com "Military engineers build missiles. Civil engineers build targets" From cariserene at gmail.com Thu Dec 24 14:47:26 2009 From: cariserene at gmail.com (Cari Davidson) Date: Thu, 24 Dec 2009 14:47:26 +0100 Subject: [python-nl] Python / Django developer position at Layar In-Reply-To: <4B335F44.9030100@johnnydebris.net> References: <5c1ae4820912232235i67640b49s1e1a7f6f100cb04b@mail.gmail.com> <4B3310C8.9040407@vanrees.org> <5c1ae4820912232345o48a3d4e0td0f2af45baf2ae7f@mail.gmail.com> <4B3329EE.5020003@vanrees.org> <16AA80F0-C56F-4AA6-A272-E727EB5028CF@gmail.com> <5c1ae4820912240342n186b88dcv554fa676dae0a42c@mail.gmail.com> <4B335F44.9030100@johnnydebris.net> Message-ID: <5c1ae4820912240547t6f007542waac8a08e06768658@mail.gmail.com> Well, then.. let there be beer. :) ... More planning required... next week, but I'm serious about it. Thanks, Guido. (btw, kinda freaked me out for a second and I thought you were THE Guido) On Thu, Dec 24, 2009 at 1:32 PM, Johnny deBris wrote: > Cari Davidson wrote: > >> So what's involved in hosting a PUN meeting? >> > Basically, if there's beer, or a place where we can get some nearby, it's a > valid PUN meeting I'd say... ;) > > So far PUN meetings ranged from very informal (the first was just a meetup > in some bar) to relatively formal (with a proper program of some half-hour > talks and some lightning talks in some fancy conference venue) - I'm pretty > sure there are people who like the more formal approach, as well as those > who like the meetings to be more informal... > > > - Is the location pre-determined? ... or can it be a place of our >> choosing? >> > A place of your choosing. > > > - How many people do we need to have room for? >> > That really depends on how many people decide to show up, can range from > around 5 to around 30 I guess... It usually makes sense to put a page up in > the wiki where people can pre-register, at least then you get an idea of how > many people feel like showing up. > > > - How long does a PUN last? >> > We had meetings without any formal program lasting 'an evening in the bar', > and full day meetings, whatever you wish/can handle... > > > - Is English OK? (I assume it is, since we're using it now. :) >> > Usually talks are given in English, because most of the time there are some > non-natives around, though of course it's the Dutch user group... > > > - Is the date pre-determined? >> > Nope. > > > - Would there be other speakers/projects? >> > Usually the organizer requests for speakers on this list, but again, it's > up to you... > > > - Is it a problem if we spent the whole PUN talking about/playing with >> just one thing? >> >> Well, no, provided that it's an interesting 'thing'... And of course that > there's beer! :) > > > It might be better to talk details off-list... whoever is 'in charge' >> can send me an email, and we can start planning. >> >> I don't think anyone is 'in charge', though I guess Remco Wendt has been > one of the driving forces behind the last couple of meetings (not entirely > sure though, Remco, could you speak up here please?)... > > Anyway, the idea behind PUN is to have fun and chat with other developers, > and there are no real rules or even guidelines, you can just make them up as > you go... If you need hints or help, of course, you can ask here. > > Cheers, > > Guido > > _______________________________________________ > Python-nl mailing list > Python-nl at python.org > http://mail.python.org/mailman/listinfo/python-nl > -------------- next part -------------- An HTML attachment was scrubbed... URL: From remco at maykinmedia.nl Thu Dec 24 15:27:57 2009 From: remco at maykinmedia.nl (Remco Wendt) Date: Thu, 24 Dec 2009 15:27:57 +0100 Subject: [python-nl] Python / Django developer position at Layar In-Reply-To: <4B335F44.9030100@johnnydebris.net> References: <5c1ae4820912232235i67640b49s1e1a7f6f100cb04b@mail.gmail.com> <4B3310C8.9040407@vanrees.org> <5c1ae4820912232345o48a3d4e0td0f2af45baf2ae7f@mail.gmail.com> <4B3329EE.5020003@vanrees.org> <16AA80F0-C56F-4AA6-A272-E727EB5028CF@gmail.com> <5c1ae4820912240342n186b88dcv554fa676dae0a42c@mail.gmail.com> <4B335F44.9030100@johnnydebris.net> Message-ID: On Thu, Dec 24, 2009 at 1:32 PM, Johnny deBris wrote: > Cari Davidson wrote: > >> So what's involved in hosting a PUN meeting? >> > Basically, if there's beer, or a place where we can get some nearby, it's a > valid PUN meeting I'd say... ;) > > So far PUN meetings ranged from very informal (the first was just a meetup > in some bar) to relatively formal (with a proper program of some half-hour > talks and some lightning talks in some fancy conference venue) - I'm pretty > sure there are people who like the more formal approach, as well as those > who like the meetings to be more informal... > > I wouldn't call having a format necessary formal. I think the current format works out pretty ok, it ensures that people have . And PUN's themselves are in its nature pretty informal places to meetup. Also having presentations works as a sort of kickoff for sharing a drink afterwards. > > - Is the location pre-determined? ... or can it be a place of our >> choosing? >> > A place of your choosing. As long as it can (un)comfortably host around 40 people, and it should be reachable by public transport. And a beamer / projection screen is of course important for people to give presentations on. > - How long does a PUN last? >> > We had meetings without any formal program lasting 'an evening in the bar', > and full day meetings, whatever you wish/can handle... The regular PUN's last from around 19:30 to somewhere between 23:00 and 00:00 depending on how many people have to leave to catch a last train. > - Is the date pre-determined? > > Nope. Dates are predetermined like Reinout says, every three months on the last thursday of the month. > - Would there be other speakers/projects? >> > Usually the organizer requests for speakers on this list, but again, it's > up to you... I think it is nice to have other speakers involved, since PUN is about a group of people doing stuff with python. It is nice to have a group of people give presentations. > > > - Is it a problem if we spent the whole PUN talking about/playing with >> just one thing? >> >> Well, no, provided that it's an interesting 'thing'... And of course that > there's beer! :) Well maybe it is better to keep the PUN what it is, but organise extra meetups which are more specialized. Like development sprints, or for example the DUN (which will be the Django oriented version of PUN) > > > It might be better to talk details off-list... whoever is 'in charge' >> can send me an email, and we can start planning. >> >> I don't think anyone is 'in charge', though I guess Remco Wendt has been > one of the driving forces behind the last couple of meetings (not entirely > sure though, Remco, could you speak up here please?)... > The more PUN arranges itself the better, which is kind of working out right now! Pretty much the only thing I do right now is just pick the dates for the next meetup (so, like Reinout says, there is a rhythm) and ask people if they are willing to host a PUN. Cheers, Remco -- Maykin Media Herengracht 416, 1017 BZ Amsterdam tel.: +31 (0)6 187 967 06 http://www.maykinmedia.nl -------------- next part -------------- An HTML attachment was scrubbed... URL: From johnny at johnnydebris.net Fri Dec 25 10:28:48 2009 From: johnny at johnnydebris.net (Johnny deBris) Date: Fri, 25 Dec 2009 10:28:48 +0100 Subject: [python-nl] Python / Django developer position at Layar In-Reply-To: <5c1ae4820912240547t6f007542waac8a08e06768658@mail.gmail.com> References: <5c1ae4820912232235i67640b49s1e1a7f6f100cb04b@mail.gmail.com> <4B3310C8.9040407@vanrees.org> <5c1ae4820912232345o48a3d4e0td0f2af45baf2ae7f@mail.gmail.com> <4B3329EE.5020003@vanrees.org> <16AA80F0-C56F-4AA6-A272-E727EB5028CF@gmail.com> <5c1ae4820912240342n186b88dcv554fa676dae0a42c@mail.gmail.com> <4B335F44.9030100@johnnydebris.net> <5c1ae4820912240547t6f007542waac8a08e06768658@mail.gmail.com> Message-ID: <4B3485D0.9030209@johnnydebris.net> Cari Davidson wrote: > (btw, kinda freaked me out for a second and I thought you were THE > Guido) > I am. Though yes, I am aware that there's some other guy that used to be Dutch that has something to do with Python, too... ;) Cheers, Guido From f.schneider at de-bleek.demon.nl Fri Dec 25 12:33:04 2009 From: f.schneider at de-bleek.demon.nl (Schneider) Date: Fri, 25 Dec 2009 12:33:04 +0100 Subject: [python-nl] Problem passing instance (self) when calling CLIPS Message-ID: <901CE562DFC04A37A0F9CB2C68B60BEE@pc198> Dear all, I am building an app with Python 2.5 and the pyCLIPS 1.0.7 module. CLIPS is a expert system coded in C. I have a class which holds some data and has a method Assert which asserts a fact in CLIPS. CLIPS processes the fact using a rule and calls the second method MyMethod. This second method now should do something with the data. In my program, the class could be some wxFrame, the Assert is a wxMenu event handler and the MyMethod method could be some code to change the frame's statusbar. So, on returning from CLIPS. I need the calling instance as an argument so I can access the statusbar or whatever. I use a decorator to register the python function in CLIPS and the rule which should call the method. Initializing works fine, but I cannot pass self to CLIPS when doing the assert and later return that value since CLIPS cannot handle such data. This is the simplified code and it's output. import clips class Callable(object): def __init__(self, func): self._func = func clips.RegisterPythonFunction(func) r = clips.BuildRule("%s-rule" % func.__name__, "?f <- (duck)", ""(retract ?f) (python-call %s \"arg2py\")""" % func.__name__, "The %s rule" % func.__name__) print r.PPForm() print "%s being initialized" % self._func.__name__ def __call__(self, *args, **kwargs): print "I am never executed" return self._func(*args, **kwargs) class MyObject(object): @Callable def MyMethod(self): print "I am being called by CLIPS with the arg", self def Assert(self): self.data = "DATA" clips.Assert("(duck)") if __name__ == "__main__": clips.Reset() myObject = MyObject() myObject.Assert() clips.Run(100) print "Bye" The output looks like: (defrule MAIN::MyMethod-rule "The MyMethod rule" ?f <- (duck) => (retract ?f) (python-call MyMethod "arg2py")) MyMethod being initialized I am being called by CLIPS with the arg arg2py Bye Please note that the __call__ method in the decorator is not being called from CLIPS. I don't understand the internals but assume that calling a Python function from a C program will not invoke __call__. Could somebody give me a hint on how to pass an argument like an integer or string to CLIPS and use that value on retuning to fetch the instanc. Should I look into weak references? Any other suggestions? Alvast bedankt en een prettige kerst Frans -------------- next part -------------- An HTML attachment was scrubbed... URL: From dirkjan at ochtman.nl Fri Dec 25 14:46:58 2009 From: dirkjan at ochtman.nl (Dirkjan Ochtman) Date: Fri, 25 Dec 2009 14:46:58 +0100 Subject: [python-nl] Problem passing instance (self) when calling CLIPS In-Reply-To: <901CE562DFC04A37A0F9CB2C68B60BEE@pc198> References: <901CE562DFC04A37A0F9CB2C68B60BEE@pc198> Message-ID: On Fri, Dec 25, 2009 at 12:33, Schneider wrote: > import clips > > > > class Callable(object): > > ??? def __init__(self, func): > > ??????? self._func = func > > ??????? clips.RegisterPythonFunction(func) > > ??????? r = clips.BuildRule("%s-rule" % func.__name__, > > ??????????????????????????? "?f <- (duck)", > > ??????????????????????????? ""(retract ?f) > > ??????????????????????????? (python-call %s \"arg2py\")""" % func.__name__, > > ??????????????????????????? "The %s rule" % func.__name__) > > ??????? print r.PPForm() > > ??????? print "%s being initialized" % self._func.__name__ > > > > ??? def __call__(self, *args, **kwargs): > > ??????? print "I am never executed" > > ??????? return self._func(*args, **kwargs) > > > > class MyObject(object): > > > > ??? @Callable > > ??? def MyMethod(self): > > ??????? print "I am being called by CLIPS with the arg", self > > > > ??? def Assert(self): > > ??????? self.data = "DATA" > > ??????? clips.Assert("(duck)") > > > > if __name__ == "__main__": > > ??? clips.Reset() > > ??? myObject = MyObject() > > ??? myObject.Assert() > > ??? clips.Run(100) > > ??? print "Bye" > > > > The output looks like: > > > > (defrule MAIN::MyMethod-rule "The MyMethod rule" > > ?? ?f <- (duck) > > ?? => > > ?? (retract ?f) > > ?? (python-call MyMethod "arg2py")) > > > > MyMethod being initialized > > I am being called by CLIPS with the arg arg2py > > Bye > > > > Please note that the __call__ method in the decorator is not being called > from CLIPS. That's because you aren't calling any MyMethod here? > I don?t understand the internals but assume that calling a Python function > from a C program will not invoke __call__. I think "calling", which you can override in pure Python by defining a __call__ method, uses a call hook on the C-registered type. IOW, just attaching a method called __call__ to your C-defined class probably won't work, you need to attach it to the call hook on the C-level struct. Hope that helps (I haven't actually worked much with the C API myself), Dirkjan From f.schneider at de-bleek.demon.nl Fri Dec 25 16:35:56 2009 From: f.schneider at de-bleek.demon.nl (Frans Schneider) Date: Fri, 25 Dec 2009 16:35:56 +0100 Subject: [python-nl] Problem passing instance (self) when calling CLIPS In-Reply-To: References: <901CE562DFC04A37A0F9CB2C68B60BEE@pc198> Message-ID: <1261755356.3657.15.camel@PC198> Op vrijdag 25-12-2009 om 14:46 uur [tijdzone +0100], schreef Dirkjan Ochtman: > On Fri, Dec 25, 2009 at 12:33, Schneider wrote: > > import clips > > > > class Callable(object): > > def __init__(self, func): > > self._func = func > > clips.RegisterPythonFunction(func) > > r = clips.BuildRule("%s-rule" % func.__name__, > > "?f <- (duck)", > > ""(retract ?f) > > (python-call %s \"arg2py\")""" % func.__name__, > > "The %s rule" % func.__name__) > > print r.PPForm() > > print "%s being initialized" % self._func.__name__ > > > > def __call__(self, *args, **kwargs): > > print "I am never executed" > > return self._func(*args, **kwargs) > > > > class MyObject(object): > > > > @Callable > > def MyMethod(self): > > print "I am being called by CLIPS with the arg", self > > > > def Assert(self): > > self.data = "DATA" > > clips.Assert("(duck)") > > > > if __name__ == "__main__": > > clips.Reset() > > myObject = MyObject() > > myObject.Assert() > > clips.Run(100) > > print "Bye" > > > > The output looks like: > > > > (defrule MAIN::MyMethod-rule "The MyMethod rule" > > ?f <- (duck) > > => > > (retract ?f) > > (python-call MyMethod "arg2py")) > > > > MyMethod being initialized > > I am being called by CLIPS with the arg arg2py > > Bye > > > > Please note that the __call__ method in the decorator is not being called > > from CLIPS. > > That's because you aren't calling any MyMethod here? > No, asserting the fact and giving the CLIPS engine the run instructrion will fire the rule which does the python-call to MyMethod. As you see from the output, this works since the output shows 'MyMethod being initialized' > > I don?t understand the internals but assume that calling a Python function > > from a C program will not invoke __call__. > > I think "calling", which you can override in pure Python by defining a > __call__ method, uses a call hook on the C-registered type. IOW, just > attaching a method called __call__ to your C-defined class probably > won't work, you need to attach it to the call hook on the C-level > struct. > I am calling the python class method MyMethod from CLIPS, which is C. When I call MyMethod from python, the __call__ in the decorator is executed. Not in this case. I am not very familiair with decorators, so there probably is a very good reason for this behaviour. > Hope that helps (I haven't actually worked much with the C API myself), > > Dirkjan More important than the __call__ issue, is the issue about encoding something in Python that refers to the instance self, in a type that CLIPS (C) can accept and return that in the python-call so I can use the instance again. > _______________________________________________ > Python-nl mailing list > Python-nl at python.org > http://mail.python.org/mailman/listinfo/python-nl > From dirkjan at ochtman.nl Fri Dec 25 18:38:55 2009 From: dirkjan at ochtman.nl (Dirkjan Ochtman) Date: Fri, 25 Dec 2009 18:38:55 +0100 Subject: [python-nl] Problem passing instance (self) when calling CLIPS In-Reply-To: <1261755356.3657.15.camel@PC198> References: <901CE562DFC04A37A0F9CB2C68B60BEE@pc198> <1261755356.3657.15.camel@PC198> Message-ID: On Fri, Dec 25, 2009 at 16:35, Frans Schneider wrote: > No, asserting the fact and giving the CLIPS engine the run instructrion > will fire the rule which does the python-call to MyMethod. As you see > from the output, this works since the output shows 'MyMethod being > initialized' Yeah, you're wrong here. The Callable.__init__ call happens at module load time, not at MyObject.MyMethod call time. Cheers, Dirkjan From f.schneider at de-bleek.demon.nl Fri Dec 25 19:00:46 2009 From: f.schneider at de-bleek.demon.nl (Schneider) Date: Fri, 25 Dec 2009 19:00:46 +0100 Subject: [python-nl] Problem passing instance (self) when calling CLIPS In-Reply-To: References: <901CE562DFC04A37A0F9CB2C68B60BEE@pc198> <1261755356.3657.15.camel@PC198> Message-ID: <61A66B5FBE654A15A58F9F0A1C3A0AD2@pc198> > On Fri, Dec 25, 2009 at 16:35, Frans Schneider > wrote: > > No, asserting the fact and giving the CLIPS engine the run instructrion > > will fire the rule which does the python-call to MyMethod. As you see > > from the output, this works since the output shows 'MyMethod being > > initialized' > > Yeah, you're wrong here. The Callable.__init__ call happens at module > load time, not at MyObject.MyMethod call time. > Indeed, the decorator's __init__ is executed when the function is defined. This will register the function in CLIPS and create the rule in CLIPS that will be fired later when the fact is asserted. This is GOOD. It is the main reason for me to use a decorator since it makes the code better readable. I did solve the problem more or less by now by introducing weak references. Why use weak references and not use hard references I am not sure yet, but it works. The code now looks as follows. import clips import weakref class Callable(object): def __init__(self, func): self._func = func clips.RegisterPythonFunction(func) r = clips.BuildRule("%s-rule" % func.__name__, "?f <- (duck ?instance_id)", """(retract ?f) (python-call %s ?instance_id)""" % func.__name__, "The %s rule" % func.__name__) print r.PPForm() print "%s being initialized" % self._func.__name__ def __call__(self, *args, **kwargs): print "I am never executed" return self._func(*args, **kwargs) class MyObject(object): def __init__(self, *args, **kwargs): super(MyObject, self).__init__(*args, **kwargs) try: MyObject._id2obj_dict except AttributeError: MyObject._id2obj_dict = weakref.WeakValueDictionary() MyObject._id2obj_dict[id(self)] = self @Callable def MyMethod(self): self = MyObject._id2obj_dict[self] print "I am being called by CLIPS with the arg", self print "The data is", self.data def Assert(self): self.data = "DATA" clips.Assert("(duck %s)" % id(self)) if __name__ == "__main__": clips.Reset() myObject = MyObject() myObject.Assert() clips.Run(100) print "Bye" The output now looks like: (defrule MAIN::MyMethod-rule "The MyMethod rule" ?f <- (duck ?instance_id) => (retract ?f) (python-call MyMethod ?instance_id)) MyMethod being initialized I am being called by CLIPS with the arg <__main__.MyObject object at 0x00BE6790> The data is DATA Bye The thing I don't like is the line : self = MyObject._id2obj_dict[self] in MyMethod. Looks messy. Frans From egbertum at xs4all.nl Fri Dec 25 19:52:24 2009 From: egbertum at xs4all.nl (egbert) Date: Fri, 25 Dec 2009 19:52:24 +0100 Subject: [python-nl] html5lib enz In-Reply-To: References: <20091217224550.GA16418@xs4all.nl> Message-ID: <20091225185224.GB9781@xs4all.nl> On Fri, Dec 18, 2009 at 11:14:21AM +0100, Dirkjan Ochtman wrote: > Zo te zien is er geen documentatie [over html5lib], > Als je een blog hebt is dit dus een goede optie om je google juice een > beetje te verbeteren, door wat door de code te grasduinen en zelf een > tutorial te klussen. > Ik ben niet zo'n blogger, actief noch passief, en ik heb ook niet de pretentie als eenvoudige amateur dat ik een tutorial kan opzetten. Maar als je een goede blog weet, hou ik me aanbevolen. Zoals Groucho Marx schijnt te hebben gezegd: .. ik hen mijn principes, en als ze je niet aanstaan .. heb ik ook nog andere. Het gebrek aan documentatie heb ik opgelost door html5lib op een zeer elementaire manier te gebruiken, dwz hem/haar een BeautifulSoup tree te laten maken, en die tree te lijf te gaan met BeautifulSoup. Die documentatie is wel goed. Sergej suggereerde naar mechanize te kijken. De website lijdt aan de bekende ontwikkelaars-tunnelvisie: dat de lezers volledig ingewerkt zijn in de problematiek, de verwante packages, en hun denkraam. Daar doe ik niet aan mee. Waarom kunnen ontwikkelaars niet standaard een inleidend stukje schrijven bij hun project, waarin in normale taal staat welk probleem ze wilden oplossen; waarin bestaande pakketten tekortschieten bij dit probleem; wat de relaties zijn met andere pakketten, enz. Mooie voorbeelden hoe het wel moet zijn de inleidingen en discussies in het Python Cookbook van de familie Martelli, en de beschrijvingen van een groot aantal modules in Python in een Nutshell, van Alex Martelli. egbert -- Egbert Bouwman - Keizersgracht 197 II - 1016 DS Amsterdam - 020 6257991 ======================================================================== From hendrikusgodvliet at gmail.com Sat Dec 26 16:07:41 2009 From: hendrikusgodvliet at gmail.com (Hendrikus Godvliet) Date: Sat, 26 Dec 2009 16:07:41 +0100 Subject: [python-nl] Python-nl Digest, Vol 67, Issue 6 In-Reply-To: References: Message-ID: 2009/12/23 > Send Python-nl mailing list submissions to > python-nl at python.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.python.org/mailman/listinfo/python-nl > or, via email, send a message with subject or body 'help' to > python-nl-request at python.org > > You can reach the person managing the list at > python-nl-owner at python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Python-nl digest..." > > > Today's Topics: > > 1. Re: Python-nl Digest, Vol 67, Issue 5 (Hendrikus Godvliet) > 2. Re: Python-nl Digest, Vol 67, Issue 5 (Floris van Manen) > 3. Re: Python-nl Digest, Vol 67, Issue 5 (Floris van Manen) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 22 Dec 2009 12:23:34 +0100 > From: Hendrikus Godvliet > To: python-nl > Subject: Re: [python-nl] Python-nl Digest, Vol 67, Issue 5 > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > Bedoel je dit? > > #! /user/bin/python > > def aftrekken(): > som_01 = 90 - 10 > return som_01 > > def optellen(): > som_02 = 10 + 10 > return som_02 > > def text_rekenen(): > text = """Hier zijn enkele berekeningen van de laatste opdrachten.""" > print text > > > text_rekenen() > print optellen() > print aftrekken() > > print optellen() + aftrekken() > print optellen() - aftrekken() > > Ja dit is wat ik bedoel en het werkt. Bedankt. > Volgende vraag. Om beter te leren begrijpen wat een class is en hoe het > werkt. Kan ik van de bovenstaande code ook een class maken? > > Gr Hendrikus > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://mail.python.org/pipermail/python-nl/attachments/20091222/ccae8386/attachment-0001.htm > > > > ------------------------------ > > Message: 2 > Date: Tue, 22 Dec 2009 12:31:12 +0100 > From: Floris van Manen > To: Dutch Python developers and users > Subject: Re: [python-nl] Python-nl Digest, Vol 67, Issue 5 > Message-ID: > Content-Type: text/plain; charset=us-ascii > > class OpEnAf: > def __init__(self, v) > self.v = v > def erbij(self, x): > self.v += x > def eraf(self, x): > self.v -= x > def resultaat(self): > return self.v > > a = OpEnAf( 10 ) > print a.resultaat() > print a.v > > a.erbij(100) > print a.v > > a.eraf(20) > print a.v > > for i in range(10): > a.erbij(i) > print i, a.v > > print a.resultaat() > > > > > > On Dec 22, 2009, at 12:23, Hendrikus Godvliet wrote: > > > Bedoel je dit? > > > > #! /user/bin/python > > > > def aftrekken(): > > som_01 = 90 - 10 > > return som_01 > > > > def optellen(): > > som_02 = 10 + 10 > > return som_02 > > > > def text_rekenen(): > > text = """Hier zijn enkele berekeningen van de laatste opdrachten.""" > > print text > > > > > > text_rekenen() > > print optellen() > > print aftrekken() > > > > print optellen() + aftrekken() > > print optellen() - aftrekken() > > > > Ja dit is wat ik bedoel en het werkt. Bedankt. > > Volgende vraag. Om beter te leren begrijpen wat een class is en hoe het > werkt. Kan ik van de bovenstaande code ook een class maken? > > > > Gr Hendrikus > > > > > > > > _______________________________________________ > > Python-nl mailing list > > Python-nl at python.org > > http://mail.python.org/mailman/listinfo/python-nl > > > > ------------------------------ > > Message: 3 > Date: Tue, 22 Dec 2009 12:56:14 +0100 > From: Floris van Manen > To: Dutch Python developers and users > Subject: Re: [python-nl] Python-nl Digest, Vol 67, Issue 5 > Message-ID: > Content-Type: text/plain; charset=us-ascii > > > On Dec 22, 2009, at 12:31, Floris van Manen wrote: > > class OpEnAf: > def __init__(self, v) > self.v = v > def erbij(self, x): > self.v += x > def eraf(self, x): > self.v -= x > def show(self): > print 'Tussenstand:', self.v > > a = OpEnAf( 10 ) > a.show() > > a.erbij(100) > a.show() > > a.eraf(20) > a.show() > > for i in range(10): > a.erbij(i) > print i, 'erbij is', a.v > > a.show() > > > > > > ------------------------------ > > _______________________________________________ > Python-nl mailing list > Python-nl at python.org > http://mail.python.org/mailman/listinfo/python-nl > > > End of Python-nl Digest, Vol 67, Issue 6 > **************************************** > Floris Bedankt voor de class uitleg. Heeft mij duidelijk gemaat hoe classes werken. In je code moet: class OpEnAf: def __init__(self, v) zo zijn: class OpEnAf: def __init__(self, v): Vriendelijke groet Hendrikus Godvliet ------------- volgend deel ------------ Een HTML-bijlage is gescrubt... URL: From vm at klankschap.nl Sat Dec 26 18:18:01 2009 From: vm at klankschap.nl (Floris van Manen) Date: Sat, 26 Dec 2009 18:18:01 +0100 Subject: [python-nl] Python-nl Digest, Vol 67, Issue 6 In-Reply-To: References: Message-ID: On Dec 26, 2009, at 16:07, Hendrikus Godvliet wrote: > In je code moet: > class OpEnAf: > def __init__(self, v) > > zo zijn: > class OpEnAf: > def __init__(self, v): uiteraard, een goede verstaander heeft een half woord :-) .F From hendrikusgodvliet at gmail.com Sun Dec 27 14:28:19 2009 From: hendrikusgodvliet at gmail.com (Hendrikus Godvliet) Date: Sun, 27 Dec 2009 14:28:19 +0100 Subject: [python-nl] Python-nl Digest, Vol 67, Issue 13 In-Reply-To: References: Message-ID: Hallo Allemaal Bestaat er een manier om in een keer een overzicht te krijgen van alle beschikbare / geinstall modules in Python op het systeem. Groet Hendrikus Godvliet 2009/12/27 > Send Python-nl mailing list submissions to > python-nl at python.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.python.org/mailman/listinfo/python-nl > or, via email, send a message with subject or body 'help' to > python-nl-request at python.org > > You can reach the person managing the list at > python-nl-owner at python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Python-nl digest..." > > > Today's Topics: > > 1. Re: Python-nl Digest, Vol 67, Issue 6 (Hendrikus Godvliet) > 2. Re: Python-nl Digest, Vol 67, Issue 6 (Floris van Manen) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sat, 26 Dec 2009 16:07:41 +0100 > From: Hendrikus Godvliet > To: python-nl > Subject: Re: [python-nl] Python-nl Digest, Vol 67, Issue 6 > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > 2009/12/23 > > > Send Python-nl mailing list submissions to > > python-nl at python.org > > > > To subscribe or unsubscribe via the World Wide Web, visit > > http://mail.python.org/mailman/listinfo/python-nl > > or, via email, send a message with subject or body 'help' to > > python-nl-request at python.org > > > > You can reach the person managing the list at > > python-nl-owner at python.org > > > > When replying, please edit your Subject line so it is more specific > > than "Re: Contents of Python-nl digest..." > > > > > > Today's Topics: > > > > 1. Re: Python-nl Digest, Vol 67, Issue 5 (Hendrikus Godvliet) > > 2. Re: Python-nl Digest, Vol 67, Issue 5 (Floris van Manen) > > 3. Re: Python-nl Digest, Vol 67, Issue 5 (Floris van Manen) > > > > > > ---------------------------------------------------------------------- > > > > Message: 1 > > Date: Tue, 22 Dec 2009 12:23:34 +0100 > > From: Hendrikus Godvliet > > To: python-nl > > Subject: Re: [python-nl] Python-nl Digest, Vol 67, Issue 5 > > Message-ID: > > > > Content-Type: text/plain; charset="iso-8859-1" > > > > Bedoel je dit? > > > > #! /user/bin/python > > > > def aftrekken(): > > som_01 = 90 - 10 > > return som_01 > > > > def optellen(): > > som_02 = 10 + 10 > > return som_02 > > > > def text_rekenen(): > > text = """Hier zijn enkele berekeningen van de laatste opdrachten.""" > > print text > > > > > > text_rekenen() > > print optellen() > > print aftrekken() > > > > print optellen() + aftrekken() > > print optellen() - aftrekken() > > > > Ja dit is wat ik bedoel en het werkt. Bedankt. > > Volgende vraag. Om beter te leren begrijpen wat een class is en hoe het > > werkt. Kan ik van de bovenstaande code ook een class maken? > > > > Gr Hendrikus > > -------------- next part -------------- > > An HTML attachment was scrubbed... > > URL: < > > > http://mail.python.org/pipermail/python-nl/attachments/20091222/ccae8386/attachment-0001.htm > > > > > > > ------------------------------ > > > > Message: 2 > > Date: Tue, 22 Dec 2009 12:31:12 +0100 > > From: Floris van Manen > > To: Dutch Python developers and users > > Subject: Re: [python-nl] Python-nl Digest, Vol 67, Issue 5 > > Message-ID: > > Content-Type: text/plain; charset=us-ascii > > > > class OpEnAf: > > def __init__(self, v) > > self.v = v > > def erbij(self, x): > > self.v += x > > def eraf(self, x): > > self.v -= x > > def resultaat(self): > > return self.v > > > > a = OpEnAf( 10 ) > > print a.resultaat() > > print a.v > > > > a.erbij(100) > > print a.v > > > > a.eraf(20) > > print a.v > > > > for i in range(10): > > a.erbij(i) > > print i, a.v > > > > print a.resultaat() > > > > > > > > > > > > On Dec 22, 2009, at 12:23, Hendrikus Godvliet wrote: > > > > > Bedoel je dit? > > > > > > #! /user/bin/python > > > > > > def aftrekken(): > > > som_01 = 90 - 10 > > > return som_01 > > > > > > def optellen(): > > > som_02 = 10 + 10 > > > return som_02 > > > > > > def text_rekenen(): > > > text = """Hier zijn enkele berekeningen van de laatste opdrachten.""" > > > print text > > > > > > > > > text_rekenen() > > > print optellen() > > > print aftrekken() > > > > > > print optellen() + aftrekken() > > > print optellen() - aftrekken() > > > > > > Ja dit is wat ik bedoel en het werkt. Bedankt. > > > Volgende vraag. Om beter te leren begrijpen wat een class is en hoe het > > werkt. Kan ik van de bovenstaande code ook een class maken? > > > > > > Gr Hendrikus > > > > > > > > > > > > _______________________________________________ > > > Python-nl mailing list > > > Python-nl at python.org > > > http://mail.python.org/mailman/listinfo/python-nl > > > > > > > > ------------------------------ > > > > Message: 3 > > Date: Tue, 22 Dec 2009 12:56:14 +0100 > > From: Floris van Manen > > To: Dutch Python developers and users > > Subject: Re: [python-nl] Python-nl Digest, Vol 67, Issue 5 > > Message-ID: > > Content-Type: text/plain; charset=us-ascii > > > > > > On Dec 22, 2009, at 12:31, Floris van Manen wrote: > > > > class OpEnAf: > > def __init__(self, v) > > self.v = v > > def erbij(self, x): > > self.v += x > > def eraf(self, x): > > self.v -= x > > def show(self): > > print 'Tussenstand:', self.v > > > > a = OpEnAf( 10 ) > > a.show() > > > > a.erbij(100) > > a.show() > > > > a.eraf(20) > > a.show() > > > > for i in range(10): > > a.erbij(i) > > print i, 'erbij is', a.v > > > > a.show() > > > > > > > > > > > > ------------------------------ > > > > _______________________________________________ > > Python-nl mailing list > > Python-nl at python.org > > http://mail.python.org/mailman/listinfo/python-nl > > > > > > End of Python-nl Digest, Vol 67, Issue 6 > > **************************************** > > > > > Floris > > Bedankt voor de class uitleg. Heeft mij duidelijk gemaat hoe classes > werken. > > In je code moet: > class OpEnAf: > def __init__(self, v) > > zo zijn: > class OpEnAf: > def __init__(self, v): > > > Vriendelijke groet Hendrikus Godvliet > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://mail.python.org/pipermail/python-nl/attachments/20091226/8e8f86fb/attachment-0001.htm > > > > ------------------------------ > > Message: 2 > Date: Sat, 26 Dec 2009 18:18:01 +0100 > From: Floris van Manen > To: Dutch Python developers and users > Subject: Re: [python-nl] Python-nl Digest, Vol 67, Issue 6 > Message-ID: > Content-Type: text/plain; charset=us-ascii > > > On Dec 26, 2009, at 16:07, Hendrikus Godvliet wrote: > > > In je code moet: > > class OpEnAf: > > def __init__(self, v) > > > > zo zijn: > > class OpEnAf: > > def __init__(self, v): > > uiteraard, een goede verstaander heeft een half woord :-) > > .F > > > > > ------------------------------ > > _______________________________________________ > Python-nl mailing list > Python-nl at python.org > http://mail.python.org/mailman/listinfo/python-nl > > > End of Python-nl Digest, Vol 67, Issue 13 > ***************************************** > ------------- volgend deel ------------ Een HTML-bijlage is gescrubt... URL: From spaans at fox-it.com Mon Dec 28 13:11:43 2009 From: spaans at fox-it.com (Jasper Spaans) Date: Mon, 28 Dec 2009 12:11:43 +0000 Subject: [python-nl] Python-nl Digest, Vol 67, Issue 13 In-Reply-To: References: Message-ID: <4B38A07F.4010005@fox-it.com> Hoi! Hendrikus Godvliet wrote: > > Bestaat er een manier om in een keer een overzicht te krijgen van alle > beschikbare / geinstall modules in Python op het systeem. > Ja, die is er: spaans at spaans64:~$ python Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55) [GCC 4.4.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> help('modules') ANSI _codecs gettext pspersistence Alacarte _codecs_cn gio pstats .... _bisect genericpath pprint zope _bsddb getopt problem_report _bytesio getpass profile Enter any module name to get more help. Or, type "modules spam" to search for modules whose descriptions contain the word "spam". Groet, -- Ir. Jasper Spaans Fox-IT Experts in IT Security! T: +31 (0) 15 284 79 99 KvK Haaglanden 27301624 -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3353 bytes Desc: S/MIME Cryptographic Signature URL: From Jack.Jansen at cwi.nl Wed Dec 30 01:01:15 2009 From: Jack.Jansen at cwi.nl (Jack Jansen) Date: Wed, 30 Dec 2009 01:01:15 +0100 Subject: [python-nl] Python-nl Digest, Vol 67, Issue 13 In-Reply-To: <4B38A07F.4010005@fox-it.com> References: <4B38A07F.4010005@fox-it.com> Message-ID: On 28 dec 2009, at 13:11, Jasper Spaans wrote: > Hoi! > > Hendrikus Godvliet wrote: >> >> Bestaat er een manier om in een keer een overzicht te krijgen van alle beschikbare / geinstall modules in Python op het systeem. >> > > Ja, die is er: > > spaans at spaans64:~$ python > Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55) > [GCC 4.4.1] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> help('modules') > ANSI _codecs gettext pspersistence > Alacarte _codecs_cn gio pstats > .... > _bisect genericpath pprint zope > _bsddb getopt problem_report _bytesio getpass profile > Enter any module name to get more help. Or, type "modules spam" to search > for modules whose descriptions contain the word "spam". Voor de volledigheid nog even, in aanvulling op Jasper z'n uitleg: met deze methode kun je niet alleen een overzicht krijgen van alle modules, maar ook de help-uitleg. Maar die laatste is over het algemeen veel beter te bekijken via , omdat alles dan een stuk leesbaarder geformatteerd is, en bovendien beter georganiseerd op onderwerp, voorzien van cross-references, etc. -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman From hendrikusgodvliet at gmail.com Wed Dec 30 12:37:50 2009 From: hendrikusgodvliet at gmail.com (Hendrikus Godvliet) Date: Wed, 30 Dec 2009 12:37:50 +0100 Subject: [python-nl] Python-nl Digest, Vol 67, Issue 16 In-Reply-To: References: Message-ID: 2009/12/30 > Send Python-nl mailing list submissions to > python-nl at python.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.python.org/mailman/listinfo/python-nl > or, via email, send a message with subject or body 'help' to > python-nl-request at python.org > > You can reach the person managing the list at > python-nl-owner at python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Python-nl digest..." > > > Today's Topics: > > 1. Re: Python-nl Digest, Vol 67, Issue 13 (Jack Jansen) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 30 Dec 2009 01:01:15 +0100 > From: Jack Jansen > To: Dutch Python developers and users > Subject: Re: [python-nl] Python-nl Digest, Vol 67, Issue 13 > Message-ID: > Content-Type: text/plain; charset=us-ascii > > > On 28 dec 2009, at 13:11, Jasper Spaans wrote: > > > Hoi! > > > > Hendrikus Godvliet wrote: > >> > >> Bestaat er een manier om in een keer een overzicht te krijgen van alle > beschikbare / geinstall modules in Python op het systeem. > >> > > > > Ja, die is er: > > > > spaans at spaans64:~$ python > > Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55) > > [GCC 4.4.1] on linux2 > > Type "help", "copyright", "credits" or "license" for more information. > > >>> help('modules') > > ANSI _codecs gettext pspersistence > > Alacarte _codecs_cn gio pstats > > .... > > _bisect genericpath pprint zope > > _bsddb getopt problem_report _bytesio > getpass profile > > Enter any module name to get more help. Or, type "modules spam" to > search > > for modules whose descriptions contain the word "spam". > > > Voor de volledigheid nog even, in aanvulling op Jasper z'n uitleg: met deze > methode kun je niet alleen een overzicht krijgen van alle modules, maar ook > de help-uitleg. Maar die laatste is over het algemeen veel beter te bekijken > via , omdat alles dan een stuk > leesbaarder geformatteerd is, en bovendien beter georganiseerd op onderwerp, > voorzien van cross-references, etc. > -- > Jack Jansen, , http://www.cwi.nl/~jack > If I can't dance I don't want to be part of your revolution -- Emma Goldman > > > > > > ------------------------------ > > _______________________________________________ > Python-nl mailing list > Python-nl at python.org > http://mail.python.org/mailman/listinfo/python-nl > > > End of Python-nl Digest, Vol 67, Issue 16 > ***************************************** > Jack Bedankt voor de waardevolle aanvulling ik zocht hier al naar. gr Hendrikus ------------- volgend deel ------------ Een HTML-bijlage is gescrubt... URL: From dirkjan at ochtman.nl Wed Dec 30 12:53:15 2009 From: dirkjan at ochtman.nl (Dirkjan Ochtman) Date: Wed, 30 Dec 2009 12:53:15 +0100 Subject: [python-nl] Python-nl Digest, Vol 67, Issue 16 In-Reply-To: References: Message-ID: On Wed, Dec 30, 2009 at 12:37, Hendrikus Godvliet wrote: > Jack > Bedankt voor de waardevolle aanvulling ik zocht hier al naar. Hendrikus: > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Python-nl digest..." Graag doen! Groet, Dirkjan