[issue21456] skip 2 tests in test_urllib2net.py if _ssl module not present

2014-06-07 Thread Remi Pointel

Remi Pointel added the comment:

Are you ok with this diff reworked?

--
Added file: http://bugs.python.org/file35505/Lib_test_test_urllib2net_py.diff

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



[issue21682] Refleak in idle_test test_autocomplete

2014-06-07 Thread Saimadhav Heblikar

Saimadhav Heblikar added the comment:

The patch fixes the refleak. Importing EditorWindow, was perhaps the cause. It 
uses a dummy editwin instead. 

With reference to the current test, was there a particular reason to import 
real EditorWindow module?

--
keywords: +patch
Added file: http://bugs.python.org/file35506/issue21682.diff

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



[issue21597] Allow turtledemo code pane to get wider.

2014-06-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I ran the patched code but have not looked at the code itself. Pending such a 
look, I would consider committing it if we cannot do better, as it solves both 
issues. However, there are two visual issues.

1. The minor one: The blue label does not have drop shadows, the red/yellow 
buttons do. I suspect the intent is to differentiate something that cannot be 
pressed from things that can. But the effect at the boundary is  bit jarring. 
On the bottem, the buttons are underlined in black, the label not. On the top, 
the button have a very light shading that makes them look narrower than they 
are. I wonder if it would look better if the label has shadows to match, or if 
there were a small separation between the labels and buttons (horizonatal 
padding on the label?). If you understand what is bother me, see if you can 
come up with something that looks better than you. Even post a couple of 
alternatives, if you want.

2. More important: when I move the slider right, the text widen and the canvas 
narrows relatively smoothly. When I go the other way, to the left, a trail of 
vertical line is left behind for perhaps a third of a second. The right 
scrollbar, the vertical canvas bars, jiggles back and forth about a few mm, as 
if it were not fixed in place but attached to springs and dragged by the 
canvas. This happens even with both panes empty. It looks pretty bad.

I wonder if this has anything to do with mixing grid and pack. An experiment 
would be to put an empty PanedWindow into a window and see if it behaves as 
badly.  I have a decent system, and moving - work almost ok, so something 
seems wrong.

--
stage: needs patch - patch review

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



[issue21684] inspect.signature bind doesn't include defaults or empty tuple/dicts

2014-06-07 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
nosy: +yselivanov

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



[issue18910] IDle: test textView.py

2014-06-07 Thread Ned Deily

Ned Deily added the comment:

It looks like the 2.7 checkin has caused a number of buildbots to fail.  
Examples:

http://buildbot.python.org/all/builders/AMD64%20Ubuntu%20LTS%202.7/builds/1094/steps/test/logs/stdio

==
ERROR: idlelib.idle_test.test_textview (unittest.loader.ModuleImportFailure)
--
ImportError: Failed to import test module: idlelib.idle_test.test_textview
Traceback (most recent call last):
  File /opt/python/2.7.langa-ubuntu/build/Lib/unittest/loader.py, line 254, 
in _find_tests
module = self._get_module_from_name(name)
  File /opt/python/2.7.langa-ubuntu/build/Lib/unittest/loader.py, line 232, 
in _get_module_from_name
__import__(name)
  File 
/opt/python/2.7.langa-ubuntu/build/Lib/idlelib/idle_test/test_textview.py, 
line 11, in module
requires('gui')
  File /opt/python/2.7.langa-ubuntu/build/Lib/test/test_support.py, line 359, 
in requires
raise ResourceDenied(_is_gui_available.reason)
ResourceDenied: Tk unavailable due to TclError: no display name and no $DISPLAY 
environment variab [...]

and:

http://buildbot.python.org/all/builders/AMD64%20Snow%20Leop%202.7/builds/440/steps/test/logs/stdio

==
ERROR: idlelib.idle_test.test_textview (unittest.loader.ModuleImportFailure)
--
ImportError: Failed to import test module: idlelib.idle_test.test_textview
Traceback (most recent call last):
  File 
/Users/buildbot/buildarea/2.7.murray-snowleopard/build/Lib/unittest/loader.py,
 line 254, in _find_tests
module = self._get_module_from_name(name)
  File 
/Users/buildbot/buildarea/2.7.murray-snowleopard/build/Lib/unittest/loader.py,
 line 232, in _get_module_from_name
__import__(name)
  File 
/Users/buildbot/buildarea/2.7.murray-snowleopard/build/Lib/idlelib/idle_test/test_textview.py,
 line 11, in module
requires('gui')
  File 
/Users/buildbot/buildarea/2.7.murray-snowleopard/build/Lib/test/test_support.py,
 line 359, in requires
raise ResourceDenied(_is_gui_available.reason)
ResourceDenied: gui tests cannot run without OS X window manager

--
nosy: +ned.deily
resolution: fixed - 
stage: resolved - needs patch
status: closed - open

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



[issue21627] Concurrently closing files and iterating over the open files directory is not well specified

2014-06-07 Thread STINNER Victor

STINNER Victor added the comment:

The _posixsubprocess module is not compiled on Windows.

--

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



[issue18910] IDle: test textView.py

2014-06-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Please don't create Tk object at module creating stage. I afraid this will 
break unittest discoverity.

--
nosy: +serhiy.storchaka

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



[issue21682] Refleak in idle_test test_autocomplete

2014-06-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

This concerns me. I expect that we will eventually want to test a live 
EditorWindow or subclass. It appears that root.destroy does not clear all the 
widgets created by EditorWindow(root=root). My guess it that something is 
created without passing in root, so that tkinter._default_root gets used 
instead. This needs investigation.

I actually ran into this problem before, though not in full form, as I did not 
commit test_formatparagraph.py with EditorWindow(). I used a mock containing a 
method extracted from EditorWindow that does not cause problems, after noting 
the following.

# A real EditorWindow creates unneeded, time-consuming baggage and
# sometimes emits shutdown warnings like this:
# warning: callback failed in WindowList class '_tkinter.TclError'
# : invalid command name .55131368.windows.
# Calling EditorWindow._close in tearDownClass prevents this but causes
# other problems (windows left open).

