Meeting in October

2010-09-12 Thread Christopher Mahan
Meeting in October? Chris Mahan (818) 671-1709 http://christophermahan.com/ chris.ma...@gmail.com http://twitter.com/chris_mahan -- http://mail.python.org/mailman/listinfo/python-list

Re: Static typing, Python, D, DbC

2010-09-12 Thread Eric S. Johansson
On 9/12/2010 4:28 PM, Paul Rubin wrote: Bearophile writes: I see DbC for Python as a way to avoid or fix some of the bugs of the program, and not to perform proof of correctness of the code. Even if you can't be certain, you are able reduce the probabilities of some bugs to happen. I think Db

Re: Minimal-D

2010-09-12 Thread Kruptein
On Sep 13, 3:23 am, Lawrence D'Oliveiro wrote: > In message > <383a7e4b-819f-4bdf-9b0c-e22baa9b6...@n7g2000vbo.googlegroups.com>, Kruptein > wrote: > > > Hey I'm creating a program called minimal-d which brings together many > > "things" you would otherwise use seperate to develop.  These things >

Python script for MySQL Passwords Unreliable on first boot (rc.local)

2010-09-12 Thread cloudcontrol
The script below works great when logged in as root and run from the command line, but when run at first boot using /etc/rc.local in Ubuntu 10.04, it fails about 25% of the time- the system root, mysql root and some mysql user passwords are set correctly, but one will fail with console log reportin

Re: Static typing, Python, D, DbC

2010-09-12 Thread John Nagle
On 9/12/2010 7:50 PM, Paul Rubin wrote: Ed Keith writes: I think DbC as envisioned by the Eiffel guy... the term is that it's a static verification technique, Eiffel throws an exception when a contract is violated. That is run time behavior, not static verification. The runtime checks are f

Re: Static typing, Python, D, DbC

2010-09-12 Thread Alf P. Steinbach /Usenet
* Paul Rubin, on 13.09.2010 04:50: Ed Keith writes: I think DbC as envisioned by the Eiffel guy... the term is that it's a static verification technique, Eiffel throws an exception when a contract is violated. That is run time behavior, not static verification. The runtime checks are for wh

Re: Anyone using python on Mint Linux ?

2010-09-12 Thread geremy condra
On Sun, Sep 12, 2010 at 7:24 PM, wrote: > Just read that Mint is a fine version of Debian Linux. > Any comments about python on this ? > Thanks,  Dave WB3DWE I used to do some of my development on Mint. Was happy with it then, and I suspect that the same would be true now. Geremy Condra -- htt

Re: Anyone using python on Mint Linux ?

2010-09-12 Thread Aahz
In article , wrote: > >Just read that Mint is a fine version of Debian Linux. >Any comments about python on this ? Why would there be? Either it works or it's broken, and given that it's Debian, I'd certainly bet that Python works. -- Aahz (a...@pythoncraft.com) <*> http://ww

Re: Static typing, Python, D, DbC

2010-09-12 Thread Paul Rubin
Ed Keith writes: >> I think DbC as envisioned by the Eiffel guy... >> the term is that it's a static verification technique, > > Eiffel throws an exception when a contract is violated. That is run > time behavior, not static verification. The runtime checks are for when static analysis hasn't be

Anyone using python on Mint Linux ?

2010-09-12 Thread Dave
Just read that Mint is a fine version of Debian Linux. Any comments about python on this ? Thanks, Dave WB3DWE -- http://mail.python.org/mailman/listinfo/python-list

Re: Minimal-D

2010-09-12 Thread Lawrence D'Oliveiro
In message <383a7e4b-819f-4bdf-9b0c-e22baa9b6...@n7g2000vbo.googlegroups.com>, Kruptein wrote: > Hey I'm creating a program called minimal-d which brings together many > "things" you would otherwise use seperate to develop. These things > are a file-manager,text-editor,ftp-client and sql-client.

Re: Distribute Non Library

