New submission from July Tikhonov :
>>> 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
>>&
July Tikhonov 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 :
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
priority: normal
New submission from July Tikhonov :
Normal:
>>> compile('1 = 1', '', 'exec')
Traceback (most recent call last):
File "", line 1, in
File "", line 1
SyntaxError: can't assign to literal
SystemError is raised instead of Synta
July Tikhonov 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 :
Removed file: http://bugs.python.org/file21061/unnamed
___
Python tracker
<http://bugs.python.org/issue11441>
___
___
Python-bugs-list mailin
New submission from July Tikhonov :
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",
July Tikhonov added the comment:
Patch added.
--
Added file:
http://bugs.python.org/file20697/compileall.compile_dir.optimize.diff
___
Python tracker
<http://bugs.python.org/issue11
New submission from July Tikhonov :
>>> 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:
New submission from July Tikhonov :
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: geo
New submission from July Tikhonov :
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: geo
New submission from July Tikhonov :
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
messages: 98196
Changes by July Tikhonov :
Added file: http://bugs.python.org/file15981/unittest-doc-trunk.diff
___
Python tracker
<http://bugs.python.org/issue7765>
___
___
Python-bug
July Tikhonov 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
<http://bugs.python.
Changes by July Tikhonov :
Added file: http://bugs.python.org/file15999/rpartition-docstrings-py3k.diff
___
Python tracker
<http://bugs.python.org/issue7775>
___
___
Pytho
July Tikhonov 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]
>>&g
July Tikhonov 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):
> @wr
New submission from July Tikhonov :
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)".
I
New submission from July Tikhonov :
>>> set().union(*(None[k] for k in range(5)))
Traceback (most recent call last):
File "", line 1, in
TypeError: union() argument after * must be a sequence, not generator
Clearly, exception in not relevant, since next line works:
>&g
Changes by July Tikhonov :
Added file:
http://bugs.python.org/file24359/typeerror-replaced-in-stararg-test.diff
___
Python tracker
<http://bugs.python.org/issue13
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
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
<http://bugs.python.o
Changes by July Tikhonov :
Removed file: http://bugs.python.org/file31436/json-default-dict-keys.diff
___
Python tracker
<http://bugs.python.org/issue18820>
___
___
Pytho
July Tikhonov added the comment:
Proposed tests attached.
--
Added file: http://bugs.python.org/file31450/json-default-tests.diff
___
Python tracker
<http://bugs.python.org/issue18
Changes by July Tikhonov :
--
nosy: +july
___
Python tracker
<http://bugs.python.org/issue19717>
___
___
Python-bugs-list mailing list
Unsubscribe:
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.PurePat
Changes by July Tikhonov :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue20111>
___
___
Python-bugs-list mailing list
Unsubscrib
July Tikhonov added the comment:
Proposed patch attached.
--
Added file: http://bugs.python.org/file34100/pathlib-with_suffix.diff
___
Python tracker
<http://bugs.python.org/issue20
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',
New submission from July Tikhonov :
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]
&g
July Tikhonov 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
wit
New submission from July Tikhonov :
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 to be impo
New submission from July Tikhonov :
'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, 's
July Tikhonov 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-opt
July Tikhonov added the comment:
Reuploaded (some syntax groups fixed).
--
Added file: http://bugs.python.org/file15721/misc-vim-syntax.diff
___
Python tracker
<http://bugs.python.org/issue7
Changes by July Tikhonov :
Removed file: http://bugs.python.org/file15719/vimsyntax.diff
___
Python tracker
<http://bugs.python.org/issue7620>
___
___
Python-bugs-list m
July Tikhonov 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
<http://bu
July Tikhonov 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 'curses.wrapper
New submission from July Tikhonov :
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(), but later was replaced by
New submission from July Tikhonov :
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(screen):
k
July Tikhonov added the comment:
Patch added.
Calls PyErr_CheckSignals(). If nothing happens, raises _curses.error.
--
keywords: +patch
Added file: http://bugs.python.org/file17530/curses-getkey.patch
___
Python tracker
<http://bugs.python.
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:
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,
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 o
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 $ chara
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
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()
Changes by July Tikhonov :
--
components: +Library (Lib)
___
Python tracker
<http://bugs.python.org/issue24110>
___
___
Python-bugs-list mailing list
Unsubscribe:
48 matches
Mail list logo