[issue36371] FancyGetopt.generate_help crashes with TypeError

2019-03-19 Thread Maxim
New submission from Maxim : Hi! FancyGetopt.generate_help crashes if help text in option_table is None: instance = FancyGetopt([('long', 'l', None)]) help_text = instance.generate_help() TypeError Traceback (most recent call last) in ---

[issue36371] FancyGetopt.generate_help crashes with TypeError

2019-03-19 Thread Maxim
Change by Maxim : -- keywords: +patch pull_requests: +12400 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36371> ___ ___ Python-

[issue13148] simple bug in mmap size check

2011-10-10 Thread Maxim Yanchenko
New submission from Maxim Yanchenko : The condition contradicts the exception text: if (offset >= st.st_size) { PyErr_SetString(PyExc_ValueError, "mmap offset is greater than file size"); return NULL;

[issue13148] simple bug in mmap size check

2011-10-10 Thread Maxim Yanchenko
Maxim Yanchenko added the comment: First of all, it doesn't fail (at least on Linux), I tested it before posting. And the latest, it's not like I'm just stalking around and reading Python sources for fun. It's a real and pretty valid case, I hit it while upgrading ou

[issue13148] simple bug in mmap size check

2011-10-10 Thread Maxim Yanchenko
Maxim Yanchenko added the comment: Well, "n+1" is clearly outside the file, wile "n" is within and therefore valid. Also, if your position is to forbid zero-size mmapping completely, then the checks inside "if (map_size == 0) {" don't make any sense, especia

[issue13148] simple bug in mmap size check

2011-10-10 Thread Maxim Yanchenko
Maxim Yanchenko added the comment: tried on newer Linux - crashes with my patch. So I'll be thinking about a workaround, probably a fix for NumPy to avoid using mmap in such cases but still provide uniform interface to avoid making special conditional handling in all my scripts. Ther

[issue13148] simple bug in mmap size check

2011-10-11 Thread Maxim Yanchenko
Maxim Yanchenko added the comment: > You got lucky, since the offset must be a multiple of the page size. That's why our header is exactly the page size :) > Here's what POSIX says Then it's just another discrepancy between POSIX and Linux, as I received ENOMEM instea

[issue8639] Allow callable objects in inspect.getfullargspec

2011-08-01 Thread Maxim Bublis
Maxim Bublis added the comment: I've ran into the same problem with getfullargspec not supporting callables, so I've written patch with docs and tests, that adds support for any Python callable. As a result of getfullargspec's implementation change, getargspec functio

[issue8639] Allow callable objects in inspect.getfullargspec

2011-08-01 Thread Maxim Bublis
Maxim Bublis added the comment: Agree, support for __new__ or __init__ methods would add some ambiquity, so i've decided to drop __init__ support from patch. Patch has been reuploaded. -- Added file: http://bugs.python.org/file22826/inspect2.

[issue8639] Allow callable objects in inspect.getfullargspec

2011-08-02 Thread Maxim Bublis
Changes by Maxim Bublis : Removed file: http://bugs.python.org/file22825/inspect.patch ___ Python tracker <http://bugs.python.org/issue8639> ___ ___ Python-bugs-list m

[issue12758] time.time() returns local time instead of UTC

2011-08-16 Thread Maxim Koltsov
New submission from Maxim Koltsov : Python docs (http://docs.python.org/library/time.html#time.time) say that time.time() function should return UTC timestamp, but actually i get local one: >>> time.mktime(time.gmtime()), time.time(), time.mktime(time.localtime()) (131

[issue12758] time.time() returns local time instead of UTC

2011-08-16 Thread Maxim Koltsov
Maxim Koltsov added the comment: Then docs must be fixed. By the way, help(time.time) correctly says about localtime. -- ___ Python tracker <http://bugs.python.org/issue12

[issue12758] time.time() returns local time instead of UTC

2011-08-16 Thread Maxim Koltsov
Maxim Koltsov added the comment: Maybe add some words about local timezone? -- ___ Python tracker <http://bugs.python.org/issue12758> ___ ___ Python-bugs-list m

[issue12758] time.time() returns local time instead of UTC

2011-08-16 Thread Maxim Koltsov
Maxim Koltsov added the comment: Seems OK to me. -- ___ Python tracker <http://bugs.python.org/issue12758> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44380] glob.glob handling of * (asterisk) wildcard is broken

2021-06-10 Thread Maxim Egorushkin
New submission from Maxim Egorushkin : Problem: `glob.glob` documentation states that "pathname ... can contain shell-style wildcards." However, it stops short of saying that shell-style wildcards are handled the same way as in a POSIX-compliant/friendly shell. https://pubs.ope

[issue44380] glob.glob handling of * (asterisk) wildcard is broken

2021-06-10 Thread Maxim Egorushkin
Change by Maxim Egorushkin : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue44380> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue44380] glob.glob handling of * (asterisk) wildcard is broken

2021-06-10 Thread Maxim Egorushkin
Maxim Egorushkin added the comment: I may be naive, but why then: $ python3 -c 'from pathlib import Path; print(list(Path(".").glob("*.bash_profile")))' Outputs: [PosixPath('.bash_profile')] ? -- ___

[issue44380] glob.glob handling of * (asterisk) wildcard is broken

2021-06-10 Thread Maxim Egorushkin
Maxim Egorushkin added the comment: > glob.glob does not provide something equivalent to a DOTALL flag I see now, said a blind man. -- ___ Python tracker <https://bugs.python.org/issu

[issue23706] pathlib.Path.write_text should include a newline argument

2020-09-26 Thread Maxim Burov
Change by Maxim Burov : -- keywords: +patch nosy: +maksvenberv nosy_count: 5.0 -> 6.0 pull_requests: +21458 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/22420 ___ Python tracker <https://bugs.p

[issue23706] pathlib.Path.write_text should include a newline argument

2020-09-27 Thread Maxim Burov
Maxim Burov added the comment: For the newline parameter, what is the expected behaviour? To work as newline from io.open() which supports only so called "legal" newlines which are: None, '', '\n', '\r', and '\r\n', or to allow users use

[issue23706] pathlib.Path.write_text should include a newline argument

2020-09-30 Thread Maxim Burov
Maxim Burov added the comment: CLA signed now and PR is ready :) -- ___ Python tracker <https://bugs.python.org/issue23706> ___ ___ Python-bugs-list mailin

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2012-01-20 Thread Maxim Yegorushkin
Maxim Yegorushkin added the comment: I am still having this issue with Python-2.7.2 (which includes the patch) and openssl-devel-1.0.0e-1.fc14.x86_64: File "./download.py", line 195, in download_file ftp.retrbinary("retr " + filename, lambda data: file.write(data)

[issue32634] Message parsing fails where it has incompele headers

2018-01-23 Thread Maxim Barabanov
New submission from Maxim Barabanov : If email message dont have a content-transfer-encoding or content-type header, function write in generator.py crashes -- components: email messages: 310485 nosy: barry, r.david.murray, reb00ter priority: normal severity: normal status: open title

[issue32634] Message parsing fails where it has incompele headers

2018-01-23 Thread Maxim Barabanov
Change by Maxim Barabanov : -- keywords: +patch pull_requests: +5125 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32634> ___ ___ Py

[issue3264] Use -lcrypto instead of -lcrypt on Solaris 2.6 when available

2018-01-23 Thread Maxim Barabanov
Change by Maxim Barabanov : -- pull_requests: +5126 ___ Python tracker <https://bugs.python.org/issue3264> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33170] New type based on int() created with typing.NewType is not consistent

2018-03-28 Thread Maxim Avanov
New submission from Maxim Avanov : >From my understanding of the docs section on new types, >https://docs.python.org/3/library/typing.html#newtype the new type based on int() should just pass the value into the base constructor. However, ``` PercentDiscount = NewType('PercentDis

[issue33170] New type based on int() created with typing.NewType is not consistent

2018-03-28 Thread Maxim Avanov
Maxim Avanov added the comment: Logically, I would expect it to behave similarly to ``` >>> class PercentDiscount(int): pass >>> PercentDiscount('50') == PercentDiscount(50) True ``` -- ___ Python tracker <htt

[issue33170] New type based on int() created with typing.NewType is not consistent

2018-03-28 Thread Maxim Avanov
Maxim Avanov added the comment: Ok, after further reading, I see that NewType creates an identity stub. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue8617] Better document user site-packages in site module doc

