Re: To whoever hacked into my Database

2013-11-13 Thread Antoon Pardon
Op 13-11-13 01:41, Steven D'Aprano schreef: On Tue, 12 Nov 2013 17:27:08 +0100, Antoon Pardon wrote: Somebody has to accept the responsibility to walk away and break the positive feedback loop, or it will never end. And I can't see Nikos being the one to do that. Not my problem. It

Re: Please help with this

2013-11-13 Thread mkharper
On Wednesday, November 13, 2013 4:18:58 AM UTC, saad imran wrote: Could you point out any errors in my code: #This is a game where you have to escape a dragon. # By Saad Imran import random import pygame # Define questions and answers. que1 = 4481 *2 ans1

Re: Please help with this

2013-11-13 Thread mkharper
On Wednesday, November 13, 2013 4:18:58 AM UTC, saad imran wrote: Could you point out any errors in my code: #This is a game where you have to escape a dragon. # By Saad Imran import random import pygame # Define questions and answers. que1 = 4481 *2 ans1

Re: To whoever hacked into my Database

2013-11-13 Thread Antoon Pardon
Op 12-11-13 22:26, Ian Kelly schreef: On Tue, Nov 12, 2013 at 9:27 AM, Antoon Pardon antoon.par...@rece.vub.ac.be wrote: Op 12-11-13 14:02, Ian Kelly schreef: On Tue, Nov 12, 2013 at 2:09 AM, Antoon Pardon antoon.par...@rece.vub.ac.be wrote: So you are complaining about people being human.

Re: Please help with this

2013-11-13 Thread mkharper
On Wednesday, November 13, 2013 4:18:58 AM UTC, saad imran wrote: Could you point out any errors in my code: #This is a game where you have to escape a dragon. # By Saad Imran import random import pygame # Define questions and answers. que1 = 4481 *2 ans1

Re: To whoever hacked into my Database

2013-11-13 Thread Ferrous Cranus
Στις 13/11/2013 1:38 πμ, ο/η Mark Lawrence έγραψε: On 12/11/2013 23:27, Ian Kelly wrote: On Tue, Nov 12, 2013 at 2:59 PM, Ethan Furman et...@stoneleaf.us wrote: Every time he uses foul language against somebody he's acting like a bully. Every time he reposts questions and ignores answers he's

Re: Please help with this

2013-11-13 Thread Peter Otten
mkharper wrote: Hi Saad, I've had a play and the following does something. (I'm running Python 2.7 so replaced input with raw_input.) (User can use upper or lower case, just lower it before test.) (I simplified the questions/answers so I could answer them.) I'm out of time but hope the

Suggest an open-source issue tracker, with github integration and kanban boards?

