Re: Ah Python, you have spoiled me for all other languages

2015-05-24 Thread Chris Angelico
On Mon, May 25, 2015 at 1:26 AM, Marko Rauhamaa wrote: > Steven D'Aprano : > >> On Sun, 24 May 2015 02:53 am, Marko Rauhamaa wrote: >> "an authentication is considered valid if it is vouched for by the United >> States, China, Russia *and* the European Union." >> >> [Emphasis in the original.] >>

[RELEASED] Python 3.5.0b1 is now available

2015-05-24 Thread Larry Hastings
On behalf of the Python development community and the Python 3.5 release team, I'm pleased to announce the availability of Python 3.5.0b1. Python 3.5 has now entered "feature freeze". By default new features may no longer be added to Python 3.5. (However, there are a handful of features tha

Re: Ah Python, you have spoiled me for all other languages

2015-05-24 Thread Johannes Bauer
On 23.05.2015 19:05, Marko Rauhamaa wrote: > Johannes Bauer : > >> I think the major flaw of the X.509 certificate PKI we have today is >> that there's no namespacing whatsoever. This is a major problem, as >> the Government of Untrustworthia may give out certifictes for >> google.de if they wish

Re: Extract email address from Java script in html source using python

2015-05-24 Thread Friedrich Rentsch
On 05/23/2015 04:15 PM, savitha devi wrote: What I exactly want is the java script is in the html code. I am trying for a regular expression to find the email address embedded with in the java script. On Sat, May 23, 2015 at 2:31 PM, Chris Angelico wrote: On Sat, May 23, 2015 at 4:46 PM, sa

Re: Ah Python, you have spoiled me for all other languages

2015-05-24 Thread Marko Rauhamaa
Steven D'Aprano : > On Sun, 24 May 2015 02:53 am, Marko Rauhamaa wrote: > "an authentication is considered valid if it is vouched for by the United > States, China, Russia *and* the European Union." > > [Emphasis in the original.] > > So if (let's say) the US, China and Russia all agree that a Cer

Re: programmatically change windows regional settings?

2015-05-24 Thread Mark Lawrence
On 24/05/2015 15:16, Albert-Jan Roskam via Python-list wrote: - On Sun, May 24, 2015 3:07 PM CEST Mark Lawrence wrote: You're probably better off asking this on https://mail.python.org/mailman/listinfo/python-win32 which is also available as gmane.comp.python.window

Re: programmatically change windows regional settings?

2015-05-24 Thread Albert-Jan Roskam via Python-list
- On Sun, May 24, 2015 4:45 PM CEST Laura Creighton wrote: >In a message of Sun, 24 May 2015 14:07:37 +0100, Mark Lawrence writes: >>On 24/05/2015 13:50, Albert-Jan Roskam via Python-list wrote: >> >> Hi, >> >> In Windows I can change the regional settings manually in

Re: programmatically change windows regional settings?

2015-05-24 Thread Laura Creighton
In a message of Sun, 24 May 2015 14:07:37 +0100, Mark Lawrence writes: >On 24/05/2015 13:50, Albert-Jan Roskam via Python-list wrote: >> >> Hi, >> >> In Windows I can change the regional settings manually in the control panel. >> But how do I do this programmatically? I tried setting LANG but this

Re: programmatically change windows regional settings?

2015-05-24 Thread Albert-Jan Roskam via Python-list
- On Sun, May 24, 2015 3:07 PM CEST Mark Lawrence wrote: >On 24/05/2015 13:50, Albert-Jan Roskam via Python-list wrote: >> >> Hi, >> >> In Windows I can change the regional settings manually in the control panel. >> But how do I do this programmatically? I tried setti

Re: Setting prompt in ipython

2015-05-24 Thread Chris Angelico
On Sun, May 24, 2015 at 11:56 PM, Mark Lawrence wrote: > One of the major warts that (i)Python has yet to address via a PEP is that > it fails dismally when it comes to making the coffee and sandwiches to keep > you going whilst using it. Perhaps you'd like to look into this issue? I'm > not awa

Re: Camelot a good tool for me