Why did I commit this with EditorWindow used as is? Because I forgot the above, 
written last August and did not think to see how easy it would be to mock the 
minimum needed. I need to make sure to put DO NOT USE EditorWindow ... in 
README.txt.

I did not get the error message in several all ok runs. We can worry later 
about using mock Text for a non-gui alternative. Thanks Zack for catching this 
and Saimadhav to fixing it.

--
resolution:  - fixed
stage: needs patch - resolved
status: open - closed

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



[issue18910] IDle: test textView.py

2014-06-07 Thread Serhiy Storchaka

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


--
nosy: +zach.ware

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



[issue18910] IDle: test textView.py

2014-06-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

The 3.4 stable buildbots are green except for two that ran test_idle ok.
The problem is that in 2.7, unittest.loader does not catch ResourceDenied at 
module level whereas is does in 3.4. The only indication that there should be a 
difference is that the 3.x doc has Skipped modules will not have setUpModule() 
or tearDownModule() run.

I am puzzled though, since the manual says this was added in 3.1 and 2.7 came 
out after. Also, I presume that 2.7 test.regrtest honors the SkipTest raised by 
2.7 test_support.import_module, which is usually used at module level. 

If someone wants to revert the patch, go ahead. I have to get some sleep before 
I do anything (it is 5 am).
--

Please don't create Tk object at module creating stage.
I didn't. I intentionally put TK stuff inside setUpModule so it would happen at 
test running stage.

--

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



[issue17552] Add a new socket.sendfile() method

2014-06-07 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

Looking back at this I think a send_blocksize argument is necessary after 
all. shutil.copyfileobj() has it, so is ftplib.FTP.storbinary() and  httplib 
(issue 13559) which will both be using socket.sendfile() once it gets included.
Updated patch is in attachment. If there are no other objections I'd be for 
committing this next week or something as I'm pretty confident with the current 
implementation.

--
Added file: http://bugs.python.org/file35507/socket-sendfile7.patch

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



[issue17552] Add a new socket.sendfile() method

2014-06-07 Thread Charles-François Natali

Charles-François Natali added the comment:

 Looking back at this I think a send_blocksize argument is necessary after 
 all. shutil.copyfileobj() has it, so is ftplib.FTP.storbinary() and  httplib 
 (issue 13559) which will both be using socket.sendfile() once it gets 
 included.

Those APIs are really poor, please don't cripple sendfile() to mirror them.

Once again, a send_blocksize argument doesn't make sense, you won't
find it anywhere else. All that's needed is start offset and a
size/length argument.

--

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



[issue17552] Add a new socket.sendfile() method

2014-06-07 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

I agree it is not necessary for sendfile() (you were right).
Do not introducing it for send(), though, poses some questions. 
For instance, should we deprecate or ignore 'blocksize' argument in ftplib as 
well?
Generally speaking, when using send() there are circumstances where you might 
want to adjust the number of bytes to read from the file, for instance:

- 1: set a small blocksize (say 512 bytes) on systems where you have a limited 
amount of memory

