Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread Modulok
On Wed, Oct 16, 2013 at 9:13 PM, Owen Jacobson wrote: > Last week, Elad Maidar wrote a fairly short but readable opinion piece[0] > illustrating some long-standing social problems in the Ruby community, > ending with a very specific call to action around naming conventions for > Ruby projects and

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

2013-10-17 Thread Chris Angelico
On Fri, Oct 18, 2013 at 3:45 PM, Steven D'Aprano wrote: > I don't know about TCL, but in Hypertalk, when I said everything is a > string, I meant it. If you want a list of strings, you create one big > string using some delimiter (usually spaces, commas or newlines). Fair enough. As a system, tha

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

2013-10-17 Thread Steven D'Aprano
On Fri, 18 Oct 2013 15:12:36 +1100, Chris Angelico wrote: > On Fri, Oct 18, 2013 at 2:14 PM, Steven D'Aprano > wrote: >> One thing he missed is that there are untyped languages where >> everything is the same type. If everything is the same type, that's >> equivalent to there being no types at al

Re: pointer and python

2013-10-17 Thread Steven D'Aprano
On Fri, 18 Oct 2013 06:43:12 +0330, Mohsen Pahlevanzadeh wrote: > On Fri, 2013-10-18 at 00:54 +0100, MRAB wrote: [...] >> Why are you using attributes anyway? Why not just store them in a dict? >> >> > At first i store them in a dict: > ###33 > for

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

2013-10-17 Thread Chris Angelico
On Fri, Oct 18, 2013 at 2:14 PM, Steven D'Aprano wrote: > One thing he missed is that there are untyped languages where everything > is the same type. If everything is the same type, that's equivalent to > there being no types at all. Examples include TCL and Hypertalk, where > everything are stri

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread Chris Angelico
On Fri, Oct 18, 2013 at 2:14 PM, Steven D'Aprano wrote: > On Thu, 17 Oct 2013 10:16:24 -0700, Roy Smith wrote: > >> On Thursday, October 17, 2013 11:07:48 AM UTC-4, Chris Angelico wrote: >>> Module names should be descriptive, not fancy. >> >> Interesting comment, on a mailing list for a language

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

2013-10-17 Thread Steven D'Aprano
On Thu, 17 Oct 2013 19:08:30 -0700, Mark Janssen wrote: >>> It's like this. No matter how you cut it, you're going to get back to >>> the computers where you load instructions with switches. At that >>> point, I'll be very much looking in anticipation to your binary-digit >>> lexer. >> >> Why st

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread Chris Angelico
On Fri, Oct 18, 2013 at 11:10 AM, Roy Smith wrote: > In article , > Chris Angelico wrote: > >> 12.1. pickle ‹ Python object serialization >> (flavorful, fine once you know it, but a little unintuitive) > > Actually, pickle is a very descriptive term. You might be thinking that > a pickle is jus

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

2013-10-17 Thread rusi
On Friday, October 18, 2013 7:38:30 AM UTC+5:30, zipher wrote: > >> It's like this. No matter how you cut it, you're going to get back to > >> the computers where you load instructions with switches. At that point, > >> I'll be very much looking in anticipation to your binary-digit lexer. > > > >

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

2013-10-17 Thread rusi
On Thursday, October 17, 2013 11:14:29 PM UTC+5:30, MRAB wrote: > On 17/10/2013 18:32, rusi wrote: > > On Wednesday, October 16, 2013 1:56:27 AM UTC+5:30, zipher wrote: > >> Yes, well clearly we are not "having the same thoughts", yet the > >> purpose of the academic establishment is to pin down su

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread Steven D'Aprano
On Thu, 17 Oct 2013 10:16:24 -0700, Roy Smith wrote: > On Thursday, October 17, 2013 11:07:48 AM UTC-4, Chris Angelico wrote: >> Module names should be descriptive, not fancy. > > Interesting comment, on a mailing list for a language named after a > snake, especially by a guy who claims to prefe

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

2013-10-17 Thread Steven D'Aprano
On Wed, 16 Oct 2013 23:49:02 -0700, Peter Cacioppi wrote: > Even Python, which isn't strongly typed I see that in a later message you have stepped away from that misconception, but I think it is well worth reading this essay: https://cdsmith.wordpress.com/2011/01/09/an-old-article-i-wrote/ pre

Re: pointer and python