2010-09-12 Thread narke
On 2010-09-12, CM wrote: > On Sep 11, 11:10 pm, narke wrote: >> My simple tool writing in python get bigger and bigger and I think I'd >> better split my code into several files.  But, unlike what in some other >> languages, there is no way to compile these several files into a single >> executab

Re: Distribute Non Library

2010-09-12 Thread narke
On 2010-09-12, Diez B. Roggisch wrote: > narke writes: > >> My simple tool writing in python get bigger and bigger and I think I'd >> better split my code into several files. But, unlike what in some other >> languages, there is no way to compile these several files into a single >> executable.

Re: Current install methodolgy eggs?

2010-09-12 Thread Paul Watson
On 2010-09-12 16:40, Ben Finney wrote: This is a dream shared by many, but Distutils has much improvement to be done yet. Recently — the past couple of years — a lot of progress has been made on this front, and Python 3.x is getting many of the benefits; look up the “Distutils2” efforts for more.

Re: Static typing, Python, D, DbC

2010-09-12 Thread Bearophile
Paul Rubin: > I think DbC as envisioned by the Eiffel guy who coined (and trademarked) > the term is that it's a static verification technique, marketing-speak > annotating subroutines with pre- and post- conditions that can be > checked with Hoare logic. Runtime checks wouldn't qualify as that.

Re: Current install methodolgy eggs?

2010-09-12 Thread Xavier Ho
On 13 September 2010 08:40, Ben Finney > wrote: > Paul Watson writes: > > > What is the currently favored installation process for Python > > applications? > > ‘python ./setup.py install’, using the standard library's Distutils > library. > I thought it was python setup.py install or ./setup

Re: Current install methodolgy eggs?

2010-09-12 Thread John Nagle
On 9/12/2010 3:40 PM, Ben Finney wrote: Paul Watson writes: What is the currently favored installation process for Python applications? ‘python ./setup.py install’, using the standard library's Distutils library. Other third-party libraries build on top of that and are generally backward-co

Re: Current install methodolgy eggs?

2010-09-12 Thread Ben Finney
Paul Watson writes: > What is the currently favored installation process for Python > applications? ‘python ./setup.py install’, using the standard library's Distutils library. Other third-party libraries build on top of that and are generally backward-compatible. > The last time I looked, it

Re: How Python works: What do you know about support for negative indices?

2010-09-12 Thread Aahz
In article <87r5gz93sv@benfinney.id.au>, Ben Finney wrote: >Neil Hodgson writes: >> >> There appear to be deliberate wraps at sentence end or automatic wraps >> to fit <80 columns. > >The automatic wraps in the code presented in the message are wrong. The >automatic wraps in the bullet point

Current install methodolgy eggs?

2010-09-12 Thread Paul Watson
What is the currently favored installation process for Python applications? The last time I looked, it was eggs. Is that still true? Is there any integration of eggs and handling into the base Python distribution? Is PEP 376 intended for applications written in Python, or just the Python di

Re: "pointlabel"-like function for Python: distribute text labels on a 2-d scatter plot to avoid overlapping labels

2010-09-12 Thread C Barrington-Leigh
> measure of text overlap (or likely text overlap).  Has anyone written > or ported such a thing for Python? Hm (talking to myself)... the link I gave above has some references, and one of those includes some python code. Seems not packaged up yet for plots, but may be close: http://meta.wikimedi

Re: Static typing, Python, D, DbC

2010-09-12 Thread Ed Keith
--- On Sun, 9/12/10, Paul Rubin wrote: > From: Paul Rubin > Subject: Re: Static typing, Python, D, DbC > To: python-list@python.org > Date: Sunday, September 12, 2010, 4:28 PM > Bearophile > writes: > > I see DbC for Python as a way to avoid or fix some of > the bugs of the > > program, and not

"pointlabel"-like function for Python: distribute text labels on a 2-d scatter plot to avoid overlapping labels