- 2: set a big blocksize (say 256000) in order to speed up the transfer / use 
less CPU cycles; on very fast networks (e.g. LANs) this may result in a 
considerable speedup (I know 'cause I conducted these kind of tests in 
pyftpdlib: https://code.google.com/p/pyftpdlib/issues/detail?id=94).

--

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



[issue17552] Add a new socket.sendfile() method

2014-06-07 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

...speaking of which, now that I look back at those benchmarks it looks like 
65536 bytes is the best compromise (in my latest patch I used 16348).

--

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



[issue21491] race condition in SocketServer.py ForkingMixIn collect_children

2014-06-07 Thread Charles-François Natali

Charles-François Natali added the comment:

Here's a patch fixing both issues.

--
keywords: +needs review, patch
nosy: +haypo, pitrou
stage:  - patch review
Added file: http://bugs.python.org/file35508/socketserver_reap.diff

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



[issue21677] Exception context set to string by BufferedWriter.close()

2014-06-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a patch. It fixes also the same error in TextIOWrapper.

--
assignee:  - serhiy.storchaka
keywords: +patch
stage:  - patch review
versions: +Python 2.7, Python 3.5
Added file: 
http://bugs.python.org/file35509/io_nonnormalized_error_on_close.patch

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



[issue21669] Custom error messages when print exec are used as statements

2014-06-07 Thread Nick Coghlan

Nick Coghlan added the comment:

Updated patch with the heuristics factored out into a helper function, with a 
more detailed explanation and additional logic to handle compound statements.

 def foo():
... print bar
  File stdin, line 2
print bar
^
SyntaxError: Missing parentheses in call to 'print'

It's still just basic string hackery, though. The one liner handling, for 
example, relies on the fact that :whitespaceprint  and :whitespaceexec  
are going to be uncommon outside Python 2 code being ported to Python 3, so it 
just looks for the first colon on the line and checks from there, without 
worrying about slice notation or dicts.

--
Added file: 
http://bugs.python.org/file35510/issue21669_custom_error_messages_v2.diff

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



[issue21685] zipfile module doesn't properly compress odt documents

2014-06-07 Thread Raimondo Giammanco

New submission from Raimondo Giammanco:

Steps to reproduce
¯¯
-1- Create a document.odt containing an input (text) field and a conditional 
text field; the latter will show a different text based upon the content of the 
input text field. [use attached example.odt]
-2- Edit the file by means of following code

from zipfile import ZipFile, ZIP_DEFLATED
document = '/tmp/example.odt' # SET ME PLEASE
S2b, R2b = 'SUBST'.encode(), 'REPLACEMENT'.encode()
with ZipFile(document,'a', ZIP_DEFLATED) as z:
xmlString = z.read('content.xml')
xmlString = xmlString.replace(S2b, R2b)
z.writestr('content.xml', xmlString)

-3- Open example.odt with *office

As `REPLACEMENT' is the requested string, one expect to see the relevant 
conditional text
What happens: the LO function doesn't recognize the string, unless one do not 
retype it manually

Omitting ZIP_DEFLATED parameter prevents this behaviour from happen (so letting 
zipfile use the default no-compression method) 


tested on
Python 2.7.3 and Python 3.2.3
Ubuntu 12.04 amd64
LibreOffice Version 4.0.4.2

--
components: Library (Lib)
files: example.odt
messages: 219933
nosy: rai
priority: normal
severity: normal
status: open
title: zipfile module doesn't properly compress odt documents
type: behavior
versions: Python 3.2
Added file: http://bugs.python.org/file35511/example.odt

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



[issue21592] Make statistics.median run in linear time

2014-06-07 Thread Julian Taylor

Julian Taylor added the comment:

for median alone a multiselect is probably overkill (thats why I mentioned the 
minimum trick)

but a selection algorithm is useful on its own for all of python and then a 
multiselect should be considered.
Of course that means it would need to be implemented in C like sorted() so you 
actually have a significant performance gain that makes adding a new python 
function worthwhile.

Also just to save numpys honor, you are benchmarking python list - numpy array 
conversion and not the actual selection in your script with the numpy 
comparison. The conversion is significantly slower than the selection itself. 
Also select2b is inplace while np.partition is out of place. Repeated inplace 
selection typically gets faster as the number of required swaps goes down and 
can even be constant in time if the requested value does not change.
With that fixed numpy outperforms pypy by about a factor 2 (but pypys 
performance is indeed quite impressive as it is far more generic)

--

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



[issue21684] inspect.signature bind doesn't include defaults or empty tuple/dicts

2014-06-07 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
nosy: +r.david.murray

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



[issue21685] zipfile module doesn't properly compress odt documents

2014-06-07 Thread SilentGhost

SilentGhost added the comment:

Raimondo, the documentation clearly states that the compression method is 
either inherited from ZipInfo instance (when that one is passed) or set to 
ZIP_STORED otherwise. Since you're not passing ZipInfo instance, but the string 
(as the first argument to .writestr), therefore the compression method is set 
to ZIP_STORED. If you're not set it to ZIP_DEFLATED explicitly, it would work 
as you expect it. In either case, this behaviour is in accordance with the 
documentation.

--
nosy: +SilentGhost

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



[issue21667] Clarify status of O(1) indexing semantics of str objects

2014-06-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 6ffb6909c439 by Nick Coghlan in branch '3.4':
Issue #21667: Clarify string data model description
http://hg.python.org/cpython/rev/6ffb6909c439

New changeset 7c120e77d6f7 by Nick Coghlan in branch 'default':
Merge issue #21667 from 3.4
http://hg.python.org/cpython/rev/7c120e77d6f7

--
nosy: +python-dev

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



[issue21667] Clarify status of O(1) indexing semantics of str objects

2014-06-07 Thread Nick Coghlan

Nick Coghlan added the comment:

I've merged the character-code point clarifications, without the 
implementation detail section.

For the time being, that leaves doesn't provide O(1) indexing of strings as 
the kind of discrepancy that often makes an appearance in differences from the 
CPython reference implementation section that many alternative implementations 
include.

--
resolution:  - later
stage:  - resolved
status: open - closed
type:  - enhancement

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



[issue21569] PEP 466: Python 2.7 What's New preamble changes

2014-06-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7c28b3a92f40 by Nick Coghlan in branch '2.7':
Updates to Python 2.7 What's New preamble
http://hg.python.org/cpython/rev/7c28b3a92f40

--
nosy: +python-dev

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



[issue21569] PEP 466: Python 2.7 What's New preamble changes

2014-06-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d23cea976f46 by Nick Coghlan in branch '3.4':
Issue #21569: sync Python 2.7 What's New with 2.7 version
http://hg.python.org/cpython/rev/d23cea976f46

New changeset b167df2912d6 by Nick Coghlan in branch 'default':
Merge issue #21569 from 3.4
http://hg.python.org/cpython/rev/b167df2912d6

--

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



[issue21569] PEP 466: Python 2.7 What's New preamble changes

2014-06-07 Thread Nick Coghlan

Changes by Nick Coghlan ncogh...@gmail.com:


--
resolution:  - fixed
stage:  - resolved
status: open - closed

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



[issue21592] Make statistics.median run in linear time

2014-06-07 Thread Steven D'Aprano

Steven D'Aprano added the comment:

On Sat, Jun 07, 2014 at 01:02:52PM +, Julian Taylor wrote:
 but a selection algorithm is useful on its own for all of python and 
 then a multiselect should be considered.

I like the idea of a select and/or multiselect for 3.5. As a 
new feature, it cannot go into 3.4.

--

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



[issue18141] tkinter.Image.__del__ can throw an exception if module globals are destroyed in the wrong order

2014-06-07 Thread Jan Kanis

Jan Kanis added the comment:

I tried changing the last block in turtulemodule/__init__.py to

if __name__ == '__main__':
demo = DemoWindow()
print(ENTERING mainloop)
demo.root.mainloop()
print(Bye)

but that does not solve the problem:

 python3 -m turtledemo
ENTERING mainloop
Exception ignored in: bound method PhotoImage.__del__ of tkinter.PhotoImage 
object at 0x7ffef193b948
Traceback (most recent call last):
  File /home/jan/test/lib/python3.4/tkinter/__init__.py, line 3330, in __del__
TypeError: catching classes that do not inherit from BaseException is not 
allowed

so still the same error. (Although it is probably still good to make that 
change.)

Tested on cpython revision dfcb64f51f7b, so the same as I originally made the 
bugreport from.

--

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



[issue21686] IDLE - Test hyperparser

2014-06-07 Thread Saimadhav Heblikar

New submission from Saimadhav Heblikar:

Test for idlelib.HyperParser
5 lines not tested. Any suggestion on how to hit those lines welcome.
Will submit backport 2.7 once the patch for 3.4 is OK.

--
components: IDLE
files: test-hyperparser.diff
keywords: patch
messages: 219942
nosy: jesstess, sahutd, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE - Test hyperparser
versions: Python 2.7, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file35512/test-hyperparser.diff

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



[issue8840] truncate() semantics changed in 3.1.2

2014-06-07 Thread Mark Lawrence

Mark Lawrence added the comment:

Is any more work needed here as msg106725 asks about updating doc strings?

--
nosy: +BreamoreBoy

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



[issue21687] Py_SetPath: Path components separated by colons

2014-06-07 Thread Florian Walch

New submission from Florian Walch:

The documentation for Py_SetPath [1] states:

 The path components should be separated by semicolons.

I believe this should not say semicolons, but colons; the default path as 
output by Py_GetPath is separated by colons.

[1] https://docs.python.org/3/c-api/init.html#c.Py_SetPath

--
assignee: docs@python
components: Documentation
messages: 219944
nosy: docs@python, fwalch
priority: normal
severity: normal
status: open
title: Py_SetPath: Path components separated by colons
type: behavior
versions: Python 3.2, Python 3.3, Python 3.4, Python 3.5

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



[issue15707] PEP 3121, 384 Refactoring applied to signal module

2014-06-07 Thread Mark Lawrence

Mark Lawrence added the comment:

PEP 384 is listed as finished while 3121 is accepted so what if anything needs 
to be done here?  I've checked https://docs.python.org/devguide/experts.html 
and nobody is listed against the signal module.  The patch is C code which I 
don't have the knowledge to comment on, sorry about that.

--
nosy: +BreamoreBoy

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



[issue12673] SEGFAULT error on OpenBSD (sparc)

2014-06-07 Thread Remi Pointel

Remi Pointel added the comment:

For your information, this bug has been fixed in OpenBSD and the developper has 
contacted the NetBSD developper:
http://marc.info/?l=openbsd-techm=140209064821540w=2

So I think we could close this issue because it's a system issue, not Python.

--

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



[issue8576] test_support.find_unused_port can cause socket conflicts on Windows

2014-06-07 Thread Mark Lawrence

Mark Lawrence added the comment:

msg104677, msg104822 and msg104845 refer to various commits but msg104955 
suggests that a follow up is needed so where do we stand with this issue?

--
nosy: +BreamoreBoy

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



[issue9012] Separate compilation of time and datetime modules

2014-06-07 Thread Mark Lawrence

Mark Lawrence added the comment:

msg111078 refers to r82035 for Visual Studio 2005 (VC8) builds.  Given that 
http://code.activestate.com/lists/python-dev/131023/ refers to VC14 for 3.5 can 
we close this as out of date?

--
nosy: +BreamoreBoy

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



[issue21666] Argparse exceptions should include which argument has a problem

2014-06-07 Thread paul j3

paul j3 added the comment:

First, 'parse_intermixed_args' on stack is not relevant.  It's from an 
unreleased patch that we worked on.

What matters is the 'print_help', invoked probably with a '-h'.

The error message that normally specifies the problem argument is produced by 
ArgumentError.  The HelpFormatter does not raise such an error.  ArgumentError 
is usually used for parsing errors; this is a formatting one.  It's not 
produced by faulty commandline values.

If you must put strings like '%)` in the help line, use RawTextHelpFormatter.  
Otherwise HelpFormatter assumes the help line has valid format expressions like 
'%(default)s'.

Or you could write your own HelpFormatter subclass with a modified 
'_expand_help' method, one which wraps the 'self._get_help_string(action) % 
params' in a 'try' block.  Probably too draconian a measure for a rare problem. 
:)  

