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

2013-11-14 Thread Antoon Pardon
Op 14-11-13 00:48, Steven D'Aprano schreef: > 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. Unfor

Re: chroot to install packages

2013-11-14 Thread Himanshu Garg
I have done it but having a problem. I have written a script os.chroot("/lxc/test_container/rootfs") subprocess.call(["apt-key", "add", "/root/package.key"]) subprocess.call(["apt-get", "update"]) os._exit(0) Now, this script is working properly, entering the chroot jail and adding the apt key

Re: chroot to install packages

2013-11-14 Thread Chris Angelico
On Thu, Nov 14, 2013 at 8:29 PM, Himanshu Garg wrote: > I have written a script > > os.chroot("/lxc/test_container/rootfs") > subprocess.call(["apt-key", "add", "/root/package.key"]) > subprocess.call(["apt-get", "update"]) > > os._exit(0) > > Now, this script is working properly, entering the chr

Re: chroot to install packages

2013-11-14 Thread Himanshu Garg
> os.chdir("/") immediately afterwards. In any case, it's worth a try. > ChrisA Very thanks. the trick worked. -- https://mail.python.org/mailman/listinfo/python-list

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

2013-11-14 Thread unknown
On Thu, 14 Nov 2013 14:29:41 +1100, Chris Angelico wrote: > 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 b

Re: Trying tcompile an use the Python 3.4a

2013-11-14 Thread Ferrous Cranus
Στις 14/11/2013 2:54 πμ, ο/η 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 packag

Re: To whoever hacked into my Database

2013-11-14 Thread Ferrous Cranus
Στις 13/11/2013 11:46 μμ, ο/η 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.

Re: To whoever hacked into my Database

2013-11-14 Thread Alister
On Thu, 14 Nov 2013 12:46:29 +0200, Ferrous Cranus wrote: >> This must have happened when i was handling my root passwords out in >> the open. >> >> Served me well. > At least you seem to be learning this lesson > > > Can somebody explain to me why there is so many failed attempts to login > int

Re: To whoever hacked into my Database

2013-11-14 Thread Ferrous Cranus
Στις 14/11/2013 2:32 μμ, ο/η Alister έγραψε: On Thu, 14 Nov 2013 12:46:29 +0200, Ferrous Cranus wrote: This must have happened when i was handling my root passwords out in the open. Served me well. At least you seem to be learning this lesson Can somebody explain to me why there is so man

Re: To whoever hacked into my Database

2013-11-14 Thread Robert Kern
On 2013-11-14 13:24, Ferrous Cranus wrote: But the response wasn't clear to me. Ia this randomly normal background Internet radiation or some personal directed attacks? We don't know. This is not the appropriate forum for such questions. Please find a different forum for your server administr

Re: To whoever hacked into my Database

2013-11-14 Thread Chris Angelico
On Fri, Nov 15, 2013 at 12:24 AM, Ferrous Cranus wrote: > But the response wasn't clear to me. > Ia this randomly normal background Internet radiation or some personal > directed attacks? This is not a Python question. You have to judge for yourself whether the antagonism you've created here and

Odd msg received from list

2013-11-14 Thread Verde Denim
I got an odd message this morning from the list telling me that my account was de-activated due to excessive bounces. I've only sent a handful of messages to this board, but do read an awful lot of the posts in order to learn more about the language. The message also listed my account password, whi

Re: Trying tcompile an use the Python 3.4a

2013-11-14 Thread Nick the Gr33k
Will someone please tell me how to install 'pip' My website is not working because modules are missing and the only way i can install them is by installing python's module manager 'pip' but 'yum install python-pip' fails. How would i install the damn thing? These action should be done via pa

Re: Odd msg received from list

2013-11-14 Thread Joel Goldstick
On Thu, Nov 14, 2013 at 8:53 AM, Verde Denim wrote: > I got an odd message this morning from the list telling me that my > account was de-activated due to excessive bounces. I've only sent a > handful of messages to this board, but do read an awful lot of the posts > in order to learn more about t

Re: Odd msg received from list

2013-11-14 Thread Chris Angelico
On Fri, Nov 15, 2013 at 12:53 AM, Verde Denim wrote: > I got an odd message this morning from the list telling me that my > account was de-activated due to excessive bounces. I've only sent a > handful of messages to this board, but do read an awful lot of the posts > in order to learn more about

