[issue2771] Test issue

2012-11-15 Thread Ezio Melotti

Ezio Melotti added the comment:

testing the new version of irker

--

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



[issue2771] Test issue

2012-11-15 Thread Ezio Melotti

Ezio Melotti added the comment:

another test

--

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



[issue16475] Support object instancing and recursion in marshal

2012-11-15 Thread Kristján Valur Jónsson

New submission from Kristján Valur Jónsson:

The format used by the marshal module does not support instancing.  This 
precludes certain data optimizations, such as sharing string constants, common 
tuples, even common code objects.  Since the marshal format is used to write 
compiled code, this makes it impossible to do data optimization on code prior 
to writing it out.

This patch adds proper instancing support for all the supported types and 
increases the default version to three.

(A separate defect/regression is that interned strings are no longer preserved 
as was implemented in version 1 of the original 2.x branch.  This also negates 
any interning done at compile time.  That is a separate defect.)

--
components: Interpreter Core
files: marshalinstance.patch
keywords: patch
messages: 175603
nosy: kristjan.jonsson
priority: normal
severity: normal
status: open
title: Support object instancing and recursion in marshal
type: enhancement
versions: Python 3.4
Added file: http://bugs.python.org/file27987/marshalinstance.patch

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



[issue2771] Test issue

2012-11-15 Thread Ezio Melotti

Ezio Melotti added the comment:

test

--

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



[issue16469] Exceptions raised by Fraction() different from those raised by int()

2012-11-15 Thread Mark Dickinson

Mark Dickinson added the comment:

 I think consistent behavior between int() and Fraction() is valuable.

Agreed.  If no-one objects I'll fix the Decimal - Fraction and float - 
Fraction conversions to match what Decimal - int and float - int currently do 
(ValueError and OverflowError).

Then we can open a new issue to discuss having infinities give ValueError 
versus OverflowError for all four cases of {float, Decimal} - {int, Fraction}.

--

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



[issue16475] Support object instancing and recursion in marshal

2012-11-15 Thread Kristján Valur Jónsson

Kristján Valur Jónsson added the comment:

Second patch which adds the missing internment support for strings, including 
unittests.

--
Added file: http://bugs.python.org/file27988/marshalinstance.patch

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



[issue16476] Trailing spaces in pretty-printed JSON

2012-11-15 Thread Leo Liu

New submission from Leo Liu:

python -mjson.tool some_file.json  x.json

x.json will have trailing white spaces.

Also reported here: http://thread.gmane.org/gmane.comp.python.devel/135311

--
messages: 175607
nosy: leoliu
priority: normal
severity: normal
status: open
title: Trailing spaces in pretty-printed JSON
type: behavior
versions: Python 2.7

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



[issue16476] Trailing spaces in pretty-printed JSON

2012-11-15 Thread Ezio Melotti

Ezio Melotti added the comment:

This is a duplicate of #16333.

--
nosy: +ezio.melotti
resolution:  - duplicate
stage:  - committed/rejected
status: open - closed
superseder:  - Trailing whitespace in json dump when using indent

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



[issue2771] Test issue

2012-11-15 Thread Ezio Melotti

Ezio Melotti added the comment:

test

--

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



[issue2771] Test issue

2012-11-15 Thread Ezio Melotti

Ezio Melotti added the comment:

another test

--

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



[issue2771] Test issue

2012-11-15 Thread Ezio Melotti

Ezio Melotti added the comment:

another test

--

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



[issue2771] Test issue

2012-11-15 Thread Ezio Melotti

Ezio Melotti added the comment:

test

--

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



[issue2771] Test issue

2012-11-15 Thread Ezio Melotti

Ezio Melotti added the comment:

another test

--

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



[issue2771] Test issue

2012-11-15 Thread Ezio Melotti

Ezio Melotti added the comment:

final test

--

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



[issue16465] dict creation performance regression

