[issue24896] It is undocumented that re.UNICODE affects re.IGNORECASE

2015-08-19 Thread Leif Arne Storset
New submission from Leif Arne Storset: A non-ASCII string does not match a regular expression case-insensitively unless the UNICODE flag is set. This seems reasonable, but the documentation seems to imply that this is not the case. The example: import re # Does not match

[issue24054] Invalid syntax in inspect_fodder2.py (on Python 2.x)

2015-08-19 Thread David Edelsohn
Changes by David Edelsohn dje@gmail.com: -- nosy: +David.Edelsohn -David Edelsohn ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24054 ___ ___

[issue16885] SQLite3 iterdump ordering

2015-08-19 Thread Gerhard Häring
Gerhard Häring added the comment: http://bugs.python.org/issue20463 is related. -- assignee: - ghaering ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16885 ___

[issue24877] Bad Password for file using zipfile module

2015-08-19 Thread shiva prasanth
Changes by shiva prasanth kesavarapu.s...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24877 ___ ___

[issue24054] Invalid syntax in inspect_fodder2.py (on Python 2.x)

2015-08-19 Thread R. David Murray
R. David Murray added the comment: Example: http://buildbot.python.org/all/builders/x86%20Windows7%203.x/builds/10098/steps/test/logs/stdio -- nosy: +r.david.murray stage: resolved - needs patch status: closed - open ___ Python tracker

[issue24870] Optimize coding with surrogateescape and surrogatepass error handlers

2015-08-19 Thread R. David Murray
R. David Murray added the comment: Since you already have to rewrite the string to do the escaping, I would judge it worth the extra effort to piece string together as binary, but I can understand wanting to use % notation. The performance issue seems to prevent that, though, and there's no

[issue3783] dbm.sqlite proof of concept

2015-08-19 Thread Gerhard Häring
Gerhard Häring added the comment: This wiki page is out of date. It appears that SQlite is now threadsafe by default: http://www.sqlite.org/threadsafe.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3783

[issue24896] It is undocumented that re.UNICODE affects re.IGNORECASE

2015-08-19 Thread R. David Murray
R. David Murray added the comment: I think it would be reasonable to add re.IGNORECASE to the list of things affected, since it obviously does switch between using the unicode database and not doing so. -- nosy: +r.david.murray ___ Python tracker

[issue23606] ctypes.util.find_library(c) no longer makes sense

2015-08-19 Thread Steve Dower
Steve Dower added the comment: I've been ignoring this because I wasn't assigned... Here's the options. If we make it load ucrtbase.dll directly (which does still have named exports, and also uses the API schema on Windows 10): * some code that uses it will need updating (due to API changes

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2015-08-19 Thread R. David Murray
R. David Murray added the comment: It's not a backward compatible change, so we'll need a migration strategy if we want to apply this (and I'd certainly like to). -- versions: +Python 3.6 -Python 3.5 ___ Python tracker rep...@bugs.python.org

[issue24054] Invalid syntax in inspect_fodder2.py (on Python 2.x)

2015-08-19 Thread David Edelsohn
David Edelsohn added the comment: Also http://buildbot.python.org/all/builders/s390x%20Debian%203.x/builds/2/steps/test/logs/stdio http://buildbot.python.org/all/builders/s390x%20Debian%203.x/builds/2 Comments Issue #24054: decouple linecache tests from inspect tests Patch from David D.

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2015-08-19 Thread R. David Murray
R. David Murray added the comment: Excellent. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10740 ___ ___ Python-bugs-list mailing list

[issue24054] Invalid syntax in inspect_fodder2.py (on Python 2.x)

2015-08-19 Thread David Edelsohn
David Edelsohn added the comment: This patch causes a new failure on many of the buildbots. -- nosy: +David Edelsohn ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24054 ___

[issue24892] bytes.join() won't take it's own type as the argument

2015-08-19 Thread R. David Murray
R. David Murray added the comment: In case I wasn't clear: bytes-like object join's argument is *an iterable of bytes-like objects*, not an iterable of ints. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24892

[issue24892] bytes.join() won't take it's own type as the argument

2015-08-19 Thread R. David Murray
R. David Murray added the comment: I said *enough* motivation. doing b'x'.join(b'anything') is a very uncommon operation (as is the equivalent string case). There is no parallel to the bytearray constructor, since that constructor does not take an iterable of byte-like objects as its input,

[issue24736] argparse add_mutually_exclusive_group do not print help

2015-08-19 Thread Alexandre Badez
Alexandre Badez added the comment: @paul: thanks, I'm very surprised because the parsing work well. It's just the display that do not. Moreover it's not said in the documentation that you cannot nest groups. So maybe we should update the documentation and/or improve the module ? --

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2015-08-19 Thread Gerhard Häring
Gerhard Häring added the comment: Please note that after the mentioned commit, I restored backwards compatibility with commit https://github.com/ghaering/pysqlite/commit/796b3afe38cfdac5d7d5ec260826b0a596554631 Now the only difference is that the implicit commits *before* DDL statements are

[issue19065] sqlite3 timestamp adapter chokes on timezones

2015-08-19 Thread R. David Murray
R. David Murray added the comment: Can you expand on why you are -1, Gerhard? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19065 ___ ___

[issue24790] Idle: improve stack viewer

2015-08-19 Thread Can İbanoğlu
Can İbanoğlu added the comment: Alright, here goes my first patch. I just did what you have pointed out :) -- keywords: +patch Added file: http://bugs.python.org/file40213/issue24790.1.patch ___ Python tracker rep...@bugs.python.org