Re: Trying tcompile an use the Python 3.4a

2013-11-14 Thread Chris Angelico
On Fri, Nov 15, 2013 at 12:50 AM, Nick the Gr33k wrote: > These action should be done via package managers but i wasn't ven able to > install python 3.4a like that, i had to compile it form source when the easy > thing to do was "yum install python3" > > what wrong with this 'yum' manager? With y

Re: To whoever hacked into my Database

2013-11-14 Thread Alister
On Thu, 14 Nov 2013 15:24:32 +0200, Ferrous Cranus wrote: > Στις 14/11/2013 2:32 μμ, ο/η Alister έγραψε: >> On Thu, 14 Nov 2013 12:46:29 +0200, Ferrous Cranus wrote: This must have happened when i was handling my root passwords out in the open. Served me well. >>> >> At least y

Re: Odd msg received from list

2013-11-14 Thread Roy Smith
In article , Verde Denim wrote: > I got an odd message this morning from the list telling me that my > account was de-activated due to excessive bounces. I've only sent a > handful of messages to this board, but do read an awful lot of the posts > in order to learn more about the language. The m

Re: writing fortran equivalent binary file using python

2013-11-14 Thread Oscar Benjamin
On 14 November 2013 00:53, Sudheer Joseph wrote: > My trial code with Python (data is read from file here) > > from netCDF4 import Dataset as nc > import numpy as np > XFIN=0.0,YFIN=-90.0,NREC=1461,DXIN=0.5;DYIN=0.5 > TITLE="NCMRWF 6HOURLY FORCING MKS" > nf=nc('ncmrwf_uv.nc') > ncv=nf.variables.ke

Program Translation - Nov. 14, 2013

2013-11-14 Thread E.D.G.
Posted by E.D.G. on November 14, 2013 In view of the fact that I mentioned the following project in both Perl and Python Newsgroup notes and did not get any hostile responses I am going to take a chance and mention it again in all three of these Newsgroups. People posting responses mig

Re: Odd msg received from list

2013-11-14 Thread MRAB
On 14/11/2013 13:53, Verde Denim wrote: I got an odd message this morning from the list telling me that my account was de-activated due to excessive bounces. I've only sent a handful of messages to this board, but do read an awful lot of the posts in order to learn more about the language. The me

Re: Odd msg received from list

2013-11-14 Thread Tim Golden
On 14/11/2013 13:53, Verde Denim wrote: > I got an odd message this morning from the list telling me that my > account was de-activated due to excessive bounces. I've only sent a > handful of messages to this board, but do read an awful lot of the posts > in order to learn more about the language.

Re: Odd msg received from list

2013-11-14 Thread Chris Angelico
On Fri, Nov 15, 2013 at 1:11 AM, Roy Smith wrote: > In article , > Verde Denim wrote: > >> I got an odd message this morning from the list telling me that my >> account was de-activated due to excessive bounces. I've only sent a >> handful of messages to this board, but do read an awful lot of t

Re: Odd msg received from list

2013-11-14 Thread Chris Angelico
On Fri, Nov 15, 2013 at 1:24 AM, MRAB wrote: > I'm wondering if it has anything to do with spam filtering. > > If you're using a spam filter (it might be offered as a feature by your > ISP) that bounces instead of just deleting, and the spam looks like it > comes from or through the list, then the

Re: Odd msg received from list

2013-11-14 Thread Joost Molenaar
On Thu, Nov 14, 2013 at 2:53 PM, Verde Denim wrote: > Has anyone else received a message like this? I did too. It seems to me that Gmail's spam filter might have been overly enthusiastic, but the only way to find out is to look at the bounces that the list software received. Yesterday I also rec

Re: writing fortran equivalent binary file using python

2013-11-14 Thread Sudheer Joseph
Thank you, But it wont allow to write it in unformatted way so that the fortran code can read with open(11,file="input.bin") read(11) IWI,JWI,XFIN,YFIN,DXIN,DYIN,NREC,WDAY with best regards, sudheer On Thu, Nov 14, 2013 at 7:48 PM, Oscar Benjamin wrote: > On 14 November

Re: writing fortran equivalent binary file using python

2013-11-14 Thread Antoon Pardon
Op 14-11-13 01:53, Sudheer Joseph schreef: > 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 a

