Postgresql equivalent of Python's timeit?

2023-09-15 Thread Albert-Jan Roskam via Python-list
Hi, This is more related to Postgresql than to Python, I hope this is ok. I want to measure Postgres queries N times, much like Python timeit (https://docs.python.org/3/library/timeit.html). I know about EXPLAIN ANALYZE and psql \timing, but there's quite a bit of variation i

Re: Postgresql equivalent of Python's timeit?

2023-09-15 Thread Peter J. Holzer via Python-list
On 2023-09-15 17:42:06 +0200, Albert-Jan Roskam via Python-list wrote: >This is more related to Postgresql than to Python, I hope this is ok. >I want to measure Postgres queries N times, much like Python timeit >(https://docs.python.org/3/library/timeit.html). I know abou

Re: `time.perf_counter_ns` always a 64-bit int?

2023-09-16 Thread Peter J. Holzer via Python-list
On 2023-09-15 21:48:37 +, rmlibre--- via Python-list wrote: > I'd like to capture the output of `time.perf_counter_ns()` as an 8-byte > timestamp. > > I'm aware that the docs provide an undefined start value for that clock. > I'm going to assume that means it can

Re: Postgresql equivalent of Python's timeit?

2023-09-17 Thread Albert-Jan Roskam via Python-list
On Sep 15, 2023 19:45, "Peter J. Holzer via Python-list" wrote: On 2023-09-15 17:42:06 +0200, Albert-Jan Roskam via Python-list wrote: >    This is more related to Postgresql than to Python, I hope this is ok. >    I want to measure Postgres queries N

Re: Postgresql equivalent of Python's timeit?

2023-09-17 Thread Peter J. Holzer via Python-list
On 2023-09-17 11:01:43 +0200, Albert-Jan Roskam via Python-list wrote: >On Sep 15, 2023 19:45, "Peter J. Holzer via Python-list" > wrote: > > On 2023-09-15 17:42:06 +0200, Albert-Jan Roskam via Python-list wrote: > >    This is more related to Postg

Re: PEP668 / pipx and "--editable" installs

2023-09-18 Thread Peter J. Holzer via Python-list
On 2023-09-15 14:15:23 +, c.buhtz--- via Python-list wrote: > I tried to install it via "pipx install -e .[develop]". It's pyproject.toml > has a bug: A missing dependency "dateutil". But "dateutil" is not available > from PyPi for Python 3.11 (th

Re: PEP668 / pipx and "--editable" installs

2023-09-20 Thread Peter J. Holzer via Python-list
On 2023-09-18 18:56:35 +, c.buhtz--- via Python-list wrote: > On 2023-09-18 10:16 "Peter J. Holzer via Python-list" > wrote: > > On 2023-09-15 14:15:23 +, c.buhtz--- via Python-list wrote: > > > I tried to install it via "pipx install -e .[develop]"

dateutil on PyPI (was: PEP668 / pipx and "--editable" installs)

2023-09-20 Thread Peter J. Holzer via Python-list
On 2023-09-20 13:31:14 +, c.buhtz--- via Python-list wrote: > Dear Peter, > > maybe we have a missunderstanding. > > Am 20.09.2023 14:43 schrieb Peter J. Holzer via Python-list: > > > > > "dateutil" is not available from PyPi for Python 3.11 > >

Re: error of opening Python

2023-09-26 Thread Michael F. Stemper via Python-list
On 26/09/2023 07.27, Abdelkhelk ashref salay eabakh wrote: Dear Python team, This is my not first time using Python, I tried to launch Python and it showed "Python 3.11.3 (tags/v3.11.3:f3909b8, Apr 4 2023, 23:49:59) [MSC v.1934 64 bit (AMD64)] on win32 Type "help", "copy

Re: error of opening Python

2023-09-26 Thread Chris Roy-Smith via Python-list
On 26/9/23 22:27, Abdelkhelk ashref salay eabakh via Python-list wrote: Dear Python team, This is my not first time using Python, I tried to launch Python and it showed I'm no expert but.... "Python 3.11.3 (tags/v3.11.3:f3909b8, Apr 4 2023, 23:49:59) [MSC v.1934 64 bit (AMD6

upgrade of pip on my python 2.7 version

2023-09-27 Thread Zuri Shaddai Kuchipudi via Python-list
ading via the 'pip install --upgrade pip' command. Collecting pip Using cached https://files.pythonhosted.org/packages/ba/19/e63fb4e0d20e48bd2167bb7e857abc0e21679e24805ba921a224df8977c0/pip-23.2.1.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent ca

Re: upgrade of pip on my python 2.7 version

2023-09-27 Thread Zuri Shaddai Kuchipudi via Python-list
On Wednesday, 27 September 2023 at 21:32:53 UTC+2, Mats Wichmann wrote: > On 9/27/23 05:17, Zuri Shaddai Kuchipudi via Python-list wrote: > > hello everyone this the error that im getting while trying to install and > > upgrade pip on what is the solution for it? > >

Re: path to python in venv

2023-09-27 Thread Peter J. Holzer via Python-list
On 2023-09-27 20:32:25 -, Jon Ribbens via Python-list wrote: > On 2023-09-27, Larry Martell wrote: > > On Wed, Sep 27, 2023 at 12:42 PM Jon Ribbens via > > Python-list wrote: > >> On 2023-09-27, Larry Martell wrote: > >> > lrwxrwxrwx 1 larrymartell l

Re: upgrade of pip on my python 2.7 version

2023-09-28 Thread Zuri Shaddai Kuchipudi via Python-list
On Wednesday, 27 September 2023 at 23:33:02 UTC+2, Chris Angelico wrote: > On Thu, 28 Sept 2023 at 07:27, Mats Wichmann via Python-list > wrote: > > > > Upgrading to Python 3 is the best answer... except when it isn't. If > > you want to convert a small project i

Re: Python 3.12.0 venv not working with psycopg2

2023-10-02 Thread Peter J. Holzer via Python-list
On 2023-10-02 19:44:12 +0300, אורי via Python-list wrote: > I have an issue since about 5 months now. Python 3.12.0 venv not working > with psycopg2 on Windows. I created 2 issues on GitHub but they were > closed. I checked today with the new Python release but it's still not > wo

Re: regarding installation of python version

2023-10-09 Thread Sravan Kumar Chitikesi via Python-list
I can help you On Mon, 9 Oct 2023, 11:15 pm Thri sowmya.G via Python-list, < [email protected]> wrote: > > >The problem is how many times I have uninstalled the python version but >always it is showing the same version after the installation of new >ver

Re: Question(s)

2023-10-25 Thread Michael F. Stemper via Python-list
ped, I find this hard to believe. -- Michael F. Stemper Outside of a dog, a book is man's best friend. Inside of a dog, it's too dark to read. -- https://mail.python.org/mailman/listinfo/python-list

Re: Question(s)

2023-10-25 Thread Michael F. Stemper via Python-list
an be proven correct or incorrect. But, there are a lot more that cannot. -- Michael F. Stemper Outside of a dog, a book is man's best friend. Inside of a dog, it's too dark to read. -- https://mail.python.org/mailman/listinfo/python-list

Re: Question(s)

2023-10-25 Thread Michael F. Stemper via Python-list
On 25/10/2023 05.45, o1bigtenor wrote: On Tue, Oct 24, 2023 at 8:35 PM Chris Angelico via Python-list wrote: 3. Catch the failure before you commit and push. Unit tests are great for this. Where might I find such please. You don't "find" unit tests; you write them. A un

Re: xor operator

2023-11-14 Thread Peter J. Holzer via Python-list
On 2023-11-14 00:11:30 +0200, Dom Grigonis via Python-list wrote: > Benchmarks: > test1 = [False] * 100 + [True] * 2 > test2 = [True] * 100 + [False] * 2 > > TIMER.repeat([ > lambda: xor(test1), # 0.0168 > lambda: xor(test2), # 0.0172 > lambda:

Re: xor operator

2023-11-15 Thread Peter J. Holzer via Python-list
reality. |_|_) || | | | [email protected] |-- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" signature.asc Description: PGP signature -- https://mail.python.org/mailman/listinfo/python-list

Re: Code improvement question

2023-11-17 Thread Peter J. Holzer via Python-list
On 2023-11-16 11:34:16 +1300, Rimu Atkinson via Python-list wrote: > > > Why don't you use re.findall? > > > > > > re.findall(r'\b[0-9]{2,7}-[0-9]{2}-[0-9]{2}\b', txt) > > > > I think I can see what you did there but it won't make

Re: Code improvement question

2023-11-17 Thread Peter J. Holzer via Python-list
On 2023-11-17 07:48:41 -0500, Thomas Passin via Python-list wrote: > On 11/17/2023 6:17 AM, Peter J. Holzer via Python-list wrote: > > Oh, and Python (just like Perl) allows you to embed whitespace and > > comments into Regexps, which helps readability a lot if you have to > &g

FOSDEM 2024: Call for Proposals - Python Devrooom

2023-11-23 Thread Marc-Andre Lemburg via Python-list
We are happy to announce that we will be running a Python devroom again at FOSDEM 2024. This year's edition will be exclusively in-person, and take place on the 3rd and 4th of February, with the Python devroom being available on Sunday 4th. If you have not heard about FOSDEM before o

Re: RE: Newline (NuBe Question)

2023-11-26 Thread Michael F. Stemper via Python-list
_Introducing Python_ -- Michael F. Stemper This sentence no verb. -- https://mail.python.org/mailman/listinfo/python-list

Re: Newline (NuBe Question)

2023-11-26 Thread Peter J. Holzer via Python-list
On 2023-11-25 08:32:24 -0600, Michael F. Stemper via Python-list wrote: > On 24/11/2023 21.45, [email protected] wrote: > > Of course, for serious work, some might suggest avoiding constructs like a > > list of lists and switch to using modules and data structures [...] >

Re: Application window geometry specifier

2021-01-13 Thread David L Neil via Python-list
you recommend a good reference for someone relatively new to GUI > programming that is based on such research? Book or web reference > would be fine. Most of my training-materials (certainly in this topic) are web-based - but the ideas are also common to Python. Nielsen-Norman Group do a l

Re: How do you debug in Python? Coming from a Matlab and R user. I'm already aware of pdb.

2021-01-26 Thread William Ray Wing via Python-list
> On Jan 26, 2021, at 2:00 PM, C W wrote: > > Hello everyone, > > I'm a long time Matlab and R user working on data science. How do you > troubleshooting/debugging in Python? > Another approach is to run the code in an IDE. I happen to use Wing, but that is a co

For example: Question, moving a folder (T061RR7N1) containing a Specific file (ReadCMI), to folder: C:\\...\DUT0

2021-01-27 Thread Kevin M. Wilson via Python-list
;...what does the "r" signify? If it's 'read', why can't I use the 'a' for append? KMW "The only way to have experience is by having the experience"! -- https://mail.python.org/mailman/listinfo/python-list

Re: Python cannot count apparently

2021-02-07 Thread Kevin M. Wilson via Python-list
e we would get from OP would tell us what sort of help might be most suitable :-) Karsten -- GPG  40BE 5B0E C98E 1713 AFA6  5BC0 3BEA AC80 7D4F C89B -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list

Python 2.7 and 3.9

2021-02-16 Thread Kevin M. Wilson via Python-list
' are Welcome! KMW John 1:4  "In him was life; and the life was the light of men." -- https://mail.python.org/mailman/listinfo/python-list

Re: Startup failure

2021-02-19 Thread Dan Ciprus (dciprus) via Python-list
It would be nice if you could provide a bit more details ... Exceptions/logs etc. From: Python-list on behalf of Smit Patel Sent: Friday, February 19, 2021 1:27 AM To: [email protected] Subject: Startup failure I recently downloaded python from

Tkinter needed as a legacy version 2.7 imports the module...

2021-02-26 Thread Kevin M. Wilson via Python-list
Hey Community,    Is there a site where I might/can download a version of Tkinter for Python 2.7? Seriously, KMW John 1:4  "In him was life; and the life was the light of men." -- https://mail.python.org/mailman/listinfo/python-list

Re: How to loop over a text file (to remove tags and normalize) using Python

2021-03-09 Thread Dan Ciprus (dciprus) via Python-list
tags, punctuation marks, stopwords. I have already used Beautiful Soup (Python v 3.8.3) to scrape the text (newspaper articles) from the site. It returns a list that I saved as a file. However, I am not sure how to use a loop in order to process all the items in the text file. In the code below I

Re: How to loop over a text file (to remove tags and normalize) using Python

2021-03-09 Thread Dan Ciprus (dciprus) via Python-list
n unindented mess now and can not be read easily. On Wed, Mar 10, 2021 at 03:07:14AM +0600, S Monzur wrote: >Dear List, > >Newbie here. I am trying to loop over a text file to remove html tags, >punctuation marks, stopwords. I have already used Beautiful Soup (Python

Re: convert script awk in python

2021-03-25 Thread Dan Ciprus (dciprus) via Python-list
... funny thing is that OP never contributed to this discussion. Several people provided very valuable inputs but OP did not even bother to say "thank you". just saying ... On Wed, Mar 24, 2021 at 11:22:02AM -0400, Avi Gross via Python-list wrote: Cameron, I agree with yo

Re: Ann: New Python curses book

2021-03-30 Thread William Ray Wing via Python-list
On Mar 30, 2021, at 7:12 AM, Alan Gauld via Python-list > wrote: > > I've just published, in Kindle and paperback formats, > my book on "Programming curses with Python". > > https://www.amazon.co.uk/dp/B091B85B77/ > > (It should be available i

Unable to use pip to install packages

2021-04-01 Thread Md Sohail Ansari via Python-list
Hi Team, Thanks for your support. I am having trouble installing any packages using pip in Python 3.x (earlier had Python 3.8.3, so changed to 3.8.8) in Windows 10. Please help me with below issues: ---C:\Users\mohsohai>pip install pytestTraceb

Re: Horrible abuse of __init_subclass__, or elegant hack?

2021-04-01 Thread David L Neil via Python-list
Officially April-Fools Day is over (here), but... On 01/04/2021 19.25, Chris Angelico wrote: > On Thu, Apr 1, 2021 at 3:36 PM dn via Python-list > wrote: >> >> On 01/04/2021 13.54, Chris Angelico wrote: >>> Real and imaginary are the same thing, just rotated a quar

Re: Website

2021-04-15 Thread Dan Ciprus (dciprus) via Python-list
wrote: Hello, I am Sergio Llorente, and I want to create a web about python. I will publish apps, scripts.. made by python. I will like to put python in the domain. The domain will be like all-about-python.com but in Spanish( todosobrepython.com). Can I use it? Thanks in advance, Sergio -- https

Re: Website

2021-04-15 Thread Dan Ciprus (dciprus) via Python-list
aka.ms/ghei36> ! From: o1bigtenor Sent: Thursday, April 15, 2021 9:49:45 AM To: Dan Ciprus (dciprus) Cc: Rainyis ; [email protected] Subject: Re: Website On Thu, Apr 15, 2021 at 7:40 AM Dan Ciprus (dciprus) via Python-list wrote: > > https:/

Re: Repair Install of 64 bit python

2021-04-16 Thread Dan Ciprus (dciprus) via Python-list
Isn't the recommended python3 way of pip-ing stuff: python3 -m pip install ... .. just curious. On Thu, Apr 15, 2021 at 08:36:56PM -0500, o1bigtenor wrote: On Thu, Apr 15, 2021 at 8:03 PM Dodson, Matthew wrote: Hi, Having an issue after installing 64 bit python. Can't pip i

Can't get rid of old version of python

2021-08-13 Thread Ciarán Ó Duibhín via Python-list
Hi, On Windows 10, I uninstalled all previous versions of Python and installed v3.9.6. When I use the start menu option Python 3.9 (64-bit), I get the prompt "Python 3.9.6" as expected. The same happens when I type "py" at the DOS prompt. But when I type "python&

Re[2]: Can't get rid of old version of python

2021-08-13 Thread Ciarán Ó Duibhín via Python-list
ackages In fact I deleted the whole of C:\Users\...\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8.qbz5n2kfra8p0 Asking where "python" finds its (supposed uninstalled) v3.8.10 executable was sending me to 'C:\Users\…\AppData\Local\Microsoft\WindowsApps\Python

Re[2]: Can't get rid of old version of python

2021-08-13 Thread Ciarán Ó Duibhín via Python-list
Thanks for the two further clarifications, which I've just read. Eryk's advice for uninstalling the app distribution got rid of those unwanted WindowsApps subdirectories painlessly. -- https://mail.python.org/mailman/listinfo/python-list

Re: XML Considered Harmful

2021-09-24 Thread David L Neil via Python-list
On 25/09/2021 11.00, Chris Angelico wrote: > Invented because there weren't enough markup languages, so we needed another? Anything You Can Do I Can Do Better https://www.youtube.com/watch?v=_UB1YAsPD6U -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: The task is to invent names for things

2021-10-26 Thread David L Neil via Python-list
On 27/10/2021 12.29, Stefan Ram wrote: > dn writes: >> On 27/10/2021 11.16, Stefan Ram wrote: >>> The Mental Game of Python - Raymond Hettinger (PyBay 2019) >>> | "The computer gives us words that do ### things. > ... >> Alternately, if your questio

Re: Getting Directory of Command Line Entry Point For Packages

2021-11-12 Thread David L Neil via Python-list
s file_path as-required. -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Python

2022-03-03 Thread Dan Ciprus (dciprus) via Python-list
if OP formulates question the way he/she did, it's not worth to respond to it. There is plenty of similar questions in the archive. On Tue, Feb 22, 2022 at 07:07:54AM -0700, Mats Wichmann wrote: On 2/21/22 23:17, SASI KANTH REDDY GUJJULA wrote: Pip files are not installing after the p

Pycharm IDE: seeking an assist!

2022-03-21 Thread Kevin M. Wilson via Python-list
Greetings Python coders,     I have installed the Pycharm IDE, and upon successfully auto install of the path/environment statements. The IDE opened and displayed (bottom right corner):  The use of Java options environment variables detected. Such variables override IDE configuration

Re: Exchange OWA using Python?

2022-03-31 Thread Dan Ciprus (dciprus) via Python-list
Our org does not have imap nor pop enabled so I guess it depends on your IT and what's enabled for your org. Just my $.02 .. On Thu, Mar 31, 2022 at 07:12:10PM +0200, Dieter Maurer wrote: Grant Edwards wrote at 2022-3-31 07:41 -0700: Is anybody aware of any Python code for the Exchang

Re: Exchange OWA using Python?

2022-03-31 Thread Dan Ciprus (dciprus) via Python-list
Yes, this ... I've been using this successfully for years and it obviously has its sad parts but it works pretty well overall. From: Python-list on behalf of Christian Gollwitzer Sent: Thursday, March 31, 2022 3:22 PM To: [email protected] Su

Issues

2022-04-08 Thread Stevenson, John B via Python-list
Hello, As a quick disclaimer, I am sorry if you have received this message multiple times over from me. I've been having technical difficulties trying to reach this email. Thank you. I'm trying to install Python on a computer so that I can use it for various tasks for my job, like m

[email protected]

2022-04-13 Thread Kevin M. Wilson via Python-list
offense. Proverbs 19:11 -- https://mail.python.org/mailman/listinfo/python-list

Python installer hangs in Windows 7

2017-02-05 Thread Jean-Claude Roy via Python-list
  I am trying to install Python 3.6.0 on a Windows 7 computer. The download of 29.1 MB is successful and I get the nextwindow.  I choose the "install now" selection and thatopens the Setup Program window. Now the trouble starts:I get "Installing:" and the Initialization pr

Re: Filtering computer.lang.python

2018-04-11 Thread C W Rose via Python-list
Thomas Jollans wrote: > > Welcome to python-list/comp.lang.python! > > This isn't originally a Google group. Google just mirrors the old USENET > group, which is awash with spam. > > There is also a mailing list version of this group (posts are mirrored > both way

Re: Spam levels.

2018-05-22 Thread C W Rose via Python-list
Both are free. Will -- "It is very disappointing that mindless individuals are vandalising the Larkin toads in Hull." A police spokesman -- https://mail.python.org/mailman/listinfo/python-list

Re: Matplotlib 3D limitations, please recommend alternative

2018-07-04 Thread William Ray Wing via Python-list
o > catches and prints the cause of the ValueError. > > [big byte] > # ==== > > I explored Python OpenGL bindings about three years ago, and quickly got > bogged down. Even with Python to assist, dealing with OpenGL was like trying > to prog

Re: RANT why the *%#&%^ does installing pip not install setuptools???

2018-07-05 Thread Brian J. Oney via Python-list
On Stretch: ~ $ aptitude show python-pip Package: python-pip   Version: 9.0.1-2 ... Maintainer: Debian Python Modules Team ... Depends: ca-certificates, python-pip-whl (= 9.0.1-2), python:any (< 2.8), python:any (>= 2.7.5-5~) Recommends: build-essential, python-a

Why is multiprocessing.Queue creating a thread ?

2018-07-29 Thread Léo El Amri via Python-list
processing module, I found that (As outlined in the documentation) Queue is indeed creating a thread. I want to know if I'm missing something. -- Leo -- https://mail.python.org/mailman/listinfo/python-list

asyncio: Warning message when waiting for an Event set by AbstractLoop.add_reader

2018-08-02 Thread Léo El Amri via Python-list
eems that polling is working as intended (Polling takes 1000.0 ms and Event is awaited for 1000.0 ms). But there is still this warning... Maybe one of you have an insight on this ? -- https://mail.python.org/mailman/listinfo/python-list

Re: asyncio: Warning message when waiting for an Event set by AbstractLoop.add_reader

2018-08-03 Thread Léo El Amri via Python-list
understand how all the thing is behaving in the shadows. Maybe I'm simply doing something wrong. But it would mean that the documentation is lacking some details, or maybe that I'm just really stupid on this one. On 03/08/2018 07:05, dieter wrote: > Léo El Amri

Re: Embedded Python and multiprocessing on Windows?

2018-08-09 Thread Léo El Amri via Python-list
nction calls multiprocessing functions, it all > works exactly the way it should. > On Thursday, August 9, 2018 at 12:09:36 PM UTC-4, Apple wrote: >> I've been working on a project involving embedding Python into a Windows >> application. I've got all of that working fine on the C+

Re: asyncio: Warning message when waiting for an Event set by AbstractLoop.add_reader

2018-08-12 Thread Léo El Amri via Python-list
u gives to AbstractEventLoop.add_reader(). I think we should put a mention about it in the documentation. -- https://mail.python.org/mailman/listinfo/python-list

Python 3.6 Logging time is not listed

2018-08-13 Thread Léo El Amri via Python-list
l=logging.DEBUG) > > The second configuration is overriding the first. No, the second is not overriding the first one. The second call simply does nothing at all. See https://docs.python.org/3/library/logging.html#logging.basicConfig : "This function does nothing if the root logger already has handlers configured for it." -- https://mail.python.org/mailman/listinfo/python-list

>< swap operator

2018-08-13 Thread Léo El Amri via Python-list
On 13/08/2018 21:54, [email protected] wrote: > I just had a funny idea how to implement a swap operator for types: > > A >< B > > would mean swap A and B. I think that: a, b = b, a is pretty enough -- https://mail.python.org/mailman/listinfo/python-list

Re: how to make super() work with externally defined methods in inheritance???

2018-08-15 Thread Paint-It-Black via Python-list
> # this prints for me when I run this in 3.6 excuse me, that is an extraneous comment from a cut and paste, in fact the example never makes it to the prints, as shown in the transcript just below the source code -- https://mail.python.org/mailman/listinfo/python-list

Re: how to make super() work with externally defined methods in inheritance???

2018-08-15 Thread Paint-It-Black via Python-list
flag2 and flag3 and flag4 : print("all good!") else: print("hmm something went wrong..") print("loaded try_adding_method.py") > Python 3.6.6 (default, Jun 27 2018, 14:44:17) [GCC 8.1.0] on linux Type "help", "copyright"

[ANN] A magazine for Data Science Enthusiasts

2018-08-21 Thread Karthikeyan A K via Python-list
/listinfo/python-list

Data Science News Issue 2 released

2018-08-27 Thread Karthikeyan A K via Python-list
Hello All, We have released Issue 2 of Data Science news. One can get it here https://datasciencenews.herokuapp.com/2018/08/26/issue-2.html - Karthikeyan A K -- https://mail.python.org/mailman/listinfo/python-list

Re: [OT] master/slave debate in Python

2018-09-24 Thread Léo El Amri via Python-list
been told already, thanks to Terry, Steven, Raymond and others, who all managed to keep their capability to think rationally after the motive of this bug report. Hopefully we have competent core devs. -- https://mail.python.org/mailman/listinfo/python-list

Re: [OT] master/slave debate in Python

2018-09-24 Thread Léo El Amri via Python-list
On 24/09/2018 18:30, Dan Purgert wrote: > Robin Becker wrote: >> [...] just thought control of the wrong sort.. > > Is there "thought control of the right sort"? We may have to ask to Huxley -- https://mail.python.org/mailman/listinfo/python-list

Re: [OT] master/slave debate in Python

2018-09-26 Thread Léo El Amri via Python-list
t; Imagine if the terminology were instead "dominant / submissive". > Without meaning to assume too much, might the cultural context > surrounding those terms make you feel uncomfortable when using them? I couldn't care less as well. The meaning of words is given by the context. -- https://mail.python.org/mailman/listinfo/python-list

Re: regex string matching python3

2018-10-01 Thread Brian J. Oney via Python-list
uld read what ever and put it in a handy format wherein it is clear what it was. I mean: stuff = [] for s in iostream: stuff.append({x: float(y) for x, y in re.findall(pattern, s)}) HTH -- https://mail.python.org/mailman/listinfo/python-list

Re: How to change '\\' to '\'

2018-10-01 Thread William Ray Wing via Python-list
on. AND this list is pretty much the place of record for people researching python IFAQs (infrequently asked questions). So, six months from now a Google search that turns up a relevant thread will make sense only if it can be read as in-lined comments like this. > --Jach > > mm0fmf at 201

Re: Creating Win .exe file from *.py on Linux

2018-10-02 Thread William Ray Wing via Python-list
> On Oct 2, 2018, at 3:03 PM, John Doe wrote: > > Hello World > > Is it possible to create on Linux win .exe file from *.py file? > -- > https://mail.python.org/mailman/listinfo/python-list As was pointed out here a day or so ago, the answer is yes, but it is a two

Re: asyncio await different coroutines on the same socket?

2018-10-03 Thread Léo El Amri via Python-list
same socket "simultaneously", and you want to stop all of them once one of them is finished. Am I getting it right ? -- Léo -- https://mail.python.org/mailman/listinfo/python-list

Re: Python indentation (3 spaces)

2018-10-07 Thread C W Rose via Python-list
may not have the same development > environment. For example, the first Python library I ever tried to use was > poorly maintained and had spaces on one line with tabs on the next, and the > author mixed naming conventions and syntax from Python 2 and 3 in his code. > That type of ex

Re: Package creation documentation?

2018-10-16 Thread Léo El Amri via Python-list
Given your coding experience also you may want to look at https://docs.python.org/3/reference/import.html#packages, which is the technical detail of what a package is (And "how" it's implemented). -- https://mail.python.org/mailman/listinfo/python-list

Re: Package creation documentation?

2018-10-16 Thread Léo El Amri via Python-list
Hello Spencer, On 16/10/2018 17:15, Spencer Graves wrote: > Where can I find a reasonable tutorial on how to create a Python > package? IMO, the best documentation about this is the tutorial: https://docs.python.org/3/tutorial/modules.html#packages > According to the

Re: email automation

2018-10-23 Thread Brian J. Oney via Python-list
On Tue, 2018-10-23 at 10:31 +0100, Ali Rıza KELEŞ wrote: > On Tue, 23 Oct 2018 at 09:07, Thomas Jollans wrote: > > > After some basic research I have a few options: > > >  > > >  1. Grapple with OpenEMM (interesting software, has python library, > > >

Re: Asyncio tasks getting cancelled

2018-11-04 Thread Léo El Amri via Python-list
gt;> asyncio.create_task(foobar()) >> #await asyncio.sleep(2) >> >> loop = asyncio.get_event_loop() >> asyncio.run(main()) >> loop.run_forever() > I don't know anything about asyncio in Python 3.7, but given the documentation, asyncio.run() will start a loop a

Re: Asyncio tasks getting cancelled

2018-11-05 Thread Léo El Amri via Python-list
On 05/11/2018 07:55, Ian Kelly wrote: >> I assume it's kind of a run_forever() with some code before it >> to schedule the coroutine. > > My understanding of asyncio.run() from > https://github.com/python/asyncio/pull/465 is that asyncio.run() is > m

Re: Asyncio tasks getting cancelled

2018-11-05 Thread Léo El Amri via Python-list
asyncio.get_event_loop() > asyncio.run(main()) > loop.run_forever() to > loop = asyncio.get_event_loop() > loop.create_task(main()) > loop.run_forever() - Léo [1] https://www.python.org/dev/peps/pep-3156/ -- https://mail.python.org/mailman/listinfo/python-list

Re: [Tutor] SyntaxError: can't assign to literal while using ""blkid -o export %s | grep 'TYPE' | cut -d"=" -f3" % (fs)" using subprocess module in Python

2018-11-07 Thread Brian J. Oney via Python-list
xport %s | grep "TYPE" | cut -d"=" -f3' or: "blkid -o export %s | grep \"TYPE\" | cut -d\"=\" -f3" HTH -- https://mail.python.org/mailman/listinfo/python-list

Re: Good editor for python

2018-11-11 Thread Brian J. Oney via Python-list
ugh. To get the functionality you miss is pretty simple with spacemacs.  For more information and platform-specific instructions, please see the following link. https://github.com/syl20bnr/spacemacs The basic template already activates python support. That's my two cents. Cheers Brian On Sun,

RE: [E] QWERTY was not designed to intentionally slow typists down (was: Unicode normalisation [was Re: [beginner] What's wrong?])

2016-04-09 Thread Coll-Barth, Michael via Python-list
y all had technical names. I vaguely remember hearing the myth of slowing down typists when Dvorak's keyboard became available for PCs, '80s(?), and that this 'new' layout removed that incumbrance. -- https://mail.python.org/mailman/listinfo/python-list

windows 7 install trouble

2016-05-04 Thread Eric and Bella via Python-list
hello, could someone please help.  I had installed python 3.? on my computer.  it had issues.  so i tried to uninstall and it wouldn't.  so i deleted all the files and used microsoft fixit to uninstall.  that worked.  but i now can't re-install it.  on the off chance it was firewa

Re: Python slang

2016-08-07 Thread Anders J. Munch via Python-list
Marco Sulla via Python-list: > Well, they are the most used languages. They weren't when Python was created. Python's terms raise/except and self were normal for the time. C++ was the odd one out. throw/catch and this are Stroustrup's inventions, no other language used th

Re: the python name

2019-01-04 Thread William Ray Wing via Python-list
mes close. Bill -- https://mail.python.org/mailman/listinfo/python-list

Re: the python name

2019-01-04 Thread William Ray Wing via Python-list
o classes. No matter what the student did (negative indexes in early FORTRAN would get you down into the OS), under WATFOR the mainframe (yup) wouldn’t crash. Bill PS: I, for one will drop this now as it is getting further off topic. -- https://mail.python.org/mailman/listinfo/python-list

Re: Levenberg-Marquardt non-linear least-squares fitting in Python

2019-03-28 Thread William Ray Wing via Python-list
nd it works quite well. from scipy.optimize import curve_fit def func2fit(x,a,b,c): return a - b * np.exp(-c * x) Bill > Look forward to your suggestions and sample code as an example. > > Thanks and regards, > Madhavan > -- > https://mail.python.org/mailman/listinfo/

Re: Levenberg-Marquardt non-linear least-squares fitting in Python [follow-on]

2019-03-28 Thread William Ray Wing via Python-list
= '-', color = color_dic[run_num]) plt.savefig('Normalized ' + str(run_num)) perr = np.sqrt(np.diag(cov)) return popt, cov, xdata[0], ydata[0], fitted, perr[0] -- https://mail.python.org/mailman/listinfo/python-list

Re: [Tutor] Questions

2019-04-08 Thread William Ray Wing via Python-list
answers that are beyond the typical Tutor question level, so I’m also forwarding to the main Python list where you should be able to get pointers. But let me ask, how much programming do you know? Python is a full-blown programming language, like Java or C. Have you written programs before that

Most "pythonic" syntax to use for an API client library

2019-04-28 Thread Jonathan Leroy - Inikup via Python-list
...any other? #3 seems to be more "pretty" to me, but I did not find any "official" recommendation online. Thanks. -- Jonathan. -- https://mail.python.org/mailman/listinfo/python-list

Re: Most "pythonic" syntax to use for an API client library

2019-05-14 Thread Jonathan Leroy - Inikup via Python-list
you are using have its own preference? I'm using no framework, only pure Python. -- Jonathan Leroy -- https://mail.python.org/mailman/listinfo/python-list

Re: Mouse control

2019-10-07 Thread David L Neil via Python-list
On 7/10/19 4:11 AM, Alexander Vergun wrote: I am coding a voice assistant under Python 3.7, Windows 7. I am using PYcharm and libraries such as PYSimpleGUI, mouse, keyboard etc. Everything works except for the mouse control and probably keyboard, the problem is following, when I run the script

Re: Mouse control

2019-10-12 Thread David L Neil via Python-list
On 7/10/19 4:11 AM, Alexander Vergun wrote: Hello all, I am coding a voice assistant under Python 3.7, Windows 7. I am using PYcharm and libraries such as PYSimpleGUI, mouse, keyboard etc. Everything works except for the mouse control and probably keyboard, the problem is following, when I

Re: TypeError: unhashable type: 'list'

2019-10-23 Thread David L Neil via Python-list
r first comment above), the string.find() method could be employed (replacing "state 1"), and then (implicit assumption about spacing here) "state 2" becomes a matter of moving a few characters 'along', before grabbing the total; rinse and repeat... Web-ref: https://en.wikipedia.org/wiki/Finite-state_machine -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Help building python application from source

2020-03-02 Thread Mr. Lee Chiffre via Python-list
my server. Electrum is a very popular wallet and is what comes pre installed with TAILS. -- [email protected] PGP 97F0C3AE985A191DA0556BCAA82529E2025BDE35 -- https://mail.python.org/mailman/listinfo/python-list

<    60   61   62   63   64   65   66   67   68   >