2015-05-24 Thread Chris Angelico
On Sun, May 24, 2015 at 11:28 PM, Lele Gaifax wrote: > Chris Angelico writes: > >> You don't automatically get nice objects with attributes named after >> columns, but neither will SQLAlchemy unless you're doing the >> equivalent of "select * from". Example: >> > session.query(Student).all()

Re: Setting prompt in ipython

2015-05-24 Thread Mark Lawrence
On 24/05/2015 14:07, Cecil Westerhof wrote: Op Sunday 24 May 2015 14:11 CEST schreef Cecil Westerhof: Op Sunday 24 May 2015 13:54 CEST schreef Laura Creighton: This file supposedly lists what you can customise your ipython prompt to show. I have not tried this myself. http://www.math.uiuc.ed

Re: Setting prompt in ipython

2015-05-24 Thread Cecil Westerhof
Op Sunday 24 May 2015 14:11 CEST schreef Cecil Westerhof: > Op Sunday 24 May 2015 13:54 CEST schreef Laura Creighton: > >> This file supposedly lists what you can customise your ipython >> prompt to show. I have not tried this myself. >> >> http://www.math.uiuc.edu/~gfrancis/illimath/windows/aszga

Re: Human Rights and Justice in Islam

2015-05-24 Thread hamilton
On 5/24/2015 3:59 AM, Steven D'Aprano wrote: On Sun, 24 May 2015 09:34 am, hamilton wrote: [quoted bullshit from a spammer] [tried to argue with said spammer] Please don't reply to fly-by-spammers. Even if the spammer was interested in honest debate -- and he is not (fortunately!) -- the last th

Re: Camelot a good tool for me