2013-10-17 Thread Mohsen Pahlevanzadeh
On Fri, 2013-10-18 at 00:54 +0100, MRAB wrote: > On 18/10/2013 00:17, Mohsen Pahlevanzadeh wrote: > > Dear all, > > > > Suppose I have the following code: > > ##3 > > mydic = dict() > > mydict.update({'string':QtGui.QCheckBox()}) ## suppose this dic has many

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

2013-10-17 Thread Steven D'Aprano
On Thu, 17 Oct 2013 18:59:07 -0700, Mark Janssen wrote: > --> int="five" > --> [int(i) for i in ["1","2","3"]] > > TypeError: str is not callable > > Now how are you going to get the original int type back? Trivially easy: py> int py> int = "five" # Oops! py> int(42.5

Re: finding data from two different files.

2013-10-17 Thread Steven D'Aprano
On Fri, 18 Oct 2013 07:18:49 +0530, torque.in...@gmail.com wrote: > Hi all, > > I am new to python, just was looking for logic to understand to write > code in the below scenario. > > I am having a file (filea) with multiple columns, and another > file(fileb) with again multiple columns, but say

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread Steven D'Aprano
On Fri, 18 Oct 2013 02:07:48 +1100, Chris Angelico wrote: > Thing is, it's all very well to avoid using one particular module > because you don't like its name... but what happens when there are a > goodly number of such ill-named modules? Let's suppose you don't like > the name "readline" because

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

2013-10-17 Thread Mark Janssen
>> It's like this. No matter how you cut it, you're going to get back to >> the computers where you load instructions with switches. At that point, >> I'll be very much looking in anticipation to your binary-digit lexer. > > Why stop there? If you go back far enough, you've got Babbage with his >

finding data from two different files.

2013-10-17 Thread torque.in...@gmail.com
Hi all, I am new to python, just was looking for logic to understand to write code in the below scenario. I am having a file (filea) with multiple columns, and another file(fileb) with again multiple columns, but say i want to use column2 of fileb as a search expression to search for similar v

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread Steven D'Aprano
On Thu, 17 Oct 2013 08:50:26 +0200, Steve Hayes wrote: > On 17 Oct 2013 05:48:10 GMT, Steven D'Aprano > wrote: > >>On Thu, 17 Oct 2013 00:22:47 -0400, random832 wrote: >> >>> While this flippant usage of "Nazi" (based on, as I understand it, >>> Seinfeld's "soup nazi") may be offensive, it has n

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

2013-10-17 Thread Steven D'Aprano
On Thu, 17 Oct 2013 19:24:58 +1100, Chris Angelico wrote: > Anyway, what I sought to prove was that polymorphic object oriented code > can be written in C or any other language. The proof of this is that any Turing-complete language can simulate any other language. Obviously the *difficulty* can

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

2013-10-17 Thread Mark Janssen
On Thu, Oct 17, 2013 at 3:10 PM, Ethan Furman wrote: > On 10/17/2013 01:57 PM, Ned Batchelder wrote: >> >> >> Read and listen more. Write and say less. > > > Mark Janssen has no interest in learning. From a thread long-ago: > > Mark Janssen wrote: >> >> Ethan Furman wrote: >>> >>> Mark Janssen w

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

2013-10-17 Thread Steven D'Aprano
On Thu, 17 Oct 2013 07:49:52 -0700, Mark Janssen wrote: > It's like this. No matter how you cut it, you're going to get back to > the computers where you load instructions with switches. At that point, > I'll be very much looking in anticipation to your binary-digit lexer. Why stop there? If yo

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread Steven D'Aprano
On Thu, 17 Oct 2013 21:13:33 +0300, Serhiy Storchaka wrote: > 17.10.13 20:37, MRAB написав(ла): >> It's interesting to note that, in the early days, programming was >> thought to be a suitable job for a woman because, after all, it >> involved typing, so basically it was just clerical activity! >

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-10-17 Thread Peter Cacioppi
yes it was a joke, apparently not a good one On Thu, Oct 17, 2013 at 5:39 PM, Skip Montanaro wrote: > > On Oct 17, 2013 6:59 PM, "Peter Cacioppi" > wrote: > > > > You know, I'd heard somewhere that Goto was considered harmful > trying to remember exactly where > > I can't tell if you w

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-10-17 Thread Peter Cacioppi
Cmon, Skip, assuming everyone gets the "considered harmful" reference falls under the "we're all adults here" rubric. -- https://mail.python.org/mailman/listinfo/python-list

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-10-17 Thread Skip Montanaro
On Oct 17, 2013 6:59 PM, "Peter Cacioppi" wrote: > > You know, I'd heard somewhere that Goto was considered harmful trying to remember exactly where I can't tell if you were kidding or not... Just in case: http://en.m.wikipedia.org/wiki/Considered_harmful (can't grab the [2] & [3] links

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread Roy Smith
In article , Chris Angelico wrote: > 12.1. pickle ‹ Python object serialization > (flavorful, fine once you know it, but a little unintuitive) Actually, pickle is a very descriptive term. You might be thinking that a pickle is just a cucumber that's been soaked in brine, but the more generic

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

