Les Bothwell added the comment:
The code below shows a windows themed button with 2.7.6 but a plain tkinter
button with 2.7.7. Functionality is Ok both cases.
from win32api import GetMonitorInfo, MonitorFromWindow
from win32con import MONITOR_DEFAULTTONEAREST
from Tkinter import *
import ttk
Roundup Robot added the comment:
New changeset 9ac57970ee4c by Terry Jan Reedy in branch '2.7':
Issue #18910: Add unittest for textView. Patch by Phil Webster.
http://hg.python.org/cpython/rev/9ac57970ee4c
New changeset 99047f3a19a9 by Terry Jan Reedy in branch '3.4':
Issue #18910: Add unittest
Les Bothwell added the comment:
Here's an even simpler example (from book: Modern Tkinter for busy python
programmers).
from Tkinter import *
import ttk
root = Tk()
ttk.Button(root, text=Hello World!).grid()
root.mainloop()
I have screenshots of both progs for 2.7.6 and 2.7.7 if interested.
Terry J. Reedy added the comment:
The use of .__new__ was cute. Unfortunately, it did not backport to 2.7 because
tkinter classes were never upgraded from old to new in 2.7 and old-style
classes do not have .__new__. So I monkeypatched the module instead, which is a
but clumbsier than
Serhiy Storchaka added the comment:
Thanks. It looks themed on Linux. Looks as this is Windows specific issue.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21665
___
Sebastian Kreft added the comment:
The Executor is still working (but I'm using a ThreadPoolExcutor). I can
dynamically change the number of max tasks allowed, which successfully fires
the new tasks.
After 2 days running, five tasks are in this weird state.
I will change the code as
Roundup Robot added the comment:
New changeset 477e71004040 by Vinay Sajip in branch '3.4':
Issue #21663: Fixed error caused by trying to create an existing directory.
http://hg.python.org/cpython/rev/477e71004040
New changeset 1ed9edde3bfc by Vinay Sajip in branch 'default':
Closes #21663:
Changes by Dima Tisnek dim...@gmail.com:
--
nosy: +Dima.Tisnek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20188
___
___
Python-bugs-list
Christoph Zwerschke added the comment:
After this patch, some of the values in mimetypes.types_map now appear as
unicode instead of str in Python 2.7.7 under Windows. For compatibility and
consistency reasons, I think this should be fixed so that all values are
returned as str again under
Roundup Robot added the comment:
New changeset d1712437cab2 by Victor Stinner in branch '3.4':
Tulip issue 83, Python issue #21252: Fill some XXX docstrings in asyncio
http://hg.python.org/cpython/rev/d1712437cab2
New changeset 782c3b4cbc88 by Victor Stinner in branch 'default':
(Merge 3.4)
STINNER Victor added the comment:
Fixed. See also the Tulip issue
https://code.google.com/p/tulip/issues/detail?id=83
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21252
Abhilash Raj added the comment:
Will the building of that 'dict' really be that difficult? Can we not walk over
all the attachments and simply map cid to name of the attachment? All
attachments have to have different names if I am right?
--
___
STINNER Victor added the comment:
Can someone please review tempfile_o_tmpfile3.patch ?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21515
___
New submission from Nick Coghlan:
Based on the recent python-dev thread, I propose the following CPython
implementation detail note in the Strings entry of
https://docs.python.org/3/reference/datamodel.html#objects-values-and-types
CPython currently guarantees O(1) access to arbitrary code
STINNER Victor added the comment:
str[a:b] returns a substring (characters), not an array of code points
(numbers).
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21667
___
Nick Coghlan added the comment:
Guido, I think we need your call on whether or not to add a note about string
indexing algorithmic complexity to the language reference, and to approve the
exact wording of such a note (my proposed wording is in my initial comment on
this issue).
--
Nick Coghlan added the comment:
No, Python doesn't expose Unicode characters in its data model at all, except
in those cases where a code point happens to correspond directly with a
character. A length 1 str instance represents a Unicode code point, not a
Unicode character.
--
Nick Coghlan added the comment:
Although, you're right, that section of the data model docs misuses the word
character to mean something other than what it means in the Unicode spec :(
--
___
Python tracker rep...@bugs.python.org
STINNER Victor added the comment:
Python implementations are required to ...
By the way, Python 3.3 doesn't implement this requirement :-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21667
Nick Coghlan added the comment:
Saying that ord() and chr() switch between characters and code points is just
plain wrong, since characters may be represented as multiple code points.
We may also want to explicitly note that the Unicode normalisation is
implementation dependendent, and that
Nick Coghlan added the comment:
Right, narrow builds have long been broken - that's a large part of why this is
now the requirement :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21667
Nick Coghlan added the comment:
Patch attached that also addresses the characters vs code points confusion.
--
Added file:
http://bugs.python.org/file35489/issue21667_clarify_str_specification.rst
___
Python tracker rep...@bugs.python.org
Nick Coghlan added the comment:
I ducked the Unicode normalisation question for now, since that's a *different*
can of worms :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21667
___
Antoine Pitrou added the comment:
It would be nice if the patch added a pointer to the O_TMPFILE documentation
(if that exists) and mentioned that it is Linux-specific.
Otherwise, it looks good to me.
--
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
I don't really understand the point of this. The unsorted output order will
be unpredictable for the user (it isn't necessarily the same as the order of
fields in the input data).
--
nosy: +ezio.melotti, pitrou, rhettinger
Antoine Pitrou added the comment:
Two things:
- I don't think it's very helpful to use the term code point without
explaining or introducing it (character at least can be understood
intuitively)
- The mention of slicing is ambiguous: is slicing suppoded to be O(1)? how is
indexing related to
Antoine Pitrou added the comment:
For the record, I think it would be easier to get a patch accepted for this if
it didn't add a rather mysterious callback-based API. Which kind of approach
would work, though, I don't have any idea about :-)
--
stage: - needs patch
Roundup Robot added the comment:
New changeset 4b51a992cb70 by Victor Stinner in branch 'default':
Issue #21515: tempfile.TemporaryFile now uses os.O_TMPFILE flag is available
http://hg.python.org/cpython/rev/4b51a992cb70
--
nosy: +python-dev
___
STINNER Victor added the comment:
It would be nice if the patch added a pointer to the O_TMPFILE documentation
(if that exists) and mentioned that it is Linux-specific.
I modified TemporaryFile documentation to mention that the O_TMPFILE
flag is used if available and if the flag works.
Nick Coghlan added the comment:
If someone doesn't understand what Unicode code point means, that's going to
be the least of their problems when it comes to implementing a conformant
Python implementation. We could link to
http://unicode.org/glossary/#code_point, but that doesn't really add
Antoine Pitrou added the comment:
Not sure what implementing a conformant Python implementation has to do with
this; the language specification should be readable by any interested
programmers, IMO.
If you try to dive into the formal Unicode spec instead, you end up
in a twisty maze of
Serhiy Storchaka added the comment:
Then perhaps we need notes about algorithmic complexity of bytes, bytearray,
list and tuple and dict indexing, set.add and set.discard, dict.__delitem__,
list.pop, len(), + and += for all basic sequences and containers, memoryview()
for bytes, bytearray and
STINNER Victor added the comment:
Then perhaps we need notes about algorithmic complexity of bytes, bytearray,
list and tuple and dict indexing, set.add and set.discard, dict.__delitem__,
list.pop, len(), + and += for all basic sequences and containers,
memoryview() for bytes, bytearray
Changes by Chris Angelico ros...@gmail.com:
--
nosy: +Rosuav
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21667
___
___
Python-bugs-list mailing
New submission from Fredrik Fornwall:
The select and time modules use functions from libm, but do not link against it.
* selectmodule.c calls ceil(3) in pyepoll_poll()
* timemodule.c calls fmod(3) and floor(3) in floatsleep()
--
components: Build, Cross-Build
files:
Fredrik Fornwall added the comment:
Note: This causes problems at least when running on android, where the system
is unable to find the symbols when loading the modules at runtime.
--
___
Python tracker rep...@bugs.python.org
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21668
___
___
Python-bugs-list
Alain Miniussi added the comment:
Some details...
Environement:
{{{
[alainm@gurney Python-3.4.1]$ ^Cconfigure
--prefix=/softs/exp/python-3.4.1-intel14-fake
[alainm@gurney Python-3.4.1]$ icc --version
icc (ICC) 14.0.0 20130728
Copyright (C) 1985-2013 Intel Corporation. All rights reserved.
New submission from Nick Coghlan:
I realised my experiment with supporting implicit calls could potentially be
used as the basis for a patch that reported more specific error details when
print and exec were used as statements, so I went ahead and updated it to
do so.
The initial patch has a
STINNER Victor added the comment:
See also the issue #4130. libffi is not part of Python, it's an external
project. Python embeds a copy of libffi to limit dependencies... and because we
have custom patches on libffi :-/
--
nosy: +haypo
___
Python
Zachary Ware added the comment:
I can confirm this on the current 2.7 branch and, oddly, on a fresh build of
v2.7.6. This looks like it was caused by the way Tcl/Tk was compiled,
specifically the 'COMPILERFLAGS=-DWINVER=0x0500' and 'OPTS=noxp' options which
are supposed to be for Win2k
Jan Hudec added the comment:
Ok, David, I see.
Anybody who wants to use sqlite seriously in existing releases can use apsw. It
is not dbapi2 compliant, but it is complete and behaves like the underlying
database.
I agree with Antoine and already mentioned I didn't like the current patch.
I
R. David Murray added the comment:
No, there is no requirement that attachment names be unique, and in fact no
requirement that attachments (inline attachments, which is mostly what we are
dealing with for 'related') have names at all. I have seen messages in the
wild that had more than one
Michael Haubenwallner added the comment:
For AIX, with both these configure variants:
$ configure --prefix=/prefix --enable-shared CC=gcc CXX=g++ OPT=
$ configure --prefix=/prefix --enable-shared --without-computed-gotos
CC=xlc_r CXX=xlC_r OPT=
the output changes like this:
$
Guido van Rossum added the comment:
I'm sorry, but I find this way too intrusive, and a little risky too (I'm not
sure how to verify even that the new parser accepts exactly the same set of
programs as the old version).
I would much prefer a solution to this particular issue along the lines
Michael Haubenwallner added the comment:
Now for --disable-shared:
For AIX, with both these configure variants:
$ configure --prefix=/prefix --disable-shared CC=gcc CXX=g++ OPT=
$ configure --prefix=/prefix --disable-shared --without-computed-gotos
CC=xlc_r CXX=xlC_r OPT=
the output
Changes by Stephen Paul Chappell noctis.skyto...@gmail.com:
--
nosy: +Zero
versions: +Python 3.4, Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7676
___
Guido van Rossum added the comment:
I don't want the O(1) property explicitly denounced in the reference manual.
It's fine if the manual is silent on this -- maybe someone can prove that it
isn't a problem based on benchmarks of an alternate implementation, but until
then, I'm skeptical --
Michael Haubenwallner added the comment:
Erm, the latter should read:
For Linux, with this configure variant:
$ configure --prefix=/prefix --disable-shared CC=gcc CXX=g++
Now reading GNU ld manpage for Linux:
$ PKG_CONFIG_PATH=/prefix/lib/pkgconfig pkg-config --libs python-3.4
new:
Changes by Terry J. Reedy tjre...@udel.edu:
--
versions: -Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7676
___
___
Roundup Robot added the comment:
New changeset baac4ea2901b by Zachary Ware in branch '3.4':
Clean up Tcl/Tk building in the Windows buildbot scripts.
http://hg.python.org/cpython/rev/baac4ea2901b
New changeset b3063de0dbd9 by Zachary Ware in branch 'default':
Issue #21665: Don't use
New submission from Claudiu.Popa:
Hello!
Working with Shelf instances in the interactive console is cumbersome because
you can't have an instant feedback when running the following:
from shelve import Shelf
s = Shelf({})
s['a'] = 1
s
shelve.Shelf object at 0x033D0AF0
This patch adds an
New submission from Chris Lambacher:
http://www.openssl.org/news/secadv_20140605.txt
All client versions of OpenSSL are vulnerable so all Windows builds of Python
are vulnerable to MITM attacks when connecting to vulnerable servers.
--
components: Build, Windows
messages: 219828
nosy:
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +berker.peksag
versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4180
___
Zachary Ware added the comment:
2.7, 3.4, and default should be updated; should we do anything for 3.1-3.3
since they will not get any further installers?
--
nosy: +loewis, steve.dower, zach.ware
___
Python tracker rep...@bugs.python.org
Zoinkity . added the comment:
One glaring omission is any information about multibyte codecs--the class, its
methods, and how to even define one.
Also, the primary use for codecs.register would be to append a single codec to
the lookup registry. Simple usage of the method only provides
Roundup Robot added the comment:
New changeset a708844c1b8d by Zachary Ware in branch '3.4':
Issue #21661: Fix typo.
http://hg.python.org/cpython/rev/a708844c1b8d
New changeset 1b02b771b1fa by Zachary Ware in branch 'default':
Closes #21661: Merge typo fix.
Zachary Ware added the comment:
Thanks for the report and patch!
--
nosy: +zach.ware
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21661
___
___
New submission from Jacob Blair:
I just upgraded from 2.7.6 to 2.7.7, on Windows, and have encountered different
behavior in my path configuration (.pth) files. One of my files had lines
similar to these:
\\host\sharefolder
These paths (UNC-style), are not being loaded into sys.path. It is
R. David Murray added the comment:
It should be possible to also change the tool to use OrderDicts, though.
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21650
___
R. David Murray added the comment:
Or does the data get decoded to a dict *before* it gets passed to the
object_hook? Probably, in which case nevermind...
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21650
Changes by Serhiy Storchaka storch...@gmail.com:
--
components: +Windows
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21672
___
Roundup Robot added the comment:
New changeset f51ecdac91c8 by R David Murray in branch '2.7':
#21653: fix doc for return type of sqlite3.Row.keys().
http://hg.python.org/cpython/rev/f51ecdac91c8
New changeset 6c890b2739f4 by R David Murray in branch '3.4':
#21653: fix doc for return type of
R. David Murray added the comment:
Fixed. Thanks for the report.
--
nosy: +r.david.murray
resolution: - fixed
stage: needs patch - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21653
R. David Murray added the comment:
Do either of you know what that warning is about? I'm getting it in some code
that I'm running successfully in both python2.7 and python3.4, and python3.4
doesn't give me a warning.
--
nosy: +r.david.murray
___
Roundup Robot added the comment:
New changeset ead4dee062e3 by R David Murray in branch '3.4':
#21662: fix typo, improve sentence flow
http://hg.python.org/cpython/rev/ead4dee062e3
New changeset 3aa21b5b145a by R David Murray in branch 'default':
Merge #21662: fix typo, improve sentence flow
R. David Murray added the comment:
Thanks.
--
nosy: +r.david.murray
resolution: - fixed
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21662
___
R. David Murray added the comment:
I believe there are msg_NN files that have defects. I'd rather use one of
those in the exception test.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21476
New submission from Terry J. Reedy:
Example that prompted this idea due to difficulty of scanning results. The code
lines are relatively long and the hit range from first to (almost) last word in
the line.
Searching 'future' in F:\Python\dev\2\py27\*.c...
...
Terry J. Reedy added the comment:
I verified that type 'instancemethod' is used in 2.7 for both unbound and
bound methods of both old- and new-style classes. In 3.0, old-style classes and
unbound methods were removed. 2.x types seem not to have __bool__, so I suspect
that the condition code
New submission from Terry J. Reedy:
I miss this from Notepad++. This is essentially Find in Files limited to one
file, without the file name repeated on each line.
Notepad++ puts multiple findall results in one window, with +- marker to expand
or contract a group. It also has findall in all
R. David Murray added the comment:
I made some review comments.
Also, we need doc updates, including a what's new entry.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15014
___
Roundup Robot added the comment:
New changeset 2567c68fb300 by Zachary Ware in branch '2.7':
Issue #18292: s/tkinter/Tkinter/
http://hg.python.org/cpython/rev/2567c68fb300
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18292
Ned Deily added the comment:
This isn't an issue for releases in security-fix mode (3.1, 3.2, 3.3) since
there are not changes to Python involved and we do not provide binary
installers for releases in that mode.
--
keywords: +security_issue
nosy: +benjamin.peterson, larry, ned.deily
Donald Stufft added the comment:
Might it make sense to special case 3.2 and 3.3 since the last releases of
those were not security releases and the security issue is with a bundled
library?
--
nosy: +dstufft
___
Python tracker
Ned Deily added the comment:
We can ask for an opinion from the 3.2 and 3.3 release managers (adding Georg)
but I doubt that anyone is going to be interested in producing Windows binary
installers for those release plus we haven't done this for 3.2.x for recent
previous OpenSSL CVE's, have
eryksun added the comment:
site.addpackage calls site.makepath(sitedir, line):
def makepath(*paths):
dir = os.path.join(*paths)
try:
dir = os.path.abspath(dir)
except OSError:
pass
return dir, os.path.normcase(dir)
In 2.7.7,
Guido van Rossum added the comment:
I don't want the 3.4 and 3.5 versions of asyncio to be different. You should
just copy the 3.5 code back into the 3.4 tree. A new method is fine. Really.
--
___
Python tracker rep...@bugs.python.org
Terry J. Reedy added the comment:
Whoops. Zach, did you catch that by reading the checkin, running the test, or
seeing a buildbot problem. Is not the first, what symptom on what system
revealed the omission?
--
___
Python tracker
Changes by Terry J. Reedy tjre...@udel.edu:
--
Removed message: http://bugs.python.org/msg219852
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18292
___
Terry J. Reedy added the comment:
Whoops. Zach, did you catch that by reading the checkin, running the test, or
seeing a buildbot problem. Is not the first, what symptom on what system
revealed the omission?
--
nosy: +zach.ware
___
Python tracker
Nick Coghlan added the comment:
As in, putting something either in the SyntaxError constructor or else in
the parser code that emits them? I like that - the fact my initial approach
broke a test was rather concerning, and a change purely on the error
handling side should be much safer.
Changes by Alex Gaynor alex.gay...@gmail.com:
--
nosy: +alex
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21671
___
___
Python-bugs-list mailing
Guido van Rossum added the comment:
Yes, something like that. Don't change the grammar, just hack the heck out of
the error message.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21669
Changes by Alex Gaynor alex.gay...@gmail.com:
--
nosy: +alex
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20188
___
___
Python-bugs-list mailing
Steve Dower added the comment:
I compiled with COMPILERFLAGS=-DWINVER=0x0500 OPTS=noxp DEBUG=0 for tcl and
tix, and with just COMPILERFLAGS=-DWINVER=0x0500 DEBUG=0 for tk. These should
have matched the buildbot scripts, and I'm fairly sure they haven't changed
since 2.7.6, which means the
Zachary Ware added the comment:
Terry J. Reedy added the comment:
Whoops. Zach, did you catch that by reading the checkin, running the test,
or seeing a buildbot problem. Is not the first, what symptom on what system
revealed the omission?
Buildbots; there were several red 2.7 bots and I
Pierre Tardy added the comment:
I made a similar patch today to fix the same issue, and I confirm the problem
and the correctness of the solution
Please approve the patch and fix this bug.
--
nosy: +Pierre.Tardy
___
Python tracker
Zachary Ware added the comment:
Are you sure you didn't swap that; OPTS=noxp for Tk and no OPTS for the other
two? OPTS=noxp would do nothing for Tcl and Tix (and might cause errors, I'm
not sure), and not giving OPTS=noxp along with WINVER=0x0500 would definitely
have caused an error
New submission from Anthony Bartoli:
From the library's introduction page:
This manual is organized “from the inside out:” it first describes the
built-in data types...
The library manual first describes built-in functions, not data types.
After built-in functions, it describes built-in
90 matches
Mail list logo