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: python-list@python.org 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
7;) listNoPunct.append(word) print(listNoPunct) #B. removing stopwords banglastopwords = stopwords() print(banglastopwords) cleanList=[] for word in listNoPunct: if word in banglastopwords: continue else: cleanList.append(word) print(cleanList) -- 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
punctuation >and stopwords from bnlp.corpus import stopwords, punctuations #A. Remove >punctuation first listNoPunct = [] for word in articleBodyWordList: for >mark in punctuations: word=word.replace(mark, '') listNoPunct.append(word) >print(listNoPunct

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
hsohai\appdata\local\programs\python\python38\lib\site-packages\pip\_internal\commands\install.py", line 12, in     from pip._internal.cache import WheelCacheModuleNotFoundError: No module named 'pip._internal.cache'- Note: Have included pip in Enviromnet Variables Thank you,Sohail. -- https://mail.python.org/mailman/listinfo/python-list

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
://mail.python.org/mailman/listinfo/python-list -- Daniel Ciprus .:|:.:|:. CONSULTING ENGINEER.CUSTOMER DELIVERY Cisco Systems Inc. dcip...@cisco.com tel: +1-703-484-0205 mob: +1-540-223-7098 signature.asc Description: PGP signature -- https://mail.python.org/mailman

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 ; python-list@python.org 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
.python.org/mailman/listinfo/python-list -- Daniel Ciprus .:|:.:|:. CONSULTING ENGINEER.CUSTOMER DELIVERY Cisco Systems Inc. dcip...@cisco.com tel: +1-703-484-0205 mob: +1-540-223-7098 signature.asc Description: PGP signature -- https://mail.python.org/mailman/listinfo/python-list

Can't get rid of old version of python

2021-08-13 Thread Ciarán Ó Duibhín via Python-list
stuff at C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2800.0_x64__qbz5n2kfra8p0 which directory is virtually inaccessible from Windows but can be listed in DOS. How can I get rid of Python 3.8.10 , and install my packages to 3.9.6? Ciarán Ó Duibhín -- https://mail.python.org/mailman/listinfo/python-list

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

2021-08-13 Thread Ciarán Ó Duibhín via Python-list
that use python probably have their own copy of python.exe — LibreOffice and GIMP 2 certainly have, with version numbers which are different again. -- https://mail.python.org/mailman/listinfo/python-list

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
ard this word as a euphemism for another Upon which note, and your observation that I am no English-major, it's probably time we went to do things... -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

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
mail.python.org/mailman/listinfo/python-list -- Daniel Ciprus .:|:.:|:. CONSULTING ENGINEER.CUSTOMER DELIVERY Cisco Systems Inc. [ curl -L http://git.io/unix ] signature.asc Description: PGP signature -- https://mail.python.org/mailman/listinfo/python-list

Pycharm IDE: seeking an assist!

2022-03-21 Thread Kevin M. Wilson via Python-list
oot, and still no JOY.  Message is still popping open, when the IDE first executes. No documentation have I found, details what this option, the setting of...will do! Any and all help, please! Kevin Good sense makes one slow to anger, and it is his glory to overlook an offense. Proverbs 19:11 -- https://mail.python.org/mailman/listinfo/python-list

Re: Exchange OWA using Python?

2022-03-31 Thread Dan Ciprus (dciprus) via Python-list
you can connect via those protocols. -- https://mail.python.org/mailman/listinfo/python-list -- Daniel Ciprus .:|:.:|:. CONSULTING ENGINEER.CUSTOMER DELIVERY Cisco Systems Inc. dcip...@cisco.com tel: +1-703-484-0205 mob: +1-540-223-7098 [ curl -L http://git.io/unix

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: python-list@python.org Su

Issues

2022-04-08 Thread Stevenson, John B via Python-list
do to fix this? Error sent back is "'python' is not recognized as an internal or external command, operable program or batch file." Thank you. John B. (Jack) Stevenson -- https://mail.python.org/mailman/listinfo/python-list

python-list@python.org

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 go to the task manager it shows that Python 3.6.0 (32-bit) setup is running.  If I try to end the task Iget the message that the program is not responding. Do you have any suggestions as to how I can get past this? Thank you. -- https://mail.python.org/mailman/listinfo/python-list

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
GL). I would appreciate a simple interface. The rendering doesn't have > to be especially fast or high quality. The Matplotlib visualization is > acceptable, except of course for the missing faces. > > There are many 3D graphics packages on PyPI. Some appear to be quite >

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

