[issue25107] Windows 32-bit: exe-files doesn't run

2015-09-14 Thread Sergei
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

[issue25107] Windows 32-bit: exe-files doesn't run

2015-09-14 Thread Sergei
Changes by Sergei : Added file: http://bugs.python.org/file40458/Clipboard02.jpg ___ Python tracker <http://bugs.python.org/issue25107> ___ ___ Python-bugs-list mailin

[issue25107] Windows 32-bit: exe-files doesn't run

2015-09-14 Thread Sergei
Changes by Sergei : Removed file: http://bugs.python.org/file40457/Clipboard02.jpg ___ Python tracker <http://bugs.python.org/issue25107> ___ ___ Python-bugs-list mailin

[issue45339] concurrent.future.ThreadPoolExecutor should parameterize class used for threads

2021-12-14 Thread Sergei Maertens
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

[issue46167] Parse assert (x == y, "Descriptive text") as statement params instead of a tuple

2021-12-23 Thread Sergei Lebedev
Change by Sergei Lebedev : -- nosy: +slebedev ___ Python tracker <https://bugs.python.org/issue46167> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12556] Disable size checks in mmap.mmap()

2011-07-14 Thread Sergei Lebedev
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

[issue12556] Disable size checks in mmap.mmap()

2011-07-21 Thread Sergei Lebedev
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

[issue12556] Disable size checks in mmap.mmap()

2011-07-21 Thread Sergei Lebedev
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

[issue12925] python setup.py upload_docs doesn't ask for login and password

2011-09-07 Thread Sergei Stolyarov
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

[issue43953] InitVar should not be available on a @dataclass-decorated class

2021-04-27 Thread Sergei Lebedev
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

[issue43953] InitVar should not be available on a @dataclass-decorated class

2021-04-27 Thread Sergei Lebedev
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

[issue45524] Cross-module dataclass inheritance breaks get_type_hints

2021-10-19 Thread Sergei Lebedev
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

[issue45524] Cross-module dataclass inheritance breaks get_type_hints

2021-10-22 Thread Sergei Lebedev
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

[issue45524] Cross-module dataclass inheritance breaks get_type_hints

2021-10-23 Thread Sergei Lebedev
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

[issue28254] Add C API for gc.enable, gc.disable, and gc.isenabled

2019-12-13 Thread Sergei Lebedev
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

[issue39358] test_code.CoExtra leads to double-free when ce_size >1

2020-01-16 Thread Sergei Lebedev
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

[issue39358] test_code.CoExtra leads to double-free when ce_size >1

2020-01-16 Thread Sergei Lebedev
Change by Sergei Lebedev : -- nosy: +dino.viehland ___ Python tracker <https://bugs.python.org/issue39358> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5857] Return namedtuples from tokenize token generator

2021-03-11 Thread Sergei Lebedev
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

[issue41287] __doc__ attribute is not set in property-derived classes

2020-07-12 Thread Sergei Izmailov
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

[issue41287] __doc__ attribute is not set in property-derived classes

2020-07-14 Thread Sergei Izmailov
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

[issue41848] PEG parser doesn't allow lambda in for_if_clause

2020-09-23 Thread Sergei Lebedev
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

[issue41287] __doc__ attribute is not set in property-derived classes

2020-11-09 Thread Sergei Izmailov
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

[issue35242] multiprocessing.Queue in an inconsistent state and a traceback silently suppressed if put an unpickable object and process's target function is finished

2018-11-20 Thread Sergei Zobov
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

[issue35242] multiprocessing.Queue in an inconsistent state and a traceback silently suppressed if put an unpickable object and process's target function is finished

2018-11-21 Thread Sergei Zobov
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

[issue35242] multiprocessing.Queue in an inconsistent state and a traceback silently suppressed if put an unpickable object and process's target function is finished

2018-12-03 Thread Sergei Zobov
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

[issue34592] cdll.LoadLibrary allows None as an argument

2018-09-05 Thread Sergei Lebedev
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

[issue35242] multiprocessing.Queue in an inconsistent state and a traceback silently suppressed if put an unpickable object and process's target function is finished

2018-11-13 Thread Sergei Zobov
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,

[issue35242] multiprocessing.Queue in an inconsistent state and a traceback silently suppressed if put an unpickable object and process's target function is finished

2018-11-14 Thread Sergei Zobov
Change by Sergei Zobov : -- components: +Library (Lib) ___ Python tracker <https://bugs.python.org/issue35242> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35242] multiprocessing.Queue in an inconsistent state and a traceback silently suppressed if put an unpickable object and process's target function is finished

2018-11-15 Thread Sergei Zobov
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

[issue35242] multiprocessing.Queue in an inconsistent state and a traceback silently suppressed if put an unpickable object and process's target function is finished

2018-11-15 Thread Sergei Zobov
Change by Sergei Zobov : -- nosy: +pitrou ___ Python tracker <https://bugs.python.org/issue35242> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15115] Duplicated Content-Transfer-Encoding header when applying email.encoders

2012-06-20 Thread Sergei Stolyarov
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

[issue25500] _find_and_load_unlocked doesn't always use __import__

2015-10-28 Thread Sergei Lebedev
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

[issue25955] email.utils.formataddr does not support RFC 6532

2015-12-26 Thread Sergei Maertens
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

[issue25955] email.utils.formataddr does not support RFC 6532

2015-12-26 Thread Sergei Maertens
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

[issue8844] Condition.wait() doesn't raise KeyboardInterrupt

2016-02-23 Thread Sergei Lebedev
Sergei Lebedev added the comment: Is it possible to backport this patch to 2.7? -- nosy: +superbobry ___ Python tracker <http://bugs.python.org/issue8844> ___ ___