[issue2571] can cmd.py's API/docs for the use of an alternate stdin be improved?

2014-06-27 Thread Jack Andrews

Jack Andrews added the comment:

I'm no longer working on this, but IIRC, my patch is not necessary and
there is no deficiency.

Ta, Jack

On Saturday, June 28, 2014, Mark Lawrence  wrote:

>
> Mark Lawrence added the comment:
>
> Does somebody want to propose a patch to take this forward, or can it be
> closed again, or what?
>
> --
> nosy: +BreamoreBoy
> versions: +Python 3.5 -Python 3.3
>
> ___
> Python tracker >
> 
> ___
>

--

___
Python tracker 

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



[issue12420] distutils tests fail if PATH is not defined

2014-06-27 Thread Nick Coghlan

Nick Coghlan added the comment:

Skipping if the compiler isn't available is problematic, since that could 
reflect a real failure mode for the code.

--

___
Python tracker 

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



[issue12420] distutils tests fail if PATH is not defined

2014-06-27 Thread Nick Coghlan

Nick Coghlan added the comment:

For Python 3, I suggest tweaking the code to use shutil.which and see if that 
improves matters.

For Python 2, I'm inclined not to worry about it.

--

___
Python tracker 

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



[issue21878] wsgi.simple_server's wsgi.input readline waits forever for non-multipart/form-data

2014-06-27 Thread Robin Schoonover

New submission from Robin Schoonover:

In the reference WSGI server in wsgiref.simple_server, wsgi.input's readline() 
hangs if the request body does not actually contain any
newlines.

Consider the following (slightly silly) example:

from wsgiref.simple_server import make_server

def app(environ, start_response):
result = environ['wsgi.input'].readline()

# not reached...
start_response("200 OK", [("Content-Type", "text/plain")])
return []

httpd = make_server('', 8000, app)
httpd.serve_forever()

And the following also silly request (the data kwarg makes it a
POST request):

from urllib.request import urlopen

req = urlopen("http://localhost:8000/";, data=b'some bytes')
print(req)

Normally this isn't a problem, as the reference server isn't intended
for production, and typically the only reason .readline() would be
used is with a request body formatted as multipart/form-data, which
uses ample newlines, including with the content boundaries.  However,
for other types of request bodies (such as application/x-www-form-urlencoded)
newlines often wouldn't appear, and using .readline() would wait forever for 
new input.

--
components: Library (Lib)
messages: 221774
nosy: rschoon
priority: normal
severity: normal
status: open
title: wsgi.simple_server's wsgi.input readline waits forever for 
non-multipart/form-data
type: behavior

___
Python tracker 

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



[issue12420] distutils tests fail if PATH is not defined

2014-06-27 Thread Terry J. Reedy

Terry J. Reedy added the comment:

test_disutils still fails on both 2.7 and 3.4 installs. Since PATH is defined, 
that is not the issue here. I am tempted to unconditionally skip the test and 
close this issue.

--

___
Python tracker 

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



[issue12814] Possible intermittent bug in test_array

2014-06-27 Thread Ned Deily

Changes by Ned Deily :


--
resolution:  -> out of date
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



[issue21863] Display module names of C functions in cProfile

2014-06-27 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Thank you, committed!

--
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



[issue21863] Display module names of C functions in cProfile

2014-06-27 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 6dd4c2d30b0e by Antoine Pitrou in branch 'default':
Issue #21863: cProfile now displays the module name of C extension functions, 
in addition to their own name.
http://hg.python.org/cpython/rev/6dd4c2d30b0e

--
nosy: +python-dev

___
Python tracker 

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



[issue11754] Check calculated constants in test_string.py

2014-06-27 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
title: Changed test to check calculated constants in test_string.py -> Check 
calculated constants in test_string.py

___
Python tracker 

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



[issue10000] mark more tests as CPython specific

2014-06-27 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Closing this unless some specifics arise.

--
nosy: +rhettinger
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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



[issue13277] tzinfo subclasses information

2014-06-27 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

I would say this is a doc issue.  There are some tzinfo algorithms that depend 
on utcoffset(dt)-dst(dt) being invariant, but this is the part of datetime 
library that I have never fully understood.

What I do understand is that conversion from local time to UTC or another 
timezone is a hard and not always solvable problem (some local times are 
invalid and some are ambiguous).  (If some local government decides that 00:59 
should be followed by 02:00, one is hard pressed to figure out what 01:30 local 
time is in UTC.)

I think documentation should emphasize the fact that the standard library only 
supports fixed offset timezones.  It is up to the application programmer or a 
3rd party library to figure out which fixed offset is appropriate in which case.

--
components: +Documentation
nosy: +tim.peters

___
Python tracker 

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



[issue12589] test_long.test_nan_inf() failed on OpenBSD (powerpc)

2014-06-27 Thread Mark Lawrence

Mark Lawrence added the comment:

Can this be reproduced on 3.4/5?

--
nosy: +BreamoreBoy
type:  -> behavior
versions: +Python 3.4, Python 3.5 -Python 3.2

___
Python tracker 

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



[issue13277] tzinfo subclasses information

2014-06-27 Thread Mark Lawrence

Mark Lawrence added the comment:

I don't understand the implications of timezone stuff at all so can a guru on 
the subject please comment on this.

--
nosy: +BreamoreBoy
versions: +Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

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



[issue11754] Changed test to check calculated constants in test_string.py