2013-10-17 Thread Chris Angelico
On Fri, Oct 18, 2013 at 11:01 AM, Roy Smith wrote: > In article , > Peter Cacioppi wrote: > >> OTOH, I've seen object-based C development projects (I.e. where you could >> tell what function was being called at compile time) that are quite readable. > > If you can tell what function will be call

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

2013-10-17 Thread Roy Smith
In article , Peter Cacioppi wrote: > OTOH, I've seen object-based C development projects (I.e. where you could > tell what function was being called at compile time) that are quite readable. If you can tell what function will be called by looking at the code, it's not object oriented enough

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-10-17 Thread Peter Cacioppi
You know, I'd heard somewhere that Goto was considered harmful trying to remember exactly where -- https://mail.python.org/mailman/listinfo/python-list

Re: pointer and python

2013-10-17 Thread MRAB
On 18/10/2013 00:17, Mohsen Pahlevanzadeh wrote: Dear all, Suppose I have the following code: ##3 mydic = dict() mydict.update({'string':QtGui.QCheckBox()}) ## suppose this dic has many value with some string and QCheckBox Object If you do this, you're gi

pointer and python

2013-10-17 Thread Mohsen Pahlevanzadeh
Dear all, Suppose I have the following code: ##3 mydic = dict() mydict.update({'string':QtGui.QCheckBox()}) ## suppose this dic has many value with some string and QCheckBox Object #Then i have itreate it : for key, val in mydict.items(): setattr(s

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread Chris Angelico
On Fri, Oct 18, 2013 at 4:16 AM, Roy Smith wrote: > On Thursday, October 17, 2013 11:07:48 AM UTC-4, Chris Angelico wrote: >> Module names should be descriptive, not fancy. > > Interesting comment, on a mailing list for a language named after a snake, > especially by a guy who claims to prefer a

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread Kevin Walzer
On 10/17/13 6:11 PM, Chris Angelico wrote: On Fri, Oct 18, 2013 at 8:50 AM, Kevin Walzer wrote: I've worked in marketing, editing, technical writing, and development, and at no place I have ever worked would such behavior be greeted with anything but immediate termination. That's all very wel

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread Chris Angelico
On Fri, Oct 18, 2013 at 8:50 AM, Kevin Walzer wrote: > I've worked in marketing, editing, technical writing, and development, and > at no place I have ever worked would such behavior be greeted with anything > but immediate termination. That's all very well, but what if these gems were created, n

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

2013-10-17 Thread Ethan Furman
On 10/17/2013 01:57 PM, Ned Batchelder wrote: Read and listen more. Write and say less. Mark Janssen has no interest in learning. From a thread long-ago: Mark Janssen wrote: Ethan Furman wrote: Mark Janssen wrote: Really? --> int="five" --> [int(i) for i in ["1","2","3"]] TypeError:

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread Kevin Walzer
On 10/16/13 11:13 PM, Owen Jacobson wrote: 3. How can we reach out to the Ruby community and help *them* get past the current crop of gender issues, and help them as a group to do better next time? The Ruby community seems to be a singular example of "brogrammer" culture: mostly young men, lot

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread Gene Heskett
On Thursday 17 October 2013 17:34:15 Mark Lawrence did opine: > On 17/10/2013 20:43, Ian Kelly wrote: > > On Thu, Oct 17, 2013 at 11:16 AM, Roy Smith wrote: > >> On Thursday, October 17, 2013 11:07:48 AM UTC-4, Chris Angelico wrote: > >>> Module names should be descriptive, not fancy. > >> > >>

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

