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
;, "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. -- [email protected] 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: >

Re: Popping key causes dict derived from object to revert to object

2024-03-25 Thread Michael F. Stemper via Python-list
On 25/03/2024 01.56, Loris Bennett wrote: Grant Edwards writes: On 2024-03-22, Loris Bennett via Python-list wrote: Yes, I was mistakenly thinking that the popping the element would leave me with the dict minus the popped key-value pair. It does. Indeed, but I was thinking in the

Re: xkcd.com/353 ( Flying with Python )

2024-03-31 Thread Peter J. Holzer via Python-list
On 2024-03-30 17:58:08 +, Alan Gauld via Python-list wrote: > On 30/03/2024 07:04, Greg Ewing via Python-list wrote: > > On 30/03/24 7:21 pm, HenHanna wrote: > >> https://xkcd.com/1306/ > >> what does  SIGIL   mean? > > > > I t

Re: xkcd.com/353 ( Flying with Python )

2024-03-31 Thread Peter J. Holzer via Python-list
On 2024-03-31 12:27:34 -0600, Mats Wichmann via Python-list wrote: > On 3/30/24 10:31, MRAB via Python-list wrote: > > On 2024-03-30 11:25, Skip Montanaro via Python-list wrote: > > > > > https://xkcd.com/1306/ > > > > >   what does 

Re: A technique from a chatbot

2024-04-03 Thread Pieter van Oostrum via Python-list
ly: print("something_to_be_done_at_the_end_of_this_function()") -- Pieter van Oostrum www: http://pieter.vanoostrum.org/ PGP key: [8DAE142BE17999C4] -- https://mail.python.org/mailman/listinfo/python-list

Re: A technique from a chatbot

2024-04-03 Thread Michael F. Stemper via Python-list
ta', 'epsilon', 'zeta', 'eta', 'theta'] >>> find_e(l) 'epsilon' >>> l = ['The','fan-jet','airline'] >>> find_e(l) Traceback (most recent call last): File "", line 1, in File "", line 2, in find_e IndexError: list index out of range >>> -- Michael F. Stemper If it isn't running programs and it isn't fusing atoms, it's just bending space. -- https://mail.python.org/mailman/listinfo/python-list

How to get insight in the relations between tracebacks of exceptions in an exception-chain

2024-04-04 Thread Klaas van Schelven via Python-list
appening that this SO question is about. regards, Klaas Previously asked here: https://stackoverflow.com/questions/78270044/how-to-get-insight-in-the-relations-between-tracebacks-of-exceptions-in-an-excep -- https://mail.python.org/mailman/listinfo/python-list

Re: ModuleNotFoundError: No module named 'Paramiko'

2024-04-08 Thread Sravan Kumar Chitikesi via Python-list
pip may be pointed to another python version. try to remove other python versions and re install pip Regards, *Sravan Chitikesi* AWS Solutions Architect - Associate On Mon, Apr 8, 2024 at 10:58 PM Wenyong Wei via Python-list < [email protected]> wrote: > > Dear Sir/Madam, &g

Re: [RELEASE] Python 3.12.3 and 3.13.0a6 released

2024-04-10 Thread Abdur-Rahmaan Janhangeer via Python-list
> Mauritius On Tue, Apr 9, 2024 at 11:18 PM Thomas Wouters via Python-list < [email protected]> wrote: > *It’s time to eclipse the Python 3.11.9 release with two releases*, one of > which is the *very last alpha release of Python 3.13*: > < > https://discuss.pytho

Re: Python Dialogs

2024-05-04 Thread Peter J. Holzer via Python-list
On 2024-05-02 16:34:38 +0200, Loris Bennett via Python-list wrote: > [email protected] (Stefan Ram) writes: > > Me (indented by 2) and the chatbot (flush left). Lines lengths > 72! > > Is there a name for this kind of indentation, i.e. the stuff you are > writing

Use of statement 'global' in scripts.

2024-05-07 Thread Popov, Dmitry Yu via Python-list
modules? If there are any differences, I would really appreciate any comments on this. Regards, Dmitry Popov Lemont, IL USA -- https://mail.python.org/mailman/listinfo/python-list

