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. Unfortunately

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, but when

Re: chroot to install packages

2013-11-14 Thread Chris Angelico
On Thu, Nov 14, 2013 at 8:29 PM, Himanshu Garg hgarg.in...@gmail.com 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

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 rantingrickjohn...@gmail.com 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

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 έγραψε: snip 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

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

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 into my linux

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

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

Re: To whoever hacked into my Database

2013-11-14 Thread Chris Angelico
On Fri, Nov 15, 2013 at 12:24 AM, Ferrous Cranus nikos.gr...@gmail.com 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

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,

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

Re: Odd msg received from list

2013-11-14 Thread Joel Goldstick
On Thu, Nov 14, 2013 at 8:53 AM, Verde Denim tdl...@gmail.com 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

Re: Odd msg received from list

2013-11-14 Thread Chris Angelico
On Fri, Nov 15, 2013 at 12:53 AM, Verde Denim tdl...@gmail.com 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

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 ni...@superhost.gr 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'

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 you seem to be learning

Re: Odd msg received from list

2013-11-14 Thread Roy Smith
In article mailman.2591.1384437196.18130.python-l...@python.org, Verde Denim tdl...@gmail.com 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

Re: writing fortran equivalent binary file using python

2013-11-14 Thread Oscar Benjamin
On 14 November 2013 00:53, Sudheer Joseph sjo.in...@gmail.com 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')

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

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

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. The

Re: Odd msg received from list

2013-11-14 Thread Chris Angelico
On Fri, Nov 15, 2013 at 1:11 AM, Roy Smith r...@panix.com wrote: In article mailman.2591.1384437196.18130.python-l...@python.org, Verde Denim tdl...@gmail.com 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

Re: Odd msg received from list

2013-11-14 Thread Chris Angelico
On Fri, Nov 15, 2013 at 1:24 AM, MRAB pyt...@mrabarnett.plus.com 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

Re: Odd msg received from list

2013-11-14 Thread Joost Molenaar
On Thu, Nov 14, 2013 at 2:53 PM, Verde Denim tdl...@gmail.com 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.

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

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 and

@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 well. Same

Re: pypy and ctypes

2013-11-14 Thread Neil Cerutti
On 2013-11-14, Peter Chant p...@petezilla.co.uk 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

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 p...@mad-scientist.net 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

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.:

Re: Odd msg received from list

2013-11-14 Thread Gisle Vanem
Chris Angelico ros...@gmail.com 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

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 m...@timgolden.me.uk wrote: Several people have

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

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 individuals.

Re: ogg2mp3 utility?