[issue24892] bytes.join() won't take it's own type as the argument

2015-08-19 Thread Brett Cannon
Brett Cannon added the comment: I agree with David. Concatenating ints to a bytes object doesn't work when you directly work with ints and bytes, and so I don't think bytes.join should special case it (Zen of Python: Special cases aren't special enough to break the rules). Thanks for the

[issue24790] Idle: improve stack viewer

2015-08-19 Thread Can İbanoğlu
Can İbanoğlu added the comment: Thank you very much for your thorough input, it is very much appreciated! Actually one of the first things that I tried was to return stack[1:] to remove the target but your suggestion is much better. I did try it and it does work and I will provide a patch as

[issue24847] Can't import tkinter in Python 3.5.0rc1

2015-08-19 Thread Steve Dower
Steve Dower added the comment: Larry - PR for you at https://bitbucket.org/larry/cpython350/pull-requests/6/issue-24847-removes-vcruntime140dll/diff The buildbots are happy with this change, and so am I. Zach also had a look at the Tcl and Tk patches, and I've already heard back from upstream

[issue24895] indentation fix in ceval.c

2015-08-19 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the patch, Laurent. Can any other core devs remembered if we explicitly untabbed the C source in 2.7? I know we did in Python 3, but I can't remember if we did it in Python 2 to make patches easier. -- nosy: +brett.cannon stage: - patch

[issue24895] indentation fix in ceval.c

2015-08-19 Thread Laurent Coustet
Laurent Coustet added the comment: by the way, the rest of the code did not contain any tab in ceval.c. They were added by 17d3bbde60d2 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24895

[issue24895] indentation fix in ceval.c in python 2.7

2015-08-19 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- title: indentation fix in ceval.c - indentation fix in ceval.c in python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24895 ___

[issue24790] Idle: improve stack viewer

2015-08-19 Thread Can İbanoğlu
Can İbanoğlu added the comment: I have also prepared a patch for the second item but I don't know if I should regenerate the patch after you have committed the first patch so I'm sitting on it now. I also didn't update the ACKS and NEWS files, should I? Here's what I did for the second

[issue24895] indentation fix in ceval.c

2015-08-19 Thread R. David Murray
R. David Murray added the comment: I couldn't remember either. Antoine should know, he did the work/commit. -- nosy: +pitrou, r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24895

[issue24790] Idle: improve stack viewer

2015-08-19 Thread Can İbanoğlu
Can İbanoğlu added the comment: Come to think of it, maybe I should send both the second and third items in one patch? I could just call the GetSubList method if the VariablesTreeItem is being created for locals. Is that a bad approach to take? Sorry for the sheer number of questions :)

[issue24895] indentation fix in ceval.c