@gmail.com accounts put on hold

2013-11-14 Thread Tim Golden
Several people have reported Mailman messages notifying them of their subscription being suspended because of bounces. The notifications are pukka and appear to have resulted from a reaction by Google's mail servers to messages via this list from an invalid address at a valid domain. The Mailman

Re: Invalid syntax with print "Hello World"

2013-11-14 Thread johannes . gunz97
Am Donnerstag, 12. März 2009 07:57:11 UTC+1 schrieb Henrik Bechmann: > obviously total mewbiew: > > My first program in Python Windows > > print "Hello World" > > I select Run/Run Module and get an error: > > Syntax error, with the closing quote highlighted. > > Tried with single quotes as wel

Re: pypy and ctypes

2013-11-14 Thread Neil Cerutti
On 2013-11-14, Peter Chant wrote: > Or is it that - if I keep the code as simple as possible, PyPy > is about as fast as you can get? PyPy profiles your code as it runs and creates, using a just-in-time compiler, highly optimized versions of frequently run sections. You don't have to declare type

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

2013-11-14 Thread Paul Smith
On Wed, 2013-11-13 at 23:06 -0800, Ned Deily wrote: > On Nov 13, 2013, at 17:24 , Paul Smith wrote: > > I'm discovering that this is tricky. I don't want to bring OS wars into > > it, but this kind of thing is so simple and just works on GNU/Linux. I > > guess I've been spoiled :-). > > Well, i

Converting hex data to image