2014-06-27 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Three years later, I do understand 'circular'. Such cut-and-paste whitebox 
tests tend to simultaneously test too much -- the particular implementation(1) 
-- and too little -- the actual specification(2).

(1) The test would falsely fail if a string were reordered but still correct.
(2) The test would falsely pass is any of the existing strings were incorrect. 
Most of the strings have a specification other than the existing string and all 
can be tested in an order free manner. Hexdigits example:

import string
assert len(set(string.hexdigits)) == 22
for c in string.hexdigits:
assert '0' <= c <= '9' or 'a' <= c <= 'f' or 'A' <= c <= 'F'

I would be willing to push such a patch. I would also be willing to close this 
now.

--
keywords: +easy
stage:  -> needs patch
type: behavior -> enhancement

___
Python tracker 

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



[issue10932] distutils.core.setup - data_files misbehaviour ?

2014-06-27 Thread Mark Lawrence

Changes by Mark Lawrence :


--
components:  -Distutils2
nosy: +dstufft
versions: +Python 3.4, Python 3.5 -3rd party, Python 3.1, Python 3.2

___
Python tracker 

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



[issue12808] Coverage of codecs.py

2014-06-27 Thread Mark Lawrence

Mark Lawrence added the comment:

Would someone who's commented previously do a commit review please?

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue21844] Fix HTMLParser in unicodeless build

2014-06-27 Thread Ezio Melotti

Ezio Melotti added the comment:

I think that Unicode support should be required for HTMLParser.
If you don't want tests to fail in Unicode-less build it would be probably 
easier to just skip them altogether.

--

___
Python tracker 

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



[issue2571] can cmd.py's API/docs for the use of an alternate stdin be improved?

2014-06-27 Thread Mark Lawrence

Mark Lawrence added the comment:

Does somebody want to propose a patch to take this forward, or can it be closed 
again, or what?

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

___
Python tracker 

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



[issue12814] Possible intermittent bug in test_array

2014-06-27 Thread Mark Lawrence

Mark Lawrence added the comment:

Can this be closed as "out of date"?

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue1528154] New sequences for Unicode groups and block ranges needed

2014-06-27 Thread Ezio Melotti

Ezio Melotti added the comment:

This seems to be the only one currently.
Other issues might have closed in favor of #2636 though.

--

___
Python tracker 

___
___
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-27 Thread Mark Lawrence

Mark Lawrence added the comment:

@Victor as you've been looking at other asyncore/chat issues can you look at 
this please?

--
nosy: +haypo

___
Python tracker 

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



[issue21046] Document formulas used in statistics

2014-06-27 Thread Ezio Melotti

Changes by Ezio Melotti :


--
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



[issue11165] Document PyEval_Call* functions

2014-06-27 Thread Mark Lawrence

Mark Lawrence added the comment:

@Nick I assume that this still needs doing.  msg128249 says you've removed the 
easy tag but it still shows in the keywords list.

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue9999] test_shutil cross-file-system tests are fragile (may not test what they purport to test)

2014-06-27 Thread Mark Lawrence

Mark Lawrence added the comment:

Would you like to take this forward, or has it already happened but not been 
documented here?

--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2

___
Python tracker 

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



[issue12401] unset PYTHON* environment variables when running tests

2014-06-27 Thread STINNER Victor

STINNER Victor added the comment:

> 1. Fix the tests that might be affected by such problems, by adding the -E 
> option everywhere needed.

Yes, this is the right fix. I'm closing this issue because it didn't get any 
activity since 3 years.

If you are interested to add -E in tests, please open a new issue with a patch.

empty_environment.diff is wrong, we should ignore PYTHON environement variables 
to have reliable tests.

--
resolution:  -> not a bug
status: open -> closed

___
Python tracker 

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



[issue20961] Fix usages of the note directive in the documentation

2014-06-27 Thread Berker Peksag

Changes by Berker Peksag :


--
resolution:  -> out of date
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



[issue5714] CGIHTTPServer._url_collapse_path_split should live elsewhere

2014-06-27 Thread Mark Lawrence

Mark Lawrence added the comment:

I've tried investigating this but I've got lost so I'll have to pass the buck.  
I've got confused because of the code moving around in Python 2 and the library 
changes going to Python 3 :-(

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

___
Python tracker 

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



[issue21578] Misleading error message when ImportError called with invalid keyword args

2014-06-27 Thread Berker Peksag

Changes by Berker Peksag :


Removed file: http://bugs.python.org/file35366/issue21578.diff

___
Python tracker 

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



[issue21578] Misleading error message when ImportError called with invalid keyword args

2014-06-27 Thread Berker Peksag

Berker Peksag added the comment:

Here's a new patch which uses assertRaisesRegex instead of assertRaises.

--
Added file: http://bugs.python.org/file35794/issue21578_v3.diff

___
Python tracker 

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



[issue12625] sporadic test_unittest failure

2014-06-27 Thread Mark Lawrence

Mark Lawrence added the comment:

Can this be closed as "out of date"?

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue12401] unset PYTHON* environment variables when running tests

2014-06-27 Thread Mark Lawrence

Mark Lawrence added the comment:

Can we have a formal patch review please as "make test" means nothing to me.

--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3

___
Python tracker 

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



[issue12420] distutils tests fail if PATH is not defined

2014-06-27 Thread Mark Lawrence

