Re: python 2.7.x on MacOSX: failed dlopen() on .so's

2013-11-13 Thread Paul Smith
On Wed, 2013-11-13 at 16:00 -0800, Ned Deily wrote: > > The reason I've set PYTHONHOME is ultimately I need this installation to > > be relocatable. It's going to be shared across lots of different > > systems and they'll have the ability to copy it wherever they want. > > That could be problemat

Re: writing fortran equivalent binary file using python

2013-11-13 Thread David Froger
Hi Sudheer, Fortan binary format is not portable, and it's hard to work with it with different langages, compilers, architectures... In you're Python code, you also use NetCDF, which solve all these problems. I would suggest to use only NetCDF files in both Python and Fortran code. (So never use

Re: python 2.7.x on MacOSX: failed dlopen() on .so's

2013-11-13 Thread Ned Deily
On Nov 13, 2013, at 17:24 , Paul Smith wrote: > On Wed, 2013-11-13 at 16:00 -0800, Ned Deily wrote: >>> The reason I've set PYTHONHOME is ultimately I need this installation to >>> be relocatable. It's going to be shared across lots of different >>> systems and they'll have the ability to copy

Re: PyMyth: Global variables are evil... WRONG!

2013-11-13 Thread Steven D'Aprano
On Wed, 13 Nov 2013 23:33:22 -0500, Roy Smith wrote: > In article , > Chris Angelico wrote: > >> I have yet to see any language that gives true globals. At very best, >> they're just process-wide! Honestly. How am I supposed to write code >> that accesses variables running on my New York server

Re: PyMyth: Global variables are evil... WRONG!

2013-11-13 Thread Steven D'Aprano
On Wed, 13 Nov 2013 19:45:42 -0800, Rick Johnson wrote: > On Wednesday, November 13, 2013 8:45:16 PM UTC-6, Steven D'Aprano wrote: >> A fully-auto machine gun with a hair-trigger and no >> safety is no different from a single-barrel shotgun with a safety and >> a trigger lock! You can blow your

Re: PyMyth: Global variables are evil... WRONG!

2013-11-13 Thread Chris Angelico
On Thu, Nov 14, 2013 at 3:33 PM, Roy Smith wrote: > In article , > Chris Angelico wrote: > >> I have yet to see any language that gives true globals. At very best, >> they're just process-wide! Honestly. How am I supposed to write code >> that accesses variables running on my New York server? >

Re: PyMyth: Global variables are evil... WRONG!

2013-11-13 Thread Rick Johnson
On Wednesday, November 13, 2013 10:33:22 PM UTC-6, Roy Smith wrote: > Wait, aren't you the guy who's into MUDs? Yes he is. But that's his second favorite hobby. His first is filling the "Devils Advocate" slot when Steven is too busy -- doing WHATEVER Steven does when he's not here. God only

Re: PyMyth: Global variables are evil... WRONG!

2013-11-13 Thread Roy Smith
In article , Chris Angelico wrote: > I have yet to see any language that gives true globals. At very best, > they're just process-wide! Honestly. How am I supposed to write code > that accesses variables running on my New York server? Any one of a slew of remote procedure call protocols. These

Re: Automation

2013-11-13 Thread Rick Johnson
bob gailer wrote: > Does this have anything to do with statistics? Quantum > theory? Telephony? > > P = Pluto, V = Venus, S = Saturn? > > Help us understand - then we *might* be able to help you. bob later gailer wrote: > Oh ... will you please explain in good English and a lot > more detail. I

Re: Automation

2013-11-13 Thread Rick Johnson
On Sunday, November 3, 2013 5:32:46 PM UTC-6, Denis McMahon wrote: > Seems to me like you're using a sledgehammer to shell a peanut. And hopefully he knows whether or not he has a peanut allergy before he commits to enjoying the fruits of his labor. -- https://mail.python.org/mailman/listinfo/

Re: PyMyth: Global variables are evil... WRONG!

2013-11-13 Thread Rick Johnson
And what's this? *picks up hat* Where did this hat come from??? Spectator interrupts: Maybe Steven threw his hat in? No, no. Can't be. Steven would not wear something this old. I mean, it looks like something a farmer would put on a scarecrow or something??? *scratched head* OH

Re: Automation

2013-11-13 Thread renato . barbosa . pim . pereira
Thanks for all the help, I finished the program, follow the download link and a brief explanation of the same (in Portuguese, my native language), I apologize again for my bad english and any inconvenience that I have generated. http://mundodacana.blogspot.com.br/2013/11/programa-para-calculo-de

Re: PyMyth: Global variables are evil... WRONG!

2013-11-13 Thread Rick Johnson
On Wednesday, November 13, 2013 8:45:16 PM UTC-6, Steven D'Aprano wrote: > A fully-auto machine gun with a hair-trigger and no > safety is no different from a single-barrel shotgun with > a safety and a trigger lock! You can blow your foot off > with both! Yes. But in the case of the shotgun

Re: How to disable RTLD_NOW for Python 2.7.x dlopen() in Mac OS X Mavericks?

2013-11-13 Thread Ned Deily
In article , tcwa...@gmail.com wrote: > I'm facing a problem with a 3rd party C/C++ Framework (dynamic library) on > Mac OS X which I'm trying to import into Python using ctypes. Unfortunately > OS X has deprecated a function which is called from the Framework and is no > longer available as of

Re: PyMyth: Global variables are evil... WRONG!

2013-11-13 Thread Chris Angelico
On Thu, Nov 14, 2013 at 2:22 PM, Rick Johnson wrote: > Yeah, a "global" keyword that extends access ONLY as far as > module level scope -- hardly a *true* global. I have yet to see any language that gives true globals. At very best, they're just process-wide! Honestly. How am I supposed to write

Imports and cyclical dependencies

2013-11-13 Thread Brendan Abel
I have a relatively large python package that has several cyclical dependencies. The cyclical dependencies typically aren't a problem so long as I'm just importing modules, and not named attributes (ie. function, class, globals), which may not be defined at a given point in the import routine

Re: PyMyth: Global variables are evil... WRONG!

2013-11-13 Thread Rick Johnson
On Wednesday, November 13, 2013 7:09:42 PM UTC-6, Steven D'Aprano wrote: > On Wed, 13 Nov 2013 23:42:24 +, Rhodri James wrote: > > On Tue, 12 Nov 2013 02:06:09 -, Rick Johnson wrote: > >> Python has globals, but we just can't admit it! > > A different subject entirely, but no more accuratel

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Steven D'Aprano
On Thu, 14 Nov 2013 01:10:09 +, Mark Lawrence wrote: > Stop him and stop the spoon feeders and I stop. Simples. Oh, why didn't you say so in the first place? Okay, I'll just wave my magic wand and say the magic words and he'll go away... Hmmm, it doesn't seem to be working. Perhaps you

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Steven D'Aprano
On Wed, 13 Nov 2013 09:29:38 -0800, Ned Batchelder wrote: > I strongly recommend that you stay on Python 2, and focus on other > concerns. Nikos has been using Python 3.3 for his website for months now. -- Steven -- https://mail.python.org/mailman/listinfo/python-list

Re: Most discussion on comp.lang.python is about developing with Python

2013-11-13 Thread Steven D'Aprano
On Thu, 14 Nov 2013 10:29:03 +1100, Chris Angelico wrote: > On Thu, Nov 14, 2013 at 7:35 AM, bob gailer wrote: >> I am very disappointed to see so much energy and bandwidth going to >> conversations that bash individuals. >> >> > I agree, and there've been times when I've been part of the problem

Re: PyMyth: Global variables are evil... WRONG!

2013-11-13 Thread Steven D'Aprano
On Wed, 13 Nov 2013 18:10:59 -0800, Rick Johnson wrote: > On Wednesday, November 13, 2013 5:42:24 PM UTC-6, Rhodri James wrote: >> On Tue, 12 Nov 2013 02:06:09 -, Rick Johnson wrote: >> > PyMyth: Global variables are evil... WRONG! >> That's not a PyMyth. It's a CompSciMyth, or to be more acc

Re: Most discussion on comp.lang.python is about developing with Python

2013-11-13 Thread Cameron Simpson
On 13Nov2013 23:48, Steven D'Aprano wrote: > As a community, it is difficult to balance the conflicting needs here. If > we ignore Nikos completely, we appear unfriendly and indifferent to those > asking for help. If we answer his questions, we encourage him to post. It > is hard to find the r

Re: chroot to install packages

2013-11-13 Thread Chris Angelico
On Thu, Nov 14, 2013 at 1:12 PM, Steven D'Aprano wrote: > The next bit is the part I have no idea about... use your operating > system tools to set up a chroot jail for "inside.py". Google is your > friend there, I'm sure there will be many, many websites that discuss > chroot jails. I think Pyth

Re: PyMyth: Global variables are evil... WRONG!

2013-11-13 Thread Rick Johnson
On Wednesday, November 13, 2013 6:17:22 PM UTC-6, Tim Daneliuk wrote: > > But python modules can't be interfaces because interfaces > > should protect internal data, prevent external forces from > > meddling with internal state (EXCEPT via the rules of a > > predefined "contract"), hide dirty detai

Re: Using alpha software in production [was Re: Trying tcompile an use the Python 3.4a]

2013-11-13 Thread Chris Angelico
On Thu, Nov 14, 2013 at 1:00 PM, Steven D'Aprano wrote: > Yes, this! A master craftsman knows when to break the rules. I personally > would not run a public web app using alpha software because I know my > limitations... +1. Plenty of people know that a master knows when to break the rules... the

Re: PyMyth: Global variables are evil... WRONG!

2013-11-13 Thread Rick Johnson
On Wednesday, November 13, 2013 4:00:15 PM UTC-6, Andrew Cooper wrote: > And what do you do when the wizards bend space-time to > make PI exactly 3, for the ease of other calculations when > building a sorting machine? Are you telling me that these wizards can't be bothered to write the integer "3

Re: chroot to install packages

2013-11-13 Thread Steven D'Aprano
On Wed, 13 Nov 2013 17:52:42 -0800, Himanshu Garg wrote: > On Thursday, November 14, 2013 5:10:20 AM UTC+5:30, Chris Angelico > wrote: >> On Thu, Nov 14, 2013 at 1:31 AM, Himanshu Garg >> wrote: >> >> > I am writing a python script to run chroot command to chroot to a >> > linux distro and then

Re: PyMyth: Global variables are evil... WRONG!

2013-11-13 Thread Rick Johnson
On Wednesday, November 13, 2013 5:42:24 PM UTC-6, Rhodri James wrote: > On Tue, 12 Nov 2013 02:06:09 -, Rick Johnson wrote: > > PyMyth: Global variables are evil... WRONG! > That's not a PyMyth. It's a CompSciMyth, or to be more > accurate a good general Software Engineering guideline > regard

Using alpha software in production [was Re: Trying tcompile an use the Python 3.4a]

2013-11-13 Thread Steven D'Aprano
On Thu, 14 Nov 2013 12:27:58 +1100, Chris Angelico wrote: > On Thu, Nov 14, 2013 at 12:14 PM, Denis McMahon > wrote: >> Nobody is so stupid as to run alpha software on a production server[1] >> are they? >> >> [1] In this context, "production server" means any system facing the >> public interne

ogg2mp3 utility?

2013-11-13 Thread Tim Johnson
I've written an application that does some audio file conversions. I use mutagen for some of the mp3 file manipulation, but to convert ogg files to mp3 format I've been using subprocess to run the ogg2mp3 perl utility. (available from http://marginalhacks.com/) by David Madison. It's a "spot on"

Re: chroot to install packages

2013-11-13 Thread Chris Angelico
On Thu, Nov 14, 2013 at 12:52 PM, Himanshu Garg wrote: > How can I do that? Can you guide me? First off: Google Groups is making your posts very ugly. Please either fix them before posting, or use a better client. https://wiki.python.org/moin/GoogleGroupsPython As to chrooting: It'd look somet

Re: chroot to install packages

2013-11-13 Thread Himanshu Garg
On Thursday, November 14, 2013 5:10:20 AM UTC+5:30, Chris Angelico wrote: > On Thu, Nov 14, 2013 at 1:31 AM, Himanshu Garg wrote: > > > I am writing a python script to run chroot command to chroot to a linux > > distro and then run commands. How can I do this, as after chrooting, the > > scrip

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Chris Angelico
On Thu, Nov 14, 2013 at 12:14 PM, Denis McMahon wrote: > On Wed, 13 Nov 2013 16:17:22 +0200, Ferrous Cranus wrote: > >> root@secure [/home/nikos/www/cgi-bin]# python3 -V Python 3.4.0a4 > > Let me just check. > > Nobody is so stupid as to run alpha software on a production server[1] > are they? > >

Re: Most discussion on comp.lang.python is about developing with Python

2013-11-13 Thread Terry Reedy
On 11/13/2013 6:48 PM, Steven D'Aprano wrote: On Wed, 13 Nov 2013 15:35:56 -0500, bob gailer wrote: Or would you be willing to stop the bashing? I don't see that it helps anyone, and could be very offputting to other newbies. That's what I have been saying for a long time. I believe that wha

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Mark Lawrence
On 14/11/2013 00:57, Ned Batchelder wrote: On Wednesday, November 13, 2013 5:32:49 PM UTC-5, Mark Lawrence wrote: Wrong. You've once again not bothered to read the information that's been handed to you on a plate. If you'd followed the instructions you would not get the "No such file or direct

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Denis McMahon
On Wed, 13 Nov 2013 16:17:22 +0200, Ferrous Cranus wrote: > root@secure [/home/nikos/www/cgi-bin]# python3 -V Python 3.4.0a4 Let me just check. Nobody is so stupid as to run alpha software on a production server[1] are they? [1] In this context, "production server" means any system facing the

How to disable RTLD_NOW for Python 2.7.x dlopen() in Mac OS X Mavericks?

2013-11-13 Thread tcwan99
Hi, I've tried searching for topics related to dlopen() of dynamic libraries in the list but there's nothing relevant or recent. I'm facing a problem with a 3rd party C/C++ Framework (dynamic library) on Mac OS X which I'm trying to import into Python using ctypes. Unfortunately OS X has depre

Re: PyMyth: Global variables are evil... WRONG!

2013-11-13 Thread Steven D'Aprano
On Wed, 13 Nov 2013 23:42:24 +, Rhodri James wrote: > On Tue, 12 Nov 2013 02:06:09 -, Rick Johnson > wrote: > >> PyMyth: Global variables are evil... WRONG! > > That's not a PyMyth. It's a CompSciMyth, or to be more accurate a good > general Software Engineering guideline regardless of

Re: Chinese Zodiac - python project

2013-11-13 Thread Denis McMahon
On Wed, 13 Nov 2013 16:44:03 -0800, edmundicon wrote: > Den tisdagen den 12:e november 2013 kl. 23:50:03 UTC+1 skrev Denis > McMahon: >> On Tue, 12 Nov 2013 14:04:08 -0800, edmundicon wrote: >> >> >> >> > Greetings everyone! This is my first post on this forum :) >> >> >> > >> > TL;DR: I wan

Re: Most discussion on comp.lang.python is about developing with Python

2013-11-13 Thread Steven D'Aprano
On Thu, 14 Nov 2013 10:47:35 +1000, alex23 wrote: > On 14/11/2013 9:48 AM, Steven D'Aprano wrote: >> I believe that whatever >> negative effect Nikos the help-vampire is having, it is long ago >> overwhelmed by the negative of the anti-Nikos vigilantes. > > I don't know, the anti-Nikos-vigilante

pypy and ctypes

2013-11-13 Thread Peter Chant
I'm looking to speed up some python code. Replacing the python interpreter with pypy was impressive. I noted that use of ctypes (in cython?), specifically declaring variables as below, was reported as giving a useful result: cdef float myvar cdef int i under cython can provide a useful spee

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Ned Batchelder
On Wednesday, November 13, 2013 5:32:49 PM UTC-5, Mark Lawrence wrote: > Wrong. You've once again not bothered to read the information that's > been handed to you on a plate. If you'd followed the instructions you > would not get the "No such file or directory" error shown above. I'm > not go

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Johannes Findeisen
On Thu, 14 Nov 2013 00:00:04 +0200 Ferrous Cranus wrote: > Στις 13/11/2013 11:56 μμ, ο/η Mark Lawrence έγραψε: > > But i have gone to the link and did what it said and it didn't proved > usefull thats why i re-ask. Try looking for a package named "setuptools". I think that is the package you

writing fortran equivalent binary file using python

2013-11-13 Thread Sudheer Joseph
Hi, I need to write a binary file exactly as written by fortran code below to be read by another code which is part of a model which is not advisable to edit.I would like to use python for this purpose as python has mode flexibility and easy coding methods. character(40) :: TITLE="

Re: Most discussion on comp.lang.python is about developing with Python

2013-11-13 Thread Terry Reedy
On 11/13/2013 6:27 PM, Rhodri James wrote: On Wed, 13 Nov 2013 22:53:46 -, Terry Reedy wrote: On 11/13/2013 3:35 PM, bob gailer wrote: Is there a moderator for this list? Posts from new addresses go to moderators for spam deletion. There are a couple a day that are discarded. Posts wit

Re: Most discussion on comp.lang.python is about developing with Python

2013-11-13 Thread Chris Angelico
On Thu, Nov 14, 2013 at 11:41 AM, Rick Johnson wrote: > "POWER CORRUPTS: ABSOLUTE POWER CORRUPTS ABSOLUTELY." http://xkcd.com/643/ ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Most discussion on comp.lang.python is about developing with Python

2013-11-13 Thread alex23
On 14/11/2013 9:48 AM, Steven D'Aprano wrote: I believe that whatever negative effect Nikos the help-vampire is having, it is long ago overwhelmed by the negative of the anti-Nikos vigilantes. I don't know, the anti-Nikos-vigilante vigilantes are beginning to give them a run for their money, e

Re: Chinese Zodiac - python project

2013-11-13 Thread edmundicon
Den tisdagen den 12:e november 2013 kl. 23:50:03 UTC+1 skrev Denis McMahon: > On Tue, 12 Nov 2013 14:04:08 -0800, edmundicon wrote: > > > > > Greetings everyone! This is my first post on this forum :) > > > > > > TL;DR: I want to convert the gregorian years into Chinese years, and > > > deal

