[issue20778] ModuleFinder.load_module skips incorrect number of bytes in pyc files

2014-02-26 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
keywords: +patch

___
Python tracker 

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



[issue20778] ModuleFinder.load_module skips incorrect number of bytes in pyc files

2014-02-26 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
keywords: +3.3regression -3.2regression, patch

___
Python tracker 

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



[issue6676] expat parser throws Memory Error when parsing multiple files

2014-02-26 Thread Ned Deily

Changes by Ned Deily :


Added file: http://bugs.python.org/file34241/issue6676_27.patch

___
Python tracker 

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



[issue6676] expat parser throws Memory Error when parsing multiple files

2014-02-26 Thread Ned Deily

Ned Deily added the comment:

Thanks for the reminder, David.  Here are patches for 3.x and 2.7 that include 
updated versions of the proposed pyexpat.c and test_pyexpat.py patches along 
with a doc update along the lines suggested by David.

--
stage:  -> patch review
versions:  -Python 3.2
Added file: http://bugs.python.org/file34240/issue6676_3x.patch

___
Python tracker 

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



[issue17390] display python version on idle title bar

2014-02-26 Thread Terry J. Reedy

Terry J. Reedy added the comment:

That looks like a sensible approach.

--

___
Python tracker 

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



[issue17390] display python version on idle title bar

2014-02-26 Thread Westley Martínez

Westley Martínez added the comment:

How about adding an optional argument to OutputWindow that specifies the title 
for the window?  Or would this be more suitable for EditorWindow (which 
OutputWindow inherits from)?  Either way, doing this would allow any 
OutputWindow to specify its own title.  The current title "Output", is pretty 
useless.

I've written a patch that adds the functionality. In addition, I changed the 
title of the Find in Files output window to what you imagined.

--
Added file: http://bugs.python.org/file34239/issue17390.patch

___
Python tracker 

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



[issue20790] Make sure exec_module() implementations are documented

2014-02-26 Thread R. David Murray

R. David Murray added the comment:

It doesn't?  I checked all the links that I made in the whatsnew entry when I 
made it, and importlib.abc.InspectLoader.exec_module takes me to an exec_module 
method entry under InspectLoader.

--
nosy: +r.david.murray

___
Python tracker 

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



[issue20501] fileinput module will read whole file into memory when using fileinput.hook_encoded

2014-02-26 Thread Vajrasky Kok

Vajrasky Kok added the comment:

>From http://hg.python.org/cpython/rev/1a1a9d6fb278

+t1 = TESTFN
+#t1 = writeTmp(1, ['A\nB\r\nC\rD+IKw-'], mode='wb')
+self.addCleanup(safe_unlink, TESTFN)

You left out the debugging statement.

And this English statement:

# Unlikely UTF-7 is locale encoding

could be made clearer. Does it mean: "UTF-7 is an unlikely locale encoding"?

--
nosy: +vajrasky

___
Python tracker 

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



[issue20783] bytearray init fails when \x00 is present

2014-02-26 Thread Andrew P. Lentvorski, Jr.

Changes by Andrew P. Lentvorski, Jr. :


--
resolution:  -> invalid

___
Python tracker 

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



[issue20783] bytearray init fails when \x00 is present

2014-02-26 Thread Andrew P. Lentvorski, Jr.

Andrew P. Lentvorski, Jr. added the comment:

Ayup, I are an idiot.  Sorry.

ggRAM = bytearray('\x00'*RAM_SIZE_BYTES)

Works fine.

--
status: open -> closed

___
Python tracker 

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



[issue20167] Exception on IDLE closing

2014-02-26 Thread Terry J. Reedy

Terry J. Reedy added the comment:

This has been left open to see if the undlying problem can be found. If #20567 
is a guide, there might be a root.destroy that should be followed by del root.

--
resolution:  -> fixed
stage:  -> needs patch

___
Python tracker 

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



[issue20567] test_idle causes test_ttk_guionly 'can't invoke "event" command: application has been destroyed' messages from Tk

2014-02-26 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Patch fixes problem on 3.3. I need to test 2.7 and add a note to 
idle_test/README that class widget attributes must be deleted because module 
may not be deleted, at least for a while.

--
assignee:  -> terry.reedy

___
Python tracker 

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



[issue20790] Make sure exec_module() implementations are documented

2014-02-26 Thread Brett Cannon

New submission from Brett Cannon:

E.g. importlib.abc.InspectLoader() has load_module() deprecated by no 
equivalent exec_module() documented. Make sure that no other exec_module() 
instances have been added but undocumented.

--
assignee: brett.cannon
components: Documentation
messages: 212330
nosy: brett.cannon, eric.snow, ncoghlan
priority: low
severity: normal
stage: needs patch
status: open
title: Make sure exec_module() implementations are documented
versions: Python 3.4

___
Python tracker 

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



[issue17630] Create a pure Python zipfile/tarfile importer

2014-02-26 Thread Brett Cannon

Brett Cannon added the comment:

The more I think about this, the less useful it seems to be. We need zipimport 
written in C for bootstrapping issues. If that's the case then time should be 
put into making that work and not duplicating the functionality. I'm going to 
leave this open but unassign from myself as I would rather focus on my lazy 
loader issue than this. If someone can manage to create a zipfile importer 
whose dependencies are small and thus can be frozen along with importlib then 
this can be moved forward.

--
assignee: brett.cannon -> 

___
Python tracker 

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



[issue20778] ModuleFinder.load_module skips incorrect number of bytes in pyc files

2014-02-26 Thread Brett Cannon

Changes by Brett Cannon :


--
assignee:  -> brett.cannon

___
Python tracker 

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



[issue20776] Add tests for importlib.machinery.PathFinder

2014-02-26 Thread Brett Cannon

Changes by Brett Cannon :


--
assignee:  -> brett.cannon

___
Python tracker 

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



