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
---
Change by Maxim :
--
keywords: +patch
pull_requests: +12400
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue36371>
___
___
Python-
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;
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
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
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
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
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
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.
Changes by Maxim Bublis :
Removed file: http://bugs.python.org/file22825/inspect.patch
___
Python tracker
<http://bugs.python.org/issue8639>
___
___
Python-bugs-list m
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
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
Maxim Koltsov added the comment:
Maybe add some words about local timezone?
--
___
Python tracker
<http://bugs.python.org/issue12758>
___
___
Python-bugs-list m
Maxim Koltsov added the comment:
Seems OK to me.
--
___
Python tracker
<http://bugs.python.org/issue12758>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Change by Maxim Egorushkin :
--
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue44380>
___
___
Python-bugs-list mailing list
Unsubscrib
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')]
?
--
___
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
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
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
Maxim Burov added the comment:
CLA signed now and PR is ready :)
--
___
Python tracker
<https://bugs.python.org/issue23706>
___
___
Python-bugs-list mailin
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)
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
Change by Maxim Barabanov :
--
keywords: +patch
pull_requests: +5125
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue32634>
___
___
Py
Change by Maxim Barabanov :
--
pull_requests: +5126
___
Python tracker
<https://bugs.python.org/issue3264>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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)
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
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
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
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
33 matches
Mail list logo