Re: New to Python - block grouping (spaces)

2015-04-17 Thread Marko Rauhamaa
Michael Torrie : > There was a version of Python (compatible at a bytecode level) that did > implement braces for blocks. It was called pythonb, but it is now > defunct, understandably for lack of interest. http://www.perl.com/pub/2001/04/01/parrot.htm> LW: Sure. I'd probably write the progr

Re: PEP 492, new coroutine syntax for Python

2015-04-17 Thread Chris Angelico
On Sat, Apr 18, 2015 at 3:32 PM, Paul Rubin wrote: > Chris Angelico writes: >> Hah. It only just hit python-ideas, so you're jumping in on something >> brand new - no wonder it hasn't been mentioned yet :) > > Interesting. It's dated a couple weeks ago and has obviously been in > the works for a

Re: PEP 492, new coroutine syntax for Python

2015-04-17 Thread Paul Rubin
Chris Angelico writes: > Hah. It only just hit python-ideas, so you're jumping in on something > brand new - no wonder it hasn't been mentioned yet :) Interesting. It's dated a couple weeks ago and has obviously been in the works for a while. There's a working implementation which I'd think mea

Re: New to Python - block grouping (spaces)

2015-04-17 Thread Larry Hudson
On 04/17/2015 07:22 PM, Ben Finney wrote: BartC writes: (Actually *I* would quite like to know why languages don't have switchable syntax anyway to allow for people's personal preferences.) Which people's personal preferences? Are these the same people who have such passionate disagreement a

Re: Need opinions on P vs NP

2015-04-17 Thread Paddy
On Saturday, 18 April 2015 03:34:57 UTC+1, Ian wrote: > On Fri, Apr 17, 2015 at 7:19 PM, Paddy wrote: > > Having just seen Raymond's talk on Beyond PEP-8 here: > > https://www.youtube.com/watch?v=wf-BqAjZb8M, it reminded me of my own > > recent post where I am soliciting opinions from non-newbi

Re: PEP 492, new coroutine syntax for Python

2015-04-17 Thread Chris Angelico
On Sat, Apr 18, 2015 at 1:47 PM, Paul Rubin wrote: > I don't remember anyone mentioning this here yet, and it is mighty cool: > > https://www.python.org/dev/peps/pep-0492/ Hah. It only just hit python-ideas, so you're jumping in on something brand new - no wonder it hasn't been mentioned yet :)

PEP 492, new coroutine syntax for Python

2015-04-17 Thread Paul Rubin
I don't remember anyone mentioning this here yet, and it is mighty cool: https://www.python.org/dev/peps/pep-0492/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Need opinions on P vs NP

2015-04-17 Thread Ian Kelly
On Fri, Apr 17, 2015 at 7:19 PM, Paddy wrote: > Having just seen Raymond's talk on Beyond PEP-8 here: > https://www.youtube.com/watch?v=wf-BqAjZb8M, it reminded me of my own recent > post where I am soliciting opinions from non-newbies on the relative > Pythonicity of different versions of a ro

Re: New to Python - block grouping (spaces)

2015-04-17 Thread Rustom Mody
On Saturday, April 18, 2015 at 6:49:30 AM UTC+5:30, Dan Sommers wrote: > On Fri, 17 Apr 2015 18:05:52 +0100, BartC wrote: > > > (Actually *I* would quite like to know why languages don't have > > switchable syntax anyway to allow for people's personal preferences.) > > You want LISP, the programm

Re: New to Python - block grouping (spaces)

2015-04-17 Thread Ben Finney
BartC writes: > (Actually *I* would quite like to know why languages don't have > switchable syntax anyway to allow for people's personal preferences.) Which people's personal preferences? Are these the same people who have such passionate disagreement about tabs versus spaces? If you only writ

Re: EuroPython 2015: Django Girls Workshop

2015-04-17 Thread catperson
On Fri, 17 Apr 2015 23:31:42 +0300, Marko Rauhamaa wrote: >beliav...@aol.com: > >> If your target audience is women, I think you should have termed it >> the Django Womens Workshop rather than the Django Girls Workshop. >> Referring to adults as children can be seen as condescending. > >You got i

