[RELEASE] Python 3.6.1rc1 is now available
On behalf of the Python development community and the Python 3.6 release team, I would like to announce the availability of Python 3.6.1rc1. 3.6.1rc1 is the first release candidate for Python 3.6.1, the first maintenance release of Python 3.6. 3.6.0 was released on 2017-12-22 to great interest and now, three months later, we are providing the first set of bugfixes and documentation updates for it. While 3.6.1rc1 is a preview release and, thus, not intended for production environments, we encourage you to explore it and provide feedback via the Python bug tracker (https://bugs.python.org). Although it should be transparent to users of Python, 3.6.1 is the first release after some major changes to our development process so we ask users who build Python from source to be on the lookout for any unexpected differences. 3.6.1 is planned for final release on 2017-03-20 with the next maintenance release expected to follow in about 3 months. Please see "What’s New In Python 3.6" for more information: https://docs.python.org/3.6/whatsnew/3.6.html You can find Python 3.6.1rc1 here: https://www.python.org/downloads/release/python-361rc1/ More information about the 3.6 release schedule can be found here: https://www.python.org/dev/peps/pep-0494/ -- Ned Deily n...@python.org -- [] -- https://mail.python.org/mailman/listinfo/python-list
Re: python-daemon and PID files
On 03/04/2017 11:14 PM, Chris Angelico wrote: Why do you need a pidfile? When I get systemd to start a process, I just have it not fork. Much easier. Forget about python-daemon - just run your script in the simple and straight-forward way. Because forking daemons was good enough for my grandpappy, and it ought to be good enough you young whippersnappers today. In other words ... facepalm. Thanks! -- Ian Pilcher arequip...@gmail.com "I grew up before Mark Zuckerberg invented friendship" -- https://mail.python.org/mailman/listinfo/python-list
RE: [Python-Dev] [RELEASE] Python 3.6.1rc1 is now available
I just want to emphasize that this is a *very* important release to test, as it is the first one made after migrating the project to github. Please spend a bit of time running it through your normal build/installation steps and let us know at https://bugs.python.org/ if anything seems off. Top-posted from my Windows Phone -Original Message- From: "Ned Deily" Sent: 3/5/2017 4:08 To: "python-annou...@python.org" ; "python-list@python.org" ; "Python-Dev" ; "python-committers" Subject: [Python-Dev] [RELEASE] Python 3.6.1rc1 is now available On behalf of the Python development community and the Python 3.6 release team, I would like to announce the availability of Python 3.6.1rc1. 3.6.1rc1 is the first release candidate for Python 3.6.1, the first maintenance release of Python 3.6. 3.6.0 was released on 2017-12-22 to great interest and now, three months later, we are providing the first set of bugfixes and documentation updates for it. While 3.6.1rc1 is a preview release and, thus, not intended for production environments, we encourage you to explore it and provide feedback via the Python bug tracker (https://bugs.python.org). Although it should be transparent to users of Python, 3.6.1 is the first release after some major changes to our development process so we ask users who build Python from source to be on the lookout for any unexpected differences. 3.6.1 is planned for final release on 2017-03-20 with the next maintenance release expected to follow in about 3 months. Please see "What’s New In Python 3.6" for more information: https://docs.python.org/3.6/whatsnew/3.6.html You can find Python 3.6.1rc1 here: https://www.python.org/downloads/release/python-361rc1/ More information about the 3.6 release schedule can be found here: https://www.python.org/dev/peps/pep-0494/ -- Ned Deily n...@python.org -- [] ___ Python-Dev mailing list python-...@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/steve.dower%40python.org -- https://mail.python.org/mailman/listinfo/python-list
Re: [RELEASE] Python 3.6.1rc1 is now available
On 2017-03-05 07:01 AM, Ned Deily wrote: On behalf of the Python development community and the Python 3.6 release team, I would like to announce the availability of Python 3.6.1rc1. 3.6.1rc1 is the first release candidate for Python 3.6.1, the first maintenance release of Python 3.6. 3.6.0 was released on 2017-12-22 from __future__ import 3.6.0 Did Guido finally get that time machine working? -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:da...@vex.net VoIP: sip:da...@vex.net -- https://mail.python.org/mailman/listinfo/python-list
Re: list of the lists - append after search
On Thursday, March 2, 2017 at 9:33:14 PM UTC+5:30, Andrew Zyman wrote: > Hello, > please advise. > > I'd like search and append the internal list in the list-of-the-lists. > > Example: > ll =[ [a,1], [b,2], [c,3], [blah, 1000] ] > > i want to search for the internal [] based on the string field and, if > matches, append that list with a value. > > if internal_list[0] == 'blah': > ll[ internal_list].append = [ 'new value'] > > End result: > ll =[ [a,1], [b,2], [c,3], [blah, 1000, 'new value'] ] > > > I came up with the following, but the second stmnt is not correct: > > print [x for x in ll if x[0]== 'blah'] > print ll.index([x for x in ll if x[0]=='blah']) > > output: > ValueError: [['blah', 1]] is not in list > > > > > thank you > AZ list_of_lists = [['a', 1], ['b', 2], ['c', 3], ['blah', 1000]] for sublist in list_of_lists: if sublist[0] == 'blah': sublist.append('new value') Hope that helps. -- https://mail.python.org/mailman/listinfo/python-list
Re: [RELEASE] Python 3.6.1rc1 is now available
On 2017-03-05 07:01 AM, Ned Deily wrote: On behalf of the Python development community and the Python 3.6 release team, I would like to announce the availability of Python 3.6.1rc1. 3.6.1rc1 is the first release candidate for Python 3.6.1, the first maintenance release of Python 3.6. 3.6.0 was released on 2017-12-22 from __future__ import 3.6.0 Did Guido finally get that time machine working? -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:da...@vex.net VoIP: sip:da...@vex.net -- https://mail.python.org/mailman/listinfo/python-list
Re: [RELEASE] Python 3.6.1rc1 is now available
On 2017-03-05 07:01 AM, Ned Deily wrote: On behalf of the Python development community and the Python 3.6 release team, I would like to announce the availability of Python 3.6.1rc1. 3.6.1rc1 is the first release candidate for Python 3.6.1, the first maintenance release of Python 3.6. 3.6.0 was released on 2017-12-22 from __future__ import 3.6.0 Did Guido finally get that time machine working? -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da...@vybenetworks.com -- https://mail.python.org/mailman/listinfo/python-list
str.title() fails with words containing apostrophes
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 "I Can'T Be Having With This" Anyone have any suggestions for working around this? -- Steve “Cheer up,” they said, “things could be worse.” So I cheered up, and sure enough, things got worse. -- https://mail.python.org/mailman/listinfo/python-list
Re: str.title() fails with words containing apostrophes
On 2017-03-05 17:54, 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 "I Can'T Be Having With This" Anyone have any suggestions for working around this? A bit of regex? import re def title(string): return re.sub(r"\b'\w", lambda m: m.group().lower(), string.title()) -- https://mail.python.org/mailman/listinfo/python-list
Re: str.title() fails with words containing apostrophes
On 3/5/2017 2:38 PM, MRAB wrote: On 2017-03-05 17:54, 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 "I Can'T Be Having With This" Anyone have any suggestions for working around this? A bit of regex? import re def title(string): return re.sub(r"\b'\w", lambda m: m.group().lower(), string.title()) Nice. It lowercases a word char that follows an "'" that follows a word without an intervening non-word char. It passes this test: print(title("'time' isn't 'timeless'!")) 'Time' Isn't 'Timeless'! It guess the reason not to bake this exception into str.title is that it is language specific and could even be wrong if someone used "'" to separate words (perhaps in a different alphabet). -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list
Re: How to access installed scripts on Windows?
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 seen any installers or guidance how to > deploy something packaged > as a venv to users. Can you share any pointers please? Are we talking about scripts for programmers to work with libraries that you publish (e.g. a command-line tool like cythonize), or applications for end users and IT staff? Virtual environments are primarily a solution for developers. For deployment to end users, take a look at what Paul Moore is doing with pylaunch and the embedded Python distribution: https://github.com/pfmoore/pylaunch https://docs.python.org/3/using/windows.html#embedded-distribution -- https://mail.python.org/mailman/listinfo/python-list
Re: Online Python Editor with Live Syntax Checking
> > I made a tool called PythonBuddy (http://pythonbuddy.com/). > > I made this so that MOOCs like edX or codecademy could easily embed and > use this on their courses so students wouldn't have to go through the > frustrations of setting up a Python environment and jump right into Python > programming. Also, professors and teachers could easily set up a server and > allow students to quickly test out their code with PythonBuddy online. > > Github repo: https://github.com/ethanche…/OnlinePythonLinterSyntaxChecker > Pretty cool. Your Github link did not work for me. This looks like Python 2. Is there a reason you did not go with 3? -- https://mail.python.org/mailman/listinfo/python-list
Who still supports recent Python on shared hosting
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 dead? I don't need a whole VM and something I have to sysadmin, just a small shared hosting account. John Nagle -- https://mail.python.org/mailman/listinfo/python-list
Re: Who still supports recent Python on shared hosting
On Mon, Mar 6, 2017 at 1:39 PM, 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 dead? > I don't need a whole VM and something I > have to sysadmin, just a small shared > hosting account. Heroku supports a number of Python versions: https://devcenter.heroku.com/articles/python-support#supported-python-runtimes I'm not sure how to list *every* supported Python version (the docs only list the latest 2.7 and the latest 3.x at any given time), but I poked around in https://lang-python.s3.amazonaws.com/ and found a large number of versions that appear to be installable. You specify a version with a file in your repository called "runtime.txt", and they'll give you that version if they can, or kick back an error. ChrisA -- https://mail.python.org/mailman/listinfo/python-list
Re: str.title() fails with words containing apostrophes
On 2017-03-05 03:40 PM, Terry Reedy wrote: import re def title(string): return re.sub(r"\b'\w", lambda m: m.group().lower(), string.title()) Nice. It lowercases a word char that follows an "'" that follows a word without an intervening non-word char. It passes this test: print(title("'time' isn't 'timeless'!")) 'Time' Isn't 'Timeless'! It guess the reason not to bake this exception into str.title is that it is language specific and could even be wrong if someone used "'" to separate words (perhaps in a different alphabet). Or, it doesn't handle exceptions. print title("My name is D'Arcy") Oops. -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da...@vybenetworks.com -- https://mail.python.org/mailman/listinfo/python-list
Re: Who still supports recent Python on shared hosting
On 2017-03-05 09:39 PM, John Nagle wrote: I'm looking for shared hosting that supports at least Python 3.4. http://www.VybeNetworks.com/ We have Python 2.7 and 3.6 installed. -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da...@vybenetworks.com -- https://mail.python.org/mailman/listinfo/python-list
Re: Who still supports recent Python on shared hosting
John Nagle writes: > 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 dead? > I don't need a whole VM and something I > have to sysadmin, just a small shared > hosting account. I use OpenShift from Red Hat on their free hosting package. They offer Python 3.5, 3.3 and 2.7. -- Pete Forman https://payg-petef.rhcloud.com -- https://mail.python.org/mailman/listinfo/python-list
Re: Who still supports recent Python on shared hosting
John Nagle writes: > I'm looking for shared hosting that supports at least Python 3.4. Open a ticket on buyshared.net and ask if they can install it for you. They're good about stuff like that. If it's for a cgi, you might alternatively be able to run it from your own directory (you get ssh access which gives some flexibility). -- https://mail.python.org/mailman/listinfo/python-list