Mark Lawrence added the comment:

Can someone follow up on this please.  See also #12401.

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue777588] asyncore/Windows: select() doesn't report errors for a non-blocking connect()

2014-06-27 Thread STINNER Victor

STINNER Victor added the comment:

Note: asyncio also calls getsockopt(SOL_SOCKET,SO_ERROR) to check if the 
connect() succeeded or not, and so it doesn't have this bug.

--

___
Python tracker 

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



[issue777588] asyncore/Windows: select() doesn't report errors for a non-blocking connect()

2014-06-27 Thread STINNER Victor

STINNER Victor added the comment:

"Workaround: (...)
e = self.socket.getsockopt(socket.SOL_SOCKET, socket.SO_ERROR)"

Oh, it looks like the issue was already fixed 4 years ago:
---
changeset:   63720:ba7353147507
branch:  3.1
parent:  63716:915b028b954d
user:Giampaolo Rodolà 
date:Wed Aug 04 09:04:53 2010 +
files:   Lib/asyncore.py Misc/ACKS Misc/NEWS
description:
Merged revisions 83705 via svnmerge from
svn+ssh://python...@svn.python.org/python/branches/py3k


  r83705 | giampaolo.rodola | 2010-08-04 11:02:27 +0200 (mer, 04 ago 2010) | 1 
line

  fix issue #2944: asyncore doesn't handle connection refused correctly (patch 
by Alexander Shigin). Merged from 2.7 branch.



diff -r 915b028b954d -r ba7353147507 Lib/asyncore.py
--- a/Lib/asyncore.py   Wed Aug 04 04:53:07 2010 +
+++ b/Lib/asyncore.py   Wed Aug 04 09:04:53 2010 +
@@ -426,8 +426,11 @@ class dispatcher:
 self.handle_read()
 
 def handle_connect_event(self):
+err = self.socket.getsockopt(socket.SOL_SOCKET, socket.SO_ERROR)
+if err != 0:
+raise socket.error(err, _strerror(err))
+self.handle_connect()
 self.connected = True
-self.handle_connect()
 
 def handle_write_event(self):
 if self.accepting:
...
---

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

___
Python tracker 

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



[issue21531] Sending a zero-length UDP packet to asyncore invokes handle_close()

2014-06-27 Thread STINNER Victor

STINNER Victor added the comment:

For UDP, you can use the new asyncio module for that.

I agree that the asyncore documentation should mention that datagram protocols 
(UDP) are not supported.

--
nosy: +haypo

___
Python tracker 

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



[issue11266] asyncore does not handle EINTR in recv, send, connect, accept,

2014-06-27 Thread STINNER Victor

STINNER Victor added the comment:

It was already discussed in other issues, the issue is not specific to 
asyncore: Python code should not handle EINTR. IMO the C module socket should 
handle EINTR for you.

--
nosy: +haypo

___
Python tracker 

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



[issue10880] do_mkvalue and 'boolean'

2014-06-27 Thread Mark Lawrence

Mark Lawrence added the comment:

Can somebody do a patch review on this please, it's against _testcapimodule.c.

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

___
Python tracker 

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



[issue6692] asyncore kqueue support

2014-06-27 Thread STINNER Victor

STINNER Victor added the comment:

I read asyncore.patch: it is close to the selectors module, so it means 
duplicated efforts. I prefer to close this issuse since asyncore has been 
deprecated in favor of asyncio (and selectors).

Using the selectors module in asyncore would not be efficient because asyncore 
design requires to build a new selector for each poll, which is not efficient. 
asyncio only creates the selector once, and then use register/unregister. It's 
more efficient and scalable.

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

___
Python tracker 

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



[issue11453] asyncore.file_wrapper should implement __del__ and call close there to prevent resource leaks and behave like socket.socket does.

2014-06-27 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7c9335d97628 by Victor Stinner in branch 'default':
(Merge 3.4) Issue #11453: asyncore: emit a ResourceWarning when an unclosed
http://hg.python.org/cpython/rev/7c9335d97628

--

___
Python tracker 

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



[issue12509] test_gdb fails on debug build when builddir != srcdir

2014-06-27 Thread Mark Lawrence

Mark Lawrence added the comment:

The code from the patch was committed in r77824.

--
nosy: +BreamoreBoy
type:  -> behavior

___
Python tracker 

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



[issue11453] asyncore.file_wrapper should implement __del__ and call close there to prevent resource leaks and behave like socket.socket does.

2014-06-27 Thread STINNER Victor

STINNER Victor added the comment:

I fixed the issue in Python 3.4 and 3.5, thanks for the report.

In Python 3.4+, it's safe to add a destructor (__del__ method): even if the 
object is part of a reference cycle, it will be destroyed. It's not the case in 
Python 2.7. I prefer to leave Python 2.7 unchanged to limit the risk of 
regression.

--
nosy: +haypo
resolution:  -> fixed
status: open -> closed
versions: +Python 3.4, Python 3.5 -Python 2.7, Python 3.2, Python 3.3

___
Python tracker 

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



[issue11453] asyncore.file_wrapper should implement __del__ and call close there to prevent resource leaks and behave like socket.socket does.

2014-06-27 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ae12a926e680 by Victor Stinner in branch '3.4':
Issue #11453: asyncore: emit a ResourceWarning when an unclosed file_wrapper
http://hg.python.org/cpython/rev/ae12a926e680

