New submission from July Tikhonov:
A note just below object.__setstate__() documentation
https://docs.python.org/3.6/library/pickle.html#object.__setstate__
says that
"""
… the type should implement __getnewargs__() or __getnewargs_ex__() to
establish such an invariant; oth
New submission from July Tikhonov:
Documentation of Template says:
$identifier names a substitution placeholder matching a mapping key of
identifier. By default, identifier must spell a Python identifier. The
first non-identifier character after the $ character terminates this
placeholder
New submission from July Tikhonov:
https://docs.python.org/3/reference/datamodel.html#the-standard-type-hierarchy
There is a table of special attributes of user-defined functions. The
__name__ attribute name is a link, but it leads to something quite irrelevant:
the description of __name__
New submission from July Tikhonov:
In documentation of zipfile.ZipFile.write() there is following notice:
There is no official file name encoding for ZIP files. If you have unicode
file names, you must convert them to byte strings in your desired encoding
before passing them to write().
I
Changes by July Tikhonov july.t...@gmail.com:
--
components: +Library (Lib)
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24110
___
___
Python
New submission from July Tikhonov:
Documentation of os.fstat()
https://docs.python.org/3/library/os.html#os.fstat
has a See also: section, which features a wrong link. The same with
os.lstat().
Some of this problem was fixed (among other things) in issue 10960. But since
then, two more wrong
Changes by July Tikhonov july.t...@gmail.com:
--
nosy: +july
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19717
___
___
Python-bugs-list mailing
July Tikhonov added the comment:
Proposed patch attached.
--
Added file: http://bugs.python.org/file34100/pathlib-with_suffix.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20639
New submission from July Tikhonov:
The changeset ef2b2ddd27c8 restricted the argument of Path.with_suffix() too
much, and caused some strange behavior.
Case 1: removing suffix completely is disallowed now.
The following code worked before the fix:
pathlib.PurePath('a', 'b.c').with_suffix
New submission from July Tikhonov:
This is not a real-world example, but it brokes some invariant (part of path
must not contain separator):
pathlib.PurePath('/a/b.c.d').with_suffix('///')
PurePosixPath('/a/b.c///')
pathlib.PurePath('/a/b.c.d').with_suffix('/not/split/into/parts').parts
Changes by July Tikhonov july.t...@gmail.com:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20111
___
___
Python-bugs-list
New submission from July Tikhonov:
According to documentation of json.dump(), concerning its 'default' option:
default(obj) is a function that should return a serializable version of obj or
raise TypeError. The default simply raises TypeError.
But this function is actually never applied
July Tikhonov added the comment:
Oops, my patch disables 'skipkeys' argument of dump. Another version attached.
--
Added file: http://bugs.python.org/file31437/json-default-dict-keys.diff
___
Python tracker rep...@bugs.python.org
http
Changes by July Tikhonov july.t...@gmail.com:
Removed file: http://bugs.python.org/file31436/json-default-dict-keys.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18820
July Tikhonov added the comment:
Proposed tests attached.
--
Added file: http://bugs.python.org/file31450/json-default-tests.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18820
New submission from July Tikhonov:
library/io.rst
io.open() signature lacks 'opener' argument.
library/importlib.rst
concreate - concrete
--
assignee: docs@python
components: Documentation
files: docs-misprint.diff
keywords: patch
messages: 182219
nosy: docs@python, july
priority
New submission from July Tikhonov july.t...@gmail.com:
set().union(*(None[k] for k in range(5)))
Traceback (most recent call last):
File stdin, line 1, in module
TypeError: union() argument after * must be a sequence, not generator
Clearly, exception in not relevant, since next line works
Changes by July Tikhonov july.t...@gmail.com:
Added file:
http://bugs.python.org/file24359/typeerror-replaced-in-stararg-test.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13904
New submission from July Tikhonov july.t...@gmail.com:
1) Paragraph describing range() comparison links to issue13021.
This issue seems unrelated. It should be issue13201.
2) Paragraph describing of unicode_internal codec, mentions
(utf-16-le or utf-16-le)
and
(utf-32-le or utf-32-le
New submission from July Tikhonov july.t...@gmail.com:
ChainMap is the only item from collections module, that is described in docs,
but is not included in collections.__all__
--
components: Library (Lib)
files: chainmap_in___all__.diff
keywords: patch
messages: 143862
nosy: july
July Tikhonov july.t...@gmail.com added the comment:
The very same example (with the same error) can be found in
Doc/library/nntplib.rst
--
resolution: fixed -
status: closed - open
Added file: http://bugs.python.org/file22758/library.nntplib.rst.diff
New submission from July Tikhonov july.t...@gmail.com:
from nntplib import NNTP
with nntplib.NNTP('news.gmane.org') as n:
will not work. It should be
import nntplib
with nntplib.NNTP('news.gmane.org') as n:
or
from nntplib import NNTP
with NNTP('news.gmane.org') as n
July Tikhonov july.t...@gmail.com added the comment:
There is an XXX just before the definition of ast_error. Wouldn't it be
useful?
The idea is to merge ast_error() and ast_error_finish().
This requires redefinition of most functions in ast.c, adding const char
*filename to their parameters
Changes by July Tikhonov july.t...@gmail.com:
Removed file: http://bugs.python.org/file21061/unnamed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11441
New submission from July Tikhonov july.t...@gmail.com:
Normal:
compile('1 = 1', 'string', 'exec')
Traceback (most recent call last):
File stdin, line 1, in module
File string, line 1
SyntaxError: can't assign to literal
SystemError is raised instead of SyntaxError:
try: abcde
... except
New submission from July Tikhonov july.t...@gmail.com:
list(accumulate(8, 2, 50))
fails. Correct version is
list(accumulate([8, 2, 50]))
--
assignee: docs@python
components: Documentation
files: whatsnew.3.2.accumulate.example.diff
keywords: patch
messages: 128529
nosy: docs@python
New submission from July Tikhonov july.t...@gmail.com:
july@julynote:~/test ls -R
.:
c.py subdir
./subdir:
a.py b.py
july@julynote:~/test python3
Python 3.2rc2+ (py3k, Feb 6 2011, 13:06:04)
[GCC 4.5.0 20100604 [gcc-4_5-branch revision 160292]] on linux2
Type help, copyright, credits
July Tikhonov july.t...@gmail.com added the comment:
Patch added.
--
Added file:
http://bugs.python.org/file20697/compileall.compile_dir.optimize.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11132
July Tikhonov july.t...@gmail.com added the comment:
I think, since curses.wrapper is actually a function (and module named
curses.wrapper cannot be trivially accessed), we can just modify docs,
stripping out any mentions of module, instead documenting the function.
We can leave the module
New submission from July Tikhonov july.t...@gmail.com:
wrapper() code in Lib/curses/wrapper.py
has an unnesesary line:
res = None
This variable is not used anywhere else in wrapper().
Inspecting the history of trunk, we can see that it was used used as a result
of applying func
New submission from July Tikhonov july.t...@gmail.com:
Run test.py (below) in terminal, and interrupt it with Ctrl-C.
Result: terminal settings are not restored (checked with linux console and
xterm, with Python 2.7 and 3.2).
# test.py
# Broke it with KeyboardInterrupt
import curses
def main
July Tikhonov july.t...@gmail.com added the comment:
To Evan Klitzke (eklitzke):
I'm also interested in seeing this fixed. In the current behavior,
the following code doesn't work:
start code
from functools import wraps
def magic(func):
@wraps(func)
def even_more_magic(*args
July Tikhonov july.t...@gmail.com added the comment:
Patch updated: bound and unbound methods, user-defined callable, partial object
included in test.
By the way,
[id(abs.__doc__) for i in range(5)]
[140714383081744, 140714383081744, 140714383081744, 140714383081744,
140714383081744]
[id(s
July Tikhonov july.t...@gmail.com added the comment:
Not only str, but also bytearray, unicode, and bytes.
--
keywords: +patch
nosy: +july
Added file: http://bugs.python.org/file15998/rpartition-docstrings-trunk.diff
___
Python tracker rep
Changes by July Tikhonov july.t...@gmail.com:
Added file: http://bugs.python.org/file15999/rpartition-docstrings-py3k.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7775
New submission from July Tikhonov july.t...@gmail.com:
Errors in command line examples.
One missed space (only in py3k version), and one not so obvious misprint (in
both py3k and trunk).
--
assignee: georg.brandl
components: Documentation
files: unittest-doc-py3k.diff
keywords: patch
Changes by July Tikhonov july.t...@gmail.com:
Added file: http://bugs.python.org/file15981/unittest-doc-trunk.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7765
New submission from July Tikhonov july.t...@gmail.com:
It mentions Return value: New reference., but I have no idea of what it can
mean in this function, since the return type is 'int'.
http://docs.python.org/dev/py3k/c-api/unicode.html#PyUnicode_Tailmatch
--
assignee: georg.brandl
New submission from July Tikhonov july.t...@gmail.com:
It mentions Return value: New reference., but I have no idea of what it can
mean in this function, since the return type is 'int'.
http://docs.python.org/dev/py3k/c-api/unicode.html#PyUnicode_Tailmatch
--
assignee: georg.brandl
July Tikhonov july.t...@gmail.com added the comment:
I don't see anything wrong in this fact..
All what's new pages since python 2.0 are keeped in documentation, not only
the last one.
--
nosy: +july
___
Python tracker rep...@bugs.python.org
http
New submission from July Tikhonov july.t...@gmail.com:
'python.vim' syntax rules script was created for python 2
(automatically, using script 'vim_python.py').
This patch updates it to run by python 3.
Some bugs with highlighting strings and numbers are resolved, too.
Also, 'syntax_test.py
July Tikhonov july.t...@gmail.com added the comment:
Also, I found 4 similar problems in this text (seach 'usage:' to find
them).
These are resolved in this patch.
--
keywords: +patch
nosy: +July
Added file: http://bugs.python.org/file15720/doc-library-optparse.diff
July Tikhonov july.t...@gmail.com added the comment:
Reuploaded (some syntax groups fixed).
--
Added file: http://bugs.python.org/file15721/misc-vim-syntax.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7620
Changes by July Tikhonov july.t...@gmail.com:
Removed file: http://bugs.python.org/file15719/vimsyntax.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7620
New submission from July Tikhonov july.t...@gmail.com:
As I can see, 'exceptions' module does not exist in py3k.
But it is mentioned in documentation
http://docs.python.org/dev/py3k/library/exceptions.html
The exceptions are defined in the module exceptions. This module never
needs
July Tikhonov july.t...@gmail.com added the comment:
No, my program failed on this. It was not a big problem to manage this,
but I think it is a bug. And it isn't documented (or I can't find it).
Other built-in types have no such problem. Is there something special
with NoneType
New submission from July Tikhonov july.t...@gmail.com:
Python 3.2a0 (py3k:73749M, Jul 1 2009, 23:17:59)
[GCC 4.3.2 [gcc-4_3-branch revision 141291]] on linux2
Type help, copyright, credits or license for more information.
import pickle
[40072 refs]
pickle.dumps(type(None))
Traceback (most
47 matches
Mail list logo