Re: Most discussion on comp.lang.python is about developing with Python

2013-11-13 Thread Rick Johnson
Hello Bob, I understand your concern but you need to realize there is not much that can (or should) be done *IF* we want to live in societies that are free from oppression. The minute we start drawing lines in the sand and punishing people for exercising their freedom of speech, is when we start

Re: PyMyth: Global variables are evil... WRONG!

2013-11-13 Thread Tim Daneliuk
On 11/11/2013 10:46 PM, Rick Johnson wrote: On Monday, November 11, 2013 8:47:09 PM UTC-6, Tim Daneliuk wrote: I think this is certainly the use case most people would suggest. But I think you may have missed the real reason most modern designers object to inter-module globals: The presence of

Re: Most discussion on comp.lang.python is about developing with Python

2013-11-13 Thread Chuck Quast
On Thursday, November 14, 2013 3:35:56 AM UTC+7, bob gailer wrote: > I joined a week or so ago. > > > > The subject line was copied from the description of comp.lang.python aka > > python-list@python.org. > > > > I am very disappointed to see so much energy and bandwidth going to > > conv

Re: python 2.7.x on MacOSX: failed dlopen() on .so's

2013-11-13 Thread Paul Smith
Thanks for the response Ned! On Wed, 2013-11-13 at 14:40 -0800, Ned Deily wrote: > There shouldn't be any problems with what you are trying to do. It > works for me with Python 2.7.6 and pycrypto-2.6.1. Some suggestions: > - Avoid --enable-shared on OS X at least initially. There are too > many