--
nosy: +python-dev

___
Python tracker 

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



[issue11452] test_trace not symlink install clean

2014-06-27 Thread Ned Deily

Changes by Ned Deily :


--
resolution:  -> wont fix
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



[issue12498] asyncore.dispatcher_with_send, disconnection problem + miss-conception

2014-06-27 Thread François-Xavier Bourlet

François-Xavier Bourlet added the comment:

No worries, I am glad to see asyncore going away. It was indeed badly
designed in the first place.

--
François-Xavier Bourlet

On Fri, Jun 27, 2014 at 2:28 PM, STINNER Victor  wrote:
>
> STINNER Victor added the comment:
>
> "Actually the class asyncore.dispatcher_with_send do not handle properly 
> disconnection. When the endpoint shutdown his sending part of the socket, but 
> keep the socket open in reading, the current implementation of 
> dispatcher_with_send will close the socket without sending pending data."
>
> It looks like asyncore doesn't handle this use case.
>
> To me, it doesn't look like a minor issue, but more a design issue. Fixing it 
> requires to change the design of asyncore.
>
> The asyncio module has a better design. It has a write_eof() method to close 
> the write end without touching the read end. For example, for sockets, 
> write_eof() calls sock.shutdown(socket.SHUT_WR). After write_eof(), the read 
> continues in background as any other task. For the read end, the protocol has 
> a eof_received() method to decide if the socket should close, or if it should 
> be kept open for writing (but only for writing).
>
> Giampaolo wrote:
>> I think this thread is becoming a little messy and since asyncore/asynchat 
>> are in a situation where even the slightest change can break existent code I 
>> recommend to be really careful.
>
> Moreover, the asyncore module has been deprecated in favor of the asyncio 
> module.
>
> I close this issue for all these reasons.
>
> Sorry Xavier for your patches, but it's time to focus our efforts on a single 
> module and asyncio has a much better design to handle such use cases.
>
> --
> nosy: +haypo
> resolution:  -> wont fix
> status: open -> closed
>
> ___
> Python tracker 
> 
> ___

--

___
Python tracker 

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



[issue1371826] distutils is silent about multiple -I/-L/-R

2014-06-27 Thread Mark Lawrence

Changes by Mark Lawrence :


--
components:  -Distutils2
nosy: +dstufft
versions: +Python 3.4, Python 3.5 -3rd party, Python 3.1, Python 3.2

___
Python tracker 

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



[issue12498] asyncore.dispatcher_with_send, disconnection problem + miss-conception

2014-06-27 Thread STINNER Victor

STINNER Victor added the comment:

"Actually the class asyncore.dispatcher_with_send do not handle properly 
disconnection. When the endpoint shutdown his sending part of the socket, but 
keep the socket open in reading, the current implementation of 
dispatcher_with_send will close the socket without sending pending data."

It looks like asyncore doesn't handle this use case.

To me, it doesn't look like a minor issue, but more a design issue. Fixing it 
requires to change the design of asyncore.

The asyncio module has a better design. It has a write_eof() method to close 
the write end without touching the read end. For example, for sockets, 
write_eof() calls sock.shutdown(socket.SHUT_WR). After write_eof(), the read 
continues in background as any other task. For the read end, the protocol has a 
eof_received() method to decide if the socket should close, or if it should be 
kept open for writing (but only for writing).

Giampaolo wrote:
> I think this thread is becoming a little messy and since asyncore/asynchat 
> are in a situation where even the slightest change can break existent code I 
> recommend to be really careful.

Moreover, the asyncore module has been deprecated in favor of the asyncio 
module.

I close this issue for all these reasons.

Sorry Xavier for your patches, but it's time to focus our efforts on a single 
module and asyncio has a much better design to handle such use cases.

--
nosy: +haypo
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

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



[issue11754] Changed test to check calculated constants in test_string.py

2014-06-27 Thread Mark Lawrence

Mark Lawrence added the comment:

I see very little value in implementing this change, thoughts?

--
nosy: +BreamoreBoy
versions: +Python 2.7, Python 3.4, Python 3.5 -Python 3.3

___
Python tracker 

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



[issue21877] External.bat and pcbuild of tkinter do not match.

2014-06-27 Thread Zachary Ware

Zachary Ware added the comment:

> compiles _tkinter is such a way that it looks for the two dlls 'everywhere' 
> (in pcbuild itself and 5-10 other, non-existent directories)