2018-07-05 Thread Brian J. Oney via Python-list
n Modules Team ... Depends: ca-certificates, python-pip-whl (= 9.0.1-2), python3:any (>= 3.4~) Recommends: build-essential, python3-dev (>= 3.2), python3-setuptools, python3-wheel ... It seems deliberate, but I am not the person to ask why. -- https://mail.python.org/mailman/listinfo/python-list

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
y. However, a Python.exe window does pop up for a tenth of a >> second, so *something* is happening. That may be something simple: Did you actually protected the entry-point of your Python script with if __name__ == '__main__': ? -- https://mail.python.org/mailman/listinfo/python-list

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, skybuck2...@hotmail.com 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
;, "credits" or "license" for more information. >>> python.el: native completion setup loaded >>> loaded try_adding_method.py >>> f_ut_oh() making a B all good! >>> -- https://mail.python.org/mailman/listinfo/python-list

[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
hing derived from NT works. I can't remember which >> Windows command shells support it, probably PowerShell does. > > --- > This email has been checked for viruses by Avast antivirus software. > https://www.avast.com/antivirus > > -- > https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list

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
ce make Python much easier to use, particularly for the inexperienced. If you disagree, then use another language. (Leibnitz had some snappy phrases on the subject of Theodicy, which explain the matter clearly.) Will -- https://mail.python.org/mailman/listinfo/python-list

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
mmends "Packaging Python > Projects"[2] and "An Overview of Packaging for Python".[3] packaging.python.org is centered on "How to install and distribute Python packages (Or modules)" - Léo -- https://mail.python.org/mailman/listinfo/python-list

Re: email automation

2018-10-23 Thread Brian J. Oney via Python-list
ron jobs. I prefer the former for the handy logging options. What about a python solution? What would the advantage of a python queue be over a systemd timer? I guess that's an apples an oranges comparison. In my case I most likely would have a raspberry pi running a python script to read and possibly answer any emails. Thanks again for the tips. Regards, Brian -- https://mail.python.org/mailman/listinfo/python-list

Re: Asyncio tasks getting cancelled

2018-11-04 Thread Léo El Amri via Python-list
main()) instead of the asyncio.asyncio.run(main()). In the case of asyncio.create_task() it would be asyncio.get_event_loop(foobar()). But anyway, I highly recommend you to use the "await other_coroutine()" syntax I talked about earlier. It may even fix the issue (90% chance). I don't

Re: Asyncio tasks getting cancelled

2018-11-05 Thread Léo El Amri via Python-list
ue, but this is definitely not what one is looking for if one really want to _schedule_ a coroutine. - Léo -- https://mail.python.org/mailman/listinfo/python-list

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
; wonder > > > if something similar exists for Python. For now I just use emacs with the > > > command line pdb. What do people use here? Ideally I would like to have > > > something that is cross platform Windows/Linux. > > >  > > > Olivier > > >  > > > -- > > > https://mail.python.org/mailman/listinfo/python-list > > >  >  >  -- https://mail.python.org/mailman/listinfo/python-list

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
-- https://mail.python.org/mailman/listinfo/python-list

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
BTW you may like to take a look at PyAutoGUI, if only because it has been more recently updated. It may also help by bringing 'everything' under one import rather than the multiple packages (listed above): https://pypi.org/project/PyAutoGUI/ https://pyautogui.readthedocs.io/en/late

Re: Mouse control

2019-10-12 Thread David L Neil via Python-list
. https://python-catalin.blogspot.com/2019/10/python-374-testing-pyusb-python-module.html (via PlanetPython) -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

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. -- lee.chif...@secmail.pro PGP 97F0C3AE985A191DA0556BCAA82529E2025BDE35 -- https://mail.python.org/mailman/listinfo/python-list

Re: Is there a difference between python

2020-04-05 Thread David L Neil via Python-list
On 6/04/20 10:35 AM, Malcolm Greene wrote: Is there a difference between the following 2 ways to launch a console-less script under Windows? python

Phyton 32 or 64 bit?

2020-05-26 Thread R. A. Hoffman via Python-list
here to install and run Python ?   Sorry for the dumb questions. Thanks for any help.   -- https://mail.python.org/mailman/listinfo/python-list

Re: Winreg

2020-07-31 Thread David L Neil via Python-list
plain it to others! -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: questions re: calendar module

2020-08-01 Thread William Ray Wing via Python-list
can now have up to 7 months wide if the terminal is wide enough >> (>180 columns IIRC). >> A mentor was working on this in Perl but as he died some couple months >> ago its up to me >> to make what I want. >> Because it seems like there are a lot of disparate things happening >> its not very straight >> forward trying to replicate and extend my friend's efforts except in >> Python. (My friend >> preferred to work in Perl rather than Python and I'm wanting to learn >> Python. I understand >> that this is not perhaps the easiest way to learn something but it >> sure is interesting!) >> >> TIA > -- > https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list