Re: python 2.7.x on MacOSX: failed dlopen() on .so's

2013-11-13 Thread Ned Deily
On Nov 13, 2013, at 14:59 , Paul Smith wrote: > Thanks for the response Ned! > > On Wed, 2013-11-13 at 14:40 -0800, Ned Deily wrote: >> There shouldn't be any problems with what you are trying to do. It >> works for me with Python 2.7.6 and pycrypto-2.6.1. Some suggestions: >> - Avoid --enabl

Re: Most discussion on comp.lang.python is about developing with Python

2013-11-13 Thread Ben Finney
bob gailer writes: > I joined a week or so ago. Welcome! Please feel free to start a new thread of dicussion about the Python programming language. > I am very disappointed to see so much energy and bandwidth going to > conversations that bash individuals. As am I. Let's talk about Python more

Re: PyMyth: Global variables are evil... WRONG!

2013-11-13 Thread Mark Lawrence
On 13/11/2013 23:42, Rhodri James wrote: On Tue, 12 Nov 2013 02:06:09 -, Rick Johnson wrote: PyMyth: Global variables are evil... WRONG! That's not a PyMyth. It's a CompSciMyth, or to be more accurate a good general Software Engineering guideline regardless of language. Like all guidel

Re: Most discussion on comp.lang.python is about developing with Python