2013-10-17 Thread Ned Batchelder
On 10/17/13 3:49 PM, Mark Janssen wrote: On Thu, Oct 17, 2013 at 10:32 AM, rusi wrote: On Wednesday, October 16, 2013 1:56:27 AM UTC+5:30, zipher wrote: Yes, well clearly we are not "having the same thoughts", yet the purpose of the academic establishment is to pin down such terminology and no

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread Joshua Landau
On 17 October 2013 22:14, Joshua Landau wrote: > It's not our job to do anything. We can't "clean" the internet, so > there's no point trying. Personally I think the common digressions > into attacks on intellect and professionalism are much more socially > regressed than the minute levels of sexi

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread Joshua Landau
On 17 October 2013 04:13, Owen Jacobson wrote: > Last week, Elad Maidar wrote a fairly short but readable opinion piece[0] > illustrating some long-standing social problems in the Ruby community, > ending with a very specific call to action around naming conventions for > Ruby projects and gems. T

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

2013-10-17 Thread Peter Cacioppi
My bad, Python is dynamically typed, but also strongly typed. But I still say it has language features that specifically support polymorphism, which is why true OO can be developed in Python in a readable way. -- https://mail.python.org/mailman/listinfo/python-list

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

2013-10-17 Thread Mark Lawrence
On 17/10/2013 07:49, Peter Cacioppi wrote: I don't know if I want to step into the flames here, Even Python, which isn't strongly typed Yeah right. -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-li

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

2013-10-17 Thread Terry Reedy
On 10/17/2013 2:49 AM, Peter Cacioppi wrote: Even Python, which isn't strongly typed, Python objects have a definite type/class. It is fixed for instances of builtins. If that is not 'strong', the word has no meaning. manages polymorphism by allowing the self argument to a sub-class of t

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread Tim Delaney
On 18 October 2013 04:16, Roy Smith wrote: > On Thursday, October 17, 2013 11:07:48 AM UTC-4, Chris Angelico wrote: > > Module names should be descriptive, not fancy. > > Interesting comment, on a mailing list for a language named after a snake, > especially by a guy who claims to prefer an lang

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread Antoon Pardon
Op 17-10-13 16:38, Danyelle Davis schreef: I am a woman and all I can say to these things is.. Bringing light to these things do nothing but give attention to the attention seeking.. yea the names are dumb. But does it ever stop me. No. Mainly because ignore the college/boyish mentality that is

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

2013-10-17 Thread Mark Janssen
On Thu, Oct 17, 2013 at 10:32 AM, rusi wrote: > On Wednesday, October 16, 2013 1:56:27 AM UTC+5:30, zipher wrote: >> Yes, well clearly we are not "having the same thoughts", yet the >> purpose of the academic establishment is to pin down such terminology >> and not have these sloppy understandings

Re: how to add object from dict

