ANN: SciPy 0.12.0 release

2013-05-06 Thread Ralf Gommers
We are pleased to announce the availability of SciPy 0.12.0. This release has some cool new features (see highlights below) and a large amount of bug fixes and maintenance work under the hood. The number of contributors also keeps rising steadily - 75 people contributed patches to this release. We

[RELEASED] Python 3.2.4 and Python 3.3.1

2013-05-06 Thread Georg Brandl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On behalf of the Python development team, I am pleased to announce the final releases of Python 3.2.4 and 3.3.1. Python 3.2.4 is the final regular maintenance release for the Python 3.2 series, while Python 3.3.1 is the first maintenance release for

ANN: pyftpdlib 1.1.0 released

2013-05-06 Thread Giampaolo Rodolà
Hi there guys, I'm pleased to announce pyftpdlib 1.1.0. This is mainly a bugfix release, see: https://pyftpdlib.googlecode.com/svn/trunk/HISTORY === Links === Home: http://code.google.com/p/pyftpdlib/ Download: https://pyftpdlib.googlecode.com/files/pyftpdlib-1.1.0.tar.gz Tutorial:

ANN: phileas0.8 now available

2013-05-06 Thread Larry Myerscough
phileas = Python/HTML integration: Larry's Elegant Alternative Solution Source and documentation can be accessed at: http://larry.myerscough.nl/phileas_project/ N.B. This really is an alternative solution; the other available approaches to this subject don't work for me... ... but may work

ANN: Hy - Python / Lisp interoperability layer (0.9.6)

2013-05-06 Thread Paul Tagliamonte
Hello, World! tl;dr = Version: 0.9.6 License: Expat (sometimes called MIT) Hilarious: Yes Site: http://hylang.org Hy is a wicked funny hack that lets you interop (in both directions) with Lisp from Python (or with Python from Lisp). It's pip installable: $ pip install hy

ANN: psutil 0.7.0 released

2013-05-06 Thread Giampaolo Rodolà
Hi there folks, I'm pleased to announce the 0.7.0 release of psutil: http://code.google.com/p/psutil/ This is mainly a bugfix release addressing a couple of high priority issues on Linux and FreeBSD. Complete list of bugfixes and enhancements is here: https://psutil.googlecode.com/hg/HISTORY ===

ANN: eGenix mx Base Distribution 3.2.6 (mxDateTime, mxTextTools, etc.)

2013-05-06 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com mx Base Distribution mxDateTime, mxTextTools, mxProxy, mxURL, mxUID, mxBeeBase, mxStack, mxQueue, mxTools Version 3.2.6

PyCamp Registration Open for Columbus, Toronto, and Oshkosh

2013-05-06 Thread Chris Calloway
Registration is open for three upcoming PyCamps produced by the Triangle Python Users Group: - A five-day PyOhio PyCamp hosted by the Ohio State University Open Source Club, July 22-26, 2013 the week prior to the PyOhio regional Python conference weekend. PyCamp is a training program and

New release 0.19 of the Cython compiler

2013-05-06 Thread Stefan Behnel
I'm happy to announce that Cython 0.19 has been released. This is a feature release of the Cython compiler that adds some major usability improvements especially for code that needs to run in both Py2 and Py3, as well as better Python compatibility and optimisations. http://cython.org/ You can

[RELEASE] Python 2.7.4

2013-05-06 Thread Benjamin Peterson
I'm thrilled to announce the release of Python 2.7.4. 2.7.4 is the latest maintenance release in the Python 2.7 series. It includes hundreds of bugfixes to the core language and standard library. Downloads are at http://python.org/download/releases/2.7.4/ As always, please report bugs to

numba 0.8

2013-05-06 Thread mark florisson
Numba 0.8 adds support for autojit classes and methods, building on the perfect hash table ideas from SEP 201 [1]. This allows methods to automatically specialize to argument types and instance attribute types. Many thanks to Dag Sverre Seljebotn for his work and ideas on the SEPs and his ideas

ANN: eGenix PyRun - One file Python Runtime 1.2.0

2013-05-06 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix PyRun - One file Python Runtime Version 1.2.0 An easy-to-use single file relocatable Python run-time - available for Windows, Mac OS X

WSME 0.5b2 released