It's an interesting problem, but I don't think it warrants any code changes.

--
nosy: +paul.j3

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



[issue8576] test_support.find_unused_port can cause socket conflicts on Windows

2014-06-07 Thread Brian Curtin

Changes by Brian Curtin br...@python.org:


--
nosy:  -brian.curtin

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



[issue8576] test_support.find_unused_port can cause socket conflicts on Windows

2014-06-07 Thread Paul Moore

Paul Moore added the comment:

TBH, I don't think I ever took this any further. As noted, the earlier patches 
fixed the failures I was hitting.

It looks like Python 3.4 now has *two* definitions of find_unused_port, in 
test.test_support and in test.support. And test_asyncio and test_ftplib also 
use the function now.

--

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



[issue8576] test_support.find_unused_port can cause socket conflicts on Windows

2014-06-07 Thread Paul Moore

Changes by Paul Moore p.f.mo...@gmail.com:


--
nosy:  -pmoore

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



[issue21600] mock.patch.stopall doesn't work with patch.dict to sys.modules

2014-06-07 Thread fumihiko kakuma

fumihiko kakuma added the comment:

Hi michael,
Certainly, thank you for your many advices. I attached the new patch file.

--
Added file: http://bugs.python.org/file35513/support_patch_dict_by_stopall.diff

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



[issue10002] Installer doesn't install on Windows Server 2008 DataCenter R2

2014-06-07 Thread Mark Lawrence

Mark Lawrence added the comment:

msg121605 says the OP isn't seeing issues with this so I'd guess this can be 
closed?

--
nosy: +BreamoreBoy

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



[issue21687] Py_SetPath: Path components separated by colons

2014-06-07 Thread eryksun

eryksun added the comment:

A Windows path uses : after the drive letter, e.g. C:\\Windows, so the 
delimiter is a semicolon on Windows. Other platforms use a colon.

CPython uses DELIM, which is defined in osdefs.h. This header isn't included by 
Python.h.

http://hg.python.org/cpython/file/c0e311e010fc/Include/osdefs.h

--
nosy: +eryksun

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



[issue10503] os.getuid() documentation should be clear on what kind of uid it is referring

2014-06-07 Thread Greg

Greg added the comment:

Here's a wording change in the documentation to clarify this.

--
keywords: +patch
nosy: +εσχατοκυριος
Added file: http://bugs.python.org/file35514/mywork.patch

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



[issue13143] os.path.islink documentation is ambiguous

2014-06-07 Thread Yayoi Ukai

Yayoi Ukai added the comment:

Documentation is updated to be more clear

--
keywords: +patch
nosy: +terab
Added file: http://bugs.python.org/file35515/mywork.patch

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



[issue21548] pydoc -k IndexError on empty docstring

2014-06-07 Thread Yuyang Guo

Yuyang Guo added the comment:

Made change based on Terry J. Reedy's suggestion

--
keywords: +patch
nosy: +Yuyang.Guo
Added file: http://bugs.python.org/file35516/issue21548.patch

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



[issue7424] NetBSD: segmentation fault in listextend during install

2014-06-07 Thread Ned Deily

Ned Deily added the comment:

See issue12673 msg219946.  Apparently this was caused by a long-standing BSD 
sparc bug.

