[issue19079] chameleon benchmark fails on 3.4

2013-10-15 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
assignee:  - georg.brandl
nosy: +georg.brandl

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19079
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5411] Add xz support to shutil

2013-10-15 Thread Serhiy Storchaka

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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13451] sched.py: speedup cancel() method

2013-10-15 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Giampaolo, Raymond? What are your opinions?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13451
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18652] Add itertools.first_true (return first true item in iterable)

2013-10-15 Thread Serhiy Storchaka

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
http://bugs.python.org/issue18652
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19201] Add 'x' mode to lzma.open()

2013-10-15 Thread Vajrasky Kok

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
http://bugs.python.org/issue19201
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-15 Thread Antoine Pitrou

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 file, or
 move them into the main asyncio library, or move the test_utils.py
 module -- since the test files are referenced from test_utils.py
 they should be in the same directory.  Preferences?

You could simply reuse Lib/test/keycert.pem (when in stdlib mode).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19262
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19246] freeing then reallocating lots of memory fails under Windows

2013-10-15 Thread STINNER Victor

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 using).  So unless Python does something to
_disable_ it (I don't know), there's nothing to try here.

Extract of the link:

To enable the LFH for a heap, use the GetProcessHeap function to
obtain a handle to the default heap of the calling process, or use the
handle to a private heap created by the HeapCreate function. Then call
the HeapSetInformation function with the handle.

It should be enabled explicitly.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19246
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-15 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
nosy: +haypo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19262
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19246] freeing then reallocating lots of memory fails under Windows

2013-10-15 Thread Antoine Pitrou

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 memory allocation
requests. Applications do not need to enable the LFH for their heaps.


--
title: freeing then reallocating lots of memory fails under Windows - freeing 
then reallocating lots of memory fails under Windows

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19246
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19246] freeing then reallocating lots of memory fails under Windows

2013-10-15 Thread STINNER Victor

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 the issue.

You have to modify your application to allocate objects differently, to limit 
manually the fragmentation of the heap. Another option, maybe more complex, is 
to create a subprocess to process data, and destroy the process to release the 
memory. multiprocessing helps to implement that.

I will maybe try jemalloc on Windows, but I prefer to open a new issue if I 
find something interesting.

--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19246
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19246] high fragmentation of the memory heap on Windows

2013-10-15 Thread STINNER Victor

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
http://bugs.python.org/issue19246
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19246] high fragmentation of the memory heap on Windows

2013-10-15 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
resolution: fixed - rejected

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19246
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16845] warnings.simplefilter should validate input

2013-10-15 Thread Vajrasky Kok

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 rep...@bugs.python.org
http://bugs.python.org/issue16845
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17221] Resort Misc/NEWS

2013-10-15 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
status: closed - open

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17221
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17221] Resort Misc/NEWS

2013-10-15 Thread Roundup Robot

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 tracker rep...@bugs.python.org
http://bugs.python.org/issue17221
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5411] Add xz support to shutil

2013-10-15 Thread Antoine Pitrou

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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13451] sched.py: speedup cancel() method

2013-10-15 Thread Antoine Pitrou

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 rep...@bugs.python.org
http://bugs.python.org/issue13451
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19184] dis module has incorrect docs for RAISE_VARARGS

2013-10-15 Thread Tyler B

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 simple and not repeat the code. 

# 2.7
Raises an exception. argc indicates the number of parameters to the raise 
statement, ranging from 0 to 3. The parameters consist of the traceback as 
TOS1, the value as TOS2, the exception as TOS3, and None as TOS4.

# 3.4  
Raises an exception. argc indicates the number of parameters to the raise 
statement, ranging from 0 to 2. The parameters consist of the cause as TOS1, 
the exception as TOS2, and None as TOS3.

How does this sound?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19184
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14407] concurrent.futures tests don't adher to test_cases protocol

2013-10-15 Thread Antoine Pitrou

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 review
versions: +Python 3.4 -Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14407
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15817] Misc/gdbinit: Expose command documentation to gdb help

2013-10-15 Thread Antoine Pitrou

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 tracker rep...@bugs.python.org
http://bugs.python.org/issue15817
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19219] speed up marshal.loads()