2015-08-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: The Python 3 code doesn't have tabs. I'm assuming Benjamin took the original patch instead of trying to backport the Python 3 commit. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org

[issue8987] Distutils doesn't quote Windows command lines properly

2015-08-19 Thread R. David Murray
R. David Murray added the comment: So I think the only objection to committing this as a bug fix would be the unfortunately real possibility that doing so will break someone's workaround. My *guess* is that such a workaround would most likely take the form of replacing _nt_quote_args as the

[issue24790] Idle: improve stack viewer

2015-08-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: NEWS patches should be omitted from submitted .diff or .patch files because a) NEWS is so volatile that merge conflicts applying the .diff are likely; b) NEWS is different between versions, so that forward merge conflicts are possible (usual for Idle items,

[issue24710] Class name hardcoded in TracebackException.from_exception()

2015-08-19 Thread Robert Collins
Robert Collins added the comment: So I'm still ambivalent at best about this - this interface hasn't been designed for subclassing - I'm sure there is a bunch more stuff that would be needed. What /is/ needed feature wise here is a sideways extension mechanism for doing filtering and

[issue20362] longMessage attribute is ignored in unittest.TestCase.assertRegexpMatches etc

2015-08-19 Thread Robert Collins
Changes by Robert Collins robe...@robertcollins.net: -- stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20362 ___

[issue8987] Distutils doesn't quote Windows command lines properly

2015-08-19 Thread Steve Dower
Steve Dower added the comment: Switching distutils.spawn to simply use subprocess.Popen (probably keeping the explicit path search) looks good to me. Quoting rules are different when you call with shell=True (aka cmd.exe /c), since then you also need to escape ^, | and (with a ^), but if

[issue24054] Invalid syntax in inspect_fodder2.py (on Python 2.x)

2015-08-19 Thread Robert Collins
Robert Collins added the comment: I can't see how the patch could have caused the Traceback (most recent call last): File D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\test_symbol.py, line 44, in test_real_grammar_and_symbol_file os.stat(TEST_PY_FILE))) AssertionError:

[issue24054] Invalid syntax in inspect_fodder2.py (on Python 2.x)

2015-08-19 Thread Robert Collins
Robert Collins added the comment: So it looks like one failure is: FAIL: test_getline (test.test_linecache.GoodUnicode) -- Traceback (most recent call last): File

[issue24893] Idle occasionally gets mouse position wrong for selections

2015-08-19 Thread Mark Roseman
Changes by Mark Roseman m...@markroseman.com: -- nosy: +markroseman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24893 ___ ___ Python-bugs-list

[issue20362] longMessage attribute is ignored in unittest.TestCase.assertRegexpMatches etc

2015-08-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 738de9a9a3ea by Robert Collins in branch '3.5': Issue #20362: Honour TestCase.longMessage correctly in assertRegex. https://hg.python.org/cpython/rev/738de9a9a3ea New changeset 977e60f597de by Robert Collins in branch 'default': Issue #20362:

[issue21192] Idle: Print filename when running a file from editor

2015-08-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: I've found this to be a serious usability regression and think it should be reverted right-away. It makes IDLE unsuitable for evening showing turtle demos to kids. For adults in my classes, it was also confusing because unlike the old restart-bar it

[issue24893] Idle occasionally gets mouse position wrong for selections

2015-08-19 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - terry.reedy nosy: +ned.deily, ronaldoussoren, terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24893 ___

[issue20362] longMessage attribute is ignored in unittest.TestCase.assertRegexpMatches etc

2015-08-19 Thread Robert Collins
Robert Collins added the comment: Thanks for the patch, applied to 3.5 and 3.6. -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20362

[issue24054] Invalid syntax in inspect_fodder2.py (on Python 2.x)

2015-08-19 Thread Robert Collins
Robert Collins added the comment: Debian is green again and I think windows will do so to. -- stage: needs patch - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24054

[issue24889] Idle: always start with focus

2015-08-19 Thread Mark Roseman
Mark Roseman added the comment: I reproduced your problem on Windows, and verified that it wasn't an issue on either Mac or Linux. Your fix however, didn't change anything for me (on a Windows 7 VM). I tried a few other things (raising the window, playing with various wm attributes, etc.)

[issue8987] Distutils doesn't quote Windows command lines properly

2015-08-19 Thread R. David Murray
R. David Murray added the comment: There are two features of this I have questions about. If I'm understanding correctly, if passed a quoted string you are not re-quoting it, but you are always stripping a trailing slash even if it is inside quotes. For the first, that seems wrong. Either

[issue8987] Distutils doesn't quote Windows command lines properly

2015-08-19 Thread Mark Lawrence
Mark Lawrence added the comment: As far as I'm concerned distutils on Windows is a farce so do what you like with it. It usually can't pick up the version of VS that you know is correct and is installed, the error messages are less than useless, so the only damage that I see is something

[issue22680] Blacklist FunctionTestCase from test discovery

2015-08-19 Thread Robert Collins
Changes by Robert Collins robe...@robertcollins.net: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22680 ___

[issue24897] Add new attribute decorator (akin to property)?

2015-08-19 Thread Emanuel Barry
New submission from Emanuel Barry: This is an issue that came up quite often when creating code where you want the class' namespace to hold the instance attributes. I've often seen (and written) code like this: class Foo: def __init__(self): self._x = 42 @property def x(self):

[issue24897] Add new attribute decorator (akin to property)?

2015-08-19 Thread Ethan Furman
Ethan Furman added the comment: Could you give an actual use-case demo, and how it's different from @property? Could just be that I'm tired, but I'm not seeing the advantages of @attribute. -- nosy: +ethan.furman ___ Python tracker

[issue24897] Add new attribute decorator (akin to property)?

2015-08-19 Thread Emanuel Barry
Emanuel Barry added the comment: The only significant difference is that it lets the instance overwrite the attribute (it doesn't have __set__ or __delete__). For example (using fractions.Fraction to demonstrate), the following: def __new__(cls, numerator=0, denominator=None,

[issue24898] Documentation for str.find() is confusing

2015-08-19 Thread Ted Lemon
New submission from Ted Lemon: The documentation for str.find() on python.org, for all current versions, says: Return the lowest index in the string where substring sub is found, such that sub is contained in the slice s[start:end]. Optional arguments start and end are interpreted as in slice

[issue24893] Idle occasionally gets mouse position wrong for selections

2015-08-19 Thread Mark Roseman
Mark Roseman added the comment: Watched that video clip - yikes, that is bad. I tried playing around to reproduce it, but haven't had any success yet, though did find another weird thing. If you have a bunch of short lines without any blanks, sometimes when you click well to the right of all

[issue24893] Idle occasionally gets mouse position wrong for selections

2015-08-19 Thread Ned Deily
Ned Deily added the comment: A wild guess: could it be dependent on the screen resolution, in particular if a Mac Retina display is in use? It also could depend on the version of Tk; from the screenshot it is clear that Guido was not using a python.org version of 3.4 so the out-of-date

[issue24893] Tk occasionally mispositions Text() insert cursor on mouse click.

2015-08-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: Guido, we are looking at the PyCon 2014 keynote video where the text cursor was misplaced relative to the mouseclick, trying to guess the reason. Do you still have the Mac laptop you used? If so, have you upgraded its python? The hideous moment is at 7:10.

[issue24898] Documentation for str.find() is confusing

2015-08-19 Thread Georg Brandl
Georg Brandl added the comment: The slice clause is talking about the additional arguments. A clearer version could be Return the lowest index in the string where substring sub is found within the slice s[start:end]. Optional arguments start and end are interpreted as in slice notation.

[issue21192] Idle: Print filename when running a file from editor

2015-08-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: How about 'RESTART: Shell' and 'RESTART: name of file' to make it clear that old definitions are forgotten in both cases while new definitions are added in the second case. I do not understand the comment about turtledemo as it runs separately from Idle.

[issue24894] iso-8859-11 missing from codecs table

2015-08-19 Thread Ezio Melotti
New submission from Ezio Melotti: In https://docs.python.org/3/library/codecs.html#standard-encodings iso8859_11 appears to be missing. 'thai' seems a valid alias for this encoding, but there might be others. cp874 also covers the thai alphabet, but it's a different encoding. Note that

[issue16958] The sqlite3 context manager does not work with isolation_level=None

2015-08-19 Thread Gerhard Häring
Gerhard Häring added the comment: I'm +1 on deprecating the connection manager -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16958 ___ ___

[issue20463] sqlite dumpiter dumps invalid script when virtual tables are used

2015-08-19 Thread Gerhard Häring
Gerhard Häring added the comment: apsw contains code that handles the issues with dumping SQLite databases very well. I plan to integrate this code into pysqlite. We can then later port the fix to the sqlite3 module. See https://github.com/ghaering/pysqlite/issues/10 for the tasks and

[issue11691] sqlite3 Cursor.description doesn't set type_code

2015-08-19 Thread Gerhard Häring
Gerhard Häring added the comment: There is no guarantee that all any column in a SQlite resultset always has the same type. That's why I decided to err on the side of setting the type code to undefined. Closing as wontfix. -- resolution: - wont fix status: open - closed

[issue24887] Sqlite3 has no option to provide open flags

2015-08-19 Thread Gerhard Häring
Gerhard Häring added the comment: It requires switch to the v2 open function of the SQLite C API. While we're at it, we can also enable URI filenames. -- assignee: - ghaering nosy: +ghaering versions: +Python 3.6 -Python 3.4 ___ Python tracker

[issue19065] sqlite3 timestamp adapter chokes on timezones

2015-08-19 Thread Gerhard Häring
Gerhard Häring added the comment: I'm -1 on adding timezone to the adapters. -- assignee: - ghaering ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19065 ___

[issue16379] SQLite error code not exposed to python

2015-08-19 Thread Gerhard Häring
Changes by Gerhard Häring g...@ghaering.de: -- assignee: - ghaering ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16379 ___ ___ Python-bugs-list

[issue21250] sqlite3 doesn't have unit tests for 'insert or [algorithm]' functionality.

2015-08-19 Thread Gerhard Häring
Changes by Gerhard Häring g...@ghaering.de: -- assignee: - ghaering ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21250 ___ ___ Python-bugs-list

[issue16864] sqlite3.Cursor.lastrowid isn't populated when executing a SQL REPLACE statement

2015-08-19 Thread Gerhard Häring
Changes by Gerhard Häring g...@ghaering.de: -- assignee: - ghaering ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16864 ___ ___ Python-bugs-list

[issue24895] indentation fix in ceval.c

2015-08-19 Thread Laurent Coustet
New submission from Laurent Coustet: https://hg.python.org/cpython/rev/17d3bbde60d2 introduced a patch using tabs for indentation in ceval.c. Attached patch just make the code more consistent by using spaces instead of tabs for indentation. Related to: http://bugs.python.org/issue4753

[issue9303] Migrate sqlite3 module to _v2 API to enhance performance

2015-08-19 Thread Gerhard Häring
Gerhard Häring added the comment: The externally maintained version of the sqlite3 module has now been switched to the v2 statement API. pysqlite is for Python 2.7 only. I'd suggest to revisit this for Python 3.6 and then try to port most fixes from pysqlite to the sqlite3 module. --

[issue24870] Optimize coding with surrogateescape and surrogatepass error handlers

2015-08-19 Thread INADA Naoki
INADA Naoki added the comment: Why are bytes being escaped in a binary blob? The reason to use surrogateescape is when you have data that is mostly text, should be processed as text, but can have occasional binary data. That wouldn't seem to apply to a database binary blob. Since SQL

[issue23606] ctypes.util.find_library(c) no longer makes sense

2015-08-19 Thread Christoph Gohlke
Changes by Christoph Gohlke cgoh...@uci.edu: -- nosy: +cgohlke ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23606 ___ ___ Python-bugs-list

[issue24895] indentation fix in ceval.c in python 2.7

2015-08-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset ea2f6fd04307 by Benjamin Peterson in branch '2.7': remove tabs from ceval.c (closes #24895) https://hg.python.org/cpython/rev/ea2f6fd04307 -- nosy: +python-dev resolution: - fixed stage: patch review - resolved status: open - closed