[issue27635] pickle documentation says that unpickling may not call __new__

2016-07-27 Thread July Tikhonov
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

[issue24351] string.Template documentation incorrectly references identifiers

2015-06-01 Thread July Tikhonov
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

[issue24314] irrelevant cross-link in documentation of user-defined functions

2015-05-28 Thread July Tikhonov
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__

[issue24110] zipfile.ZipFile.write() does not accept bytes arcname

2015-05-01 Thread July Tikhonov
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

[issue24110] zipfile.ZipFile.write() does not accept bytes arcname

2015-05-01 Thread July Tikhonov
Changes by July Tikhonov july.t...@gmail.com: -- components: +Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24110 ___ ___ Python

[issue24062] links to os.stat() in documentation lead to stat module instead

2015-04-26 Thread July Tikhonov
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

[issue19717] resolve() fails when the path doesn't exist

2014-09-25 Thread July Tikhonov
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

[issue20639] pathlib.PurePath.with_suffix() does not allow removing the suffix

2014-02-16 Thread July Tikhonov
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

[issue20639] pathlib.PurePath.with_suffix() does not allow removing the suffix

2014-02-16 Thread July Tikhonov
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

[issue20111] pathlib.PurePath.with_suffix() allows creation of otherwise impossible paths

2014-01-02 Thread July Tikhonov
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

[issue20111] pathlib.PurePath.with_suffix() allows creation of otherwise impossible paths

2014-01-02 Thread July Tikhonov
Changes by July Tikhonov july.t...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20111 ___ ___ Python-bugs-list

[issue18820] json.dump() ignores its 'default' option when serializing dictionary keys

2013-08-23 Thread July Tikhonov
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

[issue18820] json.dump() ignores its 'default' option when serializing dictionary keys

2013-08-23 Thread July Tikhonov
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

[issue18820] json.dump() ignores its 'default' option when serializing dictionary keys

2013-08-23 Thread July Tikhonov
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

[issue18820] json.dump() ignores its 'default' option when serializing dictionary keys

2013-08-23 Thread July Tikhonov
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

[issue17215] documentation misprints

2013-02-16 Thread July Tikhonov
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

[issue13904] Generator as *args: TypeError replaced

2012-01-29 Thread July Tikhonov
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

[issue13904] Generator as *args: TypeError replaced

2012-01-29 Thread July Tikhonov
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

[issue13835] whatsnew/3.3 misspelling/mislink

2012-01-22 Thread July Tikhonov
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

[issue12959] Add 'ChainMap' to collections.__all__

2011-09-11 Thread July Tikhonov
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

[issue12547] whatsnew/3.3: error in example about nntplib

2011-07-25 Thread July Tikhonov
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

[issue12547] whatsnew/3.3: error in example about nntplib

2011-07-13 Thread July Tikhonov
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

[issue11441] compile() raises SystemError if called from except clause

2011-03-09 Thread July Tikhonov
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

[issue11441] compile() raises SystemError if called from except clause

2011-03-09 Thread July Tikhonov
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

[issue11441] compile() raises SystemError if called from except clause

2011-03-08 Thread July Tikhonov
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

[issue11208] example misprint in documentation whatsnew/3.2

2011-02-13 Thread July Tikhonov
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

[issue11132] compileall.compile_dir loses 'optimize' parameter in recursion.

2011-02-06 Thread July Tikhonov
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

[issue11132] compileall.compile_dir loses 'optimize' parameter in recursion.

2011-02-06 Thread July Tikhonov
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

[issue6771] Curses.wrapper: documentation/implementation error

2010-05-31 Thread July Tikhonov
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

[issue8861] curses.wrapper : unnessesary code

2010-05-31 Thread July Tikhonov
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

[issue8862] curses.wrapper does not restore terminal if curses.getkey() gets KeyboardInterrupt

2010-05-31 Thread July Tikhonov
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

[issue3445] Ignore missing attributes in functools.update_wrapper

2010-05-03 Thread July Tikhonov
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

[issue3445] Ignore missing attributes in functools.update_wrapper

2010-05-02 Thread July Tikhonov
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

[issue7775] str.rpartition(sep) - (tail, sep, head)

2010-01-25 Thread July Tikhonov
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

[issue7775] str.rpartition(sep) - (tail, sep, head)

2010-01-25 Thread July Tikhonov
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

[issue7765] 'unittest' documentation misprints

2010-01-23 Thread July Tikhonov
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

[issue7765] 'unittest' documentation misprints

2010-01-23 Thread July Tikhonov
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

[issue7762] (C API) PyUnicode_Tailmatch documentation

2010-01-22 Thread July Tikhonov
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

[issue7763] (C API) PyUnicode_Tailmatch documentation

2010-01-22 Thread July Tikhonov
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

[issue7683] Wrong link in HTML documentation

2010-01-12 Thread July Tikhonov
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

[issue7620] Vim syntax highlight

2010-01-02 Thread July Tikhonov
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

[issue7618] optparse library documentation has an insignificant formatting issue

2010-01-02 Thread July Tikhonov
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

[issue7620] Vim syntax highlight

2010-01-02 Thread July Tikhonov
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

[issue7620] Vim syntax highlight

2010-01-02 Thread July Tikhonov
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

[issue7590] 'exceptions' module mentioned in documentation

2009-12-28 Thread July Tikhonov
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

[issue6477] Pickling of NoneType raises PicklingError

2009-07-15 Thread July Tikhonov
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

[issue6477] Pickling of NoneType raises PicklingError

2009-07-13 Thread July Tikhonov
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