2013-10-17 Thread Mohsen Pahlevanzadeh
I sovled with : for key, val in self.projectsInstance.addOnFieldsInstance.items(): setattr(self,"%s" % val,val) instance = getattr(self,"%s" % val) print "%s %s " % (key,val) QtCore.QObject.connect(instance, Qt

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread Mark Lawrence
On 17/10/2013 20:43, Ian Kelly wrote: On Thu, Oct 17, 2013 at 11:16 AM, Roy Smith wrote: On Thursday, October 17, 2013 11:07:48 AM UTC-4, Chris Angelico wrote: Module names should be descriptive, not fancy. Interesting comment, on a mailing list for a language named after a snake, especial

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread Ian Kelly
On Thu, Oct 17, 2013 at 11:16 AM, Roy Smith wrote: > On Thursday, October 17, 2013 11:07:48 AM UTC-4, Chris Angelico wrote: >> Module names should be descriptive, not fancy. > > Interesting comment, on a mailing list for a language named after a snake, > especially by a guy who claims to prefer

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

2013-10-17 Thread Peter Cacioppi
> The first C++ compilers were just preprocessors that translated into > pure C code ... I agree with this. > the C code was reasonably clear, not really convoluted, so you would have > been able to write it yourself. I disagree with this. My sense of C is that IF you are relying on preproces

Re: Testing BlockHosts

2013-10-17 Thread Gary Herron
On 10/17/2013 04:50 AM, Cameron Simpson wrote: On 16Oct2013 16:13, t.h.i.r.d_...@hotmail.com wrote: Can somebody tell me how I can test BockHosts? I want to see if an IP address gets blocked or not, as I have to provide evidence of testing for a presentation. Well, you could ping it I suppose.

Re: Markers on a matplotlib plot

2013-10-17 Thread Piet van Oostrum
Brandon La Porte writes: > I have the following code to make a plot of 4 different supply curves > (economics). > > > from matplotlib import pyplot as plt > > price = range(0,51) > q1 = [x/2.0 for x in price] > q2 = [x/4.0 for x in price] > q3 = [x/5.0 for x in price] > q4 = [x/10.0 for x in pri

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread Serhiy Storchaka
17.10.13 20:37, MRAB написав(ла): It's interesting to note that, in the early days, programming was thought to be a suitable job for a woman because, after all, it involved typing, so basically it was just clerical activity! But in the earlier days, typing and clerical activity were male domin

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

2013-10-17 Thread Mark Lawrence
On 17/10/2013 18:32, rusi wrote: On Wednesday, October 16, 2013 1:56:27 AM UTC+5:30, zipher wrote: Yes, well clearly we are not "having the same thoughts", yet the purpose of the academic establishment is to pin down such terminology and not have these sloppy understandings everywhere. You dig?

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

2013-10-17 Thread MRAB
On 17/10/2013 18:32, rusi wrote: On Wednesday, October 16, 2013 1:56:27 AM UTC+5:30, zipher wrote: Yes, well clearly we are not "having the same thoughts", yet the purpose of the academic establishment is to pin down such terminology and not have these sloppy understandings everywhere. You dig?

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread MRAB
On 17/10/2013 17:43, Paul Pittlerson wrote: What we need to do is A) Prove that we are not sexist and racist by excluding and intolerating people who do not agree with. B) Head on over to the Ruby mailing list and make a thread called "Hey guys we are the python people, and can you learn to behav

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

2013-10-17 Thread rusi
On Wednesday, October 16, 2013 1:56:27 AM UTC+5:30, zipher wrote: > Yes, well clearly we are not "having the same thoughts", yet the > purpose of the academic establishment is to pin down such terminology > and not have these sloppy understandings everywhere. You dig? Heh Mark I am really sorry.

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread Roy Smith
On Thursday, October 17, 2013 11:07:48 AM UTC-4, Chris Angelico wrote: > Module names should be descriptive, not fancy. Interesting comment, on a mailing list for a language named after a snake, especially by a guy who claims to prefer an language named after a fish :-) -- https://mail.python.o

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

2013-10-17 Thread Piet van Oostrum
Peter Cacioppi writes: >> What you've said here is that "without polymorphism, you can't have >> polymorphism". :) > > Respectfully, no. I refer to the distinction between object based and object > oriented programming. Wikipedia's entry is consistent with my understanding > (not to argue by w

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread rusi
On Thursday, October 17, 2013 5:18:25 PM UTC+5:30, Zero Piraeus wrote: > : > > > > On Thu, Oct 17, 2013 at 09:20:39AM +, Steven D'Aprano wrote: > > > Oh well. There's only so much I can do at once. I've got bigger > > troubles than trying to solve Ruby's problems with yahoos, and > > frankl

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread Paul Pittlerson
What we need to do is A) Prove that we are not sexist and racist by excluding and intolerating people who do not agree with. B) Head on over to the Ruby mailing list and make a thread called "Hey guys we are the python people, and can you learn to behave, ok plz?" wherein we detail to them what

How to copy hyperlinks using xlrd, xlwt and xlutils?

2013-10-17 Thread Sameer Gupta
Hello Everyone! *Problem:* I am trying a simple code for writting excel sheet. The program checks if the Excel sheet already exists, If the file exists, then it append it with the new data. The problem is I am unable to copy hyperlinks. I would be very thankful if anyone can suggest me some way.

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread Chris Angelico
On Fri, Oct 18, 2013 at 1:38 AM, Danyelle Davis wrote: > I am a woman and all I can say to these things is.. Bringing light to these > things do nothing but give attention to the attention seeking.. yea the > names are dumb. But does it ever stop me. No. Mainly because ignore the > college/boyis

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread Mark Lawrence
On 17/10/2013 04:13, Owen Jacobson wrote: It is no business of the Python community how the Ruby community manages sexism or any other ism. -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

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