2013-11-14 Thread Shyam Parimal Katti
I am implementing an authentication system(in Django) using LDAP as the backend(django-auth-ldap). When we fetch the data from the LDAP server for a particular valid user, the data associated with the user contains the thumbnail photo in hex representation. E.x.: [('CN=XX,OU=Users,OU=Accounts,DC=t

Re: Odd msg received from list

2013-11-14 Thread Gisle Vanem
"Chris Angelico" wrote: I agree in general, but I happen to be pretty familiar with Mailman alerts, and this one was genuine. Also, it pointed to what does appear to be the right address (mail.python.org). There's definitely something going around that's causing problems for gmail users; It h

Re: @gmail.com accounts put on hold

2013-11-14 Thread Matty Sarro
Whew, thank you for your hard work. I was really worried I would stop getting emails about Islam, Hacking Databases, and the Ruby Community ;) Kidding, kidding. Great job with the fast workaround! On Thu, Nov 14, 2013 at 10:05 AM, Tim Golden wrote: > Several people have reported Mailman messag

Re: Converting hex data to image

2013-11-14 Thread Tim Golden
On 14/11/2013 15:32, Shyam Parimal Katti wrote: > I am implementing an authentication system(in Django) using LDAP as the > backend(django-auth-ldap). When we fetch the data from the LDAP server > for a particular valid user, the data associated with the user contains > the thumbnail photo in hex r

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

2013-11-14 Thread Nobody
On Wed, 13 Nov 2013 15:35:56 -0500, 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 > conversations that bash individual

Re: ogg2mp3 utility?

2013-11-14 Thread Tim Johnson
* Tim Johnson [131113 17:06]: > 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.

Re: Program Translation - Nov. 14, 2013

2013-11-14 Thread mecej4
On 11/14/2013 8:18 AM, E.D.G. wrote: Posted by E.D.G. on November 14, 2013 In view of the fact that I mentioned the following project in both Perl and Python Newsgroup notes and did not get any hostile responses I am going to take a chance and mention it again in all three of these Newsg

Re: Automation

2013-11-14 Thread Mark Lawrence
On 14/11/2013 03:56, renato.barbosa.pim.pere...@gmail.com wrote: I apologize again for my bad english and any inconvenience that I have generated. I do wish that people would stop apologising for poor English, it's an extremely difficult language. IIRC there are eight different ways of pro

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

2013-11-14 Thread Rick Johnson
On Wednesday, November 13, 2013 11:50:40 PM UTC-6, Steven D'Aprano wrote: > 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 fro

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

2013-11-14 Thread Joel Goldstick
On Thu, Nov 14, 2013 at 12:26 PM, Rick Johnson wrote: > On Wednesday, November 13, 2013 11:50:40 PM UTC-6, Steven D'Aprano wrote: >> 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

Re: Program Translation - Nov. 14, 2013

2013-11-14 Thread Gordon Sande
On 2013-11-14 17:07:45 +, mecej4 said: On 11/14/2013 8:18 AM, E.D.G. wrote: Posted by E.D.G. on November 14, 2013 In view of the fact that I mentioned the following project in both Perl and Python Newsgroup notes and did not get any hostile responses I am going to take a chance and mentio

The Spirit of Python

2013-11-14 Thread Roy Smith
https://twitter.com/dabeaz/status/400813245532876800/photo/1 "Now THIS is a Python book I should get. I'm guessing it's about design patterns. Or maybe just the GIL. " --- Roy Smith r...@panix.com -- https://mail.python.org/mailman/listinfo/python-list

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

2013-11-14 Thread Ned Deily
In article <1384442536.3496.532.camel@pdsdesk>, Paul Smith wrote: [...] > By relocatable I mean "runnable from any location"; i.e., not fixed. I > have a wrapper around the Python executable that can compute the correct > root directory and set any environment variables or add flags or > whateve

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

2013-11-14 Thread Ethan Furman
On 11/14/2013 09:37 AM, Joel Goldstick wrote: So, beyond that, what is the point of the thread? You haven't met Ranting Rick yet? He's a troll's troll, outdone only by one other whose name I don't remember. His posts are, amazingly enough, rants. Usually about his (mis)perceptions of the

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

2013-11-14 Thread Joel Goldstick
On Thu, Nov 14, 2013 at 12:56 PM, Ethan Furman wrote: > On 11/14/2013 09:37 AM, Joel Goldstick wrote: >> >> >> So, beyond that, what is the point of the thread? > > > You haven't met Ranting Rick yet? He's a troll's troll, outdone only by one > other whose name I don't remember. > > His posts are

Re: The Spirit of Python

2013-11-14 Thread jkn
On Thursday, November 14, 2013 6:11:08 PM UTC, Roy Smith wrote: > https://twitter.com/dabeaz/status/400813245532876800/photo/1 > > > "Now THIS is a Python book I should get.  I'm guessing it's about design > patterns. Or maybe just the GIL. " > Excellent, thanks fro the link. And is that a boo

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

2013-11-14 Thread Mark Lawrence
On 14/11/2013 17:56, Ethan Furman wrote: On 11/14/2013 09:37 AM, Joel Goldstick wrote: So, beyond that, what is the point of the thread? You haven't met Ranting Rick yet? He's a troll's troll, outdone only by one other whose name I don't remember. His posts are, amazingly enough, rants. Us

Running python's own unit tests?

2013-11-14 Thread Russell E. Owen
I'm building python from source and trying to figure out how to test the result. I must be overlooking something obvious, but I looked through the documentation and source and tried some google searches (which turn up plenty about writing unit tests in python, but nothing about testing a python

Re: Trying tcompile an use the Python 3.4a

2013-11-14 Thread Mark Lawrence
On 14/11/2013 02:55, Steven D'Aprano wrote: Please Mark, and anyone else reading, I'm begging you on bended knee, take your flaming off list. You can be a valued member of this community when you put your mind to it, but your prideful refusal to stop attacking Nikos is helping to wreck this comm

Re: Running python's own unit tests?

2013-11-14 Thread Tim Golden
On 14/11/2013 19:12, Russell E. Owen wrote: I'm building python from source and trying to figure out how to test the result. I must be overlooking something obvious, but I looked through the documentation and source and tried some google searches (which turn up plenty about writing unit tests in

Re: Trying tcompile an use the Python 3.4a

2013-11-14 Thread Benjamin Kaplan
On Nov 14, 2013 5:55 AM, "Nick the Gr33k" wrote: > > Will someone please tell me how to install 'pip' > > My website is not working because modules are missing and the only way i can install them is by installing python's module manager 'pip' > > but 'yum install python-pip' fails. > > How would i

Django Weekend Cardiff

2013-11-14 Thread D.M. Procida
(With apologies if you have already seen this on another email list or newsgroup.) The UK's first-ever Django conference will take place on the 7th-9th February 2014 in Cardiff, Wales. The programme for the event: Friday: tutorials and demonstrations (also ope

Plot a contour inside a contour

2013-11-14 Thread Isaac Won
I tried to plot one smaller contour inside of the other larger contour. I have two different 2D-arrays. One is with smaller grid spacing and smaller domain size and the other is with larger spacing and larger domain size. So, I tried to use fig.add_axes function as follows: fig = plt.figure() ax

Re: Automation

2013-11-14 Thread Alister
On Thu, 14 Nov 2013 17:10:02 +, Mark Lawrence wrote: > On 14/11/2013 03:56, renato.barbosa.pim.pere...@gmail.com wrote: >> I apologize again for my bad english and any inconvenience that I have >> generated. >> >> > I do wish that people would stop apologising for poor English, it's an > extre

Re: Running python's own unit tests?

2013-11-14 Thread Zachary Ware
On Thu, Nov 14, 2013 at 1:12 PM, Russell E. Owen wrote: > I'm building python from source and trying to figure out how to test the > result. I must be overlooking something obvious, but I looked through > the documentation and source and tried some google searches (which turn > up plenty about wri

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

2013-11-14 Thread Alister
On Thu, 14 Nov 2013 09:56:04 -0800, Ethan Furman wrote: > On 11/14/2013 09:37 AM, Joel Goldstick wrote: >> >> So, beyond that, what is the point of the thread? > > You haven't met Ranting Rick yet? He's a troll's troll, outdone only by > one other whose name I don't remember. > > His posts are,

Re: Running python's own unit tests?

2013-11-14 Thread Tim Golden
On 14/11/2013 20:13, Zachary Ware wrote: On Thu, Nov 14, 2013 at 1:12 PM, Russell E. Owen wrote: I'm building python from source and trying to figure out how to test the result. I must be overlooking something obvious, but I looked through the documentation and source and tried some google sear

Re: The Spirit of Python

2013-11-14 Thread Ethan Furman
On 11/14/2013 10:47 AM, jkn wrote: On Thursday, November 14, 2013 6:11:08 PM UTC, Roy Smith wrote: https://twitter.com/dabeaz/status/400813245532876800/photo/1 "Now THIS is a Python book I should get. I'm guessing it's about design patterns. Or maybe just the GIL." Excellent, thanks fro t

Re: Getting globals of the caller, not the defining module

2013-11-14 Thread Rotwang
On 11/11/2013 12:02, sg...@hotmail.co.uk wrote: (Sorry for posting through GG, I'm at work.) On Monday, November 11, 2013 11:25:42 AM UTC, Steven D'Aprano wrote: Suppose I have a function that needs access to globals: # module A.py def spam(): g = globals() # this gets globals from A

Re: Converting hex data to image

2013-11-14 Thread Ben Finney
Shyam Parimal Katti writes: > When we fetch the data from the LDAP server for a particular valid > user, the data associated with the user contains the thumbnail photo > in hex representation. E.x.: > > [('CN=XX,OU=Users,OU=Accounts,DC=test,DC=com', {'msExchBlockedSendersHash': > ['\xce'], 'mailN

Re: Invalid syntax with print "Hello World"

2013-11-14 Thread bob gailer
On 11/14/2013 10:05 AM, johannes.gun...@gmail.com wrote: Am Donnerstag, 12. März 2009 07:57:11 UTC+1 schrieb Henrik Bechmann: obviously total mewbiew: My first program in Python Windows print "Hello World" I assume you are running Python 3 in which case you need print("Hello World") -- Bob

Re: Converting hex data to image

2013-11-14 Thread Ben Finney
Ben Finney writes: > To turn a byte string into a file-like object for use with PIL, extract > the byte string as ‘image_data’, use the standard library ‘io.StringIO’ > class http://docs.python.org/3/library/io.html#io.StringIO>, then > create a new ‘PIL.Image’ object by reading from that pseudo-

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

2013-11-14 Thread Peter Pearson
On Wed, 13 Nov 2013 15:35:56 -0500, 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 > conversations that bash individuals.

Re: Invalid syntax with print "Hello World"

2013-11-14 Thread unknown
On Thu, 14 Nov 2013 07:05:08 -0800, johannes.gunz97 wrote: > Am Donnerstag, 12. März 2009 07:57:11 UTC+1 schrieb Henrik Bechmann: >> obviously total mewbiew: >> >> My first program in Python Windows >> >> print "Hello World" >> >> I select Run/Run Module and get an error: >> >> Syntax error, w

Re: Plot a contour inside a contour

2013-11-14 Thread John Ladasky
On Thursday, November 14, 2013 11:39:37 AM UTC-8, Isaac Won wrote: > I tried to plot one smaller contour inside of the other larger contour. Using what software? A plotting package is not part of the Python standard library. You did not show the import statements in your code. If I had to gues

Re: Converting hex data to image

2013-11-14 Thread Shyam Parimal Katti
Perfect. Thank you @Ben and @Tim On Thu, Nov 14, 2013 at 4:29 PM, Ben Finney wrote: > Ben Finney writes: > > > To turn a byte string into a file-like object for use with PIL, extract > > the byte string as ‘image_data’, use the standard library ‘io.StringIO’ > > class http://docs.python.org/3/l

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

2013-11-14 Thread Chris Angelico
On Fri, Nov 15, 2013 at 7:12 AM, Alister wrote: > Ricks non trolling posts do give him enough credibility to avoid > dismissing his ideas out of hand When he's talking about Tkinter, he knows his stuff, and is orders of magnitude more helpful than I would be (as I don't know Tkinter). When he's t

Re: Automation

2013-11-14 Thread Chris Angelico
On Fri, Nov 15, 2013 at 7:03 AM, Alister wrote: > On Thu, 14 Nov 2013 17:10:02 +, Mark Lawrence wrote: > >> On 14/11/2013 03:56, renato.barbosa.pim.pere...@gmail.com wrote: >>> I apologize again for my bad english and any inconvenience that I have >>> generated. >>> >>> >> I do wish that peopl

Re: Odd msg received from list

2013-11-14 Thread Terry Reedy
On 11/14/2013 9:26 AM, Tim Golden wrote: On 14/11/2013 13:53, Verde Denim wrote: I got an odd message this morning from the list telling me that my account was de-activated due to excessive bounces. I've only sent a handful of messages to this board, but do read an awful lot of the posts in orde

Re: Running python's own unit tests?

2013-11-14 Thread Terry Reedy
On 11/14/2013 2:12 PM, Russell E. Owen wrote: I'm building python from source and trying to figure out how to test the result. I must be overlooking something obvious, but I looked through the documentation and source and tried some google searches (which turn up plenty about writing unit tests i

Re: Plot a contour inside a contour

2013-11-14 Thread Isaac Won
On Thursday, November 14, 2013 2:01:39 PM UTC-8, John Ladasky wrote: > On Thursday, November 14, 2013 11:39:37 AM UTC-8, Isaac Won wrote: > > > I tried to plot one smaller contour inside of the other larger contour. > > > > Using what software? A plotting package is not part of the Python sta

Re: Trying tcompile an use the Python 3.4a

2013-11-14 Thread Chris Angelico
On Fri, Nov 15, 2013 at 6:12 AM, Mark Lawrence wrote: > On 14/11/2013 02:55, Steven D'Aprano wrote: >> >> >> Please Mark, and anyone else reading, I'm begging you on bended knee, >> take your flaming off list. You can be a valued member of this community >> when you put your mind to it, but your p

Re: pypy and ctypes

2013-11-14 Thread Peter Chant
On 11/14/2013 03:13 PM, Neil Cerutti wrote: On 2013-11-14, Peter Chant wrote: Or is it that - if I keep the code as simple as possible, PyPy is about as fast as you can get? PyPy profiles your code as it runs and creates, using a just-in-time compiler, highly optimized versions of frequently

Re: Odd msg received from list

2013-11-14 Thread Gregory Ewing
Verde Denim wrote: The message also listed my account password, which I found odd. You mean the message contained your actual password, in plain text? That's not just odd, it's rather worrying for at least two reasons. First, what business does a message like that have carrying a password, and

How to np.vectorize __call__ method

2013-11-14 Thread Yaşar Arabacı
I am cross-posting from: http://stackoverflow.com/q/19990863/886669 I am following, [quant-econ](http://quant-econ.net/numpy.html) tutorial. I am trying the exercise where I am supposed to implement a [Empirical Cumulative Probability Funcion](http://en.wikipedia.org/wiki/Empirical_distribution_fu

Implementing #define macros similar to C on python

2013-11-14 Thread JL
One of my favorite tools in C/C++ language is the preprocessor macros. One example is switching certain print messages for debugging use only #ifdef DEBUG_ENABLE DEBUG_PRINT print #else DEBUG_PRINT Is it possible to implement something similar in python? Thank you. -- https://mail.python.org/

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

2013-11-14 Thread Tat-Chee Wan
On Thursday, November 14, 2013 11:44:44 AM UTC+8, Ned Deily wrote: > > I'm not very familiar with ctypes internals but it looks like > > sys.setdlopenflags is not intended to have an influence on ctypes; rather, it > > conditions the Python interpreter's use of dlopen to load shared Python >

Re: The Spirit of Python

2013-11-14 Thread Dave Angel
On Thu, 14 Nov 2013 13:11:08 -0500, Roy Smith wrote: Intriguing subject line but an empty message body. Please post in text not html if you want everyone to see it. Thanks -- DaveA -- https://mail.python.org/mailman/listinfo/python-list

Re: Implementing #define macros similar to C on python

2013-11-14 Thread Dave Angel
On Thu, 14 Nov 2013 18:29:48 -0800 (PST), JL wrote: One of my favorite tools in C/C++ language is the preprocessor macros. One example is switching certain print messages for debugging use only #ifdef DEBUG_ENABLE DEBUG_PRINT print #else DEBUG_PRINT Is it possible to implement some

Re: Implementing #define macros similar to C on python

2013-11-14 Thread Chris Angelico
On Fri, Nov 15, 2013 at 1:29 PM, JL wrote: > One of my favorite tools in C/C++ language is the preprocessor macros. > > One example is switching certain print messages for debugging use only > > #ifdef DEBUG_ENABLE > DEBUG_PRINT print > #else > DEBUG_PRINT > > Is it possible to implement somethi

Re: Implementing #define macros similar to C on python

2013-11-14 Thread Roy Smith
In article , JL wrote: > One of my favorite tools in C/C++ language is the preprocessor macros. > > One example is switching certain print messages for debugging use only > > #ifdef DEBUG_ENABLE > DEBUG_PRINT print > #else > DEBUG_PRINT > > Is it possible to implement something similar in p

Re: The Spirit of Python

2013-11-14 Thread Ben Finney
Dave Angel writes: > On Thu, 14 Nov 2013 13:11:08 -0500, Roy Smith wrote: > > Intriguing subject line but an empty message body. Please post in text > not html if you want everyone to see it. My message agent also discards HTML messages. Roy Smith's message displayed fine, containing a URL to a

Re: Implementing #define macros similar to C on python

2013-11-14 Thread Chris Angelico
On Fri, Nov 15, 2013 at 3:10 PM, Roy Smith wrote: > Why would you want to? One of the most horrible things about C/C++ is > the preprocessor. Hey, that's not fair! Without the preprocessor, how would you be able to do this: //Hide this part away in a header file somewhere struct b0rkb0rk {

Re: The Spirit of Python

2013-11-14 Thread Dave Angel
On Fri, 15 Nov 2013 15:16:09 +1100, Ben Finney wrote: Dave Angel writes: > On Thu, 14 Nov 2013 13:11:08 -0500, Roy Smith wrote: > Intriguing subject line but an empty message body. Please post in text > not html if you want everyone to see it. My message agent also discards HTML

Re: Automation

2013-11-14 Thread Steven D'Aprano
On Thu, 14 Nov 2013 20:03:44 +, Alister wrote: > As a native of England I have to agree it is far to arrogant to expect > everyone else to be able to speak good English when I can barley order a > beer in any other language. (even or especially in the USA) Apparently you can "barley" write UK

Re: Automation

2013-11-14 Thread Steven D'Aprano
On Thu, 14 Nov 2013 17:10:02 +, Mark Lawrence wrote: > On 14/11/2013 03:56, renato.barbosa.pim.pere...@gmail.com wrote: >> I apologize again for my bad english and any inconvenience that I have >> generated. >> >> > I do wish that people would stop apologising for poor English, it's an > extre

Re: Automation

2013-11-14 Thread Paul Rudin
Steven D'Aprano writes: > A few minor errors is one thing, but when you see people whose posts are > full of error after error and an apparent inability to get English syntax > right, you have to wonder how on earth they expect to be a programmer? The irritating thing is apparent lack of care