Terry J. Reedy added the comment:
I am quite aware that the two searches are different. tcl8xyz.dll and
tkxyz.dll must be copied from ../tcltk/bin to pcbuild while init.tcl must be
left in ../tcltk/lib/tcl8.x, where x is, now, '5' or '6'. Since compiling
tcl/tk clears tcltk/, it is
Terry J. Reedy added the comment:
Since the two .dlls must now be copied manually (still undocumented?) for
tkinter to work, I fail to see the problem with having the copying done
automatically in external.bat right after the compile that creates them.
--
Terry J. Reedy added the comment:
I could not find an issue specifically for the tcltk problem. I just explained
the problem as I know it in msg230120 of #17896. Some sort of fix is required
before we can merge multiple tcltk directories in isolated build directories of
the sort you
Terry J. Reedy added the comment:
Because the name 'tcltk' is unversioned and contents rebuilt for each compile,
isolated build directories of the sort diagrammed in msg214138 are required if
one want to build and run both 2.7, which requires tcl8.5, and 3.4+, which
require tcl8.6. Since
New submission from Akira Li:
time.clock() documentation [1] says:
this is the function to use for benchmarking Python or timing algorithms.
and
Deprecated since version 3.3: The behaviour of this function depends on the
platform: use perf_counter() or process_time() instead, depending
Georg Brandl added the comment:
Correct, there are no PyString_ functions in 3.x.
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22748
___
Georg Brandl added the comment:
LGTM.
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22749
___
___
Python-bugs-list mailing
Georg Brandl added the comment:
rdm: your suggestion sounds good. Note that the argument name is iterable in
Py3.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22725
___
Georg Brandl added the comment:
I agree, the see also box is better off near the bottom, probably before the
examples.
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22736
Ezio Melotti added the comment:
Can this be closed then?
--
resolution: - wont fix
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22177
___
Ezio Melotti added the comment:
LGTM
--
nosy: +ezio.melotti
stage: patch review - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22173
___
Amaury Forgeot d'Arc added the comment:
What about
open(..., encoding='latin-1', errors='xmlcharrefreplace')
--
nosy: +amaury.forgeotdarc
stage: resolved - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22746
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +rbcollins
stage: - patch review
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22153
___
Ezio Melotti added the comment:
LGTM
--
nosy: +ezio.melotti
stage: patch review - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22217
___
Wolfgang Rohdewald added the comment:
What about
open(..., encoding='latin-1', errors='xmlcharrefreplace')
That works fine. I tested with a chinese character 与
But I do not think the application should work around something that cgitb is
supposed to handle. More so since the documentation
Wolfgang Rohdewald added the comment:
correction: A bug for everyone using non-ascii characters.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22746
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22233
___
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21877
___
___
New submission from Ferdinand:
Code is working, but the TEXT variable is not showing the correct line of the
XML file but the the line after correct one :
Exemple :
[u6v7mr@vl-a-txx-05 Python]$ ./validateXML.py DTD/herve.xml DTD/Tomcat.dtd
ERROR: 'I' is not an allowed value for the 'value'
New submission from Michael Cetrulo:
The following warning is being generated when running test case:
Warning -- locale was modified by test___all__
According to the comment there, importing the rlcompleter module changes (or
used to change) the locale so after the import it was being set
Martin Panter added the comment:
The patch seems reasonable to me
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22153
___
___
Python-bugs-list
Ezio Melotti added the comment:
Looks like str.splitlines is using STRINGLIB_ISLINEBREAK which in turn uses
Py_UNICODE_ISLINEBREAK, so the behavior should be correct. If splitting on \n,
\r, and \r\n only is common enough with might add a bool arg to splitlines to
restrict the splitting on
Karmen Dykstra added the comment:
Updated documentation with Enum example.
--
keywords: +patch
nosy: +ezio.melotti, kdykstra
Added file: http://bugs.python.org/file37051/mywork.patch
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset d44f7d229e00 by Ezio Melotti in branch '2.7':
#22237: document that sorted() is guaranteed to be stable. Initial patch by
Martin Panter.
https://hg.python.org/cpython/rev/d44f7d229e00
New changeset 5dd4906daa62 by Ezio Melotti in branch '3.4':
Ezio Melotti added the comment:
Fixed, thanks for the patch!
--
assignee: rhettinger - ezio.melotti
nosy: +ezio.melotti
resolution: - fixed
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
anupama srinivas murthy added the comment:
I have modified the patch and listed the points I know. Could you review it?
--
versions: -Python 3.4, Python 3.5
Added file: http://bugs.python.org/file37052/regex-link.patch
___
Python tracker
Serhiy Storchaka added the comment:
With Terry's explanation linebreak looks better to me. Yet one alternative is
ascii=False (or unicode=True?). And may be worth to add this parameter to
strip/rstrip/lstrip/split too. On other hand regular expressions can be used in
such special cases.
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +ezio.melotti, serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22746
___
Ezio Melotti added the comment:
There are some ascii line breaks other than \n, \r, \r\n.
unicode=True might be better, but might be confused with unicode strings.
Maybe unicode_linebreaks or unicode_newlines?
--
___
Python tracker
Roundup Robot added the comment:
New changeset af8f678a4a75 by Ezio Melotti in branch '2.7':
#22237: fix patch attribution.
https://hg.python.org/cpython/rev/af8f678a4a75
New changeset 2f697bcc8f86 by Ezio Melotti in branch '3.4':
#22237: fix patch attribution.
Antoine Pitrou added the comment:
IMO hiding the existence of `runTest` would be best. It doesn't seem to make
anything more flexible, and it complicates the documentation.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
Zachary Ware added the comment:
I'd say so.
--
stage: - resolved
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22177
___
Amaury Forgeot d'Arc added the comment:
You need to use codecs.open instead of open
No, why? in python3 open() supports the errors handler.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22746
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +brett.cannon
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22242
___
Changes by STINNER Victor victor.stin...@gmail.com:
--
components: +Unicode
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22746
___
Changes by Brett Cannon br...@python.org:
--
nosy: +brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22751
___
___
Python-bugs-list
Changes by Brett Cannon br...@python.org:
--
assignee: docs@python - brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22242
___
___
R. David Murray added the comment:
In normal HTML utf-8 works fine, doesn't it?. It's only when reading from a
file (where the browser doesn't know the encoding) that it fails. Do you have
a use case for xmlcharrefreplace in the HTML context (which is what cgitb is
primarily targeted at).
Roundup Robot added the comment:
New changeset 2e3521e79d93 by Ezio Melotti in branch 'default':
#22196: link to Enum in the nametuple documentation. Patch by Karmen Dykstra.
https://hg.python.org/cpython/rev/2e3521e79d93
--
nosy: +python-dev
___
Roundup Robot added the comment:
New changeset 701529f8ca93 by Ezio Melotti in branch '3.4':
#22196: link to Enum in the nametuple documentation. Patch by Karmen Dykstra.
https://hg.python.org/cpython/rev/701529f8ca93
--
___
Python tracker
Serhiy Storchaka added the comment:
See also issue18236.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22232
___
___
Python-bugs-list mailing
New submission from matrokhin oleg:
There was timezone change in Russia at 26 october
(http://www.timeanddate.com/time/change/russia/moscow)
But code in timemodule.c using first day of the year to get timezone
t = (time((time_t *)0) / YEAR) * YEAR;
p = localtime(t);
matrokhin oleg added the comment:
$ date -R
Tue, 28 Oct 2014 17:27:54 +0300
$ python -c import time; print time.timezone
-14400
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22752
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19459
___
___
Python-bugs-list mailing list
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22232
___
___
Python-bugs-list mailing list
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22679
___
___
Python-bugs-list mailing list
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21081
___
___
Python-bugs-list mailing list
Changes by Jakub Wilk jw...@jwilk.net:
--
nosy: +jwilk
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22681
___
___
Python-bugs-list mailing list
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +belopolsky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22752
___
___
Python-bugs-list
Ezio Melotti added the comment:
Fixed, thanks for the patch!
--
assignee: rhettinger - ezio.melotti
resolution: - fixed
stage: - resolved
status: open - closed
type: - enhancement
versions: +Python 3.4, Python 3.5
___
Python tracker
New submission from Håkan Lövdahl:
Running this test gave me an error:
./python -m test -v test_urllib2_localnet
==
ERROR: test_proxy_qop_auth_works (test.test_urllib2_localnet.ProxyAuthTests)
Changes by Daniel Eriksson dan...@starstable.com:
--
nosy: +puppet
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22753
___
___
Python-bugs-list
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti, larstiq
stage: - patch review
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22753
___
Changes by Håkan Lövdahl ha...@llsdata.fi:
--
keywords: +patch
Added file: http://bugs.python.org/file37053/issue_22753.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22753
___
Håkan Lövdahl added the comment:
Ubuntu Linux 12.04
64bit
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22753
___
___
Python-bugs-list mailing
R. David Murray added the comment:
Your description of the solution (change localhost to 127.0.0.1) does not
match the content of the patch. The patch appears to be looking up the IP
address associated with 'localhost' and using that. On most systems that would
be 127.0.0.1, but perhaps on
Wolfgang Rohdewald added the comment:
You need to use codecs.open instead of open
No, why? in python3 open() supports the errors handler.
right, but not in python2 which has the same problem. I need my code to run
with both.
Do you have a use case for xmlcharrefreplace in the HTML
Alexander Belopolsky added the comment:
The time module cannot handle historical changes in timezone info. Try using
datetime.datetime.astimezone() method (with no arguments) or a 3rd party
timezone support library.
https://docs.python.org/3/library/datetime.html#datetime.datetime.astimezone
Amaury Forgeot d'Arc added the comment:
What if [some flavor of] pprint sorted items not by value, but by their repr()
string?
It's probably faster than any other algorithm, and guaranteed to produce
consistent results.
Or use this idea only for ambiguous cases?
--
nosy:
Fred L. Drake, Jr. added the comment:
Sorting by the repr sounds good, but if some dict keys or set members are
strings containing single-quotes, the primary sort will be on the type of quote
used for the repr, which would be surprising and significantly less useful.
--
New submission from Aaron Klish:
Implicit string literal concatenation where
string1 string2
becomes
string1string2
should be a language syntax error - not a feature.
This creates a silent error whenever someone builds a list of strings and
forgets a comma.
I can't think of any good reason
R. David Murray added the comment:
This is a long established language feature and is not going to change. You
could talk to one of the python linter projects about adding a lint option for
detecting such; that would be the appropriate place for an option that would
enable such checking.
R. David Murray added the comment:
Also, if you really want to pursue it as a language level discussion the
appropriate forum would be python-ideas. You might want to ask on python-list
first about how it is used in practice, though, since it is used quite a bit
(mostly in multiline
Roundup Robot added the comment:
New changeset 100eee4adc4c by Antoine Pitrou in branch 'default':
Fix #22728: deprecate spurious benchmarks
https://hg.python.org/benchmarks/rev/100eee4adc4c
--
nosy: +python-dev
___
Python tracker
Changes by Antoine Pitrou pit...@free.fr:
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22728
___
Antoine Pitrou added the comment:
Aaron, the patch looks fine, I'm going to commit it.
--
versions: -Python 2.7, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18216
___
Roundup Robot added the comment:
New changeset 3b26a0983a3c by Antoine Pitrou in branch 'default':
Issue #18216: gettext now raises an error when a .mo file has an unsupported
major version number. Patch by Aaron Hill.
https://hg.python.org/cpython/rev/3b26a0983a3c
--
nosy:
Antoine Pitrou added the comment:
I've pushed it to 3.5 only. I don't think it's worth risking compatibility
breakage in bugfix branches. Thank you for your contribution!
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
Antoine Pitrou added the comment:
Thanks for the updated patch. I'll take a look soon if no-one beats me to it.
--
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1610654
Aaron Hill added the comment:
Awesome! Thanks!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18216
___
___
Python-bugs-list mailing list
Terry J. Reedy added the comment:
If this issue is a duplicate of #9334, as it appears to be, this should be
closed and a note added to #9334 that there is a patch here also.
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 5f086db3b51b by Georg Brandl in branch '3.4':
Closes #22749: remove outdated advice to use clock() for accurate timing.
https://hg.python.org/cpython/rev/5f086db3b51b
--
nosy: +python-dev
resolution: - fixed
stage: - resolved
status: open
Roundup Robot added the comment:
New changeset 9141199800fe by Georg Brandl in branch '3.4':
Closes #22748: there are no PyString C functions in 3.x.
https://hg.python.org/cpython/rev/9141199800fe
--
nosy: +python-dev
resolution: - fixed
stage: needs patch - resolved
status: open -
Roundup Robot added the comment:
New changeset 4ad8b11ca309 by Georg Brandl in branch '3.4':
Closes #22736: move seealso to the bottom of the section about RE syntax.
https://hg.python.org/cpython/rev/4ad8b11ca309
--
nosy: +python-dev
resolution: - fixed
stage: - resolved
status: open
Roundup Robot added the comment:
New changeset 18f346abdfbe by Georg Brandl in branch '2.7':
Closes #22748: there are no PyString C functions in 3.x.
https://hg.python.org/cpython/rev/18f346abdfbe
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 465892bb0c12 by Georg Brandl in branch '2.7':
Closes #22736: move seealso to the bottom of the section about RE syntax.
https://hg.python.org/cpython/rev/465892bb0c12
--
___
Python tracker
Changes by STINNER Victor victor.stin...@gmail.com:
--
title: An OSError subclass for no space left on device would be nice - An
OSError subclass for no space left on device would be nice: NoSpaceError
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 999e72ed3fbc by Georg Brandl in branch '2.7':
Closes #22249: use IPPROTO_TCP constant instead of SOL_TCP constant for
getaddrinfo() proto param
https://hg.python.org/cpython/rev/999e72ed3fbc
--
___
Roundup Robot added the comment:
New changeset 5611c7c20460 by Georg Brandl in branch '3.4':
Closes #22249: use IPPROTO_TCP constant instead of SOL_TCP constant for
getaddrinfo() proto param
https://hg.python.org/cpython/rev/5611c7c20460
--
nosy: +python-dev
resolution: - fixed
stage:
Changes by Georg Brandl ge...@python.org:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22305
___
___
Python-bugs-list
Martin Panter added the comment:
Do you mean pretending there is no default “methodName” value, or pretending
that the runTest() method is not invoked by discovery?
I would have to check, but I think I have relied on the runTest() method being
discovered in the past, when I did not think a
Robert Collins added the comment:
runTest is part of the current API. I think if we're going to hide it we should
do so as part of a deprecation path. (I'm +1 on hiding it).
--
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
Le 28/10/2014 23:01, Robert Collins a écrit :
runTest is part of the current API. I think if we're going to hide
it
we should do so as part of a deprecation path. (I'm +1 on hiding it).
We don't need a deprecation path to remove something from the
Martin Panter added the comment:
As uncovered in Issue 12855, str.splitlines() currently considers the FS, GS
and RS (1C–1E), but not the US (1F), to be line breaks. It might be surprising
if these are no longer considered white space but are still considered line
breaks.
--
nosy:
New submission from Martijn Pieters:
urllib.request.urlopen() now always produces a context manager (either a
HTTPResponse or addinfourl object). The example for contextlib.closing still
uses urllib.request.urlopen as an example for the context manager wrapper, see
Andrew Barnert added the comment:
It may be pretty hard to come up with a good example for closing in the stdlib
that shouldn't just be turned into a context manager…
There are some types where using it in a with statement is sensible, but
unusual enough that you might want to make it
Changes by Robert Collins robe...@robertcollins.net:
--
nosy: +rbcollins
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21820
___
___
Martin Panter added the comment:
One exception that comes to mind is generators. According to Issue 13814, it is
deliberate that you have to call close(), so perhaps someone could come up with
an example based on that.
--
nosy: +vadmium
___
Python
Wolfgang Maier added the comment:
It doesn't seem to be the exact same problem, but still this very simple
example with parentheses in metavar fails to format correctly:
import argparse
parser = argparse.ArgumentParser()
parser.add_argument(inputfiles, metavar = 'input_file(s)', nargs = +,
Martin Panter added the comment:
Removing stuff from the documentation would make it hard to understand what
existing code means that uses runTest(). Isn’t this a case where you would add
a big red “Deprecated since version . . .” warning instead? Maybe a comprimise
would be to “hide” its
Eldar Abusalimov added the comment:
It is possible to get a partially initialized class from inside a custom mro().
And extending such type results in passing NULL to PySequence_List inside
mro_implementation, which in turn leads to PyErr_BadInternalCall. #22735 has a
test reproducing it
Changes by Jean Christophe André pyt...@andrele.org:
Added file: http://bugs.python.org/file37054/TCVN5712-1.TXT
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21081
___
Changes by Jean Christophe André pyt...@andrele.org:
Added file: http://bugs.python.org/file37055/TCVN5712-2.TXT
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21081
___
Changes by Jean Christophe André pyt...@andrele.org:
Added file: http://bugs.python.org/file37056/TCVN5712-3.TXT
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21081
___
Antoine Pitrou added the comment:
Le 29/10/2014 00:22, Martin Panter a écrit :
Martin Panter added the comment:
Removing stuff from the documentation would make it hard to
understand
what existing code means that uses runTest(). Isn’t this a case where
you would add a big red “Deprecated
Robert Collins added the comment:
Constructing test case objects directly is part of the protocol, and its needed
for framework and extension authors.
I've seen folk use runTest, but rarely enough that I think we could deprecate
it. My argument is that while its supported we should be clear
Jean Christophe André added the comment:
I failed to find anything about TCVN 5712:1999 except the official announcement
of it superseding TCVN 5712:1993 on TCVN's website. I also was not able to find
any material using TCVN 5712:1999. My guess is that TCVN 6909:2001 having been
released only
Jean Christophe André added the comment:
Marc-Andre, about “Please also provide a patch for the documentation”, could
you please guide me on this?
I can write some documentation, but I simply don't know in what form you expect
it. Could you point me to some examples please?
--
New submission from Robert Collins:
found while backporting unittest fixes.
The current test fails like so:
==
FAIL: testAssertEqualSingleLine (unittest2.test.test_case.Test_TestCase)
Robert Collins added the comment:
There's comments in the test above about 'not testing ourself with ourselves' -
but we're testing the rendering of an error case, so its entirely legitimate to
use the same method's success path to check equality.
--
1 - 100 of 106 matches
Mail list logo