Re: New to Python - block grouping (spaces)

2015-04-17 Thread Michael Torrie
On 04/17/2015 11:05 AM, BartC wrote: > He wanted to know if there was a simple syntax wrapper for it. That > seems reasonable enough. > > (Actually *I* would quite like to know why languages don't have > switchable syntax anyway to allow for people's personal preferences.) There was a version o

Need opinions on P vs NP

2015-04-17 Thread Paddy
Having just seen Raymond's talk on Beyond PEP-8 here: https://www.youtube.com/watch?v=wf-BqAjZb8M, it reminded me of my own recent post where I am soliciting opinions from non-newbies on the relative Pythonicity of different versions of a routine that has non-simple array manipulations. The bl

Re: New to Python - block grouping (spaces)

2015-04-17 Thread Dan Sommers
On Fri, 17 Apr 2015 18:05:52 +0100, BartC wrote: > (Actually *I* would quite like to know why languages don't have > switchable syntax anyway to allow for people's personal preferences.) You want LISP, the programmable programming language. -- https://mail.python.org/mailman/listinfo/python-list

Re: Failed to import a "pyd: File When python intepreter embed in C++ project

2015-04-17 Thread Dave Angel
On 04/17/2015 01:17 PM, saadaouijihed1...@gmail.com wrote: I have a swig module (.pyd).I followed the steps but it doesn't work please help me. First, unplug the computer and remove the battery. Then if it's still burning, douse it with a fire extinguisher. If your symptoms are different,

Re: Importing/migrating Mailman mbox files into Google Groups?

2015-04-17 Thread Cameron Simpson
On 16Apr2015 08:32, Skip Montanaro wrote: Quite sometime ago (2011?), the classic-rendezvous mailing list, which had been hosted by a Mailman instance at bikelist.org, was reconstituted as a Google Group. Just a bunch of old bikies interested in vintage bikes. The original archives were never im

Re: EuroPython 2015: Django Girls Workshop

2015-04-17 Thread Ian Kelly
On Fri, Apr 17, 2015 at 5:29 PM, Terry Reedy wrote: > On 4/17/2015 4:31 PM, Marko Rauhamaa wrote: >> * You might think it's for children only. > > > I would not. It was my first impression that it was targeted for children. There are a lot of STEM programs these days oriented toward girl childr

Re: EuroPython 2015: Django Girls Workshop

2015-04-17 Thread Terry Reedy
On 4/17/2015 4:31 PM, Marko Rauhamaa wrote: beliav...@aol.com: If your target audience is women, I think you should have termed it the Django Womens Workshop rather than the Django Girls Workshop. Referring to adults as children can be seen as condescending. Are all of you claiming this so ig

Re: EuroPython 2015: Django Girls Workshop

2015-04-17 Thread Ben Finney
Marko Rauhamaa writes: > beliav...@aol.com: > > > If your target audience is women, I think you should have termed it > > the Django Womens Workshop rather than the Django Girls Workshop. > > Referring to adults as children can be seen as condescending. > > You got it wrong. The name is not offen

ANN: Leo 5.1-final. PIM, scripting Python IDE, Outliner

2015-04-17 Thread edreamleo
http://leoeditor.com/";>Leo 5.1 final is now available at http://sourceforge.net/projects/leo/files/Leo/";>SourceForge. Leo is Open Software, using the http://leoeditor.com/license.html";>MIT License. Leo 5.1-final is recommended for anyone using Leo 5.1 b1 or Leo 5.0-final. The highlights of

Re: EuroPython 2015: Django Girls Workshop

2015-04-17 Thread Mark Lawrence
On 17/04/2015 20:35, beliav...@aol.com.dmarc.invalid wrote: On Friday, April 17, 2015 at 1:25:51 PM UTC-4, M.-A. Lemburg wrote: We are happy to announce that we will be hosting a Django Girls Workshop during the EuroPython 2015. It will take place on 20th of July, the first day of the conference