Re: Use of statement 'global' in scripts.

2024-05-08 Thread Popov, Dmitry Yu via Python-list
Thank you! From: Python-list on behalf of Greg Ewing via Python-list Sent: Wednesday, May 8, 2024 3:56 AM To: [email protected] Subject: Re: Use of statement 'global' in scripts. On 8/05/24 1: 32 pm, Popov, Dmitry Yu wrote: > The stat

Version of NymPy

2024-05-15 Thread Popov, Dmitry Yu via Python-list
What would be the easiest way to learn which version of NumPy I have with my Anaconda distribution? -- https://mail.python.org/mailman/listinfo/python-list

Re: Version of NymPy

2024-05-15 Thread Popov, Dmitry Yu via Python-list
Thank you. From: Larry Martell Sent: Wednesday, May 15, 2024 1:55 PM To: Popov, Dmitry Yu Cc: Popov, Dmitry Yu via Python-list Subject: Re: Version of NymPy On Wed, May 15, 2024 at 2: 43 PM Popov, Dmitry Yu via Python-list wrote: > > What would be the e

Re: Terminal Emulator

2024-05-18 Thread Peter J. Holzer via Python-list
On 2024-05-14 16:03:33 -0400, Grant Edwards via Python-list wrote: > On 2024-05-14, Alan Gauld via Python-list wrote: > > On 14/05/2024 18:44, Gordinator via Python-list wrote: > > > >> I wish to write a terminal emulator in Python. I am a fairly > >> competent

Re: Terminal Emulator

2024-05-18 Thread Peter J. Holzer via Python-list
On 2024-05-14 22:37:17 +0200, Mirko via Python-list wrote: > Am 14.05.24 um 19:44 schrieb Gordinator via Python-list: > > I wish to write a terminal emulator in Python. I am a fairly competent > > Python user, and I wish to try a new project idea. What references can I > >

Re: Terminal Emulator (Posting On Python-List Prohibited)

