[issue22120] Return converter code generated by Argument Clinic has a warning for unsigned types

2014-08-04 Thread Larry Hastings

Changes by Larry Hastings :


--
title: Code  Argument Clinic has a warning -> Return converter code generated 
by Argument Clinic has a warning for unsigned types

___
Python tracker 

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



[issue22120] Code Argument Clinic has a warning

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

The title for this bug was almost offensively generic; it was hard to find in 
my email.  If this new one is inaccurate, fix it--but please pick something 
more specific.

Attached is a patch for the "_return_value == -1" behavior for unsigned.

--
title: Fix compiler warnings -> Code  Argument Clinic has a warning
Added file: 
http://bugs.python.org/file36266/larry.fix.unsigned.int.return.-1.converter.cast.1.txt

___
Python tracker 

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



[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-04 Thread Daniel Eriksson

Daniel Eriksson added the comment:

Result:

Before: 1407219004 988716892
 After: 1407219004 0
Before <= After 0
This is insane!

--

___
Python tracker 

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



[issue22136] Fix _tkinter compiler warnings on MSVC

2014-08-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I'm surprised that this caused a warning. In man page Tcl_GetObjType() is 
described as

   Tcl_ObjType *
   Tcl_GetObjType(typeName)

and in header file it is declared as

EXTERN Tcl_ObjType *Tcl_GetObjType _ANSI_ARGS_((char * typeName));
Tcl_ObjType *Tcl_GetObjType(typeName);

But this change shouldn't add any ill effect. The patch LGTM.

--
assignee:  -> zach.ware
stage: patch review -> commit review

___
Python tracker 

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



[issue22071] Remove long-time deprecated attributes from smtpd

2014-08-04 Thread Ezio Melotti

Changes by Ezio Melotti :


--
stage:  -> patch review
type:  -> enhancement

___
Python tracker 

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



[issue22118] urljoin fails with messy relative URLs

2014-08-04 Thread Ezio Melotti

Changes by Ezio Melotti :


--
keywords: +easy
nosy: +ezio.melotti, orsenthil
stage:  -> needs patch

___
Python tracker 

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



[issue22060] Clean up ctypes.test, use unittest test discovery

2014-08-04 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti

___
Python tracker 

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



[issue22014] Add summary table for OS exception <-> errno mapping

2014-08-04 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti
stage:  -> needs patch
type:  -> enhancement

___
Python tracker 

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



[issue22000] cross type comparisons clarification

2014-08-04 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti
stage:  -> needs patch

___
Python tracker 

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



[issue22133] IDLE: Set correct WM_CLASS on X11

2014-08-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I see no effect on KDE.

We should change window class also for other toplevel windows (from stack 
viewer to calltip). And for turtledemo and other gui demos too.

--

___
Python tracker 

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



[issue21972] Bugs in the lexer and parser documentation

2014-08-04 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +benjamin.peterson

___
Python tracker 

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



[issue21928] Incorrect reference to partial() in functools.wraps documentation

2014-08-04 Thread Ezio Melotti

Changes by Ezio Melotti :


--
assignee: docs@python -> ezio.melotti
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue21928] Incorrect reference to partial() in functools.wraps documentation

2014-08-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9e3c367b45a1 by Ezio Melotti in branch '3.4':
#21928: clarify functools.wraps docs.
http://hg.python.org/cpython/rev/9e3c367b45a1

New changeset 5a58f6e793cc by Ezio Melotti in branch 'default':
#21928: merge with 3.4.
http://hg.python.org/cpython/rev/5a58f6e793cc

New changeset 6cbd08fbdf77 by Ezio Melotti in branch '2.7':
#21928: clarify functools.wraps docs.
http://hg.python.org/cpython/rev/6cbd08fbdf77

--
nosy: +python-dev

___
Python tracker 

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



[issue22105] Idle: Hang during File "Save As"

2014-08-04 Thread Joe Gaspard

Joe Gaspard added the comment:

Today the "memory" problem repeated, and I was ale to get more info:

While displaying results of program execution in IDLE, two "memory 
problem" pop-ups were displayed.  Selecting  " recovery activate" 
buttons did not help.  The lower right "Ln count" was 5,xxx,xxx, but 
had not changed for apx one hour (it won't advance unless I click on 
the IDLE window).  Estimated "Ln count" was apx 7,5xxx,xxx at time of 
computer lock up.  CTRL.ALT.DEL eventually restored control of 
Windows (WIN7-64 bit) by using the Status window which also displayed 
98% memory.  A "tk" reference was also displayed before computer 
control was re-established.

My program execution requires printing a line after an "if - else" 
statement.  If I "#comment" the line immediately following  "if" in 
order to reduce the "Ln count", execution will go to the unwanted 
"else" block.  I have not been able to work around this problem.  The 
"else" statement needs to wait for a "Ln count"of apx 10,xxx,xxx, but 
the memory problem occurs at apx 7,5xx,xxx.

Hope this info is of some use.  The only solutions I can think of are 
ones that would allow 10+ million IDLE line prints, or a way around 
the "if -else" problem.
Thanks for the help, I understand your priorities. ... Joe Gaspard

At 10:14 PM 8/3/2014, you wrote:

>Terry J. Reedy added the comment:
>
>The latest version is best. We are gradually fixing crashes, closes, 
>hangs, and other bugs.
>
>When you replay by email, please delete the quoted message, as it is 
>redundant with the message already displayed and just noise.
>
>I am closing this issue for now because there is insufficient data 
>to do anything. We can only work on semi-repeatable problems that 
>occur on more than just one user's machine. Windows, at least, is 
>prone to unrepeatable and sometimes system-specific glitches.
>
>--
>resolution:  -> later
>stage:  -> resolved
>status: open -> closed
>type:  -> behavior
>
>___
>Python tracker 
>
>___

--

___
Python tracker 

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



[issue15759] "make suspicious" doesn't display instructions in case of failure

