Re: What version of glibc is Python using?

2013-10-12 Thread John Nagle
On 10/11/2013 11:50 PM, Christian Gollwitzer wrote: > Am 12.10.13 08:34, schrieb John Nagle: >> I'm trying to find out which version of glibc Python is using. >> I need a fix that went into glibc 2.10 back in 2009. >> (http://udrepper.livejournal.com/20948.html) >> >> So I try the recommended way t

Re: What version of glibc is Python using?

2013-10-12 Thread Ned Deily
In article , John Nagle wrote: [...] > Why is the info from "plaform.libc_ver()" so bogus? The code is here: http://hg.python.org/cpython/file/2.7/Lib/platform.py#l141 Perhaps you could open an issue on the Python bug tracker. -- Ned Deily, n...@acm.org -- https://mail.python.org/mailman

Re: What version of glibc is Python using?

2013-10-12 Thread Christian Gollwitzer
Am 12.10.13 09:20, schrieb Ned Deily: In article , John Nagle wrote: [...] Why is the info from "plaform.libc_ver()" so bogus? The code is here: http://hg.python.org/cpython/file/2.7/Lib/platform.py#l141 Perhaps you could open an issue on the Python bug tracker. That function is really bo

Re: What version of glibc is Python using?

2013-10-12 Thread Christian Gollwitzer
Am 12.10.13 09:53, schrieb Christian Gollwitzer: Am 12.10.13 09:20, schrieb Ned Deily: In article , John Nagle wrote: [...] Why is the info from "plaform.libc_ver()" so bogus? The code is here: http://hg.python.org/cpython/file/2.7/Lib/platform.py#l141 Perhaps you could open an issue on th

Re: What version of glibc is Python using?

2013-10-12 Thread Terry Reedy
On 10/12/2013 3:53 AM, Christian Gollwitzer wrote: Am 12.10.13 09:20, schrieb Ned Deily: In article , John Nagle wrote: [...] Why is the info from "plaform.libc_ver()" so bogus? The code is here: http://hg.python.org/cpython/file/2.7/Lib/platform.py#l141 Perhaps you could open an issue on

Why isn't this code working how I want it to?