Re: There is LTS?

2020-08-24 Thread Léo El Amri via Python-list
v/peps/pep-0537/ [5] https://www.python.org/dev/peps/pep-0569/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Asyncio Queue implementation suggestion

2020-09-17 Thread Léo El Amri via Python-list
the second hypothesis is my preferred. Have you tried enabling asyncio's debug mode ? I hope it can give you more information on why this is occurring. I believe it's a bug, not a limitation of CPython. - Léo -- https://mail.python.org/mailman/listinfo/python-list

Re: Asyncio Queue implementation suggestion

2020-09-17 Thread Léo El Amri via Python-list
ngth supports. By the way, Alberto, you can change the selector used by your event loop by instantiating the loop class by yourself [1]. You may want to use selectors.PollSelector [2]. [1] https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.SelectorEventLoop [2] https://docs.python.org/3/library/selectors.html#selectors.PollSelector - Léo -- https://mail.python.org/mailman/listinfo/python-list

Re: Pythonic style

2020-09-21 Thread Léo El Amri via Python-list
except StopIteration: return val except StopIteration: pass raise ValueError("first: arg not exactly 1 long") 1. The code isn't repetitive (The "raise ValueError" is written only once) 2. The intent is a bit harder to grasp than for firsta or firste, but the code is shorter than firste 3. The try..catch nesting is considered a bad practice, but the code here is simple enough so it shouldn't trigger a strong aversion reading it - Léo -- https://mail.python.org/mailman/listinfo/python-list

Re: Pythonic style

2020-09-21 Thread Léo El Amri via Python-list
nce/simple_stmts.html#assignment-statements -- https://mail.python.org/mailman/listinfo/python-list

Re: Covariance matrix syntax

2020-10-13 Thread Bruno P. Kinoshita via Python-list
October 2020, 5:38:55 pm NZDT, Meghna Karkera wrote: May I know the steps or procedure behind covariance matrix syntax, np.cov(covar_matrix) in python -- https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list

Re: Some problem in code execution in python

2021-01-07 Thread David L Neil via Python-list
dn -- https://mail.python.org/mailman/listinfo/python-list

Re: How/where to store calibration values - written by program A, read by program B

2023-12-09 Thread Peter J. Holzer via Python-list
On 2023-12-06 07:23:51 -0500, Thomas Passin via Python-list wrote: > On 12/6/2023 6:35 AM, Barry Scott via Python-list wrote: > > Personally I would not use .ini style these days as the format does not > > include type of the data. > > Neither does JSON. Well, it disti

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-23 Thread Peter J. Holzer via Python-list
On 2023-12-22 22:56:45 -0500, Thomas Passin via Python-list wrote: > In my experience one should always make sure to know what version of Python > is being used, at least if there is more than one version installed on the > computer. Even on Linux using a shebang line can be tricky, be

Re: How/where to store calibration values - written by program A, read by program B

2023-12-28 Thread Peter J. Holzer via Python-list
On 2023-12-28 05:20:07 +, rbowman via Python-list wrote: > On Wed, 27 Dec 2023 03:53:42 -0600, Greg Walters wrote: > > The biggest caveat is that the shared variable MUST exist before it can > > be examined or used (not surprising). > > There are a few other questions

Re: How/where to store calibration values - written by program A, read by program B

2023-12-30 Thread Peter J. Holzer via Python-list
On 2023-12-29 09:01:24 -0800, Grant Edwards via Python-list wrote: > On 2023-12-28, Peter J. Holzer via Python-list wrote: > > On 2023-12-28 05:20:07 +, rbowman via Python-list wrote: > >> On Wed, 27 Dec 2023 03:53:42 -0600, Greg Walters wrote: > >> > The big

ANN: EmPy 4.0.1

2024-01-01 Thread Erik Max Francis via Python-list
W && Skype erikmaxfrancis To be refutable is not the least charm of a theory. -- Friedrich Nietzsche -- https://mail.python.org/mailman/listinfo/python-list

Re: Using my routines as functions AND methods

2024-01-06 Thread Peter J. Holzer via Python-list
On 2024-01-03 23:17:34 -0500, Thomas Passin via Python-list wrote: > On 1/3/2024 8:00 PM, Alan Gauld via Python-list wrote: > > On 03/01/2024 22:47, Guenther Sohler via Python-list wrote: > > > Hi, > > > > > > In my cpython i have written quite some functions

ANN: repology-client library to access Repology API

2024-01-10 Thread Anna (cybertailor) Vyalkova via Python-list
Hi newsgroup, I needed to fetch Repology data for my pet project and now it's a library: https://pypi.org/project/repology-client/ It uses aiohttp, if that matters. Feel free to use and contribute. -- https://mail.python.org/mailman/listinfo/python-list

