Re: Do not run this code.

2015-03-04 Thread Chris Angelico
On Thu, Mar 5, 2015 at 5:44 PM, Ben Finney wrote: > Chris Angelico writes: > >> import base64; exec(…) > > That's all I need to know. Code with ‘exec()’ calls, I consider unsafe > by default. Well yes, there is that :) ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Do not run this code.

2015-03-04 Thread Dave Farrance
Ben Finney wrote: >Chris Angelico writes: > >> import base64; exec(…) > >That's all I need to know. Code with ‘exec()’ calls, I consider unsafe >by default. Indeed. replacing exec with print... >>> print(base64.b64decode(b"eD0neD0lcjsgZXhlYyh4JSV4KSc7IGV4ZWMoeCV4KQ==")) x='x=%r; exec(x%%x)'; e

Re: Do not run this code.

2015-03-04 Thread Ben Finney
Chris Angelico writes: > import base64; exec(…) That's all I need to know. Code with ‘exec()’ calls, I consider unsafe by default. -- \ Lucifer: “Just sign the Contract, sir, and the Piano is yours.” | `\ Ray: “Sheesh! This is long! Mind if I sign it now and read it | _o__)

Do not run this code.

2015-03-04 Thread Chris Angelico
import base64; exec(base64.b64decode(b"eD0neD0lcjsgZXhlYyh4JSV4KSc7IGV4ZWMoeCV4KQ==")) Or do, but don't blame me if Python crashes out badly. It seems Py3 is safer than Py2 here. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: HELP!! How to ask a girl out with a simple witty Python code??

2015-03-04 Thread km
show her your python and and impress her. Regards, Krishna On Thu, Mar 5, 2015 at 7:04 AM, Xrrific wrote: > Guys, please Help!!! > > I am trying to impress a girl who is learning python and want ask her out > at the same time. > > Could you please come up with something witty incorporating a sim

Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices]

2015-03-04 Thread Marko Rauhamaa
Rustom Mody : > You keep talking of accent. > At first I thought you were using the word figuratively or else joking. > Im now beginning to wonder if you mean it literally. > If so have you patented a new AOIP protocol? > If not do you give tuitions¹ in ESP/telepathy/Voodoo? I'll be happy to > pay

Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices]

2015-03-04 Thread Rustom Mody
On Thursday, March 5, 2015 at 1:03:13 AM UTC+5:30, Marko Rauhamaa wrote: > Steven D'Aprano: > > > Care to enlighten us then? Because your anecdote doesn't appear to > > have even the most tenuous relationship to this discussion. > > Even more important, when you talk about Python or other compute

Re: HELP!! How to ask a girl out with a simple witty Python code??

2015-03-04 Thread Chris Angelico
On Thu, Mar 5, 2015 at 1:50 PM, wrote: > On Wednesday, March 4, 2015 at 5:34:16 PM UTC-8, Xrrific wrote: >> Guys, please Help!!! >> >> I am trying to impress a girl who is learning python and want ask her out at >> the same time. >> >> Could you please come up with something witty incorporating

Re: HELP!! How to ask a girl out with a simple witty Python code??

2015-03-04 Thread sohcahtoa82
On Wednesday, March 4, 2015 at 5:34:16 PM UTC-8, Xrrific wrote: > Guys, please Help!!! > > I am trying to impress a girl who is learning python and want ask her out at > the same time. > > Could you please come up with something witty incorporating a simple python > line like If...then... but..

Re: HELP!! How to ask a girl out with a simple witty Python code??

2015-03-04 Thread Mario Figueiredo
On Wed, 4 Mar 2015 17:34:04 -0800 (PST), Xrrific wrote: >I am trying to impress a girl who is learning python and want ask her out at >the same time. > >Could you please come up with something witty incorporating a simple python >line like If...then... but..etc. How about not using python at al

Re: HELP!! How to ask a girl out with a simple witty Python code??

2015-03-04 Thread Ben Finney
Terry Reedy writes: > On 3/4/2015 8:34 PM, Xrrific wrote: > > I am trying to impress a girl who is learning python and want ask > > her out at the same time. > > Start by not being sexist about the fitness of females for Python > programming. Make sure she knows that at least parts of the Python

Re: HELP!! How to ask a girl out with a simple witty Python code??