I think you're confusing the finding of the tcl/tk DLLs with the finding of 
init.tcl; the DLLs are searched for on PATH (as I understand it, just like any 
other DLL), while init.tcl is searched for in several places hard coded deep in 
bowels of Tcl (see #20035).

Python 3.5 (default branch) builds Tcl/Tk as part of the build solution rather 
than as part of external*.bat, and copies the DLLs to the output directory as 
part of the new system.  3.4 and 2.7 could be fixed to copy the DLLs as part of 
external*.bat, but will have issues similar to #21059 without some kind of fix 
like #20035 (which is currently only targetting default branch).

--

___
Python tracker 

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



[issue7506] multiprocessing.managers.BaseManager.__reduce__ references BaseManager.from_address

2014-06-27 Thread Mark Lawrence

Changes by Mark Lawrence :


--
versions: +Python 3.4, Python 3.5 -Python 2.6, Python 3.1, Python 3.2

___
Python tracker 

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



[issue5862] multiprocessing 'using a remote manager' example errors and possible 'from_address' code leftover

2014-06-27 Thread Mark Lawrence

Changes by Mark Lawrence :


--
versions: +Python 3.4, Python 3.5 -Python 2.6, Python 3.0, Python 3.1

___
Python tracker 

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



[issue21877] External.bat and pcbuild of tkinter do not match.

2014-06-27 Thread Terry J. Reedy

New submission from Terry J. Reedy:

dir/pydir/Tools/buildbot/external.bat downloads tcl/tk 8.y.z into dir/tcl-8.y.z 
and dir/tk-8.y.x and compiles them into dir/tcltk. Of critical importance are 
dir/tcltk/bin/tcl8yg.dll and dir/tcltk/bin/tk8yg.dll (where y is currently 5 or 
6.

dir/pydir/pcbuild/_tkinter.vcxprog compiles _tkinter is such a way that it 
looks for the two dlls 'everywhere' (in pcbuild itself and 5-10 other, 
non-existent directories) other than where they are.

The current manual fix, reported a year ago on core-mentorship list, is to copy 
the two .dlls into pcbuild. This should be done by external.bat.

A possible alternate fix would be to revise _tkinter.vcxproj so that _tkinter 
looks for the .dlls where they are. However, since multiple tcl/tk versions are 
compiled into /tcltk, this would break installations that use one 'dir' for 
multiple 'pydir's, as shown in the devguide. Currently, the .dlls must be 
copied into pcbuild before they get overwritten by another version.

--
components: Build
messages: 221737
nosy: steve.dower, terry.reedy, zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: External.bat and pcbuild of tkinter do not match.
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

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



[issue11697] Unsigned type in mmap_move_method

2014-06-27 Thread Ned Deily

Changes by Ned Deily :


--
nosy: +neologix

___
Python tracker 

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



[issue13103] copy of an asyncore dispatcher causes infinite recursion

2014-06-27 Thread STINNER Victor

STINNER Victor added the comment:

This issue has been fixed in Python 3.5 by this change:
---
changeset:   90495:2cceb8cb552b
parent:  90493:d1a03834cec7
user:Giampaolo Rodola' 
date:Tue Apr 29 02:03:40 2014 +0200
files:   Lib/asyncore.py Lib/test/test_asyncore.py Misc/NEWS
description:
fix isuse #13248: remove previously deprecated asyncore.dispatcher __getattr__ 
cheap inheritance hack.
---

If I understdood correctly, for backward compatibility (and limit risk of 
regressions), this fix cannot be done in Python 3.4.

I close the issue, copy.copy(asyncore.dispatcher()) doesn't crash anymore.

--
nosy: +haypo
resolution:  -> fixed
status: open -> closed
versions: +Python 3.5 -Python 3.2

___
Python tracker 

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



[issue11452] test_trace not symlink install clean

2014-06-27 Thread Mark Lawrence

Mark Lawrence added the comment:

Can this be closed as "out of date"?

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue15982] asyncore.dispatcher does not handle windows socket error code correctly (namely WSAEWOULDBLOCK 10035)

2014-06-27 Thread STINNER Victor

STINNER Victor added the comment:

This issue looks like a duplicate of the issue #16133.

--
nosy: +haypo

___
Python tracker 

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



[issue16133] asyncore.dispatcher.recv doesn't handle EAGAIN / EWOULDBLOCK

2014-06-27 Thread STINNER Victor

STINNER Victor added the comment:

See also the issue #15982 which is the exactly the same on Windows.

(By the way, the asyncore module has been marked as deprecated in Python 3.4 in 
favor of asyncio, and this issue is already solved in asyncio.)

--

___
Python tracker 

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



[issue10000] mark more tests as CPython specific

2014-06-27 Thread Ned Deily

Changes by Ned Deily :


--
nosy: +pjenvey

___
Python tracker 

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



[issue16133] asyncore.dispatcher.recv doesn't handle EAGAIN / EWOULDBLOCK

2014-06-27 Thread STINNER Victor

STINNER Victor added the comment:

Modifying recv() to return None doesn't look correct. I read it as: "you should 
always use recv() output, except if the result is None: in this case, do 
nothing". In Python, we use exceptions for that. BUT in fact, sock.recv() 
already raises an exception, so asyncore should not convert the exception to a 
magic value (None).

Modifying the behaviour of recv() in asyncore breaks the backward 
compatibility. Returning None makes it harder to write asyncore code working on 
Python 3.4 and 3.5 (if the change is done in Python 3.5).

I prefer EWOULDBLOCK.patch approach: document the issue in asyncore 
documentation and handle BlockingIOError in asynchat.

--

___
Python tracker 

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



[issue7202] "python setup.py cmd --verbose" does not set verbosity

2014-06-27 Thread Mark Lawrence

Mark Lawrence added the comment:

Assuming that this is still an issue would someone like to propose a patch?

--
components:  -Distutils2
nosy: +BreamoreBoy, dstufft
versions: +Python 3.4, Python 3.5 -3rd party, Python 3.1, Python 3.2

___
Python tracker 

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



[issue9350] add remove_argument_group to argparse

2014-06-27 Thread paul j3

paul j3 added the comment:

I wonder if this patch is needed.

- there hasn't been discussion in 4 years

- In Steven's use case, a group without any arguments, the group does not show 
up.  A common example of an empty argument group, is a parser without any user 
defined arguments.  

p=argparse.ArgumentParser(prog='PROG')
p.print_help()

usage: PROG [-h]
optional arguments:
  -h, --help  show this help message and exit

The empty 'positional arguments' group is not displayed.

Removing a group that has arguments is more complicated (and error prone) since 
it requires removing those arguments as well.  There is a '_remove_action' 
method.  But as best I can tell it is only used by '_handle_conflict_resolve', 
a rarely used alternative conflict handler.

--

___
Python tracker 

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



[issue7885] test_distutils fails if Python built in separate directory

2014-06-27 Thread Ned Deily

Ned Deily added the comment:

It looks like this was fixed as part of the changes for Issue12141 (which were 
also backported to 2.7.x); test_build_ext tests are now cleanly skipped if the 
include file cannot be found.

--
nosy: +ned.deily
resolution:  -> out of date
stage: needs patch -> resolved
status: open -> closed
versions: +Python 3.3 -Python 3.1

___
Python tracker 

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



[issue16133] asyncore.dispatcher.recv doesn't handle EAGAIN / EWOULDBLOCK

2014-06-27 Thread STINNER Victor

STINNER Victor added the comment:

EWOULDBLOCK.patch: asyncio ignores BlockingIOError on sock.recv(), "except 
BlockingIOError:" is more portable and future proof than "_RETRY = 
frozenset((EWOULDBLOCK, EAGAIN))".

Except of that, EWOULDBLOCK.patch change looks correct.

--
nosy: +haypo

___
Python tracker 

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



[issue11389] unittest: no way to control verbosity of doctests from cmd

2014-06-27 Thread Mark Lawrence

Changes by Mark Lawrence :


--
type:  -> behavior
versions: +Python 2.7, Python 3.4, Python 3.5 -Python 3.3

___
Python tracker 

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



[issue11385] TextTestRunner methods are not documented

2014-06-27 Thread Mark Lawrence

Changes by Mark Lawrence :


--
type:  -> behavior
versions: +Python 3.5 -Python 3.2, Python 3.3

___
Python tracker 

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



[issue9858] Python and C implementations of io are out of sync

2014-06-27 Thread Mark Lawrence

Mark Lawrence added the comment:

Is there anything left to do on this or can it be closed as fixed?

--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2

___
Python tracker 

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



[issue21582] use support.captured_stdx context managers - test_asyncore

2014-06-27 Thread STINNER Victor

STINNER Victor added the comment:

The patch is simple, safe, and makes the test code cleaner. I commited your 
patch diana, thanks.

--
nosy: +haypo

___
Python tracker 

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



[issue21582] use support.captured_stdx context managers - test_asyncore

2014-06-27 Thread Roundup Robot

Roundup Robot added the comment:

New changeset c2dba8ee4e96 by Victor Stinner in branch '3.4':
Closes #21582: Cleanup test_asyncore. Patch written by diana.
http://hg.python.org/cpython/rev/c2dba8ee4e96

New changeset f1cd0aa1561a by Victor Stinner in branch 'default':
(Merge 3.4) Closes #21582: Cleanup test_asyncore. Patch written by diana.
http://hg.python.org/cpython/rev/f1cd0aa1561a

--
nosy: +python-dev
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



[issue21856] memoryview: test slick clamping

2014-06-27 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Memoryview should definitely have the same slice tests as other sequence 
objects. Go ahead and check.

I believe slice clamping itself should now be done by slice.indices, not by 
each class.

S.indices(len) -> (start, stop, stride)

Assuming a sequence of length len, calculate the start and stop
indices, and the stride length of the extended slice described by
S. Out of bounds indices are clipped in a manner consistent with the
handling of normal slices.

It seems like this was written before it was normal for every slice to have a 
step (stride), defaulting to None/1. It definitely comes from 2.x, before 
__getslice__ was folded into __getitem__

I expect builtin 3.x sequence objects should all use something like the C 
equivalent of
def __getitem__(self, ob):
if type(ob) is slice:
   start, stop, stride = ob.indices(self.len)
   ...

--
title: memoryview: no overflow on large slice values (start, stop, step) -> 
memoryview: test slick clamping

___
Python tracker 

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



[issue8314] test_ctypes fails in test_ulonglong on sparc buildbots

2014-06-27 Thread Mark Lawrence

Mark Lawrence added the comment:

Can this be closed as "out of date"?

--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5

___
Python tracker 

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



[issue11273] asyncore creates selec (or poll) on every iteration

2014-06-27 Thread STINNER Victor

STINNER Victor added the comment:

"On the other hand, it appears to be quite difficult to integrate such a 
massive change into asyncore in a fully backward compatible manner. At least, 
it's not clear to me how to do this without breaking code relying on map's 
parameter and asyncore.socket_map."

Python 3.4 has now asyncio which creates a selector object which has 
register/unregister methods and so benefit of performances enhancements of 
epoll/kqueue/devpoll.

Since Giampaolo cares of backward compatibility of asyncore, and the fact that 
asyncore is now marked as deprecated ("This module exists for backwards 
compatibility only. For new code we recommend using asyncio."), I close this 
issue as wont fix ("wont fix" in asyncore, but it's already fixed in asyncio 
;-)).

--
nosy: +haypo
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

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



[issue20560] tkFileFilter.c: ostypeCount not initialized?

2014-06-27 Thread Zachary Ware

Zachary Ware added the comment:

> Is there an open issue to fix the undocumented need to copy?

I don't think so.

--

___
Python tracker 

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



[issue10195] Memory allocation fault-injection?

2014-06-27 Thread STINNER Victor

STINNER Victor added the comment:

Related issues: #19817 "tracemalloc add a memory limit feature" and #19835 "Add 
a MemoryError singleton to fix an unlimited loop when the memory is exhausted".

--

___
Python tracker 

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



[issue11279] test_posix and lack of "id -G" support - less noise required?

2014-06-27 Thread Mark Lawrence

Mark Lawrence added the comment:

Can our Solaris gurus take this on please.

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue20560] tkFileFilter.c: ostypeCount not initialized?