2014-08-04 Thread Ezio Melotti

Ezio Melotti added the comment:

Thanks for fixing this!

--

___
Python tracker 

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



[issue17665] convert test_wsgiref to idiomatic unittest code

2014-08-04 Thread Ezio Melotti

Changes by Ezio Melotti :


--
resolution:  -> out of date
stage: patch review -> resolved
status: open -> closed
superseder:  -> Use specific asserts in urllib related tests

___
Python tracker 

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



[issue22138] patch.object doesn't restore function defaults

2014-08-04 Thread Ezio Melotti

Ezio Melotti added the comment:

The issue seems to affect special attributes that can't be deleted.
In Lib/unittest/mock.py:1329, patch() tried to delete the attribute, and then, 
if it doesn't exist, it restores the previous value.  However some special 
attributes exist even after they are deleted, but their initial value is lost:
>>> def foo(x:int=5, y:int=3): return x + y
... 
>>> foo.__defaults__
(5, 3)
>>> del foo.__defaults__
>>> foo.__defaults__
>>> foo.__annotations__
{'y': , 'x': }
>>> del foo.__annotations__
>>> foo.__annotations__
{}
>>> foo.__qualname__
'foo'
>>> del foo.__qualname__
TypeError: __qualname__ must be set to a string object

--
keywords: +easy
nosy: +ezio.melotti, michael.foord
stage:  -> needs patch

___
Python tracker 

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



[issue16037] httplib: header parsing is unlimited

2014-08-04 Thread Berker Peksag

Berker Peksag added the comment:

Thanks for the patches Jyrki and Daniel.

--
nosy: +berker.peksag
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



[issue16037] httplib: header parsing is unlimited

2014-08-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5e310c6a8520 by Berker Peksag in branch '2.7':
Issue #16037: HTTPMessage.readheaders() raises an HTTPException when more
http://hg.python.org/cpython/rev/5e310c6a8520

--

___
Python tracker 

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



[issue22138] patch.object doesn't restore function defaults

2014-08-04 Thread Clint Hepner

New submission from Clint Hepner:

Following a patch, a function's __defaults__ attribute is reset to None.

def foo(x=5):
return x

assert foo() == 5  # As expected
with unittest.mock.patch.object(foo, '__defaults__', (10,)):
assert foo() == 10  # As expected

assert foo() == 5  # Fails
assert foo.__defaults__ is None  # Succeeds

--
components: Library (Lib)
messages: 224801
nosy: chepner
priority: normal
severity: normal
status: open
title: patch.object doesn't restore function defaults
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