2015-05-24 Thread Lele Gaifax
Chris Angelico writes: > You don't automatically get nice objects with attributes named after > columns, but neither will SQLAlchemy unless you're doing the > equivalent of "select * from". Example: > session.query(Student).all() > [<__main__.Student object at 0x7fc2de3fc290>, <__main__.Stud

Re: Camelot a good tool for me

2015-05-24 Thread Lele Gaifax
Chris Angelico writes: > On Sat, May 23, 2015 at 5:12 AM, Lele Gaifax wrote: >> You are conflating two different layers, core and ORM. ORM relationships can >> be declared either on the parent or on the child, it's up to your taste. > > Not sure why that's distinguishable. If I have two tables l

How to access Apples iCal-Server via Python?

2015-05-24 Thread Norah Jones
Hi, I'm trying to access Apples iCal-Server on a Mac OS X Snow Leopard Server via Python. The server is up and running and working with it via the iCal-Application is just fine. Now I need to access this server via Python to use it as backend for resource planning. So how can I read the event

Re: programmatically change windows regional settings?

2015-05-24 Thread Mark Lawrence
On 24/05/2015 13:50, Albert-Jan Roskam via Python-list wrote: Hi, In Windows I can change the regional settings manually in the control panel. But how do I do this programmatically? I tried setting LANG but this does not work in Windows. Kernel32's SetLocaleInfo sounds promising, but "This s

programmatically change windows regional settings?

2015-05-24 Thread Albert-Jan Roskam via Python-list
Hi, In Windows I can change the regional settings manually in the control panel. But how do I do this programmatically? I tried setting LANG but this does not work in Windows. Kernel32's SetLocaleInfo sounds promising, but "This setting only affects the user override portion of the locale se

Re: Setting prompt in ipython

2015-05-24 Thread Cecil Westerhof
Op Sunday 24 May 2015 13:54 CEST schreef Laura Creighton: > This file supposedly lists what you can customise your ipython > prompt to show. I have not tried this myself. > > http://www.math.uiuc.edu/~gfrancis/illimath/windows/aszgard_mini/movpy-2.0.0-py2.4.4/manuals/IPython/node7.html I will loo

Re: Camelot a good tool for me

2015-05-24 Thread Tim Chase
On 2015-05-22 15:03, Laura Creighton wrote: > I don't know anything about Camelot. Am I the only one who is disappointed that nobody has claimed "Camelot...it's only a model"? :-) -tkc -- https://mail.python.org/mailman/listinfo/python-list

Re: Setting prompt in ipython

2015-05-24 Thread Laura Creighton
This file supposedly lists what you can customise your ipython prompt to show. I have not tried this myself. http://www.math.uiuc.edu/~gfrancis/illimath/windows/aszgard_mini/movpy-2.0.0-py2.4.4/manuals/IPython/node7.html Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Camelot a good tool for me

2015-05-24 Thread Chris Angelico
On Sat, May 23, 2015 at 8:42 AM, Cameron Simpson wrote: > I like SQLAlchemy because: > > - it quotes for me, avoiding an infinity of pain and injection risk > > - it presents results as nice objects with attributes named after columns > > - it lets me write SQL queries as nice parameterised Pyt

Setting prompt in ipython

2015-05-24 Thread Cecil Westerhof
In bash I have: \[\e[1m\][\D{%a, %d %b %T} \u@\h:\w]\n$ \[\e[0m\] which gives me the following prompt: [Sun, 24 May 12:23:45 cecil@Equus:~] $ I want to have a similar prompt in ipython. At the moment I have come to: %config PromptManager.in_template = r'[\T \u@\h:\Y1]\n\#> ' which

Re: mix-in classes

2015-05-24 Thread Steven D'Aprano
On Sun, 24 May 2015 11:53 am, Dr. John Q. Hacker wrote: > The post on "different types of inheritence..." brought up a thought. > > Let's say, I'm adding flexibility to a module by letting users change > class behaviors by adding different mix-in classes. > > What should happen when there's a na

Re: Ah Python, you have spoiled me for all other languages

2015-05-24 Thread Steven D'Aprano
On Sun, 24 May 2015 02:53 am, Marko Rauhamaa wrote: > Steven D'Aprano : > >> On Sat, 23 May 2015 10:44 pm, Marko Rauhamaa wrote: >>> Here's an idea: an authentication is considered valid if it is >>> vouched for by the United States, China, Russia *and* the European >>> Union. Those governments a

Re: Human Rights and Justice in Islam

2015-05-24 Thread Steven D'Aprano
On Sun, 24 May 2015 09:34 am, hamilton wrote: [quoted bullshit from a spammer] [tried to argue with said spammer] Please don't reply to fly-by-spammers. Even if the spammer was interested in honest debate -- and he is not (fortunately!) -- the last thing we want on a Python newsgroup is for it to

Re: Camelot a good tool for me

2015-05-24 Thread Cameron Simpson
On 22May2015 21:12, Lele Gaifax wrote: Chris Angelico writes: On Sat, May 23, 2015 at 3:24 AM, Lele Gaifax wrote: Laura Creighton writes: In my corner of the world, everybody uses SQL. [...] The people who have tried SQLAlchemy really didn't like it, and of course the people who haven't tr

Re: Ah Python, you have spoiled me for all other languages

2015-05-24 Thread Marko Rauhamaa
Michael Torrie : > Why trust governments? They have the means and are doing analogous things already wrt property titles, passports, taxation, voting etc. > Why not use peer-to-peer trust. If I trust you and you trust site X > with a fingerprint of Y, then I should trust it also. That's a huge

Re: mix-in classes

2015-05-24 Thread Ian Kelly
On Sat, May 23, 2015 at 7:53 PM, Dr. John Q. Hacker wrote: > The post on "different types of inheritence..." brought up a thought. > > Let's say, I'm adding flexibility to a module by letting users change class > behaviors by adding different mix-in classes. > > What should happen when there's a n

Re: Ah Python, you have spoiled me for all other languages

2015-05-24 Thread Ian Kelly
On Sat, May 23, 2015 at 8:57 PM, Michael Torrie wrote: > On 05/23/2015 05:40 AM, Chris Angelico wrote: >> On Sat, May 23, 2015 at 9:34 PM, Tim Chase >> wrote: >>> A self-signed certificate may be of minimal worth the *first* time you >>> visit a site, but if you return to the site, that initial >

Re: Human Rights and Justice in Islam

2015-05-24 Thread Ian Kelly
On Sat, May 23, 2015 at 5:34 PM, hamilton wrote: > So if you are a Member of Islamic State you have rights, other wise you are > an infidel and subject to death from the whim of Allah or whom ever thinks > they are Allah. > > > Does that sound right ?? Please don't reply to spammers. I guarantee