--
nosy: +ned.deily
resolution:  - third party
stage: test needed - resolved
status: open - closed

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



[issue18141] tkinter.Image.__del__ can throw an exception if module globals are destroyed in the wrong order

2014-06-07 Thread Jan Kanis

Jan Kanis added the comment:

I have verified that DemoWindow._destroy(self) indeed gets called before the 
exception is raised. 

I did a bisect, on the default branch the bug was introduced by commit 
f0833e6ff2d2: Issue #1545463: Global variables caught in reference cycles are 
now garbage-collected at shutdown.

I will try bisecting the 3.3 branch to se where the bug stops appearing.

--

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



[issue15569] Doc doc: incorrect description of some roles as format-only

2014-06-07 Thread Emily Zhao

Emily Zhao added the comment:

I moved the 3 misplaced roles (envvar, keyword, and option) and changed the 
description for the new section per Terry's suggestions. Patch is attached and 
needs to go in the devguide repo.

https://docs.python.org/devguide/docquality.html#helping-with-the-developers-guide

--
keywords: +patch
nosy: +emily.zhao
Added file: http://bugs.python.org/file35517/issue15569.patch

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



[issue21671] CVE-2014-0224: OpenSSL upgrade to 1.0.1h on Windows required

2014-06-07 Thread Georg Brandl

Georg Brandl added the comment:

Well, it's entirely logical to follow our own policies :)

--

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



[issue21688] Improved error msg for make.bat htmlhelp

2014-06-07 Thread Olive Kilburn

New submission from Olive Kilburn:

Currently if someone runs make.bat htmlhelp without first installing Htmlhelp 
Workshop, it outputs: 
c:\program not a valid . . . .

This isn't very informative if you don't know you need Htmlhelp Workshop. The 
included patch has make.bat give a more helpful message. If this isn't a good 
fix(?), I could try clarifying the readme instead.

--
components: Windows
files: mywork.patch
keywords: patch
messages: 219961
nosy: Olive.Kilburn
priority: normal
severity: normal
status: open
title: Improved error msg for make.bat htmlhelp
type: enhancement
versions: Python 3.5
Added file: http://bugs.python.org/file35518/mywork.patch

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



[issue12833] raw_input misbehaves when readline is imported

2014-06-07 Thread Dhanam Prakash

Dhanam Prakash added the comment:

Hi,
submitting a patch for the documentation.
Thanks

--
hgrepos: +254
keywords: +patch
nosy: +dhanamp
Added file: http://bugs.python.org/file35519/issue12833.patch

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



[issue21404] Document options used to control compression level in tarfile

2014-06-07 Thread Katherine Busch

Katherine Busch added the comment:

Here's a patch. The docs built and I inspected the output. Everything looks 
correct.

--
keywords: +patch
nosy: +Katherine.Busch
Added file: http://bugs.python.org/file35520/tardocs.patch

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



[issue21404] Document options used to control compression level in tarfile

2014-06-07 Thread Jessica McKellar

Changes by Jessica McKellar jesst...@mit.edu:


--
stage: needs patch - patch review

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



[issue17449] dev guide appears not to cover the benchmarking suite

2014-06-07 Thread Kavya Joshi

Kavya Joshi added the comment:

I added a `Benchmarking` section in the dev guide with the relevant links and 
the intended use (testing rather than optimizing).
I also added an entry for the section in the Index.

Testing/verification:
I built the docs and visually inspected them.

--
keywords: +patch
nosy: +kavya
Added file: http://bugs.python.org/file35521/issue17449.patch

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



[issue21642] _ if 1else _ does not compile