2013-10-15 Thread Jesús Cea Avión

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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19256] Optimize marshal format and add version token.

2013-10-15 Thread Jesús Cea Avión

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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19184] dis module has incorrect docs for RAISE_VARARGS

2013-10-15 Thread Tyler B

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 TOS order to keep the documentation as 
simple as possible.   

# 2.7
Raises an exception. argc indicates the number of parameters to the raise 
statement, ranging from 0 to 3. The parameters can consist of the traceback as 
TOS1, the value as TOS2, the exception as TOS3, and None as TOS4.

# 3.4  
Raises an exception. argc indicates the number of parameters to the raise 
statement, ranging from 0 to 2. The parameters can consist of the cause as 
TOS1, the exception as TOS2, and None as TOS3.

How does this sound?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19184
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19265] Increased test coverage for datetime pickling

2013-10-15 Thread Colin Williams

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 test coverage for datetime pickling
type: enhancement
versions: Python 3.5
Added file: http://bugs.python.org/file32132/datetimepickling.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19265
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19184] dis module has incorrect docs for RAISE_VARARGS

2013-10-15 Thread Georg Brandl

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 rep...@bugs.python.org
http://bugs.python.org/issue19184
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19266] Rename contextlib.ignore to contextlib.suppress

2013-10-15 Thread Nick Coghlan

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 ignore(FileNotFoundError):
os.remove('somefile.tmp')

The point has been made that ignore may easily be taken to mean preventing 
the exception being raised *at all* (since truly ignoring the exception would 
mean not skipping the rest of the with statement), rather than suppressing the 
exception in the context manager's __exit__ method.

If you look at the rest of the contextlib docs, as well as the docs for the 
with statement and context manager objects, they don't refer to returning True 
from __exit__ as ignoring the exception, but rather as *suppressing* it. Even 
the docs for contextlib.ignore now make use of the term suppress.

So I think it makes sense to rename the context manager to suppress, while 
keeping the same semantics:

with suppress(FileNotFoundError):
os.remove('somefile.tmp')

--
components: Library (Lib)
messages: 15
nosy: ncoghlan, rhettinger
priority: normal
severity: normal
stage: needs patch
status: open
title: Rename contextlib.ignore to contextlib.suppress
type: enhancement
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19266
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19266] Rename contextlib.ignore to contextlib.suppress

2013-10-15 Thread Nick Coghlan

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 context and return a Boolean flag indicating if any
exception that occurred should be suppressed.

Returning a true value from this method will cause the with statement
to suppress the exception and continue execution with the statement
immediately following the with statement. 

From http://docs.python.org/dev/reference/datamodel.html#object.__exit__

If an exception is supplied, and the method wishes to suppress the
exception (i.e., prevent it from being propagated), it should return a
true value.

From http://docs.python.org/dev/library/contextlib#contextlib.contextmanager

If an exception is trapped merely in order to log it or to perform
some action (rather than to suppress it entirely), the generator must
reraise that exception.

From http://docs.python.org/dev/library/contextlib#contextlib.ignore (!)

As with any other mechanism that completely suppresses exceptions, it
should only be used to cover very specific errors where silently
ignoring the exception is known to be the right thing to do.

From http://docs.python.org/dev/library/contextlib#contextlib.ExitStack

...if an inner callback suppresses or replaces an exception, then
outer callbacks will be passed arguments based on that updated state.

From 
http://docs.python.org/dev/library/contextlib#contextlib.ExitStack.enter_context

These context managers may suppress exceptions just as they normally
would if used directly as part of a with statement.

From http://docs.python.org/dev/library/contextlib#contextlib.ExitStack.push

By returning true values, these callbacks can suppress exceptions the
same way context manager __exit__() methods can.

From 
http://docs.python.org/dev/library/contextlib#contextlib.ExitStack.callback

Unlike the other methods, callbacks added this way cannot suppress
exceptions (as they are never passed the exception details).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19266
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19266] Rename contextlib.ignore to contextlib.suppress

2013-10-15 Thread Barry A. Warsaw

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 list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19266] Rename contextlib.ignore to contextlib.suppress