2013-05-06 Thread Christophe de Vienne
About WSME -- Web Service Made Easy (WSME) simplify the writing of REST web services by providing simple yet powerful typing which removes the need to directly manipulate the request and the response objects. WSME can work standalone or on top of your favorite python web

pytest-2.3.5: bug fixes and little improvements

2013-05-06 Thread holger krekel
pytest-2.3.5: bug fixes and little improvements === pytest-2.3.5 is a maintenance release with many bug fixes and little improvements. See the changelog below for details. No backward compatibility issues are foreseen and

ANN: rom 0.10 - Redis object mapper for Python

2013-05-06 Thread Josiah Carlson
Hey everyone, I know, it's been several years since I announced anything on these lists, but I suspect that some of you may have uses for my new package, so here you go. The rom package is a Redis object mapper for Python. It sports an interface similar to Django's ORM, SQLAlchemy + Elixir, or

devpi-server: lightning fast pypi.python.org proxy (0.7 initial release)

2013-05-06 Thread holger krekel
devpi-server: lightning-fast pypi.python.org proxy (0.7 initial) = This is the initial release of devpi-server, an easy-to-use caching proxy server for pypi.python.org, providing fast and reliable installs when used by pip or

ANN: pyftpdlib 1.2.0 released

2013-05-06 Thread Giampaolo Rodola'
Hi there guys, I'm pleased to announce pyftpdlib 1.2.0. === About === Python FTP server library provides an high-level portable interface to easily write asynchronous FTP/S servers with Python. pyftpdlib is currently the most complete RFC-959 FTP server implementation available for Python

devpi-server-0.8: better deployment, fixes

2013-05-06 Thread holger krekel
devpi-server-0.8: fast'n easy-to-deploy pypi.python.org proxy === devpi-server is an easy-to-deploy caching proxy server for pypi.python.org, providing fast and reliable installs when used by pip or easy_install. devpi-server-0.8

Registration Open for PyCamp in Columbus, Toronto, and Oshkosh

2013-05-06 Thread Chris Calloway
Registration is open for three upcoming PyCamps produced by the Triangle Python Users Group: - A five-day PyOhio PyCamp hosted by the Ohio State University Open Source Club, July 22-26, 2013 the week prior to the PyOhio regional Python conference weekend. PyCamp is a sponsor and training

pyC11 initial publication

2013-05-06 Thread Volker Birk
pyC11 is a grammar to parse programs in the C programming language following ISO/IEC 9899:2011. It is written using pyPEG, a parsing framework for Python. The grammar supports Python 2.7 and 3.x. The test bench requires py.test. This is the initial upload. The grammar is incomplete. Parsing C

New TkinterDnd URL

2013-05-06 Thread klappnase
The TkinterDnD Project has permanently moved to sourceforge and is now available at http://tkinterdnd.sourceforge.net/ . TkinterDnD is a python wrapper for George Petasis' tkDnD Tk extension. tkDnD adds native drag and drop support for windows and (yet partially) unix and Mac OSX to Tk.

ANN: psutil 0.7.1 released

2013-05-06 Thread Giampaolo Rodola'
Hi folks, I'm pleased to announce the 0.7.1 release of psutil: http://code.google.com/p/psutil/ === About === psutil is a module providing an interface for retrieving information on all running processes and system utilization (CPU, memory, disks, network, users) in a portable way by using

ANN: New WinPython with Python 2.7.4 and 3.3.1 (32/64bit)

2013-05-06 Thread Pierre Raybaut
Hi all, I am pleased to announce that four new versions of WinPython have been released yesterday with Python 2.7.4 and 3.3.1, 32 and 64 bits. Many packages have been added or upgraded (see the automatically-generated changelogs). Special thanks to Christoph Gohlke for building most of the

pyPEG 2.11 released

2013-05-06 Thread Volker Birk
Feature enhancements are provided, like a method for memory cache clearing and improving composing and text representation. Some small bugs are fixed. pyPEG is a quick and easy solution for creating a parser in Python programs. pyPEG uses a PEG language in Python data structures to parse, so it

devpi-server 0.8.1: better devpi-ctl behaviour / fixed --gendeploy quirk

2013-05-06 Thread holger krekel
Hi again, just 12 hours after 0.8, i released devpi-server-0.8.1, a slightly improved version of the fast pypi caching proxy server. In particular after devpi-ctl now works more according to docs. In particular after a: devpi-ctl shutdown You won't accidentally start the servers again