2012-11-15 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

 In the end, it's mostly a wash.

Yes, it's predictable. The gain is too small and undistinguished on a 
background of random noise. May be more long-running benchmark will show more 
reliable results, but in any case, the gain is small.

My long-running hard-optimized simulation is about 5% faster on 3.2 or patched 
3.4 comparing to 3.3. But this is not a typical program.

--

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



[issue16477] tarfile fails to close file handles in case of exception

2012-11-15 Thread Sam Thursfield

New submission from Sam Thursfield:

Exceptions such as disk full during extraction cause tarfile to leak file 
handles. Besides being messy, it causes real problems if, for example, the 
target file is on a mount that should be unmounted before the program exits - 
in this case, the unmount will fail as there are still open file handles.

Simplest solution I can see is to change:

def makefile(self, tarinfo, targetpath):
Make a file called targetpath.

source = self.extractfile(tarinfo)
target = bltn_open(targetpath, wb)
copyfileobj(source, target)
source.close()
target.close()

to this:

def makefile(self, tarinfo, targetpath):
Make a file called targetpath.

source = self.extractfile(tarinfo)
try:
with open(targetpath, wb) as target:
shutil.copyfileobj(source, target)
finally:
source.close()

--
components: Library (Lib)
messages: 175616
nosy: ssam
priority: normal
severity: normal
status: open
title: tarfile fails to close file handles in case of exception
type: behavior
versions: Python 3.5

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



[issue16477] tarfile fails to close file handles in case of exception

2012-11-15 Thread Sam Thursfield

Sam Thursfield added the comment:

sorry, replace 'open' with 'bltn_open' in the above comment - no need to change 
it.

--

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



[issue16477] tarfile fails to close file handles in case of exception

2012-11-15 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Issue16408 is similar issue for zipfile.

--
keywords: +easy
nosy: +lars.gustaebel, serhiy.storchaka
stage:  - needs patch
type: behavior - resource usage
versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4 -Python 3.5

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



[issue16391] add terminator ctor argument to logging.StreamHandlers derived handlers

2012-11-15 Thread Vinay Sajip

Vinay Sajip added the comment:

I've added the ability to set handler properties via configuration slightly 
more easily, see the code in changeset a81ae412174a (the unit test shows how 
the configuration looks in practice). This enhancement cannot be added to 
earlier Python versions (no feature additions are allowed on point releases), 
but will be present in Python 3.4 onwards.

--
versions:  -Python 3.2, Python 3.3, Python 3.5

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



[issue16144] misleading sentence in reference/import

2012-11-15 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
resolution:  - fixed
stage:  - committed/rejected
status: open - closed
type:  - behavior

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



[issue16144] misleading sentence in reference/import

2012-11-15 Thread Andrew Svetlov

Andrew Svetlov added the comment:

Fixed in a8ca14983ab1 and 9961a0dafcc7. Thanks, Manuel.

--
nosy: +asvetlov

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



[issue16470] Backport set and dictionary comprehensions in tutorial to 2.7

2012-11-15 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue16386] imp.find_module does not specify registry key it searches on windows

2012-11-15 Thread Andrew Svetlov

Andrew Svetlov added the comment:

I think much more important to mention registry key in 
http://docs.python.org/3/library/importlib.html#importlib.machinery.WindowsRegistryFinder
 
``imp`` is private module to access implementation internals but ``importlib`` 
is public interface to import system

--
nosy: +asvetlov

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



[issue16391] add terminator ctor argument to logging.StreamHandlers derived handlers

2012-11-15 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue16392] import crashes on circular imports in ext modules

2012-11-15 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue16404] Uses of PyLong_FromLong that don't check for errors

2012-11-15 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue16478] Fix division in tabnanny

2012-11-15 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

Tabnanny should use floor division in calculation, the comment says about this. 
But in the current Python 3 code / was not changed to //.