2014-06-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4ad33d82193d by Benjamin Peterson in branch '3.4':
allow the keyword else immediately after (no space) an integer (closes #21642)
http://hg.python.org/cpython/rev/4ad33d82193d

New changeset 29d34f4f8900 by Benjamin Peterson in branch '2.7':
allow the keyword else immediately after (no space) an integer (closes #21642)
http://hg.python.org/cpython/rev/29d34f4f8900

New changeset d5998cca01a8 by Benjamin Peterson in branch 'default':
merge 3.4 (#21642)
http://hg.python.org/cpython/rev/d5998cca01a8

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

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



[issue21463] RuntimeError when URLopener.ftpcache is full

2014-06-07 Thread Skyler Leigh Amador

Skyler Leigh Amador added the comment:

I've made a test for this patch with a very minimal mock ftpwrapper. We can see 
it fails on dictionary size change without Erik's fix:

==
ERROR: test_ftp_cache_pruning (test.test_urllib.urlopen_HttpTests)
--
Traceback (most recent call last):
  File /home/skyler/cpython/Lib/test/test_urllib.py, line 336, in 
test_ftp_cache_pruning
urlopen('ftp://localhost')
  File /home/skyler/cpython/Lib/test/test_urllib.py, line 45, in urlopen
return opener.open(url)
  File /home/skyler/cpython/Lib/urllib/request.py, line 1631, in open
return getattr(self, name)(url)
  File /home/skyler/cpython/Lib/urllib/request.py, line 1914, in open_ftp
for k in self.ftpcache.keys():
RuntimeError: dictionary changed size during iteration

--
nosy: +shiinee
Added file: http://bugs.python.org/file35522/urllib-request-ftpcache-test.patch

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



[issue21689] Docs for Using Python on a Macintosh needs to be updated.

2014-06-07 Thread Yuly Tenorio

New submission from Yuly Tenorio:

Using Python on a Mac needs updating since it is pointing to old tools and 
documentation.

This is related to http://bugs.python.org/issue12594

--
assignee: docs@python
components: Documentation
messages: 219968
nosy: docs@python, ned.deily, yuly
priority: normal
severity: normal
status: open
title: Docs for Using Python on a Macintosh needs to be updated.
versions: Python 3.5

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



[issue21404] Document options used to control compression level in tarfile

2014-06-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 390b7fd617a9 by Benjamin Peterson in branch '2.7':
document the compress_level argument to tarfile.open (closes #21404)
http://hg.python.org/cpython/rev/390b7fd617a9

New changeset 0c712828fb6e by Benjamin Peterson in branch '3.4':
document the compress_level argument to tarfile.open (closes #21404)
http://hg.python.org/cpython/rev/0c712828fb6e

New changeset 171e8f6c814c by Benjamin Peterson in branch 'default':
merge 3.4 (#21404)
http://hg.python.org/cpython/rev/171e8f6c814c

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

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



[issue21666] Argparse exceptions should include which argument has a problem

2014-06-07 Thread Glenn Linderman

Glenn Linderman added the comment:

Yes, I hope someday the parse_intermixed_args patch can be released... but I 
know it is not relevant to this issue.

I was aware of the %(substitution_variables) in the default help formatter, but 
I (1) goofed and entered % without escaping it (2) was surprised at how 
unhelpful the Traceback was at isolating the problem.

Happily, my code had only a few instances of %) so I was able to isolate it 
fairly quickly, but the error report certainly shows up at quite a distance 
(execution-wise) from the location of the source bug.

I haven't looked at the source for the HelpFormatter code: if it concatenates 
all the help text and then does substitutions en masse, then it would be 
difficult to isolate the error to a particular argument. If, on the other hand, 
it loops through the help text for each argument, doing the substitutions, and 
later formatting and concatenating, then surrounding the substitution attempt 
with a try: block so that the name of the argument with the faulty help text 
could be reported, that would be a big help to this situation, at little cost.

--

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



[issue12594] Docs for Using Python on a Macintosh needs to be updated

2014-06-07 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
title: Docs for py3k still refer to MacPython 2.5 folder - Docs for Using 
Python on a Macintosh needs to be updated
versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3

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



[issue21689] Docs for Using Python on a Macintosh needs to be updated.

2014-06-07 Thread Ned Deily

Ned Deily added the comment:

Yes but I don't think we need to have two issues open.  Let's make any comments 
in the already open issue.

--
resolution:  - duplicate
stage:  - resolved
status: open - closed
superseder:  - Docs for Using Python on a Macintosh needs to be updated

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



[issue21548] pydoc -k IndexError on empty docstring

2014-06-07 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Thanks for the patch! It looks like the synopsis function also has this bug. 
Could you fix that, too?

--
nosy: +benjamin.peterson

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



[issue21463] RuntimeError when URLopener.ftpcache is full

2014-06-07 Thread Benjamin Peterson

Benjamin Peterson added the comment:

(I left some comments on Rietveld.)

--
nosy: +benjamin.peterson

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



[issue10503] os.getuid() documentation should be clear on what kind of uid it is referring

2014-06-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 19172062e5c0 by Benjamin Peterson in branch '3.4':
specify that getuid() returns the real uid (closes #10503)
http://hg.python.org/cpython/rev/19172062e5c0

New changeset 6dfbe504f659 by Benjamin Peterson in branch '2.7':
specify that getuid() returns the real uid (closes #10503)
http://hg.python.org/cpython/rev/6dfbe504f659

New changeset 8866ac6f2269 by Benjamin Peterson in branch 'default':
merge 3.4 (#10503)
http://hg.python.org/cpython/rev/8866ac6f2269

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

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



[issue11709] help-method crashes if sys.stdin is None

2014-06-07 Thread B D

B D added the comment:

added unit test for this behavior with roxane. verified that the updated patch 
applies cleanly, passes make patch check, and unit tests all pass.

--
nosy: +bdettmer, roxane
Added file: http://bugs.python.org/file35523/issue11709.patch

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



[issue12706] timeout sentinel in ftplib and poplib documentation

2014-06-07 Thread Greg

Greg added the comment:

In the definition of FTP.connect(), I've changed the code to actually use None 
as a lack-of-explicit-timeout sentinel instead of -999. For FTP and FTP_TLS, 
I've changed the documentation to reflect what the code is doing.

--
keywords: +patch
nosy: +εσχατοκυριος
Added file: http://bugs.python.org/file35524/patch.patch

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



[issue13924] Mercurial robots.txt should let robots crawl landing pages.

2014-06-07 Thread Emily Zhao

Emily Zhao added the comment:

I don't know too much about robots.txt but how about

Disallow: */rev/*
Disallow: */shortlog/*
Allow:

Are there any other directories we'd like to exclude?

--
nosy: +emily.zhao

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



[issue6701] Make custom xmlrpc extension easier

2014-06-07 Thread Mark Lawrence

Mark Lawrence added the comment:

Is there any value in the proof of concept patches attached here?

--
nosy: +BreamoreBoy

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



[issue13223] pydoc removes 'self' in HTML for method docstrings with example code

2014-06-07 Thread Skyler Leigh Amador

Skyler Leigh Amador added the comment:

The patch still applies cleanly, so I've just updated the comment. test passes, 
make patchcheck passes.

--
nosy: +shiinee
Added file: http://bugs.python.org/file35525/pydoc-self.patch

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



[issue21314] Document '/' in signatures

2014-06-07 Thread Emily Zhao

Emily Zhao added the comment:

Can someone close this? I think it's fixed.

--
nosy: +emily.zhao

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



[issue12594] Docs for Using Python on a Macintosh needs to be updated

2014-06-07 Thread Yuly Tenorio

Yuly Tenorio added the comment:

Built with sphinx. No RST errors.

--
keywords: +patch
nosy: +yuly
Added file: http://bugs.python.org/file35526/pythonusage_mac.patch

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



[issue6550] asyncore incorrect failure when connection is refused and using async_chat channel

2014-06-07 Thread Mark Lawrence

Mark Lawrence added the comment:

Has maintenance of asyncore effectively ceased owing to tulip/asyncio or are 
outstanding problems here, if any, still considered valid?

--
nosy: +BreamoreBoy

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



[issue11681] -b option undocumented

2014-06-07 Thread Emily Zhao

Emily Zhao added the comment:

Might be worth making this addition from 3 (I'm not sure how to add this to 2)
-b : issue warnings about str(bytes_instance), str(bytearray_instance)
 and comparing bytes/bytearray with str. (-bb: issue errors)


Building on Martin's example:

On all of these, python2 is
Python 2.7.6 (default, Apr  6 2014, 23:14:26)
[GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.38)] on darwin
Type help, copyright, credits or license for more information.


emily-mba:cpython emily$ python2
 bytearray(3) == u3
False

emily-mba:cpython emily$ python2 -b
 bytearray(3) == u3
__main__:1: BytesWarning: Comparison between bytearray and string
False

emily-mba:cpython emily$ python2 -bb
 bytearray(3) == u3
Traceback (most recent call last):
  File stdin, line 1, in module
BytesWarning: Comparison between bytearray and string

--
nosy: +emily.zhao

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



[issue21314] Document '/' in signatures

2014-06-07 Thread Benjamin Peterson

Benjamin Peterson added the comment:

The original bug (junk in various doc strings) has been fixed, but I think the 
positional argument / syntax still needs docs. It's a little tricky because 
/ is not actually valid syntax; it's just for documentation signatures.

--
nosy: +benjamin.peterson

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



[issue11709] help-method crashes if sys.stdin is None

2014-06-07 Thread B D

B D added the comment:

added try finally as suggested by berkerpeksag. make patchcheck still works and 
all test cases still pass. did not use the test.support.swap_attr context 
manager because it may inhibit readability for those that are not familiar with 
it.

--
Added file: http://bugs.python.org/file35527/issue11709.patch

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



[issue11681] -b option undocumented

2014-06-07 Thread Emily Zhao

Emily Zhao added the comment:

Here's an attempt (based on 3's main.c 
http://hg.python.org/cpython/file/8866ac6f2269/Modules/main.c)

--
keywords: +patch
Added file: http://bugs.python.org/file35528/issue11681.patch

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



[issue21463] RuntimeError when URLopener.ftpcache is full

2014-06-07 Thread Skyler Leigh Amador

Skyler Leigh Amador added the comment:

Addressed review comments

--
Added file: http://bugs.python.org/file35529/urllib-request-ftpcache-test.patch

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



[issue21314] Document '/' in signatures

2014-06-07 Thread Emily Zhao

Emily Zhao added the comment:

where's the best place for that documentation to live?

--

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



[issue21463] RuntimeError when URLopener.ftpcache is full

2014-06-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b8f9ae84d211 by Benjamin Peterson in branch '3.4':
in ftp cache pruning, avoid changing the size of a dict while iterating over it 
(closes #21463)
http://hg.python.org/cpython/rev/b8f9ae84d211

New changeset 6f70a18313e5 by Benjamin Peterson in branch 'default':
merge 3.4 (#21463)
http://hg.python.org/cpython/rev/6f70a18313e5

--
nosy: +python-dev
resolution:  - fixed
stage: test needed - resolved
status: open - closed

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



[issue12594] Docs for Using Python on a Macintosh needs to be updated

2014-06-07 Thread Ned Deily

Ned Deily added the comment:

Thank you for the patch, Yuly!  You've made some good improvements to the 
current page.  Because the current section is so old and out-of-sync with 
current practices (as you've noted in your changes) and with the nuances of 
Python on OS X, a more comprehensive restructuring is needed.  I don't think 
that trying to refine the section interactively is going to be an efficient 
process but I will definitely use your suggested changes as a basis.  I assume 
you have signed (or will be signing) the PSF contributor agreement.  Thanks 
again!  P.S. When submitting patches, don't forget to run patchcheck first 
(https://docs.python.org/devguide/patch.html#generation).  It will detect and 
fix trailing whitespace in lines that would otherwise prevent a patch from 
being committed in the main cpython hg repo.

--

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



[issue21688] Improved error msg for make.bat htmlhelp

2014-06-07 Thread Olive Kilburn

Changes by Olive Kilburn olive...@gmail.com:


Added file: http://bugs.python.org/file35530/mywork.patch

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



[issue21688] Improved error msg for make.bat htmlhelp

2014-06-07 Thread Olive Kilburn

Changes by Olive Kilburn olive...@gmail.com:


Removed file: http://bugs.python.org/file35518/mywork.patch

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



[issue8576] test_support.find_unused_port can cause socket conflicts on Windows

2014-06-07 Thread Vinay Sajip

Changes by Vinay Sajip vinay_sa...@yahoo.co.uk:


--
nosy:  -vinay.sajip

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



[issue11709] help-method crashes if sys.stdin is None

2014-06-07 Thread B D

B D added the comment:

removed comments.

--
Added file: http://bugs.python.org/file35531/issue11709.patch

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



[issue12063] tokenize module appears to treat unterminated single and double-quoted strings inconsistently

2014-06-07 Thread Amandine Lee

Amandine Lee added the comment:

I confirmed that the behavior acts as described. I added a patch documenting 
the behavior, built the docs with the patch, and visually confirmed that the 
docs looks appropriate. 

Ready for review!

--
keywords: +patch
nosy: +amandine
Added file: http://bugs.python.org/file35532/issue12063.patch

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



[issue11974] Class definition gotcha.. should this be documented somewhere?

2014-06-07 Thread Renee Chu

Renee Chu added the comment:

Submitting a patch for documentation.

--
hgrepos: +255
keywords: +patch
nosy: +reneighbor
Added file: http://bugs.python.org/file35533/issue11974.patch

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



[issue18141] tkinter.Image.__del__ can throw an exception if module globals are destroyed in the wrong order

2014-06-07 Thread Jan Kanis

Jan Kanis added the comment:

The 3.3 branch is not affected as the f0833e6ff2d2 changeset was never merged 
into that branch.

In the default branch the exception stops appearing after commit 79e2f5bbc30c: 
Issue #18214: Improve finalization of Python modules to avoid setting their 
globals to None, in most cases. This changeset is also part of the current 3.4 
tip (19172062e5c0), so 3.4 tip does not display the buggy behaviour. Judging by 
the commit message, that commit also supersedes the attached patch as it at 
least prevents the visible symptoms. I am not sure if there still might be a 
deeper issue that is hidden by the changeset as Terry suggested.

--

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



[issue16667] timezone docs need versionadded: 3.2

2014-06-07 Thread Yayoi Ukai

Yayoi Ukai added the comment:

I did make patchcheck and make html and checked all versions HTML documents and 
looks great. Good job!

--
nosy: +terab

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



[issue14203] bytearray_getbuffer: unnecessary code

2014-06-07 Thread Kelley Nielsen

Kelley Nielsen added the comment:

I have verified that this feature is unused in the source tree; in fact, there 
are no internal calls to bytearray_getbuffer() at all. The only thing 
bytearray_getbuffer() does with its second arg is pass it to 
PyBuffer_FillInfo(), which immediately checks it and passes 0 up the call stack 
if it is NULL. (A comment in PyBuffer_FillInfo() asks why -1 is not passed up 
instead; it's probably to distinguish this feature from the error condition 
handled in the immediately following conditional block.)

There are potentially other issues stemming from this legacy feature in 
bytearray_getbuffer(), PyBuffer_FillInfo(), and elsewhere. The maintainers may 
see fit to open tickets on these issues as well.

There's more relevant commentary on the feature here: 
http://comments.gmane.org/gmane.comp.python.devel/130521

--
nosy: +kelleynnn
versions: +Python 3.5 -Python 3.3

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



[issue11709] help-method crashes if sys.stdin is None

2014-06-07 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Unfortunately, the test doesn't fail without the fix in, probably because the 
pager() function replaces itself in the module and thus can only be called 
once. It might make more sense to just directly test the getpager function with 
sys.stdin = None.

--
nosy: +benjamin.peterson

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



[issue21690] re documentation: re.compile links to re.search / re.match instead of regex.search / regex.match

2014-06-07 Thread Julian Gilbey

New submission from Julian Gilbey:

In re.rst, the re.compile documentation says:

   Compile a regular expression pattern into a regular expression object, which
   can be used for matching using its :func:`match` and :func:`search` methods,
   described below.

This results in linking to the re.match and re.search module functions instead 
of the regex.match and regex.search object methods.  I'm not sure what the 
correct replacement syntax is, presumably something like :meth:`~regex.match` 
and :meth:`~regex.search`.

--
assignee: docs@python
components: Documentation
messages: 219997
nosy: docs@python, jdg
priority: normal
severity: normal
status: open
title: re documentation: re.compile links to re.search / re.match instead of 
regex.search / regex.match
versions: Python 3.4

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



[issue12594] Docs for Using Python on a Macintosh needs to be updated

2014-06-07 Thread Yuly Tenorio

Yuly Tenorio added the comment:

Ok, I will definitely use that checker next time :) thanks!
Thanks Ned!

--

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



[issue1559298] test_popen fails on Windows if installed to Program Files

2014-06-07 Thread Mark Lawrence

Mark Lawrence added the comment:

Is this worth pursuing given the wording here 
https://docs.python.org/3/library/subprocess.html#replacing-os-popen-os-popen2-os-popen3
 ?

--
nosy: +BreamoreBoy

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



[issue11681] -b option undocumented

2014-06-07 Thread Martin Panter

Martin Panter added the comment:

Trouble is, in Python 2 bytes() and str() are the same thing, and most of those 
conditions don’t apply. Maybe something like this is more correct:

-b : issue warnings about comparing bytearray with unicode.
 (-bb: issue errors)

--

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



[issue10765] Build regression from automation changes on windows

2014-06-07 Thread Mark Lawrence

Mark Lawrence added the comment:

I agree with the sentiment expressed in msg160237.  Having said that I believe 
that a lot of work has been put into the build system recently that might have 
covered this.

--
nosy: +BreamoreBoy

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



[issue13223] pydoc removes 'self' in HTML for method docstrings with example code

2014-06-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7aa72075d440 by Benjamin Peterson in branch '3.4':
don't remove self from example code in the HTML output (closes #13223)
http://hg.python.org/cpython/rev/7aa72075d440

New changeset e89c39125892 by Benjamin Peterson in branch '2.7':
don't remove self from example code in the HTML output (closes #13223)
http://hg.python.org/cpython/rev/e89c39125892

New changeset cddb17c4975e by Benjamin Peterson in branch 'default':
merge 3.4 (#13223)
http://hg.python.org/cpython/rev/cddb17c4975e

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

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



[issue13924] Mercurial robots.txt should let robots crawl landing pages.

2014-06-07 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Unfortunately, I don't think it will be that easy because I don't think 
robots.txt supports wildcard paths like that. Possibly, we should just 
whitelist a few important repositories.

--
nosy: +benjamin.peterson

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



[issue21685] zipfile module doesn't properly compress odt documents

2014-06-07 Thread Raimondo Giammanco

Raimondo Giammanco added the comment:

SilentGhost, thank you for your reply but I am probably missing something with 
it. Maybe there is some misunderstanding because of my unclear report. Please 
let me sum up my point and excuse some repetitiveness

From the documentation of .writestr:
``If given, compress_type overrides the value given for the compression 
parameter to the constructor for the new entry``
I believed to understand that .writestr would have used the same 
compression_type passed creating the `z' instance. So, having already passed 
ZIP_DEFLATED to the constructor, in my opinion, passing it again would have 
been an useless repetition.

However, as per your suggestion,I tried to explicitly pass ZIP_DEFLATED to 
.writestr too:

from zipfile import ZipFile, ZIP_DEFLATED
document = '/tmp/example.odt'
S2b, R2b = 'SUBST'.encode(), 'REPLACEMENT'.encode()
with ZipFile(document,'a', ZIP_DEFLATED) as z:
xmlString = z.read('content.xml')
xmlString = xmlString.replace(S2b, R2b)
z.writestr('content.xml', xmlString, ZIP_DEFLATED)

but to no avail: with and without passing ZIP_DEFLATED to .writestr the odt 
documents lose the feature explained in my first post

AFAICT, the only way to keep a fully functional odt document is not to compress 
it (no ZIP_DEFLATED at all), as cited in my previous post 

with ZipFile(document,'a') as z:
xmlString = z.read('content.xml')
xmlString = xmlString.replace(S2b, R2b)
z.writestr('content.xml', xmlString)

--

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



[issue16667] timezone docs need versionadded: 3.2

2014-06-07 Thread Berker Peksag

Berker Peksag added the comment:

The attached patch combines my changes with Andrew's patch.

--
versions: +Python 3.5 -Python 3.2, Python 3.3
Added file: http://bugs.python.org/file35534/issue16667_v3.diff

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



[issue1559298] test_popen fails on Windows if installed to Program Files

2014-06-07 Thread Brian Curtin

Changes by Brian Curtin br...@python.org:


--
nosy:  -brian.curtin

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



  1   2   >