2014-06-27 Thread Terry J. Reedy

Terry J. Reedy added the comment:

The problem is gone after re-running external.bat -- and manually copying the 
dlls into pcbuild. It there an open issue to fix the undocumented need to copy?

--

___
Python tracker 

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



[issue21856] memoryview: no overflow on large slice values (start, stop, step)

2014-06-27 Thread STINNER Victor

STINNER Victor added the comment:

If the behaviour is well expected, I suggest to add an unit test: 
memoryview_test_large_slice.patch.

--
keywords: +patch
resolution: not a bug -> 
status: closed -> open
Added file: http://bugs.python.org/file35793/memoryview_test_large_slice.patch

___
Python tracker 

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



[issue10236] Sporadic failures of test_ssl

2014-06-27 Thread Ned Deily

Changes by Ned Deily :


--
resolution:  -> out of date
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



[issue4899] doctest should support fixtures

2014-06-27 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I am closing this for both the general reasons already given and the lack of a 
proposed api that could programmed, Hence there is no example code that would 
run and hence no specifics to approve. If someone wanted to pursue this, 
python-ideas would be a better place.

One of the general reasons given is that the example does not demonstrate a 
real need for the fixtures proposed. My take on the example code is this.

The input to TpedIterator is an iterable of lines. A list of lines will work as 
well an an open file. I would create a file of example lists and import the one 
needed for each docstring. For the example given.