2015-03-04 Thread Ryan Stuart
On Thu, 5 Mar 2015 at 11:35 Xrrific wrote: > Could you please come up with something witty incorporating a simple > python line like If...then... but..etc. > Send her this: import base64 print(base64.b64decode('CkhpLCAKVGhpcyBpcyBzb21lb25lIGZyb20gdGhlIHB5dGhvbiBtYWlsaW5nIGxpc3QuIFRoaXMgZ3V5ICho

Re: HELP!! How to ask a girl out with a simple witty Python code??

2015-03-04 Thread Terry Reedy
On 3/4/2015 8:34 PM, Xrrific wrote: Guys, please Help!!! Gals might know better how to impress a girl. I am trying to impress a girl who is learning python and want ask her out at the same time. Start by not being sexist about the fitness of females for Python programming. Make sure she

Re: HELP!! How to ask a girl out with a simple witty Python code??

2015-03-04 Thread Roy Smith
In article <8c09473e-92df-40ac-b083-d2b3a2b75...@googlegroups.com>, Xrrific wrote: > Guys, please Help!!! > > I am trying to impress a girl who is learning python and want ask her out at > the same time. > > Could you please come up with something witty incorporating a simple python > line l

Re: HELP!! How to ask a girl out with a simple witty Python code??

2015-03-04 Thread sohcahtoa82
Something something don't top post. Add responses to the bottom. BLah blah blah On Wednesday, March 4, 2015 at 5:37:55 PM UTC-8, Marcos Almeida Azevedo wrote: > Why does it need to be nerdy. Why not just buy her a good book on Python? > > > > On Thu, Mar 5, 2015 at 9:34 AM, Xrrific wrote: >

Re: HELP!! How to ask a girl out with a simple witty Python code??

2015-03-04 Thread Marcos Almeida Azevedo
Why does it need to be nerdy. Why not just buy her a good book on Python? On Thu, Mar 5, 2015 at 9:34 AM, Xrrific wrote: > Guys, please Help!!! > > I am trying to impress a girl who is learning python and want ask her out > at the same time. > > Could you please come up with something witty inco

HELP!! How to ask a girl out with a simple witty Python code??

2015-03-04 Thread Xrrific
Guys, please Help!!! I am trying to impress a girl who is learning python and want ask her out at the same time. Could you please come up with something witty incorporating a simple python line like If...then... but..etc. You will make me a very happy man!!! Thank you very much!!! -- https:/

Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices]

2015-03-04 Thread Tim Delaney
On 5 March 2015 at 09:39, Emile van Sebille wrote: > On 3/4/2015 12:40 PM, Tim Delaney wrote: > >> A related thing is when you have multiple multi-lingual people talking >> together where at least two of their languages match (or are close >> enough for most uses e.g. Spanish and Portuguese). The

Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices]

2015-03-04 Thread Emile van Sebille
On 3/4/2015 12:40 PM, Tim Delaney wrote: A related thing is when you have multiple multi-lingual people talking together where at least two of their languages match (or are close enough for most uses e.g. Spanish and Portuguese). They'll slip in and out of multiple languages depending on which be

Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices]

2015-03-04 Thread Tim Delaney
On 5 March 2015 at 07:11, Steven D'Aprano < steve+comp.lang.pyt...@pearwood.info> wrote: > > As for your comments about spoken accents, I sympathise. But changing > accents is very hard for most people (although a very few people find it > incredibly easy). Even professionals typically need to hav

Re: Python Worst Practices

2015-03-04 Thread Christian Gollwitzer
Am 04.03.15 um 00:12 schrieb Chris Angelico: > The problems come from needing more than two components at each step, > like with string formatting. You could write it like this: > > "Hello, %s from %s!" % name % location > > but then it'd be really hard to track down errors - the modulo > operato

Re: io.open vs. codecs.open

2015-03-04 Thread Mark Lawrence
On 04/03/2015 19:56, Steven D'Aprano wrote: Albert-Jan Roskam wrote: Hi, Is there a (use case) difference between codecs.open and io.open? What is the difference? A small difference that I just discovered is that codecs.open(somefile).read() returns a bytestring if no encoding is specified*),

Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices]

2015-03-04 Thread Mark Lawrence
On 04/03/2015 19:33, Marko Rauhamaa wrote: Steven D'Aprano : Care to enlighten us then? Because your anecdote doesn't appear to have even the most tenuous relationship to this discussion. English-speaker, when you name things in your Python programs, you had better stick to American spellings

Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices]

2015-03-04 Thread Steven D'Aprano
Marko Rauhamaa wrote: > Steven D'Aprano : > >> Care to enlighten us then? Because your anecdote doesn't appear to >> have even the most tenuous relationship to this discussion. > > English-speaker, when you name things in your Python programs, you had > better stick to American spellings. > > E

Re: io.open vs. codecs.open

2015-03-04 Thread random832
On Wed, Mar 4, 2015, at 07:12, Albert-Jan Roskam wrote: > Hi, > > Is there a (use case) difference between codecs.open and io.open? What is > the difference? > A small difference that I just discovered is that > codecs.open(somefile).read() returns a bytestring if no encoding is > specified*), but

Re: io.open vs. codecs.open

2015-03-04 Thread Steven D'Aprano
Albert-Jan Roskam wrote: > Hi, > > Is there a (use case) difference between codecs.open and io.open? What is > the difference? A small difference that I just discovered is that > codecs.open(somefile).read() returns a bytestring if no encoding is > specified*), but a unicode string if an encoding

Call for Papers - Programming Language Evolution Workshop 2015

2015-03-04 Thread Sarah Mount
2nd Workshop on Programming Language Evolution (PLE) 2015 (colocated with ECOOP 2015, Prague, Czech Republic) http://2015.ecoop.org/track/PLE-2015-papers Call for papers --- Programming languages tend to evolve in response to user needs, hardware advances, and research developments.

Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices]