2012-05-09 Thread Maxim Doucet
Maxim Doucet added the comment: Shouldn't there be an update of the 2.6 documentation too? After your patch, the 2.7 reflects the existence of the "--user" option (see http://docs.python.org/release/2.7.3/install/index.html#alternate-installation-the-user-scheme)

[issue8617] Better document user site-packages in site module doc

2012-05-09 Thread Maxim Doucet
Maxim Doucet added the comment: Fair enough, thank you for the information. As a side note, my original question was in fact more suited for issue10745 -- ___ Python tracker <http://bugs.python.org/issue8

[issue27503] support RUSAGE_THREAD as a constant in the resource module

2016-07-12 Thread Maxim Sobolev
New submission from Maxim Sobolev: This is duplicate of the #10440, which has been added in 2010 into 3.x but never merged. -- files: patch-Modules_resource.c messages: 270275 nosy: Maxim Sobolev priority: normal severity: normal status: open title: support RUSAGE_THREAD as a constant

[issue7352] pythonx.y-config --ldflags out of /usr and missing -L

2015-10-07 Thread Maxim Egorushkin
Maxim Egorushkin added the comment: I encountered this issue when compiling gdb against my own build of Python 2.7 in a non-standard location. gdb could not locate libpython2.7.so. The solution is to configure Python with LINKFORSHARED variable which contains additional linker flags required

[issue23711] ConfigParser module blames on section less ini file

2015-03-19 Thread Maxim Kot
New submission from Maxim Kot: Wikipedia (http://en.wikipedia.org/wiki/INI_file#Sections) says: >Keys may (but need not) be grouped into arbitrarily named sections But when it's trying to parse file without section header - "MissingSectionHeaderError: File contains no section he