def TpedIterator(lines):
'''Yield Marker for each line of lines.

>>> from biopython.sample_data import Tped
>>> for marker in TpedIterator(Tped):
...print(marker)
Marker rs1543, 2 individuals
Marker rs1929, 2 individuals
Marker rs10002472, 2 individuals
'''

--
resolution:  -> rejected
stage: test needed -> 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



[issue5930] Transient error in multiprocessing (test_number_of_objects)

2014-06-27 Thread STINNER Victor

Changes by STINNER Victor :


--
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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



[issue11697] Unsigned type in mmap_move_method

2014-06-27 Thread Mark Lawrence

Mark Lawrence added the comment:

The if conditional referenced in msg132364 was changed in r79606 but dest, src 
and cnt are still unsigned long and the call to PyArg_ParseTuple is unchanged.

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue21864] Error in documentation of point 9.8 'Exceptions are classes too'

2014-06-27 Thread Terry J. Reedy

Terry J. Reedy added the comment:

The preceding sentence "There are two new valid (semantic) forms for the raise 
statement" is obsolete also as there is no other form (other than 'raise', 
which should not be in the tutorial previously). To rewrite this section for 
3.x would require looking at what has already been said about exceptions and 
raise. It seems to have been written for ancient python where raise 
'somestring' was the norm.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue10000] mark more tests as CPython specific

2014-06-27 Thread Mark Lawrence

Mark Lawrence added the comment:

How is pypy supporting Python 3.2.5 without this being done?  Or has it been 
done but perhaps documented elsewhere?

--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2

___
Python tracker 

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



[issue21876] os.rename(src, dst) does nothing when src and dst files are hard-linked

2014-06-27 Thread Aaron Swan

Aaron Swan added the comment:

Although using the mv command *does* remove the src file on red hat linux, I 
can accept that the POSIX requirement that the source *must* be removed might 
not apply if source is the same as the destination file.

It would be nice if the behavior was consistent, but I think the POSIX 
requirements are somewhat up for interpretation in this case.

The documentation should probably be updated at the least.

--

___
Python tracker 

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



[issue21856] memoryview: no overflow on large slice values (start, stop, step)

2014-06-27 Thread Terry J. Reedy

Terry J. Reedy added the comment:

#21831 was about size not being properly clamped. Here it is.

--
nosy: +terry.reedy
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



[issue7885] test_distutils fails if Python built in separate directory

2014-06-27 Thread Mark Lawrence

Mark Lawrence added the comment:

Is this still an issue that needs addressing?  I can't try it myself as I use 
Windows.

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue16296] Patch to fix building on Win32/64 under VS 2010

2014-06-27 Thread Zachary Ware

Changes by Zachary Ware :


--
components: +Windows

___
Python tracker 

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



[issue16296] Patch to fix building on Win32/64 under VS 2010

2014-06-27 Thread Zachary Ware

Changes by Zachary Ware :


--
components: +Distutils -Build, Windows
nosy: +dstufft, eric.araujo -zach.ware
status: languishing -> open
type: compile error -> behavior
versions: +Python 3.5 -Python 3.3

___
Python tracker 

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



[issue10402] sporadic test_bsddb3 failures

2014-06-27 Thread Mark Lawrence