2013-10-15 Thread Zero Piraeus

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: +zero.piraeus
Added file: http://bugs.python.org/file32133/cligsu.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19266
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19265] Increased test coverage for datetime pickling

2013-10-15 Thread Antoine Pitrou

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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19266] Rename contextlib.ignore to contextlib.suppress

2013-10-15 Thread Nick Coghlan

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: http://www.python.org/psf/contrib/contrib-form/ (while this patch is 
mechanical enough to be OK without one, it's still good to take care of the 
formalities of granting the PSF clear redistribution rights for CPython 
contributions)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19266
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19266] Rename contextlib.ignore to contextlib.suppress

2013-10-15 Thread Zero Piraeus

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
http://bugs.python.org/issue19266
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19079] chameleon benchmark fails on 3.4

2013-10-15 Thread Brett Cannon

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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19267] Logging to file does not accept UTF16

2013-10-15 Thread Paweł Wroniszewski

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 = fs.decode(stream.encoding)

as Python can't really handle the following code:

fs = %s\n
print fs.decode('utf16') % u'foo'

--
components: Library (Lib)
messages: 21
nosy: pwronisz, vinay.sajip
priority: normal
severity: normal
status: open
title: Logging to file does not accept UTF16
type: behavior
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19267
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19267] Logging to file does not accept UTF16

2013-10-15 Thread STINNER Victor

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
 logging.root.addHandler(logging.FileHandler(filename='test.log',encoding='UTF16'))
 logging.error( u'b\u0142\u0105d')
 

localhost$ hexdump test.log
000 feff 0062 0142 0105 0064 000a  
00c

--
nosy: +haypo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19267
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19267] Logging to file does not accept UTF16

2013-10-15 Thread STINNER Victor

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 rep...@bugs.python.org
http://bugs.python.org/issue19267
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19268] Local variable created with reflection cannot be referenced with identifier

2013-10-15 Thread Ivan Pozdeev

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()
Traceback (most recent call last):
  File stdin, line 1, in module
  File stdin, line 3, in test
NameError: global name 'a' is not defined


--
components: Interpreter Core
messages: 24
nosy: native_api
priority: normal
severity: normal
status: open
title: Local variable created with reflection cannot be referenced with 
identifier
type: behavior
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19268
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19268] Local variable created with reflection cannot be referenced with identifier

2013-10-15 Thread R. David Murray

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 tracker rep...@bugs.python.org
http://bugs.python.org/issue19268
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-15 Thread Guido van Rossum

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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19262
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19266] Rename contextlib.ignore to contextlib.suppress

2013-10-15 Thread Raymond Hettinger

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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12866] Add support for 24-bit samples in the audioop module

2013-10-15 Thread Serhiy Storchaka

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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18725] Multiline shortening

2013-10-15 Thread Roundup Robot

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 rep...@bugs.python.org
http://bugs.python.org/issue18725
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19079] chameleon benchmark fails on 3.4

2013-10-15 Thread Georg Brandl

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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19079] chameleon benchmark fails on 3.4

2013-10-15 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19079
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18725] Multiline shortening

2013-10-15 Thread Serhiy Storchaka

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
http://bugs.python.org/issue18725
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13451] sched.py: speedup cancel() method

2013-10-15 Thread Serhiy Storchaka

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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19267] Logging to file does not accept UTF16

2013-10-15 Thread Paweł Wroniszewski

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 - I checked. Maybe some code refactoring could be done then, as 
I'm not sure if the two nested 'try' statements are needed in such case.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19267
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19267] Logging to file does not accept UTF16

2013-10-15 Thread Paweł Wroniszewski

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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13451] sched.py: speedup cancel() method

2013-10-15 Thread Giampaolo Rodola'

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 issue was waiting for Raymond's approval)

- the upside (other than the great speedup) is that I doubt anyone relies on 
that and scheduler._queue is not supposed to be used in the first place

- tulip's scheduler already provides something very similar to what this patch 
proposes so no action should be taken on that front


I personally think this should go in but I'd like to hear an OK from Raymond 
first.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13451
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13451] sched.py: speedup cancel() method