2015-03-04 Thread Marko Rauhamaa
Steven D'Aprano : > Care to enlighten us then? Because your anecdote doesn't appear to > have even the most tenuous relationship to this discussion. English-speaker, when you name things in your Python programs, you had better stick to American spellings. Even more important, when you talk about

Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices]

2015-03-04 Thread Ethan Furman
On 03/04/2015 11:14 AM, Steven D'Aprano wrote: > > [...] > > > Wow -- a new level of succinctness! ;) -- ~Ethan~ signature.asc Description: OpenPGP digital signature -- https://mail.python.org/mailman/listinfo/python-list

Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices]

2015-03-04 Thread Steven D'Aprano
Marko Rauhamaa wrote: > llanitedave : > >> Seems the ultimate in irony when a language invented by a Dutchman and >> named after a British comedy troupe gets bogged down in an argument >> about whether its users are sufficiently "American". > > No, the ultimate irony is that people don't underst

Senior Python Applications Developer/Leader. Michigan contract @$90/hr. Skills: Agile, Java, PHP, HTML5, CSS3, JavaScript, jQuery, Amazon Web Services (AWS)

2015-03-04 Thread Leigh Haugen
Senior Python Applications Developer/Leader. Key Skills: Agile, Java, PHP, HTML5, CSS3, JavaScript, jQuery, Amazon Web Services (AWS) Direct client. H1B is OK. Ann Arbor, Michigan. Initial six month contract, probably good through the end of 2015. We can pay up to $90/hr. & possibly higher fo

Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices]

2015-03-04 Thread Marko Rauhamaa
Mario Figueiredo : > Care to summarize then? > > Because the one thing I'm seeing is your assertion that people should > write identifiers in a more standard way following an us-eng dialect > and you jab at the British by accusing them of being more resistant to > this than non-english speakers (w

Re: http: connection reset by peer

2015-03-04 Thread Ethan Furman
On 03/04/2015 01:26 AM, Chris Angelico wrote: > On Wed, Mar 4, 2015 at 5:33 PM, Ethan Furman wrote: >> >> I login to the roundup server -- I can search, create new issues, post new >> messages via both email and the web >> interface, and I can attach files... but only via email; if I try to attach

Re: Unable to install xmldiff package on WIndows7

2015-03-04 Thread ewerybody
On Saturday, March 3, 2012 at 3:45:32 AM UTC+1, gwang wrote: > On Jan 3, 11:47 am, hisan wrote: > > Hi All > > > > i have downloaded "xmldiff-0.6.10" from their official site > > (http://www.logilab.org/859). > > I have tried installing the same on my 32 bit Windows 7 OS using the > > command "se

Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices]

2015-03-04 Thread Rustom Mody
On Wednesday, March 4, 2015 at 6:46:32 PM UTC+5:30, Marko Rauhamaa wrote: > llanitedave : > > > Seems the ultimate in irony when a language invented by a Dutchman and > > named after a British comedy troupe gets bogged down in an argument > > about whether its users are sufficiently "American". >

EuroPython 2015: We've sold half of the available early-bird tickets already

2015-03-04 Thread M.-A. Lemburg
We have 350 early-bird tickets available. Half of those have been sold by now in an amazing rush to our registration page: *** https://ep2015.europython.eu/en/registration/ *** We would like to thank everyone who bought a ticket and put trust in us to make the conference an interesting

Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices]

2015-03-04 Thread Mario Figueiredo
On Wed, 04 Mar 2015 15:16:18 +0200, Marko Rauhamaa wrote: > >No, the ultimate irony is that people don't understand what is being >talked about. > Care to summarize then? Because the one thing I'm seeing is your assertion that people should write identifiers in a more standard way following an

Re: (Still OT) Nationalism, language and monoculture [was Re: Python Worst Practices]

2015-03-04 Thread Marko Rauhamaa
llanitedave : > Seems the ultimate in irony when a language invented by a Dutchman and > named after a British comedy troupe gets bogged down in an argument > about whether its users are sufficiently "American". No, the ultimate irony is that people don't understand what is being talked about. R

io.open vs. codecs.open

2015-03-04 Thread Albert-Jan Roskam
Hi, Is there a (use case) difference between codecs.open and io.open? What is the difference? A small difference that I just discovered is that codecs.open(somefile).read() returns a bytestring if no encoding is specified*), but a unicode string if an encoding is specified. io.open always retur

Re: http: connection reset by peer

2015-03-04 Thread Chris Angelico
On Wed, Mar 4, 2015 at 5:33 PM, Ethan Furman wrote: > I login to the roundup server -- I can search, create new issues, post new > messages via both email and the web > interface, and I can attach files... but only via email; if I try to attach a > file via the web interface I immediately > get

Re: Setting PYTHONPATH does not allow importing module

2015-03-04 Thread cl
fa...@vt.edu wrote: > I have the following directory /home/me/projects/modulename. > > I update PYTHONPATH using the following command: > export PYTHONPATH=$PYTHONPATH:/home/me/projects/modulename > > It seems to have been added: > [me@machine ~]$ python -c "import sys; print(sys.path)" > ['',...