--
components: Demos and Tools, Library (Lib)
files: tabnanny_div.patch
keywords: easy, patch
messages: 175622
nosy: serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Fix division in tabnanny
type: behavior
versions: Python 3.2, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file27989/tabnanny_div.patch

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



[issue16422] Decimal constants should be the same for py c module versions

2012-11-15 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue16427] Faster hash implementation

2012-11-15 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue16429] Emit SyntaxWarning for code that risks UnboundLocalError

2012-11-15 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue16434] SocketServer call shutdown in the wrong way

2012-11-15 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue16444] Use support.TESTFN_UNDECODABLE on UNIX

2012-11-15 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue16447] SEGFAULT when setting type.__name__

2012-11-15 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue16446] pdb raises BdbQuit on 'quit' when started with set_trace

2012-11-15 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
nosy: +asvetlov

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



[issue16479] Can't install Python 3 on Redhat Linux, make failed

2012-11-15 Thread Stephen

New submission from Stephen:

Machine is Redhat Linux 6.2. Tried to install Python3.3 build failed in the 
make step.

---
[sliu@wtl-build-1 Python-3.3.0]$ uname -a
Linux wtl-build-1 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 
x86_64 x86_64 GNU/Linux
[sliu@wtl-build-1 Python-3.3.0]$ pwd
/tmp/Python-3.3.0
[snip]
config.status: pyconfig.h is unchanged
creating Modules/Setup
creating Modules/Setup.local
creating Makefile
[sliu@wtl-build-1 Python-3.3.0]$ make 
Wrapping make for user sliu on hostname wtl-build-1...
gcc: Parser/acceler.o: No such file or directory
gcc: Parser/grammar1.o: No such file or directory
gcc: Parser/listnode.o: No such file or directory
gcc: Parser/node.o: No such file or directory
gcc: Parser/parser.o: No such file or directory
gcc: Parser/bitset.o: No such file or directory
gcc: Parser/metagrammar.o: No such file or directory
gcc: Parser/firstsets.o: No such file or directory
gcc: Parser/grammar.o: No such file or directory
gcc: Parser/pgen.o: No such file or directory
gcc: Objects/obmalloc.o: No such file or directory
gcc: Python/dynamic_annotations.o: No such file or directory
gcc: Python/mysnprintf.o: No such file or directory
gcc: Python/pyctype.o: No such file or directory
gcc: Parser/tokenizer_pgen.o: No such file or directory
gcc: Parser/printgrammar.o: No such file or directory
gcc: Parser/parsetok_pgen.o: No such file or directory
gcc: Parser/pgenmain.o: No such file or directory
make[1]: *** [Parser/pgen] Error 1
make: *** [Include/graminit.h] Error 2
Build with args  took 0 seconds, status complete
[sliu@wtl-build-1 Python-3.3.0]$ 

---

Tried different Linux machines, same error. Tried Python 3.3, 3.1 and 3.0, same 
error.

Any idea?
Stephen

--
components: Installation
messages: 175623
nosy: stephen...@gmail.com
priority: normal
severity: normal
status: open
title: Can't install Python 3 on Redhat Linux, make failed
type: compile error
versions: Python 3.3

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



[issue16479] Can't install Python 3 on Redhat Linux, make failed

2012-11-15 Thread Stephen

Stephen added the comment:

Sorry, missed the configure command in the previous message. It should have 
been:

---
[sliu@wtl-build-1 Python-3.3.0]$ uname -a
Linux wtl-build-1 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 
x86_64 x86_64 GNU/Linux
[sliu@wtl-build-1 Python-3.3.0]$ pwd
/tmp/Python-3.3.0
[sliu@wtl-build-1 Python-3.3.0]$ ./configure 
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... linux
checking for --without-gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for --with-cxx-main=compiler... no
checking for g++... no
configure: WARNING:

  By default, distutils will build C++ extension modules with g++.
  If this is not intended, then set CXX on the configure command line.
  