Re: New to Python - block grouping (spaces)

2015-04-17 Thread Chris Angelico
On Sat, Apr 18, 2015 at 3:05 AM, BartC wrote: > (Actually *I* would quite like to know why languages don't have switchable > syntax anyway to allow for people's personal preferences.) Why do it? What's the advantage of calling two different syntaxes one language? Simpler to just call them two sep

Re: EuroPython 2015: Django Girls Workshop

2015-04-17 Thread Larry Martell
On Fri, Apr 17, 2015 at 4:31 PM, Marko Rauhamaa wrote: > beliav...@aol.com: > >> If your target audience is women, I think you should have termed it >> the Django Womens Workshop rather than the Django Girls Workshop. >> Referring to adults as children can be seen as condescending. > > You got it

Re: EuroPython 2015: Django Girls Workshop

2015-04-17 Thread Marko Rauhamaa
beliav...@aol.com: > If your target audience is women, I think you should have termed it > the Django Womens Workshop rather than the Django Girls Workshop. > Referring to adults as children can be seen as condescending. You got it wrong. The name is not offensive. However, it suffers from two se

Re: New to Python - block grouping (spaces)

2015-04-17 Thread Marko Rauhamaa
sohcahto...@gmail.com: > Can someone still write ugly code in Python? No doubt about it. But at > least code blocks will be easily deciphered. That's how I was originally convinced about Python: a coworker with a terrible C++ "handwriting" produced neat, legible code in Python. I'm still slightl

Re: EuroPython 2015: Django Girls Workshop

2015-04-17 Thread beliavsky
On Friday, April 17, 2015 at 1:25:51 PM UTC-4, M.-A. Lemburg wrote: > We are happy to announce that we will be hosting a Django Girls Workshop > during the EuroPython 2015. It will take place on 20th of July, the > first day of the conference. > > We believe in the work that this group is doing to

Re: Great Math Mystery

2015-04-17 Thread Ron Adam
On 04/17/2015 11:03 AM, Steven D'Aprano wrote: On Fri, 17 Apr 2015 07:47 pm, Fetchinson . wrote: >>>In an altercation with the police, complying with their orders greatly >>>increases your chances of survival. >> >>Ah, the definition of a police state: where ordinary people, whether >>breaki

Re: New to Python - block grouping (spaces)

2015-04-17 Thread sohcahtoa82
On Friday, April 17, 2015 at 10:06:13 AM UTC-7, BartC wrote: > On 17/04/2015 17:28, Grant Edwards wrote: > > On 2015-04-17, Michael Torrie wrote: > > >> However, it may be that people recognized that you likely had made up > >> your mind already, and posted accordingly. > > > > I think most of us

Re: Failed to import a "pyd: File When python intepreter embed in C++ project

2015-04-17 Thread Emile van Sebille
On 4/17/2015 10:17 AM, saadaouijihed1...@gmail.com wrote: I have a swig module (.pyd).I followed the steps but it doesn't work please help me. Start here: http://catb.org/~esr/faqs/smart-questions.html Emile -- https://mail.python.org/mailman/listinfo/python-list

EuroPython 2015: Django Girls Workshop

2015-04-17 Thread M.-A. Lemburg
We are happy to announce that we will be hosting a Django Girls Workshop during the EuroPython 2015. It will take place on 20th of July, the first day of the conference. We believe in the work that this group is doing to bring more women into technology, and we will work towards making EuroPython

Re: Failed to import a "pyd: File When python intepreter embed in C++ project

2015-04-17 Thread saadaouijihed1990
I have a swig module (.pyd).I followed the steps but it doesn't work please help me. -- https://mail.python.org/mailman/listinfo/python-list

Re: New to Python - block grouping (spaces)

2015-04-17 Thread Rustom Mody
On Friday, April 17, 2015 at 10:36:13 PM UTC+5:30, BartC wrote: > (Actually *I* would quite like to know why languages don't have > switchable syntax anyway to allow for people's personal preferences.) Mess in programming syntax is because of html: http://blog.languager.org/2012/10/html-is-why-me

