[issue19534] normalize() in locale.py fails for sr_RS.UTF-8@latin
Mike FABIAN added the comment: I think the patch I attach here is a better fix than the patch in http://bugs.python.org/msg202469 because it makes the normalize() function behave more logical overall, with this patch, my test program prints: mfabian@ari:/local/mfabian/src/cpython (2.7-mike %) $ ./python ~/tmp/mike-test.py ja_JP.UTF-8 - ja_JP.UTF-8 de_DE.SJIS - de_DE.SJIS de_DE.foobar - de_DE.foobar sr_RS.UTF-8@latin - sr_RS.UTF-8@latin sr_rs@latin - sr_RS.UTF-8@latin sr@latin - sr_RS.UTF-8@latin sr_yu - sr_RS.UTF-8@latin sr_yu.SJIS@devanagari - sr_RS.SJIS@devanagari sr@foobar - sr_RS.UTF-8@foobar sR@foObar - sr_RS.UTF-8@foobar sR - sr_RS.UTF-8 [18995 refs] mfabian@ari:/local/mfabian/src/cpython (2.7-mike %) $ The patch also contains a small fix for the “ks” and “sd” locales in the locale_alias dictionary, they had the “.UTF-8” in the wrong place: -'ks_in@devanagari': 'ks...@devanagari.utf-8', +'ks_in@devanagari': 'ks_IN.UTF-8@devanagari', -'sd': 'sd...@devanagari.utf-8', +'sd': 'sd_IN.UTF-8@devanagari', (This error is inherited from the locale.alias file from X.org where the locale_alias dictionary is generated from) -- keywords: +patch Added file: http://bugs.python.org/file32552/0001-Issue-19534-fix-normalize-in-locale.py-to-make-it-wo.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19534 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19534] normalize() in locale.py fails for sr_RS.UTF-8@latin
Mike FABIAN added the comment: The patch http://bugs.python.org/file32552/0001-Issue-19534-fix-normalize-in-locale.py-to-make-it-wo.patch is against the current HEAD of the 2.7 branch, but Python 3.3 has exactly the same problem, the same patch fixes it for python 3.3 as well. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19534 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
Re: how to load test a web app?
On Fri, Nov 1, 2013 at 11:03 AM, Albert-Jan Roskam fo...@yahoo.com wrote: I would like to test the reliability and stability of at least one of them I am curious whether the program will crash under certain circumstances (e.g. multiple users checking code at *exactly* the same moment). What approach could I follow here? Though this does not *necessarily* have to involve Python, I would prefer this. The way I see it, it would carry out certain common usage patterns many times to simulate many users. I thought about using mechanize/subprocess, the multimechanize package, or the twill package. Have a look at selenium and sauce labs: http://www.seleniumhq.org/ https://saucelabs.com/ Mike -- https://mail.python.org/mailman/listinfo/python-list
Advanced Python Workshop at PyCon Ireland 2013, October 11, 2013
Advanced Python Workshop at PyCon Ireland 2013, Dublin, Ireland === Date: October 11, 2013 Location: The Camden Court Hotel, Dublin, Ireland Language: English Links: http://www.python-academy.com/courses/python_advanced_pyconie.html http://www.meetup.com/pythonireland/events/135877222/ Instructor: Mike Müller This workshop is for intermediate Python programmers who would like to make it onto the advanced level. Learn how to take full advantage of this powerful language. Python offers several advanced concepts. It is possible to write useful Python programs without them. But if you want to really understand how Python works and how to write really pythonic programs, you should know about these topics: * Iterators and generators * Decorators * Descriptors * Metaclasses The workshop covers them in detail using code examples that will be immediately useful for your daily work. Carefully crafted exercises help you to experience the learnt material. You will get detailed solutions for all exercises after the training. Bring your laptop with Python 2.7 or 3.3 installed for an intensive, hands-on workshop with real-life examples. --- Our next courses: 30.09.-02.10.2013 (Katowice) Python for Programmers (English) 03.10.-05.10.2013 (Katowice) Advanced Python (English) 11.10.2013(Dublin) Advanced Python Workshop at PyCon Ireland 2013 (English) 04.11.-06.11.2013 (Leipzig) Python for Scientists and Engineers (English) 07.11.-09.11.2013 (Leipzig) Fast Code with the Cython Compiler and Fast NumPy Processing with Cython (English) 07.11.-08.11.2013 (Leipzig) Fast Code with the Cython Compiler (English) 08.11.-09.11.2013 (Leipzig) Fast NumPy Processing with Cython (English) 11.11.-14.11.2013 (Leipzig) Introduction to Django (English) 25.11.-27.11.2013 (Leipzig) Professional Testing with Python (English) 25.11.-27.11.2013 (Bologna) Python per programmatori (Italian) 05.01.-08.01.2014 (Leipzig) Python für Nichtprogrammierer (German) 06.01.-08.01.2014 (Leipzig) Python für Programmierer (German) 09.01.-11.01.2014 (Leipzig) Python für Wissenschaftler und Ingenieure (German) 13.01.-15.01.2014 (Leipzig) Advanced Django (English) 02.02.-05.02.2014 (Leipzig) Python for Non-Programmers (English) 03.02.-05.02.2014 (Leipzig) Python for Programmers (English) 06.02.-08.02.2014 (Leipzig) Python for Scientists and Engineers (English) Bologna - Italy Dublin - Ireland Katowice - Poland Leipzig - Germany More information at http://www.python-academy.com -- Dr.-Ing. Mike Müller, M.Sc. - Geschäftsführer (CEO) - Python Academy GmbH Co. KG Zur Schule 20 04158 Leipzig Germany Sitz (Registered Office): Leipzig Amtsgericht (Registration Court): Leipzig HRA (Commercial Register No.): 16004 Persönlich haftende Gesellschafterin (Personally Liable Partner): py solutions GmbH Sitz (Registered Office): Leipzig Amtsgericht (Registration Court): Leipzig HRB (Commercial Register No.): 25781 Geschäftsführer (Managing Director): Dr. Mike Müller Tel: +49 341 260 3370 Fax: +49 341 520 4495 E-Mail: mmuel...@python-academy.de WWW: http://www.python-academy.com -- https://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
Course: Python per programmatori (Italian) in Bologna, November 25 - 27, 2013
Python per programmatori in Bologna, Italy == Date: November 25 - 27, 2013 Location: Bologna, Italy Language: Italian Link: http://www.python-academy.com/courses/python_course_programmers_ita.html Instructor: Federico Caboni This course is for people who would like to learn Python but prefer Italian over English as teaching language. Three days of Python training for participants with programming experience in other languages. Learn all you need to know about Python to write pythonic programs that take advantage of Python's best features. --- Our next courses: 30.09.-02.10.2013 (Katowice) Python for Programmers (English) 03.10.-05.10.2013 (Katowice) Advanced Python (English) 11.10.2013(Dublin) Advanced Python Workshop at PyCon Ireland 2013 (English) 04.11.-06.11.2013 (Leipzig) Python for Scientists and Engineers (English) 07.11.-09.11.2013 (Leipzig) Fast Code with the Cython Compiler and Fast NumPy Processing with Cython (English) 07.11.-08.11.2013 (Leipzig) Fast Code with the Cython Compiler (English) 08.11.-09.11.2013 (Leipzig) Fast NumPy Processing with Cython (English) 11.11.-14.11.2013 (Leipzig) Introduction to Django (English) 25.11.-27.11.2013 (Leipzig) Professional Testing with Python (English) 25.11.-27.11.2013 (Bologna) Python per programmatori (Italian) 05.01.-08.01.2014 (Leipzig) Python für Nichtprogrammierer (German) 06.01.-08.01.2014 (Leipzig) Python für Programmierer (German) 09.01.-11.01.2014 (Leipzig) Python für Wissenschaftler und Ingenieure (German) 13.01.-15.01.2014 (Leipzig) Advanced Django (English) 02.02.-05.02.2014 (Leipzig) Python for Non-Programmers (English) 03.02.-05.02.2014 (Leipzig) Python for Programmers (English) 06.02.-08.02.2014 (Leipzig) Python for Scientists and Engineers (English) Bologna - Italy Dublin - Ireland Katowice - Poland Leipzig - Germany More information at http://www.python-academy.com -- Dr.-Ing. Mike Müller, M.Sc. - Geschäftsführer (CEO) - Python Academy GmbH Co. KG Zur Schule 20 04158 Leipzig Germany Sitz (Registered Office): Leipzig Amtsgericht (Registration Court): Leipzig HRA (Commercial Register No.): 16004 Persönlich haftende Gesellschafterin (Personally Liable Partner): py solutions GmbH Sitz (Registered Office): Leipzig Amtsgericht (Registration Court): Leipzig HRB (Commercial Register No.): 25781 Geschäftsführer (Managing Director): Dr. Mike Müller Tel: +49 341 260 3370 Fax: +49 341 520 4495 E-Mail: mmuel...@python-academy.de WWW: http://www.python-academy.com -- https://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
[issue19024] Document asterisk (*), splat or star operator
Changes by Mike Hoy mho...@gmail.com: -- nosy: +mikehoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19024 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18918] help('FILES') finds no documentation
Changes by Mike Hoy mho...@gmail.com: -- nosy: +mikehoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18918 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18855] Inconsistent README filenames
Changes by Mike Hoy mho...@gmail.com: -- nosy: +mikehoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18855 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18428] IDLE startup error
Mike added the comment: Thanks Ned, I have solved the issue by deleting all my previous py files on my computer. But I couldn't figure out what really triggered this error, as those files did not create any problems before. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18428 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18428] IDLE startup error
New submission from Mike: Python used to run smoothly on my macbook, but since I opened the debugger yesterday, the IDLE window cannot be opened anymore. It shows an error message IDLE's subprocess didn't make connection. I tried to uninstall everything and download it again from the website, but the problem is unsolved. I am using the latest OS X Mountain Lion, and installed Python 3.3.2 and the latest Tcl/Tk. Please advice me how to fix the problem. -- components: IDLE messages: 192868 nosy: mwei11 priority: normal severity: normal status: open title: IDLE startup error type: crash versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18428 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16809] Tk 8.6.0 introduces TypeError. (Tk 8.5.13 works)
Changes by Mike Gilbert floppymas...@gmail.com: -- nosy: +floppymaster ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16809 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[ANN] Training: Python for Non-Programmers, Leipzig, Germany July 9 - 12, 2013
Python for Non-Programmers == What: Python for Non-Programmers - Learn programming from scratch When: July 9 - 12, 2013 Where: Python Academy, Leipzig, Germany Instructor: Mike Müller (eight years of Python training experience) Details: http://www.python-academy.com/courses/python_course_nonprogrammers.html Learn programming with Python. Python is a good first programming language. At the same time is offers many useful features for professional software development. This makes it an ideal choice to start your journey into the world of programming with an optional long-term travel plan. This course is a gentle introduction that does not assume any prior programming knowledge. You only need basic computer skills like working with files and directories. Some experience with the command line is useful but not required. After four days of intensive hands-on training you will be able to write your own Python programs and read more sophisticated source code from others. --- Our next courses: 24.06.-26.06.2013 (Leipzig) Professional Testing with pytest and tox (English) 02.07.2013 (Florence, Italy) Optimization at EuroPython (English) 06.07.-07.07.2013 (Florence, Italy) Advanced Python at EuroPython (English) 09.07.-12.07.2013 (Leipzig) Python for Non-Programmers (English) 15.07.-17.07.2013 (Leipzig) Einstieg in Django (German) 18.06.-20.07.2013 (Leipzig) Django für Fortgeschrittene (German) 09.09.-11.09.2013 (Leipzig) Twisted Training (English) 11.09.-13.09.2013 (Bologna, Italy) Python per programmatori (Italian) 12.09.-13.09.2013 (Leipzig) Content-Management mit Plone (German) 11.11.-13.11.2013 (Leipzig) Introduction to Django (English) 14.11.-16.11.2013 (Leipzig) Advanced Django (English) 30.09.-02.10.2013 (Katowice, Poland) Python for Programmers (English) 03.10.-03.10.2013 (Katowice, Poland) Advanced Python Course (English) -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
ANN: Training - Einstieg in Django (German), 15. - 17. Juli 2013
This announcement is in German because the training is offered in German. We do offer an English version [1]. Einstieg in Django == Was: Praktischer Einstieg in die Entwicklung von Web-Anwendungen mit Django Wann: 15. - 17. Juli 2013 Wo: Python Academy, Leipzig Wer: Markus Zapke-Gründemann Details: http://www.python-academy.de/Kurse/django_kurs_einstieg.html Django ist ein sehr beliebtes Framework für die Entwicklung von Webanwendungen mit Python. In diesem Kurs lernen die Teilnehmer alle Grundlagen von Django von unserem erfahrenen Django-Trainer. Möchten Sie schnell gute Django-Anwendungen schreiben? Dann ist das der richtige Kurs für Sie. Erlernen Sie Best Practices und wie Sie die vielen Werkzeuge rund um Python und Django effektiv für die Entwicklung professioneller, performanter und wartbarer Web-Anwendungen nutzen. Wenn Sie Django schon nutzen und mit den Grundlagen vertraut sind, empfehlen wir unseren Kurs Django für Fortgeschrittene [2]. Dieser schließt sich direkt vom 18. bis 20 Juli an, so dass Sie die Möglichkeit haben sechs Tage Django-Total zu genießen. Der Kurs findet in Leipzig statt, das ein sehr reiches kulturelles Leben bietet. Leipzig war Gastgeber der ersten beiden PyCon DE Konferenzen 2011 und 2012. Leipzig ist sehr gut mit dem Auto und mit öffentlichen Verkehrsmitteln zu erreichen. Das Schulungszentrum ist jeweils eine nur Viertelstunde vom Hauptbahnhof oder Flughafen entfernt und von der Autobahnabfahrt sind es nur wenige Minuten bis zu uns. Leipzig bietet reichlich gute Hotels zu sehr moderaten Preisen. Der gleiche Kurs ist auch in englischer Sprache verfügbar [1]. [1] http://www.python-academy.com/courses/django_course_introduction.html [2] http://www.python-academy.de/Kurse/django_kurs_fortgeschrittene.html -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
ANN: Training - Django für Fortgeschrittene (German), 18. - 20. Juli 2013
This announcement is in German because the training is offered in German. We do offer an English version [1]. Django für Fortgeschrittene === Was: Tiefes Eintauschen in Django Wann: 18. - 20. Juli 2013 Wo: Python Academy, Leipzig Wer: Markus Zapke-Gründemann Details: http://www.python-academy.de/Kurse/django_kurs_fortgeschrittene.html Sie nutzen Django und wollen mehr darüber wissen? Dann können Sie in diesem Kurs tief in fortgeschrittene Konzepte einsteigen. Der Kurs wird Ihnen helfen bessere Anwendungen schneller zu entwickeln. Wenn Sie Django noch nicht nutzen und mit den Grundlagen nicht vertraut sind, empfehlen wir unseren Kurs Einstieg in Django [2]. Dieser Kurs vom 15. bis 17. Juli liegt direkt vor dem Kurs für Fortgeschrittene, so dass Sie die Möglichkeit haben sechs Tage Django-Total zu genießen. Der Kurs findet in Leipzig statt, das ein sehr reiches kulturelles Leben bietet. Leipzig war Gastgeber der ersten beiden PyCon DE Konferenzen 2011 und 2012. Leipzig ist sehr gut mit dem Auto und mit öffentlichen Verkehrsmitteln zu erreichen. Das Schulungszentrum ist jeweils eine nur Viertelstunde vom Hauptbahnhof oder Flughafen entfernt und von der Autobahnabfahrt sind es nur wenige Minuten bis zu uns. Leipzig bietet reichlich gute Hotels zu sehr moderaten Preisen. Der gleiche Kurs ist auch in englischer Sprache verfügbar [1]. [1] http://www.python-academy.com/courses/django_course_advanced.html [2] http://www.python-academy.de/Kurse/django_kurs_einstieg.html -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
Pywart: The problem with Rick Johnson
Is Rick Johnson the alter ego of Xah Lee, or is he the result of a cross breeding experiement with a troll by Saruman at Isengard?-- http://mail.python.org/mailman/listinfo/python-list
[ANN] Training: Advanced Python at EuroPython, Florence, July 6 - 7, 2013
Advanced Python === What: Advanced Python - Who is afraid of metaclasses? When: July 6 - 7, 2013 Where: at EuroPython 2013, Florence, Italy Instructor: Mike Müller (eight years of Python training experience) Details: https://ep2013.europython.eu/conference/talks/advanced-python-2 You have intermediate Python skills and would like learn more about: * Comprehensions * Decorators * Context managers * Descriptors * Metaclasses and * Patterns? Than you should attend this two-day training that provides a systematic coverage of these topics. Useful code samples and exercises provide hands-on learning. We offered this training at EuroPython 2012 and PyConPL 2012 and got very good feedback. Many of the participants understood much more of the complex topics than they anticipated. Our next courses: 30.05.-01.06.2013 (Katowice, Poland) Advanced Python Course (English) 03.06.-05.06.2013 (Leipzig) Einstieg in Django (German) 06.06.-08.06.2013 (Leipzig) Django für Fortgeschrittene (German) 10.06.-12.06.2013 (Leipzig) Python for Scientists and Engineers (English) 13.06.2013 (Leipzig) Fast Code with the Cython Compiler (English) 14.06.2013 (Leipzig) Fast NumPy Processing with Cython (English) 24.06.-26.06.2013 (Leipzig) Professional Testing with pytest and tox (English) 02.07.2013 (Florence, Italy) Optimization at EuroPython (English) 06.07.-07.07.2013 (Florence, Italy) Advanced Python at EuroPython (English) 09.09.-11.09.2013 (Leipzig) Twisted Training (English) 11.09.-13.09.2013 (Bologna, Italy) Python per programmatori (Italian) 12.09.-13.09.2013 (Leipzig) Content-Management mit Plone (German) 11.11.-13.11.2013 (Leipzig) Introduction to Django (English) 14.11.-16.11.2013 (Leipzig) Advanced Django (English) 30.09.-02.10.2013 (Katowice, Poland) Python for Programmers (English) 03.10.-03.10.2013 (Katowice, Poland) Advanced Python Course (English) -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
Course: Python for Programmers in Katowice, Poland, May 27 - 29, 2013
Python for Programmers in Katowice == Date: May 27 - 29, 2013 Location: Katowice, Poland Language: English Link: http://www.python-academy.com/courses/python_course_programmers.html Instructor: Mike Müller (eight years of Python training experience) Three days of Python training for participants with programming experience in other languages. Learn all you need to know about Python to write pythonic programs that take advantage of Python's best features. Want to learn more? Just add another three days of our Advanced Python class at the same location (May 30 - June 1, 2013). http://www.python-academy.com/courses/specialtopics/python_course_advanced.html --- Our next courses: 14.04.-17.04.2013 (Leipzig) Python für Nicht-Programmierer (German) 15.04.-17.04.2013 (Leipzig) Python für Programmierer (German) 18.04.-20.04.2013 (Leipzig) Python für Wissenschaftler und Ingenieure (German) 27.05.-29.05.2013 (Katowice, Poland) Python for Programmers (English) 30.05.-01.06.2013 (Katowice, Poland) Advanced Python Course (English) 03.06.-05.06.2013 (Leipzig) Einstieg in Django (German) 06.06.-08.06.2013 (Leipzig) Django für Fortgeschrittene (German) 10.06.-12.06.2013 (Leipzig) Python for Scientists and Engineers (English) 13.06.2013 (Leipzig) Fast Code with the Cython Compiler (English) 14.06.2013 (Leipzig) Fast NumPy Processing with Cython (English) 24.06.-26.06.2013 (Leipzig) Professional Testing with pytest and tox (English) 02.07.2013 (Florence, Italy) Optimization at EuroPython (English) 06.07.-07.07.2013 (Florence, Italy) Advanced Python at EuroPython (English) 09.09.-11.09.2013 (Leipzig) Twisted Training (English) 11.09.-13.09.2013 (Bologna, Italy) Python per programmatori (Italian) 12.09.-13.09.2013 (Leipzig) Content-Management mit Plone (German) 04.11.-06.11.2013 (Leipzig) Introduction to Django (English) 07.11.-09.11.2013 (Leipzig) Advanced Django (English) More information at http://www.python-academy.com -- Dr.-Ing. Mike Müller, M.Sc. - Geschäftsführer (CEO) - Python Academy GmbH Co. KG Zur Schule 20 04158 Leipzig Germany Sitz (Registered Office): Leipzig Amtsgericht (Registration Court): Leipzig HRA (Commercial Register No.): 16004 Persönlich haftende Gesellschafterin (Personally Liable Partner): py solutions GmbH Sitz (Registered Office): Leipzig Amtsgericht (Registration Court): Leipzig HRB (Commercial Register No.): 25781 Geschäftsführer (Managing Director): Dr. Mike Müller Tel: +49 341 260 3370 Fax: +49 341 520 4495 E-Mail: mmuel...@python-academy.de WWW: http://www.python-academy.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
Course: Advanced Python in Katowice, Poland, May 30 - June 1, 2013
Advanced Python in Katowice === Date: May 30 - June 1, 2013 Location: Katowice, Poland Language: English Link: http://www.python-academy.com/courses/specialtopics/python_course_advanced.html Instructor: Mike Müller (eight years of Python training experience) Dive deep into Python. Would you like to learn how decorators work and what descriptors do? Metaclasses don't have to be scary and generators and coroutines can be fun to work with. Context managers can help to improve your code as well as pythonic patterns and best practices. Python has many things to offer that might need a bit more of explanation. Join us for three days of total immersion into a great programming language. Be sure to bring your questions along. Not enough Python experience for an advanced course? Just attend our training Python for Programmers at the same location right before (May 27 - 29, 2013) to learn the basics too. http://www.python-academy.com/courses/python_course_programmers.html --- Our next courses: 14.04.-17.04.2013 (Leipzig) Python für Nicht-Programmierer (German) 15.04.-17.04.2013 (Leipzig) Python für Programmierer (German) 18.04.-20.04.2013 (Leipzig) Python für Wissenschaftler und Ingenieure (German) 27.05.-29.05.2013 (Katowice, Poland) Python for Programmers (English) 30.05.-01.06.2013 (Katowice, Poland) Advanced Python Course (English) 03.06.-05.06.2013 (Leipzig) Einstieg in Django (German) 06.06.-08.06.2013 (Leipzig) Django für Fortgeschrittene (German) 10.06.-12.06.2013 (Leipzig) Python for Scientists and Engineers (English) 13.06.2013 (Leipzig) Fast Code with the Cython Compiler (English) 14.06.2013 (Leipzig) Fast NumPy Processing with Cython (English) 24.06.-26.06.2013 (Leipzig) Professional Testing with pytest and tox (English) 02.07.2013 (Florence, Italy) Optimization at EuroPython (English) 06.07.-07.07.2013 (Florence, Italy) Advanced Python at EuroPython (English) 09.09.-11.09.2013 (Leipzig) Twisted Training (English) 11.09.-13.09.2013 (Bologna, Italy) Python per programmatori (Italian) 12.09.-13.09.2013 (Leipzig) Content-Management mit Plone (German) 04.11.-06.11.2013 (Leipzig) Introduction to Django (English) 07.11.-09.11.2013 (Leipzig) Advanced Django (English) More information at http://www.python-academy.com -- Dr.-Ing. Mike Müller, M.Sc. - Geschäftsführer (CEO) - Python Academy GmbH Co. KG Zur Schule 20 04158 Leipzig Germany Sitz (Registered Office): Leipzig Amtsgericht (Registration Court): Leipzig HRA (Commercial Register No.): 16004 Persönlich haftende Gesellschafterin (Personally Liable Partner): py solutions GmbH Sitz (Registered Office): Leipzig Amtsgericht (Registration Court): Leipzig HRB (Commercial Register No.): 25781 Geschäftsführer (Managing Director): Dr. Mike Müller Tel: +49 341 260 3370 Fax: +49 341 520 4495 E-Mail: mmuel...@python-academy.de WWW: http://www.python-academy.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
Course: Python per programmatori (Italian) in Bologna, September 11 - 13, 2013
Python per programmatori in Bologna, Italy == Date: September 11 - 13, 2013 Location: Bologna, Italy Language: Italian Link: http://www.python-academy.com/courses/python_course_programmers_ita.html Instructor: Federico Caboni We are proud to announce our first course in Italian. This course is for people who would like to learn Python but prefer Italian over English as teaching language. Three days of Python training for participants with programming experience in other languages. Learn all you need to know about Python to write pythonic programs that take advantage of Python's best features. --- Our next courses: 27.05.-29.05.2013 (Katowice, Poland) Python for Programmers (English) 30.05.-01.06.2013 (Katowice, Poland) Advanced Python Course (English) 03.06.-05.06.2013 (Leipzig) Einstieg in Django (German) 06.06.-08.06.2013 (Leipzig) Django für Fortgeschrittene (German) 10.06.-12.06.2013 (Leipzig) Python for Scientists and Engineers (English) 13.06.2013 (Leipzig) Fast Code with the Cython Compiler (English) 14.06.2013 (Leipzig) Fast NumPy Processing with Cython (English) 24.06.-26.06.2013 (Leipzig) Professional Testing with pytest and tox (English) 02.07.2013 (Florence, Italy) Optimization at EuroPython (English) 06.07.-07.07.2013 (Florence, Italy) Advanced Python at EuroPython (English) 09.09.-11.09.2013 (Leipzig) Twisted Training (English) 11.09.-13.09.2013 (Bologna, Italy) Python per programmatori (Italian) 12.09.-13.09.2013 (Leipzig) Content-Management mit Plone (German) 04.11.-06.11.2013 (Leipzig) Introduction to Django (English) 07.11.-09.11.2013 (Leipzig) Advanced Django (English) More information at http://www.python-academy.com -- Dr.-Ing. Mike Müller, M.Sc. - Geschäftsführer (CEO) - Python Academy GmbH Co. KG Zur Schule 20 04158 Leipzig Germany Sitz (Registered Office): Leipzig Amtsgericht (Registration Court): Leipzig HRA (Commercial Register No.): 16004 Persönlich haftende Gesellschafterin (Personally Liable Partner): py solutions GmbH Sitz (Registered Office): Leipzig Amtsgericht (Registration Court): Leipzig HRB (Commercial Register No.): 25781 Geschäftsführer (Managing Director): Dr. Mike Müller Tel: +49 341 260 3370 Fax: +49 341 520 4495 E-Mail: mmuel...@python-academy.de WWW: http://www.python-academy.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
[issue9682] socket.create_connection error message for domain subpart with invalid length is very confusing
Mike Milkin added the comment: Moved the conditional logic out of the method. There are no tests for ToASCII function and I was not comfortable making changes to it without adding tests. -- Added file: http://bugs.python.org/file30139/Issue9682-5513.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9682 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9682] socket.create_connection error message for domain subpart with invalid length is very confusing
Mike Milkin added the comment: Dave, let me know what you think of the tests, ill fix the rest of your comments. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9682 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9682] socket.create_connection error message for domain subpart with invalid length is very confusing
Mike Milkin added the comment: There are a few of interesting parts. 1.) I noticed that the ToASCII class is not tested. 2.) I had some unreachable branches due to concatenation of constant variable ace_prefix. 3) I also found it weird that we only check the max of labels[-1], but decided to perserve the original functionality. -- Added file: http://bugs.python.org/file29984/Issue9682.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9682 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9682] socket.create_connection error message for domain subpart with invalid length is very confusing
Changes by Mike Milkin mmil...@gmail.com: Removed file: http://bugs.python.org/file29850/Issue9682-full.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9682 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9682] socket.create_connection error message for domain subpart with invalid length is very confusing
Changes by Mike Milkin mmil...@gmail.com: Removed file: http://bugs.python.org/file29984/Issue9682.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9682 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9682] socket.create_connection error message for domain subpart with invalid length is very confusing
Changes by Mike Milkin mmil...@gmail.com: Added file: http://bugs.python.org/file29985/Issue9682-42213.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9682 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9682] socket.create_connection error message for domain subpart with invalid length is very confusing
Mike Milkin added the comment: Sure ill modify the patch, thanks for the feedback. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9682 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17795] backwards-incompatible change in SysLogHandler with unix domain sockets
Mike Lundy added the comment: I've tested in our full dev setup, and it seems to work fine; I've also tested on my laptop, no problems there either. Unfortunately, that's python 2.7.4 in both cases. I don't really have a python3 setup I can bump up to test. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17795 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17795] backwards-incompatible change in SysLogHandler with unix domain sockets
Mike Lundy added the comment: It doesn't fix it unless I change the configuration (and in some cases the code) for every SyslogHandler across all of our projects, plus every single library we use. Google around For SysLogHandler /dev/log socktype and then compare with SysLogHandler /dev/log. You won't find many hits where people set socktype, because people knew that SyslogHandler just Did The Right Thing when presented with an AF_UNIX. That has been the behavior since the logging module was introduced in 2.3. I'm just asking that you preserve the default behavior that has existed since python 2.3- that was the purpose of my patch. I'm not tied to how I implemented it (I mean, it is kind of ugly) but I believe preserving the behavior is important, and I also believe that it will break less code than what is currently there (because, after all, socktype was only introduced in 2.7, the SysLogHandler doesn't care if it's None, and subclasses couldn't have relied on it in the AF_UNIX case because the original fallback didn't update it) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17795 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17795] backwards-incompatible change in SysLogHandler with unix domain sockets
Mike Lundy added the comment: On top of your patch? Yeah, I think so. (I wrote it the way I did so it could handle syslog configuration changes, but that's kind of an uncommon case). Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17795 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17795] backwards-incompatible change in SysLogHandler with unix domain sockets
New submission from Mike Lundy: The changed merged from http://bugs.python.org/issue16168 causes a regression in SysLogHandler behavior. The socktype of /dev/log is dependent on syslog configuration, and the fallback behavior (trying SOCK_DGRAM and then SOCK_STREAM if the former failed) was very useful. A better fix for this would preserve the fallback behavior in cases where the caller has not specifically requested a socktype. I've attached a patch with one such approach. -- components: Library (Lib) files: 0001-Restore-SysLogHandler-fallback-for-AF_UNIX-sockets.patch keywords: patch messages: 187347 nosy: Mike.Lundy priority: normal severity: normal status: open title: backwards-incompatible change in SysLogHandler with unix domain sockets type: behavior versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4 Added file: http://bugs.python.org/file29937/0001-Restore-SysLogHandler-fallback-for-AF_UNIX-sockets.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17795 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17353] Plistlib outputs empty data tags when deeply nested
Mike Milkin added the comment: Adding tests. -- Added file: http://bugs.python.org/file29894/issue-17357-tests.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17353 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17668] re.split loses characters matching ungrouped parts of a pattern
Changes by Mike Hoy mho...@gmail.com: -- nosy: +mikehoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17668 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9682] socket.create_connection error message for domain subpart with invalid length is very confusing
Mike Milkin added the comment: I did not mean to take the decode out of the previos patch. Sorry for the spam. -- Added file: http://bugs.python.org/file29850/Issue9682-full.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9682 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9682] socket.create_connection error message for domain subpart with invalid length is very confusing
Changes by Mike Milkin mmil...@gmail.com: Removed file: http://bugs.python.org/file29834/Issue9682-full.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9682 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17353] Plistlib outputs empty data tags when deeply nested
Mike Milkin added the comment: Looks like plistlib.writePlistToString is no loger in the plistlib. -- nosy: +mmilkin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17353 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17353] Plistlib outputs empty data tags when deeply nested
Mike Milkin added the comment: Yep you are correct. plistlib.readPlistFromBytes(plistlib.writePlistToBytes({'test': plistlib.Data(b'aa')})) {'test': Data(b'aa')} plistlib.readPlistFromBytes(plistlib.writePlistToBytes([{'test': plistlib.Data(b'aa')}])) [{'test': Data(b'')}] I presume we want to raise a ValueError if the indentation is more than the maximal line length. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17353 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9682] socket.create_connection error message for domain subpart with invalid length is very confusing
Mike Milkin added the comment: This patch adds better exception messages. If any label other then the last is empty or is too long the request is added to the exception message. If the last label is over 64, the label is added to the exception message -- keywords: +patch nosy: +mmilkin Added file: http://bugs.python.org/file29809/Issue9682.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9682 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11957] re.sub confusion between count and flags args
Mike Milkin added the comment: I like option #2, and I was thinking of working on it today, poke me if anyone has a problem with this. -- nosy: +mmilkin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11957 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11957] re.sub confusion between count and flags args
Mike Milkin added the comment: There is no sane way to issue a warning without changing the signature and we don't want to change the signature without issuing a deprecation warning for the function, so sadly option 3 is the only way for this to work, (Im going to not touch this till ENUMS are merged in.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11957 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11957] re.sub confusion between count and flags args
Mike Milkin added the comment: We could do that but we would be changing the signature before adding the warning -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11957 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9682] socket.create_connection error message for domain subpart with invalid length is very confusing
Mike Milkin added the comment: Made changes to to the tests and made changes to the error messages. I think decode() is valid since the input is already ascii encoded. -- Added file: http://bugs.python.org/file29834/Issue9682-full.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9682 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
Course: Content-Management mit Plone (German), September 12 - 13, 2013
Content-Management mit Plone (German) = Date: September 12 - 13, 2013 Location: Leipzig, Germany Language: German Link: http://www.python-academy.de/Kurse/kurs_plone.html (The following is in German, the instruction language.) Der Kurs richtet sich an Autoren und Redakteure sowie Contentmanager und Webmaster, die Inhalte mit Hilfe des Content-Management-Systems Plone erstellen und pflegen wollen. Es sind keine Grundkenntnisse erforderlich. Plone ist in Python implementiert. Im Gengensatz zu den anderen Kursen der Python Academy geht es nicht um das Programmieren, sondern um das Nutzen von Software. Wer tiefer einsteigen und mit Python programmieren möchte, zum Beispiel um Plone zu erweitern, kann aus vielen Kursen auswählen. Unten sind die nächsten Kurs-Termine aufgelistet. --- Our next courses: 14.04.-17.04.2013 (Leipzig) Python für Nicht-Programmierer (German) 15.04.-17.04.2013 (Leipzig) Python für Programmierer (German) 18.04.-20.04.2013 (Leipzig) Python für Wissenschaftler und Ingenieure (German) 03.06.-05.06.2013 (Leipzig) Einstieg in Django (German) 06.06.-08.06.2013 (Leipzig) Django für Fortgeschrittene (German) 10.06.-12.06.2013 (Leipzig) Python for Scientists and Engineers (English) 13.06.2013 (Leipzig) Fast Code with the Cython Compiler (English) 14.06.2013 (Leipzig) Fast NumPy Processing with Cython (English) 24.06.-26.06.2013 (Leipzig) Professional Testing with pytest and tox (English) 09.09.-11.09.2013 (Leipzig) Twisted Training (English) 12.09.-13.09.2013 (Leipzig) Content-Management mit Plone (German) 04.11.-06.11.2013 (Leipzig) Introduction to Django (English) 07.11.-09.11.2013 (Leipzig) Advanced Django (English) -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
[issue10740] sqlite3 module should allow DDL statements in transactions
Changes by mike bayer mike...@zzzcomputing.com: -- nosy: +zzzeek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10740 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17387] Error in C API documentation of PySequenceMethods
Mike Hoy added the comment: I was looking at 3.4 files. You're right it is in 2.7. Guess you have all the info you need to make a patch for it then? ssizessizeargfunc PySequenceMethods.sq_slice It passes the lower and upper bound and expects back a subsequence. Or is there more to it than that? I cannot for the life of me make any sense out of it. Here I was sitting looking at this thinking it would be very easy doc fix for me but in the end I think I'll bow out. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17387 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12067] Doc: remove errors about mixed-type comparisons.
Mike Hoy added the comment: Considering that the docs have changed does this issue still need to be open? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12067 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17387] Error in C API documentation of PySequenceMethods
Changes by Mike Hoy mho...@gmail.com: -- nosy: +mikehoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17387 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17387] Error in C API documentation of PySequenceMethods
Mike Hoy added the comment: Looking through Include/object.h I see that sq_slice is now: void *was_sq_slice. Can anyone provide any clarification as to where I can find info about sq_slice? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17387 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
ANN: Training - Django für Fortgeschrittene (German), 6. - 8. Juni 2013
This announcement is in German because the training is offered in German. We do offer an English version [1]. Django für Fortgeschrittene === Was: Tiefes Eintauschen in Django Wann: 6. - 8. Juni 2013 Wo: Python Academy, Leipzig Wer: Markus Zapke-Gründemann Details: http://www.python-academy.de/Kurse/django_kurs_fortgeschrittene.html Sie nutzen Django und wollen mehr darüber wissen? Dann können Sie in diesem Kurs tief in fortgeschrittene Konzepte einsteigen. Der Kurs wird Ihnen helfen bessere Anwendungen schneller zu entwickeln. Wenn Sie Django noch nicht nutzen und mit den Grundlagen nicht vertraut sind, empfehlen wir unseren Kurs Einstieg in Django [2]. Dieser Kurs vom 3. bis 5. Juni liegt direkt vor dem Kurs für Fortgeschrittene, so dass Sie die Möglichkeit haben sechs Tage Django-Total zu genießen. Der Kurs findet in Leipzig statt, das ein sehr reiches kulturelles Leben bietet. Leipzig war Gastgeber der ersten beiden PyCon DE Konferenzen 2011 und 2012. Leipzig ist sehr gut mit dem Auto und mit öffentlichen Verkehrsmitteln zu erreichen. Das Schulungszentrum ist jeweils eine nur Viertelstunde vom Hauptbahnhof oder Flughafen entfernt und von der Autobahnabfahrt sind es nur wenige Minuten bis zu uns. Leipzig bietet reichlich gute Hotels zu sehr moderaten Preisen. Der gleiche Kurs ist auch in englischer Sprache verfügbar [1]. [1] http://www.python-academy.com/courses/django_course_advanced.html [2] http://www.python-academy.de/Kurse/django_kurs_einstieg.html -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
ANN: Training - Einstieg in Django (German), 3. - 5. Juni 2013
This announcement is in German because the training is offered in German. We do offer an English version [1]. Einstieg in Django == Was: Praktischer Einstieg in die Entwicklung von Web-Anwendungen mit Django Wann: 3. - 5. Juni 2013 Wo: Python Academy, Leipzig Wer: Markus Zapke-Gründemann Details: http://www.python-academy.de/Kurse/django_kurs_einstieg.html Django ist ein sehr beliebtes Framework für die Entwicklung von Webanwendungen mit Python. In diesem Kurs lernen die Teilnehmer alle Grundlagen von Django von unserem erfahrenen Django-Trainer. Möchten Sie schnell gute Django-Anwendungen schreiben? Dann ist das der richtige Kurs für Sie. Erlernen Sie Best Practices und wie Sie die vielen Werkzeuge rund um Python und Django effektiv für die Entwicklung professioneller, performanter und wartbarer Web-Anwendungen nutzen. Wenn Sie Django schon nutzen und mit den Grundlagen vertraut sind, empfehlen wir unseren Kurs Django für Fortgeschrittene [2]. Dieser schließt sich direkt vom 6. bis 8. Juni an, so dass Sie die Möglichkeit haben sechs Tage Django-Total zu genießen. Der Kurs findet in Leipzig statt, das ein sehr reiches kulturelles Leben bietet. Leipzig war Gastgeber der ersten beiden PyCon DE Konferenzen 2011 und 2012. Leipzig ist sehr gut mit dem Auto und mit öffentlichen Verkehrsmitteln zu erreichen. Das Schulungszentrum ist jeweils eine nur Viertelstunde vom Hauptbahnhof oder Flughafen entfernt und von der Autobahnabfahrt sind es nur wenige Minuten bis zu uns. Leipzig bietet reichlich gute Hotels zu sehr moderaten Preisen. Der gleiche Kurs ist auch in englischer Sprache verfügbar [1]. [1] http://www.python-academy.com/courses/django_course_introduction.html [2] http://www.python-academy.de/Kurse/django_kurs_fortgeschrittene.html -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
ANN: Training - Advanced Django, November 7 - 9, 2013
Advanced Django === What: Django - the deep dive When: November 7 - 9, 2013 Where: Python Academy, Leipzig, Germany Who: Markus Zapke-Gründemann Details: http://www.python-academy.com/courses/django_course_advanced.html You already worked with Django but you want learn more? Than this course is for you. Dive deep into Django and learn advanced techniques from our experienced trainer. This course will help you to develop better Django applications faster. If have not worked with Django before, we recommend Introduction to Django November 4 - 6, 2013 first. Since both courses are offered back-to-back, you have the chance to attend a six-day Django immersion. The course is offered in Leipzig, Germany. This city has about half a million inhabitants and provides a very rich cultural life. It was the home of the first two PyCon DE conferences in 2011 and 2012. The teaching location can be easily reached via car or public transportation. Leipzig is very well connected to the German Autobahn and railway systems. The airport is only 15 taxi minutes away from the training location. There are plenty of reasonably priced hotels nearby. We offer this course also in German: http://www.python-academy.de/Kurse/django_kurs_fortgeschrittene.html [1] http://www.python-academy.com/courses/django_course_introduction.html -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
ANN: Training - Professional Testing with pytest and tox
Professional Testing with pytest and tox What: An in-depth pytest and tox course When: June 24 - 26, 2013 Where: Python Academy, Leipzig, Germany Who: Holger Krekel Details: http://www.python-academy.com/courses/specialtopics/python_course_testing.html You always write tests for your code, even before you write the code itself, right? If yes, than you can learn how to do this with the help of pytest [1] and tox [2]. These smart Python tools help you to make your tests better. If you don't write tests yet, you can learn how to do this on a professional level right from the beginning. Join Holger Krekel, the author of pytest and tox, when he explains how to integrate testing and deployment using real-world examples. Learn what it means to do pythonic testing by taking advantage of Python's philosophy to make simple things simple and complex things possible. Bring your own problems to be discussed in the course. The course is offered in Leipzig, Germany. This city has about half a million inhabitants and provides a very rich cultural life. It was the home of the first two PyCon DE conferences in 2011 and 2012. The teaching location can be easily reached via car or public transportation. Leipzig is very well connected to the German Autobahn and railway systems. The airport is only 15 taxi minutes away from the training location. There are plenty of reasonably priced hotels nearby. [1] http://pytest.org/latest/ [2] http://codespeak.net/tox/ -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
ANN: Twisted Training - Three days to untwist the framework
Twisted Training What: An in-depth Twisted course When: September 9 - 11, 2013 Where: Python Academy, Leipzig, Germany Who: Laurens Van Houtven Details: http://www.python-academy.com/courses/specialtopics/python_course_twisted.html Twisted [1] is a powerful framework to develop network applications of all kinds. Since the way it works is somewhat different from the typical Python programming style, it might not be that easy to take full advantage of all the power that comes with Twisted. This course gives a solid introduction and takes you deep into the land of deferreds, callbacks and events. Learn from the Twisted committer Laurens Van Houtven how to integrate Twisted into existing, non-Twisted applications. Inherited some Twisted code and feel kind of lost? This training will help you to understand what is going on. The course is offered in Leipzig, Germany. This city has about half a million inhabitants and provides a very rich cultural life. It was the home of the first two PyCon DE conferences in 2011 and 2012. The teaching location can be easily reached via car or public transportation. Leipzig is very well connected to the German Autobahn and railway systems. The airport is only 15 taxi minutes from the training location. There are plenty of reasonably priced hotels nearby. [1] http://twistedmatrix.com/ -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
[issue9253] argparse: optional subparsers
mike bayer added the comment: um, this seems like a regression/bug? I now have users complaining that my apps are broken because of this change as of Python 3.3.My application is supposed to return the help screen when no command is given. Now I get a None error because argparse is not trapping this condition: from argparse import ArgumentParser parser = ArgumentParser(prog='test') subparsers = parser.add_subparsers() subparser = subparsers.add_parser(foo, help=run foo) parser.parse_args() $ python3.2 test.py usage: test [-h] {foo} ... test: error: too few arguments $ python3.3 test.py $ This seems very much like a major feature has been yanked away from argparse, now I have to check for this condition explicitly. am I on the right issue here or do I need to open something new ? -- nosy: +zzzeek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9253 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[ANN] Leipzig Python User Group - Meeting, February 12, 2013, 08:00 p.m.
=== Leipzig Python User Group === We will meet on Tuesday, February 12 at 8:00 p.m. at the training center of Python Academy in Leipzig, Germany ( http://www.python-academy.com/center/find.html ). Mike Müller (me ;)) will talk about IPython [1] and especially the new IPython notebook. IPython is a greatly enhanced alternative to the interactive Python prompt. The notebook allows to create interactive documents in a browser with markdown, Python code and matplotlib graphics. Even though IPython is traditionally only widely used among scientists, it offers interesting opportunities for all Python users. Everybody who uses Python, plans to do so or is interested in learning more about the language is encouraged to participate. While the meeting language will be mainly German, we will provide English translation if needed. Food and soft drinks are provided. Please send a short confirmation mail to i...@python-academy.de, so we can prepare appropriately. Current information about the meetings are at http://www.python-academy.com/user-group . Mike == Leipzig Python User Group === Wir treffen uns am Dienstag, 12.02.2013 um 20:00 Uhr im Schulungszentrum der Python Academy in Leipzig ( http://www.python-academy.de/Schulungszentrum/anfahrt.html ). Mike Müller (das bin ich ;)) stellt IPython [1] und insbesondere das neue IPython-Notebook vor. IPython bietet eine stark erweiterte Alternative zum interaktiven Python-Prompt. Mit dem neuen Notebook lassen sich im Browser interaktive Dokumente mit Markdown, Python-Code und Matplotlib-Grafiken anlegen. Obwohl IPython vor allem im wissenschaftlichen Umfeld verbreitet ist, bietet es interessante Möglichkeiten für alle Python-Nutzer. Weitere Infos: http://www.python-academy.de/User-Group/index.html Willkommen ist jeder, der Interesse an Python hat, die Sprache bereits nutzt oder nutzen möchte. Für das leibliche Wohl wird gesorgt. Eine Anmeldung unter i...@python-academy.de wäre nett, damit wir genug Essen besorgen können. Aktuelle Informationen zu den Treffen sind unter http://www.python-academy.de/User-Group zu finden. Viele Grüße Mike [1] http://ipython.org/ -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
[ANN] PhreeqPy 0.2 released
A new PhreeqPy version has been released. Its available at http://pypi.python.org/pypi/phreeqpy/0.2.0 Documentation can be found at http://www.phreeqpy.com What is PhreeqPy? - PhreeqPy provides Python tools for PHREEQC [1], a comprehensive software for hydro-geo-chemical modeling. PhreeqPy includes a ctypes-based wrapper for IPhreeqc [2] and is especially useful for coupling PHREEQC with transport codes and automated parameter studies. It runs with Python 2.6, 2.7 and 3.3 as well as PyPy on Linux, Mac OS X and Windows. What's new in this version? --- * More IPhreeqc functions * Support for Mac OS X * Error handling turning IPhreeqc errors into Python exceptions * Python 3 compatibility - tested with Python 3.3 * More documentation [1] http://wwwbrr.cr.usgs.gov/projects/GWC_coupled/phreeqc/index.html [2] ftp://brrftp.cr.usgs.gov/pub/charlton/iphreeqc/IPhreeqc.pdf -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
Re: handling return codes from CTYPES
On 13-01-21 05:46 AM, Steve Simmons wrote: ... from ctypes import * sLib = cdll.slib lic_key = c_char_p(asdfghjkl.encode(encoding='utf_8', errors='strict')) initResult = sLib.InitScanLib(lic_key.value) print(InitScanLib Result: , initResult) InitScanLib Result: 65535 I've tried declaring initResult as c_short by: inserting... initResult = c_short(0) ... before the call to sLib.InitScanLib but I still get the same response (65535). That's because you've just discarded the object you created. What you wanted was, I believe: initScanLib = sLib.InitScanLib initScanLib.restype = c_short initResult = initScanLib( ... ) i.e. you tell the initScanLib function how to coerce its result-type. *Some* C functions take a pointer to a data-value to fill in their data, but not *your* function. That pattern looks like: result = c_short(0) my_ctypes_function( ..., byref(result) ) print result.value i.e. you have to pass the variable into the function (as a reference/pointer). HTH, Mike -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list
Re: handling return codes from CTYPES
On 13-01-21 11:52 AM, Steve Simmons wrote: Mike, Thanks for your response - I was puzzled by one part of it though... On 21/01/2013 15:14, Mike C. Fletcher wrote: That's because you've just discarded the object you created I (mis?)understood from the ctypes documentation that ' initResult = c_short(0)' would result in the creation of a ctypes 'short' called initResult and that this object would be mutable. On that basis, I expected the following statement ' initResult = initScanLib( ... )' would assign the result of the call to initResult. So, I can understand that I am not using the correct approach but I don't understand how I discarded the object I created. Can you clarify please? Sure, the problem isn't here a ctypes issue, but a Python one. When you do the following: initResult = c_short(0) you have bound the name initResult (a string key in a namespace dictionary) to a ctypes c_short object. The name initResult is in no way special, nor is there any type associated with that variable name. The fact that it has been assigned to a c_short *at this moment* does not affect any *future* value assigned to that name. initResult = initScanLib( ... ) Here you have assigned whatever object is the result of initScanLib( ... ) to the name initResult. The old object pointed to by initResult is no longer referenced by that name, so the Python intepreter is free to discard that old object immediately. Thus you have discarded the object you created by reassigning the single reference to it to another object, which leaves it free to be garbage collected (depending on Python implementation that might be instantly or eventually). Python does not have typed *variables*, every variable is a pointer to an object (PyObject *) under the covers. There is nothing in Python like: int i; short j; nothing which makes a variable type-enforcing or constrained. At least, nothing in core Python. In theory you can create a namespace which *does* allow such things, but that's getting pretty involved. Hope that helps, Mike -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list
Re: pygame - importing GL - very bad...
On 13-01-02 08:53 PM, someone wrote: On 01/02/2013 10:57 PM, Michael Torrie wrote: On 01/01/2013 04:49 PM, someone wrote: On 01/01/2013 12:13 PM, Chris Angelico wrote: You could simply import OpenGL.GL as GL You're right - but I forgot to write that even though this maybe should/is recommended many places then I've seen a lot of opengl code on the internet and IMHO NOBODY does that and it'll be a lot slower to type that in front of all the opengl commands... So this solution is not something I like too... But I can see some other people came up with good solutions, which I didn't knew about.. Why is this solution not to your liking? Python has namespaces for a Because the amount of opengl-functions is HUGE, many people (at least on the internet) do as I and (IMHO) it takes up too much time to change a lot of code plus sometimes I grab/modify small code pieces from the internet and it makes my development SO MUCH faster just to make an exception here with star-import for opengl-commands. I'd agree on it being rather impractical/pointless/verbose to have every single OpenGL entry point and constant have an extra gl. or glu. or glut. added to the front. OpenGL/GLU/GLUT is already namespaced, but using C-style prefix namespacing (that is gl* glu* glut* and GL_*, GLU_*, GLUT_*), so adding Python style namespacing to the front of that makes it very verbose. OpenGL-using code is *littered* with OpenGL entry points and constants (and yes, I intend the slight slight), so that's going to make it rather annoying to work with. PyOpenGL's current approach is mostly attempting to maintain backward compatibility with the older revisions. wxPython actually rewrote its whole interface to go from * imports into namespaced lookups and then wrote a little migration tool that would attempt to rewrite your code for the new version. They also provided a transitional API so that code could mix-and-match the styles. For PyOpenGL that would look something like this: from OpenGL import gl, glu, glut gl.Rotate(...) gl.Clear(gl.COLOR_BUFFER_BIT) or, if you really needed PEP-8 compliance, and don't mind making the API look nothing like the original, we might even go to: from opengl import gl, glu, glut gl.rotate(...) gl.clear(gl.COLOR_BUFFER_BIT) Either of which would *also* make it possible for us to lazy-load the entry points and symbols (that would save quite a bit of ram). But I'm not actually likely to do this, as it makes it far more annoying to work with C-oriented references (and since PyOpenGL is primarily used by new OpenGL coders who need to lean heavily on references, that's a big deal). Currently you can often copy-and-paste C code into PyOpenGL and have it work properly as far as the OpenGL part is concerned (arrays and the like need to be rewritten, but that's not something I can control, really). People are already confused by the small variations from C OpenGL, making the API look entirely different wouldn't be a good direction to move, IMO. HTH, Mike -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list
Re: pylint, was Re: pygame - importing GL - very bad...
On 13-01-02 09:48 PM, Terry Reedy wrote: ... 2) self.lightDone: Invalid name lightDone (should match [a-z_][a-z0-9_]{2,30}$) So I can now understand that pylint doesn't like my naming convention with a capital letter in the middle of the variable name, like: lightDone = a boolean value. I suppose pylint wants me to use (a little longer method) an underscore to separate words in long variable names... That is more conventional in the Python community (and is in pep 8, I believe) but still a choice. That seems like a improper error message from the tool. Invalid name does *not* properly describe that situation. The name is *not* Invalid in any sense of the word, and a checker that tells you it is is creating needless false-positives. An error checker should be saying something like: self.lightDone: Does not match PEP8 recommended style making it clear that this is *not* an error, it is a *style* related *warning*. HTH, Mike -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list
Problem with print and output to screen
Hello, I am learning python and i have the next problem and i not understand how fix. The script is very simple, shows in the terminal the command but, the row is divided in two: Example: /opt/zimbra/bin/zmprov ga u...@example.com |egrep (zimbraPrefMailForwardingAddress:|zimbraPrefMailForwardingAddress:) /opt/zimbra/bin/zmprov ga us...@example.com |egrep (zimbraPrefMailForwardingAddress:|zimbraPrefMailForwardingAddress:) And the correct is: /opt/zimbra/bin/zmprov ga u...@example.com |egrep (zimbraPrefMailForwardingAddress:|zimbraPrefMailForwardingAddress:) The script is: #!/usr/bin/python import os for user in open (email): print '/opt/zimbra/bin/zmprov ga ' + user + '|egrep (zimbraPrefMailForwardingAddress:|zimbraPrefMailForwardingAddress:) ' Thanks -- http://mail.python.org/mailman/listinfo/python-list
Re: Problem with print and output to screen
El martes, 11 de diciembre de 2012 20:07:09 UTC-3, Joel Goldstick escribió: On Tue, Dec 11, 2012 at 6:00 PM, Dave Angel d...@davea.name wrote: On 12/11/2012 05:53 PM, Joel Goldstick wrote: When you read the file line by line the end of line character is included in the result try user[:-1] instead to strip the return from your printed text The catch to that is the last line in the file might not have a newline. In that case, we'd be ignoring the last character of the line. The .rstrip() method is easy, and for most purposes equivalent. Few text files have trailing whitespace, but many are missing the final linefeed. Point taken. Brain freeze. I forgot about .rstrip. That is the way to go -- DaveA -- Joel Goldstick Thank you very much, i used user.rstrip and the output is correct . Best Regards! -- http://mail.python.org/mailman/listinfo/python-list
Print value from array
Hello, I am noob en python programing, i wrote a perl script for read from csv but now i wish print value but the value must be within double quote and I can not do this. For example now the output is: ma user@domain displayName Name SecondName givenName Name sn SecondName cn Name and i wish ma user@domain displayName Name Lastname givenName Name sn SecondName cn Name My script is #!/usr/bin/python import csv with open ('file.csv', 'rb') as f: reader = csv.reader (f, delimiter=';' ) for row in reader: mail = row [0] name = row [1] lastname = row [2] name2 = row [1] + ' ' + row [2] print 'ma ' + mail + ' displayName ' + name2.title() + ' givenName ' + name.title() + ' sn ' + lastname.title() + ' cn ' + name.title() # print '\n' f.close() -- http://mail.python.org/mailman/listinfo/python-list
Re: Print value from array
El jueves, 22 de noviembre de 2012 16:02:30 UTC-3, Alister escribió: On Thu, 22 Nov 2012 10:44:02 -0800, Mike wrote: Hello, I am noob en python programing, i wrote a perl script for read from csv but now i wish print value but the value must be within double quote and I can not do this. For example now the output is: ma user@domain displayName Name SecondName givenName Name sn SecondName cn Name and i wish ma user@domain displayName Name Lastname givenName Name sn SecondName cn Name My script is #!/usr/bin/python import csv with open ('file.csv', 'rb') as f: reader = csv.reader (f, delimiter=';' ) for row in reader: mail = row [0] name = row [1] lastname = row [2] name2 = row [1] + ' ' + row [2] print 'ma ' + mail + ' displayName ' + name2.title() + ' givenName ' + name.title() + ' sn ' + lastname.title() + ' cn ' + name.title() # print '\n' f.close() concatenation is not the python way to build strings double quotes can be included in single quoted strings ( vice Versa) try using the string formatting options, something like print 'ma {} display name {} Given Name {} sn {} cn {}'.format ((mail,name2.title(),name.title(),lastname.title(),name.title())) -- Plan to throw one away. You will anyway. - Fred Brooks, The Mythical Man Month Thanks Alister , i modify the print structure with your recommendation and is solved Thanks. -- http://mail.python.org/mailman/listinfo/python-list
[issue16389] re._compiled_typed's lru_cache causes significant degradation of the mako_v2 bench
mike bayer added the comment: in response to ezio, I poked around the source here, since I've never been sure if re.compile() cached its result or not. It seems to be the case in 2.7 and 3.2 also - 2.7 uses a local caching scheme and 3.2 uses functools.lru_cache, yet we don't see as much of a slowdown with 3.2. so it seems like the caching behavior is precedent here, but I would revert re.py's caching scheme to the one used in 2.7 if the functools.lru_cache can't be sped up very significantly. ideally lru_cache would be native. also does python include any kind of benchmarking unit tests ? over in SQLA we have an approach that fails if the call-counts of various functions, as measured by cProfile, fall outside of a known range. it's caught many issues like these for me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16389 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13510] Clarify that readlines() is not needed to iterate over a file
Changes by Mike Hoy mho...@gmail.com: -- nosy: +mikehoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13510 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
Learn Python and SQLAlchemy in Antwerp, Belgium
Learn Python and SQLAlchemy in Antwerp, Belgium === So far most of our open courses are in Leipzig, Germany. After an open training right after EuroPython in Florence in July and one after PyCon PL in Poland in September, we now also offer Python training in Antwerp, Belgium [1]. This is in collaboration with Conceptive Engineering [2]. Python for Programmers - November 12 - 14, 2012 --- This is an introduction to the Python Programming languages for participants with some programming background in another language. The three days provide a hands-on training covering all basic language features. After the course participants can write their own Python programs. Stress is on pythonic solutions, i.e. taking advantage of Python's strengths while writing elegant and efficient code. See the course page for more information [3]. SQLAlchemy Training - November 15, 2012 --- SQLAlchemy is THE the library to use in the Python world when interacting with databases. It provides a full suite of well known enterprise-level persistence patterns, designed for efficient and high-performing database access, adapted into a simple and Pythonic domain language. This practical course will make sure you understand the concepts behind SQLAlchemy. We will focus on practical patterns of SQLAlchemy usage and see how its use can grow from very simple to more advanced. See the course page for more information [4]. Camelot Training - November 16, 2012 - Camelot is a framework for developing desktop database applications at warp speed. It is to desktop applications what Django is to web applications. Some see it as a replacement for MS Access, but its tight integration with SQLAlchemy enables a vast amount of more advanced features and possibilities. See the course page for more information [5]. Best regards, Mike Müller [1] http://www.conceptive.be/training.html [2] http://www.conceptive.be/ [3] http://www.python-academy.com/courses/python_course_programmers.html [4] http://www.python-academy.com/courses/specialtopics/python_course_sqlalchemy.html [5] http://www.python-academy.com/courses/specialtopics/python_course_camelot.html --- Our next courses: 27.10.2012 (Leipzig) SQLAlchemy (English) 28.10.2012 (Leipzig) Camelot (English) 12.-14.11.2012 (Antwerp, Belgium) Python for Programmers (English) 15.11.2012 (Antwerp, Belgium) SQLAlchemy (English) 16.11.2012 (Antwerp, Belgium) Camelot (English) 10.12.-12.12.2012 (Leipzig) Python für Programmierer (German) 13.12.-15.12.2012 (Leipzig) Python für Wissenschaftler und Ingenieure (German) 25.01.-27.01.2013 (Leipzig) Advanced Python (English) 28.01.-30.01.2013 (Leipzig) High-Performance Computation with Python (English) one day each (can be booked separately) - Optimizing of Python Programs - Python Extensions with Other Languages - Fast Code with the Cython Compiler 31.01.-01.02.2013 (Leipzig) High Performance XML with Python (English) 04.03.-08.03.2013 (Chicago, USA) Python for Scientists and Engineers (English) 15.04.-17.04.2013 (Leipzig) Python für Programmierer (German) 18.04.-20.04.2013 (Leipzig) Python für Wissenschaftler und Ingenieure (German) 10.06.-12.06.2013 (Leipzig) Python for Scientists and Engineers (English) 13.06.2013 (Leipzig) Fast Code with the Cython Compiler (English) 14.06.2013 (Leipzig) Fast NumPy Processing with Cython (English) More information at http://www.python-academy.com -- Dr.-Ing. Mike Müller, M.Sc. - Geschäftsführer (CEO) - Python Academy UG (haftungsbeschränkt) Co. KG Zur Schule 20 04158 Leipzig Germany Sitz (Registered Office): Leipzig Amtsgericht (Registration Court): Leipzig HRA (Commercial Register No.): 16004 Persönlich haftende Gesellschafterin (Personally Liable Partner): py solutions UG (haftungsbeschränkt) Sitz (Registered Office): Leipzig Amtsgericht (Registration Court): Leipzig HRB (Commercial Register No.): 25781 Geschäftsführer (Managing Director): Dr. Mike Müller Tel: +49 341 260 3370 Fax: +49 341 520 4495 E-Mail: mmuel...@python-academy.de WWW: http://www.python-academy.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
[issue16288] TextTestResult uses TestCase.__str__() which isn't customisable (vs id() or shortDescription())
Changes by Mike Hoy mho...@gmail.com: -- nosy: -mikehoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16288 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16294] 8 space indent in tutorial
Mike Hoy added the comment: Probably no need for a patch (since it's such a simple fix) but I felt like doing something. -- keywords: +patch nosy: +mikehoy Added file: http://bugs.python.org/file27656/issue16294.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16294 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12944] Accept arbitrary files for packaging's upload command
Changes by Mike Hoy mho...@gmail.com: -- nosy: -mikehoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12944 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13198] Remove duplicate definition of write_record_file
Changes by Mike Hoy mho...@gmail.com: -- nosy: -mikehoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13198 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15569] Doc doc: incorrect description of some roles as format-only
Changes by Mike Hoy mho...@gmail.com: -- nosy: -mikehoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15569 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16288] TextTestResult uses TestCase.__str__() which isn't customisable (vs id() or shortDescription())
Changes by Mike Hoy mho...@gmail.com: -- nosy: +mikehoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16288 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
PyOpenGL 3.0.2 Released
PyOpenGL 3.0.2 (final, finally) has been released. The major changes since 3.0.1 (released in 2010!) are: * OpenGL core support up to 4.3 level [1] * OpenGL extension support from the current registry [1] * Some missing FreeGLUT extensions added * OpenGL.GL.framebufferobjects providing ARB/EXT alternates for framebuffer operations * Experimental OSMesa (Offscreen Mesa) context (use the environment variable PYOPENGL_PLATFORM=osmesa) Codebase changes: * Experimental Python 3.2 and PyPy support * Win64 Support (including OpenGL_accelerate) * Numarray (the ancient transitional module between Numeric and numpy) is no longer supported as an array type * More compact auto-generated wrappers * Large numbers of bug fixes Downloads are at: http://pypi.python.org/pypi/PyOpenGL/3.0.2 http://pypi.python.org/pypi/PyOpenGL-accelerate/3.0.2 Future Compatibility Notes: * This will be the last release of PyOpenGL to support Python 2.5 (and it supports Python 2.5 in source-release only mode). o PyOpenGL will be moving to a shared code approach for Python 2/3 support, which makes supporting the older Python releases problematic * This will be the last release to support the use of bare numbers as number-array data-types o i.e. passing 1.00 to a function expecting an array/address of an float o Use Glfloat( 1.00 ) to pass in an array-compatible value o Passing in an int/long will generate a GLvoidp( I ) to allow for easy offset-address-style API usage * The ancient Numeric package (as distinct from Numpy) will be dropped as a supported array format o Numeric itself has long since been deprecated, use Numpy Enjoy all, Mike [1] Note: OpenGL extension and higher-level core feature support is auto-generated. As always, we are limited by the number of test programs that exercise more advanced features and the availability of hardware that can support the features on which to test -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
[issue15936] Add link from os.urandom to random.SystemRandom
Changes by Mike Hoy mho...@gmail.com: -- nosy: +mikehoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15936 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13440] Explain the status quo wins a stalemate principle in the devguide
Mike Hoy added the comment: Patch affects faq.rst/index.rst. In faq I put the two links along with some text as Chris suggested. In index I changed resources to Additional Resources and split up the old 'Resources' into 'Additional Resources/Essential Reading'. Feedback appreciated I will incorporate any new ideas into a version 2 and so forth until issue resolved. -- keywords: +patch Added file: http://bugs.python.org/file27541/issue13440_v1.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13440 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
Django training for beginners and advanced
Six Days of Django Training === There are still a couple of places in our Django courses next week. If you would like to get up to speed with Django, this course is for you: October 15-17, 2012 (Leipzig, Germany) Introduction to Django [1] If you already have solid Django knowledge or would like to continue after the introductory training, you should consider this course: October 18-20, 2012 (Leipzig, Germany) Advanced Django [2] Feel free to ask me about it. BTW, all courses are also available as in-house training. Mike [1] http://www.python-academy.com/courses/django_course_introduction.html [2] http://www.python-academy.com/courses/django_course_advanced.html Our next courses: 15.10.-17.10.2012 (Leipzig) Introduction to Django (English) 18.10.-20.10.2012 (Leipzig) Advanced Django (English) 27.10.2012 (Leipzig) SQLAlchemy (English) 28.10.2012 (Leipzig) Camelot (English) 12.-14.11.2012 (Antwerp, Belgium) Python for Programmers (English) 15.11.2012 (Antwerp, Belgium) SQLAlchemy (English) 16.11.2012 (Antwerp, Belgium) Camelot (English) 10.12.-12.12.2012 (Leipzig) Python für Programmierer (German) 13.12.-15.12.2012 (Leipzig) Python für Wissenschaftler und Ingenieure (German) 25.01.-27.01.2013 (Leipzig) Advanced Python (English) 28.01.-30.01.2013 (Leipzig) High-Performance Computation with Python (English) one day each (can be booked separately) - Optimizing of Python Programs - Python Extensions with Other Languages - Fast Code with the Cython Compiler 31.01.-01.02.2013 (Leipzig) High Performance XML with Python (English) 04.03.-08.03.2013 (Chicago, USA) Python for Scientists and Engineers (English) 15.04.-17.04.2013 (Leipzig) Python für Programmierer (German) 18.04.-20.04.2013 (Leipzig) Python für Wissenschaftler und Ingenieure (German) 10.06.-12.06.2013 (Leipzig) Python for Scientists and Engineers (English) 13.06.2013 (Leipzig) Fast Code with the Cython Compiler (English) 14.06.2013 (Leipzig) Fast NumPy Processing with Cython (English) More information at http://www.python-academy.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
[issue16196] Typo in devguide stdlibchanges.html
New submission from Mike Hoy: Typo in: http://docs.python.org/devguide/stdlibchanges.html#adding-to-the-stdlib Reads: This document it meant to explain... Should read: This document is meant to explain... -- components: Devguide messages: 172640 nosy: ezio.melotti, mikehoy priority: normal severity: normal status: open title: Typo in devguide stdlibchanges.html ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16196 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13691] pydoc help (or help('help')) should show the doc for help
Mike Hoy added the comment: Cool! Can you add tests? Nope, I can't add tests. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13691 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13440] Explain the status quo wins a stalemate principle in the devguide
Mike Hoy added the comment: Would this be the appropriate place for the links to the two essays: http://docs.python.org/devguide/#proposing-changes-to-python-itself -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13440 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12322] ElementPath 1.3 expressions documentation
Mike Hoy added the comment: Mike - a note for the future: when you create an updated patch, create it anew vs. a clean repo. Don't compound patches. No problem, thanks for committing the patch. Wasn't aware that compounding patches caused a problem. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12322 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12322] ElementPath 1.3 expressions documentation
Mike Hoy added the comment: It doesn't look like there are any errors to document. I'm attaching a patch that Patrick suggested. -- keywords: +patch Added file: http://bugs.python.org/file27481/issue12322_v1.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12322 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12322] ElementPath 1.3 expressions documentation
Mike Hoy added the comment: In response to patrick vrijlandt last comment here's a patch. I also found a few None keywords that didn't have `` around them. -- Added file: http://bugs.python.org/file27500/issue12322_v2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12322 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13691] pydoc help (or help('help')) should show the doc for help
Changes by Mike Hoy mho...@gmail.com: -- nosy: +mikehoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13691 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13691] pydoc help (or help('help')) should show the doc for help
Mike Hoy added the comment: I imported this patch on 3.4 and it worked as expected on my system. help('help') brings up info about help() help(object) prints the docstring help() invokes the help -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13691 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13691] pydoc help (or help('help')) should show the doc for help
Mike Hoy added the comment: What about pydoc help? $ ./python -m pydoc help Help on built-in function help: help(...) Invoke the built-in help system. help() The interactive help system starts on the interpreter console. help(string) The string is looked up as the name of a module, function, class, method, keyword, or documentation topic, and a help page is printed on the console. help(object) Generates a help page on the given object. Or did you mean inside the interpreter? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13691 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11643] Use |version| instead of X.Y in the doc
Mike Hoy added the comment: Here is a patch after talking with Ezio on irc tonight. The rules I (attempted) to follow are: Within a :file: you should have {X.Y} In a text/paragraph area you can use |version| Within anything else just leave it as X.Y As stated by Éric I ignored install and distutils. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11643 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11643] Use |version| instead of X.Y in the doc
Changes by Mike Hoy mho...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file27446/issue11643-xy_v1.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11643 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
Re: sum function
On Thursday, October 4, 2012 4:52:50 PM UTC-4, Mike wrote: Hi All, I am new to python and am getting the data from hbase. I am trying to do sum on the column as below scanner = client.scannerOpenWithStop(tab, 10, 1000, [cf:col1]) total = 0.0 r = client.scannerGet(scanner) while r: for k in (r[0].columns): total += float(r[0].columns[k].value) r = client.scannerGet(scanner) print total Do you know of better (faster) way to do sum? Any thoughts please? Thanks Sorry about that. Here you go Traceback (most recent call last): File test.py, line 17, in module total = sum(float(col.value) for r in iter(next_r, None) for col in r[0].columns.itervalues()) File test.py, line 17, in genexpr total = sum(float(col.value) for r in iter(next_r, None) for col in r[0].columns.itervalues()) IndexError: list index out of range -- http://mail.python.org/mailman/listinfo/python-list
Re: sum function
On Friday, October 5, 2012 9:41:44 AM UTC-4, Ramchandra Apte wrote: On Friday, 5 October 2012 19:09:15 UTC+5:30, Mike wrote: On Thursday, October 4, 2012 4:52:50 PM UTC-4, Mike wrote: Hi All, I am new to python and am getting the data from hbase. I am trying to do sum on the column as below scanner = client.scannerOpenWithStop(tab, 10, 1000, [cf:col1]) total = 0.0 r = client.scannerGet(scanner) while r: for k in (r[0].columns): total += float(r[0].columns[k].value) r = client.scannerGet(scanner) print total Do you know of better (faster) way to do sum? Any thoughts please? Thanks Sorry about that. Here you go Traceback (most recent call last): File test.py, line 17, in module total = sum(float(col.value) for r in iter(next_r, None) for col in r[0].columns.itervalues()) File test.py, line 17, in genexpr total = sum(float(col.value) for r in iter(next_r, None) for col in r[0].columns.itervalues()) IndexError: list index out of range the variable r is an empty list Here is the actual code. scanner = client.scannerOpenWithStop(tab, 10, 1000, [cf:col1]) next_r = functools.partial(client.scannerGet, scanner) total = sum(float(col.value) for r in iter(next_r, None) for col in r[0].columns.itervalues()) Scanner does have rows. Are we missing something please? Thanks -- http://mail.python.org/mailman/listinfo/python-list
Re: sum function
I added the print command. It prints [] when there is no data. Thanks -- http://mail.python.org/mailman/listinfo/python-list
Re: sum function
Terry, I am not using the mail client. I am just posting on the site. Something wrong with this site. When you do individual reply, it does the double posting which it shouldn't. See Ramachandra Apte's reply. It is posted twice too. Thanks -- http://mail.python.org/mailman/listinfo/python-list
Re: sum function
That worked, Ian. Thanks -- http://mail.python.org/mailman/listinfo/python-list
[issue12067] Doc: remove errors about mixed-type comparisons.
Mike Hoy added the comment: Changed patch to include suggestions by Chris Jerdonek. http://bugs.python.org/issue12067#msg170953 -- hgrepos: +153 Added file: http://bugs.python.org/file27442/issue12067-expressions_v2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12067 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12067] Doc: remove errors about mixed-type comparisons.
Changes by Mike Hoy mho...@gmail.com: -- hgrepos: -153 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12067 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
Re: sum function
I get below error NameError: name 'functools' is not defined Thanks -- http://mail.python.org/mailman/listinfo/python-list
Re: sum function
Thanks Ian for the quick reply. I get the below error. NameError: name 'itertools' is not defined Thanks -- http://mail.python.org/mailman/listinfo/python-list
Re: sum function
On Thursday, October 4, 2012 5:40:26 PM UTC-4, Dave Angel wrote: On 10/04/2012 05:29 PM, Mike wrote: I get below error NameError: name 'functools' is not defined functools is a module in the standard library. You need to import it. import functools -- DaveA I imported functools. Now I get the below error please. Traceback (most recent call last): File test.py, line 16, in module total = sum(float(col.value) for r in iter(next_r, None) for col in r.itervalues()) File test.py, line 16, in genexpr total = sum(float(col.value) for r in iter(next_r, None) for col in r.itervalues()) AttributeError: 'list' object has no attribute 'itervalues' Thanks -- http://mail.python.org/mailman/listinfo/python-list
Re: sum function
I agree with you, Ian. Thanks for all the help. Now I get the below error. File test.py, line 17, in module total = sum(float(col.value) for r in iter(next_r, None) for col in r[0].columns.itervalues()) File test.py, line 17, in genexpr total = sum(float(col.value) for r in iter(next_r, None) for col in r[0].columns.itervalues()) Thanks -- http://mail.python.org/mailman/listinfo/python-list
[issue15104] Unclear language in __main__ description
Changes by Mike Hoy mho...@gmail.com: -- nosy: +mikehoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15104 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14574] SocketServer doesn't handle client disconnects properly
Changes by Mike Putnam m...@theputnams.net: -- nosy: +mikeputnam ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14574 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com