2013-11-13 Thread Steven D'Aprano
On Wed, 13 Nov 2013 17:53:46 -0500, Terry Reedy wrote: >> Is there a moderator for this list? > > Posts from new addresses go to moderators for spam deletion. There are a > couple a day that are discarded. Posts with 'suspicious headers' also > get checked. Non-suspicious posts from known people

Re: Most discussion on comp.lang.python is about developing with Python

2013-11-13 Thread Steven D'Aprano
On Wed, 13 Nov 2013 15:35:56 -0500, bob gailer wrote: > Is there a moderator for this list? Sadly no. > Is there some other place for discussions that are completely OT and > also full of flames? Yes, there is private email. Unfortunately private email doesn't give the culprits the audience

Re: PyMyth: Global variables are evil... WRONG!

2013-11-13 Thread Rhodri James
On Tue, 12 Nov 2013 02:06:09 -, Rick Johnson wrote: PyMyth: Global variables are evil... WRONG! That's not a PyMyth. It's a CompSciMyth, or to be more accurate a good general Software Engineering guideline regardless of language. Like all guidelines it can be broken, but people wh

Re: chroot to install packages

2013-11-13 Thread Chris Angelico
On Thu, Nov 14, 2013 at 1:31 AM, Himanshu Garg wrote: > I am writing a python script to run chroot command to chroot to a linux > distro and then run commands. How can I do this, as after chrooting, the > script runs the commands relative to the outside not inside the chrooted env? Probably th

