From keesdejong at gmail.com Wed Apr 2 11:02:44 2014 From: keesdejong at gmail.com (Kees de Jong) Date: Wed, 2 Apr 2014 11:02:44 +0200 Subject: [python-nl] Conventies binnen Python Message-ID: Ik ben erg benieuwd naar de logica binnen Python voor naam conventies. Soms zie ik namen die beginnen met een hoofdletter of volledig in hoofdletter, een paar voorbeelden uit deze link: https://docs.python.org/2/library/subprocess.html#module-subprocess 1) subprocess.check_output() 2) subprocess.PIPE 3) subprocess.Popen() Ik wil graag begrijpen wat het inhoud en als dit gewoon gemaakt is als open-source door iemand die dit persoonlijk handig vond dan zou ik graag willen weten of er wel of geen PIP voor is. Python is als het komt op indentation erg strikt, het zou jammer zijn als hier dan weer geen regels voor zijn gemaakt. Ik ben erg benieuwd! Thanks. From tikitu at buzzcapture.com Wed Apr 2 11:10:05 2014 From: tikitu at buzzcapture.com (Tikitu de Jager) Date: Wed, 2 Apr 2014 12:10:05 +0300 Subject: [python-nl] Conventies binnen Python In-Reply-To: References: Message-ID: 2014-04-02 12:02 GMT+03:00 Kees de Jong : > Ik ben erg benieuwd naar de logica binnen Python voor naam conventies. > > http://legacy.python.org/dev/peps/pep-0008/#prescriptive-naming-conventions -- Buzzcapture Herengracht 180, 1016 BR, Amsterdam T: +31 (0)20 3200377 M: +30 6947 212 212 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jan.murre at gmail.com Wed Apr 2 11:10:34 2014 From: jan.murre at gmail.com (Jan Murre) Date: Wed, 2 Apr 2014 11:10:34 +0200 Subject: [python-nl] Conventies binnen Python In-Reply-To: References: Message-ID: Ha Kees, Dat is in Python goed geregeld en vastgelegd in PEP-8: http://legacy.python.org/dev/peps/pep-0008/ Groet, Jan 2014-04-02 11:02 GMT+02:00 Kees de Jong : > Ik ben erg benieuwd naar de logica binnen Python voor naam conventies. > > Soms zie ik namen die beginnen met een hoofdletter of volledig in > hoofdletter, een paar voorbeelden uit deze link: > https://docs.python.org/2/library/subprocess.html#module-subprocess > > 1) subprocess.check_output() > 2) subprocess.PIPE > 3) subprocess.Popen() > > Ik wil graag begrijpen wat het inhoud en als dit gewoon gemaakt is als > open-source door iemand die dit persoonlijk handig vond dan zou ik > graag willen weten of er wel of geen PIP voor is. Python is als het > komt op indentation erg strikt, het zou jammer zijn als hier dan weer > geen regels voor zijn gemaakt. Ik ben erg benieuwd! > > > > Thanks. > _______________________________________________ > Python-nl mailing list > Python-nl at python.org > https://mail.python.org/mailman/listinfo/python-nl > -------------- next part -------------- An HTML attachment was scrubbed... URL: From otten.johan at gmail.com Wed Apr 2 11:10:29 2014 From: otten.johan at gmail.com (Johan Otten) Date: Wed, 2 Apr 2014 11:10:29 +0200 Subject: [python-nl] Conventies binnen Python In-Reply-To: References: Message-ID: Dit staat allemaal uitgebreid beschreven in PEP8: http://legacy.python.org/dev/peps/pep-0008/ Met als bonus van hoe docstrings eruit zouden moeten zien PEP 257: http://legacy.python.org/dev/peps/pep-0257/ daarnaast enforced pylint een groot gedeelte en dan is er altijd nog pep8.py for het enforcen van PEP 8 https://pypi.python.org/pypi/pep8 2014-04-02 11:02 GMT+02:00 Kees de Jong : > Ik ben erg benieuwd naar de logica binnen Python voor naam conventies. > > Soms zie ik namen die beginnen met een hoofdletter of volledig in > hoofdletter, een paar voorbeelden uit deze link: > https://docs.python.org/2/library/subprocess.html#module-subprocess > > 1) subprocess.check_output() > 2) subprocess.PIPE > 3) subprocess.Popen() > > Ik wil graag begrijpen wat het inhoud en als dit gewoon gemaakt is als > open-source door iemand die dit persoonlijk handig vond dan zou ik > graag willen weten of er wel of geen PIP voor is. Python is als het > komt op indentation erg strikt, het zou jammer zijn als hier dan weer > geen regels voor zijn gemaakt. Ik ben erg benieuwd! > > > > Thanks. > _______________________________________________ > Python-nl mailing list > Python-nl at python.org > https://mail.python.org/mailman/listinfo/python-nl > -------------- next part -------------- An HTML attachment was scrubbed... URL: From albert at peschar.net Wed Apr 2 11:20:58 2014 From: albert at peschar.net (Albert Peschar) Date: Wed, 02 Apr 2014 10:20:58 +0100 Subject: [python-nl] Conventies binnen Python In-Reply-To: References: Message-ID: <533BD67A.4090206@peschar.net> Hoi Kees, De basisregels zijn eigenlijk simpel. De vorm van de naam is afhankelijk van het type object: 1) dit is een functie: kleine letters, woorden gescheiden door underscore 2) dit is een constante waarde (constant): hoofdletters, woorden gescheiden door underscore 3) dit is een klasse (class): hoofdletter aan het begin van elk woord --Albert On 02/04/14 10:02, Kees de Jong wrote: > Ik ben erg benieuwd naar de logica binnen Python voor naam conventies. > > Soms zie ik namen die beginnen met een hoofdletter of volledig in > hoofdletter, een paar voorbeelden uit deze link: > https://docs.python.org/2/library/subprocess.html#module-subprocess > > 1) subprocess.check_output() > 2) subprocess.PIPE > 3) subprocess.Popen() > > Ik wil graag begrijpen wat het inhoud en als dit gewoon gemaakt is als > open-source door iemand die dit persoonlijk handig vond dan zou ik > graag willen weten of er wel of geen PIP voor is. Python is als het > komt op indentation erg strikt, het zou jammer zijn als hier dan weer > geen regels voor zijn gemaakt. Ik ben erg benieuwd! > > > > Thanks. > _______________________________________________ > Python-nl mailing list > Python-nl at python.org > https://mail.python.org/mailman/listinfo/python-nl > From lieke22 at gmail.com Wed Apr 2 17:06:11 2014 From: lieke22 at gmail.com (Lieke Boon) Date: Wed, 2 Apr 2014 17:06:11 +0200 Subject: [python-nl] OpenData101 zoekt Python developers Message-ID: Hoi allemaal, Misschien zijn sommigen van jullie het al onder ogen gekomen: op 24 april vindt OpenData101 plaats. Een congres georganiseerd door o.a. PyLadies Amsterdam (waar wij, Lieke & Besma, deel van uitmaken). Tijdens onze zoektocht naar Python developers werden we gewezen op deze mailing list. Normaal zijn we niet van het 'spammen', maar we denken dat wij zeker iets leuks aan te bieden hebben. Ter ondersteuning van het landelijk Open Data event in Amsterdam Oost, Open Data 101, zijn wij op zoek naar software ontwikkelaars. OpenData101 wordt georganiseerd in samenwerking met onder andere Stadsdeel (Amsterdam) Oost, Hack de Overheid en Open State Foundation. De ochtend zal bestaan uit keynotes van onder andere Paul Suijkerbuijk, Lex Slaghuis en Erik Romijn. In de middag zullen er workshops Open Data volgen waar we jou hulp goed bij kunnen gebruiken. Voor het hele programma kun je een kijkje nemen op www.opendata101.nl Mocht je ge?nteresseerd zijn om je steentje bij te dragen aan deze conferentie, dan krijg je als taak om de deelnemers, ambtenaren en actieve burgers te helpen met het antwoorden van maatschappelijke vraagstukken. Deze vraagstukken draaien om de volgende thema's: 1. Participatie 2. Werkgelegenheid/Onderwijs 3. Ruimtelijke invulling 4. Armoedebestrijding 5. Openbare orde Het doel is om zowel ambtenaren als actieve burgers op deze manier niet alleen inzicht te geven in de voordelen van Open Data, maar ook in te laten zien dat effectief ermee werken een goede samenwerking tussen de partijen verreist. Ons slogan is daarom ook 'Open Data is vooral samen doen'. Tijdens de workshops worden de deelnemers, afhankelijk van het gekozen thema, in verschillende groepen opgedeeld. Samen met jou zullen ze aan de slag gaan met een bepaald thema zoals bijvoorbeeld leegstand. Aangezien er onvoldoende tijd is om de deelnemers te voorzien van een crash course software ontwikkeling, hebben we gekozen om in ieder groep een developer te plaatsen, 15 in totaal. We kunnen je hulp dus goed gebruiken! We hebben ervoor gekozen om twee verschillende Python tools te gebruiken: analyse tool Pandas en het web-framework Flask. Echter is dit geen vereiste, je mag ook een kiezen voor je eigen tool, uiteraard in overleg. De datasets zullen afkomstig zijn uit het [[Amsterdamse Open Data catalogus][http://www.amsterdamopendata.nl]], Data scraping is ook een mogelijkheid. Heb je interesse of wil je meer weten? Stuur dan een mailtje naar info at opendata.nl We horen graag van je! Vriendelijke groet, Lieke Boon Besma M'charek-Boussif namens PyLadies Amsterdam en OpenData101 ------------- volgend deel ------------ Een HTML-bijlage is gescrubt... URL: From joel at joelcox.nl Thu Apr 3 08:14:50 2014 From: joel at joelcox.nl (=?iso-8859-1?Q?Jo=EBl_Cox?=) Date: Thu, 3 Apr 2014 08:14:50 +0200 Subject: [python-nl] Conventies binnen Python In-Reply-To: References: Message-ID: <250CB6CD-B53B-4C91-9946-2C56F824BA31@joelcox.nl> En natuurlijk autopep8 https://pypi.python.org/pypi/autopep8/ On Apr 2, 2014, at 11:10 AM, Johan Otten wrote: > Dit staat allemaal uitgebreid beschreven in PEP8: > > http://legacy.python.org/dev/peps/pep-0008/ > > Met als bonus van hoe docstrings eruit zouden moeten zien PEP 257: > http://legacy.python.org/dev/peps/pep-0257/ > > daarnaast enforced pylint een groot gedeelte en dan is er altijd nog pep8.py for het enforcen van PEP 8 > https://pypi.python.org/pypi/pep8 > > > 2014-04-02 11:02 GMT+02:00 Kees de Jong : > Ik ben erg benieuwd naar de logica binnen Python voor naam conventies. > > Soms zie ik namen die beginnen met een hoofdletter of volledig in > hoofdletter, een paar voorbeelden uit deze link: > https://docs.python.org/2/library/subprocess.html#module-subprocess > > 1) subprocess.check_output() > 2) subprocess.PIPE > 3) subprocess.Popen() > > Ik wil graag begrijpen wat het inhoud en als dit gewoon gemaakt is als > open-source door iemand die dit persoonlijk handig vond dan zou ik > graag willen weten of er wel of geen PIP voor is. Python is als het > komt op indentation erg strikt, het zou jammer zijn als hier dan weer > geen regels voor zijn gemaakt. Ik ben erg benieuwd! > > > > Thanks. > _______________________________________________ > Python-nl mailing list > Python-nl at python.org > https://mail.python.org/mailman/listinfo/python-nl > > _______________________________________________ > Python-nl mailing list > Python-nl at python.org > https://mail.python.org/mailman/listinfo/python-nl -------------- next part -------------- An HTML attachment was scrubbed... URL: From reinout at vanrees.org Fri Apr 4 01:05:03 2014 From: reinout at vanrees.org (Reinout van Rees) Date: Fri, 04 Apr 2014 01:05:03 +0200 Subject: [python-nl] Conventies binnen Python In-Reply-To: References: Message-ID: On 02-04-14 11:10, Johan Otten wrote: > https://pypi.python.org/pypi/pep8 Hier zijn laatst weer een setje verbeteringen aan gedaan. Een voor mij erg handige is dat nu door deze tool geaccepteerd wordt dat een URL langer dan 80 karakters kan zijn en dat je daar niet altijd aan ontkomt. Dus.... een lange URL in een commentaar of docstring levert geen gepiep meer op. Aanrader! Reinout -- Reinout van Rees http://reinout.vanrees.org/ reinout at vanrees.org http://www.nelen-schuurmans.nl/ "If you're not sure what to do, make something. -- Paul Graham" From reinout at vanrees.org Fri Apr 25 00:57:10 2014 From: reinout at vanrees.org (Reinout van Rees) Date: Fri, 25 Apr 2014 00:57:10 +0200 Subject: [python-nl] [JOB] Python in hartje Utrecht met veel collega's Message-ID: Hoi, Bij deze werp ik weer eens een hengeltje uit voor het bedrijf waar ik werk: http://reinout.vanrees.org/weblog/2014/04/25/job-in-utrecht.html Met een programmeur of 10 zijn we volgens mij een van de grotere Python teams in Nederland en ik vind het zelf best grappig om hier te werken. Veel nieuwe initiatieven en lekker samen met elkaar mooie spullen bouwen! Ik gooi het hengeltje hier op de mailinglist ook uit omdat "ik lees deze mailinglijst al minimaal een jaar" redelijk gelijk staat aan "nou, dan willen we best een keer met je praten" :-) Reinout -- Reinout van Rees http://reinout.vanrees.org/ reinout at vanrees.org http://www.nelen-schuurmans.nl/ "If you're not sure what to do, make something. -- Paul Graham" From reinout at vanrees.org Fri Apr 25 01:11:58 2014 From: reinout at vanrees.org (Reinout van Rees) Date: Fri, 25 Apr 2014 01:11:58 +0200 Subject: [python-nl] Next PUN? Next django meeting? Message-ID: Hi, I don't see any planned django or python meetings on the meetup page (http://www.meetup.com/dutch-django-assocation/) yet. Of course, in May we have Pygrunn (which serves just fine as a Dutch Python meeting) and also eurodjangocon (which serves equally fine as a Dutch Django meeting). But... I want more :-) I'd like to organize a meeting at our office in Utrecht again, somewhere in June: http://www.meetup.com/dutch-django-assocation/events/179100132/ That'll be the third year I do this, so it'll be a tradition then. The last time people proposed a friday instead of the almost-customary wednesday or thursday. I think that's fine. Is there any Django meeting planned in Amsterdam? Or some other date I should avoid? Otherwise I'm proposing 20 June. Reinout -- Reinout van Rees http://reinout.vanrees.org/ reinout at vanrees.org http://www.nelen-schuurmans.nl/ "If you're not sure what to do, make something. -- Paul Graham" From wichert at wiggy.net Fri Apr 25 10:57:02 2014 From: wichert at wiggy.net (Wichert Akkerman) Date: Fri, 25 Apr 2014 10:57:02 +0200 Subject: [python-nl] Next PUN? Next django meeting? In-Reply-To: References: Message-ID: On 25 Apr 2014, at 01:11, Reinout van Rees wrote: > Is there any Django meeting planned in Amsterdam? Or some other date I should avoid? Otherwise I'm proposing 20 June. 20 juni lijkt me uitstekend! Gr, Wichert. From reinout at vanrees.org Fri Apr 25 12:02:51 2014 From: reinout at vanrees.org (Reinout van Rees) Date: Fri, 25 Apr 2014 12:02:51 +0200 Subject: [python-nl] Next PUN? Next django meeting? In-Reply-To: References: Message-ID: On 25-04-14 01:11, Reinout van Rees wrote: > > Is there any Django meeting planned in Amsterdam? Or some other date I > should avoid? Otherwise I'm proposing 20 June. I just double checked at the office and yes, it'll be 20 june. Reinout -- Reinout van Rees http://reinout.vanrees.org/ reinout at vanrees.org http://www.nelen-schuurmans.nl/ "If you're not sure what to do, make something. -- Paul Graham" From joh.hendriks at gmail.com Fri Apr 25 16:28:15 2014 From: joh.hendriks at gmail.com (Johan Hendriks) Date: Fri, 25 Apr 2014 16:28:15 +0200 Subject: [python-nl] zoeken binnen file. Message-ID: <535A70FF.8070706@gmail.com> Goedemiddag allemaal. Ik heb twee vraagjes. Ik ben na vele jaren afhoudend te zijn geweest met scripten toch maar eens begonnen. Na lang twijfelen heb ik dan gekozen om alles wat ik wil scripten in python te gaan doen. Nu heb ik mijzelf een projectje opgelegd, maar al gauw loop ik tegen het een en ander aan. Ik heb een bestand waar 1 tot 10 getallen in staan, dit ziet er zo uit. 200 100 80 45 46 Nu wil ik deze getallen opzoeken in files die in een directory staan. Deze bestanden bevatten allemaal ??n regel met BoxID="xx" waar xx dus het getal is wat ik wil opzoeken. Eenmaal gevonden dan wil ik het bestand geheel wegschrijven als getal.datum.xml Wat mij nu niet lukt is om een string of variabele aan te maken en deze te loopen door de bestanden. Mijn gedachte was om het bestand te lezen, dan de zoekstring aan te maken en dan door de bestanden te gaan en deze eruit zoeken. Ik heb nu het volgende. #!/usr/bin/env python import os, string # get box ID's to work with with open("/root/scripts/boxid","r") as f: content = f.read() truck = content.split() print '\n'.join(boxid) Dit geeft mij het volgende op het scherm. 200 100 80 45 46 Dus het inlezen van het bestand gaat goed, en ik heb dus als ik het goed begrijp een list met 5 waardes. # get number of boxid's number = len(boxid) print (number) Dit gaat ook goed, hij geeft netjes het getal 5. Maar nu wil ik dus zoeken op BoxID="200", BoxID="100", BoxID="80", BoxID="45" en BoxID="46" #Create search strings! #searchstring = ('BoxID="46"') searchstring = "BoxID=\"boxid[3]\"" print searchstring Hier gaat het mis. De output van print search string is BoxID="boxid[3]" Ik krijg het niet voor elkaar om daar BoxID="200" van te maken. Als ik searchstring set op ('BoxID="46"') en dan verder ga met het script, dan vind hij de bestanden waar deze regel in voor komt. en print deze ook netjes op het scherm. # read the XML files path = "/usr/local/samba/data/XML" for fname in os.listdir(path): # print fname # dit werkt, en ik krijg alle bestanden te zien. document = os.path.join(path, fname) for line in open(document): # print document # dit werkt ook, en dan zien ik alle bestanden met het gehele pad if searchstring in line: print fname Hoe kan ik de searchstring zo krijgen dat hij alle bestanden afloopt op zoek naar BoxID=" < alle getallen uit het bestand > " Het zal de leeftijd wel zijn, maar ben hier nu al een paar dagen mee bezig, maar ik zie het niet helemaal zuiver meer. :D Is er iemand die mij een klein beetje kan helpen. Mijn tweede vraag is zijn er in Nederland gebruikers groepen die python programmeer lessen geven, of zijn er lokale groepen of mensen die dit doen? Alvast bedankt voor uw tijd, en mijn excuses als de mailing list hier niet voor bedoeld is. gr Johan From berco.beute at paylogic.com Fri Apr 25 16:50:39 2014 From: berco.beute at paylogic.com (Berco Beute) Date: Fri, 25 Apr 2014 16:50:39 +0200 Subject: [python-nl] PyGrunn: Speakers/topics/schedule added Message-ID: Hi everybody! We are proud to announce yet another excellent line-up for this year's (anniversary) edition of PyGrunn. Head on over to ww.pygrunn.org and check it out and grab your ticket. We hope to see you on friday May 9th in Groningen! On behalf of the organizing committee, Berco Beute -------------- next part -------------- An HTML attachment was scrubbed... URL: From jan.murre at gmail.com Fri Apr 25 16:51:38 2014 From: jan.murre at gmail.com (Jan Murre) Date: Fri, 25 Apr 2014 16:51:38 +0200 Subject: [python-nl] zoeken binnen file. In-Reply-To: <535A70FF.8070706@gmail.com> References: <535A70FF.8070706@gmail.com> Message-ID: Dag Johan, Het gaat mis omdat je index (3 in dit geval) onderdeel is van de string, terwijl je wilt dat die dynamisch wordt. In python kan dat handig met de format method die hoort bij een string object: i = 3 'BoxID=\"boxid[{}]"'.format(i) # NB: de volledige string heeft enkel quotes, je kunt daarbinnen dan dubbele quotes gebruiken zonder te escapen. Groet, Jan 2014-04-25 16:28 GMT+02:00 Johan Hendriks : > Goedemiddag allemaal. > > Ik heb twee vraagjes. > > Ik ben na vele jaren afhoudend te zijn geweest met scripten toch maar eens > begonnen. > Na lang twijfelen heb ik dan gekozen om alles wat ik wil scripten in > python te gaan doen. > > Nu heb ik mijzelf een projectje opgelegd, maar al gauw loop ik tegen het > een en ander aan. > > Ik heb een bestand waar 1 tot 10 getallen in staan, dit ziet er zo uit. > > 200 > 100 > 80 > 45 > 46 > > Nu wil ik deze getallen opzoeken in files die in een directory staan. > Deze bestanden bevatten allemaal ??n regel met BoxID="xx" waar xx dus het > getal is wat ik wil opzoeken. Eenmaal gevonden dan wil ik het bestand > geheel wegschrijven als getal.datum.xml > > Wat mij nu niet lukt is om een string of variabele aan te maken en deze te > loopen door de bestanden. > > Mijn gedachte was om het bestand te lezen, dan de zoekstring aan te maken > en dan door de bestanden te gaan en deze eruit zoeken. > > > Ik heb nu het volgende. > > > #!/usr/bin/env python > import os, string > > # get box ID's to work with > with open("/root/scripts/boxid","r") as f: > content = f.read() > truck = content.split() > print '\n'.join(boxid) > > Dit geeft mij het volgende op het scherm. > > 200 > 100 > 80 > 45 > 46 > > Dus het inlezen van het bestand gaat goed, en ik heb dus als ik het goed > begrijp een list met 5 waardes. > > # get number of boxid's > number = len(boxid) > print (number) > > Dit gaat ook goed, hij geeft netjes het getal 5. > > Maar nu wil ik dus zoeken op BoxID="200", BoxID="100", BoxID="80", > BoxID="45" en BoxID="46" > > #Create search strings! > #searchstring = ('BoxID="46"') > searchstring = "BoxID=\"boxid[3]\"" > print searchstring > > Hier gaat het mis. > > De output van print search string is BoxID="boxid[3]" > Ik krijg het niet voor elkaar om daar BoxID="200" van te maken. > > Als ik searchstring set op ('BoxID="46"') en dan verder ga met het script, > dan vind hij de bestanden waar deze regel in voor komt. en print deze ook > netjes op het scherm. > > # read the XML files > > path = "/usr/local/samba/data/XML" > for fname in os.listdir(path): > # print fname # dit werkt, en ik krijg alle bestanden te zien. > document = os.path.join(path, fname) > for line in open(document): > # print document # dit werkt ook, en dan zien ik alle bestanden > met het gehele pad > if searchstring in line: > print fname > > Hoe kan ik de searchstring zo krijgen dat hij alle bestanden afloopt op > zoek naar BoxID=" < alle getallen uit het bestand > " > > Het zal de leeftijd wel zijn, maar ben hier nu al een paar dagen mee > bezig, maar ik zie het niet helemaal zuiver meer. :D > > Is er iemand die mij een klein beetje kan helpen. > > > Mijn tweede vraag is zijn er in Nederland gebruikers groepen die python > programmeer lessen geven, of zijn er lokale groepen of mensen die dit doen? > > Alvast bedankt voor uw tijd, en mijn excuses als de mailing list hier niet > voor bedoeld is. > > gr > Johan > _______________________________________________ > Python-nl mailing list > Python-nl at python.org > https://mail.python.org/mailman/listinfo/python-nl > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vm at klankschap.nl Fri Apr 25 17:10:18 2014 From: vm at klankschap.nl (Floris van Manen) Date: Fri, 25 Apr 2014 17:10:18 +0200 Subject: [python-nl] zoeken binnen file. In-Reply-To: <535A70FF.8070706@gmail.com> References: <535A70FF.8070706@gmail.com> Message-ID: <19011FA8-7C6B-43E2-AF4D-B51CCDE17A8E@klankschap.nl> Je hebt een folder met daarin een aantal bestanden en in elk bestand een aantal regels met op elke regel ??n getal? Vervolgens wil je een lijst van alle bestanden en daarvan alle regels waarvan de waarde <= is aan een gegeven integer (float) waarde? In dat geval zou je een dict kunnen maken met als sleutel de naam van het bestand en als value de lijst van de getallen in dat bestand. Afhankelijk van het aantal keren dat je die data wilt doorzoeken, kun je er voor kiezen om de getallen als index te kiezen met als value een lijst van bestandsnamen. .F bijvoorbeeld: #!/usr/bin/env python # encoding: utf-8 import os from collections import defaultdict fv = defaultdict(list) vf = defaultdict(list) folder = 'tmp' for fn in os.listdir(folder): ffn = os.path.sep.join([folder, fn]) if fn.endswith('.txt'): with open(ffn, 'r') as fp: content = fp.readlines() values = [int(x) for x in content if x] print ffn print values fv[ffn].append( values) for v in values: vf[v].append( ffn ) print '='*20 print fv print '='*20 print vf print '='*20 zoek = 46 for k,v in vf.iteritems(): if k <= zoek: print v From joh.hendriks at gmail.com Fri Apr 25 17:20:57 2014 From: joh.hendriks at gmail.com (Johan Hendriks) Date: Fri, 25 Apr 2014 17:20:57 +0200 Subject: [python-nl] zoeken binnen file. In-Reply-To: <19011FA8-7C6B-43E2-AF4D-B51CCDE17A8E@klankschap.nl> References: <535A70FF.8070706@gmail.com> <19011FA8-7C6B-43E2-AF4D-B51CCDE17A8E@klankschap.nl> Message-ID: <535A7D59.6060509@gmail.com> Ik heb een hele rits bestanden, en elk uur komen daar een paar 100 bij. In elk van deze bestanden staat maar ??n regel met daarin BoxID="" Nu wil ik dus uit al deze bestanden bijvoorbeeld alleen de bestanden met BoxID="30", maar morgen kan dit weer anders zijn en dan wil ik bijvoorbeeld BoxID 90 en 200 Ik schrijf de nummers die ik wil hebben in het bestand boxid, dat is het eerste stukje, die leest hij goed uit. Daarna wil ik het script laten filteren op de daadwerkelijke bestanden en dus op de nummers die ik opgegeven heb in het bestand boxid. Ik hoop dat het wat duidelijker is... Maar ik ben er nu al zo lang mee bezig dat ik door de bomen het bos niet meer zie... Alvast bedankt voor het antwoord.. op 25-04-14 17:10, Floris van Manen schreef: > Je hebt een folder met daarin een aantal bestanden en in elk bestand een aantal regels met op elke regel ??n getal? > Vervolgens wil je een lijst van alle bestanden en daarvan alle regels waarvan de waarde <= is aan een gegeven integer (float) waarde? > > In dat geval zou je een dict kunnen maken met als sleutel de naam van het bestand en als value de lijst van de getallen in dat bestand. > > Afhankelijk van het aantal keren dat je die data wilt doorzoeken, kun je er voor kiezen om de getallen als index te kiezen met als value een lijst van bestandsnamen. > > .F > > > bijvoorbeeld: > > > #!/usr/bin/env python > # encoding: utf-8 > > import os > from collections import defaultdict > > fv = defaultdict(list) > vf = defaultdict(list) > > folder = 'tmp' > for fn in os.listdir(folder): > ffn = os.path.sep.join([folder, fn]) > if fn.endswith('.txt'): > with open(ffn, 'r') as fp: > content = fp.readlines() > values = [int(x) for x in content if x] > print ffn > print values > fv[ffn].append( values) > for v in values: > vf[v].append( ffn ) > > > print '='*20 > print fv > print '='*20 > print vf > > print '='*20 > zoek = 46 > for k,v in vf.iteritems(): > if k <= zoek: > print v > > > > > > > > _______________________________________________ > Python-nl mailing list > Python-nl at python.org > https://mail.python.org/mailman/listinfo/python-nl From albert.visser at gmail.com Fri Apr 25 18:36:10 2014 From: albert.visser at gmail.com (albert visser) Date: Fri, 25 Apr 2014 18:36:10 +0200 Subject: [python-nl] zoeken binnen file. In-Reply-To: <535A70FF.8070706@gmail.com> References: <535A70FF.8070706@gmail.com> Message-ID: Hoi Johan, On Fri, 25 Apr 2014 16:28:15 +0200, Johan Hendriks wrote: > Goedemiddag allemaal. > Je belangrijkste issues lijken me het samenstellen van de zoekstring en het aflopen van alle mogelijkheden bij het zoeken. Zoals eerder verteld kun je een zoekstring opbouwen als zoekstring = 'BoxID="{}".format(boxid) Bij het doorlezen van het boxid bestand kun je een in plaats van de boxid's te printen een list opbouwen met alle dingen die je zoekt. Bv. with open("/root/scripts/boxid","r") as f: boxids = ['BoxID="{}".format(x.strip()) for x in f.readlines()] Tijdens de lus waarin je de bestanden doorloopt kun je dan alle zoekstrings stuk voor stuk uitproberen: for filename in all_files: found = False with open(filename) as f_in: for search in boxids: if search in f_in.read(): found = True break if found: print(filename) # of wat je er dan ook mee wilt doen Als dit te snel gaat: ik heb hier wat statements in elkaar geschoven, als je wilt kun je de langere versie ook krijgen. Disclaimer: ik heb deze code niet getest dus of het werkt weet ik niet, het is meer bedoeld om je een idee te geven van hoe je dit kan aanpakken. NB ik gebruik hier print(x) in plaats van print x, dat is omdat ik me heb aangewend om met Python 3 te werken; ik zou je aanraden om als je net begint dat niet met Python 2 te doen tenzij je daar een absoluut goede reden voor hebt. > > > Mijn tweede vraag is zijn er in Nederland gebruikers groepen die python > programmeer lessen geven, of zijn er lokale groepen of mensen die dit > doen? > Geen idee maar mailing lijsten zoals deze zijn hier volgens mij bij uitstek geschikt voor. Als beginner zou je misschien ook Python-tutor kunnen proberen, maar dat is dan wel in het Engels. Hou er rekening mee dat veel mensen liever je eigen code willen zien en daar advies over geven dan je programma's voor je schrijven - ik zeg altijd maar dat je meer leert van een paar keer iets fout doen dan van een "first-time right". > Alvast bedankt voor uw tijd, en mijn excuses als de mailing list hier > niet voor bedoeld is. Zie boven > > gr > Johan > _______________________________________________ > Python-nl mailing list > Python-nl at python.org > https://mail.python.org/mailman/listinfo/python-nl -- Vriendelijke groeten / Kind regards, Albert Visser Using Opera's mail client: http://www.opera.com/mail/ From vm at klankschap.nl Fri Apr 25 23:42:45 2014 From: vm at klankschap.nl (Floris van Manen) Date: Fri, 25 Apr 2014 23:42:45 +0200 Subject: [python-nl] zoeken binnen file. In-Reply-To: <535A7D59.6060509@gmail.com> References: <535A70FF.8070706@gmail.com> <19011FA8-7C6B-43E2-AF4D-B51CCDE17A8E@klankschap.nl> <535A7D59.6060509@gmail.com> Message-ID: <7CA034F2-6419-4796-B582-19B1E961A402@klankschap.nl> On 25 Apr 2014, at 17:20, Johan Hendriks wrote: > k heb een hele rits bestanden, en elk uur komen daar een paar 100 bij. > In elk van deze bestanden staat maar ??n regel met daarin BoxID="" Bedoel je dat er meer regels in het bestand staan, maar slecht ??n die begint met BoxID=" ? En je wilt het in het bestand koppelen aan de naam van het bestand? .F From joh.hendriks at gmail.com Fri Apr 25 21:57:32 2014 From: joh.hendriks at gmail.com (Johan Hendriks) Date: Fri, 25 Apr 2014 21:57:32 +0200 Subject: [python-nl] zoeken binnen file. In-Reply-To: <19011FA8-7C6B-43E2-AF4D-B51CCDE17A8E@klankschap.nl> References: <535A70FF.8070706@gmail.com> <19011FA8-7C6B-43E2-AF4D-B51CCDE17A8E@klankschap.nl> Message-ID: <535ABE2C.6050509@gmail.com> op 25-04-14 17:10, Floris van Manen schreef: > Je hebt een folder met daarin een aantal bestanden en in elk bestand een aantal regels met op elke regel ??n getal? > Vervolgens wil je een lijst van alle bestanden en daarvan alle regels waarvan de waarde <= is aan een gegeven integer (float) waarde? > > In dat geval zou je een dict kunnen maken met als sleutel de naam van het bestand en als value de lijst van de getallen in dat bestand. > > Afhankelijk van het aantal keren dat je die data wilt doorzoeken, kun je er voor kiezen om de getallen als index te kiezen met als value een lijst van bestandsnamen. > > .F > > > bijvoorbeeld: > > > #!/usr/bin/env python > # encoding: utf-8 > > import os > from collections import defaultdict > > fv = defaultdict(list) > vf = defaultdict(list) > > folder = 'tmp' > for fn in os.listdir(folder): > ffn = os.path.sep.join([folder, fn]) > if fn.endswith('.txt'): > with open(ffn, 'r') as fp: > content = fp.readlines() > values = [int(x) for x in content if x] > print ffn > print values > fv[ffn].append( values) > for v in values: > vf[v].append( ffn ) > > > print '='*20 > print fv > print '='*20 > print vf > > print '='*20 > zoek = 46 > for k,v in vf.iteritems(): > if k <= zoek: > print v > > > > > > > > _______________________________________________ > Python-nl mailing list > Python-nl at python.org > https://mail.python.org/mailman/listinfo/python-nl Niet helemaal ... Ik heb een directory (/usr/local/samba/data/XML) met daarin enkele files, en per uur komen hier een 100 tal files bij. In ieder bestand in deze directory staat een regel met BoxID="xxx",waar xxx een getal is tussen 0 en 999. Nu wil ik deze bestanden filteren op BoxID Soms heb ik er 1 nodig, soms meerdere. en het kan zijn dat er meerdere bestanden zijn met hetzelfde BoxID. Nu dacht ik als ik een bestand aanmaak (/root/scripts/boxid) en ik zet daar de nummers in die ik wil dan ben ik klaar. Echter lukt dat nog niet helemaal, of beter gezegd helemaal niet. Blijkt toch even wat anders te gaan dan gedacht. Ik ga ook met de antwoorden van de andere even aan de slag.. Alvast bedankt allemaal. gr Johan From joh.hendriks at gmail.com Sat Apr 26 00:03:53 2014 From: joh.hendriks at gmail.com (Johan Hendriks) Date: Sat, 26 Apr 2014 00:03:53 +0200 Subject: [python-nl] zoeken binnen file. In-Reply-To: <7CA034F2-6419-4796-B582-19B1E961A402@klankschap.nl> References: <535A70FF.8070706@gmail.com> <19011FA8-7C6B-43E2-AF4D-B51CCDE17A8E@klankschap.nl> <535A7D59.6060509@gmail.com> <7CA034F2-6419-4796-B582-19B1E961A402@klankschap.nl> Message-ID: <535ADBC9.8070407@gmail.com> Ieder bestand is uniek, en bevat maar 1 regel met BoxID="xxx" In het bestand /root/scripts/boxid vul ik in welke boxid bestanden ik wil. bijvoorbeeld box id 46 en 163 Dan is het bestand boxid voorzien van deze twee getallen. Nu was mijn gedachte dat ik deze twee getallen inlees en dan de bestanden doorzoek op BoxID="46" en BoxID="163" Als ik deze gevonden heb, dan wil ik ze wegkopieren of heroemen naar een bestands naam met id. Maar het hele sorteer process is al een hele kluif voor mijn script kunsten :( gr Johan op 25-04-14 23:42, Floris van Manen schreef: > On 25 Apr 2014, at 17:20, Johan Hendriks wrote: > >> k heb een hele rits bestanden, en elk uur komen daar een paar 100 bij. >> In elk van deze bestanden staat maar ??n regel met daarin BoxID="" > Bedoel je dat er meer regels in het bestand staan, maar slecht ??n die begint met > BoxID=" > ? > > En je wilt het in het bestand koppelen aan de naam van het bestand? > > > .F > _______________________________________________ > Python-nl mailing list > Python-nl at python.org > https://mail.python.org/mailman/listinfo/python-nl From joh.hendriks at gmail.com Sat Apr 26 01:04:24 2014 From: joh.hendriks at gmail.com (Johan Hendriks) Date: Sat, 26 Apr 2014 01:04:24 +0200 Subject: [python-nl] zoeken binnen file. In-Reply-To: References: <535A70FF.8070706@gmail.com> Message-ID: <535AE9F8.2070307@gmail.com> op 25-04-14 18:36, albert visser schreef: > Hoi Johan, > > On Fri, 25 Apr 2014 16:28:15 +0200, Johan Hendriks > wrote: > >> Goedemiddag allemaal. >> > > Je belangrijkste issues lijken me het samenstellen van de zoekstring > en het aflopen van alle mogelijkheden bij het zoeken. > > Zoals eerder verteld kun je een zoekstring opbouwen als zoekstring = > 'BoxID="{}".format(boxid) > Bij het doorlezen van het boxid bestand kun je een in plaats van de > boxid's te printen een list opbouwen met alle dingen die je zoekt. > Bv. > with open("/root/scripts/boxid","r") as f: > boxids = ['BoxID="{}".format(x.strip()) for x in f.readlines()] > > Tijdens de lus waarin je de bestanden doorloopt kun je dan alle > zoekstrings stuk voor stuk uitproberen: > > for filename in all_files: > found = False > with open(filename) as f_in: > for search in boxids: > if search in f_in.read(): > found = True > break > if found: > print(filename) # of wat je er dan ook mee wilt doen > > Als dit te snel gaat: ik heb hier wat statements in elkaar geschoven, > als je wilt kun je de langere versie ook krijgen. > Disclaimer: ik heb deze code niet getest dus of het werkt weet ik > niet, het is meer bedoeld om je een idee te geven van hoe je dit kan > aanpakken. > NB ik gebruik hier print(x) in plaats van print x, dat is omdat ik me > heb aangewend om met Python 3 te werken; ik zou je aanraden om als je > net begint dat niet met Python 2 te doen tenzij je daar een absoluut > goede reden voor hebt. > >> >> >> Mijn tweede vraag is zijn er in Nederland gebruikers groepen die >> python programmeer lessen geven, of zijn er lokale groepen of mensen >> die dit doen? >> > > Geen idee maar mailing lijsten zoals deze zijn hier volgens mij bij > uitstek geschikt voor. Als beginner zou je misschien ook Python-tutor > kunnen proberen, maar dat is dan wel in het Engels. > Hou er rekening mee dat veel mensen liever je eigen code willen zien > en daar advies over geven dan je programma's voor je schrijven - ik > zeg altijd maar dat je meer leert van een paar keer iets fout doen dan > van een "first-time right". > > >> Alvast bedankt voor uw tijd, en mijn excuses als de mailing list hier >> niet voor bedoeld is. > > Zie boven >> >> gr >> Johan >> _______________________________________________ >> Python-nl mailing list >> Python-nl at python.org >> https://mail.python.org/mailman/listinfo/python-nl > > Dankzij jullie aanwijzingen is het mij dan toch gelukt, en ik zag het eigenlijk al niet echt meer zitten :D Het was even stoeien, maar de aanhouder wint.. De prints tussen door deed ik om te kijken of er ook daadwerkelijk iets uit kwam. bijvoorbeeld print content gaf mij op een gegeven moment "123 " Zo kwam ik er dus achter dat er een return mee kwam. na wat googlen kun je die dus weghalen met rstrip() Het is erg leuk om zo bezig te zijn, maar soms heb je net even het zetje in de juiste richting nodig. Uiteindelijk is het script als volgt geworden. #!/usr/bin/env python import os, string # get boxid's with open("/root/scripts/boxid","r") as f: content = f.read().rstrip("\n") boxid = content.split() # read the XML files path = "/usr/local/samba/data/XML" for fname in os.listdir(path): document = os.path.join(path, fname) for line in open(document): for i in range(len(boxid)): searchstring = 'BoxID="{}"'.format(boxid[i]) if searchstring in line: print document, searchstring Het bestand /root/scripts/boxid bevat het volgende : 49 46 149 123 Na het uitvoeren van het script ziet het er als volgt uit. FreeBSD-thuis scripts # ./ggsecurity.py /usr/local/samba/data/XML/RXL0061361833.xml', 'BoxID="123" /usr/local/samba/data/XML/RXL0061361560.xml', 'BoxID="123" /usr/local/samba/data/XML/RXL0061361243.xml', 'BoxID="123" /usr/local/samba/data/XML/RXL0061360944.xml', 'BoxID="123" /usr/local/samba/data/XML/RXL0061360652.xml', 'BoxID="123" /usr/local/samba/data/XML/RXL0061346439.xml', 'BoxID="46" /usr/local/samba/data/XML/RXL0061380738.xml', 'BoxID="123" /usr/local/samba/data/XML/RXL0061380409.xml', 'BoxID="123" /usr/local/samba/data/XML/RXL0061380106.xml', 'BoxID="123" /usr/local/samba/data/XML/RXL1670876746.xml', 'BoxID="46" /usr/local/samba/data/XML/1656754454544.xml', 'BoxID="49" /usr/local/samba/data/XML/1556467754332.xml', 'BoxID="149" Nu is het tijd om te gaan slapen.... Van de week weer verder om er wat meer acties aan vast te knopen zoals het verplaatsen en hernoemen van de gevonden bestanden. Ik wil jullie allemaal heel erg bedanken voor jullie tijd om mij op het goede spoor te zetten. gr Johan From tikitu at buzzcapture.com Sat Apr 26 09:49:32 2014 From: tikitu at buzzcapture.com (Tikitu de Jager) Date: Sat, 26 Apr 2014 10:49:32 +0300 Subject: [python-nl] Next PUN? Next django meeting? In-Reply-To: References: Message-ID: I've been out of the country a while and am a bit out of touch: how are the talks arranged these days? (I gather it's no longer "write your name on the wiki" :-) If people are interested, I think I'd be able to work up a presentation about the fundamentals of coroutines, event loops, and non-blocking I/O (the stuff that makes asyncio and friends work). There would be some overlap with the PyGrunn program, judging by the talk titles ("asyncio internals" and "gevent"), but my idea would be to zoom out from details of any particular library and look at the ideas they have in common. I could also give a lightning talk on remote working: it's not directly pythonic, so again, is there any interest? Cheers, Tikitu On 25 April 2014 13:02, Reinout van Rees wrote: > On 25-04-14 01:11, Reinout van Rees wrote: > >> >> Is there any Django meeting planned in Amsterdam? Or some other date I >> should avoid? Otherwise I'm proposing 20 June. >> > > I just double checked at the office and yes, it'll be 20 june. > > -- Buzzcapture Herengracht 180, 1016 BR, Amsterdam T: +31 (0)20 3200377 M: +30 6947 212 212 Recent 06-03-2014: Ziggo start met ge?ntegreerd media monitoring Buzzcapture & ANP 28-02-2014: Buzzcapture organiseert event #Buzz14 met sprekers van Twitter, P&G en BAM 21-02-2014: Social media analyses voorspellen afvallers Wie is de Mol? 30-01-2014: Van Neerbos Bouwmarkten nieuwe klant van Buzzcapture 01-01-2014: Buzzcapture Contentkalender 2014 nu te downloaden 20-12-2013: Carglass start met Buzzcapture -------------- next part -------------- An HTML attachment was scrubbed... URL: From reinout at vanrees.org Sun Apr 27 23:50:28 2014 From: reinout at vanrees.org (Reinout van Rees) Date: Sun, 27 Apr 2014 23:50:28 +0200 Subject: [python-nl] Next PUN? Next django meeting? In-Reply-To: References: Message-ID: On 26-04-14 09:49, Tikitu de Jager wrote: > I've been out of the country a while and am a bit out of touch: how are > the talks arranged these days? (I gather it's no longer "write your name > on the wiki" :-) The wiki went the way of the dodo when python.org's wiki was hacked. Nowadays meetup.com is the place to tell you're coming. For the next Utrecht meeting: http://www.meetup.com/dutch-django-assocation/events/179100132/ The name of that meetup is that of the Django branch, but that's mostly because the python wiki got hacked and we needed something QUICK. And, as usual, registering isn't necessary. You can just show up. Registering is mostly for the organizer to know how much cola, orange juice, beer and chips to arrange. > If people are interested, I think I'd be able to work up a presentation > about the fundamentals of coroutines, event loops, and non-blocking I/O > (the stuff that makes asyncio and friends work). There would be some > overlap with the PyGrunn program, judging by the talk titles ("asyncio > internals" and "gevent"), but my idea would be to zoom out from details > of any particular library and look at the ideas they have in common. Sounds like a nice technical internal talk, I'd be interested! It is a just a month or so after the pygrunn conference, so perhaps it'd be better to give your talk at a later PUN meeting? I don't know about the overlap with pygrunn (regarding subject and regarding people-attending-both-PUN-and-pygrunn). We've got some fancy projects ourselves that we'd like to show. I'm thinking about splitting one of the two 30 minute sessions in 2x15 minutes. One for fancy GDAL geographical layer manipulations. One of my colleagues does absolute magic with a Flask web service based on that new 50x50cm "AHN2" Dutch height data grid. He claims he's "only using GDAL", so that sounds like a nice talk. The other is a wonderful 3D flood simulation tool. The actual calculation is in Fortran and all the rest is in Python, including a web interface where you can do live flood simulations. Reinout -- Reinout van Rees http://reinout.vanrees.org/ reinout at vanrees.org http://www.nelen-schuurmans.nl/ "If you're not sure what to do, make something. -- Paul Graham" From claussen.lars at gmail.com Mon Apr 28 08:43:02 2014 From: claussen.lars at gmail.com (Lars Claussen) Date: Mon, 28 Apr 2014 08:43:02 +0200 Subject: [python-nl] Next PUN? Next django meeting? In-Reply-To: References: Message-ID: I knew there were some pythonistas out there who were deep into the geo business! I'm deadly curious about the 'fancy GDAL' magic you are teasing us with as this is one of the packages I'm working with myself on a daily basis. I hope I'll be able to save the date. Happy coding, Lars 2014-04-27 23:50 GMT+02:00 Reinout van Rees : > On 26-04-14 09:49, Tikitu de Jager wrote: > >> I've been out of the country a while and am a bit out of touch: how are >> the talks arranged these days? (I gather it's no longer "write your name >> on the wiki" :-) >> > > The wiki went the way of the dodo when python.org's wiki was hacked. > Nowadays meetup.com is the place to tell you're coming. > For the next Utrecht meeting: > http://www.meetup.com/dutch-django-assocation/events/179100132/ > > The name of that meetup is that of the Django branch, but that's mostly > because the python wiki got hacked and we needed something QUICK. > > And, as usual, registering isn't necessary. You can just show up. > Registering is mostly for the organizer to know how much cola, orange > juice, beer and chips to arrange. > > > If people are interested, I think I'd be able to work up a presentation >> about the fundamentals of coroutines, event loops, and non-blocking I/O >> (the stuff that makes asyncio and friends work). There would be some >> overlap with the PyGrunn program, judging by the talk titles ("asyncio >> internals" and "gevent"), but my idea would be to zoom out from details >> of any particular library and look at the ideas they have in common. >> > > Sounds like a nice technical internal talk, I'd be interested! > It is a just a month or so after the pygrunn conference, so perhaps it'd > be better to give your talk at a later PUN meeting? I don't know about the > overlap with pygrunn (regarding subject and regarding > people-attending-both-PUN-and-pygrunn). > > > We've got some fancy projects ourselves that we'd like to show. I'm > thinking about splitting one of the two 30 minute sessions in 2x15 minutes. > One for fancy GDAL geographical layer manipulations. One of my colleagues > does absolute magic with a Flask web service based on that new 50x50cm > "AHN2" Dutch height data grid. He claims he's "only using GDAL", so that > sounds like a nice talk. > The other is a wonderful 3D flood simulation tool. The actual calculation > is in Fortran and all the rest is in Python, including a web interface > where you can do live flood simulations. > > > > > Reinout > > -- > Reinout van Rees http://reinout.vanrees.org/ > reinout at vanrees.org http://www.nelen-schuurmans.nl/ > "If you're not sure what to do, make something. -- Paul Graham" > > _______________________________________________ > Python-nl mailing list > Python-nl at python.org > https://mail.python.org/mailman/listinfo/python-nl > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tikitu at buzzcapture.com Tue Apr 29 09:23:57 2014 From: tikitu at buzzcapture.com (Tikitu de Jager) Date: Tue, 29 Apr 2014 10:23:57 +0300 Subject: [python-nl] Next PUN? Next django meeting? In-Reply-To: References: Message-ID: On 28 April 2014 00:50, Reinout van Rees wrote: > On 26-04-14 09:49, Tikitu de Jager wrote: > >> If people are interested, I think I'd be able to work up a presentation >> > about the fundamentals of coroutines, event loops, and non-blocking I/O >> (the stuff that makes asyncio and friends work). There would be some >> overlap with the PyGrunn program, judging by the talk titles ("asyncio >> internals" and "gevent"), but my idea would be to zoom out from details >> of any particular library and look at the ideas they have in common. >> > > Sounds like a nice technical internal talk, I'd be interested! > It is a just a month or so after the pygrunn conference, so perhaps it'd > be better to give your talk at a later PUN meeting? I don't know about the > overlap with pygrunn (regarding subject and regarding > people-attending-both-PUN-and-pygrunn). > I had the idea that maybe the coincidence would be a positive feature (personally I like hitting the same ideas from different angles to get an overview). But since nobody has announced their burning desire to learn about coroutines, I'll save it for the next meeting. Cheers, Tikitu -- Buzzcapture Herengracht 180, 1016 BR, Amsterdam T: +31 (0)20 3200377 M: +30 6947 212 212 Recent 06-03-2014: Ziggo start met ge?ntegreerd media monitoring Buzzcapture & ANP 28-02-2014: Buzzcapture organiseert event #Buzz14 met sprekers van Twitter, P&G en BAM 21-02-2014: Social media analyses voorspellen afvallers Wie is de Mol? 30-01-2014: Van Neerbos Bouwmarkten nieuwe klant van Buzzcapture 01-01-2014: Buzzcapture Contentkalender 2014 nu te downloaden 20-12-2013: Carglass start met Buzzcapture -------------- next part -------------- An HTML attachment was scrubbed... URL: From depjayds at gmail.com Tue Apr 29 09:55:38 2014 From: depjayds at gmail.com (Roald) Date: Tue, 29 Apr 2014 09:55:38 +0200 Subject: [python-nl] Next PUN? Next django meeting? In-Reply-To: References: Message-ID: I'm planning to go to pygrunn. IMHO having a talk that zoomes out and talks about fundamentals would be very interesting (either before or after pygrunn). Regards, Roald Op 29 apr. 2014 09:24 schreef "Tikitu de Jager" het volgende: > On 28 April 2014 00:50, Reinout van Rees wrote: > >> On 26-04-14 09:49, Tikitu de Jager wrote: >> >>> If people are interested, I think I'd be able to work up a presentation >>> >> about the fundamentals of coroutines, event loops, and non-blocking I/O >>> (the stuff that makes asyncio and friends work). There would be some >>> overlap with the PyGrunn program, judging by the talk titles ("asyncio >>> internals" and "gevent"), but my idea would be to zoom out from details >>> of any particular library and look at the ideas they have in common. >>> >> >> Sounds like a nice technical internal talk, I'd be interested! >> It is a just a month or so after the pygrunn conference, so perhaps it'd >> be better to give your talk at a later PUN meeting? I don't know about the >> overlap with pygrunn (regarding subject and regarding >> people-attending-both-PUN-and-pygrunn). >> > > I had the idea that maybe the coincidence would be a positive feature > (personally I like hitting the same ideas from different angles to get an > overview). But since nobody has announced their burning desire to learn > about coroutines, I'll save it for the next meeting. > > Cheers, > Tikitu > > -- > > > Buzzcapture > > Herengracht 180, 1016 BR, Amsterdam > > T: +31 (0)20 3200377 > > M: +30 6947 212 212 > > > Recent > 06-03-2014: Ziggo start met ge?ntegreerd media monitoring Buzzcapture & > ANP > 28-02-2014: Buzzcapture organiseert event #Buzz14 met > sprekers van Twitter, P&G en BAM > 21-02-2014: Social media analyses > voorspellen afvallers Wie is de Mol? > 30-01-2014: Van Neerbos Bouwmarkten nieuwe > klant van Buzzcapture > 01-01-2014: Buzzcapture Contentkalender 2014 nu > te downloaden > 20-12-2013: Carglass start met Buzzcapture > > _______________________________________________ > Python-nl mailing list > Python-nl at python.org > https://mail.python.org/mailman/listinfo/python-nl > > ------------- volgend deel ------------ Een HTML-bijlage is gescrubt... URL: From remco at gerlich.nl Tue Apr 29 11:08:44 2014 From: remco at gerlich.nl (Remco Gerlich) Date: Tue, 29 Apr 2014 11:08:44 +0200 Subject: [python-nl] Next PUN? Next django meeting? In-Reply-To: References: Message-ID: On Tue, Apr 29, 2014 at 9:23 AM, Tikitu de Jager wrote: > I had the idea that maybe the coincidence would be a positive feature > (personally I like hitting the same ideas from different angles to get an > overview). But since nobody has announced their burning desire to learn > about coroutines, I'll save it for the next meeting. > I want to hear about them! I haven't seen more than few headlines, but asyncio sounds like a feature of Python 3 that could really be a reason to upgrade from 2. Remco Gerlich ------------- volgend deel ------------ Een HTML-bijlage is gescrubt... URL: From tikitu at buzzcapture.com Wed Apr 30 10:27:07 2014 From: tikitu at buzzcapture.com (Tikitu de Jager) Date: Wed, 30 Apr 2014 11:27:07 +0300 Subject: [python-nl] Next PUN? Next django meeting? In-Reply-To: References: Message-ID: I guess it's Reinout's decision, as the host this time around. My preference as a speaker would be to give the talk in June (a month and a half after PyGrunn, right?) rather than in six months or so, but typically the audience outnumbers the speaker so my preference shouldn't be weighted too high ;-) Cheers, Tikitu On 29 April 2014 10:55, Roald wrote: > I'm planning to go to pygrunn. IMHO having a talk that zoomes out and > talks about fundamentals would be very interesting (either before or after > pygrunn). > > Regards, > Roald > Op 29 apr. 2014 09:24 schreef "Tikitu de Jager" > het volgende: > >> On 28 April 2014 00:50, Reinout van Rees wrote: >> >>> On 26-04-14 09:49, Tikitu de Jager wrote: >>> >>>> If people are interested, I think I'd be able to work up a presentation >>>> >>> about the fundamentals of coroutines, event loops, and non-blocking I/O >>>> (the stuff that makes asyncio and friends work). There would be some >>>> overlap with the PyGrunn program, judging by the talk titles ("asyncio >>>> internals" and "gevent"), but my idea would be to zoom out from details >>>> of any particular library and look at the ideas they have in common. >>>> >>> >>> Sounds like a nice technical internal talk, I'd be interested! >>> It is a just a month or so after the pygrunn conference, so perhaps it'd >>> be better to give your talk at a later PUN meeting? I don't know about the >>> overlap with pygrunn (regarding subject and regarding >>> people-attending-both-PUN-and-pygrunn). >>> >> >> I had the idea that maybe the coincidence would be a positive feature >> (personally I like hitting the same ideas from different angles to get an >> overview). But since nobody has announced their burning desire to learn >> about coroutines, I'll save it for the next meeting. >> >> Cheers, >> Tikitu >> >> -- >> >> >> Buzzcapture >> >> Herengracht 180, 1016 BR, Amsterdam >> >> T: +31 (0)20 3200377 >> >> M: +30 6947 212 212 >> >> >> Recent >> 06-03-2014: Ziggo start met ge?ntegreerd media monitoring Buzzcapture & >> ANP >> 28-02-2014: Buzzcapture organiseert event #Buzz14 met >> sprekers van Twitter, P&G en BAM >> 21-02-2014: Social media analyses >> voorspellen afvallers Wie is de Mol? >> 30-01-2014: Van Neerbos Bouwmarkten nieuwe >> klant van Buzzcapture >> 01-01-2014: Buzzcapture Contentkalender 2014 nu >> te downloaden >> 20-12-2013: Carglass start met Buzzcapture >> >> _______________________________________________ >> Python-nl mailing list >> Python-nl at python.org >> https://mail.python.org/mailman/listinfo/python-nl >> >> > _______________________________________________ > Python-nl mailing list > Python-nl at python.org > https://mail.python.org/mailman/listinfo/python-nl > > -- Buzzcapture Herengracht 180, 1016 BR, Amsterdam T: +31 (0)20 3200377 M: +30 6947 212 212 Recent 06-03-2014: Ziggo start met ge?ntegreerd media monitoring Buzzcapture & ANP 28-02-2014: Buzzcapture organiseert event #Buzz14 met sprekers van Twitter, P&G en BAM 21-02-2014: Social media analyses voorspellen afvallers Wie is de Mol? 30-01-2014: Van Neerbos Bouwmarkten nieuwe klant van Buzzcapture 01-01-2014: Buzzcapture Contentkalender 2014 nu te downloaden 20-12-2013: Carglass start met Buzzcapture -------------- next part -------------- An HTML attachment was scrubbed... URL: From reinout at vanrees.org Wed Apr 30 11:04:11 2014 From: reinout at vanrees.org (Reinout van Rees) Date: Wed, 30 Apr 2014 11:04:11 +0200 Subject: [python-nl] Next PUN? Next django meeting? In-Reply-To: References: Message-ID: On 30-04-14 10:27, Tikitu de Jager wrote: > I guess it's Reinout's decision, as the host this time around. My > preference as a speaker would be to give the talk in June (a month and a > half after PyGrunn, right?) rather than in six months or so, but > typically the audience outnumbers the speaker so my preference shouldn't > be weighted too high ;-) You've got the first 30 minute slot :-) I warned my GDAL+flask colleague that I wanted him to give a talk and he agreed. So that's the second 30 minute slot. Probably combined with 3D flood simulation and interfacing with Fortran. So... 6 5-minute lightning talks left! Reinout -- Reinout van Rees http://reinout.vanrees.org/ reinout at vanrees.org http://www.nelen-schuurmans.nl/ "If you're not sure what to do, make something. -- Paul Graham" From tikitu at buzzcapture.com Wed Apr 30 17:18:06 2014 From: tikitu at buzzcapture.com (Tikitu de Jager) Date: Wed, 30 Apr 2014 18:18:06 +0300 Subject: [python-nl] Next PUN? Next django meeting? In-Reply-To: References: Message-ID: On 30 April 2014 12:04, Reinout van Rees wrote: > On 30-04-14 10:27, Tikitu de Jager wrote: > >> I guess it's Reinout's decision, as the host this time around. My >> preference as a speaker would be to give the talk in June (a month and a >> half after PyGrunn, right?) rather than in six months or so, but >> typically the audience outnumbers the speaker so my preference shouldn't >> be weighted too high ;-) >> > > You've got the first 30 minute slot :-) > Neat, thanks, looking forward to it! Tikitu I warned my GDAL+flask colleague that I wanted him to give a talk and he > agreed. So that's the second 30 minute slot. Probably combined with 3D > flood simulation and interfacing with Fortran. So... 6 5-minute lightning talks left! > > -- Buzzcapture Herengracht 180, 1016 BR, Amsterdam T: +31 (0)20 3200377 M: +30 6947 212 212 Recent 06-03-2014: Ziggo start met ge?ntegreerd media monitoring Buzzcapture & ANP 28-02-2014: Buzzcapture organiseert event #Buzz14 met sprekers van Twitter, P&G en BAM 21-02-2014: Social media analyses voorspellen afvallers Wie is de Mol? 30-01-2014: Van Neerbos Bouwmarkten nieuwe klant van Buzzcapture 01-01-2014: Buzzcapture Contentkalender 2014 nu te downloaden 20-12-2013: Carglass start met Buzzcapture -------------- next part -------------- An HTML attachment was scrubbed... URL: