Re: Finding .so files without setting LD_LIBRARY_PATH

2016-05-11 Thread Jussi Piitulainen
eryk sun writes: > On Wed, May 11, 2016 at 10:39 PM, Paul Smith wrote: >> Hi all. I have a locally-built version of Python (2.7.11) that I'm >> copying around to different systems, running all different versions of >> GNU/Linux. > ... >> What I'd like to do is have a way of setting the library pa

Re: More list building

2016-05-11 Thread louis . a . russ
On Wednesday, May 11, 2016 at 1:22:09 PM UTC-4, DFS wrote: > Have: > p1 = ['Now', 'the', 'for', 'good'] > p2 = ['is', 'time', 'all', 'men'] > > want > [('Now','is','the','time'), ('for','all','good','men')] > > This works: > > p = [] > for i in xrange(0,len(p1),2): > p.insert(i,(p1[i],p2[i

Re: Finding .so files without setting LD_LIBRARY_PATH

2016-05-11 Thread eryk sun
On Wed, May 11, 2016 at 10:39 PM, Paul Smith wrote: > Hi all. I have a locally-built version of Python (2.7.11) that I'm > copying around to different systems, running all different versions of > GNU/Linux. ... > What I'd like to do is have a way of setting the library path that > Python uses whe

Re: % formatting vs .format() (was: What's wrong with this concatenation statement?)

2016-05-11 Thread Tim Chase
On 2016-05-11 12:39, Ned Batchelder wrote: > The docs have discussed it in a few different ways over the years. > > Python 3.0 and 3.1 said: > > 3.2 said: > > 3.3 and up say: I've picked up on the "% formatting not going away, .format() more flexible" vibe but had missed the evolution in the do

Re: Steve D'Aprano, you're the "master". What's wrong with this concatenation statement?

2016-05-11 Thread Chris Angelico
On Thu, May 12, 2016 at 5:39 AM, Ned Batchelder wrote: > On Tuesday, May 10, 2016 at 8:16:43 PM UTC-4, Thomas 'PointedEars' Lahn wrote: >> DFS wrote: >> >> > On 5/8/2016 8:44 PM, Thomas 'PointedEars' Lahn wrote: >> >> With the “%” string operator (deprecated), >> > >> > according to who? >> >> TFM

Re: String concatenation

2016-05-11 Thread Ned Batchelder
On Wednesday, May 11, 2016 at 5:30:48 PM UTC-4, sohca...@gmail.com wrote: > On Wednesday, May 11, 2016 at 12:14:43 PM UTC-7, Thomas 'PointedEars' Lahn > wrote: > > sohcahto...@gmail.com wrote: > > > > > I don't blame people for not wanting to use their real name on the > > > Internet, especially

Finding .so files without setting LD_LIBRARY_PATH

2016-05-11 Thread Paul Smith
Hi all. I have a locally-built version of Python (2.7.11) that I'm copying around to different systems, running all different versions of GNU/Linux. Because I need this to work across systems I'm bundling important .so's with my Python installation (libcrypto, libssl, libreadline, libgmp) which a

Re: String concatenation

2016-05-11 Thread sohcahtoa82
On Wednesday, May 11, 2016 at 12:14:43 PM UTC-7, Thomas 'PointedEars' Lahn wrote: > sohcahto...@gmail.com wrote: > > > I don't blame people for not wanting to use their real name on the > > Internet, especially if you're a woman. There are a lot of crazy people > > out there that will find out w

Re: Steve D'Aprano, you're the "master". What's wrong with this concatenation statement?

2016-05-11 Thread Ned Batchelder
On Tuesday, May 10, 2016 at 8:16:43 PM UTC-4, Thomas 'PointedEars' Lahn wrote: > DFS wrote: > > > On 5/8/2016 8:44 PM, Thomas 'PointedEars' Lahn wrote: > >> With the “%” string operator (deprecated), > > > > according to who? > > TFM. > It's easy to be confused on this point. Early on in the

Re: Intel Distribution for Python

2016-05-11 Thread beliavsky--- via Python-list
On Tuesday, May 10, 2016 at 11:17:33 PM UTC-4, Arshpreet Singh wrote: > Thanks for the information, I just applied for program but I got one mail > about license and expiration. > > > This software license expires on October 29, 2016. > > > I am not able to understand that can anyone put some

ANN: eGenix PyRun - One file Python Runtime 2.2.0

2016-05-11 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix PyRun - One file Python Runtime Version 2.2.0 An easy-to-use single file relocatable Python run-time - available for Linux, Mac OS X and Unix

Re: Importing from __future__ doesn't work under PDB

2016-05-11 Thread martin846
Many thanks for the quick reply. I must admit I was surprised not to find any note about this anywhere in the docs (or indeed anywhere online); it seems like something that people would have run into before. I've added a request to the documentation tracker to have a note added to help people wh

Re: Importing from __future__ doesn't work under PDB

2016-05-11 Thread Chris Angelico
On Wed, May 11, 2016 at 7:52 PM, wrote: > In other words, I get different results for the same expression (2/3) in the > program and on the pdb prompt, which makes debugging tricky. I cannot figure > out how to persuade pdb to actually load the division module. Is there an > approved way? Norm

Re: The irony

2016-05-11 Thread Lorenzo Sutton
On 10/05/2016 20:03, DFS wrote: "There should be one-- and preferably only one --obvious way to do it." https://www.python.org/dev/peps/pep-0020/ "Explicit is better than implicit." What is your use case and scenario? :-) Maybe it's better to write a function to automatise this so that if i

Importing from __future__ doesn't work under PDB

2016-05-11 Thread martin846
Hi folks, I've been trying to use pdb to debug a Python 2.7 program and this has really stumped me. When debugging a program that uses from __future__ import division in Python 2.7, it would be useful to be able to have the same behaviour at the pdb prompt. However, it looks like pdb d