2013-11-14 Thread Tim Johnson
* Tim Johnson t...@akwebsoft.com [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

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

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

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 from a

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

2013-11-14 Thread Joel Goldstick
On Thu, Nov 14, 2013 at 12:26 PM, Rick Johnson rantingrickjohn...@gmail.com 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

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

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 p...@mad-scientist.net 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

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 et...@stoneleaf.us 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

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 book by

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.

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

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

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

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 ni...@superhost.gr 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.

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. http://djangoweekend.org The programme for the event: Friday: tutorials and demonstrations (also open

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()

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 extremely

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 ro...@uw.edu 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

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 ro...@uw.edu 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

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

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 spk...@nyu.edu 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':

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 ben+pyt...@benfinney.id.au 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 URL:http://docs.python.org/3/library/io.html#io.StringIO, then create a new ‘PIL.Image’ object by

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 bgai...@gmail.com 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

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, with the closing

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

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 ben+pyt...@benfinney.id.auwrote: Ben Finney ben+pyt...@benfinney.id.au 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

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

2013-11-14 Thread Chris Angelico
On Fri, Nov 15, 2013 at 7:12 AM, Alister alister.w...@ntlworld.com 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

Re: Automation

2013-11-14 Thread Chris Angelico
On Fri, Nov 15, 2013 at 7:03 AM, Alister alister.w...@ntlworld.com 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

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

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

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 standard

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 breamore...@yahoo.co.uk 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

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 p...@petezilla.co.uk 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

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

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. --

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 r...@panix.com 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 lightai...@gmail.com 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

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 lightai...@gmail.com 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

Re: Implementing #define macros similar to C on python

2013-11-14 Thread Roy Smith
In article fae7479b-ecec-4114-9750-6595fa8c7...@googlegroups.com, JL lightai...@gmail.com 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

Re: The Spirit of Python

2013-11-14 Thread Ben Finney
Dave Angel da...@davea.name writes: On Thu, 14 Nov 2013 13:11:08 -0500, Roy Smith r...@panix.com 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

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 r...@panix.com 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

Re: The Spirit of Python

2013-11-14 Thread Dave Angel
On Fri, 15 Nov 2013 15:16:09 +1100, Ben Finney ben+pyt...@benfinney.id.au wrote: Dave Angel da...@davea.name writes: On Thu, 14 Nov 2013 13:11:08 -0500, Roy Smith r...@panix.com wrote: Intriguing subject line but an empty message body. Please post in text not html if you want

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 extremely

Re: Automation

2013-11-14 Thread Paul Rudin
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info 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

[issue19580] Got resource warning when running test_base_events (test_asyncio)

2013-11-14 Thread Vajrasky Kok
New submission from Vajrasky Kok: $ ./python Lib/test/test_asyncio/test_base_events.py ./home/ethan/Documents/code/python/cpython3.4/Lib/unittest/case.py:158: ResourceWarning: unclosed socket.socket fd=10, family=AddressFamily.AF_INET, type=SocketType.SOCK_STREAM,

[issue19579] test_asyncio: test__run_once timings should be relaxed

2013-11-14 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19579 ___

[issue19576] Non-Python created threads documentation doesn't mention PyEval_InitThreads()

2013-11-14 Thread STINNER Victor
STINNER Victor added the comment: Perhaps we can fix PyGILState to call PyEval_InitThreads automatically? Yes, I had the same idea. Here is a patch to call PyEval_InitThreads() in PyGILState_Ensure() for new threads. -- keywords: +patch Added file:

[issue14432] Bug in generator if the generator in created in a temporary C thread

2013-11-14 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- title: Bug in generator if the generator in created in a C thread - Bug in generator if the generator in created in a temporary C thread ___ Python tracker rep...@bugs.python.org

[issue6208] path separator output ignores shell's path separator: / instead of \

2013-11-14 Thread Tim Golden
Tim Golden added the comment: On 14/11/2013 00:21, Laurent Birtz wrote: Is it reasonable to believe that most Python programs don't care about the legacy shell API? No more than it is to believe that most Python programs don't care about MSys or Cygwin ;) For information, cmd.exe will

[issue19291] Add docs for asyncio package (Tulip, PEP 3156)

2013-11-14 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19291 ___ ___ Python-bugs-list

[issue19581] PyUnicodeWriter: change the overallocation factor for Windows

2013-11-14 Thread STINNER Victor
New submission from STINNER Victor: PyUnicodeWriter currently overallocates the internal buffer by 25%. On Windows, PyUnicodeWriter is slower than PyAccu API. With an overallocation factor of 50%, PyUnicodeWriter is fastter. See this message for the benchmark:

[issue19513] Use PyUnicodeWriter instead of PyAccu in repr(tuple) and repr(list)

2013-11-14 Thread STINNER Victor
STINNER Victor added the comment: Please open a separate issue for the overallocation factor patch. Ok, here you have: #19581. I consider this issue has a dependency of this one, because without a better overallocation factor on Windows, list_repr_writer-2.patch makes repr(list) less

[issue19582] Tkinter is not working with Py_SetPath

2013-11-14 Thread Debarshi Goswami
New submission from Debarshi Goswami: Tkinter is not working when I set PYTHONPATH using Py_SetPath before Initialization in an application embedding Python interpreter. Any call to Py_SetPath is screwing up Tkinter with an error traceback -

[issue19582] Tkinter is not working with Py_SetPath

2013-11-14 Thread Debarshi Goswami
Changes by Debarshi Goswami debarshi.gosw...@gmail.com: -- components: +Interpreter Core type: - compile error ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19582 ___

[issue19550] PEP 453: Windows installer integration

2013-11-14 Thread Martin v . Löwis
Martin v. Löwis added the comment: I'm currently blocked on a discrepancy of this request and PEP 453. You are asking me to run ensurepip --upgrade, whereas the PEP asks for an option to install the bundled pip (i.e. a mere ensurepip). Which of these should be done? --

[issue19582] Tkinter is not working with Py_SetPath

2013-11-14 Thread Debarshi Goswami
Debarshi Goswami added the comment: Is there any way to run Tkinter adding some changes from interpreter? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19582 ___

  1   2   3   >