2013-10-15 Thread Giampaolo Rodola'

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 rep...@bugs.python.org
http://bugs.python.org/issue13451
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13451] sched.py: speedup cancel() method

2013-10-15 Thread Giampaolo Rodola'

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 the enter() speedup was 
introduced (enter() method apparently is untouched by cancel_2.patch).

--
Added file: http://bugs.python.org/file32136/cancel3.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13451
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19085] Add tkinter basic options tests

2013-10-15 Thread Ned Deily

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)
--
Traceback (most recent call last):
  File 
/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/test_ttk/test_widgets.py,
 line 22, in test_class
self.assertEqual(widget['class'], '')
  File 
/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/__init__.py,
 line 1267, in cget
return self.tk.call(self._w, 'cget', '-' + key)
_tkinter.TclError: unknown option -class

==
ERROR: test_style (tkinter.test.test_ttk.test_widgets.ScrollbarTest)
--
Traceback (most recent call last):
  File 
/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/test_ttk/test_widgets.py,
 line 44, in test_style
self.assertEqual(widget['style'], '')
  File 
/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/__init__.py,
 line 1267, in cget
return self.tk.call(self._w, 'cget', '-' + key)
_tkinter.TclError: unknown option -style

==
FAIL: test_orient (tkinter.test.test_ttk.test_widgets.ScrollbarTest)
--
Traceback (most recent call last):
  File 
/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py,
 line 426, in test_orient
self.checkEnumParam(widget, 'orient', 'horizontal', 'vertical')
  File 
/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py,
 line 244, in checkEnumParam
errmsg='ambiguous' + errmsg2)
  File 
/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py,
 line 174, in checkInvalidParam
widget[name] = value
AssertionError: TclError not raised

--
Ran 233 tests in 2.823s

FAILED (failures=1, errors=2, skipped=1)
test test_ttk_guionly failed
1 test failed:
test_ttk_guionly

---

With Aqua Carbon Tcl/Tk 8.4.19 (using ActiveState's 8.4.19) on OS X 10.8.5, 
running test_ttk_guionly (in 32-bit mode):

=
ERROR: test_class (tkinter.test.test_ttk.test_widgets.ScrollbarTest)
--
Traceback (most recent call last):
  File 
/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/test_ttk/test_widgets.py,
 line 22, in test_class
self.assertEqual(widget['class'], '')
  File 
/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/__init__.py,
 line 1267, in cget
return self.tk.call(self._w, 'cget', '-' + key)
_tkinter.TclError: unknown option -class

==
ERROR: test_style (tkinter.test.test_ttk.test_widgets.ScrollbarTest)
--
Traceback (most recent call last):
  File 
/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/test_ttk/test_widgets.py,
 line 44, in test_style
self.assertEqual(widget['style'], '')
  File 
/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/__init__.py,
 line 1267, in cget
return self.tk.call(self._w, 'cget', '-' + key)
_tkinter.TclError: unknown option -style

==
FAIL: test_values (tkinter.test.test_ttk.test_widgets.ComboboxTest)
--
Traceback (most recent call last):
  File 
/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/test_ttk/test_widgets.py,
 line 351, in test_values
self.assertEqual(self.combo['values'], '')
AssertionError: () != ''

==
FAIL: test_borderwidth (tkinter.test.test_ttk.test_widgets.FrameTest)
--
Traceback (most recent call last):
  File 
/py/dev/3x/root/fwd/Library/Frameworks/pytest_10.8.framework/Versions/3.4/lib/python3.4/tkinter/test/support.py,
 line 336, in test_borderwidth
0, 1.3, 2.6, 6, -2, '10p')
  File 

[issue19267] Logging to file does not accept UTF16

2013-10-15 Thread Natal Ngétal

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
http://bugs.python.org/issue19267
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14407] concurrent.futures tests don't adher to test_cases protocol

2013-10-15 Thread Antoine Pitrou

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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14407] concurrent.futures tests don't adher to test_cases protocol

2013-10-15 Thread Roundup Robot

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 unittest test discovery in test_concurrent_futures.
http://hg.python.org/cpython/rev/9cc40bc5f02b

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14407
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19267] Logging to file does not accept UTF16

