Re: Problem

2020-10-01 Thread boB Stepp
On Thu, Oct 01, 2020 at 01:34:35AM -0400, Dennis Lee Bieber wrote: I'm pretty certain the Python.org downloads for Windows also put IDLE on the start menu. I believe these newcomers aren't even looking at the start menu for things -- if it isn't cluttering up the desktop they probably do

Re: Regex Group case change

2020-10-01 Thread Cameron Simpson
It is good to see a nice small piece of code which we can run. Thank you. So there are a number of things to comment about in the code below; comments inline under the relevant piece of code (we prefer the "inline reply" style here, it reads like a conversation): On 01Oct2020 15:15, Raju wrot

Re: Regex Group case change

2020-10-01 Thread Raju
import re import os import sys #word = "7 the world" # 7 The world #word = "Brian'S" # Brian's #word = "O'biran"# O'Brian #word = "Stoke-On-Trent" # Stoke-on-Trent; here i need to lower the case of middle word(i.e -On-) def wordpattern(word): output = '' if re.match("^\d+|w*$",word):

Re: Regex Group case change

2020-10-01 Thread Cameron Simpson
On 01Oct2020 12:41, Raju wrote: >I want to change the case on input string i was able to match using >python regex but couldn't find the way to change the case. > >For example string: >Input: 7Section Hello Jim >output: 7Section hello Jim > >I was doing if statment with regex > >if re.match("(\d+

Re: Problem

2020-10-01 Thread Chris Angelico
On Fri, Oct 2, 2020 at 7:06 AM Hexamorph wrote: > > Am 01.10.2020 um 22:17 schrieb Chris Angelico: > > > Maybe those usability improvements have already been done. > > Haven't doubted that. Maybe they are just not enough yet. > > > Renaming Idle to "Python IDE" would be a very bad idea, since ther

Re: Problem

2020-10-01 Thread Mirko via Python-list
Am 01.10.2020 um 22:17 schrieb Chris Angelico: > Maybe those usability improvements have already been done. Haven't doubted that. Maybe they are just not enough yet. > Renaming Idle to "Python IDE" would be a very bad idea, since there > are many other Python IDEs. You missed the "(or similar)"

Re: Problem

2020-10-01 Thread Hexamorph
Am 01.10.2020 um 22:17 schrieb Chris Angelico: > Maybe those usability improvements have already been done. Haven't doubted that. Maybe they are just not enough yet. > Renaming Idle to "Python IDE" would be a very bad idea, since there > are many other Python IDEs. You missed the "(or similar)"

Re: Hot reload Flask app?

2020-10-01 Thread sjeik_appie
On 1 Oct 2020 17:58, Roland Müller via Python-list wrote: On 2020-10-01 16:33, sjeik_ap...@hotmail.com wrote: > Hi, > I would like to create a "/reload" view in my Flask app, so I could easily > and safely reload it when code, templates etc change. Simil

Re: Problem

2020-10-01 Thread Chris Angelico
On Fri, Oct 2, 2020 at 6:11 AM Mirko via Python-list wrote: > > Am 30.09.2020 um 23:44 schrieb Chris Angelico: > > On Thu, Oct 1, 2020 at 7:33 AM Mirko via Python-list > > >> We are seeing these troubles from newcomers on Windows all of the > >> time -- and that for years. Isn't it time to ask if

Re: Problem

2020-10-01 Thread Mirko via Python-list
Am 30.09.2020 um 23:44 schrieb Chris Angelico: > On Thu, Oct 1, 2020 at 7:33 AM Mirko via Python-list >> We are seeing these troubles from newcomers on Windows all of the >> time -- and that for years. Isn't it time to ask if the way Python >> installs itself on Windows-Systems is appropriate? >>

Regex Group case change

2020-10-01 Thread Raju
Hello Everyone, I want to change the case on input string i was able to match using python regex but couldn't find the way to change the case. For example string: Input: 7Section Hello Jim output: 7Section hello Jim I was doing if statment with regex if re.match("(\d+\w* )(Hello)( \w+)",stri

Re: List of All Error Menssages