Re: Testing (sorry)

2024-02-18 Thread Peter J. Holzer via Python-list
[Replying to the list *and* Grant] On 2024-02-17 19:38:04 -0500, Grant Edwards via Python-list wrote: > Today I noticed that nothing I've posted to python-list in past 3 > weeks has shown up on the list. January 29th, AFAICS. And end of december before that. > I don't know

Re: Testing (sorry)

2024-02-20 Thread Peter J. Holzer via Python-list
On 2024-02-19 11:38:54 -0500, Thomas Passin via Python-list wrote: > On 2/19/2024 9:17 AM, Grant Edwards via Python-list wrote: > > On 2024-02-19, Thomas Passin wrote: > > > > About 24 hours later, all of my posts (and the confirmation e-mails) > > > > all showed

pathlib.Path.is_file vs os.path.isfile difference

2024-03-08 Thread Albert-Jan Roskam via Python-list
Albert-Jan -- https://mail.python.org/mailman/listinfo/python-list

Re: pathlib.Path.is_file vs os.path.isfile difference

2024-03-08 Thread Albert-Jan Roskam via Python-list
On Mar 8, 2024 19:35, Thomas Passin via Python-list wrote: On 3/8/2024 1:03 PM, Albert-Jan Roskam via Python-list wrote: > Hi, > I was replacing some os.path stuff with Pathlib and I discovered this: > Path(256 * "x").i

Re: pathlib.Path.is_file vs os.path.isfile difference

2024-03-10 Thread Albert-Jan Roskam via Python-list
On Mar 10, 2024 12:59, Thomas Passin via Python-list wrote: On 3/10/2024 6:17 AM, Barry wrote: > > >> On 8 Mar 2024, at 23:19, Thomas Passin via Python-list wrote: >> >> We just learned a few posts back that it might be specific

Error in Module

2024-03-11 Thread Sanskar Mukeshbhai Joshi via Python-list
ide me to solve this Error. -- https://mail.python.org/mailman/listinfo/python-list

Re: Error in Module

2024-03-11 Thread Sanskar Mukeshbhai Joshi via Python-list
al `flask` > environment. > > I suggest you contact your project mentor to get help. > -- https://mail.python.org/mailman/listinfo/python-list

A Single Instance of an Object?

2024-03-11 Thread Ivan "Rambius" Ivanov via Python-list
long as the name argument is the same. How would you advise me to implement that? Regards rambius -- Tangra Mega Rock: http://www.radiotangra.com -- https://mail.python.org/mailman/listinfo/python-list

Re: A Single Instance of an Object?

2024-03-11 Thread Ivan "Rambius" Ivanov via Python-list
On Mon, Mar 11, 2024 at 5:01 PM Chris Angelico via Python-list wrote: > > On Tue, 12 Mar 2024 at 07:54, Ivan "Rambius" Ivanov via Python-list > wrote: > > I am refactoring some code and I would like to get rid of a global > > variable. Here is the outline: > &

Re: A Single Instance of an Object?

2024-03-11 Thread Ivan "Rambius" Ivanov via Python-list
On Mon, Mar 11, 2024 at 5:06 PM dn via Python-list wrote: > > Good question Rambius! > > On 12/03/24 09:53, Ivan "Rambius" Ivanov via Python-list wrote: > > Hello, > > > > I am refactoring some code and I would like to get rid of a global > >

Re: A Single Instance of an Object?

2024-03-11 Thread Peter J. Holzer via Python-list
On 2024-03-11 16:53:00 -0400, Ivan "Rambius" Ivanov via Python-list wrote: > I am refactoring some code and I would like to get rid of a global > variable. Here is the outline: ... > The global cache variable made unit testing of the lookup(key) method > clumsy, because I

Re: Configuring an object via a dictionary

2024-03-16 Thread Peter J. Holzer via Python-list
On 2024-03-16 08:15:19 +, Barry via Python-list wrote: > > On 15 Mar 2024, at 19:51, Thomas Passin via Python-list > > wrote: > > I've always like writing using the "or" form and have never gotten bit > > I, on the other hand, had to fix a production

Re: Configuring an object via a dictionary

2024-03-17 Thread Peter J. Holzer via Python-list
On 2024-03-17 17:15:32 +1300, dn via Python-list wrote: > On 17/03/24 12:06, Peter J. Holzer via Python-list wrote: > > On 2024-03-16 08:15:19 +, Barry via Python-list wrote: > > > > On 15 Mar 2024, at 19:51, Thomas Passin via Python-list > > > > wrote: >

<    51   52   53   54   55   56   57   58   >