Changes by Antoine Pitrou pit...@free.fr:
--
assignee: - georg.brandl
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19079
___
Serhiy Storchaka added the comment:
3.4 beta 1 will be soon.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5411
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
Giampaolo, Raymond? What are your opinions?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13451
___
___
Serhiy Storchaka added the comment:
OK, now I have a place in the non-test email code where using this would lead
to easier-to-read code.
Now you have not this place. ;)
--
___
Python tracker rep...@bugs.python.org
Vajrasky Kok added the comment:
Stopped the leaking after running the test by adding self.addCleanup.
--
Added file: http://bugs.python.org/file32130/add_x_mode_to_lzma_v3.patch
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
Found the cause of the ssl test failure -- the location of the ssl
test key and cert are different. Here's a new patch with a quick
fix (#4), but I think the correct solution is to either have the
certificates inline in the source and write them to a temp
STINNER Victor added the comment:
Tim
http://msdn.microsoft.com/en-us/library/windows/desktop/aa366750(v=vs.85).aspx
Yes, this one.
Tim BTW, everything I've read (including the MSDN page I linked to)
says that the LFH is enabled _by default_ starting in Windows Vista
(which I happen to be
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19262
___
___
Python-bugs-list
Antoine Pitrou added the comment:
It should be enabled explicitly.
Victor, please read your own link before posting:
The information in this topic applies to Windows Server 2003 and
Windows XP. Starting with Windows Vista, the system uses the
low-fragmentation heap (LFH) as needed to service
STINNER Victor added the comment:
Victor, please read your own link before posting:
Oh. I missed this part, that's why I didn't understand Tim's remark.
So the issue comes the Windows heap allocator. I don't see any obvious
improvment that Python can do to improve the memory usage. I close
Changes by STINNER Victor victor.stin...@gmail.com:
--
title: freeing then reallocating lots of memory fails under Windows - high
fragmentation of the memory heap on Windows
___
Python tracker rep...@bugs.python.org
Changes by Antoine Pitrou pit...@free.fr:
--
resolution: fixed - rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19246
___
___
Vajrasky Kok added the comment:
Here is the patch to add the validation in simplefilter with the test.
--
keywords: +patch
nosy: +vajrasky
Added file: http://bugs.python.org/file32131/add_assert_in_simplefilter.patch
___
Python tracker
Changes by Serhiy Storchaka storch...@gmail.com:
--
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17221
___
___
Roundup Robot added the comment:
New changeset 484ce82b7873 by Serhiy Storchaka in branch 'default':
Issue #17221: Merge 3.4.0 Alpha 1 entries before and after 3.3.1 release
candidate 1.
http://hg.python.org/cpython/rev/484ce82b7873
--
___
Python
Antoine Pitrou added the comment:
Serhiy's patch needs a versionchanged or versionadded tag in the Docs.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5411
___
Antoine Pitrou added the comment:
Serhiy, perhaps it would be useful to see if such optimizations can apply to
Tulip's (or asyncio's) event loop, since it will probably be the new standard
in 3.4.
--
nosy: +pitrou
___
Python tracker
Tyler B added the comment:
I wanted to make an edit so here's my revised comment:
Looked at the code and found differences between 3.4 and 2.7. 2.7 has 4
exceptions that can be raised while 3.4 has 3 exceptions.
I propose removing the list of parameters from the documenation to keep
things
Antoine Pitrou added the comment:
I think the better solution would be to fix the test inheritance hierarchy:
only concrete test classes should inherit from unittest.TestCase.
Then the code can be simplified by simply calling unittest.main(__name__).
--
nosy: +pitrou
stage: - patch
Antoine Pitrou added the comment:
This looks like a good idea.
Of course, since we now have the python-gdb pluging which provides much more
powerful diagnostics on modern gdbs, the usefulness of gdbinit is a bit reduced.
--
nosy: +pitrou
___
Python
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19219
___
___
Python-bugs-list mailing list
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19256
___
___
Python-bugs-list mailing list
Tyler B added the comment:
One last edit:
Looked at the code and found differences between 3.4 and 2.7. 2.7 has 4
exceptions that can be raised while 3.4 has 3 exceptions.
I propose including the full list of parameters but describing the exceptions
in a way that's less specific about the
New submission from Colin Williams:
This just increases test coverage for the datetime module by one line.
--
components: Library (Lib)
files: datetimepickling.patch
keywords: patch
messages: 13
nosy: Colin.Williams
priority: normal
severity: normal
status: open
title: Increased
Georg Brandl added the comment:
Tyler, thanks for the suggestion. However it doesn't really solve the issue:
the parameter order is the opposite of the current doc text (and your suggested
text).
--
nosy: +georg.brandl
___
Python tracker
New submission from Nick Coghlan:
Issue 15806 added contextlib.ignored to the standard library (later renamed to
contextlib.ignore), as a simple helper that allows code like:
try:
os.remove(fname)
except FileNotFoundError:
pass
to instead be written as:
with
Nick Coghlan added the comment:
The specific docs quotes that persuaded me suppress was a better name than
ignore for this feature (by contrast, ignore in this sense only appears in
its own docs):
From http://docs.python.org/dev/library/stdtypes.html#contextmanager.__exit__:
Exit the runtime
Changes by Barry A. Warsaw ba...@python.org:
--
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19266
___
___
Python-bugs-list mailing
Zero Piraeus added the comment:
This is my first submitted patch; if there's anything wrong with it, please let
me know (but the testsuite passes, and make patchcheck only warns about
Misc/NEWS and Misc/ACKS, which I assume is handled by committer).
--
keywords: +patch
nosy:
Changes by Antoine Pitrou pit...@free.fr:
--
components: +Tests
nosy: +belopolsky
stage: - patch review
versions: +Python 3.4 -Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19265
Nick Coghlan added the comment:
Zero's patch looks good to me, but it may be a couple of days before I can get
to applying it. If anyone else can handle it before then, please feel free :)
Also, Zero, if you could review and sign the contributor agreement, that would
be great:
Zero Piraeus added the comment:
Zero, if you could review and sign the contributor agreement, that
would be great: http://www.python.org/psf/contrib/contrib-form/
Done :-)
--
___
Python tracker rep...@bugs.python.org
Brett Cannon added the comment:
I'm seeing the same error as Stefan.
--
resolution: fixed -
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19079
___
New submission from Paweł Wroniszewski:
The following code reproduces the error:
import logging
logging.root.addHandler(logging.FileHandler(filename='test.log',encoding='UTF16'))
logging.error( u'b\u0142\u0105d')
I think the problem is in the line
logging/__init__.py:860: ufs =
STINNER Victor added the comment:
The example works fine on Python3:
localhost$ python3
Python 3.3.2 (default, Aug 23 2013, 19:00:04)
[GCC 4.8.1 20130603 (Red Hat 4.8.1-1)] on linux
Type help, copyright, credits or license for more information.
import logging
STINNER Victor added the comment:
I don't understand the purpose of fs.decode(stream.encoding): why not directly
using ufs=u'%s\n?
@Pawel: Can you please try to replace ufs=fs.decode(stream.encoding) with
ufs=u'%s\n'?
--
___
Python tracker
New submission from Ivan Pozdeev:
It appears that the interpreter assigns an identifier to local or global scope
at compilation time rather than searching locals, then globals (i.e. vars()) at
the time of execution.
An example:
def test():
... vars()['a']=1
... print(a)
...
test()
R. David Murray added the comment:
Not really. But locals() is not reliably modifiable, and the vars
documentation also notes this.
--
nosy: +r.david.murray
resolution: - invalid
stage: - committed/rejected
status: open - closed
___
Python
Guido van Rossum added the comment:
Turns out there were other uses of the sample key/cert pair. The easiest
solution is to just have the code try both locations if necessary. Here's a new
patch to review.
--
Added file: http://bugs.python.org/file32134/asyncio5.patch
Raymond Hettinger added the comment:
This patch looks fine. I'll apply it shortly.
--
assignee: - rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19266
___
Serhiy Storchaka added the comment:
Updated patch addresses Antoine's comments.
--
Added file: http://bugs.python.org/file32135/audioop_24bit_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12866
Roundup Robot added the comment:
New changeset 2e8c424dc638 by Serhiy Storchaka in branch 'default':
Issue #18725: The textwrap module now supports truncating multiline text.
http://hg.python.org/cpython/rev/2e8c424dc638
--
___
Python tracker
Georg Brandl added the comment:
Ah yes, I somehow missed running perf.py itself with Python 3.
Should be fixed now; adapting the #19108 patch should be easy enough.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19079
Changes by Georg Brandl ge...@python.org:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19079
___
Serhiy Storchaka added the comment:
Antoine has approved this on IRC.
Thank you Ezio and Antoine for your reviews.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
Yes, I will see.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13451
___
___
Python-bugs-list mailing list
Paweł Wroniszewski added the comment:
Hi Victor. Your fix works, but actually using simply ufs='%s\n' also seem to
work, as
type( '%s' % u'foo')
and
type( u'%s' % u'foo')
returns the same - unicode.
So I would suggest dropping ufs completely, and changing the two occurences to
fs. It works
Paweł Wroniszewski added the comment:
Btw I also don't see the purspose of fs.decode(stream.encoding), as it should
rather be encoded and not decoded...
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19267
Giampaolo Rodola' added the comment:
I don't have time to look into Serhiy's changes right now but here's a brief
summary:
- there's a (I think) *minor* downside in terms of backward compatibility
because scheduler._queue won't be updated after cancel() (basically this is the
reason why this
Giampaolo Rodola' added the comment:
Sorry, I failed to notice there's a scheduler.queue property which exposes the
underlying _queue attribute so the patch should take that into account and
return the updated list.
--
___
Python tracker
Giampaolo Rodola' added the comment:
Patch in attachment applies cleanly with the current 3.4 code (last one wasn't)
and returns an updated list on scheduler.queue.
I rebased my work starting from my original patch (cancel.patch) not
Serhiy's because it wasn't clear to me *where* exactly
Ned Deily added the comment:
With Aqua Cocoa Tcl/Tk 8.5.14 or 8.6.0 (using ActiveState's 8.5.14 or 8.6.0) on
OS X 10.8.5, running test_ttk_guionly:
==
ERROR: test_class (tkinter.test.test_ttk.test_widgets.ScrollbarTest)
Natal Ngétal added the comment:
Hi,
here the patch to fix this bug on Python 2.7 with a test suite.
--
nosy: +hobbestigrou
Added file: http://bugs.python.org/file32137/patch_utf16
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
Fixed, thanks for reporting!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14407
Roundup Robot added the comment:
New changeset 38243a0a1f44 by Antoine Pitrou in branch '3.3':
Issue #14407: Fix unittest test discovery in test_concurrent_futures.
http://hg.python.org/cpython/rev/38243a0a1f44
New changeset 9cc40bc5f02b by Antoine Pitrou in branch 'default':
Issue #14407: Fix
STINNER Victor added the comment:
patch_utf16 looks good to me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19267
___
___
Python-bugs-list
Changes by STINNER Victor victor.stin...@gmail.com:
--
components: +Unicode
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19267
___
Serhiy Storchaka added the comment:
it wasn't clear to me *where* exactly the enter() speedup was introduced
Constructing Event object. You introduced __init__().
Here is a patch which is based on my patch and new Giampaolo's patch. In
additional it fixes a performance for the queue property
Serhiy Storchaka added the comment:
Thank you Ned.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19085
___
___
Python-bugs-list mailing list
Roundup Robot added the comment:
New changeset e94e29dab32c by Victor Stinner in branch '2.7':
Close #19267: Fix support of multibyte encoding (ex: UTF-16) in the logging
http://hg.python.org/cpython/rev/e94e29dab32c
--
nosy: +python-dev
resolution: - fixed
stage: - committed/rejected
STINNER Victor added the comment:
This bug is specific to Python 2. I should now be fixed, thanks Paweł for the
report and Natal for the patch.
@Natal: Could you please sign the Contributor Agreement for next contributions?
http://www.python.org/psf/contrib/contrib-form/
--
Paweł Wroniszewski added the comment:
Cool - looks good to me as well. Thanks guys.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19267
___
___
Changes by Ethan Furman et...@stoneleaf.us:
--
nosy: +ethan.furman
resolution: invalid -
stage: committed/rejected -
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19268
Guido van Rossum added the comment:
Here's a partial patch for Windows. (Mostly for myself; I need to integrate
this into the main patch.)
--
Added file: http://bugs.python.org/file32139/winasyncio.diff
___
Python tracker rep...@bugs.python.org
Guido van Rossum added the comment:
Here's a full new patch, with Windows project/solution changes included, and
updated from the latest Tulip asyncio branch.
--
Added file: http://bugs.python.org/file32140/asyncio6.patch
___
Python tracker
Changes by Guido van Rossum gu...@python.org:
Removed file: http://bugs.python.org/file32139/winasyncio.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19262
___
Guido van Rossum added the comment:
PS. There's some garbage at the start of pcbuild.sln (perhaps a BOM mark?). I'm
not going to re-upload the patch for now, but please note this.
--
___
Python tracker rep...@bugs.python.org
Tyler B added the comment:
Here's a revised suggestion that has the order changed. I have additional
concerns but please provide comment on this revision. Thanks
# 2.7
Raises an exception. argc indicates the number of parameters to the raise
statement, ranging from 0 to 3. The parameters can
Zachary Ware added the comment:
I had missed this issue before; issue16968 tracks the same thing.
There are a couple of issues that the committed patch doesn't address. Namely,
the file still uses test_main, and there is no thread or process reaping when
running the file via discovery.
R. David Murray added the comment:
Ethan, why did you reopen the issue? Do you have a different opinion, or was
it just an issue-update error?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19268
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19267
___
___
Python-bugs-list mailing list
Ethan Furman added the comment:
Oops! Issue update error, I was just adding myself to nosy as it looked like
it was still open.
Re-closing.
--
resolution: - invalid
stage: - committed/rejected
status: open - closed
___
Python tracker
New submission from Pete:
Python makes errors on simple subtraction with 'pennies'.
2000.0 - 1880.98
119.019998
See attached file for more examples...
--
components: Windows
files: py_subtraction_bug
messages: 200035
nosy: radiokinetics.pete
priority: normal
severity: normal
Tim Peters added the comment:
Please read this:
http://docs.python.org/2/tutorial/floatingpoint.html
A web search will lead you to thousands of discussions of alternatives.
Probably best to use the `decimal` module if you're working heavily with
decimal values.
--
nosy: +tim.peters
74 matches
Mail list logo