2020-10-01 Thread Luis Gustavo Araujo
Hi, Is it possible to get the list of all error messages that display in Python? I want the full message -> type error: additional message. Examples: NameError: name 'x' is not defined IndentationError: unindent does not match any outer indentation level In this webpage (ttps://docs.python.org/

Re: Why is Python deleting every time

2020-10-01 Thread Terry Reedy
On 10/1/2020 7:29 AM, Sai Shubham Ray wrote: Sometimes when I try to run python program it says that python is not installed and I have to repair it. Because you are running the Python installer instead of Python itself after having it installed. Thank god there is a repair option in python

Re: A library that converts a type-annotated function into a webpage with HTML forms?

2020-10-01 Thread Dieter Maurer
James Lu wrote at 2020-9-30 16:45 -0400: >Is there a python library available that converts a type-annotated Python >function into a webpage with HTML forms? > >Something like: > > >def foo(name: str, times: int): >return f"Hello {name}!" * times > >serve_from(foo, host="0.0.0.0", port=3000) >

Re: Hot reload Flask app?

2020-10-01 Thread Roland Müller via Python-list
On 2020-10-01 16:33, sjeik_ap...@hotmail.com wrote: Hi, I would like to create a "/reload" view in my Flask app, so I could easily and safely reload it when code, templates etc change. Similar to what happens when running the app with the debug server. I am using Nginx and G

SQLObject 3.8.1

2020-10-01 Thread Oleg Broytman
Hello! I'm pleased to announce version 3.8.1, the first bugfix release of branch 3.8 of SQLObject. What's new in SQLObject === The contributor for this release is Neil Muller. Documentation - * Use conf.py options to exclude sqlmeta options. Tests - * Fix

Why is Python deleting every time

2020-10-01 Thread Sai Shubham Ray
Sometimes when I try to run python program it says that python is not installed and I have to repair it. Thank god there is a repair option in python but still do something to get rid of this problem Regards Sai Shubham Ray -- https://mail.python.org/mailman/listinfo/python-list

Hot reload Flask app?

2020-10-01 Thread sjeik_appie
Hi, I would like to create a "/reload" view in my Flask app, so I could easily and safely reload it when code, templates etc change. Similar to what happens when running the app with the debug server. I am using Nginx and Gevent on a recent Ubuntu system with Python 3.6. My strate

Pip users: big change coming this month

2020-10-01 Thread Sumana Harihareswara
Changes are coming to pip, Python's package installation tool, in October 2020. Please read and share this migration guide: https://pip.pypa.io/en/latest/user_guide/#changes-to-the-pip-dependency-resolver-in-20-2-2020 . We're working on improving the Python packaging toolchain, foundational w

Re: Faking stdlib

2020-10-01 Thread Abdur-Rahmaan Janhangeer
The last time this was raised, it seemed that folks in here don't have a clear idea of what the standard library is ^^ https://mail.python.org/archives/list/python-id...@python.org/thread/XSYEVRPJQUX7VBTPNIJMUFZQIZ7WLOQU/ A summary: https://lwn.net/Articles/794458/ Kind Regards, Abdur-Rahmaan

Re: Faking stdlib

2020-10-01 Thread Chris Angelico
On Thu, Oct 1, 2020 at 5:02 PM Antoon Pardon wrote: > > I'm playing with the following idea. > > Have the main program do some kind of preparations so that all further > modules can import the standard modules via stdlib. So instead of > > import sys > from itertools import chain > > I c

Re: Interference tkinter and plot from matplotlib

2020-10-01 Thread Pierre Bonville
Thank you, Mr. Gollwitzer. I understand the problem. I'll see what I can do. Regards, P.Bonville Le mer. 30 sept. 2020 à 17:02, Christian Gollwitzer a écrit : > Am 30.09.20 um 15:46 schrieb Pierre Bonville: > > Hi everybody, > > > Interference tkinter and plot from matplotlib > > > You are mi

Faking stdlib

2020-10-01 Thread Antoon Pardon
I'm playing with the following idea. Have the main program do some kind of preparations so that all further modules can import the standard modules via stdlib. So instead of import sys from itertools import chain I could do import stdlib.sys from stdlib.itertools import chain