Mark Lawrence added the comment:

As #3892 has been closed this can also be closed.

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue3620] test_smtplib is flaky

2014-06-27 Thread Mark Lawrence

Mark Lawrence added the comment:

Can this be closed as "out of date"?

--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.2

___
Python tracker 

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



[issue21876] os.rename(src, dst) does nothing when src and dst files are hard-linked

2014-06-27 Thread Esa Peuha

Esa Peuha added the comment:

This looks like a documentation bug. Functions in module os are usually just 
thin wrappers around the underlying OS functions, and POSIX states that doing 
nothing is the correct thing to do here. (It is arguably a bug in early Unix 
implementations that got mistakenly codified as part of POSIX, and it is 
certainly inconsistent with the POSIX requirement that the mv command *must* 
remove the source file in this case, but there is nothing Python can do about 
that.)

--
nosy: +Esa.Peuha

___
Python tracker 

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



[issue5930] Transient error in multiprocessing (test_number_of_objects)

2014-06-27 Thread Mark Lawrence

Mark Lawrence added the comment:

Can this be closed as "out of date"?

--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2

___
Python tracker 

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



[issue20560] tkFileFilter.c: ostypeCount not initialized?

2014-06-27 Thread Zachary Ware

Zachary Ware added the comment:

I'm going to go ahead and close this, since it should be fixed.  Terry, if you 
do find that this is still an issue, please reopen.

--
resolution:  -> fixed
stage: needs patch -> resolved
status: pending -> closed

___
Python tracker 

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



[issue21873] Tuple comparisons with NaNs are broken

2014-06-27 Thread Raymond Hettinger

Raymond Hettinger added the comment:

FWIW, the logic for tuple ordering is a bit weird due to rich comparisons.   
Each pair of elements is first checked for equality (__eq__).  Only if the 
equality comparison returns False does it call the relevant ordering operations 
(such as __lt__).   The docs get it right, "If not equal, the sequences are 
ordered the same as their first differing elements."

In short tuple ordering is different from scalar ordering because it always 
makes equality tests:
 
   a < b  calls   a.__lt__(b)

in contrast:

   (a, b) < (c, d)is more like:   if a != c:  return a < c ...

--

___
Python tracker 

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



[issue14060] Implement a CSP-style channel

2014-06-27 Thread Mark Lawrence

Mark Lawrence added the comment:

@Matt are you interested in following up on this?

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

___
Python tracker 

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



[issue10195] Memory allocation fault-injection?

2014-06-27 Thread STINNER Victor

STINNER Victor added the comment:

This feature is implemented in my external project:
https://bitbucket.org/haypo/pyfailmalloc

It was discussed to integrate it in Python 3.4, but I foscused my efforts on 
the PEP 445 (malloc API) and 454 (tracemalloc).

--

___
Python tracker 

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



[issue10236] Sporadic failures of test_ssl

2014-06-27 Thread Mark Lawrence

Mark Lawrence added the comment:

Can this be closed as "out of date"?

--
nosy: +BreamoreBoy
versions: +Python 2.7, Python 3.4, Python 3.5 -Python 3.2

___
Python tracker 

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



[issue10195] Memory allocation fault-injection?

2014-06-27 Thread Mark Lawrence

Mark Lawrence added the comment:

Do you folks want to pick this up again as it seems a handy thing to have in 
our toolbox?

--
nosy: +BreamoreBoy
versions: +Python 3.5 -Python 3.2

___
Python tracker 

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



[issue21876] os.rename(src, dst) does nothing when src and dst files are hard-linked

2014-06-27 Thread Aaron Swan

New submission from Aaron Swan:

On Linux Red Hat os.rename(src,dst) does nothing when src and dst files are 
hard-linked.

It seems like the expected behavior would be the removal of the src file. This 
would be in keeping with the documentation that states: "On Unix, if dst exists 
and is a file, it will be replaced silently if the user has permission. "

--
messages: 221699
nosy: Aaron.Swan
priority: normal
severity: normal
status: open
title: os.rename(src,dst) does nothing when src and dst files are hard-linked
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



[issue8070] Infinite loop in PyRun_InteractiveLoopFlags() if PyRun_InteractiveOneFlags() raises an error

2014-06-27 Thread Mark Lawrence

Mark Lawrence added the comment:

I've failed to reproduce this using latest default on Windows 7, would someone 
else like to try please.

--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3

___
Python tracker 

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



[issue5217] testExtractDir (test.test_zipfile.TestWithDirectory) fails when python built with srcdir != builddir

2014-06-27 Thread Berker Peksag

Berker Peksag added the comment:

> Presumably this can be closed as "out of date"?

Yes.

   $ mkdir objdir
   $ cd objdir
   $ .././configure
   $ make
   $ ./python -m test -v test_zipfile

   Ran 164 tests in 38.202s

   OK (skipped=1)
   1 test OK.

--
nosy: +berker.peksag
resolution:  -> out of date
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



[issue678264] test_resource fails when file size is limited

2014-06-27 Thread Mark Lawrence

Mark Lawrence added the comment:

The inline patch in msg117130 has never been committed from what I can see.  
Can somebody review it please as I'm assuming that it's still valid.

--
nosy: +BreamoreBoy
versions: +Python 2.7, Python 3.4, Python 3.5 -Python 3.2

___
Python tracker 

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



  1   2   >