2013-10-17 Thread Chris Angelico
On Fri, Oct 18, 2013 at 1:49 AM, Mark Janssen wrote: > It's like this. No matter how you cut it, you're going to get back to > the computers where you load instructions with switches. At that > point, I'll be very much looking in anticipation to your binary-digit > lexer. Even when computers we

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

2013-10-17 Thread Mark Lawrence
On 17/10/2013 15:49, Mark Janssen wrote: Prior to that [the '70s] you have punch cards where there's no meaningful definition of "parsing" because there are no tokens. I have no idea what you mean by this. [...] You seem drawn to sweeping statements about the current state and history of com

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

2013-10-17 Thread Mark Janssen
>Prior to that [the '70s] you have punch cards where there's no meaningful > definition of "parsing" because there are no tokens. > > I have no idea what you mean by this. [...] > You seem drawn to sweeping statements about the current state and history of > computer science, but then make clai

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread Danyelle Davis
I am a woman and all I can say to these things is.. Bringing light to these things do nothing but give attention to the attention seeking.. yea the names are dumb. But does it ever stop me. No. Mainly because ignore the college/boyish mentality that is associated with names like that. On Thu, O

Re: urllib2 timeout issue

2013-10-17 Thread Ervin Hegedüs
Hello, On Thu, Oct 17, 2013 at 03:34:05PM +0200, Jérôme wrote: > Hi. > > Thank you all for your answers. > > -- > Context: > > The problem I want to address is the code being stuck too long when the > network is down. > > I'm working on a softwar

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread Roy Smith
In article <201310162317485-owenjacobson@grimoireca>, Owen Jacobson wrote: > * SexMachine (https://pypi.python.org/pypi/SexMachine/0.1.1 - an > attempt to detect the gender of names, which… well, ask the nearest boy > named Sue - or girl named Leslie) I'm not sure what you're objecting

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

2013-10-17 Thread Grant Edwards
On 2013-10-17, Mark Janssen wrote: >> And your earlier idea that punched cards didn't have tokens is wildly >> ignorant of the state of software and languages 50 years ago. > > Please tell me how you parsed tokens with binary switches 50 years > ago. Your input is rubbish. Are you under the misa

Re: urllib2 timeout issue

2013-10-17 Thread Jérôme
Hi. Thank you all for your answers. -- Context: The problem I want to address is the code being stuck too long when the network is down. I'm working on a software gateway running on a Raspberry Pi, that forwards data received through a radio link

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

2013-10-17 Thread rusi
On Thursday, October 17, 2013 6:09:59 PM UTC+5:30, rusi wrote: > On Thursday, October 17, 2013 12:19:02 PM UTC+5:30, Peter Cacioppi wrote: > > > Object oriented programming takes things further, most significantly by > introducing the idea that the object reference you are referencing might be a

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

2013-10-17 Thread rusi
On Thursday, October 17, 2013 12:19:02 PM UTC+5:30, Peter Cacioppi wrote: > Object oriented programming takes things further, most significantly by > introducing the idea that the object reference you are referencing might be a > run time dependent sub-class. Even Python, which isn't strongly typ

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread Zero Piraeus
: On Thu, Oct 17, 2013 at 09:20:39AM +, Steven D'Aprano wrote: > Oh well. There's only so much I can do at once. I've got bigger > troubles than trying to solve Ruby's problems with yahoos, and > frankly, if I were a Ruby community member, I wouldn't exactly be > pleased to have a bunch of str

Re: Testing BlockHosts

2013-10-17 Thread Cameron Simpson
On 16Oct2013 16:13, t.h.i.r.d_...@hotmail.com wrote: > Can somebody tell me how I can test BockHosts? I want to see if > an IP address gets blocked or not, as I have to provide evidence > of testing for a presentation. Well, you could ping it I suppose... Unless you're offline. Or behind a firewa

Re: Offense versus harrassment (was: Sexism in the Ruby community: how does the Python community manage it?)

2013-10-17 Thread Steven D'Aprano
On Thu, 17 Oct 2013 17:44:01 +1100, Ben Finney wrote: [...] > Nazis, while they were an awful oppressive influence in society in the > first half of the 20th century, are not an influence now in the 3rd > millennium. Tell that to Golden Dawn. And the Russian Parliament. Just because few people i

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread Chris Angelico
On Thu, Oct 17, 2013 at 9:30 PM, wrote: > > > On Wed, Oct 16, 2013, at 11:13 PM, Owen Jacobson wrote: > > [...] >> 2. What kind of social pressure can we bring to bear to _keep_ Python's >> package naming conventions as socially neutral as they are, if and when >> some high-profile dirtbag decide

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread marduk
On Wed, Oct 16, 2013, at 11:13 PM, Owen Jacobson wrote: [...] > 2. What kind of social pressure can we bring to bear to _keep_ Python's > package naming conventions as socially neutral as they are, if and when > some high-profile dirtbag decides this language is the best language? > How can w

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread Steven D'Aprano
On Wed, 16 Oct 2013 23:13:33 -0400, Owen Jacobson wrote: > Last week, Elad Maidar wrote a fairly short but readable opinion > piece[0] illustrating some long-standing social problems in the Ruby > community, ending with a very specific call to action around naming > conventions for Ruby projects a

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-10-17 Thread Steven D'Aprano
On Thu, 17 Oct 2013 01:36:36 +0200, Skybuck Flying wrote: > Computer languages should also support labels and the goto statement so > that code recovery from failures is more easy: O_o That's a very ... interesting ... statement. Oh look, your post was cross-posted to no fewer than four newsgro

Re: how to add object from dict

2013-10-17 Thread Steven D'Aprano
On Thu, 17 Oct 2013 11:46:52 +1100, Chris Angelico wrote: > On Thu, Oct 17, 2013 at 11:43 AM, MRAB > wrote: >> I'm guessing, but perhaps you need: >> >> instance = getattr(self, "%s" % key) > > How's that different from getattr(self,str(key))? Are you blind man? The first one has a % symbol

Re: how to add object from dict

2013-10-17 Thread MRAB
On 17/10/2013 01:46, Chris Angelico wrote: On Thu, Oct 17, 2013 at 11:43 AM, MRAB wrote: I'm guessing, but perhaps you need: instance = getattr(self, "%s" % key) How's that different from getattr(self,str(key))? I'm trying to make the bug clearer for the OP by doing it the same way as

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

2013-10-17 Thread Jussi Piitulainen
rusi writes: > However - to speak a little for Mark's perspective (from a hopefully > more educated background): There's a fine line between laboriously > simulating a feature and properly supporting it: > > - C has arbitrary precision arithmetic -- use gmp library > - C is a functional language -

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

2013-10-17 Thread Chris Angelico
On Thu, Oct 17, 2013 at 6:23 PM, Peter Cacioppi wrote: > Respectfully, no. I refer to the distinction between object based and object > oriented programming. Wikipedia's entry is consistent with my understanding > (not to argue by wiki-authority, but the terminology here isn't my personal > inv

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

2013-10-17 Thread Christian Gollwitzer
Am 17.10.13 09:23, schrieb Peter Cacioppi: Do you have a clean little example of polymorphism being mocked in a reasonable way with pure C? There are many nice object-based C projects floating around, but real polymorphism? I think you can't do it without some bizarre work-arounds, but I'd be hap

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

2013-10-17 Thread Peter Cacioppi
> What you've said here is that "without polymorphism, you can't have > polymorphism". :) Respectfully, no. I refer to the distinction between object based and object oriented programming. Wikipedia's entry is consistent with my understanding (not to argue by wiki-authority, but the terminolog

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

2013-10-17 Thread Chris Angelico
On Thu, Oct 17, 2013 at 5:49 PM, Peter Cacioppi wrote: > I don't know if I want to step into the flames here, but my understanding has > always been that in the absence of polymorphism the best you can do is > "object based" programming instead of "object oriented" programming. > > Object orient

Re: Markers on a matplotlib plot

2013-10-17 Thread Mark Lawrence
On 17/10/2013 02:31, Brandon La Porte wrote: On Wednesday, 16 October 2013 18:31:09 UTC-4, Mark Lawrence wrote: On 16/10/2013 22:34, Brandon La Porte wrote: I have the following code to make a plot of 4 different supply curves (economics). from matplotlib import pyplot as plt

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

2013-10-17 Thread Mark Lawrence
On 17/10/2013 01:53, Mark Janssen wrote: And your earlier idea that punched cards didn't have tokens is wildly ignorant of the state of software and languages 50 years ago. Please tell me how you parsed tokens with binary switches 50 years ago. Your input is rubbish. You must be one of the