checking for -Wl,--no-as-needed... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
[snip]
config.status: pyconfig.h is unchanged
creating Modules/Setup
creating Modules/Setup.local
creating Makefile
[sliu@wtl-build-1 Python-3.3.0]$ make 
Wrapping make for user sliu on hostname wtl-build-1...
gcc: Parser/acceler.o: No such file or directory
gcc: Parser/grammar1.o: No such file or directory
gcc: Parser/listnode.o: No such file or directory
gcc: Parser/node.o: No such file or directory
gcc: Parser/parser.o: No such file or directory
gcc: Parser/bitset.o: No such file or directory
gcc: Parser/metagrammar.o: No such file or directory
gcc: Parser/firstsets.o: No such file or directory
gcc: Parser/grammar.o: No such file or directory
gcc: Parser/pgen.o: No such file or directory
gcc: Objects/obmalloc.o: No such file or directory
gcc: Python/dynamic_annotations.o: No such file or directory
gcc: Python/mysnprintf.o: No such file or directory
gcc: Python/pyctype.o: No such file or directory
gcc: Parser/tokenizer_pgen.o: No such file or directory
gcc: Parser/printgrammar.o: No such file or directory
gcc: Parser/parsetok_pgen.o: No such file or directory
gcc: Parser/pgenmain.o: No such file or directory
make[1]: *** [Parser/pgen] Error 1
make: *** [Include/graminit.h] Error 2
Build with args  took 0 seconds, status complete
[sliu@wtl-build-1 Python-3.3.0]$ 

---

--

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



[issue16469] Exceptions raised by Fraction() different from those raised by int()

2012-11-15 Thread Alexey Kachayev

Alexey Kachayev added the comment:

Patch is attached for {float, Decimal} - {int, Fraction} consistency (with 
ValueError and OverflowError). Test cases are changed as well. 

I can also change OverflowError to ValueError for all cases, but I'm not sure 
should I open for this separated issue or continue to work with this one.

--
keywords: +patch
nosy: +kachayev
Added file: http://bugs.python.org/file27990/issue16469.diff

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



[issue16480] pyvenv 3.3 fails to create symlinks for virtualenv/local/{bin, lib} to virtualenv/{bin, lib}

2012-11-15 Thread Marco Amadori

New submission from Marco Amadori:

The solution to work around the bug is there:

http://ipoveraviancarriers.blogspot.it/2012/11/python-33-and-pyvenv-hackish-solution.html

But probably pyvenv should be patched in order to create symlinks.

Thanks!

--
components: None
messages: 175626
nosy: Marco.Amadori
priority: normal
severity: normal
status: open
title: pyvenv 3.3 fails to create symlinks for virtualenv/local/{bin,lib} to 
virtualenv/{bin,lib}
type: behavior
versions: Python 3.3

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



[issue15783] decimal.localcontext(None) fails when using the C accelerator module

2012-11-15 Thread Stefan Krah

Stefan Krah added the comment:

Should we go ahead with this? If so, then I think it only makes sense
to change *all* undocumented cases of None default args. Here's a
case that used rounding=None in quantize():

https://bitbucket.org/simplecodes/wtforms/issue/117/test-failure-with-python-33

--

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



[issue15783] decimal.localcontext(None) fails when using the C accelerator module

2012-11-15 Thread Stefan Krah

Stefan Krah added the comment:

By all cases I mean the ones listed in msg169144, not the Number methods.

--

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



[issue16446] pdb raises BdbQuit on 'quit' when started with set_trace

2012-11-15 Thread Serhiy Storchaka

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


--
versions: +Python 3.2, Python 3.3

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



[issue16481] process handle leak on windows in multiprocessing

2012-11-15 Thread Richard Oudkerk

New submission from Richard Oudkerk:

On Windows the handle for a child process is not closed when the popen/process 
object is garbage collected.