2024-05-18 Thread Peter J. Holzer via Python-list
On 2024-05-16 19:46:07 +0100, Gordinator via Python-list wrote: > To be fair, the problem is the fact that they use Windows (but I guess Linux > users have to deal with venvs, so we're even. I don't think Linux users have to deal with venvs any more than Windows users. Maybe e

Re: PyCon

2024-05-18 Thread Abdur-Rahmaan Janhangeer via Python-list
rtell via Python-list, < [email protected]> wrote: > I’m at PyCon in Pittsburgh and I’m haven’t an amazing time! > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list

Re: PyCon

2024-05-18 Thread Abdur-Rahmaan Janhangeer via Python-list
Two interesting ones: - Norwegian library: https://fosstodon.org/@osdotsystem/112459312723574625 - One about if Ai will take our jobs, using py to find out and she concludes it will On Sat, 18 May 2024, 14:15 Chris Angelico via Python-list, < [email protected]> wrote: > On Sun, 19

venvs vs. package management (was: Terminal Emulator (Posting On Python-List Prohibited))

2024-05-18 Thread Peter J. Holzer via Python-list
On 2024-05-18 20:12:33 +0200, Piergiorgio Sartor via Python-list wrote: > On 18/05/2024 20.04, Mats Wichmann wrote: > > So venvs make managing all that pretty convenient. Dunno why everybody's > > so down on venvs... > > Only people which are *not* using python... :-) &g

Re: Terminal Emulator (Posting On Python-List Prohibited)

2024-05-20 Thread Peter J. Holzer via Python-list
On 2024-05-20 00:26:03 +0200, Roel Schroeven via Python-list wrote: > Skip Montanaro via Python-list schreef op 20/05/2024 om 0:08: > > > Modern debian (ubuntu) and fedora block users installing using pip. > > > > Even if you're telling it to install in ~/.local? I

Can't trap paramiko runtime trace-back error

2024-05-22 Thread Vinode Singh Ujlain via Python-list
Close the SSH client connection delssh_client execute() -- Warm Regards, Vinode Singh Ujlain | https://www.linkedin.com/in/ujlain/ -- https://mail.python.org/mailman/listinfo/python-list

Flubbed it in the second interation through the string: range error... HOW?

2024-05-28 Thread Kevin M. Wilson via Python-list
#x27;m doing something... Stupid!! *** "When you pass through the waters, I will be with you: and when you pass through the rivers, they will not sweep over you. When you walk through the fire, you will not be burned: the flames will not set you ablaze."      Isaiah 43:2 -- https://mail.python.org/mailman/listinfo/python-list

Fw: Flubbed it in the second interation through the string: range error... HOW?

2024-05-28 Thread Kevin M. Wilson via Python-list
sweep over you. When you walk through the fire, you will not be burned: the flames will not set you ablaze."      Isaiah 43:2 - Forwarded Message - From: Kevin M. Wilson via Python-list To: [email protected] Sent: Tuesday, May 28, 2024 at 10:35:23 PM MDTSubject: Fl

Re: From JoyceUlysses.txt -- words occurring exactly once

2024-05-31 Thread Pieter van Oostrum via Python-list
unit. > That is a famous Unix task : (Sorry, no Python) grep -o '\w*' JoyceUlysses.txt | sort | uniq -c | sort -n -- Pieter van Oostrum www: http://pieter.vanoostrum.org/ PGP key: [8DAE142BE17999C4] -- https://mail.python.org/mailman/listinfo/python-list

Re: From JoyceUlysses.txt -- words occurring exactly once

2024-06-01 Thread Peter J. Holzer via Python-list
On 2024-05-30 19:26:37 -0700, HenHanna via Python-list wrote: > hard to decide what to do with hyphens >and apostrophes > (I'd, he's, can't, haven't, A's and B's) Especially since the same character is used as both an apost

Re: Lprint = ( Lisp-style printing ( of lists and strings (etc.) ) in Python )

2024-06-01 Thread Peter J. Holzer via Python-list
On 2024-05-30 21:47:14 -0700, HenHanna via Python-list wrote: > [('the', 36225), ('and', 17551), ('of', 16759), ('i', 16696), ('a', 15816), > ('to', 15722), ('that', 11252), ('in', 10743), ('it', 10

Re: IDLE: clearing the screen

2024-06-10 Thread Michael F. Stemper via Python-list
cls() ... Why have it return anything at all? Because __repr__ needs to return a str. Got it. Thanks for clarifying. -- Michael F. Stemper 87.3% of all statistics are made up by the person giving them. -- https://mail.python.org/mailman/listinfo/python-list

Re: IDLE: clearing the screen

2024-06-10 Thread Michael F. Stemper via Python-list
e it return anything at all? -- Michael F. Stemper Indians scattered on dawn's highway bleeding; Ghosts crowd the young child's fragile eggshell mind. -- https://mail.python.org/mailman/listinfo/python-list

Re: Suggested python feature: allowing except in context maneger

2024-06-16 Thread Albert-Jan Roskam via Python-list
thook -- https://mail.python.org/mailman/listinfo/python-list

Re: in Python: (101 102 103 201 202 203 301 302 303 401 402 403 )

2024-06-18 Thread Peter J. Holzer via Python-list
On 2024-06-14 06:10:06 -, candycanearter07 via Python-list wrote: > Phil Carmody wrote at 12:01 this Thursday (GMT): > > I'd say you can't beat the verbosity, or lack thereof of just plain > > zsh/bash: > > $ echo {1,2,3,4}0{1,2,3} > > 101 102 10

Timezone in HH:MM Format

2024-06-18 Thread Ivan "Rambius" Ivanov via Python-list
ngra Mega Rock: http://www.radiotangra.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Timezone in HH:MM Format

2024-06-18 Thread Ivan "Rambius" Ivanov via Python-list
Thank you all for your responses! On Tue, Jun 18, 2024 at 9:54 PM Jon Ribbens via Python-list wrote: > > datetime.now(ZoneInfo("America/New_York")).isoformat() Both .isoformat() and "%:z" work. -- Tangra Mega Rock: http://www.radiotangra.com -- https://mail.p

<    52   53   54   55   56   57   58   59   >