devpi-server-0.8.2: bug fixes for the pypi.python.org caching server

2013-05-06 Thread holger krekel
just did a release of devpi-server-0.8.2, the fast pypi.python.org caching server. 0.8.2 fixes a bug which prevented the installation of some packages. If you encounter any such problems, please report it at: https://bitbucket.org/hpk42/devpi-server/issues or on #pylib on freenode. A new

ANN: eGenix mxODBC 3.2.3 - Python ODBC Database Interface

2013-05-06 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com mxODBC Python ODBC Database Interface Version 3.2.3 mxODBC is our commercially supported Python extension providing

TkinterTreectrl-2.0.1 released

2013-05-06 Thread klappnase
Today an updated version of the TkinterTreectrl package was released. The TkinterTreectrl package wraps the treectrl tk extension (http://tktreectrl.sourceforge.net) for use with Python/Tkinter. The treectrl widget allows to create fancy things like sortable multi column listboxes and

Course: Python for Programmers in Katowice, Poland, May 27 - 29, 2013

2013-05-06 Thread Mike Müller
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

Camelot 13.04.13 released

2013-05-06 Thread erikj
Hello, Camelot 13.04.13 has been released. Camelot provides components to build business applications on top Python, SQLAlchemy and Qt. For screenshots, see : http://www.python-camelot.com/ An overview of the changes can be found here :

ANN: Using xtopdf and pypyodbc to publish MS Access database data to PDF

2013-05-06 Thread vasudevram
Wrote a program that lets you publish your MS Access database data to PDF, using Python, ReportLab, xtopdf and pypyodbc. (This code will go into my xtopdf toolkit (a Python toolkit for PDF creation) after cleanup, in a while.) Link:

Course: Advanced Python in Katowice, Poland, May 30 - June 1, 2013

2013-05-06 Thread Mike Müller
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

Guppy-PE/Heapy 0.1.10

2013-05-06 Thread sverker nilsson
I am happy to announce Guppy-PE 0.1.10 Guppy-PE is a library and programming environment for Python, currently providing in particular the Heapy subsystem, which supports object and heap memory sizing, profiling and debugging. It also includes a prototypical specification language, the Guppy

Course: Python per programmatori (Italian) in Bologna, September 11 - 13, 2013

2013-05-06 Thread Mike Müller
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

Re: Python not starting

2013-05-06 Thread Steven D'Aprano
On Sun, 05 May 2013 20:15:08 -0700, drjreddy7 wrote: I am very happy to inform all of you that the problem is solved. The problem was due to the prescence of duplicates for genericpath.pyc and stat.pyc.I have deleted them and new ones were generated as i started python. Thanking all of you

Re: Why do Perl programmers make more money than Python programmers

2013-05-06 Thread Henry Law
On 05/05/13 18:11, Ignoramus16992 wrote: According to CIO.com What an amusing thread; lightened my (non-programmer) day. -- Henry LawManchester, England -- http://mail.python.org/mailman/listinfo/python-list

Re: Why do Perl programmers make more money than Python programmers

2013-05-06 Thread llanitedave
On Sunday, May 5, 2013 12:10:47 PM UTC-7, Steven D'Aprano wrote: Also, Perl programmers are an unprincipled, devious bunch, always looking for an opportunity to blackmail their employers into paying them extra. Python programmers are a decent, law-abiding people with a strong moral

Re: Why do Perl programmers make more money than Python programmers

2013-05-06 Thread Fábio Santos
And of course, the Python Programmer's moral code is only 80 characters wide. No! Was it not seventy characters wide? Was I fooled my entire life? -- http://mail.python.org/mailman/listinfo/python-list

Re: Why do Perl programmers make more money than Python programmers

2013-05-06 Thread Chris Angelico
On Mon, May 6, 2013 at 4:28 PM, Fábio Santos fabiosantos...@gmail.com wrote: And of course, the Python Programmer's moral code is only 80 characters wide. No! Was it not seventy characters wide? Was I fooled my entire life? Well you see, it was 70 bytes back in the Python 2 days (I'll defer

Re: (Learner-here) Lists + Functions = headache

2013-05-06 Thread Chris Angelico
On Mon, May 6, 2013 at 3:39 PM, 8 Dihedral dihedral88...@googlemail.com wrote: Bradley Wright於 2013年5月6日星期一UTC+8上午8時59分15秒寫道: def fizz_cout(x): count = 0 for item in x: while item == fizz: count += 1 return count This is not indented right

Re: Why do Perl programmers make more money than Python programmers

2013-05-06 Thread Fábio Santos
On 6 May 2013 08:34, Chris Angelico ros...@gmail.com wrote: Well you see, it was 70 bytes back in the Python 2 days (I'll defer to Steven for data points earlier than that), but with Python 3, there were two versions: one was 140 bytes representing 70 characters, the other 280 bytes

Re: Why do Perl programmers make more money than Python programmers

2013-05-06 Thread Fábio Santos
On 6 May 2013 08:55, Karim kliat...@gmail.com wrote: Austerity for python programmers in Portugal !? Actually, lack of a market. I can't seem to find any other job programming python. It's all php, VB, c#, and I think there is some COBOL in there too. But who knows. Maybe I'm looking in the

Re: Why do Perl programmers make more money than Python programmers

2013-05-06 Thread Karim
Le 06/05/2013 09:49, Fábio Santos a écrit : have asked for a raise back in December, and was told that it wouldn't happen before this year. I have done well. I think I deserve better pay than a supermarket employee now. I am sure that my efforts were appreciated and I will be rewarded. I am

ANN: eGenix mxODBC 3.2.3 - Python ODBC Database Interface

2013-05-06 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com mxODBC Python ODBC Database Interface Version 3.2.3 mxODBC is our commercially supported Python extension providing

Re: Why do Perl programmers make more money than Python programmers

2013-05-06 Thread Chris Angelico
On Mon, May 6, 2013 at 5:49 PM, Fábio Santos fabiosantos...@gmail.com wrote: I may rise the average pay of a Python programmer in Portugal. I have asked for a raise back in December, and was told that it wouldn't happen before this year. I have done well. I think I deserve better pay than a

Re: Why do Perl programmers make more money than Python programmers

2013-05-06 Thread Fábio Santos
All good points. I should probably blame the smallness of my company aswell. On 6 May 2013 09:11, Chris Angelico ros...@gmail.com wrote: On Mon, May 6, 2013 at 5:49 PM, Fábio Santos fabiosantos...@gmail.com wrote: I may rise the average pay of a Python programmer in Portugal. I have asked

Re: (Learner-here) Lists + Functions = headache

2013-05-06 Thread Mark Lawrence
On 06/05/2013 02:30, Bradley Wright wrote: Aha! lessons learned - got it! The next lesson is to read the link given in my signature, digest it and take action to avoid masses of superfluous newlines in your responses. TIA. -- If you're using GoogleCrap™ please read this

Re: pyC11 initial publication

2013-05-06 Thread Amirouche Boubekki
Héllo, Does it support macros ? Is it possible to retrieve the list of macros and define macro values ? Thanks, Amirouche 2013/5/4 Volker Birk bum...@dingens.org pyC11 is a grammar to parse programs in the C programming language following ISO/IEC 9899:2011. It is written using pyPEG, a

Re: Python not starting

2013-05-06 Thread DRJ Reddy
How did you get duplicate genericpath.pyc and stat.pyc files? If they were duplicates, why didn't they have the right code in them? It's probably not worth spending any more time investigating, but it is still rather mysterious. Steven When i was running idle on 4th of May,some error came

Re: Why do Perl programmers make more money than Python programmers

2013-05-06 Thread Roy Smith
In article mailman.1317.1367821725.3114.python-l...@python.org, Fábio Santos fabiosantos...@gmail.com wrote: And of course, the Python Programmer's moral code is only 80 characters wide. No! Was it not seventy characters wide? Was I fooled my entire life? The entire moral code in a

Re: Why do Perl programmers make more money than Python programmers

2013-05-06 Thread Steven D'Aprano
On Mon, 06 May 2013 17:30:33 +1000, Chris Angelico wrote: On Mon, May 6, 2013 at 4:28 PM, Fábio Santos fabiosantos...@gmail.com wrote: And of course, the Python Programmer's moral code is only 80 characters wide. No! Was it not seventy characters wide? Was I fooled my entire life? Well

Re: First python program, syntax error in while loop

2013-05-06 Thread Neil Cerutti
On 2013-05-03, John Gordon gor...@panix.com wrote: In auil2vfijo...@mid.individual.net Neil Cerutti ne...@norwich.edu writes: Not quite yet. Players who guess correctly on the fifth try don't get credit. Are you sure? tries is initialized to zero and isn't incremented for the initial

Re: First python program, syntax error in while loop

2013-05-06 Thread Mark Lawrence
On 06/05/2013 13:06, Neil Cerutti wrote: On 2013-05-03, John Gordon gor...@panix.com wrote: In auil2vfijo...@mid.individual.net Neil Cerutti ne...@norwich.edu writes: Not quite yet. Players who guess correctly on the fifth try don't get credit. Are you sure? tries is initialized to zero

Re: First python program, syntax error in while loop

2013-05-06 Thread Neil Cerutti
On 2013-05-06, Mark Lawrence breamore...@yahoo.co.uk wrote: On 06/05/2013 13:06, Neil Cerutti wrote: On 2013-05-03, John Gordon gor...@panix.com wrote: In auil2vfijo...@mid.individual.net Neil Cerutti ne...@norwich.edu writes: Not quite yet. Players who guess correctly on the fifth try

Re: First python program, syntax error in while loop

2013-05-06 Thread Roy Smith
In article mailman.1360.1367843880.3114.python-l...@python.org, Mark Lawrence breamore...@yahoo.co.uk wrote: while (number != guess) and (tries 5): One of these days I'll work out why some people insist on using superfluous parentheses in Python code. Could it be that they enjoy

Re: First python program, syntax error in while loop

2013-05-06 Thread Chris Angelico
On Mon, May 6, 2013 at 11:08 PM, Roy Smith r...@panix.com wrote: On the other hand, I've long since given up trying to remember operator precedence in various languages. If I ever have even the slightest doubt, I just go ahead and put in the extra parens. If I ever have even the slightest

Re: First python program, syntax error in while loop

2013-05-06 Thread rusi
On May 6, 6:08 pm, Roy Smith r...@panix.com wrote: BTW, in C, I used to write: return (foo) for years until somebody pointed out to me that return foo works.  I just assumed that if I had to write: if (foo) while (foo) for (foo; bar; baz) then return (foo) made sense too. I

Re: learning python

2013-05-06 Thread Michael Herman
realpython.com - just launched On Sun, May 5, 2013 at 9:08 AM, leonardo selmi l.se...@icloud.com wrote: hi guys i need to find a good book to learn python with exercises and solutions, any suggestions? thanks! best regards leonardo --

Re: First python program, syntax error in while loop

2013-05-06 Thread Roy Smith
In article mailman.1361.1367847484.3114.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: On Mon, May 6, 2013 at 11:08 PM, Roy Smith r...@panix.com wrote: On the other hand, I've long since given up trying to remember operator precedence in various languages. If I ever have even

Re: socket programming

2013-05-06 Thread Pedro
On Saturday, May 4, 2013 5:37:42 AM UTC-4, Irmen de Jong wrote: On 4-5-2013 4:13, Pedro wrote: SERVER: import socket # Import socket module s = socket.socket() # Create a socket object host = socket.gethostname() # Get local machine name port = 12345 # Reserve a port for your

Re: Why do Perl programmers make more money than Python programmers

2013-05-06 Thread Joshua Landau
On 6 May 2013 13:03, Steven D'Aprano steve+comp.lang.pyt...@pearwood.infowrote: On Mon, 06 May 2013 17:30:33 +1000, Chris Angelico wrote: On Mon, May 6, 2013 at 4:28 PM, Fábio Santos fabiosantos...@gmail.com wrote: And of course, the Python Programmer's moral code is only 80 characters

Re: socket programming

2013-05-06 Thread Chris Angelico
On Tue, May 7, 2013 at 1:54 AM, Pedro pe...@ncf.ca wrote: Thanks for the reply. I'm sending short strings as commands to my server machine so the socket module seems to be doing the trick reliably. I'll try to add Twisted to my arsenal though. Cheers I've never used Twisted, so I can't say

Re: Help with loading file into an array

2013-05-06 Thread Joshua Landau
On 5 May 2013 07:06, peter berrett pwberr...@gmail.com wrote: I am trying to build a program that can find comets in a series of astronomical images. I have already written functions to find the comet in a series of images, the data of which is stored in embedded lists. The area I am having

Re: Collision of Two Rect

2013-05-06 Thread Joshua Landau
On 4 May 2013 00:42, Ian Kelly ian.g.ke...@gmail.com wrote: The other thing that is suspicious about the code you posted is that it has two different notions of the ball's position that are not necessarily in agreement. There is the ball_rect, and there are also the x and y variables. snip

distributing a binary package

2013-05-06 Thread Eric Frederich
Hello, Hopefully a simple question. Basically, I'd like to know how to create a proper setup.py script to install a package. The package exists as a single directory with a single __init__.py file and (currently) 93 .so files. Right now I just copy it into the site-packages directory but I'd

find overlapping lines output times observed

2013-05-06 Thread Linsey Raaijmakers
Hello, I have a file like this: action startend 50 53215321 7 53235347 12 53395351 45 53735373 45 54205420 25 54255425 26 54255425 50 54515451 45 54525452 14

module install failures

2013-05-06 Thread Milton Mobley
Hi there, I hate to bother you with this, but there doesn't seem to be any ordinary online help for such issues at python.org: Lately I have tried to install several Python modules that are wrappers for C/C++ base libraries on a Windows 7 64 bit system. I used pip in a virtualenv environment, and

Re: socket programming

2013-05-06 Thread Arnaud Delobelle
On 6 May 2013 17:05, Chris Angelico ros...@gmail.com wrote: I've never used Twisted, so I can't say how good it is. All I know is that what I learned about socket programming in C on OS/2 is still valid on Windows and on Linux, and in every language I've ever used (bar JavaScript and

python backup script

2013-05-06 Thread MMZ
I am trying to backup database on CentOS linux server,I'm getting error when running the following script. anyone can help? #!/usr/bin/env python import ConfigParser import os import time config = ConfigParser.ConfigParser() config.read(~/my.cnf) username = config.get('client', 'mmz') password

Re: python backup script

2013-05-06 Thread Jerry Hill
On Mon, May 6, 2013 at 3:01 PM, MMZ programmer.toro...@gmail.com wrote: I am trying to backup database on CentOS linux server,I'm getting error when running the following script. anyone can help? Traceback (most recent call last): File ./backup.py, line 8, in ? username =

Re: python backup script

2013-05-06 Thread MMZ
On Monday, May 6, 2013 3:11:33 PM UTC-4, Jerry Hill wrote: On Mon, May 6, 2013 at 3:01 PM, MMZ programme...@gmail.com wrote: I am trying to backup database on CentOS linux server,I'm getting error when running the following script. anyone can help? Traceback (most recent call

Re: module install failures

2013-05-06 Thread Mark Lawrence
On 06/05/2013 19:50, Milton Mobley wrote: Hi there, I hate to bother you with this, but there doesn't seem to be any ordinary online help for such issues at python.org http://python.org: Lately I have tried to install several Python modules that are wrappers for C/C++ base libraries on a

Re: python backup script

2013-05-06 Thread Matt Jones
I've never used ConfigParser either, but shouldn't the [client] section have the options mmz, pass1, or localhost somewhere? Do you need to add them to that file? *Matt Jones* On Mon, May 6, 2013 at 2:20 PM, MMZ programmer.toro...@gmail.com wrote: On Monday, May 6, 2013 3:11:33 PM UTC-4,

Re: First python program, syntax error in while loop

2013-05-06 Thread Terry Jan Reedy
On 5/6/2013 11:31 AM, Roy Smith wrote: In article mailman.1361.1367847484.3114.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: On Mon, May 6, 2013 at 11:08 PM, Roy Smith r...@panix.com wrote: On the other hand, I've long since given up trying to remember operator precedence in

Re: Collision of Two Rect

2013-05-06 Thread Ian Kelly
On May 6, 2013 10:39 AM, Joshua Landau joshua.landau...@gmail.com wrote: On 4 May 2013 00:42, Ian Kelly ian.g.ke...@gmail.com wrote: The other thing that is suspicious about the code you posted is that it has two different notions of the ball's position that are not necessarily in agreement.

Re: find overlapping lines output times observed

2013-05-06 Thread Oscar Benjamin
On 6 May 2013 19:39, Linsey Raaijmakers lm.raaijmak...@gmail.com wrote: I have a file like this: action startend 50 53215321 7 53235347 12 53395351 45 53735373 45 54205420 25 54255425 [snip] your

Re: python backup script

2013-05-06 Thread MMZ
Thanks Matt. my.cnf is a readonly file and cannot be changed or modified but do you know of a file that stores similar information on CentOS?I think I'm not reading from a right file maybe. On Monday, May 6, 2013 3:46:04 PM UTC-4, Matt Jones wrote: I've never used ConfigParser either, but

PIL: check if image is animated

2013-05-06 Thread Sven
Hello, I am trying to check if an image is animated. I can't rely on the extension as it may be a gif that's been renamed to .jpg or something else and is still animated. I thought that this used to work: from PIL import Image def check_animated(img): try: img.seek(1) except

Re: python backup script

2013-05-06 Thread Matt Jones
Why do you have to use that file? Why can't you copy its contents into a new file in your working directory and make whatever changes necessary? Example of the changes your code makes me think you want: # The following options will be passed to all MySQL clients

Re: python backup script

2013-05-06 Thread Enrico 'Henryx' Bianchi
MMZ wrote: config.read(~/my.cnf) username = config.get('client', 'mmz') password = config.get('client', 'pass1') hostname = config.get('client', 'localhost') ### A simple config file ### [client] user = mmz password = pass1 host = localhost ### EOF ### #!/usr/bin/env python import

Re: python backup script

2013-05-06 Thread Enrico 'Henryx' Bianchi
Enrico 'Henryx' Bianchi wrote: cmd2 = subprocess.Popen(['gzip' '-c'], shell=False, stdout=filename) Doh, my fault: cmd2 = subprocess.Popen(['gzip' '-c'], shell=False, stdout=filename stdin=cmd1.stdout) Enrico --

Re: First python program, syntax error in while loop

2013-05-06 Thread Chris Angelico
On Tue, May 7, 2013 at 6:11 AM, Terry Jan Reedy tjre...@udel.edu wrote: On 5/6/2013 11:31 AM, Roy Smith wrote: In article mailman.1361.1367847484.3114.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: If I ever have even the slightest doubt, I just go ahead and type language

Re: python backup script

2013-05-06 Thread Chris Angelico
On Tue, May 7, 2013 at 5:01 AM, MMZ programmer.toro...@gmail.com wrote: username = config.get('client', 'mmz') password = config.get('client', 'pass1') hostname = config.get('client', 'localhost') Are 'mmz', 'pass1', and 'localhost' the actual values you want for username, password, and

Re: python backup script

2013-05-06 Thread mina
On Monday, May 6, 2013 5:48:44 PM UTC-4, Enrico 'Henryx' Bianchi wrote: Enrico 'Henryx' Bianchi wrote: cmd2 = subprocess.Popen(['gzip' '-c'], shell=False, stdout=filename) Doh, my fault: cmd2 = subprocess.Popen(['gzip' '-c'], shell=False,

Re: python backup script

2013-05-06 Thread MMZ
stdin=cmd1.stdout) ^ SyntaxError: invalid syntax On Monday, May 6, 2013 5:48:44 PM UTC-4, Enrico 'Henryx' Bianchi wrote: Enrico 'Henryx' Bianchi wrote: cmd2 = subprocess.Popen(['gzip' '-c'], shell=False, stdout=filename) Doh, my fault: cmd2 =

Re: python backup script

2013-05-06 Thread John Gordon
In 36d2b7cf-2537-46a6-b984-9fce7ddd3...@googlegroups.com m...@socialassets.org writes: cmd2 = subprocess.Popen(['gzip' '-c'], shell=False, stdout=filename stdin=cmd1.stdout) Thank you Enrico. I've just

Re: python backup script

2013-05-06 Thread MRAB
On 06/05/2013 23:12, m...@socialassets.org wrote: On Monday, May 6, 2013 5:48:44 PM UTC-4, Enrico 'Henryx' Bianchi wrote: Enrico 'Henryx' Bianchi wrote: cmd2 = subprocess.Popen(['gzip' '-c'], shell=False, stdout=filename) Doh, my fault: cmd2 = subprocess.Popen(['gzip' '-c'],

Re: python backup script

2013-05-06 Thread MMZ
On Monday, May 6, 2013 6:12:28 PM UTC-4, Chris Angelico wrote: On Tue, May 7, 2013 at 5:01 AM, MMZ programmer.toro...@gmail.com wrote: username = config.get('client', 'mmz') password = config.get('client', 'pass1') hostname = config.get('client', 'localhost') Are 'mmz',

Re: python backup script

2013-05-06 Thread Chris Angelico
On Tue, May 7, 2013 at 8:40 AM, MMZ programmer.toro...@gmail.com wrote: Thanks Chris. you are right. So I used them directly and removed configParser. The new error is: Traceback (most recent call last): File ./bbk.py, line 11, in ? for database in

Re: python backup script

2013-05-06 Thread MRAB
On 06/05/2013 23:40, MMZ wrote: On Monday, May 6, 2013 6:12:28 PM UTC-4, Chris Angelico wrote: On Tue, May 7, 2013 at 5:01 AM, MMZ programmer.toro...@gmail.com wrote: username = config.get('client', 'mmz') password = config.get('client', 'pass1') hostname = config.get('client',

Re: First python program, syntax error in while loop

2013-05-06 Thread alex23
On May 6, 10:37 pm, Mark Lawrence breamore...@yahoo.co.uk wrote: One of these days I'll work out why some people insist on using superfluous parentheses in Python code.  Could it be that they enjoy exercising their fingers by reaching for the shift key in conjunction with the 9 or 0 key? One

Re: First python program, syntax error in while loop

2013-05-06 Thread Roy Smith
In article b00aecc2-149d-4ba8-a096-267dc881d...@n5g2000pbg.googlegroups.com, alex23 wuwe...@gmail.com wrote: On May 6, 10:37 pm, Mark Lawrence breamore...@yahoo.co.uk wrote: One of these days I'll work out why some people insist on using superfluous parentheses in Python code.  Could it be

Re: Red Black Tree implementation?

2013-05-06 Thread duncan smith
On 03/05/13 03:00, Dan Stromberg wrote: On Wed, May 1, 2013 at 7:06 PM, duncan smith buzzard@invalid.invalid mailto:buzzard@invalid.invalid wrote: I have an implementation that you can try out. It's not based on any other implementation, so my bugs will be independent of any bugs in

Re: distributing a binary package

2013-05-06 Thread Miki Tebeka
Basically, I'd like to know how to create a proper setup.py script http://docs.python.org/2/distutils/setupscript.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Red Black Tree implementation?

2013-05-06 Thread Dan Stromberg
On Mon, May 6, 2013 at 5:55 PM, duncan smith buzzard@invalid.invalidwrote: What license? Thanks! Here's the text I usually prepend. ##Copyright (c) 2013 duncan g. smith ## ##Permission is hereby granted, free of charge, to any person obtaining a ##copy of this software and associated

Re: Red Black Tree implementation?

2013-05-06 Thread Chris Angelico
On Tue, May 7, 2013 at 10:55 AM, duncan smith buzzard@invalid.invalid wrote: Here's the text I usually prepend. ##Copyright (c) 2013 duncan g. smith ## ##Permission is hereby granted, free of charge, to any person obtaining a ##copy of this software and associated documentation files (the

Re: Why do Perl programmers make more money than Python programmers

2013-05-06 Thread Ignoramus30465
On 2013-05-06, Henry Law n...@lawshouse.org wrote: On 05/05/13 18:11, Ignoramus16992 wrote: According to CIO.com What an amusing thread; lightened my (non-programmer) day. I guess you are from the python newsgroup then. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: First python program, syntax error in while loop

2013-05-06 Thread Dan Sommers
On Mon, 06 May 2013 17:17:01 -0700, alex23 wrote: One of these days I'll work out why some programmers consider typing to be effort. An ironic comment from someone who goes by the moniker wu wei! ;-) The effort, of course, comes in determining what to type, and often how to type less. --

Horror!!!!

2013-05-06 Thread MoneyMaker
HORROR ! This site is intended for all horror fans. The site have been collected and collected links to horror fans and joining a membership you can add the best moments of terror. Member can share everything horror-related. for example, videos, photos, music, stories. We hope you enjoy

[issue13503] improved efficiency of bytearray pickling by using bytes type instead of str

2013-05-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Raymond, we can't just backport this without breaking compatibility with installed Python versions. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13503

  1   2   3   >