Re: Who still supports recent Python on shared hosting

2017-03-06 Thread Tim Golden
On 06/03/2017 02:39, John Nagle wrote: I'm looking for shared hosting that supports at least Python 3.4. Hostgator: Highest version is Python 3.2. Dreamhost: Highest version is Python 2.7. Bluehost: Install Python yourself. InMotion: Their documentation says 2.6. Is Python on shared hosting dea

Re: str.title() fails with words containing apostrophes

2017-03-06 Thread gvmcmt
On Sunday, March 5, 2017 at 11:25:04 PM UTC+5:30, Steve D'Aprano wrote: > I'm trying to convert strings to Title Case, but getting ugly results if the > words contain an apostrophe: > > > py> 'hello world'.title() # okay > 'Hello World' > py> "i can't be having with this".title() # not okay > "

Re: str.title() fails with words containing apostrophes

2017-03-06 Thread Jussi Piitulainen
gvm...@gmail.com writes: > On Sunday, March 5, 2017 at 11:25:04 PM UTC+5:30, Steve D'Aprano wrote: >> I'm trying to convert strings to Title Case, but getting ugly results >> if the words contain an apostrophe: >> >> >> py> 'hello world'.title() # okay >> 'Hello World' >> py> "i can't be having

Re: str.title() fails with words containing apostrophes

2017-03-06 Thread gvmcmt
On Sunday, March 5, 2017 at 11:25:04 PM UTC+5:30, Steve D'Aprano wrote: > I'm trying to convert strings to Title Case, but getting ugly results if the > words contain an apostrophe: > > > py> 'hello world'.title() # okay > 'Hello World' > py> "i can't be having with this".title() # not okay > "

Re: str.title() fails with words containing apostrophes

2017-03-06 Thread gvmcmt
On Monday, March 6, 2017 at 2:37:11 PM UTC+5:30, Jussi Piitulainen wrote: > gvm...@gmail.com writes: > > > On Sunday, March 5, 2017 at 11:25:04 PM UTC+5:30, Steve D'Aprano wrote: > >> I'm trying to convert strings to Title Case, but getting ugly results > >> if the words contain an apostrophe: > >

Re: str.title() fails with words containing apostrophes

2017-03-06 Thread Jussi Piitulainen
gvm...@gmail.com writes: > On Monday, March 6, 2017 at 2:37:11 PM UTC+5:30, Jussi Piitulainen wrote: >> gvm...@gmail.com writes: >> >> > On Sunday, March 5, 2017 at 11:25:04 PM UTC+5:30, Steve D'Aprano wrote: >> >> I'm trying to convert strings to Title Case, but getting ugly results >> >> if the

Re: str.title() fails with words containing apostrophes

2017-03-06 Thread Peter Otten
Jussi Piitulainen wrote: > gvm...@gmail.com writes: > >> On Sunday, March 5, 2017 at 11:25:04 PM UTC+5:30, Steve D'Aprano wrote: >>> I'm trying to convert strings to Title Case, but getting ugly results >>> if the words contain an apostrophe: >>> >>> >>> py> 'hello world'.title() # okay >>> 'H

Re: How to access installed scripts on Windows?

2017-03-06 Thread Paul Moore
On Sunday, 5 March 2017 22:26:17 UTC, eryk sun wrote: > On Sun, Mar 5, 2017 at 2:35 AM, ddbug wrote: > > > >> You can also develop using venv virtual environments. You can symlink > >> or shell-shortcut to the activation script of a virtual environment. > > > > Interesting idea. But I have not se

Re: python-daemon and PID files

2017-03-06 Thread Ben Finney
Ethan Furman writes: > On 03/04/2017 09:09 PM, Ian Pilcher wrote: > > > Is it possible to get python-daemon to create "systemd style" PID > > file? Short answer: No, that's the job of whatever ‘pidfile’ object you provide. Medium answer: Yes, by implementing that behaviour in the object you ch

Re: str.title() fails with words containing apostrophes

2017-03-06 Thread Chris Angelico
On Mon, Mar 6, 2017 at 9:04 PM, Peter Otten <__pete...@web.de> wrote: > Perhaps one could limit the conversion to go from lower to upper only, as > names tend be in the desired case in the original text. No, that just tends to make things confusing to use. > Unfortunately this won't help with > >

Re: Who still supports recent Python on shared hosting

2017-03-06 Thread Malcolm Greene
Another endorsement for Webfaction. -- https://mail.python.org/mailman/listinfo/python-list

Re: str.title() fails with words containing apostrophes

2017-03-06 Thread Marko Rauhamaa
Chris Angelico : > Right. If you want true title casing, it has to be *extremely* > linguistically-aware. For instance, title case has no meaning in the context of Finnish. In other words, your internationalized program shouldn't even think of title case when localized in Finnish. This localizat

Re: str.title() fails with words containing apostrophes

2017-03-06 Thread D'Arcy Cain
On 2017-03-06 05:04 AM, Peter Otten wrote: Won't Steve D'aprano And D'arcy Cain Be Happy Now :) Perhaps one could limit the conversion to go from lower to upper only, as names tend be in the desired case in the original text. That would help with acronyms as well. -- D'Arcy J.M. Cain Vybe Ne

Export Event log via python in .txt

2017-03-06 Thread iilaraja1286
I'm a student learning about python I would like to know how to export Security log Application and generate folder path via python please help -- https://mail.python.org/mailman/listinfo/python-list

Re: str.title() fails with words containing apostrophes

2017-03-06 Thread Grant Edwards
On 2017-03-06, Chris Angelico wrote: > Still, it's fun to discuss, if only to show why that kind of > locale-aware transformation is important. Besides locale-aware, it'll need to be style-guide-aware so that it knows whether you want MLA, Chicago, Strunk & White, NYT, Gregg, Mrs. Johnson from 9

