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
Changes by David Edelsohn dje@gmail.com:
--
nosy: +David.Edelsohn -David Edelsohn
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24054
___
___
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
___
Changes by shiva prasanth kesavarapu.s...@gmail.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24877
___
___
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
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
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
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
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
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
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.
R. David Murray added the comment:
Excellent.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10740
___
___
Python-bugs-list mailing list
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
___
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
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,
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 ?
--
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
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
___
___
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
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
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
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
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
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
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
___
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
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
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 :)
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
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
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,
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
Changes by Robert Collins robe...@robertcollins.net:
--
stage: patch review - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20362
___
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
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:
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
Changes by Mark Roseman m...@markroseman.com:
--
nosy: +markroseman
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24893
___
___
Python-bugs-list
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:
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
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
___
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
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
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.)
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
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
Changes by Robert Collins robe...@robertcollins.net:
--
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22680
___
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):
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
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,
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
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
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
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.
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.
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.
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
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
___
___
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
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
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
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
___
Changes by Gerhard Häring g...@ghaering.de:
--
assignee: - ghaering
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16379
___
___
Python-bugs-list
Changes by Gerhard Häring g...@ghaering.de:
--
assignee: - ghaering
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21250
___
___
Python-bugs-list
Changes by Gerhard Häring g...@ghaering.de:
--
assignee: - ghaering
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16864
___
___
Python-bugs-list
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
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.
--
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
Changes by Christoph Gohlke cgoh...@uci.edu:
--
nosy: +cgohlke
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23606
___
___
Python-bugs-list
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
69 matches
Mail list logo