2010-09-12 Thread C Barrington-Leigh
Hello. There is a function for R (http://bm2.genes.nig.ac.jp/RGM2/ R_current/library/maptools/man/pointLabel.html) to help with placing/ locating text labels in an optimized way so as to minimise some measure of text overlap (or likely text overlap). Has anyone written or ported such a thing for

Re: Static typing, Python, D, DbC

2010-09-12 Thread Paul Rubin
Bearophile writes: > I see DbC for Python as a way to avoid or fix some of the bugs of the > program, and not to perform proof of correctness of the code. Even if > you can't be certain, you are able reduce the probabilities of some > bugs to happen. I think DbC as envisioned by the Eiffel guy wh

Required RENT Marina and JLT, 050-8320722

2010-09-12 Thread PETER WONG F H (+971 50 8320722)
Required RENT Marina and JLT, 050-8320722 Dear I have a client who is looking to Rent apartment :- 1. Dubai Marina and JLT :- Studio ,1Bed and 2 Bed only (any building) Please send me your direct availabilities, or call me, viewing tomorrow, thank you! Peter Wong F.H 王福兴 (个人注册RERA BRN:

Re: is there a way to get the encoding of python file

2010-09-12 Thread Robert Kern
On 9/12/10 4:14 AM, Stef Mientki wrote: hello, Is it possible to get the encoding of a python file from the first source line, (if there's any), after importing it ( with '__import__' ) # -*- coding: windows-1252 -*- The regular expression used to match the encoding declaration is given her

Re: Distribute Non Library

2010-09-12 Thread Diez B. Roggisch
narke writes: > On 2010-09-12, Glazner wrote: >> On Sep 12, 5:10 am, narke wrote: >>> My simple tool writing in python get bigger and bigger and I think I'd >>> better split my code into several files.  But, unlike what in some other >>> languages, there is no way to compile these several files

Re: Distribute Non Library

2010-09-12 Thread narke
On 2010-09-12, Glazner wrote: > On Sep 12, 5:10 am, narke wrote: >> My simple tool writing in python get bigger and bigger and I think I'd >> better split my code into several files.  But, unlike what in some other >> languages, there is no way to compile these several files into a single >> exec

Issue 1 of "PET: English Translation" a Python magazine is out!

2010-09-12 Thread Sebastian Bassi
-- Forwarded message -- From: Roberto Alsina Date: Fri, Sep 10, 2010 at 12:00 AM Subject: [pyar] Issue 1 of "PET: English Translation" a Python magazine is out! To: python-announce-l...@python.org, Python Argentina This magazine is a community effort. It's done by Python guys in

Re: analysis of algoritms

2010-09-12 Thread Baba
On Sep 9, 11:22 pm, Alain Ketterlin wrote: > Baba writes: > > In below code "the outer loop test in step 4 will execute ( n + 1 ) > > times (note that an extra step is required to terminate the for loop, > > hence n + 1 and not n executions), which will consume T4( n + 1 ) > > time." (fromhttp://

Re: Distribute Non Library

2010-09-12 Thread CM
On Sep 11, 11:10 pm, narke wrote: > My simple tool writing in python get bigger and bigger and I think I'd > better split my code into several files.  But, unlike what in some other > languages, there is no way to compile these several files into a single > executable. Sure there is. py2exe, py2

Re: Distribute Non Library

2010-09-12 Thread Diez B. Roggisch
narke writes: > My simple tool writing in python get bigger and bigger and I think I'd > better split my code into several files. But, unlike what in some other > languages, there is no way to compile these several files into a single > executable. Before I splitting my simple tool program, I ju

Re: palindrome iteration

2010-09-12 Thread Chris Colbert
;) In [29]: s = 'bannab' In [30]: a = np.frombuffer(s.lower(), dtype='uint8') In [31]: np.all(a == a[::-1]) Out[31]: True In [32]: s = 'bannac' In [33]: a = np.frombuffer(s.lower(), dtype='uint8') In [34]: np.all(a == a[::-1]) Out[34]: False -- http://mail.python.org/mailman/listinfo/pytho

Re: play sound on Ubuntu 10.4. (pulse audio?)

2010-09-12 Thread News123
Hi Tim, On 09/11/2010 11:42 PM, Tim Harig wrote: > On 2010-09-11, News123 wrote: >> What would be the way to detect how to play audio on a linux system >> without knowing ufront whether the system uses pulse, ALSA or whatever? > > I would suggest libao: > http://www.xiph.org/ao/ > and i

Re: Static typing, Python, D, DbC

2010-09-12 Thread Bearophile
John Nagle: > Design by contract really isn't a good fit to Python. I have used some times the class invariant done manually, as I have shown, and it has avoided me some bugs, so I have experimentally seen you are wrong. > I've done proof of correctness work, and there are suitable languages >

Re: Static typing, Python, D, DbC

2010-09-12 Thread Lie Ryan
On 09/12/10 08:53, John Nagle wrote: > On 9/11/2010 9:36 AM, Lie Ryan wrote: >> On 09/12/10 00:33, Bearophile wrote: >> >>> >>> >>> Lately while I program with Python one of the D features that I most >>> miss is a built-in Design By Contract (see PEP 316), because it avoids >>> (o

Re: Distribute Non Library

2010-09-12 Thread Thomas Jollans
On Sunday 12 September 2010, it occurred to narke to exclaim: > My simple tool writing in python get bigger and bigger and I think I'd > better split my code into several files. But, unlike what in some other > languages, there is no way to compile these several files into a single > executable. B

Minimal-D

2010-09-12 Thread Kruptein
Hey I'm creating a program called minimal-d which brings together many "things" you would otherwise use seperate to develop. These things are a file-manager,text-editor,ftp-client and sql-client. The program is currently in alpha, but it would be nice if some people tried it out and pointed out s

Re: Distribute Non Library

2010-09-12 Thread Glazner
On Sep 12, 5:10 am, narke wrote: > My simple tool writing in python get bigger and bigger and I think I'd > better split my code into several files.  But, unlike what in some other > languages, there is no way to compile these several files into a single > executable. Before I splitting my simple

Re: The Samurai Principle

2010-09-12 Thread Steven D'Aprano
On Sun, 12 Sep 2010 12:08:26 +1200, Lawrence D'Oliveiro wrote: >> And that is exactly the reason why the Samurai Principle says to not >> return None when the function fails to do what it intended to do. > > How can the function “fail” when it returns what it is specified to > return? Are you t

click ads of this site for your good, hot and brite future

2010-09-12 Thread roshini begum
www.127760.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Distribute Non Library

2010-09-12 Thread narke
My simple tool writing in python get bigger and bigger and I think I'd better split my code into several files. But, unlike what in some other languages, there is no way to compile these several files into a single executable. Before I splitting my simple tool program, I just put it in /usr/local/

Re: Queue cleanup

2010-09-12 Thread Gregory Ewing
Dennis Lee Bieber wrote: declaimed the following So maybe we need to redesign the hardware. Remember the iAPX-432? http://en.wikipedia.org/wiki/Intel_iAPX_432#Garbage_collection Not quite what I had in mind. That sounds like a conventional GC algorithm that happens to be implemente

Re: is there a library/program that converts sqlite database from windows-1252 to utf-8 ?

2010-09-12 Thread Stef Mientki
On 12-09-2010 00:07, Robert Kern wrote: > On 9/11/10 4:45 PM, Stef Mientki wrote: >> On 11-09-2010 21:11, Robert Kern wrote: >>> SQLite internally stores its strings as UTF-8 or UTF-16 encoded Unicode. So >>> it's not clear what >>> you mean when you say the database is "windows-1252". Can you

is there a way to get the encoding of python file

2010-09-12 Thread Stef Mientki
hello, Is it possible to get the encoding of a python file from the first source line, (if there's any), after importing it ( with '__import__' ) # -*- coding: windows-1252 -*- thanks, Stef -- http://mail.python.org/mailman/listinfo/python-list