2013-10-12 Thread reubennottage
I've been working on a program and have had to halt it due a slight problem. Here's a basic version of the code: a = 'filled' b = 'filled' c = 'empty' d = 'empty' e = 'filled' f = 'empty' g = 'filled' testdict = {a : 'apple' , b : 'banana' , c : 'cake' , d : 'damson' , e : 'eggs' , f : 'fish' ,

Re: Why isn't this code working how I want it to?

2013-10-12 Thread Marco Nawijn
On Saturday, October 12, 2013 10:56:27 AM UTC+2, reuben...@gmail.com wrote: > I've been working on a program and have had to halt it due a slight problem. > Here's a basic version of the code: > > > > a = 'filled' > > b = 'filled' > > c = 'empty' > > d = 'empty' > > e = 'filled' > > f = 'e

Re: Why isn't this code working how I want it to?

2013-10-12 Thread Peter Otten
reubennott...@gmail.com wrote: > I've been working on a program and have had to halt it due a slight > problem. Here's a basic version of the code: > > a = 'filled' > b = 'filled' > c = 'empty' > d = 'empty' > e = 'filled' > f = 'empty' > g = 'filled' > > testdict = {a : 'apple' , b : 'banana' ,

Re: Why isn't this code working how I want it to?

2013-10-12 Thread Mark Lawrence
On 12/10/2013 09:56, reubennott...@gmail.com wrote: I've been working on a program and have had to halt it due a slight problem. Here's a basic version of the code: a = 'filled' b = 'filled' c = 'empty' d = 'empty' e = 'filled' f = 'empty' g = 'filled' testdict = {a : 'apple' , b : 'banana' ,

Re: Why isn't this code working how I want it to?

2013-10-12 Thread Jussi Piitulainen
reubennott...@gmail.com writes: > [...] The following doesn't work. > > for fillempt in testdict: > if fillempt == 'filled': > print(testdict[fillempt]) This is equivalent to for fillempt in testdict: if fillempt == 'filled': print(testdict['filled']) which in turn can be

Re: Unicode Objects in Tuples

2013-10-12 Thread Ned Batchelder
On 10/12/13 2:20 AM, Ian Kelly wrote: On Fri, Oct 11, 2013 at 7:31 AM, Stephen Tucker wrote: On the original question, well, I accept Ned's answer (at 10.22). I also like the idea of a helper function given by Peter Otten at 09.51. It still seems like a crutch to help poor old Python 2.X to do

Re: Why isn't this code working how I want it to?

2013-10-12 Thread reubennottage
On Saturday, October 12, 2013 10:20:24 AM UTC+1, Peter Otten wrote: > reubennott...@gmail.com wrote: > > > > > I've been working on a program and have had to halt it due a slight > > > problem. Here's a basic version of the code: > > > > > > a = 'filled' > > > b = 'filled' > > > c = 'empty

Re: Why isn't this code working how I want it to?

2013-10-12 Thread Mark Lawrence
On 12/10/2013 12:03, reubennott...@gmail.com wrote: On Saturday, October 12, 2013 10:20:24 AM UTC+1, Peter Otten wrote: reubennott...@gmail.com wrote: I've been working on a program and have had to halt it due a slight problem. Here's a basic version of the code: a = 'filled' b

Re: What version of glibc is Python using?

2013-10-12 Thread Ian Kelly
On Sat, Oct 12, 2013 at 2:46 AM, Terry Reedy wrote: > On 10/12/2013 3:53 AM, Christian Gollwitzer wrote: >> >> That function is really bogus. It states itself, that it has "intimate >> knowledge of how different libc versions add symbols to the executable >> and thus is probably only useable for e

Re: What version of glibc is Python using?

2013-10-12 Thread Steven D'Aprano
On Sat, 12 Oct 2013 05:43:22 -0600, Ian Kelly wrote: > On Sat, Oct 12, 2013 at 2:46 AM, Terry Reedy wrote: >> On 10/12/2013 3:53 AM, Christian Gollwitzer wrote: >>> >>> That function is really bogus. It states itself, that it has "intimate >>> knowledge of how different libc versions add symbols

Re: Unicode Objects in Tuples

2013-10-12 Thread Roy Smith
In article , Ned Batchelder wrote: > This idea that the repr can reconstruct the object always fell flat with > me since the vast majority of classes don't have a repr that works that > way. I look at it a little differently: the repr is meant to be as > unambiguous as possible to a develope

web scraping

2013-10-12 Thread Ronald Routt
I am new to programming and trying to figure out python. I am trying to learn which tools and tutorials I need to use along with some good beginner tutorials in scraping the the web. The end result I am trying to come up with is scraping auto dealership sites for the following: 1.N

Re: web scraping

2013-10-12 Thread Mark Lawrence
On 12/10/2013 15:12, Ronald Routt wrote: I am new to programming and trying to figure out python. I am trying to learn which tools and tutorials I need to use along with some good beginner tutorials in scraping the the web. The end result I am trying to come up with is scraping auto d

Re: What version of glibc is Python using?

2013-10-12 Thread Terry Reedy
On 10/12/2013 7:43 AM, Ian Kelly wrote: On Sat, Oct 12, 2013 at 2:46 AM, Terry Reedy wrote: On 10/12/2013 3:53 AM, Christian Gollwitzer wrote: That function is really bogus. It states itself, that it has "intimate knowledge of how different libc versions add symbols to the executable and thus

Error connecting to MySQL from Python

2013-10-12 Thread carlos . ortiz . asm
Hello guys I am currently working in a python project at my school. First I want to make clear that I'm not a python programmer (I was just called to put out the flames in this project because no one else would and I was brave enough to say yes). I have the following problem here. I have to wri

Re: Error connecting to MySQL from Python

2013-10-12 Thread Jussi Piitulainen
carlos.ortiz@gmail.com writes: > So I wrote my method like this: ... > cnxOMC = mysql.connector.connect(user, >password, >'localhost', >database) ... > the following co

Re: Error connecting to MySQL from Python

2013-10-12 Thread MRAB
On 12/10/2013 17:09, carlos.ortiz@gmail.com wrote: Hello guys I am currently working in a python project at my school. First I want to make clear that I'm not a python programmer (I was just called to put out the flames in this project because no one else would and I was brave enough to sa

Re: Error connecting to MySQL from Python

2013-10-12 Thread Carlos Ortiz
On Saturday, October 12, 2013 11:46:49 AM UTC-5, Jussi Piitulainen wrote: > carlos.o...@gmail.com writes: > > > > > So I wrote my method like this: > > ... > > > cnxOMC = mysql.connector.connect(user, > > >password, > > >

Re: OT: looking for best solutions for tracking projects and skills

2013-10-12 Thread Rob Clewley
I don't know about civic hacking, but Trello is a free online tool to track high level aspects of collaborative projects. It is somewhat focused on a "to do" planning perspective. But with the customizable columns, labels, and checklists associated with items in the view I think you might be able t

Re: Error connecting to MySQL from Python

2013-10-12 Thread Carlos Ortiz
On Saturday, October 12, 2013 12:13:05 PM UTC-5, MRAB wrote: > On 12/10/2013 17:09, carlos.o...@gmail.com wrote: > > > Hello guys I am currently working in a python project at my school. First I > > want to make clear that I'm not a python programmer (I was just called to > > put out the flames

Re: What version of glibc is Python using?

2013-10-12 Thread Nobody
On Sat, 12 Oct 2013 05:43:22 -0600, Ian Kelly wrote: > Easier said than done. The module is currently written in pure > Python, and the comment "Note: Please keep this module compatible to > Python 1.5.2" would appear to rule out the use of ctypes to call the > glibc function. Last I heard, ther

Grant permission for your Python bug tracker account (taewong.seo).

2013-10-12 Thread Tae Wong
(You're not subscribed!) You want to apply issue #19038. When you try to log in to Python bug tracker using your account (taewong.seo), a message says that “you don't have permission to login”. -- https://mail.python.org/mailman/listinfo/python-list

Re: What version of glibc is Python using?

2013-10-12 Thread Ian Kelly
On Sat, Oct 12, 2013 at 9:59 AM, Terry Reedy wrote: > On 10/12/2013 7:43 AM, Ian Kelly wrote: >> >> On Sat, Oct 12, 2013 at 2:46 AM, Terry Reedy wrote: >>> >>> On 10/12/2013 3:53 AM, Christian Gollwitzer wrote: That function is really bogus. It states itself, that it has "intimate

Re: web scraping

2013-10-12 Thread dvghana
On Saturday, October 12, 2013 7:12:38 AM UTC-7, Ronald Routt wrote: > I am new to programming and trying to figure out python. > > > > I am trying to learn which tools and tutorials I need to use along with some > good beginner tutorials in scraping the the web. The end result I am trying >

Re: closure = decorator?

2013-10-12 Thread Peter Cacioppi
On Thursday, October 10, 2013 6:51:21 AM UTC-7, Tim wrote: > I've read a couple of articles about this, but still not sure. > > When someone talks about a closure in another language (I'm learning Lua on > the side), is that the same concept as a decorator in Python? > > > > It sure looks like

Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-12 Thread Chris Angelico
On Sat, Oct 12, 2013 at 7:10 AM, Peter Cacioppi wrote: > Along with "batteries included" and "we're all adults", I think Python needs > a pithy phrase summarizing how well thought out it is. That is to say, the > major design decisions were all carefully considered, and as a result things > tha

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-12 Thread Steven D'Aprano
On Sun, 13 Oct 2013 09:37:58 +1100, Chris Angelico wrote: > This is design. Python has a king (Guido). It wasn't built by a > committee. Maybe you won't like some aspect of Python's design, but it > has one, it's not just sloppily slapped together. While I agree with your general thrust, I don't

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-12 Thread Chris Angelico
On Sun, Oct 13, 2013 at 2:38 PM, Steven D'Aprano wrote: > On Sun, 13 Oct 2013 09:37:58 +1100, Chris Angelico wrote: > >> This is design. Python has a king (Guido). It wasn't built by a >> committee. Maybe you won't like some aspect of Python's design, but it >> has one, it's not just sloppily slap

Re: Inter-process locking

2013-10-12 Thread Jason Friedman
The lockfile solution seems to be working, thank you. On Fri, Oct 11, 2013 at 10:15 PM, Piet van Oostrum wrote: > Jason Friedman writes: > >> I have a 3rd-party process that runs for about a minute and supports >> only a single execution at a time. >> >> $ deploy >> >> If I want to launch a seco