2013-10-15 Thread STINNER Victor

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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19267] Logging to file does not accept UTF16

2013-10-15 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
components: +Unicode
nosy: +ezio.melotti

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19267
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13451] sched.py: speedup cancel() method

2013-10-15 Thread Serhiy Storchaka

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 (perhaps regression 
was introduced in issue18432).

Unpatched:

test_cancel: time=4.05863 : calls=1 : stdev=0.0
test_empty : time=0.00499 : calls=1 : stdev=0.0
test_enter : time=0.03537 : calls=1 : stdev=0.0
test_queue : time=37.82003 : calls=1 : stdev=0.0
test_run   : time=0.05289 : calls=1 : stdev=0.0

cancel3.patch:

test_cancel: time=0.00649 : calls=1 : stdev=0.0
test_empty : time=0.00704 : calls=1 : stdev=0.0
test_enter : time=0.03959 : calls=1 : stdev=0.0
test_queue : time=45.34278 : calls=1 : stdev=0.0
test_run   : time=0.05477 : calls=1 : stdev=0.0

cancel_4.patch:

test_cancel: time=0.00889 : calls=1 : stdev=0.0
test_empty : time=0.00636 : calls=1 : stdev=0.0
test_enter : time=0.03092 : calls=1 : stdev=0.0
test_queue : time=3.93284 : calls=1 : stdev=0.0
test_run   : time=0.05294 : calls=1 : stdev=0.0

--
Added file: http://bugs.python.org/file32138/cancel_4.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13451
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19085] Add tkinter basic options tests

2013-10-15 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you Ned.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19085
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19267] Logging to file does not accept UTF16

2013-10-15 Thread Roundup Robot

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
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19267
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19267] Logging to file does not accept UTF16

2013-10-15 Thread STINNER Victor

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/

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19267
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19267] Logging to file does not accept UTF16

2013-10-15 Thread Paweł Wroniszewski

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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19268] Local variable created with reflection cannot be referenced with identifier

2013-10-15 Thread Ethan Furman

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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-15 Thread Guido van Rossum

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
http://bugs.python.org/issue19262
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-15 Thread Guido van Rossum

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 rep...@bugs.python.org
http://bugs.python.org/issue19262
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-15 Thread Guido van Rossum

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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19262] Add asyncio (tulip, PEP 3156) to stdlib

2013-10-15 Thread Guido van Rossum

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
http://bugs.python.org/issue19262
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19184] dis module has incorrect docs for RAISE_VARARGS

2013-10-15 Thread Tyler B

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 consist of None as TOS1, the 
exception as TOS2, the value as TOS3, and the traceback as TOS4.

# 3.4  
Raises an exception. argc indicates the number of parameters to the raise 
statement, ranging from 0 to 2. The parameters can consist of None as TOS1, the 
exception as TOS2, and the cause as TOS3.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19184
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14407] concurrent.futures tests don't adher to test_cases protocol

2013-10-15 Thread Zachary Ware

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.

Unfortunately, there's no clear-cut best solution in the other issue.  A couple 
months ago, Serhiy posted a question on python-dev[1] about how to solve it, 
which I haven't seen any replies to.  Antoine, do you have any suggestions?

[1] https://mail.python.org/pipermail/python-dev/2013-August/127893.html

--
nosy: +serhiy.storchaka, zach.ware

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14407
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19268] Local variable created with reflection cannot be referenced with identifier

2013-10-15 Thread R. David Murray

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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19267] Logging to file does not accept UTF16

2013-10-15 Thread Jesús Cea Avión

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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19268] Local variable created with reflection cannot be referenced with identifier

2013-10-15 Thread Ethan Furman

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 rep...@bugs.python.org
http://bugs.python.org/issue19268
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19269] subtraction of pennies incorrect rounding or truncation problem

2013-10-15 Thread Pete

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
status: open
title: subtraction of pennies incorrect rounding or truncation problem
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file32141/py_subtraction_bug

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19269
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19269] subtraction of pennies incorrect rounding or truncation problem

2013-10-15 Thread Tim Peters

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
resolution:  - invalid
stage:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19269
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com