2013-11-13 Thread Alec Taylor
Started to build this on my own; then was like, hang on! - This is probably something very commonly requested… Can you recommend an open source project (or two) written in Python; which covers multi project + sub project issue tracking linked across github repositories? [on the github side, want

Re: To whoever hacked into my Database

2013-11-13 Thread Antoon Pardon
Op 13-11-13 12:14, Ferrous Cranus schreef: Στις 13/11/2013 1:38 πμ, ο/η Mark Lawrence έγραψε: On 12/11/2013 23:27, Ian Kelly wrote: What would you classify insulting my late mother as? I apologize for that and of course by that time i didn't knew this info about your mother. But

Re: To whoever hacked into my Database

2013-11-13 Thread Ian Kelly
On Tue, Nov 12, 2013 at 6:19 PM, Ethan Furman et...@stoneleaf.us wrote: On 11/12/2013 03:27 PM, Ian Kelly wrote: On Tue, Nov 12, 2013 at 2:59 PM, Ethan Furman et...@stoneleaf.us wrote: Every time he uses foul language against somebody he's acting like a bully. Every time he reposts

Re: To whoever hacked into my Database

2013-11-13 Thread Ian Kelly
On Wed, Nov 13, 2013 at 2:08 AM, Antoon Pardon antoon.par...@rece.vub.ac.be wrote: That doesn't mean that when somebody misbehaves, you can do whatever you want in retaliation without regard for others who might be involved. But I didn't do whatever. What I did was similar in what others had

Trying tcompile an use the Python 3.4a

2013-11-13 Thread Ferrous Cranus
$ 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 Python-3.4 root@secure [/home/nikos/www/cgi-bin]# python3 -V Python 3.4.0a4 can

Re: Bullying [was Re: To whoever hacked into my Database]

2013-11-13 Thread Ian Kelly
On Tue, Nov 12, 2013 at 8:40 PM, Steven D'Aprano st...@pearwood.info wrote: Is bullying the new terrorism, which in turn is the new socialism? That is, a meaningless term of opprobrium used on anything you don't like? That's what it sounds like to me. Nikos has practically no power in this

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Chris “Kwpolska” Warrick
On Wed, Nov 13, 2013 at 3:17 PM, Ferrous Cranus nikos.gr...@gmail.com 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

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Ferrous Cranus
Στις 13/11/2013 4:17 μμ, ο/η Ferrous Cranus έγραψε: $ 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 Python-3.4 root@secure

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Ferrous Cranus
Στις 13/11/2013 4:23 μμ, ο/η Chris “Kwpolska” Warrick έγραψε: On Wed, Nov 13, 2013 at 3:17 PM, Ferrous Cranus nikos.gr...@gmail.com 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

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Ferrous Cranus
Στις 13/11/2013 4:23 μμ, ο/η Chris “Kwpolska” Warrick έγραψε: On Wed, Nov 13, 2013 at 3:17 PM, Ferrous Cranus nikos.gr...@gmail.com 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

chroot to install packages

2013-11-13 Thread Himanshu Garg
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? -- https://mail.python.org/mailman/listinfo/python-list

change volume of single audio device

2013-11-13 Thread moldevort87
hi, i'd like to change the volume of my av-receiver (HDMI) and speakers (analogue) simultaneously. in order to use both outputs i'm using virtual audio cable but if i set it as default device and change volume, hdmi and analogue remains unchanged. i intend to script a command line tool in

Re: change volume of single audio device

2013-11-13 Thread Jean-Michel Pichavant
- Original Message - hi, i'd like to change the volume of my av-receiver (HDMI) and speakers (analogue) simultaneously. in order to use both outputs i'm using virtual audio cable but if i set it as default device and change volume, hdmi and analogue remains unchanged. i intend to

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Steven D'Aprano
On Wed, 13 Nov 2013 16:26:37 +0200, Ferrous Cranus wrote: root@secure [~]# which python3 /usr/local/bin/python3 root@secure [~]# where pyhton3 -bash: where: command not found That just means that you don't have the where command installed. Oh well, if it's not installed you can't use it. (I

Re: change volume of single audio device

2013-11-13 Thread Steven D'Aprano
On Wed, 13 Nov 2013 06:40:02 -0800, moldevort87 wrote: on executing i get [CODE] type 'exceptions.WindowsError' Error 11 while setting volume type 'exceptions.WindowsError' Error 11 while setting volume waveOutGetNumDevs= 3 mixerGetNumDevs 4 res: 0 wMid=

Re: change volume of single audio device

2013-11-13 Thread Tim Chase
On 2013-11-13 16:05, Steven D'Aprano wrote: Start by googling for mixerSetControlDetails return value 11 and go on from there. Sounds like Nigel at work.[1] -tkc http://en.wikipedia.org/wiki/Up_to_eleven -- https://mail.python.org/mailman/listinfo/python-list

Jabberbot

2013-11-13 Thread Matt Graves
I'm using the jabberbot library and there is not a whole lot of documentation on it. Does anyone have experience with this library? This is basically the only example given: - from jabberbot import JabberBot, botcmd import datetime class SystemInfoJabberBot(JabberBot):

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 Python-3.4

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

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

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: 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/bin/python

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

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 same as

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 care

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

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 of

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 =

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

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

Re: To whoever hacked into my Database

2013-11-13 Thread Zachary Ware
On Wed, Nov 13, 2013 at 12:27 PM, superchromix mark...@gmail.com 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

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 Oscar Benjamin
On Nov 13, 2013 6:31 PM, superchromix mark...@gmail.com 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

Re: To whoever hacked into my Database

2013-11-13 Thread William Ray Wing
On Nov 13, 2013, at 1:27 PM, superchromix mark...@gmail.com 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

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) ipython-input-16-42b59e00d5af in module() 1

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: 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: 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 nikos.gr...@gmail.com 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

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

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-pip.py, and run

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

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

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

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

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 Jun 22

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: 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 calculations when

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

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

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

2013-11-13 Thread Ned Deily
In article nad-e7cc3b.14401113112...@news.gmane.org, Ned Deily n...@acm.org 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: 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

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

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 tjre...@udel.edu 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'

Re: Setting up for python django development with Debian Linux

2013-11-13 Thread D.M. Procida
Gary Roach gary719_li...@verizon.net 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

Re: chroot to install packages

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

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

2013-11-13 Thread Rhodri James
On Tue, 12 Nov 2013 02:06:09 -, Rick Johnson rantingrickjohn...@gmail.com 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

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

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

2013-11-13 Thread Ben Finney
bob gailer bgai...@gmail.com 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

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

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

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

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 with the fact

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,

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 rantingrickjohn...@gmail.com wrote: POWER CORRUPTS: ABSOLUTE POWER CORRUPTS ABSOLUTELY. http://xkcd.com/643/ ChrisA -- https://mail.python.org/mailman/listinfo/python-list

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

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 tjre...@udel.edu 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

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 έγραψε: 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 package named setuptools. I think that is the package you

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 going

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

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

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

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 want to convert 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

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

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

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

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

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

Re: chroot to install packages

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

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

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

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 regardless

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 hgarg.in...@gmail.com wrote: I am writing a python script to run chroot command to chroot to a linux distro

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: 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 steve+comp.lang.pyt...@pearwood.info 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

  1   2   3   >