Re: New to Python - block grouping (spaces)

2015-04-17 Thread BartC
On 17/04/2015 17:28, Grant Edwards wrote: On 2015-04-17, Michael Torrie wrote: However, it may be that people recognized that you likely had made up your mind already, and posted accordingly. I think most of us just assumed he was just trolling and were playing along for the fun of it. Wh

Re: New to Python - block grouping (spaces)

2015-04-17 Thread Grant Edwards
On 2015-04-17, Michael Torrie wrote: > On 04/16/2015 08:52 AM, Blake McBride wrote: >> Thanks for all the responses. I especially like the Pike pointer. >> To be clear: > [troll bait elided] > While it appears that you had already made up your mind about the > matter long before posting, and per

Re: New to Python - block grouping (spaces)

2015-04-17 Thread Michael Torrie
On 04/16/2015 08:52 AM, Blake McBride wrote: > Thanks for all the responses. I especially like the Pike pointer. > To be clear: > > 1. I don't think languages should depend on invisible elements to > determine logic. > > 2. Having been an employer, it is difficult to force programmers to > use

Re: Converting text file to different encoding.

2015-04-17 Thread Peter Otten
Chris Angelico wrote: > On Sat, Apr 18, 2015 at 12:26 AM, wrote: >> I tried to do as follows, > import codecs > sourceEncoding = "iso-8859-1" > targetEncoding = "utf-8" > source = open("source1","w") > string1="String type" > str1=str(string1) > source.write(str1) >>>

Re: Great Math Mystery

2015-04-17 Thread Steven D'Aprano
On Fri, 17 Apr 2015 07:47 pm, Fetchinson . wrote: >>> In an altercation with the police, complying with their orders greatly >>> increases your chances of survival. >> >> Ah, the definition of a police state: where ordinary people, whether >> breaking the law or not, are forced by fear of death to

Re: Converting text file to different encoding.

2015-04-17 Thread Dave Angel
On 04/17/2015 10:48 AM, Dave Angel wrote: On 04/17/2015 09:19 AM, subhabrata.bane...@gmail.com wrote: >>> target = open("target", "w") It's not usually a good idea to use the same variable for both the file name and the opened file object. What if you need later to print the name, as in

Re: Converting text file to different encoding.

2015-04-17 Thread Marko Rauhamaa
Chris Angelico : > Here's how I'd do it. > > $ python3 with open("source1", encoding="iso-8859-1") as source, >> open("target", "w", encoding="utf-8") as target: > ... target.write(source.read()) You might run out of memory. How about: ===

Re: Converting text file to different encoding.

2015-04-17 Thread Dave Angel
On 04/17/2015 09:19 AM, subhabrata.bane...@gmail.com wrote: I am having few files in default encoding. I wanted to change their encodings, preferably in "UTF-8", or may be from one encoding to any other encoding. You neglected to specify what Python version this is for. Other information tha

Re: Converting text file to different encoding.

2015-04-17 Thread Chris Angelico
On Sat, Apr 18, 2015 at 12:26 AM, wrote: > I tried to do as follows, import codecs sourceEncoding = "iso-8859-1" targetEncoding = "utf-8" source = open("source1","w") string1="String type" str1=str(string1) source.write(str1) source.close() target = op

Re: Converting text file to different encoding.

2015-04-17 Thread subhabrata . banerji
On Friday, April 17, 2015 at 7:36:46 PM UTC+5:30, Oscar Benjamin wrote: > wrote: > > On Friday, April 17, 2015 at 6:50:08 PM UTC+5:30, wrote: > >> I am having few files in default encoding. I wanted to change their > >> encodings, > >> preferably in "UTF-8", or may be from one encoding to any ot

Re: Immediate Hire: Liferay Developer - Remote

2015-04-17 Thread Skip Montanaro
On Fri, Apr 17, 2015 at 9:02 AM, nagaraju thoudoju < nagarajuusstaff...@gmail.com> wrote: > 1. Java: minimum of 3 years > > 2. Liferay: minimum of 2 years > > 3. Total IT experience minimum of 5 years > Raju, You recently posted another position which had nothing to do with Python. I replied pri

