Serhiy Storchaka added the comment:
Here is faster implementation.
$ ./python -m timeit -s import sqlite3; con = sqlite3.connect(':memory:');
con.row_factory = sqlite3.NamedTupleRow; con.execute('create table t (a, b)')
-s for i in range(100): con.execute('insert into t values (1, 2)') --
Dmitry Shachnev added the comment:
This patch adds a test case for formatdate() function.
Before applying issue22932_v3.patch it fails, after applying that patch it
succeeds.
Sorry for the delay caused by holidays.
--
Added file: http://bugs.python.org/file37675/issue22932_test.patch
Serhiy Storchaka added the comment:
May be just use PyObject_GetItem(self-data, idx)?
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13583
___
Changes by Serhiy Storchaka storch...@gmail.com:
Added file: http://bugs.python.org/file37674/strptime_julian_none_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23136
___
Mark Dickinson added the comment:
Committed. Thanks for all the helpful review comments!
--
resolution: - fixed
stage: needs patch - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23185
Antoine Pitrou added the comment:
I've committed your patches, Davin. Thank you for contributing!
--
nosy: +pitrou
resolution: - fixed
stage: patch review - resolved
status: open - closed
versions: -Python 3.6
___
Python tracker
Antoine Pitrou added the comment:
I am happy to provide proposed patches but first can someone please clarify
for me whether I should have those patches depend upon the patches from Issue
22952?
This question is now moot :)
--
nosy: +pitrou
___
Akira Li added the comment:
@mitya57: Please, combine the code changes, tests, docs into a single
rietveld-compatible patch (hg diff); read devguide and
http://bugs.python.org/issue13963
Make sure review link appears on the right near the patch. Example:
http://bugs.python.org/issue22798
Roundup Robot added the comment:
New changeset d81cabb39de3 by Mark Dickinson in branch '2.7':
Issue #21902: Replace incorrect 'hyperbolic arc sine' (etc.) with 'inverse
hyperbolic sine' (etc.). Remove meaningless reference to radians.
https://hg.python.org/cpython/rev/d81cabb39de3
--
Mark Dickinson added the comment:
Sorry; that last commit message should have been for #21902.
--
nosy: +mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21092
___
Mark Dickinson added the comment:
Closing as fixed.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21902
___
Mark Dickinson added the comment:
Roundup message copied from #21902 (bad issue number):
New changeset 36099a05d76a by Mark Dickinson in branch 'default':
Issue #21092: Merge from 3.4.
https://hg.python.org/cpython/rev/36099a05d76a
--
___
Python
Roundup Robot added the comment:
New changeset cf4bf577749c by Mark Dickinson in branch 'default':
Issue #23185: add math.inf and math.nan constants.
https://hg.python.org/cpython/rev/cf4bf577749c
--
nosy: +python-dev
___
Python tracker
New submission from Ievgen Aleinikov:
HI,
I was able to gat such behaviour on python version 3.4.2 and 3.2.3
for i in range(10):
... f = open(i, w)
... f.close()
...
This will close interactive session without any output.
On python 2 (2.7.9) it's not happening:
for i in range(10):
...
SilentGhost added the comment:
As explained in the docs[1] integer is a valid argument for the open function
in the python3. It is also noted that the file descriptor is going to be
closed, unless closefd argument to the open function was False, when f.close()
is called. This is the behaviour
Roundup Robot added the comment:
New changeset 5edfc6c929f9 by Mark Dickinson in branch '3.4':
Issue #21902: Replace incorrect 'hyperbolic arc sine' (etc.) with 'inverse
hyperbolic sine' (etc.). Remove meaningless reference to radians.
https://hg.python.org/cpython/rev/5edfc6c929f9
--
Roundup Robot added the comment:
New changeset e7d03a33e675 by Antoine Pitrou in branch '2.7':
Issue #22952: improve multiprocessing doc introduction and defer notes until
appropriate.
https://hg.python.org/cpython/rev/e7d03a33e675
--
___
Python
Roundup Robot added the comment:
New changeset a9a9c71f8e15 by Antoine Pitrou in branch '3.4':
Issue #22952: improve multiprocessing doc introduction and defer notes until
appropriate.
https://hg.python.org/cpython/rev/a9a9c71f8e15
New changeset a65c23ea5f9e by Antoine Pitrou in branch
Roundup Robot added the comment:
New changeset 36099a05d76a by Mark Dickinson in branch 'default':
Issue #21092: Merge from 3.4.
https://hg.python.org/cpython/rev/36099a05d76a
--
nosy: +python-dev
___
Python tracker rep...@bugs.python.org
Changes by SilentGhost ghost@gmail.com:
--
components: +Library (Lib) -Installation
nosy: +gregory.p.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23223
___
Antoine Pitrou added the comment:
I get the following compile error:
In file included from ./Include/Python.h:48:0,
from /home/antoine/cpython/default/Modules/_json.c:1:
/home/antoine/cpython/default/Modules/_json.c: In function ‘escape_unicode’:
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +berker.peksag
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4395
___
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
stage: patch review - resolved
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21902
___
___
Antoine Pitrou added the comment:
The patch was committed in b312b256931e. Thank you!
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23206
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +terry.reedy
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23216
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +terry.reedy
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23218
___
New submission from gajdig:
The latest subprocess32, 3.2.6, is unable to be installed in Windows 7 via pip.
The error messages:
_posixsubprocess.c(10) : fatal error C1083: Cannot open include file:
'unistd.h': No such file or directory
error: command
Karl Richter added the comment:
Sorry, I mean
#!/usr/bin/python
import threading
def debugging():
def __a_thread__():
print(2)
a_thread = threading.Thread(target=__a_thread__)
a_thread.start()
a_thread.join()
print(1)
if
Karl Richter added the comment:
My initial description was imprecise. Clearification: The fact that in
#!/usr/bin/python
import threading
def debugging():
def __a_thread__():
print(2)
a_thread = threading.Thread(target=__a_thread__)
print(1)
Carol Willing added the comment:
Ned, Thanks for the detailed example and confirming my gut instinct that Tk was
the root cause of the differences seen between the IDLE's Python interactive
shell (https://docs.python.org/3.4/library/idle.html) and the interactive
interpreter invoked from the
Ned Deily added the comment:
Also, the IDLE help text file (Lib/idlelib/help.txt) and the IDLE documentation
in the Standard Library Reference (Doc/library/idle.rst) refer to the Windows
menu and would need to be updated.
--
nosy: +ned.deily
___
Martin Panter added the comment:
We still need a patch for max_length in BZ2Decompressor, and to use it in
BZ2File. Also, I think my GzipFile patch should be considered as a bug fix
(rather than enhancement), e.g. the fix for Issue 16043 assumes
GzipFile.read(size) is limited.
I’m adding v4
Al Sweigart added the comment:
Added another patch for the documentation changes for the menu renaming.
--
Added file: http://bugs.python.org/file37679/idle_window_doc_rename.diff
___
Python tracker rep...@bugs.python.org
New submission from Martin Panter:
Noticed in a patch review around LZMModules/_lzmamodule.c:1055 that the C-level
LZMADecompressor object is being initialized in an __init__() method. It
crashes if you create the object with __new__() and never call __init__():
from lzma import
Steve Dower added the comment:
Anyone have any opinions on this? My only hesitation is adding the Windows 10
UUID, which will fix GetVersion but may cause other API problems, and we're
certainly not testing against Windows 10 yet. (On the other hand, it's easy
enough to remove that single
Martin Panter added the comment:
I haven’t done any tests, but my LZMAFile patch to Issue 15955 uses
BufferedReader, so it might satisfy this issue
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18003
Ned Deily added the comment:
So it does. Thanks, Martin.
--
resolution: - not a bug
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21896
___
Changes by Martin Panter vadmium...@gmail.com:
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22495
___
___
Python-bugs-list
Changes by Martin Panter vadmium...@gmail.com:
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20285
___
___
Python-bugs-list
Martin Panter added the comment:
Yeah it would be good to put related tests in the one place.
I was trying to find a good place to test how the comparison operators invoke
the __eq__(), __gt__() etc methods, and the existing tests seem to be spread
over test_compare.py and test_binop.py.
Martin Panter added the comment:
I tried in Python 2.7.9 on Linux, with env = TERM=xterm, cmd = date, and
couldn’t get any of those seven terminal settings to be turned off
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
Martin Panter added the comment:
Here’s a simple patch which should fix it, although I have not verified this
because I don’t have a Windows compiler (and MINGW cross compiling sounds too
tricky)
--
keywords: +patch
Added file: http://bugs.python.org/file37678/win-error-format.patch
Changes by Martin Panter vadmium...@gmail.com:
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17239
___
___
Python-bugs-list
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +berker.peksag
stage: - patch review
versions: +Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23182
___
Martin Panter added the comment:
Not a Python bug. The web site seems to be doing this based on the user agent;
if you change it, it works:
urlopen(Request(http://www.thomsonlocal.com/;, headers={User-Agent:
https://bugs.python.org/issue21896}))
--
nosy: +vadmium
type: crash -
Martin Panter added the comment:
Looking at the test suite:
* read1() of LZMAFile and GzipFile (both implementing BufferedIOBase) are
asserted to return a non-zero result until EOF
* LZMAFile.read1(0) is asserted to return an empty string
* BufferedReader.read1(-1) is asserted to raise
Changes by Antoine Pitrou pit...@free.fr:
--
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15955
___
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +nadeem.vawda, serhiy.storchaka
stage: - needs patch
versions: +Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23224
___
48 matches
Mail list logo