[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-26 Thread Brett Cannon

Brett Cannon added the comment:

Cherrypick bug is http://bugs.python.org/issue20789

--

___
Python tracker 

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



[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-26 Thread Brett Cannon

Brett Cannon added the comment:

Committed for Larry to cherrypick into 3.4.0. No Misc/NEWS so that Larry 
doesn't have merge issues and since it will be covered by 3.4.0.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue20789] [3.4] cherrypick 5dec1604322c

2014-02-26 Thread Brett Cannon

Changes by Brett Cannon :


--
dependencies: +old sys.path_hooks importer does not work with Python 3.4.0rc1

___
Python tracker 

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



[issue20789] [3.4] cherrypick 5dec1604322c

2014-02-26 Thread Brett Cannon

New submission from Brett Cannon:

changeset 89406:5dec1604322c tip



Issue #20763: Fix importlib.machinery.PathFinder to support
PathEntryFinder instances which only define find_module().

Reported by Yukihiro Nakadaira. [#20763]
author  Brett Cannon 
dateWed, 26 Feb 2014 18:26:49 -0500 (19 seconds ago)
parents 1a38fa1f701d
children
files   Lib/importlib/_bootstrap.py 
Lib/test/test_importlib/import_/test_path.py Python/importlib.h
diffstat 3 files changed, 26 insertions(+), 2 deletions(-) [+]


Left out Misc/NEWS to prevent bad merging into 3.4.0final.

--
assignee: larry
components: Interpreter Core
messages: 212326
nosy: brett.cannon, larry
priority: release blocker
severity: normal
status: open
title: [3.4] cherrypick 5dec1604322c
versions: Python 3.4

___
Python tracker 

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



[issue20763] old sys.path_hooks importer does not work with Python 3.4.0rc1

2014-02-26 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5dec1604322c by Brett Cannon in branch 'default':
Issue #20763: Fix importlib.machinery.PathFinder to support
http://hg.python.org/cpython/rev/5dec1604322c

--
nosy: +python-dev

___
Python tracker 

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



[issue19470] email.header.Header - should not allow two newlines in a row

2014-02-26 Thread R. David Murray

R. David Murray added the comment:

Having thought further about this (prompted by a suggested fix by Varun 
Sharma), I'm going to reject it.  The reason is that the email package in 3.2 
compatibility mode still uses the Header object to encapsulate headers that 
have invalid binary data in them.  This means that if we added the check to 
Header, the email package could throw errors at unexpected times (that is, when 
retrieving a header from a parsed message).

In retrospect I think returning a Header object for invalid data was probably a 
bad idea, but what's done is done.

--
resolution:  -> rejected
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue10747] Include version info in Windows shortcuts

2014-02-26 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I don't see any reason not to change the next release of all versions.
My only concern is about the length and whether Windows has a limit for either 
the start menu or the taskbar tooltip popup

The Doc server icon should be removed from 3.x until it is made to work again 
(as it still does in latest 2.7). See #14512. But I would prefer that it were 
fixed.

--

___
Python tracker 

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



[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2014-02-26 Thread Sean Rodman

Changes by Sean Rodman :


Added file: http://bugs.python.org/file34238/issue16484_python3.3.patch

___
Python tracker 

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



[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2014-02-26 Thread Sean Rodman

Sean Rodman added the comment:

Here are the python3.2 and python3.3 patches. Please let me know if there is 
anything I need to change on these.

--
Added file: http://bugs.python.org/file34237/issue16484_python3.2.patch

___
Python tracker 

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



[issue14513] IDLE icon switched and switches on Windows taskbar

2014-02-26 Thread Terry J. Reedy

Terry J. Reedy added the comment:

This may be related to #18052. In any case, I do not have the problem now.

--
resolution:  -> out of date
stage:  -> committed/rejected
status: open -> closed
type:  -> behavior

___
Python tracker 

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



[issue20429] 3.3.4rc1 install deleted Windows taskbar icons

2014-02-26 Thread Terry J. Reedy

Terry J. Reedy added the comment:

3.3.4 installed without incident. So closing as presumed 'unique glitch'.

--
resolution:  -> works for me
stage: needs patch -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue18052] IDLE 3.3.2 Windows taskbar icon regression

2014-02-26 Thread Terry J. Reedy

Terry J. Reedy added the comment:

The last installation I did now said to reboot to finish the installation, but 
I forget which it was. Since that was my alternative fix, this could perhaps be 
closed. I will try to check the coming installs.

--

___
Python tracker 

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



[issue1222585] C++ compilation support for distutils

2014-02-26 Thread Michael Crusoe

Changes by Michael Crusoe :


--
nosy: +Michael.Crusoe

___
Python tracker 

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



[issue20788] distutils.msvccompiler - flags are hidden inside initialize()

2014-02-26 Thread Matt Goodman

New submission from Matt Goodman:

The flags that you need to compile against libpythonXX.lib are hidden inside of 
the distutils.msvccompiler class.  This is ok if you want to use distutils to 
compile extensions against the binary, but other build systems need to run 
initialize() to get access to the compiler_options attribute.  This call 
requires a bunch of things to be correct (think MSVC on the path, expected 
names, etc), and fails in a great quantity of vanilla Windows/Python 
configurations.   

One example includes the scraping function waf:
https://code.google.com/p/waf/source/browse/waflib/Tools/python.py#347

I am also sure SCons does this somewhere (or at least ought to).  

I think these values hard coded into the function ought to be exposed elsewhere 
to streamline other build systems finding them and linking against the core 
library.  I was thinking something like adding a function that looked something 
like get_flags(arch, debugTF), which then the initialize() function draws on.  

I am willing to write a patch, but I wanted to make sure there some consensus 
about the best way to do this before trooping off.  Thanks

--
components: Distutils, Windows
messages: 212318
nosy: Matt.Goodman
priority: normal
severity: normal
status: open
title: distutils.msvccompiler - flags are hidden inside initialize()
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3

___
Python tracker 

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



[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2014-02-26 Thread Sean Rodman

Sean Rodman added the comment:

Sorry guys, I missed a place I needed to add the lower() fuction to the 
module.__name__. Here is a fixed patch for python2.7.

--
Added file: http://bugs.python.org/file34236/issue16484_python2.7.patch

___
Python tracker 

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



[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2014-02-26 Thread Sean Rodman

Changes by Sean Rodman :


Removed file: http://bugs.python.org/file34233/issue16484.patch

___
Python tracker 

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



[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2014-02-26 Thread Sean Rodman

Changes by Sean Rodman :


Removed file: http://bugs.python.org/file34234/issue16484_python3.2.patch

___
Python tracker 

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



[issue20786] inspect.getargspec() returns wrong answer with property.__delete__()

2014-02-26 Thread Yury Selivanov

Changes by Yury Selivanov :


--
priority: normal -> release blocker

___
Python tracker 

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



[issue20787] typo in asyncio docs for subprocess_exec()

2014-02-26 Thread akira

New submission from akira:

subprocess' stdout pipe is open for *reading* but its value is documented as an 
argument for `BaseEventLoop.connect_write_pipe`. It should be 
`BaseEventLoop.connect_read_pipe` instead. As it currently is for subprocess' 
stderr.

The patch is attached.

--
assignee: docs@python
components: Documentation
files: typo-subprocess_exec-docs.patch
keywords: patch
messages: 212316
nosy: akira, docs@python
priority: normal
severity: normal
status: open
title: typo in asyncio docs for subprocess_exec()
versions: Python 3.4
Added file: http://bugs.python.org/file34235/typo-subprocess_exec-docs.patch

___
Python tracker 

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



[issue20786] inspect.getargspec() returns wrong answer with property.__delete__()

2014-02-26 Thread Yury Selivanov

Yury Selivanov added the comment:

Larry, I think the problem is that

>>> property.__delete__.__text_signature__
'(instance, /)'

but should be something like '($self, instance, /)'.

What do you think?

--

___
Python tracker 

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



[issue20786] inspect.getargspec() returns wrong answer with property.__delete__()

2014-02-26 Thread Yury Selivanov

Changes by Yury Selivanov :


--
nosy: +larry, ncoghlan, yselivanov

___
Python tracker 

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



[issue20786] inspect.getargspec() returns wrong answer with property.__delete__()

2014-02-26 Thread mike bayer

mike bayer added the comment:

for context, we are currently creating wrappers around these methods in 
SQLAlchemy, and in the case of property dunders, we expect that exception and 
catch it.   So when the exception doesn't happen, we assume the answer is 
correct, but in this case it's not - the answer getargspec() gives us cannot be 
used to create a correct wrapper unless there's some other detail I'm missing.  
 hence this is backwards incompatible.

--

___
Python tracker 

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



[issue20786] inspect.getargspec() returns wrong answer with property.__delete__()

2014-02-26 Thread mike bayer

Changes by mike bayer :


--
components: +Library (Lib)
type:  -> behavior

___
Python tracker 

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



[issue20786] inspect.getargspec() returns wrong answer with property.__delete__()

2014-02-26 Thread mike bayer

New submission from mike bayer:

The Python builtin property() historically does not allow inspect.getargspec to 
be called on any of __get__(), __set__(), or __delete__().  As of 3.4, it seems 
that this call now succeeds.  However the answer it gives for __delete__() 
seems to be incorrect. Below illustrates that property.__delete__() accepts two 
arguments "self" and "instance" but inspect is giving a misleading answer:

import inspect

# userland descriptor
class Descriptor(object):
def __get__(self, instance, owner):
if instance is None:
return self
def __set__(self, instance, value):
pass
def __delete__(self, instance):
pass

# class with property + userland descriptor
class X(object):
@property
def foo(self):
pass
@foo.deleter
def foo(self):
pass

bar = Descriptor()

# property.__delete__ and Descriptor.__delete__ both accept two arguments:
property.__delete__(X.foo, X())
Descriptor.__delete__(X.bar, X())

# on all versions, userland __delete__ produces 'self', 'instance' for args
assert inspect.getargspec(Descriptor.__delete__) == (['self', 'instance'], 
None, None, None)


try:
# but on python 3.4, it returns ['instance']
insp = inspect.getargspec(property.__delete__)
assert insp == (['self', 'instance'], None, None, None), insp
except TypeError as e:
# on all other python versions, raises
#  is not a Python function
print("Exception: %s" % e)

--
messages: 212313
nosy: zzzeek
priority: normal
severity: normal
status: open
title: inspect.getargspec() returns wrong answer with property.__delete__()
versions: Python 3.4

___
Python tracker 

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



[issue10747] Include version info in Windows shortcuts

2014-02-26 Thread Nick Coghlan

Nick Coghlan added the comment:

One suggestion I like from the thread (thanks for digging up that reference 
Mark) is to drop the "GUI" from the IDLE shortcut.

The other suggestions I don't think are worth worrying about - these names have 
been as they are for quite some time, and it's mainly just the parallel 2 vs 3 
installations that get a bit confusing.

--

___
Python tracker 

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



[issue10747] Include version info in Windows shortcuts

2014-02-26 Thread Nick Coghlan

Nick Coghlan added the comment:

Oops,  I forgot to assign this to MvL for a yes/no decision as the maintainer 
of the Windows installer when I first created it years ago.
 
It's too late for 3.4.0 now, so marking this as one for 3.5. However, if Larry 
and Martin are amenable, it might also be reasonable to include in the 3.4.1 
maintenance release.

--
assignee:  -> loewis
nosy: +larry, loewis
stage:  -> needs patch
versions: +Python 3.5 -Python 3.3

___
Python tracker 

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



[issue13582] IDLE and pythonw.exe stderr problem

2014-02-26 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Idle start up seems unnecessarily fragmented into multiple files.
  idlelib/__main__.py 
  idlelib/idle.py
  idlelib/idlew.py
can all be started from the command line by name with either python or pythonw 
or run once by import. idlelib/__main__.py can also be started by 'python(w) -m 
idlelib'.

I checked that in Command Prompt
  C:\Programs\Python34>python lib/idlelib/idle.py
  C:\Programs\Python34>python lib/idlelib/idle.pyw
  C:\Programs\Python34>pythonw lib/idlelib/idle.py
  C:\Programs\Python34>pythonw lib/idlelib/idle.pyw
all do the same thing except that the first two caused a new console python 
icon to appear on the taskbar.

All three files contain
  import idlelib.PyShell
  idlelib.PyShell.main()
which are equivalent to
  from idlelib.PyShell import main; main()
PyShell can also by run by 'python(w) -m idlelip.PyShell' though I believe that 
is somewhat 'deprecated'.

idle.py also has a path addition that seems obsolete. I believe the addition 
was intended for developing idle with installed python and a subrepository 
consisting of idlelib/*. Subrepositories were possible with svn but are not 
with hg. In any case, proper development testing ultimately requires testing 
revised idle with current tkinter.py and compiled _tkinter.c. I suppose that 
the addition would still work to let someone clone the repository and run the 
repository Lib/*.py, etc, with installed binaries, but that seems ultimately 
chancy.

idle.pyw (which is also called by idle.bat) has additions for a scenario that I 
don't understand: idle.pyw is present and running but apparently not in 
idlelib, Idle is 'not installed', but PyShell and the rest of idlelib are 
somewhere on sys.path. There is nothing that I see as pythonw specific. I think 
this file should be dropped and any needed path manipulations added to idle.py.

A single start up file (idle.py) should first import tkinter (and _tkinter) as 
in the patch, but in try;except. If the import fails print to stderr if there 
is one (a console) or use subprocess to start python in a console to display 
the message. Ditto for creating root. Once that succeeds, I think stderr or the 
idle process should be replaces  unconditionally. A message box as in the patch 
is one possibility. An error log window is another. The latter could accumulate 
all non-fatal error messages to be edited and saved if the user wishes. I think 
the arg parsing code in PyShell that decides whether to open a Shell or an 
Editor should be moved to the startup file. Ditto for any other configuration 
stuff that precedes opening one or the other.

--

___
Python tracker 

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



[issue20504] cgi.FieldStorage, multipart, missing Content-Length

2014-02-26 Thread Sebastian Rittau

Changes by Sebastian Rittau :


--
type:  -> behavior

___
Python tracker 

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



[issue18748] libgcc_s.so.1 must be installed for pthread_cancel to work

2014-02-26 Thread Nikolay Bryskin

Changes by Nikolay Bryskin :


--
nosy: +nikicat

___
Python tracker 

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



[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2014-02-26 Thread Sean Rodman

Sean Rodman added the comment:

Here is the patch for python 3.2. It implements the same fix that the 2.7 patch 
does.

--
Added file: http://bugs.python.org/file34234/issue16484_python3.2.patch

___
Python tracker 

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



[issue20785] Missing symbols in Python27.lib (Windows 64bit)

2014-02-26 Thread Victor Lazzarini

New submission from Victor Lazzarini:

It appears various symbols are missing from Python27.lib, 64bit build.
Here is a list of undefined symbols (from link errors):

/debug/Opcodes && /c/mingw-builds/x64-4.8.1-posix-seh-rev5/mingw64/bin/gcc.exe 
-Wl,--add-stdcall-alias -shared -o ../py.dll 
-Wl,--major-image-version,0,--minor-image-version,0 -Wl,--whole-archive 
CMakeFiles/py.dir/objects.a -Wl,--no-whole-archive 
/C/Python27/libs/python27.lib -lkernel32 -luser32 -lgdi32 -lwinspool
-lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj):pythonopcodes.c:(.text+0x14a):
undefined reference to `__imp_PyExc_RuntimeError'
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj):pythonopcodes.c:(.text+0x973):
undefined reference to `__imp_PyExc_RuntimeError'
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj):pythonopcodes.c:(.text+0x99d):
undefined reference to `__imp_PyExc_RuntimeError'
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj):pythonopcodes.c:(.text+0xa83):
undefined reference to `__imp_PyExc_RuntimeError'
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj):pythonopcodes.c:(.text+0xc23):
undefined reference to `__imp_PyExc_RuntimeError'
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj):pythonopcodes.c:(.text+0xc4b):
more undefined references to `__imp_PyExc_RuntimeError' follow
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj):pythonopcodes.c:(.text+0x1b22):
 undefined reference to `__imp__Py_NoneStruct'
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj):pythonopcodes.c:(.text+0x1b7c):
 undefined reference to `__imp_PyExc_RuntimeError'
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj):pythonopcodes.c:(.text+0x1d19):
 undefined reference to `__imp_PyFloat_Type'
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj):pythonopcodes.c:(.text+0x1d6d):
 undefined reference to `__imp_PyExc_RuntimeError'
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj):pythonopcodes.c:(.text+0x205c):
 undefined reference to `__imp_PyExc_RuntimeError'
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj):pythonopcodes.c:(.text+0x21f5):
 undefined reference to `__imp__Py_NoneStruct'
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj):pythonopcodes.c:(.text+0x2251):
 undefined reference to `__imp_PyExc_RuntimeError'
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj):pythonopcodes.c:(.text+0x2388):
 undefined reference to `__imp_PyFloat_Type'
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj):pythonopcodes.c:(.text+0x2404):
 undefined reference to `__imp_PyExc_RuntimeError'
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj):pythonopcodes.c:(.text+0x263c):
 undefined reference to `__imp_PyExc_RuntimeError'
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj):pythonopcodes.c:(.text+0x291c):
 undefined reference to `__imp_PyExc_RuntimeError'
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj):pythonopcodes.c:(.text+0x2a33):
 undefined reference to `__imp_PyExc_RuntimeError'
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj):pythonopcodes.c:(.text+0x2b23):
 undefined reference to `__imp_PyExc_RuntimeError'
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj):pythonopcodes.c:(.text+0x2bc0):
 undefined reference to `__imp_PyFloat_Type'
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj):pythonopcodes.c:(.text+0x2c44):
 undefined reference to `__imp_PyExc_RuntimeError'
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj):pythonopcodes.c:(.text+0x2e4b):
 undefined reference to `__imp__Py_NoneStruct'
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj):pythonopcodes.c:(.text+0x2ece):
 undefined reference to `__imp_PyExc_RuntimeError'
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj):pythonopcodes.c:(.text+0x312c):
 undefined reference to `__imp_PyExc_RuntimeError'
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj):pythonopcodes.c:(.text+0x340c):
 undefined reference to `__imp_PyExc_RuntimeError'
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj):pythonopcodes.c:(.text+0x36ac):
 undefined reference to `__imp_PyExc_RuntimeError'
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj):pythonopcodes.c:(.text+0x38e9):
 undefined reference to `__imp__Py_NoneStruct'
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj):pythonopcodes.c:(.text+0x3941):
 undefined reference to `__imp_PyExc_RuntimeError'
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj):pythonopcodes.c:(.text+0x3cfe):
 undefined reference to `__imp_PyExc_RuntimeError'
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj):pythonopcodes.c:(.text+0x40ac):
 undefined reference to `__imp_PyExc_RuntimeError'
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj):pythonopcodes.c:(.text+0x431c):
 undefined reference to `__imp_PyExc_RuntimeError'
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj):pythonopcodes.c:(.text+0x45ac):
 undefined reference to `__imp_PyExc_RuntimeError'
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj):pythonopcodes.c:(.text+0x486c):
 more undefined references to `__imp_PyExc_RuntimeError' follow
CMakeFiles/py.dir/objects.a(pythonopcodes.c.obj):pythonopcodes.c:(.text+0x6c99):
 undefined reference to `__imp_PyFlo

[issue20781] BZ2File doesn't decompress some .bz2 files correctly

2014-02-26 Thread Nadeem Vawda

Nadeem Vawda added the comment:

As Serhiy said, multi-stream support was only added to the bz2 module in 3.3,
and there is no plan to backport functionality this to 2.7.

However, the bz2file package on PyPI [1] does support multi-stream inputs,
and you can use its BZ2File class as a drop-in replacement for the built-in
one on 2.7.

[1] https://pypi.python.org/pypi/bz2file

--

___
Python tracker 

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



[issue20781] BZ2File doesn't decompress some .bz2 files correctly

2014-02-26 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Actually this file is composed of two bzip2 streams. Python 2.7 doesn't support 
decompressing of multi-stream inputs, this feature was added in 3.3. So this is 
not a bug.

--
resolution:  -> invalid
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue20784] 'collections.abc' is no longer defined when collections is imported

2014-02-26 Thread Antoine Pitrou

Antoine Pitrou added the comment:

> > So, it's a very common idiom.
> 
> "Common" doesn't imply "correct" or "supported".  There are plenty of
> other packages/modules who don't import their subpackages/submodules
> during initialization.  Unless explicitly supported by the module,
> using a submodule without explicitly importing it is relying on
> undefined behavior.

Yes, you are technically right. But this is an idealized view of what
backwards compatibility means in the real world.

Well, let's see if people complain after 3.4 is released, anyway.

--

___
Python tracker 

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



[issue7503] multiprocessing AuthenticationError "digest sent was rejected" when pickling proxy

2014-02-26 Thread Ned Deily

Ned Deily added the comment:

At Wed Feb 26 17:09:49 CET 2014, Dhanannjay Deo added the comment:

Confirmed for python 2.7.3 on ubuntu 12.04 lts. Why this issue is still open 
after 4 years ?

--
nosy: +Dhanannjay.Deo
versions:  -Python 2.6

___
Python tracker 

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



[issue7503] multiprocessing AuthenticationError "digest sent was rejected" when pickling proxy

2014-02-26 Thread Ned Deily

Ned Deily added the comment:

[Note, due to a bug tracker error now fixed, s couple of comments made to this 
issue earlier today were dropped.  I'm manually adding them here on behalf of 
the original submitters.]

At Wed Feb 26 17:05:01 CET 2014, Paul Tunison added the comment:

I can confirm that this is still an issue with python 2.7.5. My method of 
resolving this locally is similar to xhantu's. I created a sub-class of 
BaseProxy, overriding the __reduce__ method and injecting the authkey into the 
appropriate spot in the super method's returned content.

--
nosy: +Paul.Tunison, ned.deily, sbt

___
Python tracker 

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



[issue20784] 'collections.abc' is no longer defined when collections is imported

2014-02-26 Thread Larry Hastings

Larry Hastings added the comment:

> So, it's a very common idiom.

"Common" doesn't imply "correct" or "supported".  There are plenty of other 
packages/modules who don't import their subpackages/submodules during 
initialization.  Unless explicitly supported by the module, using a submodule 
without explicitly importing it is relying on undefined behavior.

I stand by my statement.

--

___
Python tracker 

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



[issue20781] BZ2File doesn't decompress some .bz2 files correctly

2014-02-26 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Oh, no, I just not pressed  after copying long testing command line. ;)

All works on 3.3 too, but on 2.7 I got incomplete result.

$ ./python -c 'import bz2, hashlib; d = 
bz2.BZ2File("../example-file.csv.bz2").read(); print len(d), 
hashlib.md5(d).hexdigest()'
90 e2d4ce212a040c879cb256f88c9faab9

--

___
Python tracker 

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



[issue10747] Include version info in Windows shortcuts

2014-02-26 Thread Mark Lawrence

Mark Lawrence added the comment:

Makes sense to me. Can someone please add mvl to the nosy list, I don't dare :) 
 FYI https://mail.python.org/pipermail/python-dev/2010-December/106942.html

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue11122] bdist_rpm should use rpmbuild, not rpm

2014-02-26 Thread Westley Martínez

Changes by Westley Martínez :


--
nosy: +westley.martinez

___
Python tracker 

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



[issue20781] BZ2File doesn't decompress some .bz2 files correctly

2014-02-26 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

All works on 3.4, but on 3.3 and 2.7 it looks hanged.

--

___
Python tracker 

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



[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2014-02-26 Thread Ned Deily

Changes by Ned Deily :


--
Removed message: http://bugs.python.org/msg212255

___
Python tracker 

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



[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2014-02-26 Thread Sean Rodman

Sean Rodman added the comment:

Note: It doesn't change the actual module name. Just how it is represented in 
the link.

--

___
Python tracker 

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



[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2014-02-26 Thread Sean Rodman

Sean Rodman added the comment:

Here is a working patch for python 2.7. all it does is lowercase the module 
name, but once I did that and clicked the link it worked correctly.

--
keywords: +patch
Added file: http://bugs.python.org/file34233/issue16484.patch

___
Python tracker 

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



[issue17390] display python version on idle title bar

2014-02-26 Thread Westley Martínez

Changes by Westley Martínez :


--
nosy: +westley.martinez

___
Python tracker 

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



[issue14576] IDLE: resolving home directory for configuration uses HOMEDRIVE, HOMEPATH, and USERPROFILE inconsistently on Windows.

2014-02-26 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I do not understand what you mean by "Exchange the names of python and pythonw 
in the python33 folder.". In any case, idle.bat cannot run both simultaneously.

Perhaps idle.bat should have an option to start with python instead of pythonw.

--

___
Python tracker 

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



[issue10747] Include version info in Windows shortcuts

2014-02-26 Thread Westley Martínez

Westley Martínez added the comment:

I understand this is an old issue. Sorry if it is no longer relevant.

I have usually have at least two versions of Python installed on Windows: 2.x 
and 3.x.

In Windows 7, if you pin a certain shortcut to the start menu, you can't tell 
what version of Python is for. I'd like that to be changed. Nick's format looks 
good.

--
nosy: +westley.martinez

___
Python tracker 

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



[issue20781] BZ2File doesn't decompress some .bz2 files correctly

2014-02-26 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +nadeem.vawda, serhiy.storchaka

___
Python tracker 

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



[issue20784] 'collections.abc' is no longer defined when collections is imported

2014-02-26 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

May be add temporary replacement for collections.abc?

class _AbcModulePlaceholder(type(_collections_abc)):
def __warn(self):
import warnings
warnings.warn('collections.abc used without importing',
  DeprecationWarning, 3)
def __getattr__(self, name):
self.__warn()
return getattr(_collections_abc, name)
def __setattr__(self, name, value):
self.__warn()
setattr(_collections_abc, name, value)
def __delattr__(self, name):
self.__warn()
delattr(_collections_abc, name)
def __dir__(self):
self.__warn()
return dir(_collections_abc)

abc = _AbcModulePlaceholder('abc')

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue20784] 'collections.abc' is no longer defined when collections is imported

2014-02-26 Thread Antoine Pitrou

Antoine Pitrou added the comment:

A quick grep indicates at least the following modules use os.path but only 
import os:
bdb, binhex, cgitb, compileall, cProfile, doctest, filecmp, fileinput, fnmatch, 
ftplib, gettext, glob, imghdr, imp, inspect, linecache, mailbox, mimetypes, 
modulefinder, netrc, optparse, pdb, platform, profile, pstats, pyclbr, pydoc, 
shlex, site, sndhdr, ssl, subprocess, tabnanny, tarfile, trace, uuid, uu, 
webbrowser, zipfile.

So, it's a very common idiom.

--

___
Python tracker 

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



[issue20501] fileinput module will read whole file into memory when using fileinput.hook_encoded

2014-02-26 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you Zachary that ran tests for me.

Thank you Gunnar for your report.

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

___
Python tracker 

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



[issue20501] fileinput module will read whole file into memory when using fileinput.hook_encoded

2014-02-26 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee: docs@python -> serhiy.storchaka

___
Python tracker 

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



[issue20784] 'collections.abc' is no longer defined when collections is imported

2014-02-26 Thread Antoine Pitrou

Antoine Pitrou added the comment:

> I'm pretty sure that if you import "x", there are zero guarantees that
> "x.y" will work.  The offical line is that you must explicitly import
> all the deepest submodules you use.

I'm not sure why you're saying that. I think it's quite common to only
"import os" and then use os.path.

--

___
Python tracker 

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



[issue20501] fileinput module will read whole file into memory when using fileinput.hook_encoded

2014-02-26 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1a1a9d6fb278 by Serhiy Storchaka in branch '2.7':
Issue #20501: fileinput module no longer reads whole file into memory when using
http://hg.python.org/cpython/rev/1a1a9d6fb278

New changeset b4a139713b3b by Serhiy Storchaka in branch '3.3':
Added tests for issue #20501.
http://hg.python.org/cpython/rev/b4a139713b3b

New changeset 1a38fa1f701d by Serhiy Storchaka in branch 'default':
Added tests for issue #20501.
http://hg.python.org/cpython/rev/1a38fa1f701d

--
nosy: +python-dev

___
Python tracker 

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



[issue20784] 'collections.abc' is no longer defined when collections is imported

2014-02-26 Thread R. David Murray

R. David Murray added the comment:

If we decide we want this (small) backward compatibility break, to make 
collections.abc consistent with the other modules (except os.path), then I 
should mention it in the whatsnew porting section for 3.4, which is really why 
I opened this issue :)

I that case, IMO, the import for _collections_abc should be removed from the 
collections __init__ file (in 3.4.1), just to keep things tidy.

--

___
Python tracker 

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



[issue20783] bytearray init fails when \x00 is present

2014-02-26 Thread R. David Murray

Changes by R. David Murray :


--
stage: committed/rejected -> 

___
Python tracker 

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



[issue20784] 'collections.abc' is no longer defined when collections is imported

2014-02-26 Thread R. David Murray

R. David Murray added the comment:

It is a backward compatibility bug.  Something that used to work doesn't any 
more.  And it was explicitly *made* to work previously (the original __init__ 
statement was 'import collections.abc').  And it is is an implementation bug in 
the original patch because otherwise there would be no point in importing 
_collections_abc in __init__.

But you are right, it is relatively unlikely that anyone is relying on it.

--

___
Python tracker 

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



[issue20783] bytearray init fails when \x00 is present

2014-02-26 Thread R. David Murray

R. David Murray added the comment:

That isn't a valid bytearray initialization call.  The two argument form is 
(string, encoding), not (size, string).  The error message you get is a bit 
funky and not particularly informative, though.  Maybe someone will want to try 
to improve that.

--
nosy: +r.david.murray
stage:  -> committed/rejected
versions: +Python 3.4, Python 3.5

___
Python tracker 

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



[issue20784] 'collections.abc' is no longer defined when collections is imported

2014-02-26 Thread Larry Hastings

Larry Hastings added the comment:

I'm pretty sure that if you import "x", there are zero guarantees that "x.y" 
will work.  The offical line is that you must explicitly import all the deepest 
submodules you use.  So I don't think this is even a bug.

--

___
Python tracker 

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



[issue19218] Use of MutableMapping in os module slows down interpreter startup

2014-02-26 Thread R. David Murray

R. David Murray added the comment:

Opened issue 20784 to address the above.

--

___
Python tracker 

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



[issue20784] 'collections.abc' is no longer defined when collections is imported

2014-02-26 Thread R. David Murray

New submission from R. David Murray:

collections.abc was renamed _collections_abc in issue 19218.  The __init__ file 
was modified to load all the abc into the collections namespace, but the 'abc' 
name itself is no longer defined:

Python 3.3.2 (default, Dec 17 2013, 17:24:42) 
[GCC 4.7.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import collections
>>> collections.abc


Python 3.4.0rc1+ (default:1bc585ba5df2, Feb 24 2014, 15:04:31) 
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import collections
>>> collections.abc
Traceback (most recent call last):
  File "", line 1, in 
AttributeError: 'module' object has no attribute 'abc'

It looks like the import statement for _collections_abc in the __init__ file as 
has missing "as abc" phrase.

This is probably not important enough to require fixing in the RC, since 
'import collections.abc' works fine, but it is a regression.

--
keywords: 3.4regression
messages: 212284
nosy: Arfrever, barry, christian.heimes, eric.snow, haypo, larry, pitrou, 
python-dev, r.david.murray, rhettinger
priority: normal
severity: normal
stage: needs patch
status: open
title: 'collections.abc' is no longer defined when collections is imported
type: behavior
versions: Python 3.4

___
Python tracker 

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



[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-02-26 Thread Larry Hastings

Larry Hastings added the comment:

> Barring c++, are we using any C compilers that don't support inlines?

CPython advertises itself as C89 compliant, and C89 doesn't have inlines.  You 
need to go to C99 to get inlines.

And before you ask--yes, we support a compiler that is not C99 compliant: 
Microsoft Visual C++.  I'm pretty sure it does have inline support though.

It's possible that every platform officially supported by CPython has a C 
compiler that supports inlines.  I'm pretty sure people compile Python on 
unsupported platforms whose compilers don't have inlines (e.g. OS/2).  Anyway, 
you'd have to get Guido to agree to breaking C89 compatibility, it's not 
something you could do locally on this patch without (most likely) a big 
drawn-out discussion on python-dev.

--

___
Python tracker 

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



[issue19218] Use of MutableMapping in os module slows down interpreter startup

2014-02-26 Thread R. David Murray

R. David Murray added the comment:

For backward compatibility, shouldn't

  import _collections_abc

in the __init__ file be

  import _collections_abc as abc

?

--
nosy: +r.david.murray

___
Python tracker 

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



[issue20783] bytearray init fails when \x00 is present

2014-02-26 Thread Andrew P. Lentvorski, Jr.

New submission from Andrew P. Lentvorski, Jr.:

The byte array init fails when \x00 is present

This fails:
ggRAM = bytearray(RAM_SIZE_BYTES, '\x00'*RAM_SIZE_BYTES)

However, this works:
ggRAM = bytearray(RAM_SIZE_BYTES)
ggRAM[:] = '\x00'*RAM_SIZE_BYTES

--
components: Interpreter Core
messages: 212281
nosy: bsder
priority: normal
severity: normal
status: open
title: bytearray init fails when \x00 is present
type: behavior
versions: Python 2.7

___
Python tracker 

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



[issue20501] fileinput module will read whole file into memory when using fileinput.hook_encoded

2014-02-26 Thread Zachary Ware

Zachary Ware added the comment:

New patch passes on Windows.  Without the patch to fileinput.py, the new 
hook_encoded tests pass and the new test_readline test fails (as expected).

--

___
Python tracker 

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



[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-02-26 Thread Stefan Krah

Stefan Krah added the comment:

> Barring c++, are we using any C compilers that don't support inlines?

Not that I know of. libmpdec is C99, which seems to be supported by all
obscure commercial compilers on snakebite.

Also there have been no 3.x bug reports due to compilers choking on inline
functions.

--

___
Python tracker 

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



[issue20501] fileinput module will read whole file into memory when using fileinput.hook_encoded

2014-02-26 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


Removed file: http://bugs.python.org/file34222/fileinput_hook_encoded_2.patch

___
Python tracker 

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



[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-02-26 Thread Kristján Valur Jónsson

Kristján Valur Jónsson added the comment:

Barring c++, are we using any C compilers that don't support inlines?
Imho these macros should be functions proper.  Then we could do
Py_Assign(&target, Py_IncRef(obj))

It's 2014 already.

--

___
Python tracker 

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



[issue20778] ModuleFinder.load_module skips incorrect number of bytes in pyc files

2014-02-26 Thread Larry Hastings

Changes by Larry Hastings :


--
nosy:  -larry

___
Python tracker 

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



[issue20501] fileinput module will read whole file into memory when using fileinput.hook_encoded

2014-02-26 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


Removed file: http://bugs.python.org/file33934/fileinput_hook_encoded.patch

___
Python tracker 

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



[issue20501] fileinput module will read whole file into memory when using fileinput.hook_encoded

2014-02-26 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Same as on Linux (and differs from 3.x). Thank you Zachary.

Here is corrected patch. Added also a test which tests that readline() doesn't 
read whole file.

--
Added file: http://bugs.python.org/file34232/fileinput_hook_encoded_3.patch

___
Python tracker 

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



[issue20778] ModuleFinder.load_module skips incorrect number of bytes in pyc files

2014-02-26 Thread R. David Murray

R. David Murray added the comment:

Well, because of the fact that freeze tools are used to distribute programs on 
the Windows platform.  But, given that it hasn't been reported before and has 
been a problem since 3.3, it seems like there is no rush.

--

___
Python tracker 

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



[issue20774] collections.deque should ship with a stdlib json serializer

2014-02-26 Thread Gareth Rees

Gareth Rees added the comment:

The JSON implementation uses these tests to determine how to serialize a Python 
object:

isinstance(o, (list, tuple))
isinstance(o, dict)

So any subclasses of list and tuple are serialized as a list, and any subclass 
of dict is serialized as an object. For example:

>>> json.dumps(collections.defaultdict())
'{}'
>>> json.dumps(collections.OrderedDict())
'{}'
>>> json.dumps(collections.namedtuple('mytuple', ())())
'[]'

When deserialized, you'll get back a plain dictionary or list, so there's no 
round-trip property here.

The tests could perhaps be changed to:

isinstance(o, collections.abc.Sequence)
isinstance(o, collections.abc.Mapping)

I'm not a JSON expert, so I have no informed opinion on whether this is a good 
idea or not, but in any case, this change wouldn't help with deques, as a deque 
is not a Sequence. That's because deques don't have an index method (see 
issue10059 and issue12543).

--
nosy: +Gareth.Rees

___
Python tracker 

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



[issue20778] ModuleFinder.load_module skips incorrect number of bytes in pyc files

2014-02-26 Thread Brett Cannon

Brett Cannon added the comment:

Don't know why this is any more special of a bug because it influences 
cx_freeze compared to any other bug that influences a popular project. I mean 
I'm not going to stop you from making it a blocker but I'm also not going to 
rush to fix it myself either.

--

___
Python tracker 

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



[issue7503] multiprocessing AuthenticationError "digest sent was rejected" when pickling proxy

2014-02-26 Thread Dhanannjay Deo

Dhanannjay Deo added the comment:

Confirmed for python 2.7.3 on ubuntu 12.04 lts. Why this issue is still open 
after 4 years ?

--
nosy: +Dhanannjay.Deo
versions:  -Python 2.6

___
Python tracker 

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



[issue20777] PyArg_ParseTupleAndKeywords does not respect arguments format.

2014-02-26 Thread Carlos Ferreira

Carlos Ferreira added the comment:

Solved. This issue had nothing to do with Python API.

--

___
Python tracker 

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



[issue7503] multiprocessing AuthenticationError "digest sent was rejected" when pickling proxy

2014-02-26 Thread Paul Tunison

Paul Tunison added the comment:

I can confirm that this is still an issue with python 2.7.5. My method of 
resolving this locally is similar to xhantu's. I created a sub-class of 
BaseProxy, overriding the __reduce__ method and injecting the authkey into the 
appropriate spot in the super method's returned content.

--
nosy: +Paul.Tunison

___
Python tracker 

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



[issue7503] multiprocessing AuthenticationError "digest sent was rejected" when pickling proxy

2014-02-26 Thread Paul Tunison

Paul Tunison added the comment:

I can confirm that this is still an issue with python 2.7.5. My method of 
resolving this locally is similar to xhantu's. I created a sub-class of 
BaseProxy, overriding the __reduce__ method and injecting the authkey into the 
appropriate spot in the super method's returned content.

--
nosy: +Paul.Tunison

___
Python tracker 

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



[issue7503] multiprocessing AuthenticationError "digest sent was rejected" when pickling proxy

2014-02-26 Thread Paul Tunison

Paul Tunison added the comment:

I can confirm that this is still an issue with python 2.7.5. My method of 
resolving this locally is similar to xhantu's. I created a sub-class of 
BaseProxy, overriding the __reduce__ method and injecting the authkey into the 
appropriate spot in the super method's returned content.

--
nosy: +Paul.Tunison

___
Python tracker 

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



[issue20759] unittest.mock documentation typos

2014-02-26 Thread Zachary Ware

Zachary Ware added the comment:

Thanks for the report!

--
assignee: docs@python -> zach.ware
nosy: +zach.ware

___
Python tracker 

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



[issue20778] ModuleFinder.load_module skips incorrect number of bytes in pyc files

2014-02-26 Thread R. David Murray

R. David Murray added the comment:

Oops, didn't mean to remove the keyword.

--
keywords: +3.2regression

___
Python tracker 

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



[issue20759] unittest.mock documentation typos

2014-02-26 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 045f048cc116 by Zachary Ware in branch '3.3':
Issue #20759: Fix some typos in the mock docs.
http://hg.python.org/cpython/rev/045f048cc116

New changeset 42ef1c82d645 by Zachary Ware in branch 'default':
Close #20759: Fix some typos in the mock docs. (Merge with 3.3)
http://hg.python.org/cpython/rev/42ef1c82d645

--
nosy: +python-dev
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue20778] ModuleFinder.load_module skips incorrect number of bytes in pyc files

2014-02-26 Thread R. David Murray

R. David Murray added the comment:

Right.  I'm asking if it should be a release blocker for the next 3.3, too :)

I'm not saying it should be, just raising the question.  It's in my mind 
because I'm currently using cx_Freeze in a project for a client.  It could have 
affected me, since I was going to release using 3.3, but as it turns out I have 
to use 2.7 because of a non-ported dependency that I don't have time to port 
myself.

--
keywords:  -3.2regression

___
Python tracker 

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



[issue20774] collections.deque should ship with a stdlib json serializer

2014-02-26 Thread Antoine Pitrou

Antoine Pitrou added the comment:

The problem is that it would be deserialized as a list; this breaks the general 
expectation that serialization formats should round-trip.

(yes, tuple already does this; but I think it is less of a problem for tuples, 
since the list API is a superset of the tuple API except for hashing)

So, perhaps we could ship an optional serializer (under which form?) accepting 
any sequence type (and perhaps any mapping type?), but it shouldn't be the 
default.

--
nosy: +ezio.melotti, pitrou, rhettinger
type:  -> enhancement
versions: +Python 3.5 -Python 2.7, Python 3.3

___
Python tracker 

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



  1   2   >