Re: [Conferences] PyCon Mexico

2015-04-17 Thread Alexandro Colorado
I did that site, with the hope of rallying the troops to create a Summit in Cancun about Python. However there were factors that slow the process down and the project became idle after november. On Thu, Mar 19, 2015 at 11:05 PM, Pythonízame MX wrote: > Hello, my Name is Alex Dzul. > > Python /Dj

Re: Converting text file to different encoding.

2015-04-17 Thread Oscar Benjamin
On 17 April 2015 at 14:51, wrote: > On Friday, April 17, 2015 at 6:50:08 PM UTC+5:30, subhabrat...@gmail.com > wrote: >> I am having few files in default encoding. I wanted to change their >> encodings, >> preferably in "UTF-8", or may be from one encoding to any other encoding. >> >> I was try

Immediate Hire: Liferay Developer - Remote

2015-04-17 Thread nagaraju thoudoju
Hi, Hope you are doing well, This is Raj from International Systems Technologies. Please find the requirement below and let me know you interest on this position on nagar...@intsystech.com or feel free to call me on D:908-333-3540 Please Requirement: Role: Liferay Develoeper Location:

Re: Converting text file to different encoding.

2015-04-17 Thread subhabrata . banerji
On Friday, April 17, 2015 at 6:50:08 PM UTC+5:30, subhabrat...@gmail.com wrote: > I am having few files in default encoding. I wanted to change their > encodings, > preferably in "UTF-8", or may be from one encoding to any other encoding. > > I was trying it as follows, > >>>> import codec

Re: Converting text file to different encoding.

2015-04-17 Thread Rustom Mody
On Friday, April 17, 2015 at 6:50:08 PM UTC+5:30, subhabrat...@gmail.com wrote: > I am having few files in default encoding. I wanted to change their > encodings, > preferably in "UTF-8", or may be from one encoding to any other encoding. > > I was trying it as follows, > >>>> import codec

Converting text file to different encoding.

2015-04-17 Thread subhabrata . banerji
I am having few files in default encoding. I wanted to change their encodings, preferably in "UTF-8", or may be from one encoding to any other encoding. I was trying it as follows, >>> import codecs >>> sourceEncoding = "iso-8859-1" >>> targetEncoding = "utf-8" >>> source = open("so

looking for students to take new online python course at no cost

2015-04-17 Thread biker
Hi, (I apologize if this seems spammy, but I think this is a good opportunity for beginning python programmers.) We are seeking candid feedback on a new python programming online course for beginners, and will randomly select students (lottery style/5 new students each month) who are new to pyth

ANN: Python Meeting Düsseldorf - 29.04.2015

2015-04-17 Thread eGenix Team: M.-A. Lemburg
[This announcement is in German since it targets a local user group meeting in Düsseldorf, Germany] ANKÜNDIGUNG Python Meeting Düsseldorf http://pyddf.de/ Ein Treffen v

Re: Great Math Mystery

2015-04-17 Thread alister
On Fri, 17 Apr 2015 11:47:06 +0200, Fetchinson . wrote: >>> In an altercation with the police, complying with their orders greatly >>> increases your chances of survival. >> >> Ah, the definition of a police state: where ordinary people, whether >> breaking the law or not, are forced by fear of de

Re: Great Math Mystery

2015-04-17 Thread Fetchinson .
>> In an altercation with the police, complying with their orders greatly >> increases your chances of survival. > > Ah, the definition of a police state: where ordinary people, whether > breaking the law or not, are forced by fear of death to obey the police at > all times, whether the police are

Re: New to Python - block grouping (spaces)

2015-04-17 Thread Antoon Pardon
Op 16-04-15 om 19:10 schreef Steven D'Aprano: > On Thu, 16 Apr 2015 08:51 pm, BartC wrote: > >> On 16/04/2015 06:49, Steven D'Aprano wrote: >>> On Thursday 16 April 2015 14:07, Blake McBride wrote: Is there a utility that will allow me to write Python-like code that includes some block de