--
messages: 175629
nosy: sbt
priority: normal
severity: normal
stage: needs patch
status: open
title: process handle leak on windows in multiprocessing
type: resource usage
versions: Python 3.3, Python 3.4

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



[issue16482] pdb.set_trace() clobbering traceback on error

2012-11-15 Thread A Kaptur

New submission from A Kaptur:

pdb.set_trace() is overwriting the actual traceback when exiting with an error. 
 See minimal recreation here: https://gist.github.com/4079971

--
messages: 175630
nosy: akaptur
priority: normal
severity: normal
status: open
title: pdb.set_trace() clobbering traceback on error
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3

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



[issue16469] Exceptions raised by Fraction() different from those raised by int()

2012-11-15 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
stage: needs patch - patch review

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



[issue16469] Exceptions raised by Fraction() different from those raised by int()

2012-11-15 Thread Alexey Kachayev

Alexey Kachayev added the comment:

I also attached full_issue patch: change OverflowError to ValueError for all 
cases.

--
Added file: http://bugs.python.org/file27991/full_issues16469.diff

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



[issue16475] Support object instancing and recursion in marshal

2012-11-15 Thread Antoine Pitrou

Antoine Pitrou added the comment:

marshal is only supposed to be used to serialize code objects, not arbitrary 
user data. Why don't you use pickle?

--
nosy: +pitrou

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



[issue16469] Exceptions raised by Fraction() different from those raised by int()

2012-11-15 Thread Alexey Kachayev

Changes by Alexey Kachayev kacha...@gmail.com:


Added file: http://bugs.python.org/file27992/full_issues16469_fixed.diff

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



[issue12908] Update dev-in-a-box for new coverage steps

2012-11-15 Thread Brett Cannon

Brett Cannon added the comment:

Fixed in various commits.

--
resolution:  - fixed
stage: needs patch - committed/rejected
status: open - closed

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



[issue16434] SocketServer call shutdown in the wrong way

2012-11-15 Thread Andrew Svetlov

Changes by Andrew Svetlov andrew.svet...@gmail.com:


--
stage:  - needs patch

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



[issue15031] Split .pyc parsing from module loading

2012-11-15 Thread Brett Cannon

Brett Cannon added the comment:

Here is my current plan::

parse_bytecode_file(data, source_stats, source_path) - code

This will take in the bytes from the bytecode file and a stats dict from 
SourceLoader.path_stats(). The method will parse the bytecode file, verify the 
magic number, timestamp, and file size. If all of that passes, then the 
bytecode will be compiled into a code object (with its source path fixed if 
necessary based on source_path) and returned. All arguments are required as you 
should explicitly state you want to skip sanity checks of the bytecode and that 
you don't want to fix the file path.

--
stage:  - test needed

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



[issue15627] Add a method to importlib.abc.SourceLoader for converting source to a code object

2012-11-15 Thread Brett Cannon

Brett Cannon added the comment:

Might name this compile_source() instead.

--

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



[issue15031] Split .pyc parsing from module loading

2012-11-15 Thread Brett Cannon

Brett Cannon added the comment:

Might name it compile_bytecode_file() instead.

--

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



[issue16281] TODO in tailmatch(): it does not support backward in all cases

2012-11-15 Thread Serhiy Storchaka

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


--
components: +Interpreter Core
stage:  - needs patch

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



[issue16458] subprocess.py throw The handle is invalid error on duplicating the STD_INPUT_HANDLE

2012-11-15 Thread Tim Golden

Tim Golden added the comment:

Karthk, if you can run up an up-to-date patch and a test I'm willing to review 
and commit it, otherwise this one will lie quiet.

--

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



[issue15767] add ModuleNotFoundError

2012-11-15 Thread Brett Cannon

Brett Cannon added the comment:

Should it be ModuleNotFoundError or ModuleNotFound? It's not necessarily an 
error if a module doesn't exist, so failing to find it isn't quite that 
negative. It also acts somewhat like StopIteration/GeneratorExit which also 
don't have the common Error suffix of exception names.

--

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



[issue16469] Exceptions raised by Fraction() different from those raised by int()

2012-11-15 Thread Mark Dickinson

Mark Dickinson added the comment:

The first patch looks great (modulo a stray extra line in test_int). Thank you!

Let's just apply that for now; I'll open a new issue for the suggested 
OverflowError / ValueError switch.  (Getting rid of the TypeError seems a clear 
win to me;  switching the OverflowError to ValueError may be more 
controversial.)

--

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



[issue15767] add ModuleNotFoundError

2012-11-15 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


--
stage: needs patch - test needed

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



[issue16469] Exceptions raised by Fraction() different from those raised by int()

2012-11-15 Thread Mark Dickinson

Mark Dickinson added the comment:

Fixed in http://hg.python.org/cpython/rev/a2b54b6d9759.  Thanks for the report 
and patch.

--
resolution:  - fixed
status: open - closed

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



[issue16391] add terminator ctor argument to logging.StreamHandlers derived handlers

2012-11-15 Thread Nikolay Bryskin

Nikolay Bryskin added the comment:

Great, thanks!

--

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



[issue16483] Make int(float('inf')) raise ValueError rather than OverflowError.

2012-11-15 Thread Mark Dickinson

New submission from Mark Dickinson:

[Broken out of the issue 16469 discussion about infinity - Fraction and nan - 
Fraction conversions.]

Conversions from float('inf') or Decimal('inf') to int (or Fraction) currently 
generate an OverflowError, while conversions from nan give a ValueError.  I'm 
of the opinion that it would make more sense for both conversions to generate 
ValueError, and I'm opening this issue to track discussion for that.  There's 
also a reasonable case that the behaviour is fine as it is, and there's little 
to be gained by changing it.

--
messages: 175642
nosy: mark.dickinson
priority: normal
severity: normal
status: open
title: Make int(float('inf')) raise ValueError rather than OverflowError.
type: enhancement
versions: Python 3.4

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



[issue9893] Removing the Misc/Vim/ files

2012-11-15 Thread Brett Cannon

Brett Cannon added the comment:

Files removed in 7e37a6c76e36.

--
resolution:  - fixed
status: open - closed

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



[issue16469] Exceptions raised by Fraction() different from those raised by int()

2012-11-15 Thread Mark Dickinson

Mark Dickinson added the comment:

See issue #16483 for the ValueError / OverflowError switch.  To be honest, 
while I would have preferred ValueError to OverflowError for int(float('inf')) 
if we were doing this from scratch, I'm not convinced that it's actually worth 
switching.

--

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



[issue7620] Vim syntax highlight

2012-11-15 Thread Brett Cannon

Brett Cannon added the comment:

7e37a6c76e36 removed the Misc/Vim files since we just were not staying on top 
of them. Thanks for the patch regardless, July. If the syntax file in Vim 
itself is off I would submit those as I have found the Vim maintainers very 
willing to accept fixes.

--
resolution:  - wont fix
status: open - closed

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



[issue9084] vimrc: use matchall() instead of :match to allow multiple matches

2012-11-15 Thread Brett Cannon

Brett Cannon added the comment:

7e37a6c76e36 removes the files in Misc/Vim. Thanks for the patch regardless, 
Daniel. If the syntax file in Vim is out of date then I would suggest trying to 
submit a patch. I have found the Vim maintainer quite willing to take fixes.

--
resolution:  - wont fix
status: open - closed

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



[issue15783] decimal.localcontext(None) fails when using the C accelerator module

2012-11-15 Thread Mark Dickinson

Mark Dickinson added the comment:

 Should we go ahead with this?

Sure:  if you're willing to write the patch, go for it.

--

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



[issue9893] Removing the Misc/Vim/ files

2012-11-15 Thread Éric Araujo

