Georg Brandl added the comment:
Whatever we decide to do here, it **must** also be done for antigravity.py.
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19499
___
New submission from Paweł Wroniszewski:
I encountered the problem in logging module, but it is broader then that. Have
a look at the following code:
import time
DATE_FORMAT = '%d/%b/%Y %H:%M:%S%z %Z'
print(time.strftime(DATE_FORMAT))
print(time.strftime(DATE_FORMAT,time.localtime()))
Roundup Robot added the comment:
New changeset 5636366db039 by Vinay Sajip in branch '3.3':
Issue #18345: Added cookbook example illustrating handler customisation.
http://hg.python.org/cpython/rev/5636366db039
New changeset 388cc713ad33 by Vinay Sajip in branch 'default':
Closes #18345: Merged
Vinay Sajip added the comment:
When the online docs update, the cookbook entry should appear at
http://docs.python.org/dev/howto/logging-cookbook.html#customising-handlers-with-dictconfig
--
___
Python tracker rep...@bugs.python.org
Changes by Christoph Baumgartner hydrotox...@gmail.com:
--
nosy: +christoph.baumgartner
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2889
___
___
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19501
___
___
Python-bugs-list
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19475
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset fc8f19b4b662 by Ned Deily in branch '2.7':
Issue #15663: Revert OS X installer built-in Tcl/Tk support for 2.7.6.
http://hg.python.org/cpython/rev/fc8f19b4b662
New changeset 268dc81c2527 by Ned Deily in branch '3.3':
Issue #15663: Revert OS X
Ned Deily added the comment:
Due to incompatibilities with some key third-party projects as documented in
Issue 19490 and the urgency of getting new maintenance releases out, the best
course of action is to revert built-in Tcl/Tk support for 3.3.3 and 2.7.6.
With the knowledge gained, I will
Ned Deily added the comment:
After further investigation and deliberation, I believe that we need to revert
the built-in Tcl/Tk from the OS X installers for 2.7.6 and 3.3.3. The
contributing factors:
1. As implemented, we now know that the built-in Tcl/Tk breaks source installs
and/or
New submission from martenjan:
The code for gc_list_merge is given in gcmodule.c. I retrieved it from
http://hg.python.org/cpython/file/tip/Modules/gcmodule.c#l287
The code seems to merge list `from` incompletely: the first entry of `from` is
omitted in the merged list.
The issue is in line
Ronald Oussoren added the comment:
I don't think you can provide a solution that's compatible with existing
3th-party extensions that use Tk and includes a private copy of Tcl/Tk.
IMHO the best solution would be to provide the Tcl/Tk headers in the Python
framework as well, to make it
Changes by Bohuslav Slavek Kabrda bkab...@redhat.com:
--
nosy: +bkabrda
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19347
___
___
Roundup Robot added the comment:
New changeset 0aa2aedc6a21 by Tim Golden in branch 'default':
Issue #10197 Tweak docs for subprocess.getstatusoutput and align the
documentation, the module docstring, and the function docstring.
http://hg.python.org/cpython/rev/0aa2aedc6a21
--
Mark Dickinson added the comment:
The current code is correct. Note that `from` is the list header, and is not
attached to a gc-tracked object. We want to splice the last non-header element
of `to` (`to-gc.gc_prev`) to the first non-header element of `from`
(`from-gc.gc_next`).
Did you try
New submission from Eric V. Smith:
The python source code usually uses customiz* (341 instances) over
customis* (19 instance, 8 of which are in logging).
I realize foolish consistency, and all that, but I think the documentation
should all use the same conventions. I'd be happy to change the
Nick Coghlan added the comment:
New and improved implementation attached that extracts the exception chaining
to a helper functions and calls it only when it is the call in to the codecs
machinery that failed (eliminating the need for the output flag, and covering
decoding as well as
Nick Coghlan added the comment:
Checking the other binary-binary and str-str codecs with input type and
value restrictions:
- they all throw TypeError and get wrapped appropriately when asked to encode
str input (rot_13 throws the output type error)
- rot_13 throws an appropriately wrapped
R. David Murray added the comment:
It seems to me that having import this work more than once would teach a
beginner the *wrong* lesson about how python import works. So I agree that it
should be a teaching moment, not a bug to be fixed.
--
nosy: +r.david.murray
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +belopolsky, r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19502
___
___
Nick Coghlan added the comment:
It would be good to have this addressed in Python 3.4 (I'm following up on a
few other encoding related issues at the moment).
Is that a reasonable possibility before beta 1, or do we need to bump this one
to 3.5?
--
Nick Coghlan added the comment:
Updated patch adds systematic tests for the new error handling to
test_codecs.TransformTests
I also moved the codecs changes up to a Codec handling improvements section.
My rationale for doing that is that this is actually a pretty significant
usability
Roundup Robot added the comment:
New changeset ba31940588b6 by Ned Deily in branch '2.7':
Issue #15663: Revert OS X installer built-in Tcl/Tk support for 2.7.6.
http://hg.python.org/cpython/rev/ba31940588b6
--
___
Python tracker
Alexander Belopolsky added the comment:
I cannot reproduce this and I suspect that the problem shows up only in certain
times.
I believe this is related to the long-standing issue that was fixed in 3.3.
See issue 1667546. In Python prior to 3.3, time_struct did not store timezone
martenjan added the comment:
Thanks for your explanation
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19503
___
___
Python-bugs-list mailing
Alexander Belopolsky added the comment:
The documentation for time.strftime(format[, t]) reads:
If t is not provided, the current time as returned by localtime() is used
but apparently there must be something extra going on under the hood.
Yes, the C implementation uses tm_zone and tm_gmtoff
Changes by Alexander Belopolsky alexander.belopol...@gmail.com:
--
nosy: +belopolsky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19475
___
___
Alexander Belopolsky added the comment:
+1 on adding an option to isoformat(). We already have an optional sep
argument, so the symmetry with __str__ is not complete. To make this option
more useful, rather than implementing always_emit_microseconds=False flag, I
would add a keyword
New submission from ThiefMaster:
The view objects for `collections.OrderedDict` do not implement `__reversed__`
so something like this fails:
from collections import OrderedDict
od = OrderedDict()
reversed(od.viewvalues())
Traceback (most recent call last):
File stdin,
Mark Lawrence added the comment:
If it ain't broke don't fix it.
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19499
___
___
STINNER Victor added the comment:
Is that a reasonable possibility before beta 1, or do we need to bump this
one to 3.5?
My patch was not reviewed yet and must be reimplemented in C. I will not have
time before the beta1 to finish the work.
--
Cameron Allan added the comment:
Done using Notepad++ and regex as needed.
Also changed file name appropriately.
--
nosy: +c3n9
Added file: http://bugs.python.org/file32510/customize.diff
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset b93614f7ed83 by Victor Stinner in branch 'default':
Issue #19437: Fix pysqlite_cursor_iternext() of sqlite3, handle
http://hg.python.org/cpython/rev/b93614f7ed83
New changeset 00ee08fac522 by Victor Stinner in branch 'default':
Issue #19437: Fix
Changes by Claudiu.Popa pcmantic...@gmail.com:
--
nosy: +Claudiu.Popa
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15745
___
___
Python-bugs-list
Fred L. Drake, Jr. added the comment:
Not a foolish consistency; Guido ruled long ago that American spellings should
be used.
--
nosy: +fdrake
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19504
Eric Snow added the comment:
+0 to just doing a reload. At the point you show someone import this, it may
be premature to be explaining reloading to them. Python is great because you
usually don't have to hand-wave through some concepts in order to explain
others. [1]
Also, under Python 3
Zachary Ware added the comment:
Looks like the last commit broke 8.5.15 on Windows; in particular, on line 25
of widget_tests.py, int_round doesn't exist. Replacing 'int_round' with
'round' allows most tests to pass, but I still get these two failures:
Georg Brandl added the comment:
IMO the fact that importing happens only once is also a very important one, so
much the better this helps in learning it early.
The bad thing is that opening this.py to see what's happening will not really
enlighten the beginner :)
--
Roundup Robot added the comment:
New changeset d5d0356ba5ac by Serhiy Storchaka in branch '3.3':
Fix typo in tkinter tests (issue #19085).
http://hg.python.org/cpython/rev/d5d0356ba5ac
New changeset fc4ef17c7db8 by Serhiy Storchaka in branch 'default':
Fix typo in tkinter tests (issue #19085).
Serhiy Storchaka added the comment:
Thank you Zachary.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19085
___
___
Python-bugs-list mailing
Roundup Robot added the comment:
New changeset eb126f976fa2 by Serhiy Storchaka in branch '2.7':
Fix test_insertwidth Tkinter tests on Tk 8.5 with patchlevel = 8.5.12 (issue
#19085).
http://hg.python.org/cpython/rev/eb126f976fa2
New changeset 21fbe3ec90dc by Serhiy Storchaka in branch '3.3':
Zachary Ware added the comment:
Working from ce08158e3f6c with 8.5.15 on Windows, I get the same failures with
a different AssertionError:
==
FAIL: test_insertwidth (tkinter.test.test_tkinter.test_widgets.EntryTest)
Charles-François Natali added the comment:
Here's an updated patch with a better logic: in the previous version - based on
current poll-based implementation, the FD was inferred from the event (i.e.
read ready - stdout/stderr, write ready - stderr). The new version directly
checks the ready
Zachary Ware added the comment:
FTR, both 8.5.11 and 8.6.1 pass all tests on Windows from ce08158e3f6c (with
unrelated modifications required to build and use 8.6.1).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19085
Roundup Robot added the comment:
New changeset c97600bdd726 by Serhiy Storchaka in branch '2.7':
Revert wrong change in previous commit (issue #19085).
http://hg.python.org/cpython/rev/c97600bdd726
New changeset bec6df56c053 by Serhiy Storchaka in branch '3.3':
Revert wrong change in previous
Serhiy Storchaka added the comment:
My fault. I missed that here is simple checkParam() instead of
checkPixelsParam(). Thank you Zachary.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19085
Andrei Dorian Duma added the comment:
I would like to implement this feature. I already wrote the Python part. Is
there anything else to decide?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19475
STINNER Victor added the comment:
2013/11/5 Alexander Belopolsky rep...@bugs.python.org:
+1 on adding an option to isoformat(). We already have an optional sep
argument, so the symmetry with __str__ is not complete. To make this option
more useful, rather than implementing
New submission from STINNER Victor:
The following code copies data, whereas the copy can be avoided using a memory
view:
chunk = self._input[self._input_offset:self._input_offset + _PIPE_BUF]
self._input_offset += os.write(key.fd, chunk)
It should be replaced with:
input_view =
Changes by STINNER Victor victor.stin...@gmail.com:
--
type: - performance
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19506
___
___
STINNER Victor added the comment:
subprocess_selectors-3.diff looks good to me (this patch does not
remove any test :-))
I created the issue #19506 for the memoryview optimization.
--
___
Python tracker rep...@bugs.python.org
Changes by Benjamin Peterson benja...@python.org:
--
assignee: - rhettinger
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19505
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +serhiy.storchaka, stutzbach
versions: +Python 3.3, Python 3.4 -Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19505
Changes by Zachary Ware zachary.w...@gmail.com:
--
nosy: +zach.ware
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15411
___
Changes by Zachary Ware zachary.w...@gmail.com:
--
nosy: +zach.ware
stage: needs patch - patch review
versions: +Python 3.4 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9949
___
Alexander Belopolsky added the comment:
+1 on all Victor's points.
I like 'resolution' because this is the term that datetime module uses already:
from datetime import *
datetime.resolution
datetime.timedelta(0, 0, 1)
There is a slight chance of confusion stemming from the fact that
Marc-Andre Lemburg added the comment:
On 05.11.2013 21:31, STINNER Victor wrote:
2013/11/5 Alexander Belopolsky rep...@bugs.python.org:
+1 on adding an option to isoformat(). We already have an optional sep
argument, so the symmetry with __str__ is not complete. To make this option
New submission from Christian Heimes:
I find it surprising that wrap_socket() doesn't verify the server name with
match_hostname() when it is called with a server_name argument. The check
should be done by default.
I suggest:
- add validate_hostname=True flag to wrap_socket() and functions
New submission from Christian Heimes:
Developers are still surprised that Python's ssl library doesn't validate SSL
certs by default. We should add a *big* warning to the SSL module as well as to
all consumers (http, ftp, imap, pop, smtp, nntp ...) that neither the CA cert
chain nor the
New submission from Christian Heimes:
None of the TLS/SSL classes for ftp, imap, nntp, pop and smtp have support for
match_hostname() in order to verify that the SSL cert matches the host name.
I'm not sure how we can handle the problem without creating backwards
incompatibilities.
Eric Snow added the comment:
The view objects aren't sequences. od.items() and od.keys() implement Set.
od.values() doesn't even do that much, only implementing __len__(), __iter__(),
and __contains__().
The glossary implies that you should use reversed(list(view)). [1] More
information
New submission from Augie Fackler:
While tinkering (again) with Mercurial Python 3 messes, I ran across this gem:
import error, osutil, encoding, collections
(http://selenic.com/hg/file/e1317d3e59e1/mercurial/util.py#l17)
That import statement contains 3 relative imports (that is,
Arnaud Faure added the comment:
Corrected and cleaned
--
Added file: http://bugs.python.org/file32512/modify_data_use_a_shortcut.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19497
___
Chris Cooper added the comment:
Here's a patch that focuses on the json module, with a smaller pickle section
including the warning from the pickle docs.
--
nosy: +ChrisCooper
Added file: http://bugs.python.org/file32513/issue18840
___
Python
Piet van Oostrum added the comment:
I think future versions of Python should add the relevant information about how
they are linked to Tcl/Tk in sysconfig. This would include the path of the
include files, the shared libraries and the tcl files. Or a framework location
on OS X if this is
Ned Deily added the comment:
Piet, yes, I've been thinking of how to do that. Unfortunately, it can only be
a hint since, in the case of an installer Python, there is no guarantee that
the header files on the build machine are available on the installed machine in
the same location or even
Jason Myers added the comment:
This is a patch based on terry.reedy 's suggestion
--
keywords: +patch
nosy: +Jason.Myers
Added file: http://bugs.python.org/file32514/docstring.patch
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 99640494ca7f by Zachary Ware in branch 'default':
#19439: Update PCbuild/readme.txt with new sub-project
http://hg.python.org/cpython/rev/99640494ca7f
--
___
Python tracker rep...@bugs.python.org
68 matches
Mail list logo