Monday, December 7, 2009
pyCologne Python User Group, Cologne, Germany, December, 9th, Announcement
Wednesday, December, 9th
starting about 6.30 pm - 6.45 pm
at Room 0.14, Benutzerrechenzentrum (RRZK-B)
University of Cologne, Berrenrather Str. 136, 50937 Köln, Germany
This time we haven't got a fixed agenda yet.
We will probably talk about the organization of this year's Christmas Party.
At about 8.30 pm we will as usual enjoy the rest of the evening in a nearby restaurant.
Further information including directions how to get to the location can be found at:
http://www.pycologne.de (Sorry, this page is in German only)
Sunday, November 8, 2009
pyCologne Python User Group, Cologne, Germany, November, 11th, Announcement
Wednesday, November, 11th
starting about 6.30 pm - 6.45 pm
at Room 0.14, Benutzerrechenzentrum (RRZK-B)
University of Cologne, Berrenrather Str. 136, 50937 Köln, Germany
Agenda:
- Beyond MVC - The ZOPE-Component-Model (Charlie Clark)
Further information including directions how to get to the location can be found at:
http://www.pycologne.de (Sorry, this page is in German only)
Sunday, October 18, 2009
pyCologne Python User Group, Cologne, Germany, October, 14th Notes
This time we had two talks about Google Wave. Many thanks to Alexander Benker and Andi Albrecht:
Overview of Google Wave (Alexander Benker)
Alexander gave a detailed overview of Google Wave. He presented the elements of Google Wave (Wave, Wavelet, Blip) as well as its architecture. Furthermore, he described Wave's extensibility using Robots and Gadgets and presented some examples among them a Robot for Syntax-Highlighting.
The full talk is available on Slideshare:
http://www.slideshare.net/abenker/20091014-google-wave
Google Wave Robots in Python (Andi Albrecht)
Andi showed how to program robots for Wave using Python. As an example he presented a robot which sets the color of a certain letter sequence to red while typing a text.
- Robots run within Google's App Engine
- The Python API documentation can be found at: http://wave-robot-python-client.googlecode.com/svn/trunk/pydocs/index.html
Google Wave, Discussion
There developed a lively discussion and Q&A about Wave's technology and possible use-cases.
SetupTools vs. Distribute
Christopher Arndt encourages discussion about using SetupTools or Distribute.
The cause are recent blog-entries by Phillip J. "PJ" Eby:
http://dirtsimple.org/2009/10/clarification-or-two.html
http://mail.python.org/pipermail/distutils-sig/2009-October/013822.html
The minutes of the meeting in German language can be found here.
The next meeting will be held on, Wednesday, November, 11th.
Most of the participants enjoyed the rest of the evening in our usual italian restaurant having food, drinks and friendly conversation.
Sunday, October 11, 2009
pyCologne Python User Group, Cologne, Germany, October, 14th, Announcement
starting about 6.30 pm - 6.45 pm
at Room 0.14, Benutzerrechenzentrum (RRZK-B)
University of Cologne, Berrenrather Str. 136, 50937 Köln, Germany
Agenda:
Google Wave (Andi Albrecht, Florian Scheel)
Further information including directions how to get to the location can be found at:
http://wiki.python.de/User_Group_Köln (Sorry, this page is in German only)
Monday, September 7, 2009
pyCologne Python User Group, Cologne, Germany, September, 9th, Announcement
starting about 6.30 pm - 6.45 pm
at Room 0.14, Benutzerrechenzentrum (RRZK-B)
University of Cologne, Berrenrather Str. 136, 50937 Köln, Germany
Agenda:
Hacking and reverse engineering with Python (Stefan Pielicke)
Development status of moin-1.9 (beta3++) (Reimar Bauer)
At about 8.30 pm we will as usual enjoy the rest of the evening in a nearby restaurant.
Further information including directions how to get to the location can be found at:
http://wiki.python.de/User_Group_Köln (Sorry, this page is in German only)
Sunday, August 30, 2009
pyCologne Python User Group, Cologne, Germany, August, 12th Notes
Flyer
The pyCologne-Flyer is ready for print!!! Klaus Bremer introduces its contents:
- The three inner pages contain information about Python.
- The title page shows the pyCologne-Logo and short information about pyCologne.
- The remaining pages contain a short description of pyCologne and contact information.
Todays Talk: How to automate and extend Windwows-Applications with pywin32 (Andreas Schreiber)
Andreas introduced the pyWin32 Module, which makes it possible to communicate via the COM-Interface to Windows-Applications.
- COM uses the Client-Server-Model
- Nearly each peace of software on Windows provides a COM-Interface, mainly the Office-Applications.
- It is possible to "remote control" applications. Andreas presented an example which controls Word via the Python-Command-Line.
- Moreover, COM makes it possible to register Python-Code for events of Office-Applications: Andreas showed an example which catches the "turning-page"-event from a Power-Point presentation and sends the page heading out to Twitter.
- It can be quite difficult to examine the COM-Interface provided by different applications. There are some tools available like COM-Browser and makepy. Moreover, it is a good idea to have a look into the help-file of the application, which often contains an application specific documentation of the COM-Interface.
The announced talk "MIDI-Programming using Python on Linux/ALSA" unfortunately had to be canceled because Chris was ill.
Announcements
- September, 19th: Software-Freedom-Day: Linux-Install-Party at Odysseum (Cologne, Germany). Further information (in German) on: http://pv-rheinbogen.de/CcpWiki/InstallParty2009
September, 20th: Tag der Luft- und Raumfahrt (Day of Air- and space travel) at DLR (Cologne) . Please find further information on: http://www.dlr.de/tdlr/
September, 14th to 18th: "Grok Neanderthal Sprint" at GFU in Cologne.
The minutes of the meeting in German language can be found here.
The next meeting will be held on, Wednesday, September, 9th.
Most of the participants enjoyed the rest of the evening in our usual italian restaurant having food, drinks and friendly conversation.
Thursday, August 13, 2009
PUB - Python Users Berlin, Germany, 20th of August, Announcement
The gathering takes place at newthinkingstore, Tucholskystr. 48, 10117 Berlin, Germany
There will be a talk about Python 3.
Everybody with an interest in Python is invited to come. Afterwards, we'll have food and drinks in a nearby restaurant (please sign here for the restaurant visit)
See you next Thursday, Stephan
http://wiki.python.de/User Group Berlin
Monday, August 10, 2009
pyCologne Python User Group, Cologne, Germany, August, 12th, Announcement
starting about 6.30 pm - 6.45 pm
at Room 0.14, Benutzerrechenzentrum (RRZK-B)
University of Cologne, Berrenrather Str. 136, 50937 Köln, Germany
Agenda:
- How to automate and extend Windwows-Applications with pywin32 (Andreas Schreiber)
MIDI-Programming using Python on Linux/ALSA (Christopher Arndt)
Further information including directions how to get to the location can be found at:
http://wiki.python.de/User_Group_Köln (Sorry, this page is in German only)
Wednesday, July 22, 2009
DFW Pythoneers 4th Saturday Meeting
We'll start with informal discussion about what's happening in Python, along with some "what does this code do" Python examples I found in the unit-testing code for the cPython interpreter. Would you recognize a backtracking generator? How about a lazy list iterator? For a taste, check out test_generators.py
There will also be simple examples for those new to Python.
While we start gathering at noon to talk over lunch, the formal presentation won't start until 2pm. I'll be giving a presentation from PyCon 2009 about Python Namespaces, Code Objects and How They Work Together Under The Hood.
And if there is interest, I'd like to continue sprinting on reimplementing the M.U.L.E. game using the Pyglet OpenGL framework. We can split into teams tackling two pieces reusable in other games:
- An Avahi/Bonjour-based network component for detecting the presence of all active games of a certain kind (e.g. M.U.L.E.) on the LAN, determining which are currently open for new players (i.e. in the game start phase) and returning this information for presenting in some kind of GUI. A user can then select which game to join. Because of the nature of the network, this should be implemented in an asynchronous fashion.
- A Pyglet-based component for animating a character walking across the screen in all eight directions. It should contain a step generator that controls the rate of walking, and listen to events from the keyboard (or joystick or network) telling it in which direction to walk. It must be possible for multiple instances to exist so that players can concurrently walk their characters around the board. Other components should be able to subscribe to walk events to handle actions based on where the character is walking including slowing or aborting the walk.
Schedule
12:00 lunch
02:00 "Python Namespaces and Code Objects"
I hope to see you there!
Sunday, July 19, 2009
pyCologne Python User Group, Cologne, Germany, July 8th Notes
Announcements
Johannes Huperts: The Linux-UserGroup will hold an Install-Party on August, 23rd. People who like to help are welcome.
HelmutSiegert: September, 9th there will be held a Free-Software-Day at Odysseum/Cologne. They ask for participation of pyCologne:
- General talks about Python topics.
- Help within a Linux Install Party
Django is a framework for creating web-applications which supports the following technologies/approaches:
- MVC - Model-View-Controller
- O/R-Mapper
- Auto-Admin Interface
- User-friendly URLs
- Templates
- User-/Session-Management
Firstly, Daniel gave a general introduction into creation of web-sites beginning with static HTML, over CGI-Scripts to modern web-frameworks .
Secondly, he introduced Django by creating a Django application to manage "Running-Events" like e.g. Marathons.
Django features the semi-automatic creation of applications using manage-scripts, which for example generate database-tables from models written down in Python-code. It is possible to generate Python-code from database-tables as well.
Report vom EuroPython 2009
This year's EuroPython took place in Birmingham (UK). Location was the Birmingham Conservatoire. There were about 450 participants.
From pyCologne AndreasSchreiber, JanUlrichHasecke, Henning und ReimarBauer met in Birmingham.
For EuroPython advance booking for the conference as well as for talks is necessary.
There were 6 tracks in parallel. Therefore, it was not possible to attend all talks of interest. However there are recordings.
Speakers have to apply to EuroPython in advance. New topics are favored over the repetition of older talks.
Furthermore, an Open-Space for free exchange of information is provided. Food, drink and coffee are provided as well.
The minutes of the meeting in German language can be found here.
The next meeting will be held on, Wednesday, August, 12th.
Some of the participants enjoyed the rest of the evening in our usual italian restaurant having food, drinks and friendly conversation.
Tuesday, July 14, 2009
4th Singapore Python User Group Meeting
Where : SMU School of Information Systems NSR 2.1
We've got exciting topics lined up for our coming meeting. Mark out your diary guys!
Planned Program
Topic : DigiBanner : An Interactive Multi-Screen Network Application
Speaker : Morgan Heijdemann
Synopsis :
In this talk, Morgan will demonstrate the capabilities of Python in delivering a desktop realtime application. It shows the use of sockets (client/server), (queued) threading, the power of pickle, pyglet and the integration of wiiMotes. The application was developed with help of students in less than a month.
Topic : Using Google Application Engine and Amazon Web Services Together
Speaker : Dr. Chris Boesch
Synopsis :
In this talk, Chris will discuss an application that he has developed using the Google Application Engine (GAE) and Amazon Web Services (AWS). The application is designed to leverage the identity, scalability, and availability provided by GAE to implement public interfaces and then utilize Amazon EC2 and S3 where the GAE restrictions are too limiting. Python is used to implement both the GAE application code and code running in Amazon EC2 instances.
Topic : PUG
Speaker : Dr. Liew Beng Keat
Synopsis :
Python User Group (Singapore) is now a registered society. Beng Keat will introduce the members of the Pro-Tem committee and share plans for the society moving forward and in view of PyCon 2010.
Topic : Lightning Talks
Speaker : Open Invitation. Come on guys!
Synopsis :
All (personal) projects that you have done using Python. If you've never given a talk before, Lightning Talks are a good place to start. You don't need to make slides, but if you do, you only need to make three.
Friday, July 10, 2009
PUB - Python Users Berlin, Germany, 16th of Juli, Announcement
Since it's summer, we'll have a BBQ at HU Berlin, Campus Nord, Phillipstraße 13, 10115 Berlin, Haus 18 (U6 Oranienburger Tor, S+U Friedrichstraße, Map)
There will be some beers and nonalcoholic drinks. There might be even some steaks, but to be on the safe side, bring in your own stuff for the grill.
Everybody with an interest in Python is invited to come.
See you next Thursday, Stephan
http://wiki.python.de/User Group Berlin
Tuesday, July 7, 2009
GruPy-SP - São Paulo Python User Group, Brazil - July Meeting Announcement
It will happen Saturday, July 25 starting around 2.00 pm at the Tau Hacklab.
Agenda: Python Conference Brazil 2010 (PythonBrasil 2010).
More information (directions, details) in Brazilian Portuguese:
http://www.python.org.br/wiki/GrupySP
Monday, July 6, 2009
pyCologne Python User Group, Cologne, Germany, July, 8th, Announcement
starting about 6.30 pm - 6.45 pm
at Room 0.14, Benutzerrechenzentrum (RRZK-B)
University of Cologne, Berrenrather Str. 136, 50937 Köln, Germany
Agenda:
Report from EuroPython 2009 (ReimarBauer, AndreasSchreiber)
Django (DanielHepper)
At about 8.30 pm we will as usual enjoy the rest of the evening in a nearby restaurant.
Further information including directions how to get to the location can be found at:
http://wiki.python.de/User_Group_Köln (Sorry, this page is in German only)
pyCologne Python User Group, Cologne, Germany, June 10th Notes
Announcements
EuroSciPy in Leipzig (Germany) see http://www.euroscipy.org/
NumPy Workshop (comercial) in DLR (Cologne, Germany), Everyone interested should contact AndreasSchreiber (see http://wiki.python.de/AndreasSchreiber)
In case pyCologne members would like to contribute project-presentations to FrOSCon, please decide quickly. Call for projects is (was) still open. (see http://www.froscon.de/)
pycologne.de appears to experience problems. Christopher Arndt and Fabian Schächter solved the problem. pyCologne's homepage is reachable at http://www.pycologne.de again.
Todays Talk: Mercurial (Reimar Bauer)
- Version-Control-Systems in General
- Distributed Version-Control-Systems
- Introduction into Mercurial (init, update, ...)
- Clones, pull and push operations
Books
Beginning Python Visualization: see http://www.amazon.com/exec/obidos/ISBN=1430218436
Dive into Python, available as well as free Online-Book http://www.diveintopython.org/
The next meeting will be held on, Wednesday, July, 8th.
We enjoyed the rest of the evening in our usual italian restaurant having food, drinks and friendly conversation.
Tuesday, June 9, 2009
pyCologne Python User Group, Cologne, Germany, June, 10th, Announcement
starting about 6.30 pm - 6.45 pm
at Room 0.14, Benutzerrechenzentrum (RRZK-B)
University of Cologne, Berrenrather Str. 136, 50937 Köln, Germany
Agenda:
Mercurial (ReimarBauer)
Further information including directions how to get to the location can be found at:
http://wiki.python.de/User_Group_Köln (Sorry, this page is in German only)
(Please note: Our usual web-address www.pycologne.de does not work at the moment for unknown reasons.)
Thursday, May 14, 2009
PyOhio CFP, May 15
PyOhio 2009, the second annual Python programming mini-conference for Ohio and surrounding areas, will take place Saturday-Sunday, July 25-26, 2009 at the Ohio State University in Columbus, Ohio. A variety of activities are planned, including tutorials, scheduled talks, Lightning Talks, and Open Spaces. PyOhio will be free of charge.
PyOhio invites all interested people to submit proposals for scheduled talks and tutorials. PyOhio will accept abstracts on any topics of interest to Python programmers.
Standard presentations are expected to last 40 minutes with a 10 minute question-and-answer period. Other talk formats will also be considered, however; please indicate your preferred format in your proposal. Hands-on tutorial sessions are also welcomed. Tutorial instructors should indicate the expected length
PyOhio is especially interested in hosting a Beginners' Track for those new to Python or new to programming in general. If your proposal would be suitable for inclusion in the Beginners' Track, please indicate so. Organizers will work with speakers and instructors in the Beginners' Track to help them coordinate their talks/tutorials into a smooth, coherent learning curve for new Python users.
All proposals should include abstracts no longer than 500 words in length. Abstracts must include the title, summary of the presentation, the expertise level targeted, and a brief description of the area of Python programming it relates to.
All proposals should be emailed to cfp@pyohio.org for review. Please submit proposals by May 15, 2009. Accepted speakers will be notified by June 1.
You can read more about the conference at http://pyohio.org
If you have questions about proposals, please email cfp@pyohio.org. You can also contact the PyOhio organizers at pyohio-organizers@python.org.
Sunday, May 10, 2009
pyCologne Python User Group, Cologne, Germany, May, 13th, Announcement
starting about 6.30 pm - 6.45 pm
at Room 0.14, Benutzerrechenzentrum (RRZK-B)
University of Cologne, Berrenrather Str. 136, 50937 Köln, Germany
Agenda:
Code-Testing-Workshop including short presentations und discussion (Rex
Turnbull, Ralf Schönian, Andi Albrecht et al.)
Further information including directions how to get to the location can be found at:
http://www.pycologne.de (Sorry, this page is in German only)
Friday, April 24, 2009
TuPLE (Tucson, AZ) - April recap
Rich Saunders gave a presentation on Pycon 09, touching on some issues relevant to his work at Rincon Research.
General discussion of Pycon structure (tutorials, general conference, sprints), Lightning Talks, and Open Spaces.
3 of our members attended Pycon. Generally agreed the lightning talks and open spaces were popular and enjoyable conference additions.
All pycon videos are available at http://pycon.blip.tv/
Pycon Tutorial sessions (http://us.pycon.org/2009/tutorials/schedule/) were filmed and are available
in addition to the talks and general conference videos. These look to
be a great resource for in-depth exploration of python topics, from
Python 101 to "A Curious Course on Coroutines and Concurrency"
----
O'Reilly User Group program
We are now part of the O'Reilly UG program, which offers benefits to
us as members (35% discount and free review copies)
Details and registration for other user groups available here: http://ug.oreilly.com/
----
We also briefly discussed setting up a website for the group using Google App Engine as an exercise/group project. There seems to be some interest in possible group projects or hack days, but there wasn't much in the way of commitment moving forward. We aren't using meetup.com so it would be nice to have an RSVP function and a more active web presence than the google group.
Encouraged members to bring in their projects/code samples for group review and discussion for the next meeting.
PyOhio: Call for Proposals
PyOhio invites all interested people to submit proposals for scheduled talks and tutorials. PyOhio will accept abstracts on any topics of interest to Python programmers.
Standard presentations are expected to last 40 minutes with a 10 minute question-and-answer period. Other talk formats will also be considered, however; please indicate your preferred format in your proposal. Hands-on tutorial sessions are also welcomed. Tutorial instructors should indicate the expected length
PyOhio is especially interested in hosting a Beginners' Track for those new to Python or new to programming in general. If your proposal would be suitable for inclusion in the Beginners' Track, please indicate so. Organizers will work with speakers and instructors in the Beginners' Track to help them coordinate their talks/tutorials into a smooth, coherent learning curve for new Python users.
All proposals should include abstracts no longer than 500 words in length. Abstracts must include the title, summary of the presentation, the expertise level targeted, and a brief description of the area of Python programming it relates to.
All proposals should be emailed to cfp@pyohio.org for review. Please submit proposals by May 15, 2009. Accepted speakers will be notified by June 1.
You can read more about the conference at http://pyohio.org
If you have questions about proposals, please email cfp@pyohio.org. You can also contact the PyOhio organizers at pyohio-organizers@python.org.
Monday, April 20, 2009
pyCologne Python User Group, Cologne, Germany, April 8th Notes
The Cologne Python User Group met on April, 8th at the computer centre of the University of Cologne. The meeting was attended by about 12 people. German speakers might want to refer to our wiki page http://www.pycologne.de.
Announcements
- Center For Free Software: pyCologne's member Thomas Richter tries to get support from official organizations to provide a home for developers, users and usergroups within the free-software-community. Recently he has got support from the Odysseum, the new science-exhibition-center and museum in Cologne, where the World Plone Day will be held on April 22th: see http://www.odysseum.de/ and http://rheinland.worldploneday.de/
- For Python core development Mercurial has been selected as the new version-control-system: http://www.selenic.com/mercurial/wiki/
- For 2009 Google's Summer of Code 28 projects have been selected http://code.google.com/soc/. Project list: http://delicious.com/gsoc2009/python?page=1. Reimar Bauer animates people to become a mentor.
- Automating PowerPoint using Python (Andreas Schreiber), for June or July 2009
Twitter with Python (Andreas Schreiber)
The Talk introduces the MicroBlogging Service Twitter and describes how to use the Python API and Library python-twitter, to write text-messages to a Twitter-Microblog.
You can find the talk (in German language) at http://wiki.python.de/User_Group_K%C3%B6ln/VortragTwitterMitPython
Google's App-Engine (Andi Albrecht)
Andi gave an overview about Google's App Engine and the APIs used. He covers development and deployment of web-applications on this platform and describes among other topics how to use the API Datastore and the SQL-like language GQL to fetch data.
You can find the full talk (in German language) at http://wiki.python.de/User_Group_K%C3%B6ln/VortragAppEngine
Announcements and Information on Twitter
Thanks to Andreas Schreiber you can find pyCologne now on Twitter: twitter.com/pycologne
The minutes of the meeting in German language can be found here.
The next meeting will be held on, Wednesday, May, 13th.
We enjoyed the rest of the evening in our usual italian restaurant having food, drinks and friendly conversation.
Monday, April 6, 2009
pyCologne Python User Group, Cologne, Germany, April, 8th, Announcement
starting about 6.30 pm - 6.45 pm
at Room 0.14, Benutzerrechenzentrum (RRZK-B)
University of Cologne, Berrenrather Str. 136, 50937 Köln, Germany
Agenda:
- Twitter with Python (Andreas Schreiber)
- Google's APP-Engine (Andi Albrecht)
Further information including directions how to get to the location can be found at:
http://www.pycologne.de (Sorry, this page is in German only)
Friday, April 3, 2009
April Pyowa Wrapup
Next time we plan to have am intro to sqlalchemy presentation and some kind of code review of a GIS model dump. We hope that one will be better attended. Until then.
Tuesday, March 31, 2009
TuPLE (Tucson, AZ) - March recap
Lucas Taylor introduced the Twisted framework and basic concepts including the Reactor, Deferreds, and Protocols. Demo code was shown to illustrate the basics of a simple server implementation.
Monday, March 30, 2009
Pyowa Meeting This Week
1) What PyCon attendees thought of PyCon (likes, dislikes, etc)
2) Code snippets that they'd like to show that they learned about or created at PyCon
3) I attended a meeting about Python user groups and will share ideas with how we might improve ours
4) The last 10-20 minutes will probably be devoted to figuring out who will do what next time.
If you're in the area, come on out! Bring your friends, even if they think Perl is the coolest thing since sliced bread. We'll set them straight!
Mike Driscoll
www.pyowa.org
Monday, March 9, 2009
pyCologne Python User Group, Cologne, Germany, March, 11th, Announcement
starting about 6.30 pm - 6.45 pm
at Room 0.14, Benutzerrechenzentrum (RRZK-B)
University of Cologne, Berrenrather Str. 136, 50937 Köln, Germany
Agenda:
- UDP-Broadcasts (Rebecca Breu)
- Twitter with Python (Andreas Schreiber)
Further information including directions how to get to the location can be found at:
http://www.pycologne.de (Sorry, this page is in German only)
Thursday, February 26, 2009
TuPLE (Tucson, AZ) - First official meeting recap
Chris Merle started us off with an overview of Plone and two products that help to
inspect and interrogate the python objects in use:
DocFinderTab
DocFinderTab adds a tab to the ZMI that parses the docstrings of the class of the object you are using and presents them to you in the tab.
Clouseau
Clouseau embeds a live ajax based python interpreter into your plone site for debugging purposes. It looks to have some nice autocompletion features and lets you poke around the internals of a live instance.
Chris then demoed his news portlet modification that shows an excerpted portion of the news items (vs just the title and link), and explained how DocFinderTab and Clouseau both helped him determine which object attributes were going to be useful for displaying the content.
We had some good conversation about general interests, IDEs, reference books, and what kinds of presentations everyone is interested in. Django, advanced python, and C extensions are heading up the list for the future.
Misc. Notes:
- Civilization 4 allows mod authors to use Python to modify aspects of
the game. Hopefully we'll hear more about it in the future. - PyScripter - Free Windows Editor/IDE
- Core Python (http://corepython.com/) was recommended as a good
reference, others thought the online docs were adequate. - A couple of members are repeat pycon attendees. This year we'll have 2
or 3 attending. April's meeting will be good for a pycon recap. - A python obfuscation tool was discussed
Friday, February 20, 2009
DFW Pythoneers, 2nd Sat: Topics We Covered
For the module in the standard library, we briefly covered the new print() function in Python 2.6:
from __future__ import print_function # Python 2.6and then the new .format() method on strings, as an alternative to the C style sprintf("%s %d", a, b) approach. The format() approach is more powerful than the % operator but takes some getting used to.
print(objects..., sep='', end='\n', file=sys.stdout)
Feedback from some attendees is that it is too complicated, so we also covered the much simpler but less powerful Template module in the standard library.
>>> from string import Template
>>> s = Template("$who likes $what")
>>> s.substitute(who='tim', what='cake')
tim likes cake
>>> s.substitute(who='tim') # error
...
>>> s.safe_substitute(who='tim')
tim likes $what
For the programming concept, we studied sequence slicing and subscripting.
While most of us have a good grasp on simple subscripting and from:to slicing, there are some deeper aspects here, a few of which can be seen in:
a[4:5:5] # extended slicing, with a strideWe also looked at the deceptively simple shallow copy operation:
a[3, 4, 5] # a slice list
a[2:4, 5:7] # list of slices
a['a':'c'] # applying slicing to non-integers and non-ordinal content
a[:]and how it differs between mutable (list) and immutable (tuple) types.
And then we looked at the little-known builtin type 'Ellipsis' and how it can be used in your own programs.
a[...]In order to experiment with the various subscript/slicing syntaxes, we defined our own __getitem__, __setitem__ and __delitem__ methods to print out what was received:
a[..., 0] -> mapobj[:,:,:,0] # PyNumeric interpretation
>>> class alpha:
... def __getitem__(self, key):
... print "Key is %s" % repr(key)
... return None
...
>>> a = alpha()
>>> a[3, 4. 5]
...
Next we took a little trip over to look at the issues and concerns involved in the simple idea of sorting items in a collection:
We studied the difference between the .sort() method and the sorted() builtin function, and the three arguments (cmpfn, key, reverse) you can pass to either one.
This also brought us into the operator module which has several useful functions for extracting values on which to sort from items, such as:
key=operator.itemgetter(1)and we talked about (but didn't dig into) the well-known design pattern of "decorate-sort-undecorate".
key=operator.attrgetter('eggs')
For the questions of "how would you do this?" we discussed:
- How can you test for whether a variable is defined?
- How do you tell if a method is bound or unbound?
- How do you 'unbind' a method?
- How do you set an attribute whose name is not a legal Python name?
- How can you conditionally define methods in a class?
- How do you change the data underneath a mutable sequence without breaking any existing bindings to the sequence itself? Hint: Look in site.py.
For the source code walkthrough we examined the implementation of the string Template class in lib/python/string.py. The interesting part was its use of a metaclass to post-process the extraction strings defined in the class into compiled regular expression objects.
And by special request by a member, we looked into how Python at startup arranges its module import path (sys.path) to find zip/eggs and parses 'path configuration files' (.pth) that alter that path. We also covered the privileged status of 'site' directories over other directories on the path and did a very quick walkthrough of the source in lib/python/site.py as well as the lib/python/site-packages/site.py installed by setuptools.
That filled our 3-hour session and we wrapped up with chatter about the rapidly approaching PyCon and the early registration deadline.
Sunday, February 8, 2009
pyCologne Python User Group, Cologne, Germany, February, 11th, Announcement
starting about 6.30 pm - 6.45 pm
at Room 0.14, Benutzerrechenzentrum (RRZK-B)
University of Cologne, Berrenrather Str. 136, 50937 Köln, Germany
Agenda:
- Programming mobile phones using Python (Andreas Schreiber)
- MoinMoin (Moin 1.8.x Wiki with stand-alone-server / plugins)
(Reimar Bauer)
Further information including directions how to get to the location can be found at:
http://www.pycologne.de (Sorry, this page is in German only)
Monday, January 19, 2009
pyCologne Python User Group, Cologne, Germany, January 14th Notes
Announcements
- EuroPython 2009 from June, 29th to July, 4th 2009 in Birmingham (UK)
- Python for Unix and Linux System Administration (J. Jones, N. Gift) O'Reilly
Python from the perspective of System-Administrators. How to create tools using python. - Exploring Python (Markus Nix (Hrsg.), Martin Grimme, Torsten Marek, Michael Weigend, Wolfgang Weitz) entwickler.press
Attention: The book cover carries an English title. However, the text is in German. The book contains four essays about special Python topics, which are covered thoroughly: Generators, Objectoriented-Programming, gDesklets and "Python and the Java world".
Introduction Doug Hellmanns Python Module of The Week (PyMOTW-) series (RalfSchönian)
- Doug Hellmann writes documentation for Python-Modules on a regular basis and organizes his articles by topics.
- Additionally, topics can be found using an alphabetic index
- PyMOTW is an ideal supplement to the Python standard library documentation because it covers certain topics in more detail.
- There are some translations into other languages like Chinese and Spanish
- Ralf has started a German translation which he puts on his own homepage for the moment. He invites people to take part and help out translating articles from PyMOTW.
- Klaus offered a broad introduction to network-programming with Python. He covered different types of communication with increasing complexity, presenting sample programs as well as specific benchmark results.
- Foundations of network-programming and the different layers: low-level, sockets, high-level (like: HTTP, FTP, etc.)
- Presentation of an "echo"-server and its corresponding client using a socket-connection.
- Introduction of the BaseHTTPServer, which is used as well by the Wiki-System MoinMoin.
- Several techniques to increase responsiveness of servers by holding and processing many connections at a time:
- ThreadingTCPServer: Using several threads for processing.
- ForkingTCPServer: Using several processes instead of threads.
- At this point, there developed a lively discussion among the participants about the implementation within the Standard-Libray. The Standard-Library delegates only the processing of received data to a thread or process. The reception even of large blocks of data still remains within the main thread/process.
- Introduction of select() and poll() as methods to process network data from many connections asynchronously without the need to use several threads and processes.
- As highlevel frameworks CherryPy and Twisted are named.
The minutes of the meeting in German language can be found here.
The next meeting will be held on, Wednesday, February, 11th.
We enjoyed the rest of the evening in our usual italian restaurant having food, drinks and friendly conversation.
Friday, January 9, 2009
pyCologne Python User Group, Cologne, Germany, January, 14th, Announcement
starting about 6.30 pm - 6.45 pm
at Room 0.14, Benutzerrechenzentrum (RRZK-B)
University of Cologne, Berrenrather Str. 136, 50937 Köln, Germany
Agenda:
- Network- and Server-Programming with Python (Klaus Bremer)
- Presentation of Doug Hellmanns Python Module of The Week (PyMOTW-) - series (Ralf Schönian)
Further information including directions how to get to the location can be found at:
http://www.pycologne.de (Sorry, this page is in German only)
Wednesday, January 7, 2009
Omaha Python Users Group, January 7, Notes
- CherryPy and Adobe Flex (Jeff Hinrichs) - Jeff showed a standard CherryPy + Cheetah application that he used as a base and then how he integrated Adobe Flex for a spiffed up interface. A code walk through was given featuring the MXML used and the Flex Builder for Linux alpha
- Wing IDE (Charles Kaminski) - Charles had a great presentation on the Wing IDE Charles ran a completely live presentation showing code intelligence, debugging and lots of other goodies that Wing has to offer Python programmers. It was such a good presentation that I am seriously considering buying it.
- A number of people attending retold their stories of their first exposure to Python and how they get to use Python at work.
It was a great meeting. Charles brought up the idea of possibly finding a mid-town watering hole and having the meetings in a back room. So if anyone knows of a place that supports both libations and presentations in the mid-town area please let us know.
A partial list of other topics discussed include:
- Shed Skin - An Optimizing Python-to-C++ Compiler
- Android
- GvR and BDFL
- Nearest Neighbor Searches
- Cover Trees
- R-trees
- Linux vs. Windows as a development platform
- Multi-platform capabilities of Python
- Silicon Prairie News
- Tech Omaha
Sunday, January 4, 2009
pyCologne Python User Group, Cologne, Germany, Notes, September to December
First of all I apologize for not having posted the notes for the meetings of pyCologne from September to December. I have been bound to other commitments and had too little time left.
Therefore, I decided to cover our latest meetings (September to December) in one post:
September, 10th.:
- Discussion of creating a pyCologne-Yearbook as a collection of all the talks held within the year. There has been a lively discussion about what to do and how: Creation of a leaflet with some of the most interesting talks, to give away at public events; creating a catalog of the talks using a standard template, creation of templates for slides (using REST S5). Since then, we have discussed and created a form within the German Python Wiki wich can be found at: http://wiki.python.de/User_Group_K%C3%B6ln/VorschlagVortragsTemplate
- Günter Jantzen held a talk about Python 3.0 (alias Python 3000). Among other topics he covered changes of string-handling within Python. Python 3.0 does use Unicode-Strings as a Standard. Instead of the %-operator for formatting tasks the new format string-method is used. As marker for substitutions the curly-brackets {} are used. Furthermore, list-comprehension-like syntax is introduced for sets and dicts.
- Some new Python-books were introduced:
- Expert Python Programming
- Agile Software Development with Python
- Das python Praxisbuch (Text in German)
- Todays talks by Rebecca Breu and Ralf Schönian were dedicated to wxPython a Python GUI-Toolkit.
- Rebecca gave a detailed overview of programming with wxPython introducing the concept of wx-Events and covering the main widgetes like static-text and entry field.
- She concluded with a demomstration of the grid-widgets which allows to plugin self-written renderers and editors into the grid.
- Ralf gave a presentation of his wxPython based vocabulary-trainer.
- The book "wxPython in Action" was introduced.
- Today we had another talk within our GUI-series: pyGTK by Andi Albrecht:
- Andi introduced the basics of pyGTK and the use of signals for the event-handling.
- He gave an overview of the available documentation and introduced some widgets and layout-facilities aka. boxes.
- Furthermore, he described the organisation of pyGTK in several modules and gave an overview about Glade the Interface-Designer for GTK.
- The talk and the examples (in German) can be found at: http://wiki.python.de/User_Group_K%C3%B6ln/VortragPyGTKEinfuehrung
- Today we celebrated pyColognes second anniversary and had our christmas party. Many thanks to Uwe Döbereiner for offering his own rooms for the party. We enjoyed nice conversation, with food and drink supplied by all the members.
- As a highlight of the evening Rebecca Breu gave a talk about the perfomance of Santa-Claus sleigh in comparison with the worlds best supercomputers and as well her own laptop :-).