Éric Araujo added the comment:

Did you decide against including README.vim after all or just forgot that part?

--

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



[issue16479] Can't install Python 3 on Redhat Linux, make failed

2012-11-15 Thread Stephen

Stephen added the comment:

Please ignore this. I have figured out it was caused by our company's make 
wrapper. Using native make works like a charm.

--

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



[issue15767] add ModuleNotFoundError

2012-11-15 Thread Chris Jerdonek

Chris Jerdonek added the comment:

Since it subclasses ImportError, it seems like we're already considering it to 
be an error?  StopIteration and GeneratorExit don't inherit from an Error 
exception type unlike, say, the OSError exception types.

--

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



[issue15767] add ModuleNotFoundError

2012-11-15 Thread Chris Jerdonek

Chris Jerdonek added the comment:

I meant to include this link for convenience:

http://docs.python.org/dev/library/exceptions.html#exception-hierarchy

--

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



[issue16479] Can't install Python 3 on Redhat Linux, make failed

2012-11-15 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Ok, closing then.

--
nosy: +pitrou
resolution:  - invalid
status: open - closed

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



[issue16478] Fix division in tabnanny

2012-11-15 Thread Antoine Pitrou

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


--
nosy: +georg.brandl

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



[issue12848] pickle.py treats 32bit lengths as signed, but _pickle.c as unsigned

2012-11-15 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The C implementation writes and reads BINBYTES and BINUNICODE up to 4G (on 
64-bit platform). The Python implementation writes and reads BINBYTES and 
BINUNICODE up to 2G. What should be compatible fix? Allow the Python 
implementation to write and read up to 4G? Then Python can pickle a large data 
which can't be unpickled on non-patched Python (and on 2.7). Limit size to 2G? 
Then non-patched Python (including 3.1) can pickle a data which can't be 
unpickled on patched Python.

Also there is an unpleasant fact that 64-bit Python can pickle data which can't 
unpickle 32-bit Python.

--

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



[issue16483] Make int(float('inf')) raise ValueError rather than OverflowError.

2012-11-15 Thread Alexey Kachayev

Alexey Kachayev added the comment:

Patch is attached (ported from full issue patch for issue 16469).

--
keywords: +patch
nosy: +kachayev
Added file: http://bugs.python.org/file27993/issue16483.diff

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



[issue16469] Exceptions raised by Fraction() different from those raised by int()

2012-11-15 Thread Alexey Kachayev

Alexey Kachayev added the comment:

Ok, I think that ValueError is more appropriate and I have already attached 
adopted patch for issue 16483.

--

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



[issue10049] Add a no-op (null) context manager to contextlib

2012-11-15 Thread Dwayne Litzenberger

Dwayne Litzenberger added the comment:

After seeing a context manager named like TempfileIfNeeded(..., cond), whole 
sole purpose is to handle the conditional case, I'm firmly +1 on this proposal.

It's much easier to just read with Tempfile() if cond else nullcontext(): 
than to read through another level of indirection every time someone wanted 
some conditional logic on a context manager.

Is there any chance that this issue could be reopened?

Perhaps a more elegant solution would be to modify the with statement so that 
any object can be given to it (then we could just use None directly), but I 
suspect that would be a tad more controversial. ;)

--
nosy: +DLitz

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



[issue16386] imp.find_module does not specify registry key it searches on windows

2012-11-15 Thread Eric Snow

Eric Snow added the comment:

I agree with Andrew.

--

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



[issue15627] Add a method to importlib.abc.SourceLoader for converting source to a code object

2012-11-15 Thread Eric Snow

Eric Snow added the comment:

Though I haven't been able to get to this, I do have a demo of sorts that I've 
been using elsewhere:

https://bitbucket.org/ericsnowcurrently/pylt/src/default/pylt/_importing.py?at=default#cl-225

--

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



[issue15767] add ModuleNotFoundError