[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-08-04 Thread Larry Hastings

Changes by Larry Hastings :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

Gonna keep an eye on the buildbots and make sure I haven't caused any new 
breakage.  Otherwise... fingers crossed, I think it's done!  Thanks for the 
help everybody (particularly Zach!).

--

___
Python tracker 

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



[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-08-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0c57aba6b1a3 by Larry Hastings in branch 'default':
Issue #20170: Convert posixmodule to use Argument Clinic.
http://hg.python.org/cpython/rev/0c57aba6b1a3

--
nosy: +python-dev

___
Python tracker 

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



[issue21991] The new email API should use MappingProxyType instead of returning new dicts.

2014-08-04 Thread Lita Cho

Changes by Lita Cho :


--
nosy: +jesstess

___
Python tracker 

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



[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-04 Thread Jesús Cea Avión

Changes by Jesús Cea Avión :


--
nosy: +jcea

___
Python tracker 

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



[issue14534] Add method to mark unittest.TestCases as "do not run".

2014-08-04 Thread Akira Li

Akira Li added the comment:

About the name: abstract_tests could be used e.g.:

  @abstract_tests
  class AbcSetTests(TestCase):
  # test abc.Set
  Set = abstract_property()

  def setUp(self):
  self.set = self.Set('abc')

  def test_difference(self):
  self.assert... 

  def test_union(self):
  self.assert...

It is clear that AbcSetTests do not run because the class is abstract
(can't create an instance).  It is clear that to create a concrete test,
you need to subclass the abstract class (serve as a base class):

  class BuiltinSetTests(AbcSetTests):
  # test builtins.set
  Set = set

  class FrozenSetTests(AbcSetTests):
  # test frozenset
  Set = frozenset

It might not be necessary to enforce all abstract constraints in the
implementation initially. The only thing that needs to be implemented is
that tests from @abstract_tests decorated class should not be run.

--
nosy: +akira

___
Python tracker 

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



[issue21991] The new email API should use MappingProxyType instead of returning new dicts.

2014-08-04 Thread Lita Cho

Lita Cho added the comment:

Hi David, I can take this on as I am learning the email api currently.

--
nosy: +Lita.Cho

___
Python tracker 

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



[issue8232] webbrowser.open incomplete on Windows

2014-08-04 Thread Zachary Ware

Changes by Zachary Ware :


--
stage: needs patch -> patch review
versions: +Python 3.5 -Python 3.1

___
Python tracker 

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



[issue8232] webbrowser.open incomplete on Windows

2014-08-04 Thread Brandon Milam

Brandon Milam added the comment:

I got rid of the __init__ for the WindowsDefault class that I asked about 
earlier and changed it to match the sub-classing model that the Unix browsers 
use. This caused some changes in the get function too. Due to the _isexecutable 
still not completely working, the get function is hard coded for chrome, 
internet explorer and firefox for windows systems. This is my first attempt at 
making a patch file so if it is incorrect please bear with me.

--
keywords: +patch
Added file: http://bugs.python.org/file36265/webbrowserfix.patch

___
Python tracker 

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



[issue21973] Idle should not quit on corrupted user config files

2014-08-04 Thread ingrid

ingrid added the comment:

Thanks for your feedback. I can try again when you have written the config warn 
function or I can try writing the config warn function. The tests aren't 
relevant anymore if the warning is raised in a tk message box. I think deleting 
the config files could potentially be frustrating for users, and I'm not sure 
about fixing them either. I think renaming them would be safer and easier, what 
would you rename them to?

--

___
Python tracker 

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



[issue1186900] nntplib shouldn't raise generic EOFError

2014-08-04 Thread Lita Cho

Lita Cho added the comment:

I'ved changed the comment to say Connection closed unexpectedly.

--
Added file: http://bugs.python.org/file36264/nntplib_error_v2.patch

___
Python tracker 

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



[issue14534] Add method to mark unittest.TestCases as "do not run".

2014-08-04 Thread Ezio Melotti

Ezio Melotti added the comment:

I left a few comments on rietveld.
The patch should also include documentation.

> Class decorator approach looks less obvious to me. [...]
> But encountering the unittest.base_class decorator, I need to look in
> the documentation and/or sources to understand how it works.

I also agree that seeing @testBaseClass (the current name in the patch) gives 
very little indication of what's going on, but perhaps that could be fixed with 
a better name.
The two importants things are that the class is ignored/skipped, and that this 
doesn't propagate to the subclasses (as one might expect).
Would something like @ignoredBaseClass/@skippedBaseClass be better?  Another 
options could be a more explicit @dontRunBaseClassTests, even though I don't 
particularly like the name.

--

___
Python tracker 

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



[issue21591] "exec(a, b, c)" not the same as "exec a in b, c" in nested functions

2014-08-04 Thread Nick Coghlan

Nick Coghlan added the comment:

I suspect there may also be a problem if executing pyc code generated the old 
way (this patch didn't bump the magic number, and doesn't really need to, so 
that case still needs to be handled).

Restoring the runtime check should cover it (the test can craft a suitable AST 
by hand rather than going through the now updated compiler)

--

___
Python tracker 

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



[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS)

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

Those interested in this issue might also be interested in #19838, in which I 
demonstrate that utime(path, NULL) can set mtime to an *earlier* time on ZFS on 
Linux.

--
title: Numerous utime ns tests fail on FreeBSD w/ ZFS (update:  and NetBSD w/ 
FFS, Solaris w/ UFS) -> Numerous utime ns tests fail on FreeBSD w/ ZFS (update: 
and NetBSD w/ FFS, Solaris w/ UFS)

___
Python tracker 

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



[issue22130] Logging fileConfig behavior does not match documentation

2014-08-04 Thread Berker Peksag

Changes by Berker Peksag :


--
nosy: +vinay.sajip

___
Python tracker 

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



[issue22137] Test imaplib API on all methods specified in RFC 3501

2014-08-04 Thread Milan Oberkirch

New submission from Milan Oberkirch:

I finished writing tests for all methods which are specified in RFC 3501 but 
left out extensions for now. The attached patch will trigger many resource 
warnings. Do you have an idea why the sockets aren't closed?

--
files: imaplib_test_rfc3501.patch
keywords: patch
messages: 224790
nosy: jesstess, pitrou, r.david.murray, zvyn
priority: normal
severity: normal
status: open
title: Test imaplib API on all methods specified in RFC 3501
Added file: http://bugs.python.org/file36263/imaplib_test_rfc3501.patch

___
Python tracker 

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



[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

Attached is a simple C test case for the same behavior.  On my Linux machine 
this prints "This is insane!" on a ZFS partition and "Everything is okay" on an 
ext4 partition.

The test case won't work unmodified on FreeBSD.  Try commenting out the call to 
"utimensat", and uncommenting the call to "utimes".  I don't guarantee that's 
sufficient.

If nothing else, we can be certain it's not a Python bug.

--
Added file: http://bugs.python.org/file36262/c_test_case_for_issue_19838.c

___
Python tracker 

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



[issue22133] IDLE: Set correct WM_CLASS on X11

2014-08-04 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Serhiy, do you know if the trivial addition of "class_='IDLE'" can have any ill 
effect on non-gnome systems? It looks sensible to me, and I see no effect on 
Windows.
-self.top = top = WindowList.ListedToplevel(root, menu=self.menubar)
+self.top = top = WindowList.ListedToplevel(root, class_='IDLE',
+   menu=self.menubar)

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue21591] "exec(a, b, c)" not the same as "exec a in b, c" in nested functions

2014-08-04 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis added the comment:

Commit 33fb5600e9a1 causes 1 test failure in test suite of py 
(https://pypi.python.org/pypi/py).
Test suite of py requires pytest (https://pypi.python.org/pypi/pytest)
The failing test (test_excinfo_no_python_sourcecode) requires Jinja 
(https://pypi.python.org/pypi/Jinja2) and is skipped otherwise.
This test also passes with Python 3.*.

Output with py 1.4.23, pytest 2.6.0 and Jinja 2.7.3:

$ python2.7 -m pytest testing/code/test_excinfo.py
 test 
session starts 

platform linux2 -- Python 2.7.9 -- py-1.4.23 -- pytest-2.6.0
collected 71 items 

testing/code/test_excinfo.py 
F..

= 
FAILURES 
==
_ 
test_excinfo_no_python_sourcecode 
_

tmpdir = local('/tmp/pytest-0/test_excinfo_no_python_sourcec0')

def test_excinfo_no_python_sourcecode(tmpdir):
#XXX: simplified locally testable version
tmpdir.join('test.txt').write("{{ h()}}:")

jinja2 = py.test.importorskip('jinja2')
loader = jinja2.FileSystemLoader(str(tmpdir))
env = jinja2.Environment(loader=loader)
>   template = env.get_template('test.txt')

testing/code/test_excinfo.py:290: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib64/python2.7/site-packages/jinja2/environment.py:791: in get_template
return self._load_template(name, self.make_globals(globals))
/usr/lib64/python2.7/site-packages/jinja2/environment.py:765: in _load_template
template = self.loader.load(self, name, globals)
/usr/lib64/python2.7/site-packages/jinja2/loaders.py:135: in load
globals, uptodate)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

cls = , environment = 

code =  at 0x7f0ed6f2d930, file 
"/tmp/pytest-0/test_excinfo_no_python_sourcec0/test.txt", line 1>
globals = {'cycler': , 'dict':  
at 0x7f0ed73c97d0>, 'joiner': , 'lipsum': 
, ...}
uptodate = 

@classmethod
def from_code(cls, environment, code, globals, uptodate=None):
"""Creates a template object from compiled code and the globals.  This
is used by the loaders and environment to create a template object.
"""
namespace = {
'environment':  environment,
'__file__': code.co_filename
}
>   exec(code, namespace)
E   TypeError: exec: arg 1 must be a string, file, or code object

/usr/lib64/python2.7/site-packages/jinja2/environment.py:917: TypeError
== short test 
summary info ==
FAIL testing/code/test_excinfo.py::test_excinfo_no_python_sourcecode
 1 failed, 70 
passed in 1.66 seconds 


--
assignee:  -> djc
nosy: +Arfrever
resolution: fixed -> 
stage: resolved -> 
status: closed -> open

___
Python tracker 

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



[issue22023] PyUnicode_FromFormat is broken on python 2

2014-08-04 Thread Ezio Melotti

Changes by Ezio Melotti :


--
stage:  -> resolved
type:  -> behavior

___
Python tracker 

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



[issue18069] Subprocess picks the wrong executable on Windows

2014-08-04 Thread Ezio Melotti

Changes by Ezio Melotti :


--
assignee:  -> docs@python
components: +Documentation
nosy: +docs@python
stage:  -> needs patch

___
Python tracker 

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



[issue11955] 3.3 : test_argparse.py fails 'make test'

2014-08-04 Thread Ezio Melotti

Ezio Melotti added the comment:

I applied my patch, but that doesn't fix the original issue -- it just provides 
a better error message in case of failure.

--
keywords:  -patch
stage: patch review -> needs patch
versions: +Python 3.5

___
Python tracker 

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



[issue17923] test glob with trailing slash fail on AIX 6.1

2014-08-04 Thread Berker Peksag

Changes by Berker Peksag :


--
nosy: +David.Edelsohn

___
Python tracker 

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



[issue11955] 3.3 : test_argparse.py fails 'make test'

2014-08-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9a410ae785ff by Ezio Melotti in branch '3.4':
#11955: show the list of args in case of error in test_argparse.
http://hg.python.org/cpython/rev/9a410ae785ff

New changeset 25e634756f79 by Ezio Melotti in branch 'default':
#11955: merge with 3.4.
http://hg.python.org/cpython/rev/25e634756f79

--
nosy: +python-dev

___
Python tracker 

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



[issue17923] test glob with trailing slash fail on AIX 6.1

2014-08-04 Thread Ezio Melotti

Ezio Melotti added the comment:

Someone on AIX should verify this patch and confirm that it fixes the issue 
(and if Python 3 is affected or not).

--
keywords: +easy
title: test glob with trailing slash fail -> test glob with trailing slash fail 
on AIX 6.1

___
Python tracker 

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



[issue20056] Got deprecation warning when running test_shutil.py on Windows NT 6

2014-08-04 Thread Ezio Melotti

Ezio Melotti added the comment:

Even if the problem is not in test_shutil, those warnings shouldn't be there.
Vajrasky, can you check if you can still reproduce this issue, and see if you 
can fix it (either by converting the filenames to unicode, or by silencing the 
warnings)?

--
components: +Windows
keywords: +easy

___
Python tracker 

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



[issue21973] Idle should not quit on corrupted user config files

2014-08-04 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Some background context before I comment on the patch: Printing warnings to a 
console is a flawed idea. It does not work on Windows when Idle is run with 
pythonw and there is no console to write to. This is the normal case on Windows 
and, I suspect, the majority of all Idle uses across all systems. The attempt 
to write (to sys.__stderr__ == None) raises OSError, which shuts Idle down 
unless caught. (Thomas experiences exactly this when Python attempted to write 
the traceback.)  Either way, there is no message to be seen. Even when writing 
to console is successful, the message will often be hidden by Idle windows. 
Maybe it will be seen later, but  possibly not. 

Idle is a gui program and should not assume a text console. We should use tk 
messages boxes instead. Or perhaps put warnings in an Output Window (either 
instead, or in addition). Or put an error.log in .idlerc/ (this would be 'in 
addition'. Or also write to console when there is one, but not as the only 
message delivery system.

For problems in config files, I think we should, if possible, fix, rename, or 
delete the file. In any case, make it so the same warning will not appear next 
time Idle it is started. If we do anything, the warning message should say what 
was done.

There are 6 places in configHandler with code like the following:
if  :
# do default, print warning
warning=...
try:
sys.stderr.write(warning)
except OSError:
pass

(In one of the 6, Idle exits instead of catching OSError; there is another 
issue to fix this.)  These blocks mix together situation-specific message 
creation with a common and flawed delivery system. The latter should be 
factored out and fixed in a separate function at the top of the file (which I 
can write a first version of).

def config_warn(message): ... 

The problem with the patch is that it does not follow existing configHandler 
code. First, it stores errors and shuffles them off to be dealt with in 
PyShell. They should instead be immediately dealt with where detected. Second, 
it uses idle_showwarning to format and emit the warning.  Formatting with 
idle_formatwarning is ok, but idle_showwarning is designed specifically for the 
shell, ending warnings with the shell prompt '>>> '. It also has the flaw of 
the code above.  By default, it sends messages to an often non_existent 
sys.__stderr__. The patch should use the new config_warn function.

I will look at the new tests later.

When GSOC is done, I want to look as Tal's extension config dialog. That should 
reduce errors from users hand-editing config-extensions. Saimadhav has also 
done some work on key validation that needs to be applied to configHandler and 
configDialog. That should reduce key errors a bit.

--

___
Python tracker 

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



[issue19055] Regular expressions: * does not match as many repetitions as possible.

2014-08-04 Thread Ezio Melotti

Ezio Melotti added the comment:

I agree.

--
resolution:  -> works for me
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

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



[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-04 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti

___
Python tracker 

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



[issue5411] Add xz support to shutil

2014-08-04 Thread Éric Araujo

Éric Araujo added the comment:

I’m afraid I changed computers once or twice since I worked on that, so I can’t 
readily find my clone and get the latest patch.  I know where the hard drives 
are but I can’t say when I will have time to search them.

--
assignee: eric.araujo -> 

___
Python tracker 

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



[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

And to further confirm, on my Linux machine with a ZFS partition:

* stat() returns nanosecond resolution.
* I have utimensat(), which supports nanosecond resolution.
* The test code correctly sets "utime.now = 1", so it correctly calls 
utimensat() with a time pointer of NULL.

It still fails, but here the race is much closer:

before: 1407191476502407010
 after: 1407191476502090829
before <= after False

If I run the test on a different filesystem (e.g. on /tmp which is ext4) the 
problem doesn't occur.

My guess: it's ZFS's fault in both cases, it's not using the highest-precision 
timer available.

--

___
Python tracker 

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



[issue22128] patch: steer people away from codecs.open

2014-08-04 Thread Frank van Dijk

Frank van Dijk added the comment:

> Marc-Andre Lemburg added the comment:
> 
> Pointing people to io.open() as alternative to codecs.open() is a good idea, 
> but that doesn't make codecs.open() less useful.
> 
> The reason why codecs.open() uses binary mode is to avoid issues with 
> automatic newline conversion getting in the way of the file's encoding. Think 
> of e.g. UTF-16 encoded files that use newlines.

disabling text mode on the underlying file handle to keep a UTF-16 code unit 
like 0x010a from getting mangled works, but no newline conversion is a high 
price to pay. Newline conversion should (conceptually) be done before encoding 
and after decoding. io.open() does it right.

> 
> Note that codecs allow handling newlines on a line-by-line bases via the 
> .readline() keepends parameter, so issues with Windows vs. Unix can be worked 
> around explicitly. Since default is to keep line ends, no data loss occurs 
> and application code can deal with line ends as it sees fit.

Trouble is, your average python coder won't do exhaustive research on the pros 
and cons of the various options for I/O available and the pros and cons of 
dealing with platform differences at the application level. They'll just use 
the open() builtin, then realize they need utf-8 output or whatever, google 
"python write utf-8" or browse the unicode HOWTO, see a very familiar looking 
API and assume it'll behave just like open()

> 
> As it stands, I'm -1 on this patch, but would be +1 on mentioning io.open() 
> as alternative to codecs.open() with a slightly different approach to line 
> ends.

What would that mean concretely ? Undoing the change to the unicode HOWTO and 
instead adding a remark along the lines of "The codecs.open() function does not 
have the automatic newline conversion features that the builtin open() function 
provides to make reading and writing text files platform independent. If you 
need automatic newline conversion for the Unicode data you read and write, 
consider using io.open() instead." ?

I could live with that.

> 
> I don't think it's useful to tell people:
> * use codecs.open() on Python 2.4, 2.5, 2.6
> * use io.open() on Python 2.7 (io is too slow on 2.6 to be a real alternative 
> to codecs.open())
> * use open() on Python 3.4+

The unicode HOWTO already recommends open() on all 3.x versions of the 
documentation at docs.python.org.

If you run 2.4 and 2.5 and you're adding new python software to your ancient 
system without upgrading python itself the only thing that could happen is that 
you'll get a clear-cut error if that new software imports io.

I can't judge how much of a problem slowness of the io module is in 2.6 or how 
much 'market share' 2.6 has left, but I'll note that correctness trumps 
performance. I'll also note that we're not changing any code here, nor will 
there be a rush of coders racing to get their existing apps and frameworks in 
line with the new decree.

All we're doing is giving average python programmers a better chance to 
discover what the drop in replacement for open() is or why that helpful tip 
found on the interwebs left them with a subtly mangled text file that looks 
really weird in notepad and makes git complain.

> 
> codecs.open() works the same across all these Python versions.
> 
> --
> 
> ___
> Python tracker 
> 
> ___

--

___
Python tracker 

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



[issue20586] Argument Clinic: functions with valid sig but no docstring have no __text_signature__

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

This looks reasonable to me.  However I'd also change 
_PyType_GetDocFromInternalDoc() so that it also returns None if the first byte 
of the doc is \0.

--

___
Python tracker 

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



[issue22136] Fix _tkinter compiler warnings on MSVC

2014-08-04 Thread Zachary Ware

New submission from Zachary Ware:

Dropping support of Tk 8.3 caused a few compiler warnings on Windows:

  ..\Modules\_tkinter.c(587): warning C4090: '=' : different 'const' qualifiers
  ..\Modules\_tkinter.c(588): warning C4090: '=' : different 'const' qualifiers
  ..\Modules\_tkinter.c(589): warning C4090: '=' : different 'const' qualifiers
  ..\Modules\_tkinter.c(590): warning C4090: '=' : different 'const' qualifiers
  ..\Modules\_tkinter.c(591): warning C4090: '=' : different 'const' qualifiers
  ..\Modules\_tkinter.c(592): warning C4090: '=' : different 'const' qualifiers
  ..\Modules\_tkinter.c(593): warning C4090: '=' : different 'const' qualifiers

Does this patch look like the correct fix?

--
components: Build, Tkinter, Windows
files: tkinter_MSVC_warnings.diff
keywords: patch
messages: 224776
nosy: serhiy.storchaka, zach.ware
priority: normal
severity: normal
stage: patch review
status: open
title: Fix _tkinter compiler warnings on MSVC
type: behavior
versions: Python 3.5
Added file: http://bugs.python.org/file36261/tkinter_MSVC_warnings.diff

___
Python tracker 

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



[issue14910] argparse: disable abbreviation

2014-08-04 Thread Daniel Eriksson

Daniel Eriksson added the comment:

Updated patch

--
Added file: http://bugs.python.org/file36260/issue14910_7.diff.txt

___
Python tracker 

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



[issue20323] Argument Clinic: docstring_prototype output causes build failure on Windows

2014-08-04 Thread Zachary Ware

Zachary Ware added the comment:

You're right, of course; I don't know how I got a non-screwball result in prior 
testing.  Here's an updated patch.

I have not come up with any better alternative.

--
stage:  -> patch review
Added file: http://bugs.python.org/file36259/issue20323.v2.diff

___
Python tracker 

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



[issue22134] string formatting float rounding errors

2014-08-04 Thread Ned Deily

Ned Deily added the comment:

What you are seeing is due to the limitations of binary floating-point 
arithmetic.  The issue is described in more detail in the Python tutorial:

https://docs.python.org/2/tutorial/floatingpoint.html#tut-fp-issues

--
nosy: +ned.deily
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue22135] allow to break into pdb with Ctrl-C for all the commands that resume execution

2014-08-04 Thread Xavier de Gaye

Changes by Xavier de Gaye :


--
nosy: +georg.brandl

___
Python tracker 

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



[issue22135] allow to break into pdb with Ctrl-C for all the commands that resume execution

2014-08-04 Thread Xavier de Gaye

New submission from Xavier de Gaye:

Pdb sets a handler for the SIGINT signal (which is sent when the user presses 
Ctrl-C on the console) when you give a continue command.
'continue' is not the only pdb command that may be interrupted, all the 
commands that resume the execution of the program (i.e. the 'do_xxx' Pdb 
methods that return 1), except for the ones that terminate pdb, should also set 
the SIGINT signal handler. These are the 'step', 'next', 'until' and 'return' 
commands.
For example, a 'next' command issued at the invocation of a function when the 
function is doing a long processing and the user wishes to break into pdb again 
with Ctrl-C within this function.

It is probably better to fix this issue after issue 20766 is fixed.

--
components: Library (Lib)
messages: 224772
nosy: xdegaye
priority: normal
severity: normal
status: open
title: allow to break into pdb with Ctrl-C for all the commands that resume 
execution
type: behavior
versions: Python 3.5

___
Python tracker 

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



[issue5411] Add xz support to shutil

2014-08-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Éric?

--

___
Python tracker 

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



[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

I talked to puppet on IRC for a while and we figured out the following about 
his OS:

* He has utime() and utimes(), but no utimensat().
* utimes() can write with *microsecond* resolution.
* stat() reads the time with *nanosecond* resolution.  (He has 
HAVE_STAT_TV_NSEC defined.)
* utimes(path, NULL) sets the file to the current time with *second* 
resolution.  Which means if it happens within the same second as the previous 
update, it will set mtime to an earlier value.

Just to confirm, he ran this script:
--
import os
b = '/tmp/test2'
open(b,'a').close()
before = os.stat(b)
os.utime(b, None)
after = os.stat(b)
os.unlink(b)
print("before:", before.st_mtime_ns)
print(" after:", after.st_mtime_ns)
print("before <= after", before.st_mtime_ns <= after.st_mtime_ns)
--

and it consistently prints "before <= after False".

*facepalm*

Since utimes supports microsecond resolution, we could in theory work around 
this problem by explicitly specifying the current time when using utimes().  If 
we did that, we might want to also see if this behavior affects futimes() and 
lutimes().

Functions in posixmodule are expected to be atomic, and this would mean two 
system calls instead of one--so maybe we should only use this workaround on 
platforms with the bug?

--

___
Python tracker 

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



[issue20766] reference leaks in pdb

2014-08-04 Thread Xavier de Gaye

Xavier de Gaye added the comment:

After refleak_3.patch, test_pdb_next_command_in_generator_for_loop is the only 
remaining test that sets a breakpoint without reinitializing the breakpoints 
numbering first.
As a result, this test may also fail in the future when tests are reordered by 
the unittest machinery.
refleak_4.patch adds a fix to that (and could be ignored as a problem that 
should be fixed in a new issue of its own).

--
Added file: http://bugs.python.org/file36258/refleak_4.patch

___
Python tracker 

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



[issue22097] Linked list API for ordereddict

2014-08-04 Thread Raymond Hettinger

Raymond Hettinger added the comment:

>  Perhaps someone should make a blog post comparing
> theoretical and actual performance of various data 
> types (hint hint ;-)).

Great idea.

Thanks Antoine.

--
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue15018] Incomplete Python LDFLAGS and CPPFLAGS used for extension modules on posix

2014-08-04 Thread Roumen Petrov

Changes by Roumen Petrov :


--
nosy: +rpetrov

___
Python tracker 

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



[issue20181] Derby #12: Convert 50 sites to Argument Clinic across 4 files

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

All the Derby patches should only go into trunk at this point.

--
versions: +Python 3.5 -Python 3.4

___
Python tracker 

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



[issue20186] Derby #18: Convert 31 sites to Argument Clinic across 23 files

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

All the Derby patches should only go into trunk at this point.

--
versions: +Python 3.5 -Python 3.4

___
Python tracker 

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



[issue20184] Derby #16: Convert 50 sites to Argument Clinic across 9 files

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

All the Derby patches should only go into trunk at this point.

--
versions: +Python 3.5 -Python 3.4

___
Python tracker 

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



[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

All the Derby patches should only go into trunk at this point.

--
versions: +Python 3.5 -Python 3.4

___
Python tracker 

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



[issue20183] Derby #14: Convert 41 sites to Argument Clinic across 5 files

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

All the Derby patches should only go into trunk at this point.

--
versions: +Python 3.5 -Python 3.4

___
Python tracker 

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



[issue20178] Derby #9: Convert 52 sites to Argument Clinic across 11 files

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

All the Derby patches should only go into trunk at this point.

--
versions: +Python 3.5 -Python 3.4

___
Python tracker 

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



[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

All the Derby patches should only go into trunk at this point.

--
versions: +Python 3.5 -Python 3.4

___
Python tracker 

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



[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

All the Derby patches should only go into trunk at this point.

--
versions: +Python 3.5 -Python 3.4

___
Python tracker 

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



[issue20177] Derby #8: Convert 28 sites to Argument Clinic across 2 files

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

All the Derby patches should only go into trunk at this point.

--
versions: +Python 3.5 -Python 3.4

___
Python tracker 

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



[issue20173] Derby #4: Convert 53 sites to Argument Clinic across 5 files

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

All the Derby patches should only go into trunk at this point.

--
versions: +Python 3.5 -Python 3.4

___
Python tracker 

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



[issue20171] Derby #2: Convert 115 sites to Argument Clinic in Modules/_cursesmodule.c

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

All the Derby patches should only go into trunk at this point.

--

___
Python tracker 

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



[issue20175] Derby #6: Convert 50 sites to Argument Clinic across 8 files

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

All the Derby patches should only go into trunk at this point.

--
versions: +Python 3.5 -Python 3.4

___
Python tracker 

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



[issue20179] Derby #10: Convert 50 sites to Argument Clinic across 4 files

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

All the Derby patches should only go into trunk at this point.

--
versions: +Python 3.5 -Python 3.4

___
Python tracker 

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



[issue20174] Derby #5: Convert 50 sites to Argument Clinic across 3 files

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

All the Derby patches should only go into trunk at this point.

--
versions: +Python 3.5 -Python 3.4

___
Python tracker 

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



[issue20171] Derby #2: Convert 115 sites to Argument Clinic in Modules/_cursesmodule.c

2014-08-04 Thread Larry Hastings

Changes by Larry Hastings :


--
versions: +Python 3.5 -Python 3.4

___
Python tracker 

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



[issue21973] Idle should not quit on corrupted user config files

2014-08-04 Thread ingrid

ingrid added the comment:

Here is a patch that will print a warning if there is an invalid config when 
starting idle. Example:

Warning (from warnings module):
  File "/Users/ingrid/.idlerc/config-extensions.cfg", line 1
enable=1
MissingSectionHeaderError: File contains no section headers.
Ignoring configurations within config-extensions.cfg.
Delete this file or fix formatting errors to remove this warning.

--
keywords: +patch
nosy: +ingrid, jesstess
Added file: http://bugs.python.org/file36257/issue21973.patch

___
Python tracker 

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



[issue20172] Derby #3: Convert 67 sites to Argument Clinic across 4 files (Windows)

2014-08-04 Thread Zachary Ware

Zachary Ware added the comment:

Here's an updated patch.  It includes the patch from #20586 for proper 
signature/docstring output in _winapi.

--
versions: +Python 3.5 -Python 3.4
Added file: http://bugs.python.org/file36256/issue20172.v7.diff

___
Python tracker 

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



[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-04 Thread Daniel Eriksson

Daniel Eriksson added the comment:

Larry: Result of that:
(gdb) print *utime
Structure has no component named operator*.
(gdb) print tv
No symbol "tv" in current context.

You can also catch me on IRC with the same nickname as here

--

___
Python tracker 

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



[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

Yup, you've got a debug build there.  I'm baffled by that gdb "no debug info" 
line then.

At line 4801 could you also 
print *utime
print tv

--

___
Python tracker 

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



[issue22132] Cannot copy the same directory structure to the same destination more than once

2014-08-04 Thread Éric Araujo

Éric Araujo added the comment:

Thanks for the report.  Did you find this issue with a setup.py file or with 
direct usage of dir_utils.copy_tree?  These distutils modules are not meant for 
general use, so bugs that don’t occur during regular use of setup.py files will 
probably not get fixed.  (Distutils has fragile internals so it’s policy to do 
as little change as possible to avoid breaking other things.)

--

___
Python tracker 

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



[issue1011113] Make “install” find the build_base directory

2014-08-04 Thread Éric Araujo

Éric Araujo added the comment:

In my previous message I meant that I agreed with the original request, i.e. 
add --build-base to install.  I will probably never have the time to write a 
patch.

--
dependencies:  -write a configure command
status: pending -> open

___
Python tracker 

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



[issue22134] string formatting float rounding errors

2014-08-04 Thread Larry

New submission from Larry:

Certain values close to the rounding boundary are rounded down instead of up; 
and this is done somewhat inconsistently.


#Example (python v2.7.8, and previous)

#almost an odd-even pattern, but not quite
for x in [1.045, 1.145, 1.245, 1.345, 1.445, 1.545, 1.645, 1.745, 1.845, 1.945]:
print "{0:.3f} => {0:.2f}".format(x)

#while ..6 rounds up correctly
for x in [1.046, 1.146, 1.246, 1.346, 1.446, 1.546, 1.646, 1.746, 1.846, 1.946]:
print "{0:.3f} => {0:.2f}".format(x)

--
messages: 224747
nosy: Larry
priority: normal
severity: normal
status: open
title: string formatting float rounding errors
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



[issue18034] Last two entries in the programming FAQ are out of date (import related)

2014-08-04 Thread Ezio Melotti

Ezio Melotti added the comment:

Fixed, thanks for the patch!
The other FAQ got fixed in #17177/3d3b9d456eb8.

--
assignee: docs@python -> ezio.melotti
resolution:  -> fixed
stage: needs patch -> resolved
status: open -> closed
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



[issue18034] Last two entries in the programming FAQ are out of date (import related)

2014-08-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 815f1a69283e by Ezio Melotti in branch '3.4':
#18034: update FAQ to suggest importlib.import_module instead of __import__.  
Patch by Wouter van Heyst.
http://hg.python.org/cpython/rev/815f1a69283e

New changeset f78ef3819d67 by Ezio Melotti in branch 'default':
#18034: merge with 3.4.
http://hg.python.org/cpython/rev/f78ef3819d67

New changeset 46c7a724b487 by Ezio Melotti in branch '2.7':
#18034: update FAQ to suggest importlib.import_module instead of __import__.  
Patch by Wouter van Heyst.
http://hg.python.org/cpython/rev/46c7a724b487

--
nosy: +python-dev

___
Python tracker 

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



[issue20170] Derby #1: Convert 137 sites to Argument Clinic in Modules/posixmodule.c

2014-08-04 Thread Larry Hastings

Larry Hastings added the comment:

Yeah, I've been meaning to mark all the Derby patches as 3.5.  We're not adding 
new Clinic conversions to 3.4.

--

___
Python tracker 

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



[issue21308] PEP 466: backport ssl changes

2014-08-04 Thread Alex Gaynor

Alex Gaynor added the comment:

Latest patch does as Donald suggests and rolls back the WantWrite changes, 
fixing poplib.

--
Added file: http://bugs.python.org/file36255/ssl-backport.diff

___
Python tracker 

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



[issue22125] Cure signedness warnings introduced by #22003

2014-08-04 Thread Zachary Ware

Zachary Ware added the comment:

Either patch makes MSVC happy; Meador's gets points from me for simplicity.

--

___
Python tracker 

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



[issue22104] test_asyncio unstable in refleak mode

2014-08-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9bca86812857 by Zachary Ware in branch '3.4':
Issue #22104: Don't hold a reference to the loaded TestSuite in runtest_inner
http://hg.python.org/cpython/rev/9bca86812857

New changeset 7bc53cf8b2df by Zachary Ware in branch 'default':
Closes #22104: Merge with 3.4
http://hg.python.org/cpython/rev/7bc53cf8b2df

--
nosy: +python-dev
resolution:  -> fixed
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

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



[issue22127] performance regression in socket getsockaddrarg()

2014-08-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

> 2. directly passing the ASCII string to setipaddr (leaving any error 
> detection to this routine)

This will change the type of exception. If this is acceptable and modulo 
Antoine's and my nitpicks on Rietveld, the patch LGTM.

But it is too complicated. Here is alternative. It has many flaws (less 
extensible, incompatible with Argument Clinic, can produce inaccurate error 
message, etc), but it is much simpler. And preserve the type of exception.

--
Added file: http://bugs.python.org/file36254/skip_idna_alt.patch

___
Python tracker 

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



[issue22127] performance regression in socket getsockaddrarg()

2014-08-04 Thread Charles-François Natali

Charles-François Natali added the comment:

> Please understand that Victor and I were asking you to pass a *unicode* 
> object, with a *u* prefix. For me, the time more-than-doubles, on OSX, with 
> the system python.

Sorry, I misread 'b'.
it's a day without...

--

___
Python tracker 

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



[issue22116] Weak reference support for C function objects

2014-08-04 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Ah, yes, indeed, the agreement seems to have been validated in the meantime 
(you can see it by the asterisk near your name in the comments here). Thank you!

--

___
Python tracker 

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



[issue22127] performance regression in socket getsockaddrarg()

2014-08-04 Thread Martin v . Löwis

Martin v. Löwis added the comment:

Please understand that Victor and I were asking you to pass a *unicode* object, 
with a *u* prefix. For me, the time more-than-doubles, on OSX, with the system 
python.

mvl:~ loewis$ /usr/bin/python -m timeit -s "import socket; s = 
socket.socket(socket.AF_INET, socket.SOCK_DGRAM)" "s.sendto(b'hello', 
('127.0.0.1', 4242))"
10 loops, best of 3: 8.15 usec per loop
mvl:~ loewis$ /usr/bin/python -m timeit -s "import socket; s = 
socket.socket(socket.AF_INET, socket.SOCK_DGRAM)" "s.sendto(b'hello', 
(u'127.0.0.1', 4242))"
1 loops, best of 3: 19.5 usec per loop
mvl:~ loewis$ /usr/bin/python -V
Python 2.7.5

--

___
Python tracker 

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



[issue21121] -Werror=declaration-after-statement is added even for extension modules through setup.py

2014-08-04 Thread Antoine Pitrou

Antoine Pitrou added the comment:

This patch should definitely go in.

--
nosy: +pitrou

___
Python tracker 

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



[issue22127] performance regression in socket getsockaddrarg()

2014-08-04 Thread Charles-François Natali

Charles-François Natali added the comment:

> Charles-François: you get the idna overhead in 2.7, too, by specifying 
> u'127.0.0.1' as the address.

I don't see it in a profile output, and the timing doesn't change
whether I pass '127.0.0.1' or b'127.0.0.1' in 2.7.

--

___
Python tracker 

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



[issue21965] Add support for Memory BIO to _ssl

2014-08-04 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Le 04/08/2014 11:21, Geert Jansen a écrit :
>
> I realize the above is an abstraction violation between the C and
Python level. Now that we have an SSLObject Python level API, I could
update the code to store a weakref to the SSLObject in the _SSLSocket
(just like it does for SSLSocket). That way I can pass the Python level
object into the callback. Any thoughts?

I think it would make the exposed API nicer, although the implementation 
would be a bit uglier. Given Python's philosophy, I think the nicer API 
wins :-)

--

___
Python tracker 

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



[issue10071] Should not release GIL while running RegEnumValue

2014-08-04 Thread Steve Dower

Steve Dower added the comment:

I don't think this is an appropriate fix, since in most cases there is no need 
to prevent other Python threads running while inside RegSetValue. There are 
also other ways that a context switch may occur during the enumeration which 
will put the program in exactly the same state. (It isn't clear from the patch, 
but the two sections of changed code are from completely different functions.)

The correct fix should be at the user's application level, or in a higher-level 
module than _winreg is supposed to be.

--

___
Python tracker 

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



  1   2   >