Re: str.title() fails with words containing apostrophes

2017-03-06 Thread Steve D'Aprano
On Tue, 7 Mar 2017 03:28 am, Grant Edwards wrote: > On 2017-03-06, Chris Angelico wrote: > >> Still, it's fun to discuss, if only to show why that kind of >> locale-aware transformation is important. > > Besides locale-aware, it'll need to be style-guide-aware so that it > knows whether you wan

Re: str.title() fails with words containing apostrophes

2017-03-06 Thread Grant Edwards
On 2017-03-06, Steve D'Aprano wrote: > On Tue, 7 Mar 2017 03:28 am, Grant Edwards wrote: > >> On 2017-03-06, Chris Angelico wrote: >> >>> Still, it's fun to discuss, if only to show why that kind of >>> locale-aware transformation is important. >> >> Besides locale-aware, it'll need to be style

Re: str.title() fails with words containing apostrophes

2017-03-06 Thread Steve D'Aprano
On Tue, 7 Mar 2017 01:03 am, Marko Rauhamaa wrote: > Chris Angelico : > >> Right. If you want true title casing, it has to be *extremely* >> linguistically-aware. > > For instance, title case has no meaning in the context of Finnish. In > other words, your internationalized program shouldn't eve

Re: str.title() fails with words containing apostrophes

2017-03-06 Thread Marko Rauhamaa
Steve D'Aprano : > On Tue, 7 Mar 2017 01:03 am, Marko Rauhamaa wrote: > If you read "title case" as *literally* as being only for titles (of > books, for instance) then of course you are right. Finnish book titles > are normally written in sentence case (initial capital, followed by > all lowercas

Re: Export Event log via python in .txt

2017-03-06 Thread eryk sun
On Mon, Mar 6, 2017 at 3:36 PM, wrote: > I'm a student learning about python I would like to know how to export > Security log Application and generate folder path via python please help If you're asking about the Windows event logs, then it'll be easiest from a scripting POV to use wevtutil.exe

Re: str.title() fails with words containing apostrophes

2017-03-06 Thread Chris Angelico
On Tue, Mar 7, 2017 at 12:03 PM, Marko Rauhamaa wrote: > > As for the UK: > >Yhdistynyt kuningaskunta About the only part of that that I understand is "kuning" == king/queen/kingdom. I swear, you like the letter 'y' more than the Welsh do... ChrisA -- https://mail.python.org/mailman/listinf

Re: Basic Packaging strategy question

2017-03-06 Thread bilmar19
Thanks, It still seems strange to me that such a well documented ecosystem does not have an official way to package a complete app ( vs packages ). Bill -- https://mail.python.org/mailman/listinfo/python-list

Re: Basic Packaging strategy question

2017-03-06 Thread Steven D'Aprano
On Sat, 04 Mar 2017 15:08:15 -0800, bilmar19 wrote: > I have a simple project that I want to package to put it on another > machine but everything I have read so far about packaging ends up > putting the whole install alongside with 'packages' - typically in > .../site-packages. > This seems a st

Re: str.title() fails with words containing apostrophes

2017-03-06 Thread Steven D'Aprano
On Tue, 07 Mar 2017 12:18:13 +1100, Chris Angelico wrote: > On Tue, Mar 7, 2017 at 12:03 PM, Marko Rauhamaa > wrote: >> >> As for the UK: >> >>Yhdistynyt kuningaskunta > > About the only part of that that I understand is "kuning" == > king/queen/kingdom. I swear, you like the letter 'y' more

Re: str.title() fails with words containing apostrophes

2017-03-06 Thread Chris Angelico
On Tue, Mar 7, 2017 at 4:18 PM, Steven D'Aprano wrote: > On Tue, 07 Mar 2017 12:18:13 +1100, Chris Angelico wrote: > >> On Tue, Mar 7, 2017 at 12:03 PM, Marko Rauhamaa >> wrote: >>> >>> As for the UK: >>> >>>Yhdistynyt kuningaskunta >> >> About the only part of that that I understand is "kuni

Re: str.title() fails with words containing apostrophes

2017-03-06 Thread Marko Rauhamaa
Chris Angelico : > On Tue, Mar 7, 2017 at 12:03 PM, Marko Rauhamaa wrote: >> >> As for the UK: >> >>Yhdistynyt kuningaskunta > > About the only part of that that I understand is "kuning" == > king/queen/kingdom. I swear, you like the letter 'y' more than the > Welsh do... The Proto-Finnic bo

Re: spam issue

2017-03-06 Thread Greg Couch
On Thursday, March 2, 2017 at 8:08:44 AM UTC-8, Andrew Zyman wrote: > Why is this group have such an obscene number of spam posts ? > I'm subscribed to a few other google groups and this is the only one that has > this issue. If you do use google groups, please "Report abuse" for these messages.

Re: str.title() fails with words containing apostrophes

2017-03-06 Thread Jussi Piitulainen
Steve D'Aprano writes: > On Tue, 7 Mar 2017 03:28 am, Grant Edwards wrote: >> >> Besides locale-aware, it'll need to be style-guide-aware so that it >> knows whether you want MLA, Chicago, Strunk & White, NYT, Gregg, >> Mrs. Johnson from 9th grade English class, or any of a dozen or two >> others

Re: str.title() fails with words containing apostrophes

2017-03-06 Thread Jussi Piitulainen
Marko Rauhamaa writes: > Steve D'Aprano wrote: >> I came across this book title: >> >> Täällä Pohjantähden alla (‘Here beneath the North Star’) >> >> http://www.booksfromfinland.fi/1980/12/the-strike/ >> >> which is partly title case, but I'm not sure what rule is being >> applied there. My guess