2012-11-15 Thread Eric Snow

Eric Snow added the comment:

I'd say ModuleNotFoundError.  You could argue that other exception types aren't 
really errors in certain circumstances.  I'd think that generally this would be 
an error.

--

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



[issue15767] add ModuleNotFoundError

2012-11-15 Thread Eric Snow

Eric Snow added the comment:

Effectively the exception indicates that the import system had an error.

--

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



[issue15031] Split .pyc parsing from module loading

2012-11-15 Thread Nick Coghlan

Nick Coghlan added the comment:

Perhaps go a bit more generic and call it something like load_cached_data?

--

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



[issue10049] Add a no-op (null) context manager to contextlib

2012-11-15 Thread Nick Coghlan

Nick Coghlan added the comment:

No, an empty ExitStack() instance already works fine as a no-op context manager 
in 3.3: 
http://docs.python.org/3/library/contextlib#simplifying-support-for-single-optional-context-managers

We're not going to add a dedicated one under a different name.

--

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



[issue9893] Removing the Misc/Vim/ files

2012-11-15 Thread Brett Cannon

Brett Cannon added the comment:

I decided against it. If Emacs doesn't already have one I figured Vim shouldn't 
either.

--

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



[issue15031] Split .pyc parsing from module loading

2012-11-15 Thread Brett Cannon

Brett Cannon added the comment:

You can't use data as there are connotations for that word thanks to 
get_data(). Same goes for load since this is something that get_code() would 
use more directly than load_module().

--

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



[issue15894] _PyImport_ReInitLock() doesn't check return value of PyThread_acquire_lock

2012-11-15 Thread Brett Cannon

Brett Cannon added the comment:

The chances of this being a problem is REALLY small and the single function 
that calls this is a public void function so there is no way for an exception 
to propagate short of a fatal error which seems a bit much.

I did change to using NOWAIT_LOCK, though.

--
resolution:  - wont fix
stage:  - committed/rejected
status: open - closed

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



[issue10966] eliminate use of ImportError implicitly representing SkipTest

2012-11-15 Thread Brett Cannon

Brett Cannon added the comment:

I'm at PyCon Argentina Friday and Saturday, so I have a rare opportunity to get 
stuff done. If anyone has issues or comments, please get them in over the next 
day or so, else I'm going to check this in as-is.

--

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



[issue16423] urllib data URL recipe

2012-11-15 Thread Mathias Panzenböck

Mathias Panzenböck added the comment:

New patch. Instead of adding the data URL support to the doc as a recipe I 
added it to urllib.request directly. I think this is better and justified, 
because the old legacy URLopener had (some kind) of support for data URLs.

OT: I think that the legacy URLopener has bugs. It only unquotes the data if 
it's base64 encoded, but it should be unquoted in any case. Also it returns a 
StringIO and decodes the content as latin-1. This is wrong, the content is a 
binary string. It could be text encoded in any kind of charset or not text at 
all (e.g. an image).

--
Added file: http://bugs.python.org/file27994/urllib.request-data-url.patch

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



[issue16423] urllib data URL

2012-11-15 Thread Mathias Panzenböck

Changes by Mathias Panzenböck grosser.meister.mo...@gmx.net:


--
components: +Library (Lib) -Documentation
title: urllib data URL recipe - urllib data URL
type:  - enhancement

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



[issue16483] Make int(float('inf')) raise ValueError rather than OverflowError.

2012-11-15 Thread Case Van Horsen

Case Van Horsen added the comment:

I agree that ValueError is a more correct exception but I also don't think 
OverflowError is all that wrong. I don't think the change is worth the risk of 
breaking existing code.

I'd be fine with either option.

--
nosy: +casevh

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



[issue16478] Fix division in tabnanny

2012-11-15 Thread Georg Brandl

Georg Brandl added the comment:

Well, sounds reasonable since we're working with an integer number of spaces :)

--

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