On 6/15/23, Thomas Schweikle via Python-list wrote:
>
> In this case: not sure what is going on.
Possibly you have a setting configured that affects the behavior of
Git via the MinGW-w64 runtime, such that calling mkdir() ends up
calling NtSetInformationFile() to s
it is not a bug that
current Python doesn't support building on case sensitive directory.
But I think it is a nice improvement if next Python supports it.
Python itself isn't the problem here. It is MSBuild.exe. For some reason
this tool lowercases sometimes whole paths to files includ
Am Do., 15.Juni.2023 um 16:28:21 schrieb Eryk Sun:
On 6/15/23, Thomas Schweikle via Python-list wrote:
In this case: not sure what is going on.
Possibly you have a setting configured that affects the behavior of
Git via the MinGW-w64 runtime, such that calling mkdir() ends up
calling
On 6/15/23, Thomas Schweikle via Python-list wrote:
>
> No. This flag is not inherited. Someone has to set it for created
> directories. It is easy to confirm: take a directory not under MSYS or
> cygwin control (because it is mounted by MSYS or cygwin), set the flag,
> then cre
On 6/16/2023 1:40 AM, dn via Python-list wrote:
Have you figured-out a use for the @enum.member and @enum.nonmember
decorators (new in Python 3.11)?
"What's New" says:
Added the member() and nonmember() decorators, to ensure the decorated
object is/is not converted to an enu
On 6/16/2023 7:37 PM, dn via Python-list wrote:
On 16/06/2023 23.47, Thomas Passin via Python-list wrote:
On 6/16/2023 1:40 AM, dn via Python-list wrote:
Have you figured-out a use for the @enum.member and @enum.nonmember
decorators (new in Python 3.11)?
mypy is having trouble with 3.11
ke the annotation quite long.
I also believe that str confirms to the PathLike definition. Please,
correct me if I'm wrong.
And finally - using paths in Python programs is so common, that one
would expect to have a special type (or type alias) in typing. Am I
missing something?
My apologies if I
Op 19/06/2023 om 10:43 schreef Peter Slížik via Python-list:
Hello,
what is the preferred way of annotating file system paths?
This StackOverflow answer <https://stackoverflow.com/a/58541858/1062139>
(and a few others) recommend using the
str | os.PathLike
union.
However, byte arrays
Thank you, Roel. You've answered all my questions.
> [PEP 519]: ...as that can be represented with typing.Union[str, bytes,
os.PathLike] easily enough and the hope is users
> will slowly gravitate to path objects only.
I read a lot on Python and, frankly, I don't see this happ
Op 19/06/2023 om 11:44 schreef Peter Slížik:
Thank you, Roel. You've answered all my questions.
> [PEP 519]: ...as that can be represented with typing.Union[str,
bytes, os.PathLike] easily enough and the hope is users
> will slowly gravitate to path objects only.
I read a lot on
On 6/19/2023 10:04 AM, Roel Schroeven via Python-list wrote:
Op 19/06/2023 om 11:44 schreef Peter Slížik:
Thank you, Roel. You've answered all my questions.
> [PEP 519]: ...as that can be represented with typing.Union[str,
bytes, os.PathLike] easily enough and the hope is users
>
#x27; object is not iterable'.
(Examples are taken from here
https://rollbar.com/blog/python-typeerror-nonetype-object-is-not-iterable/)
Example 1:
mylist = None
for x in mylist:
print(x) <== will raise TypeError: 'NoneType' object is not iterable
Solution: extra If statement
On Tue, 20 Jun 2023 at 02:37, Peter Bona via Python-list
wrote:
>
> Hi
>
> I am wondering if there has been any discussion why NoneType is not iterable
> My feeling is that it should be.
> Sometimes I am using API calls which return None.
> If there is a return value (wh
iously using the 'idna' wrapper as an encoding on a stream is a bit
unlikely, but nevertheless any other codec which cares about the 'final'
parameter will also have this problem.
--
https://mail.python.org/mailman/listinfo/python-list
stream.flush() doesn't mean final output.
Try stream.close()
2023年6月20日(火) 1:40 Jon Ribbens via Python-list :
> io.TextIOWrapper() wraps a binary stream so you can write text to it.
> It takes an 'encoding' parameter, which it uses to look up the codec
> in the codecs re
You can use file instead of BytesIO
2023年6月20日(火) 3:05 Peter J. Holzer via Python-list :
> On 2023-06-20 02:15:00 +0900, Inada Naoki via Python-list wrote:
> > stream.flush() doesn't mean final output.
> > Try stream.close()
>
> After close() the value isn't availa
y for now.
--
https://mail.python.org/mailman/listinfo/python-list
On Mon, Jun 19, 2023 at 12:42 PM Chris Angelico via Python-list <
[email protected]> wrote:
> On Tue, 20 Jun 2023 at 02:37, Peter Bona via Python-list
> wrote:
> >
> > Hi
> >
> > I am wondering if there has been any discussion why NoneType is not
> i
ose.
--
https://mail.python.org/mailman/listinfo/python-list
I've came across an issue with attaching a mock function to another mock
object. It looks like this might be a bug in unittest.mock, but it's
possible I'm misunderstanding or doing something wrong.
I'm currently using Python 3.8.10, which is the default installed on
Ub
I would question the wisdom of designing an API that
can return either a sequence or None. If it normally
returns a sequence, and there are no items to return,
it should return an empty sequence.
--
Greg
--
https://mail.python.org/mailman/listinfo/python-list
rather than blindly trying to iterate over the result.
--
Greg
--
https://mail.python.org/mailman/listinfo/python-list
We’re getting close! 3.12.0 beta 3 has been released:
https://www.python.org/downloads/release/python-3120b3/
*This is a beta preview of Python 3.12*
Python 3.12 is still in development. This release, 3.12.0b3, is the third
of four beta release previews of 3.12.
Beta release previews are
學習,有所安息,也歡迎分享於其他人,並幫助Hestates.org更好!
'''
return [hestates.encode()]
httpd = wsgiref.simple_server.make_server('', 8000, application)
httpd.serve_forever()
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows
Get Outlook for iOS<https:/
On Monday, June 19, 2023 at 4:11:15 PM UTC-4, Julio Di Egidio wrote:
> On Monday, 19 June 2023 at 21:58:21 UTC+2, dn wrote:
> > On 20/06/2023 06.12, Neal Becker via Python-list wrote:
>
> > > I prefer iteration of None to be an error, as in my usage it usually
> >
Op 20/06/2023 om 2:50 schreef Greg Ewing via Python-list:
I would question the wisdom of designing an API that
can return either a sequence or None. If it normally
returns a sequence, and there are no items to return,
it should return an empty sequence.
I guess it depends on the reason why there
c's and bcc's while sending mails using
> > > python
> >
> > Following (tested) snippet should help:
> >
> > -- 8< --
> > from smtplib import SMTP
> > from email.mime.image import MIMEImage
> >
On Wed, 21 Jun 2023 at 03:46, Igor Berger via Python-list
wrote:
> Most of the regulars in this list/group read the posts using the mailing list
> and
> have declared that they explicitly filter out anything posted on Google
> Groups.
>
> I've seen it multiple times with
sonam Kumari via Python-list schreef op 20/06/2023 om 9:49:
>
> I've tried the above code and the bcc address does not receive the message, on the To & CC addresses receive it.
>
> Here are snippets from my code, perhaps something will stand out to you?
>
> to = &
And of course I'm very -1 on None acquiring iteration or other features.
Fail early, fail often!
Cheers,
Cameron Simpson
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, 21 Jun 2023 at 09:59, Cameron Simpson via Python-list
wrote:
> I wasted some time the other evening on an API which returned a string
> or None. My own API, and the pain it caused tells me that that API
> design choice isn't good (it's an automatic attribute based on
On 21Jun2023 10:09, Chris Angelico wrote:
On Wed, 21 Jun 2023 at 09:59, Cameron Simpson via Python-list
wrote:
I wasted some time the other evening on an API which returned a
string
or None. My own API, and the pain it caused tells me that that API
design choice isn't good (it's an
https://mail.python.org/mailman/listinfo/python-list
Hi,
I've write a huge biotech program ( an IDE for synthetic biology ), and am
slowly outgrowing TKINTER.
Has anybody out there merged a little bit of TCL direct calls from Python 3.X
to get more freedom then TKINTER for just some Windows ?
How about bold stories of successes ( yours
Python is unable to open. Exit Code: 1
--
https://mail.python.org/mailman/listinfo/python-list
On Thu, 22 Jun 2023 at 02:54, Dan Kolis via Python-list
wrote:
>
> Why do we tolerate this spam ?
>
> this seems most likely a way to inject viruses into people's workflow.
>
> That wiped out usenet. Ahh without an explaination; ( and it woudl have to be
> a good one
On 2023-06-21, Chris Angelico via Python-list wrote:
> On Thu, 22 Jun 2023 at 02:54, Dan Kolis via Python-list
> wrote:
>>
>> Why do we tolerate this spam ?
>>
>> this seems most likely a way to inject viruses into people's workflow.
>>
>> That wiped
A little confused about that I got the email list different. Sometimes has
names and email address displayed on it, sometimes not . If I don’t follow the
new list, just type [email protected]
It's another different one with different name on it. that confuse me to know
which one i
a small project such as the code you showed, but I recommend it for
larger projects.
On Wed, Jun 21, 2023 at 7:20 PM aapost via Python-list <
[email protected]> wrote:
> On 6/21/23 09:47, Dan Kolis wrote:
> > I've write a huge biotech program ( an IDE for synthetic
Hi,
Apologies for potentially mis-using this thread. But I have been struggling
recently making exactly this leap from simple GUI examples to a more elaborate
MVVM concept. Mainly I have been struggling finding nice example python code
bases, that allow some understanding to the beginner
://mail.python.org/mailman/listinfo/python-list
it react.
Regards, thanks,
Dan
--
https://mail.python.org/mailman/listinfo/python-list
On 6/23/2023 4:16 AM, Andreas Heckel via Python-list wrote:
Hi,
Apologies for potentially mis-using this thread. But I have been struggling
recently making exactly this leap from simple GUI examples to a more elaborate
MVVM concept. Mainly I have been struggling finding nice example python
On Sat, 24 Jun 2023 at 15:57, Thomas Passin via Python-list
wrote:
> As a general comment (and I have not done anything tricky or complex
> with Tk), MVC or the other approaches in a similar vein, though good,
> can lead you into more complexity than you need, because of the extra
>
defined
--
https://mail.python.org/mailman/listinfo/python-list
I cannot get the simple program
https://docs.python.org/3/extending/embedding.html#very-high-level-embedding
to work.
My environment:
* Windows 10
* Microsoft Visual Studio 2019
* Qt Creator 10.0.1 (only as an IDE)
* Python not installed
This is what I did:
1. I downloaded https
with:
NameError: name 'self' is not defined
A quick search would return that "self"
is not available in the class body, only
in the class methods.
There are workarounds, but I guess not
simple ones, expecially for "timeout".
bye,
--
piergiorgio
--
https://mail
f: 24 Jun 2023, https://groups.google.com/g/comp.lang.python/
--
https://mail.python.org/mailman/listinfo/python-list
I study computer science in byu.edu, we choose the 3.4.3 vision. No matter
which kind of computers or windows, I needed to download it from Microsoft
store. Now I can download it directly from python.org
Get Outlook for iOS<https://aka.ms/o0ukef>
From:
_
From: Fulian Wang
Sent: Saturday, June 24, 2023 7:43:56 PM
To: Dave Ohlsson ; [email protected]
Subject: Re: unable to run the basic Embedded Python example
I study computer science in byu.edu, we choose the 3.4.3 vision. No matter
which kind of computers or windows, I needed to download i
debug\embedded_python.exe...
Could not find platform independent libraries
Python path configuration:
PYTHONHOME = (not set)
PYTHONPATH = (not set)
program name =
Python consists of the DLL that you have lined it with plus a large
number of files (standard library) which contain, e.g., the encoding
dat
new data and writes the result to the Excel file.
Finally, it displays a message that the backup was successful and closes the
information window.
I do not understand why it does not work, the new data is not displayed in
excel when I am in python tkinter, my data in python must be displayed in
On 6/26/2023 1:46 PM, small marcc via Python-list wrote:
pandas.ExcelWriter
import pandas
This code creates the path to the Excel file where the data will be written. It
checks if the file already exists, and if so, reads the existing data into a
DataFrame. Otherwise, it creates a new empty
was burning midnight oil...
TIA
/Martin
--
https://mail.python.org/mailman/listinfo/python-list
l.python.org/mailman/listinfo/python-list
in that area in general and isn't always type annotation related,
> but does this mean that even with PEP 649 that forward references will
> still be needed?
>
--
https://mail.python.org/mailman/listinfo/python-list
> but does this mean that even with PEP 649 that forward references will
> still be needed?
Yes. Both of PEP 563 and PEP 649 solves not all forward reference issues.
--
Inada Naoki
--
https://mail.python.org/mailman/listinfo/python-list
going on here?
Thanks,
Peter
--
https://mail.python.org/mailman/listinfo/python-list
On 7/3/23 1:38 PM, Peter Slížik via Python-list wrote:
Hello.
The legacy code I'm working with uses a classic diamond inheritance. Let me
call the classes *Top*, *Left*, *Right*, and *Bottom*.
This is a trivial textbook example. The classes were written in the
pre-super() era, so all of
On 7/3/23 12:01, Richard Damon via Python-list wrote:
On 7/3/23 1:38 PM, Peter Slížik via Python-list wrote:
Hello.
The legacy code I'm working with uses a classic diamond inheritance.
Let me
call the classes *Top*, *Left*, *Right*, and *Bottom*.
This is a trivial textbook example
On Tue, 4 Jul 2023 at 03:39, Peter Slížik via Python-list
wrote:
>
> Hello.
>
> The legacy code I'm working with uses a classic diamond inheritance. Let me
> call the classes *Top*, *Left*, *Right*, and *Bottom*.
> This is a trivial textbook example. The classes were wri
On 7/3/23 12:13, Mats Wichmann via Python-list wrote:
To natter on a bit, and possibly muddy the waters even further...
Now, as I see it, from the super()'s point of view, there are two
inheritance chains, one starting at Left and the other at Right. But
*Right.__init__()* is called twic
ormatting of my code examples was completely removed; sorry
for that.
Best regards,
Peter
--
https://mail.python.org/mailman/listinfo/python-list
On Tue, 4 Jul 2023 at 22:06, Peter Slížik via Python-list
wrote:
>
> >
> > Also, you might find that because of the MRO, super() in your Bottom
> > class would actually give you what you want.
> >
>
> I knew this, but I wanted to save myself some refactoring, as
This all works, but are there situations in which calling them explicitly
using a parent class name is preferred?
Best regards,
Peter
--
https://mail.python.org/mailman/listinfo/python-list
On 03/07/2023 19:39, Chris Angelico via Python-list wrote:
> On Tue, 4 Jul 2023 at 03:39, Peter Slížik via Python-list
>> The legacy code I'm working with uses a classic diamond inheritance.
> What happens when Top is initialized twice? This seems like a problem
> waiting to
On Wed, 5 Jul 2023 at 08:35, Alan Gauld via Python-list
wrote:
>
> On 03/07/2023 19:39, Chris Angelico via Python-list wrote:
> > On Tue, 4 Jul 2023 at 03:39, Peter Slížik via Python-list
> >> The legacy code I'm working with uses a classic diamond inheritance.
>
rs in your ancestry.
--
Greg
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, 5 Jul 2023 at 10:31, Greg Ewing via Python-list
wrote:
>
> On 5/07/23 10:33 am, Alan Gauld wrote:
> > (*) C++ is the odd one out because it doesn't have GC, but then
> > neither does it have an Object superclass so very often MI in C++
> > does not i
/grundsaetze-der-datenverarbeitung.php
Am 04.07.23 um 14:20 schrieb Peter Slížik via Python-list:
As a follow-up to my yesterday's question - are there any recommendations
on the usage of super()?
It's clear that super() can be used to invoke parent's:
- instance methods
-
On 05/07/2023 01:27, Chris Angelico via Python-list wrote:
>> So I'm curious about how big this "big problem with MI" is in
>
> Who said it's a big problem with MI?
I think it's a very common perception, particularly with
newer programmers who have ne
what is the purpsoe of this, why is it here ?
>
> Can it be eliminated ?
>
> Regards,
> Dan
Just call Google guys and ask, why usenet groups turned DejaNews, aquired by
Google in the past
are not protected against massive spam by a single easy script
--
https://mail.python.org/mailman/listinfo/python-list
On Fri, 7 Jul 2023 at 03:33, neopolitan via Python-list
wrote:
>
> On 6/21/23 08:37, Dan Kolis wrote:
> > Why do we tolerate this spam ?
> >
> > this seems most likely a way to inject viruses into people's workflow.
> >
> > That wiped out usenet. Ahh wit
st_squares tonight. All simple examples
I tried worked regardless of number of dimensions. I went back to
my old code and found a couple of basic mistakes. Done.
/Martin
--
https://mail.python.org/mailman/listinfo/python-list
Not much time left! I’ve released 3.12.0 beta 4. We’re now in the run-up to
rc1, so keep that in mind when you backport to the 3.12 branch.
https://www.python.org/downloads/release/python-3120b4/
*This is a beta preview of Python 3.12*
Python 3.12 is still in development. This release, 3.12.0b4
Can someone point me to the official catalog of security vulnerabilities in
Python (by which I mean cpython and the standard libraries)? I found
https://www.cvedetails.com/vulnerability-list/vendor_id-10210/product_id-18230/Python-Python.html
but that isn't maintained by python.org. I also
On Fri, Jul 14, 2023 at 1:35 PM Bob Kline wrote:
> Can someone point me to the official catalog of security vulnerabilities
> in Python
I did try entering "python security vulnerabilities" in the search box
of the python.org web site, but what I got back was "No resu
On Fri, Jul 14, 2023 at 3:02 PM Barry wrote:
> Where do you get your python from?
Directly from python.org.
> You may find that the organisation that packages python that you use has such
> a list.
That's my hope. Just haven't found it yet. :-}
--
https://mail.python.o
Bob Kline wrote at 2023-7-14 13:35 -0400:
>Can someone point me to the official catalog of security vulnerabilities in
>Python (by which I mean cpython and the standard libraries)? I found
>https://www.cvedetails.com/vulnerability-list/vendor_id-10210/product_id-18230/Python-Python.html
Hey!. i face a problem when i get setup packages by pip
when i code this : "pip install numpy" in my command line it gives me error
"ModuleNotFoundError: No module named 'distutils' "
please, i need help for solving this problem.
i have python 3.12.0
On Sat, Jul 15, 2023 at 1:02 PM Dieter Maurer wrote:
>
> I am active in the `Zope` community (a web application server
> based on Python). This community has a security mailing list
> for security related reports
> and issues public CVE (= "Commun Vulnerabilities and Exposure
str() as path:
print("string")
case bytes() as path:
print("bytes")
case os.PathLike() as path:
print("os.PathLike")
Should I branch on the individual types or is there a more elegant way?
Peter
--
https://mail.python.org/mailman/listinfo/python-list
On 7/15/23 12:56, MRAB via Python-list wrote:
On 2023-07-15 07:12, YOUSEF EZZAT via Python-list wrote:
Hey!. i face a problem when i get setup packages by pip
when i code this : "pip install numpy" in my command line it gives me
error
"ModuleNotFoundError: No module n
as possible. In the main body of your code, it
should be able to rely on all paths being Path objects.
--
regards,
kushal
--
https://mail.python.org/mailman/listinfo/python-list
metadata.
* Use version comparison logic for python_full_version.
* Fix shebang computation for source builds of Python.
* Extract tarfiles more safely by incorporating tarfile filters.
* Check for 'has_cert' attribute before using it.
* Fix #200: Improve conformance to PEP440.
* Fix #2
I am trying to set up and maintain a venv with pip-sync. On my bare
metal I have the apparmor python package installed, but it is not
installed in my venv and it's not in my requirements file. When I run
pip-sync I get:
Found existing installation: apparmor 2.13.3
ERROR: Cannot unin
ons for improvement, or any other points via this group).
Enjoy!
Cheers
Vinay Sajip
[1] https://github.com/vsajip/python-gnupg
[2] https://pypi.org/project/python-gnupg/0.5.1
[3] https://github.com/vsajip/python-gnupg/issues
[4] https://github.com/vsajip/python-gnupg/releases/
[5] https://d
On 2023-07-22 at 11:04:35 +,
Vinay Sajip via Python-list wrote:
> What Changed?
> =
What changed, indeed.
Maybe I'm old, and curmudgeonly, but it would be nice if the body of
these annoucement emails (not just this one) contained the name of the
program and a one-l
part of the third argument to types but that just doesn't feel very Python.
This is all complicated by the fact that I am trying to avoid actually
instancating any of these classes because their purpose is to be passed off
to another framework to be executed. In real life most of the classes would
sed to
check/update the newly created class.
--
https://mail.python.org/mailman/listinfo/python-list
eate the venv with --system-site-packages (at least
that's the commandline option for pip)
I only saw behaviour like this so far, when my venv was with
--system-site-packages and a package was installed by the system.
Cheers
Lars
Am 21.07.23 um 20:08 schrieb Larry Martell via Python-list:
I
D | VAT ID: DE234663798
Informationen zum Datenschutz | Information about privacy policy
https://www.solute.de/ger/datenschutz/grundsaetze-der-datenverarbeitung.php
Am 21.07.23 um 20:08 schrieb Larry Martell via Python-list:
I am trying to set up and maintain a venv with pip-sync. On my bare
metal I h
On Fri, Jul 21, 2023 at 11:08 AM Larry Martell wrote:
>
> I am trying to set up and maintain a venv with pip-sync. On my bare
> metal I have the apparmor python package installed, but it is not
> installed in my venv and it's not in my requirements file. When I run
> pip-s
> On 23 Jul 2023, at 02:12, Chris Nyland via Python-list
> wrote:
>
> So I am stuck on a problem. I have a class which I want to use to create
> another class without having to go through the boiler plate of subclassing.
> Specifically because the subclass needs to
curses down a type's inheritance tree inspecting
the original bases—I currently have to work around this behavior via hacks like
checking "__orig_bases__" in cls.__dict__ or any(types.get_original_bases(cls)
== types.get_original_bases(base) for base in cls.__bases__). (Unless I'm
missing some simpler solution.)
Is this something that could (should?) be addressed before 3.12 lands?
Thanks,
Chris Bouchard
--
https://mail.python.org/mailman/listinfo/python-list
Thanks,
Chris Bouchard
--
https://mail.python.org/mailman/listinfo/python-list
erred evaluation—
Dg
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, 26 Jul 2023 at 12:23, Dom Grigonis via Python-list
wrote:
> print(a + 1)# TypeError: unsupported operand type(s) for +: 'A'
> and 'int'
>
> Is there a way to achieve it without actually implementing operators?
> I have looked at Proxy obje
Could you give an example? Something isn’t working for me.
> On 26 Jul 2023, at 09:40, Chris Angelico via Python-list
> wrote:
>
> On Wed, 26 Jul 2023 at 12:23, Dom Grigonis via Python-list
> wrote:
>> print(a + 1)# TypeError: unsupported operand type(s) fo
want.
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
2801 - 2900 of 6648 matches
Mail list logo