New submission from Sergei:
Can't run IDLE or python command line on Windows XP 32-bit after installation.
--
components: IDLE, Interpreter Core
files: Clipboard02.jpg
messages: 250641
nosy: Sergio
priority: normal
severity: normal
status: open
title: Windows 32-bit: exe-files do
Changes by Sergei :
Added file: http://bugs.python.org/file40458/Clipboard02.jpg
___
Python tracker
<http://bugs.python.org/issue25107>
___
___
Python-bugs-list mailin
Changes by Sergei :
Removed file: http://bugs.python.org/file40457/Clipboard02.jpg
___
Python tracker
<http://bugs.python.org/issue25107>
___
___
Python-bugs-list mailin
Sergei Maertens added the comment:
I was looking for some way to be able to add a thread finalizer, a piece of
code to be called when the thread pool shuts down and all threads need cleaning
up. Glad I came across this issue, since the example of using a Thread subclass
with a custom run
Change by Sergei Lebedev :
--
nosy: +slebedev
___
Python tracker
<https://bugs.python.org/issue46167>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Sergei Lebedev :
Current `mmap` implementation raises a ValueError if a sum of offset and length
exceeds file size, as reported by `fstat`. While perfectly valid for most
use-cases, it doesn't work for "special" files, for example:
>>> with open(&q
Sergei Lebedev added the comment:
> Do you have an example of a /proc entry with st_size == 0 that can be mmapped
> (mapping /proc/sys/debug/exception-trace fails with EACCESS)?
Yes, I've ran into the issue, while trying to mmap /proc/xen/xsd_kva, which is
an
interface t
Sergei Lebedev added the comment:
> Passing mmap(2) a 0 length doesn't make much sense anyway - for
example, Linux returns EINVAL.
Yup, but passing mmap(2) a zero-sized file and a non-zero length works just
fine.
> Why do you want a mmap? Why not using a file?
Because Xen requires
New submission from Sergei Stolyarov :
python setup.py upload_docs doesn't ask for login and password instead it
prints
Upload failed (401): You must be identified to edit package information
Works only with valid ~/.pypirc
--
assignee: tarek
components: Distutils
messages: 1
New submission from Sergei Lebedev :
Motivating example:
>>> @dataclass
... class A:
... x: InitVar[int] = 0
... y: int = 1
...
>>> a = A()
>>> a.x
0
>>> a.y
1
PEP-557 does not specify if fields annotated with InitVar[...] are available on
the result
Sergei Lebedev added the comment:
I understand that this is a side-effect of having a default value, but I was
hoping we could delattr InitVar's in @dataclass.
I'm not aware of this causing problems, but it does feel a bit unsatisfying
that InitVar's with defaults are ke
Sergei Lebedev added the comment:
I think the example has a minor typo.
The crash is reproducible on 3.9 if the last line in bar.py is
typing.get_type_hints(B.__init__)
instead of
typing.get_type_hints(B)
--
___
Python tracker
<ht
Sergei Lebedev added the comment:
Is it worth also addressing the case where a @dataclass/typing.TypeDict class
is defined within a function?
```
from __future__ import annotations
import
Sergei Lebedev added the comment:
Is it worth filing a separate issue for locals()?
In my experience local classes are less common than cross-module inheritance,
so I suspect that the chances of someone accidentally hitting lack of locals()
forwarding are quite low. However, given how
Sergei Lebedev added the comment:
I know this patch has already been rejected, but I wanted to give another
potential use-case for accessing GC status from C: JIT compilers.
Imagine a JIT compiler which uses alternative storage for instance attributes.
In order to maintain correctness, it
New submission from Sergei Lebedev :
tl;dr Passing a Python function as a freefunc to _PyEval_RequestCodeExtraIndex
leads to double-free. In general, I think that freefunc should not be allowed
to call other Python functions.
---
test_code.CoExtra registers a new co_extra slot with a ctypes
Change by Sergei Lebedev :
--
nosy: +dino.viehland
___
Python tracker
<https://bugs.python.org/issue39358>
___
___
Python-bugs-list mailing list
Unsubscribe:
Sergei Lebedev added the comment:
> I strongly prefer that there not be inner named tuples.
Hi Raymond, do you still strongly prefer (row, col) to remain unnamed? If so,
could you comment on what makes you prefer that apart from (row, col) being
more common than (col, row)?
Are there
New submission from Sergei Izmailov :
MRE:
class Property(property):
pass
print(Property(None, None, None, "hello").__doc__)
Expected:
hello
Actual:
None
--
messages: 373571
nosy: Sergei Izmailov
priority: normal
severity: normal
status: open
title: __doc__ attrib
Sergei Izmailov added the comment:
class Property(property):
'custom docstring'
print(Property(None, None, None, "hello").__doc__)
This snippet is expected to print "hello" as well (at least it's what comment
in cpython implementation suggests)
htt
New submission from Sergei Lebedev :
Reproducer:
[x for x in [] if lambda: x]
This parses fine in 3.8, but doesn't parse in 3.9 because the grammar expects a
disjunction after if in for_if_clause [*]. While this change has zero practical
significance, I think it might be useful to mai
Change by Sergei Izmailov :
--
keywords: +patch
pull_requests: +22103
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/23205
___
Python tracker
<https://bugs.python.org/issu
Sergei Zobov added the comment:
Yes, I've missed that the daemonic thread won't work if the parent process
finished. The similarities between multiprocessing and threading modules are
confusing a bit.
Anyway, could I make a patch to fix the problem with the silently ignored
exc
Sergei Zobov added the comment:
Thanks for answer, Antoine!
I see what you mean, but I'm not sure that it's so extreme corner case. We are
speaking about Python and it's easy to create an put an unpickable object into
queue.
I apologize for the persistence, but I just want
Sergei Zobov added the comment:
So, should I just close this issue in case we've decided it's not a big problem?
--
___
Python tracker
<https://bugs.python.o
New submission from Sergei Lebedev :
LoadLibrary in Python 2.7 through 3.7 accepts None as an argument. I wonder if
this has been allowed for a reason? If not, it should probably be changed to
raise a TypeError instead.
>>> ctypes.cdll.LoadLibrary(None)
Interestingly, on P
New submission from Sergei Zobov :
In case if the process target function put something unpickable in the
`multiprocessing.Queue` and finish before `ForkingPickler`'s exception is
handled we get two weird situations:
* Internal queue semaphore stay acquired and never will be released,
Change by Sergei Zobov :
--
components: +Library (Lib)
___
Python tracker
<https://bugs.python.org/issue35242>
___
___
Python-bugs-list mailing list
Unsubscribe:
Sergei Zobov added the comment:
I've decided to make the test more clean, so I added `time.sleep` and now we
can be sure that here is enough time for queue's underlying process to
synchronize all variables:
https://github.com/szobov/cpython/compare/master...regression-test-on-multi
Change by Sergei Zobov :
--
nosy: +pitrou
___
Python tracker
<https://bugs.python.org/issue35242>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Sergei Stolyarov :
Here is the test script:
--
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from email import encoders
msg = MIMEMultipart()
msg['Subject'] = 'Bug test'
text_part = MIMEText('act
New submission from Sergei Lebedev:
According to the current import system documentation
> When calling ``__import__()`` as part of an import statement, the import
> system first checks the module global namespace for a function by that name.
> If it is not found, then the standar
New submission from Sergei Maertens:
The function `formataddr` in stdlib `email.utils` does not allow unicode e-mail
addresses where the first part (before the @) is unicode. Python 3.5 promises
support for SMTPUTF8 through `EmailPoliy.utf8`
(https://docs.python.org/3/whatsnew/3.5.html#email
Sergei Maertens added the comment:
I could probably come up with a patch, but the reason I ran into this is
because it's used in the core of Django. I already submitted a bug with Django,
and with the legaciness of this function it feels like Django should move to
the new API or implemen
Sergei Lebedev added the comment:
Is it possible to backport this patch to 2.7?
--
nosy: +superbobry
___
Python tracker
<http://bugs.python.org/issue8844>
___
___
35 matches
Mail list logo