Re: Setting up for python django development with Debian Linux

2013-11-13 Thread D.M. Procida
Gary Roach wrote: > I have been trying to set up a python, django, mysql, virtualenvwrapper > and git development project and am really confused. All of the > documentation seems to ignore the apt-get installation methods used by > Debian Linux and its derivatives. I assume you've either worke

Re: Most discussion on comp.lang.python is about developing with Python

2013-11-13 Thread Rhodri James
On Wed, 13 Nov 2013 22:53:46 -, Terry Reedy wrote: On 11/13/2013 3:35 PM, bob gailer wrote: Is there a moderator for this list? Posts from new addresses go to moderators for spam deletion. There are a couple a day that are discarded. Posts with 'suspicious headers' also get checked.

Re: Most discussion on comp.lang.python is about developing with Python

2013-11-13 Thread Chris Angelico
On Thu, Nov 14, 2013 at 7:35 AM, bob gailer wrote: > I am very disappointed to see so much energy and bandwidth going to > conversations that bash individuals. > I agree, and there've been times when I've been part of the problem (usually in the form of trying to help Nikos, which results in stup

Re: Most discussion on comp.lang.python is about developing with Python

2013-11-13 Thread Terry Reedy
On 11/13/2013 3:35 PM, bob gailer wrote: I am very disappointed to see so much energy and bandwidth going to conversations that bash individuals. Me too. Is there a moderator for this list? Posts from new addresses go to moderators for spam deletion. There are a couple a day that are disc

Re: python 2.7.x on MacOSX: failed dlopen() on .so's

2013-11-13 Thread Ned Deily
In article , Ned Deily wrote: > There shouldn't be any problems with what you are trying to do. It works for > me with Python 2.7.6 and pycrypto-2.6.1. Some suggestions: > - Avoid --enable-shared on OS X at least initially. There are too many ways > things can go wrong. If you've built with

Re: python 2.7.x on MacOSX: failed dlopen() on .so's

2013-11-13 Thread Ned Deily
In article <1384370183.3496.472.camel@pdsdesk>, Paul Smith wrote: > I'm using MacOSX 10.7.5 with xcode 4.1, containing gcc 4.2.1 / clang 2.1 > (configure seems to choose gcc). > > I've tried this with both Python 2.7.5 and 2.7.6. I get the tarball, > unpack it, then: > > $ configure --prefix

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Mark Lawrence
On 13/11/2013 22:00, Ferrous Cranus wrote: Στις 13/11/2013 11:56 μμ, ο/η Mark Lawrence έγραψε: On 13/11/2013 21:39, Ferrous Cranus wrote: Στις 13/11/2013 11:30 μμ, ο/η Johannes Findeisen έγραψε: On Wed, 13 Nov 2013 23:19:53 +0200 Ferrous Cranus wrote: Στις 13/11/2013 7:45 μμ, ο/η Chris “Kwpo

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Ferrous Cranus
Στις 13/11/2013 11:56 μμ, ο/η Mark Lawrence έγραψε: On 13/11/2013 21:39, Ferrous Cranus wrote: Στις 13/11/2013 11:30 μμ, ο/η Johannes Findeisen έγραψε: On Wed, 13 Nov 2013 23:19:53 +0200 Ferrous Cranus wrote: Στις 13/11/2013 7:45 μμ, ο/η Chris “Kwpolska” Warrick έγραψε:> Get ez_setup.py and

Re: PyMyth: Global variables are evil... WRONG!

2013-11-13 Thread Andrew Cooper
On 13/11/2013 02:45, Rick Johnson wrote: > > "math.pi" should be "math.PI". and PI should be a CONSTANT. > And not just a pseudo constant, but a REAL constant that > cannot be changed. > And what do you do when the wizards bend space-time to make PI exactly 3, for the ease of other calculation

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Mark Lawrence
On 13/11/2013 21:39, Ferrous Cranus wrote: Στις 13/11/2013 11:30 μμ, ο/η Johannes Findeisen έγραψε: On Wed, 13 Nov 2013 23:19:53 +0200 Ferrous Cranus wrote: Στις 13/11/2013 7:45 μμ, ο/η Chris “Kwpolska” Warrick έγραψε:> Get ez_setup.py and get-pip.py, and run them with the desired Python.

Re: To whoever hacked into my Database

2013-11-13 Thread Ned Batchelder
On Wednesday, November 13, 2013 4:46:59 PM UTC-5, Ferrous Cranus wrote: > root@secure:~/lib64# ls -al | grep libkey > > lrwxrwxrwx 1 root root 20 Jun 22 2012 libkeyutils.so.1 -> > libkeyutils.so.1.3.0* > -rwxr-xr-x 1 root root 10192 Jun 22 2012 libkeyutils.so.1.3* > -rwxr-xr-x 1 root root 32920 J

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Ferrous Cranus
Στις 13/11/2013 11:44 μμ, ο/η Ned Batchelder έγραψε: On Wednesday, November 13, 2013 4:39:59 PM UTC-5, Ferrous Cranus wrote: Στις 13/11/2013 11:30 μμ, ο/η Johannes Findeisen έγραψε: On Wed, 13 Nov 2013 23:19:53 +0200 Ferrous Cranus wrote: Στις 13/11/2013 7:45 μμ, ο/η Chris “Kwpolska” Warrick

python 2.7.x on MacOSX: failed dlopen() on .so's

2013-11-13 Thread Paul Smith
Hi all. I need to build my own version of Python on a MacOSX system, and I can't seem to do it successfully. I need to build it with a particular location, etc. and so I can't use Homebrew or whatever: I need to compile it myself from the source tarball. I did look through the Homebrew recipe an

Most discussion on comp.lang.python is about developing with Python

2013-11-13 Thread bob gailer
I joined a week or so ago. The subject line was copied from the description of comp.lang.python aka python-list@python.org. I am very disappointed to see so much energy and bandwidth going to conversations that bash individuals. Is there a moderator for this list? Is there some other place

Re: To whoever hacked into my Database

2013-11-13 Thread Ferrous Cranus
root@secure:~/lib64# ls -al | grep libkey lrwxrwxrwx 1 root root 20 Jun 22 2012 libkeyutils.so.1 -> libkeyutils.so.1.3.0* -rwxr-xr-x 1 root root 10192 Jun 22 2012 libkeyutils.so.1.3* -rwxr-xr-x 1 root root 32920 Jun 22 2012 libkeyutils.so.1.3.0* root@secure:~/lib64# rpm -qf libkeyutils.so.1.3.

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Ferrous Cranus
Στις 13/11/2013 11:30 μμ, ο/η Johannes Findeisen έγραψε: On Wed, 13 Nov 2013 23:19:53 +0200 Ferrous Cranus wrote: Στις 13/11/2013 7:45 μμ, ο/η Chris “Kwpolska” Warrick έγραψε:> Get ez_setup.py and get-pip.py, and run them with the desired Python. Why can't i just use that? root@secure [~]

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Ned Batchelder
On Wednesday, November 13, 2013 4:39:59 PM UTC-5, Ferrous Cranus wrote: > Στις 13/11/2013 11:30 μμ, ο/η Johannes Findeisen έγραψε: > > On Wed, 13 Nov 2013 23:19:53 +0200 > > Ferrous Cranus wrote: > > > >> Στις 13/11/2013 7:45 μμ, ο/η Chris “Kwpolska” Warrick έγραψε:> > >>> Get ez_setup.py and get-p

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Johannes Findeisen
On Wed, 13 Nov 2013 23:19:53 +0200 Ferrous Cranus wrote: > Στις 13/11/2013 7:45 μμ, ο/η Chris “Kwpolska” Warrick έγραψε:> > > Get ez_setup.py and get-pip.py, and run them with the desired Python. > > > > > Why can't i just use that? > > root@secure [~]# sudo yum install python-pip > Loaded plug

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Ferrous Cranus
Στις 13/11/2013 7:45 μμ, ο/η Chris “Kwpolska” Warrick έγραψε: On Wed, Nov 13, 2013 at 5:38 PM, Ferrous Cranus wrote: Στις 13/11/2013 6:13 μμ, ο/η Steven D'Aprano έγραψε: and also is there a way to call it like #!/usr/bin/python Of course there is, but only if you wish to break your system

Re: Packing byte fields and an array object into struct

2013-11-13 Thread Ned Batchelder
On Wednesday, November 13, 2013 3:41:03 PM UTC-5, krishna...@gmail.com wrote: > Thanks for your reply Ned! > > I tried this your suggestion and this is what it complains... > > os_inst_bytes = struct.pack('7BI512s', 0, 0x51, 0x10, 5, 0, 0xD, 0x80, 0, '') > > -

Re: Packing byte fields and an array object into struct

2013-11-13 Thread krishna2prasad
Correction in the last input line... In [16]: result = struct.unpack('5p', os_inst[11:16]) --- error Traceback (most recent call last) in () > 1 result = struct.unpack('5p', os_inst[11

Re: Packing byte fields and an array object into struct

2013-11-13 Thread krishna2prasad
Thanks for your reply Ned! I tried this your suggestion and this is what it complains... os_inst_bytes = struct.pack('7BI512s', 0, 0x51, 0x10, 5, 0, 0xD, 0x80, 0, '') --- error Traceback

Re: To whoever hacked into my Database

2013-11-13 Thread William Ray Wing
On Nov 13, 2013, at 1:27 PM, superchromix wrote: > > > hi all, > > I've been thinking about learning Python for scientific programming.. but all > of these flame war type posts make the user community look pretty lame. How > did all of these nice packages get written when most of the user i

Re: To whoever hacked into my Database

2013-11-13 Thread Oscar Benjamin
On Nov 13, 2013 6:31 PM, "superchromix" wrote: > > I've been thinking about learning Python for scientific programming.. but all of these flame war type posts make the user community look pretty lame. How did all of these nice packages get written when most of the user interaction is this??

Oh look, another language (ceylon)

2013-11-13 Thread Neal Becker
http://ceylon-lang.org/documentation/1.0/introduction/ -- https://mail.python.org/mailman/listinfo/python-list

Re: To whoever hacked into my Database

2013-11-13 Thread Zachary Ware
On Wed, Nov 13, 2013 at 12:27 PM, superchromix wrote: > > > hi all, > > I've been thinking about learning Python for scientific programming.. but all > of these flame war type posts make the user community look pretty lame. How > did all of these nice packages get written when most of the user

Re: To whoever hacked into my Database

2013-11-13 Thread Steve Simmons
On 13/11/2013 19:27, superchromix wrote: hi all, I've been thinking about learning Python for scientific programming.. but all of these flame war type posts make the user community look pretty lame. How did all of these nice packages get written when most of the user interaction is th

Re: To whoever hacked into my Database

2013-11-13 Thread lconrad
On Wednesday 13/11/2013 at 12:31 pm, superchromix wrote: hi all, I've been thinking about learning Python for scientific programming.. but all of these flame war type posts make the user community look pretty lame. How did all of these nice packages get written when most of the user i

Re: Packing byte fields and an array object into struct

2013-11-13 Thread Ned Batchelder
On Wednesday, November 13, 2013 1:31:49 PM UTC-5, krishna...@gmail.com wrote: > Hello, > > I am trying to build a structure to be passed down to an I2C device driver. > The driver expects a struct that has a data array of size 512 bytes among > other things. This is my code - > > rd_wr

Packing byte fields and an array object into struct

2013-11-13 Thread krishna2prasad
Hello, I am trying to build a structure to be passed down to an I2C device driver. The driver expects a struct that has a data array of size 512 bytes among other things. This is my code - rd_wr = 0x0 # Read operation i2c_addr= addr mux = mux_sel multi_len

Re: To whoever hacked into my Database

2013-11-13 Thread Ned Batchelder
On Wednesday, November 13, 2013 1:27:39 PM UTC-5, superchromix wrote: > hi all, > > I've been thinking about learning Python for scientific programming.. but all > of these flame war type posts make the user community look pretty lame. How > did all of these nice packages get written when most

Re: To whoever hacked into my Database

2013-11-13 Thread superchromix
hi all, I've been thinking about learning Python for scientific programming.. but all of these flame war type posts make the user community look pretty lame. How did all of these nice packages get written when most of the user interaction is this?? Can anyone tell me, is there another

Re: To whoever hacked into my Database

2013-11-13 Thread Antoon Pardon
Op 13-11-13 15:10, Ian Kelly schreef: >> Well you can expect all you want. It is not going to happen. Your >> expectations are completely unrealistic and the way you react will >> be perceived by a number of people as just an attempt to getting those >> that are frustrated silenced without much ca

Re: Reading c struct via python

2013-11-13 Thread Lakshmipathi.G
> Looks like your "e"... Is that the key field? Yes, you are right 'e' is the key. And rest of them are data. >AND the order of the items is "o" before "i" >-- that doesn't seem to match your C struct definition. Sorry, I was testing the bdb and while doing that I noticed, c-struct order is not

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Chris “Kwpolska” Warrick
On Wed, Nov 13, 2013 at 5:38 PM, Ferrous Cranus wrote: > Στις 13/11/2013 6:13 μμ, ο/η Steven D'Aprano έγραψε: > > >>> and also is there a way to call it like #!/usr/bin/python >> >> >> Of course there is, but only if you wish to break your system. The OS >> will be expecting /usr/bin/python to be

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Ned Batchelder
On Wednesday, November 13, 2013 11:38:53 AM UTC-5, Ferrous Cranus wrote: > Στις 13/11/2013 6:13 μμ, ο/η Steven D'Aprano έγραψε: > > >> and also is there a way to call it like #!/usr/bin/python > > > > Of course there is, but only if you wish to break your system. The OS > > will be expecting /usr/

Re: Jabberbot

2013-11-13 Thread Mark Lawrence
On 13/11/2013 16:42, Matt Graves wrote: On Wednesday, November 13, 2013 11:32:24 AM UTC-5, Mark Lawrence wrote: On 13/11/2013 16:12, Matt Graves wrote: I'm using the jabberbot library and there is not a whole lot of documentation on it. Does anyone have experience with this library? [

Re: Jabberbot

2013-11-13 Thread Matt Graves
On Wednesday, November 13, 2013 11:32:24 AM UTC-5, Mark Lawrence wrote: > On 13/11/2013 16:12, Matt Graves wrote: > > > I'm using the jabberbot library and there is not a whole lot of > > documentation on it. Does anyone have experience with this library? > > > > > > > [snip code from http://

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Ferrous Cranus
Στις 13/11/2013 6:13 μμ, ο/η Steven D'Aprano έγραψε: and also is there a way to call it like #!/usr/bin/python Of course there is, but only if you wish to break your system. The OS will be expecting /usr/bin/python to be Python 2. Leave it be. Okey i will leave it be although i dislike the i

Re: Jabberbot

2013-11-13 Thread Mark Lawrence
On 13/11/2013 16:12, Matt Graves wrote: I'm using the jabberbot library and there is not a whole lot of documentation on it. Does anyone have experience with this library? [snip code from http://thp.io/2007/python-jabberbot/] I cannot figure out how I would have it simulate a conversation.

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Steven D'Aprano
On Wed, 13 Nov 2013 16:17:22 +0200, Ferrous Cranus wrote: > $ mkdir temp > $ cd temp > $ wget http://www.python.org/ftp/python/3.4/Python-3.4.tar.bz2 $ tar > -xjvf Python-3.4.tar.bz2 > $ cd Python-3.3.2 > $ ./configure > $ make && make test > $ su > # make install > # exit > $ $ cd ../ && rm -rf P

  1   2   >