[issue13248] deprecated in 3.2/3.3, should be removed in 3.4

2013-03-24 Thread Éric Araujo

Éric Araujo added the comment:

> We do not document removals after they are done as they are not an
> issue for back-compatibility (unlike changes and additions).

I learned that people may use the (for example) 2.7 docs even though they are 
using 2.6, so I think we do want to use things like the deprecated-removed 
directive to tell these users that they should start looking for a replacement. 
 Removing documentation would lead them to look in other places and discover 
the removals later.

--

___
Python tracker 

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



[issue13244] WebSocket schemes in urllib.parse

2013-03-24 Thread Éric Araujo

Éric Araujo added the comment:

This is not committed to any branch yet.

--
versions: +Python 3.4 -Python 3.3

___
Python tracker 

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



[issue17441] Do not cache re.compile

2013-03-24 Thread Charles-François Natali

Charles-François Natali added the comment:

> The docs don't even mention that re.compile() actually uses a cache.

Actually it does:
"""
re.compile(pattern, flags=0)

Note The compiled versions of the most recent patterns passed to re.match(), 
re.search() or re.compile() are cached, so programs that use only a few regular 
expressions at a time needn’t worry about compiling regular expressions.
"""

Now, I agree that it's definitely suboptimal...

--
nosy: +neologix

___
Python tracker 

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



[issue13248] deprecated in 3.2/3.3, should be removed in 3.4

2013-03-24 Thread Ezio Melotti

Ezio Melotti added the comment:

IMHO deprecated-removed should be used on versions where the feature exists, 
and a versionchanged should be added once the feature has been removed.

--

___
Python tracker 

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



[issue15100] Race conditions in shutil.copy, shutil.copy2 and shutil.copyfile

2013-03-24 Thread Charles-François Natali

Charles-François Natali added the comment:

That shouldn't be too complicated, but does Windows have fcomod() & Co?

--

___
Python tracker 

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



[issue15100] Race conditions in shutil.copy, shutil.copy2 and shutil.copyfile

2013-03-24 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Windows doesn't have fchmod(), but chmod() doesn't do much on it either:

“Although Windows supports chmod(), you can only set the file’s read-only flag 
with it (via the stat.S_IWRITE and stat.S_IREAD constants or a corresponding 
integer value). All other bits are ignored.”

(Windows has a sophisticated file permissions scheme, but you probably need to 
use native APIs to effect them)

--

___
Python tracker 

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



[issue8796] Deprecate codecs.open()

2013-03-24 Thread Ezio Melotti

Ezio Melotti added the comment:

I suggest to deprecated codecs.open() in 3.4, and possibly remove it in a later 
release.  The implementation shouldn't be changed to use the builtin open(), 
but the deprecation note should point to it, and possibly mention the 
shortcomings of codecs.open().

--
nosy: +ezio.melotti
resolution: postponed -> 
stage:  -> needs patch
status: closed -> open
type:  -> behavior
versions: +Python 3.4 -Python 3.2, Python 3.3

___
Python tracker 

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



[issue11087] Speeding up the interpreter with a few lines of code

2013-03-24 Thread Mark Dickinson

Mark Dickinson added the comment:

> ... is this worth pursuing?

Not at the expense of introducing undefined behaviour.  I suggest closing this.

--
nosy: +mark.dickinson

___
Python tracker 

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



[issue17025] reduce multiprocessing.Queue contention

2013-03-24 Thread Charles-François Natali

Charles-François Natali added the comment:

I'm splitting the patches:
- one which adds loads and dumps to ForkingPicler
- the contention reduction patch

I'd like to commit them soon.

--
Added file: http://bugs.python.org/file29559/queues_contention.diff
Added file: http://bugs.python.org/file29560/forkingpickler.diff

___
Python tracker 

___diff --git a/Lib/multiprocessing/queues.py b/Lib/multiprocessing/queues.py
--- a/Lib/multiprocessing/queues.py
+++ b/Lib/multiprocessing/queues.py
@@ -22,7 +22,7 @@
 from multiprocessing.connection import Pipe
 from multiprocessing.synchronize import Lock, BoundedSemaphore, Semaphore, 
Condition
 from multiprocessing.util import debug, info, Finalize, register_after_fork
-from multiprocessing.forking import assert_spawning
+from multiprocessing.forking import assert_spawning, ForkingPickler
 
 #
 # Queue type using a pipe, buffer and thread
@@ -69,8 +69,8 @@
 self._joincancelled = False
 self._closed = False
 self._close = None
-self._send = self._writer.send
-self._recv = self._reader.recv
+self._send_bytes = self._writer.send_bytes
+self._recv_bytes = self._reader.recv_bytes
 self._poll = self._reader.poll
 
 def put(self, obj, block=True, timeout=None):
@@ -89,14 +89,9 @@
 
 def get(self, block=True, timeout=None):
 if block and timeout is None:
-self._rlock.acquire()
-try:
-res = self._recv()
-self._sem.release()
-return res
-finally:
-self._rlock.release()
-
+with self._rlock:
+res = self._recv_bytes()
+self._sem.release()
 else:
 if block:
 deadline = time.time() + timeout
@@ -109,11 +104,12 @@
 raise Empty
 elif not self._poll():
 raise Empty
-res = self._recv()
+res = self._recv_bytes()
 self._sem.release()
-return res
 finally:
 self._rlock.release()
+# unserialize the data after having released the lock
+return ForkingPickler.loads(res)
 
 def qsize(self):
 # Raises NotImplementedError on Mac OSX because of broken 
sem_getvalue()
@@ -158,7 +154,7 @@
 self._buffer.clear()
 self._thread = threading.Thread(
 target=Queue._feed,
-args=(self._buffer, self._notempty, self._send,
+args=(self._buffer, self._notempty, self._send_bytes,
   self._wlock, self._writer.close, self._ignore_epipe),
 name='QueueFeederThread'
 )
@@ -210,7 +206,7 @@
 notempty.release()
 
 @staticmethod
-def _feed(buffer, notempty, send, writelock, close, ignore_epipe):
+def _feed(buffer, notempty, send_bytes, writelock, close, ignore_epipe):
 debug('starting thread to feed data to pipe')
 from .util import is_exiting
 
@@ -241,16 +237,14 @@
 close()
 return
 
+# serialize the data before acquiring the lock
+obj = ForkingPickler.dumps(obj)
 if wacquire is None:
-send(obj)
-# Delete references to object. See issue16284
-del obj
+send_bytes(obj)
 else:
 wacquire()
 try:
-send(obj)
-# Delete references to object. See issue16284
-del obj
+send_bytes(obj)
 finally:
 wrelease()
 except IndexError:
@@ -344,7 +338,6 @@
 self._wlock = None
 else:
 self._wlock = Lock()
-self._make_methods()
 
 def empty(self):
 return not self._poll()
@@ -355,29 +348,19 @@
 
 def __setstate__(self, state):
 (self._reader, self._writer, self._rlock, self._wlock) = state
-self._make_methods()
 
-def _make_methods(self):
-recv = self._reader.recv
-racquire, rrelease = self._rlock.acquire, self._rlock.release
-def get():
-racquire()
-try:
-return recv()
-finally:
-rrelease()
-self.get = get
+def get(self):
+with self._rlock:
+res = self._reader.recv_bytes()
+# unserialize the data after having released the lock
+return ForkingPickler.loads(res)
 
+def put(self, obj):
+# serialize the data before acquiring the lock

[issue513840] entity unescape for sgml/htmllib

2013-03-24 Thread Ezio Melotti

Ezio Melotti added the comment:

See also #2927.

--
versions: +Python 3.4 -Python 3.2

___
Python tracker 

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



[issue17025] reduce multiprocessing.Queue contention

2013-03-24 Thread Richard Oudkerk

Richard Oudkerk added the comment:

The old code deleted the obj in the feeder thread as soon as it was sent at 
lines 247 and 253 -- see Issue #16284.  I think that should be retained.

Apart from that LGTM.

--

___
Python tracker 

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



[issue17025] reduce multiprocessing.Queue contention

2013-03-24 Thread Charles-François Natali

Charles-François Natali added the comment:

> The old code deleted the obj in the feeder thread as soon as it was sent at 
> lines 247 and 253 -- see Issue #16284.  I think that should be retained.

The object is overwritten by the pickled data, so it's not necessary
anymore, no?

--

___
Python tracker 

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



[issue8552] msilib can't create large CAB files

2013-03-24 Thread R. David Murray

R. David Murray added the comment:

It looks like it turned out that there is nothing specific in this issue that 
isn't covered by issue 2399.

--
nosy: +r.david.murray
resolution:  -> duplicate
stage:  -> committed/rejected
status: open -> closed
superseder:  -> Patches for Tools/msi

___
Python tracker 

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



[issue17529] fix os.sendfile() documentation regarding the type of file descriptor

2013-03-24 Thread Charles-François Natali

Changes by Charles-François Natali :


--
keywords: +patch
Added file: http://bugs.python.org/file29561/sendfile_doc.diff

___
Python tracker 

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



[issue12226] use HTTPS by default for uploading packages to pypi

2013-03-24 Thread Benjamin Peterson

Benjamin Peterson added the comment:

This is true, but if we get proper certificate checking, this should 
automatically work correctly then.

--

___
Python tracker 

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



[issue17323] Disable [X refs, Y blocks] ouput in debug builds

2013-03-24 Thread Ezio Melotti

Ezio Melotti added the comment:

Attached a new patch that addresses a couple of minor things pointed out in the 
reviews.

--
stage: patch review -> commit review
Added file: http://bugs.python.org/file29562/issue17323-3.diff

___
Python tracker 

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



[issue1602] windows console doesn't print or input Unicode

2013-03-24 Thread Drekin

Drekin added the comment:

Hello. I have made a small upgrade of the workaround.
• win_unicode_console.enable_streams() sets sys.stdin, stdout and stderr to 
custom filelike objects which use Windows functions ReadConcoleW and 
WriteConsoleW to handle unicode data properly. This can be done in 
sitecustomize.py to take effect automatically.

• Since Python interactive console doesn't use sys.stdin for getting input 
(still don't know reason for this), there is an alternative repl based on 
code.interact(). win_unicode_console.IntertactiveConsole.enable() sets it up. 
To set it up automatically, put the enabling code into a startup file and set 
PYTHONSTARTUP environment variable. This works for interactive session (just 
running python with no script).

• Since there is no hook to run InteractiveConsole.enable() when a script is 
run interactively (-i flag), that is after the script and before the 
interactive session, I have written a helper script i.py. It just runs given 
script and then enters an interactive mode using InteractiveConsole. Just put 
i.py into site-packages and run "py -m i script.py arguments" instead of "py -i 
script.py arguments".

It's a shame that in the year 2013 one cannot simply run Python console on 
Windows and enter Unicode characters. I'm not saying it's just Python fault, 
but there is a workaround on Python side.

--
versions: +Python 3.4
Added file: http://bugs.python.org/file29563/i.py

___
Python tracker 

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



[issue1602] windows console doesn't print or input Unicode

2013-03-24 Thread Drekin

Changes by Drekin :


Added file: http://bugs.python.org/file29564/win_unicode_console_3.py

___
Python tracker 

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



[issue17025] reduce multiprocessing.Queue contention

2013-03-24 Thread Richard Oudkerk

Richard Oudkerk added the comment:

On 24/03/2013 12:16pm, Charles-François Natali wrote:
> The object is overwritten by the pickled data, so it's not necessary
> anymore, no?

Yes, you are right.

--

___
Python tracker 

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



[issue17441] Do not cache re.compile

2013-03-24 Thread Florent Xicluna

Changes by Florent Xicluna :


--
nosy: +flox

___
Python tracker 

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



[issue1602] windows console doesn't print or input Unicode

2013-03-24 Thread Florent Xicluna

Changes by Florent Xicluna :


--
nosy: +flox

___
Python tracker 

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



[issue8796] Deprecate codecs.open()

2013-03-24 Thread Florent Xicluna

Changes by Florent Xicluna :


--
nosy: +flox

___
Python tracker 

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



[issue17482] functools.update_wrapper mishandles __wrapped__

2013-03-24 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti

___
Python tracker 

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



[issue17492] Increase test coverage for random (up to 99%)

2013-03-24 Thread Ezio Melotti

Changes by Ezio Melotti :


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

___
Python tracker 

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



[issue17504] Dropping duplicated docstring explanation of what Mocks' side_effect does.

2013-03-24 Thread Ezio Melotti

Ezio Melotti added the comment:

Fixed, thanks for the report and the patch!

--
assignee:  -> ezio.melotti
nosy: +ezio.melotti
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed
versions: +Python 3.3

___
Python tracker 

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



[issue17504] Dropping duplicated docstring explanation of what Mocks' side_effect does.

2013-03-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9445505389cf by Ezio Melotti in branch '3.3':
#17504: remove duplicated sentence.  Patch by Radu Voicilas.
http://hg.python.org/cpython/rev/9445505389cf

New changeset 2fc34f3dbc9d by Ezio Melotti in branch 'default':
#17504: merge with 3.3.
http://hg.python.org/cpython/rev/2fc34f3dbc9d

--
nosy: +python-dev

___
Python tracker 

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



[issue17025] reduce multiprocessing.Queue contention

2013-03-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset bedb4cbdd311 by Charles-François Natali in branch 'default':
Issue #17025: Add dumps() and loads() to ForkingPickler.
http://hg.python.org/cpython/rev/bedb4cbdd311

--
nosy: +python-dev

___
Python tracker 

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



[issue17516] Dead code should be removed

2013-03-24 Thread Ezio Melotti

Changes by Ezio Melotti :


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

___
Python tracker 

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



[issue17519] unittest should not try to run abstract classes

2013-03-24 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti
type: behavior -> enhancement

___
Python tracker 

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



[issue14010] deeply nested filter segfaults

2013-03-24 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc added the comment:

- The tests with "range(100)" seems to duplicate those with recursion limit.
- zip_iter should would be simpler with a "goto error;"

LGTM otherwise.

--

___
Python tracker 

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



[issue17150] pprint could use line continuation for long string literals

2013-03-24 Thread Raymond Hettinger

Raymond Hettinger added the comment:

This is a nice addition.  Thank you.

--
nosy: +rhettinger

___
Python tracker 

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



[issue16475] Support object instancing and recursion in marshal

2013-03-24 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc added the comment:

Sorry, what does "instancing" mean?
And does this change bring interesting features?
And is there an impact on regular .pyc files?

--
nosy: +amaury.forgeotdarc

___
Python tracker 

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



[issue14010] deeply nested filter segfaults

2013-03-24 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
assignee:  -> rhettinger

___
Python tracker 

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



[issue16475] Support object instancing and recursion in marshal

2013-03-24 Thread Martin v . Löwis

Martin v. Löwis added the comment:

> Sorry, what does "instancing" mean?

He means "keeping track of instance identities", so that objects 
that were shared before marshal continue to be shared after loading.

> And does this change bring interesting features?

"interesting" to whom?

> And is there an impact on regular .pyc files?

Definitely. It may now contain 't' (interned) codes again, and it may contain 
'r' (reference) codes. The size of the pyc files may decrease.

--

___
Python tracker 

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



[issue14916] PyRun_InteractiveLoop fails to run interactively when using a Linux pty that's not tied to stdin/stdout

2013-03-24 Thread Kevin Barry

Kevin Barry added the comment:

emmanuel,

Regarding your points: All three can be taken care of with a combination of my 
patch and setting sys.stdin, sys.stdout, and sys.stderr to the pty. (That 
should really be done internally with another patch, since os.fdopen is 
OS-specific. Also, sys.stdin, sys.stdout, and sys.stderr should each have 
distinct underlying file descriptors, which I didn't do in working.c.) Those 
can safely be replaced since they're just the "effective" standard files, and 
sys.__stdin__ et al. refer to the actual C stdin et al. The remaining issue 
would be that the same descriptor shouldn't be used for both input and output 
in the interpreter loop, especially if the FILE* passed is only open for 
reading (since standard input technically doesn't have to be writable.)

Kevin Barry

--

___
Python tracker 

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



[issue17536] update browser list with additional browser names

2013-03-24 Thread Matthias Klose

New submission from Matthias Klose:

Add some browser names supported on Debian systems:

 - www-browser, x-www-browser are browser names handled by
   the alternatives system, which should be preferred over
   specific browser names. Inserted with lower priority
   than the browsers for specific desktop environments.

 - iceweasel, iceape are used in Debian for the Mozilla
   browser for trademark reasons.

will backport for 2.7 after the 2.7.4 release.

--
assignee: doko
components: Library (Lib)
files: webbrowser.diff
keywords: patch
messages: 185145
nosy: doko
priority: normal
severity: normal
status: open
title: update browser list with additional browser names
versions: Python 2.7, Python 3.3
Added file: http://bugs.python.org/file29565/webbrowser.diff

___
Python tracker 

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



[issue17536] update browser list with additional browser names

2013-03-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 206522d9134e by doko in branch '3.3':
- Issue #17536: Add to webbrowser's browser list: www-browser, x-www-browser,
http://hg.python.org/cpython/rev/206522d9134e

New changeset 34648809d777 by doko in branch 'default':
- Issue #17536: Add to webbrowser's browser list: www-browser, x-www-browser,
http://hg.python.org/cpython/rev/34648809d777

--
nosy: +python-dev

___
Python tracker 

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



[issue17536] update browser list with additional browser names

2013-03-24 Thread Matthias Klose

Matthias Klose added the comment:

2.7.diff is the backport for 2.7, adding additional names xdg-open, gvfs-open, 
and chromium names.

--
Added file: http://bugs.python.org/file29566/2.7.diff

___
Python tracker 

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



[issue17516] Dead code should be removed

2013-03-24 Thread R. David Murray

R. David Murray added the comment:

> Oh, it looks like you are right: useless strings are already removed 
> during compilation. But it looks a little bit surprising to me to use a 
> multiline string for a comment. I prefer classic # comments.

I was surprised by this as well.  I think the comment in _header_value_parser 
was originally a docstring and got moved around during editing.  It should 
probably get changed to a block comment.

I could have sworn that when I learned about the optimization it was in the 
context of documentation that specifically said the optimization was done so 
that triple quoted strings could be used as multi-line comments, but I cannot 
find it through google or guessing where I might have seen it in our docs, so 
perhaps I was imagining things.

--

___
Python tracker 

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



[issue17086] backport cross-build patches to the 2.7 branch

2013-03-24 Thread Matthias Klose

Matthias Klose added the comment:

this is about setting PYTHONPATH for regenerating the plat directory. This 
doesn't break anything afaics and doesn't do any harm.

--

___
Python tracker 

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



[issue17086] backport cross-build patches to the 2.7 branch

2013-03-24 Thread Matthias Klose

Matthias Klose added the comment:

cross build patch is applied, closing the issue.

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

___
Python tracker 

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



[issue17536] update browser list with additional browser names

2013-03-24 Thread R. David Murray

R. David Murray added the comment:

Technically this is a new feature and should only go into 3.4.  I'm open to 
discussion about this, but the discussion should have happened *before* the 
commit.
  
You will note in particular that support for Chrome was added in issue 13620 as 
an enhancement, and was per our rules not backported.

Quite aside from the enhancement issue, it is also customary to post the patch 
first and then wait a bit before committing, to give people a chance to comment.

--
nosy: +orsenthil, r.david.murray

___
Python tracker 

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



[issue17525] os.getcwd() fails on cifs share

2013-03-24 Thread R. David Murray

Changes by R. David Murray :


--
type: crash -> behavior

___
Python tracker 

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



[issue17536] update browser list with additional browser names

2013-03-24 Thread Matthias Klose

Matthias Klose added the comment:

> Technically this is a new feature and should only go into 3.4.  I'm open to 
> discussion about this, but the discussion should have happened *before* the 
> commit.

ok, will do so in the future. Howver it did look a bit simple ...

> You will note in particular that support for Chrome was added in issue 13620 
> as an enhancement, and was per our rules not backported.

so, we did backport libffi, expat, pybsddb for 2.7 to be able to cope with 
current / updated build environments.  From my point of view, this is the case 
here too, coping with current / updated runtime environments. Maybe we should 
re-check the rules and document these kind of updates.

--

___
Python tracker 

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



[issue17526] inspect.findsource raises undocumented error for code objects with empty filename

2013-03-24 Thread R. David Murray

R. David Murray added the comment:

It is very likely the code is the same in 3.3 and 3.4, so I'm adding those 
versions without testing :)

--
keywords: +easy
nosy: +r.david.murray
stage:  -> needs patch
versions: +Python 3.3, Python 3.4

___
Python tracker 

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



[issue17527] PATCH as valid request method in wsgiref.validator

2013-03-24 Thread R. David Murray

Changes by R. David Murray :


--
type: behavior -> enhancement

___
Python tracker 

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



[issue17536] update browser list with additional browser names

2013-03-24 Thread R. David Murray

R. David Murray added the comment:

Yeah, that's why I said I was open to discussion on it.  It is more of a 
UI/system-config issue than a code issue, so I think maybe a backport would be 
OK.  But we should check with python-dev, I think, since making UI changes to 
IDLE requires a PEP :)

--

___
Python tracker 

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



[issue17527] PATCH as valid request method in wsgiref.validator

2013-03-24 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I think this can be applied to old versions of Python as well.  It was an 
unintentional omission from the last of valid HTTP verbs.  There is nothing new 
here.

--
nosy: +rhettinger

___
Python tracker 

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



[issue16475] Support object instancing and recursion in marshal

2013-03-24 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc added the comment:

> The size of the pyc files may decrease

This is very good news! Indeed, I noticed decimal.cpython-34.pyc going from 
212k to 178k.  17% less!
This is worth an entry in whatsnew/3.4.rst IMO.

--

___
Python tracker 

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



[issue17445] Handle bytes comparisons in difflib.Differ

2013-03-24 Thread Greg Ward

Greg Ward added the comment:

> I recommend the following: replace the simple test in the attached 
> bytes_diff.py with 
> Greg's unittest-based tests and adjust the __name__ == '__main__' incantation 
> accordingly.

Latest patch, following Terry's suggestion: 
http://hg.gerg.ca/cpython/rev/6718d54cf9eb

Pro:
- does not touch unified_diff() or context_diff(), just adds a new function
- no question that this is a new feature, so no debate about what branch to 
commit on
- forces caller to know exactly what they are dealing with, strings or bytes

Con:
- not a bug fix, so 3.3 users won't get it ... but they can just copy the 
  implementation of diff_bytes() (or, as Terry suggests, it could live on PyPI)
- has explicit isinstance() checks (for a good reason: see the comments)
- also has more Pythonic "raise TypeError if s.decode raised AttributeError",
  which is friendlier to duck typing but inconsistent with the isinstance() 
checks
  used elsewhere in the patch

Overall I'm fairly happy with this. Not too thrilled with the explicit type 
checks; suggestions welcome.

Regarding Terry's suggestion of putting diff_bytes() on PyPI: meh. If the only 
project that needs this is Mercurial, that would be pointless. Mercurial 
doesn't have PyPI dependencies, and that is unlikely to change. This might be 
one of those rare cases where copying the code is easier than depending on it.

--
assignee:  -> gward

___
Python tracker 

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



[issue17425] Update OpenSSL versions in Windows builds

2013-03-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0fb7db2f9b5e by Martin v. Loewis in branch '3.2':
Issue #17425: Build with openssl 1.0.0k on Windows.
http://hg.python.org/cpython/rev/0fb7db2f9b5e

New changeset 8051e6ff97e2 by Martin v. Loewis in branch '3.3':
#17425: null merge 3.2
http://hg.python.org/cpython/rev/8051e6ff97e2

--

___
Python tracker 

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



[issue17537] sv.DictReader should fail if >1 column has the same name

2013-03-24 Thread Matthias Klose

New submission from Matthias Klose:

forwarded from Debian http://bugs.debian.org/699463

The csv.DictReader object doesn't handle multiple columns with the
same name very well - it simply over-writes the first
column-with-same-name with the contents of the second
column-with-same-name e.g.:

foo,bar,foo
1,2,3

on reading this file, ["foo"] would contain 3.

IMO, the correct behaviour is for csv.DictReader to emit an error if
the header contains more than one column with the same name.

--
components: Library (Lib)
messages: 185158
nosy: doko
priority: normal
severity: normal
status: open
title: sv.DictReader should fail if >1 column has the same name
type: behavior
versions: Python 2.7, Python 3.3, Python 3.4

___
Python tracker 

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



[issue17425] Update OpenSSL versions in Windows builds

2013-03-24 Thread Martin v . Löwis

Changes by Martin v. Löwis :


--
versions:  -Python 3.2

___
Python tracker 

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



[issue17425] Update OpenSSL versions in Windows builds

2013-03-24 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 840a90e8cefd by Martin v. Löwis in branch '3.3':
Issue #17425: Build with openssl 1.0.1d on Windows.
http://hg.python.org/cpython/rev/840a90e8cefd

New changeset a626a32bd42d by Martin v. Löwis in branch 'default':
#17425: merge 3.3
http://hg.python.org/cpython/rev/a626a32bd42d

--

___
Python tracker 

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



[issue17425] Update OpenSSL versions in Windows builds

2013-03-24 Thread Martin v . Löwis

Martin v. Löwis added the comment:

This is now fixed.

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

___
Python tracker 

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



[issue15052] Outdated comments in build_ssl.py

2013-03-24 Thread Martin v . Löwis

Martin v. Löwis added the comment:

This is now fixed, with 1.0.0k and 1.0.1d

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

___
Python tracker 

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



[issue17537] csv.DictReader should fail if >1 column has the same name

2013-03-24 Thread Ned Deily

Changes by Ned Deily :


--
nosy:  -ned.deily

___
Python tracker 

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



[issue17537] csv.DictReader should fail if >1 column has the same name

2013-03-24 Thread Ned Deily

Ned Deily added the comment:

Note that there was a long discussion a couple of months ago on python-ideas 
about the csv module including the issue of duplicate names.  There were 
differing opinions about whether this behavior should be changed and, if so, 
how. It starts here:

http://mail.python.org/pipermail/python-ideas/2013-January/018844.html

--
nosy: +ned.deily
title: sv.DictReader should fail if >1 column has the same name -> 
csv.DictReader should fail if >1 column has the same name

___
Python tracker 

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



[issue17323] Disable [X refs, Y blocks] ouput in debug builds

2013-03-24 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +loewis

___
Python tracker 

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



[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.

2013-03-24 Thread Todd Rovito

Todd Rovito added the comment:

I got the extension from Roger Serwy's IDLEX, it is one of my favorite 
extensions.  In addition to adding the extension I updated the documentation 
both idle.rst and help.txt.  Finally I tested the patch on Mac OS X and it 
works great.  This patch is for 3.4 but it does work with 2.7 but the 
documentation for 2.7 is not synced.  Thanks.

--
keywords: +patch
Added file: http://bugs.python.org/file29567/17535IDLELineNumbers3dot4.patch

___
Python tracker 

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



[issue17536] update browser list with additional browser names

2013-03-24 Thread Senthil Kumaran

Senthil Kumaran added the comment:

Making these changes in 2.7

+# Google Chrome/Chromium browsers
+for browser in ("google-chrome", "chrome", "chromium", "chromium-browser"):
+if _iscommand(browser):
+register(browser, None, Chrome(browser))
+

is a mistake IMO. These are new features.

We can argue that even the addition of www-browser should be considered a 
feature, depending upon when the www-browser update alternative was introduced 
by Debian/Ubuntu. I would rather go for a discussion too, because this is 
clearly a grey area. My thoughts are same as David's here.

--

___
Python tracker 

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



[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.

2013-03-24 Thread Todd Rovito

Todd Rovito added the comment:

For this patch to work correctly the option menu must be present so issue 17532 
http://bugs.python.org/issue17532 has to be resolved.

--

___
Python tracker 

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



[issue11406] There is no os.listdir() equivalent returning generator instead of list

2013-03-24 Thread Gregory P. Smith

Gregory P. Smith added the comment:

Here's is an os.scandir(path='.') implementation that iterates reading the 
directory on the fly instead of pre-building a list.

os.listdir's implementation should ultimately be replaced by this as:

def listdir(path=None):
if path is None:
return list(os.scandir())
return list(os.scandir(path))

Though I have not yet done that in this patch so that I could compare behavior 
of old vs new.

Why the scandir name?  Read the libc scandir man page.  It fits.

I have tested this on POSIX (Linux).  I don't have any ability to build Windows 
code so I expect that still has bugs and possibly compilation issues.  Please 
leave comments on the 'review' link.

--
keywords: +patch
stage:  -> patch review
type: performance -> enhancement
Added file: http://bugs.python.org/file29568/issue11406-gps01.diff

___
Python tracker 

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



[issue11406] There is no os.listdir() equivalent returning generator instead of list

2013-03-24 Thread Martin v . Löwis

Martin v. Löwis added the comment:

Since this is going to be a new API, I would like to return the file type per 
directory entry where supported. I suggest to start with the Linux set of file 
types (DT_BLK, ..., DT_UNKNOWN), perhaps under different names, giving 
'unknown' on systems which don't support this.

People traversing a directory tree can then skip the stat call if it's neither 
'directory' nor 'unknown'.

--

___
Python tracker 

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



[issue11406] There is no os.listdir() equivalent returning generator instead of list

2013-03-24 Thread Gregory P. Smith

Gregory P. Smith added the comment:

you'll see my code already has TODOs in there for that.  windows API 
documentation suggests that windows returns even more (stat-like) info when 
traversing a directory.  returning a namedtuple with the relevant info from the 
platform at hand would be good.

I'd prefer to iterate on the code and get this working as is first, then update 
it to support returning the full details, namedtuple or otherwise.  perhaps via 
an os.scandir vs os.scandirfull or something.  I'd like to keep the ability to 
return just the names: no need to spend time building up the tuples that'll be 
discarded by the os.listdir compatibility code.

--

___
Python tracker 

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



[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.

2013-03-24 Thread Roger Serwy

Roger Serwy added the comment:

Todd, the LineNumbers.py extension from the IdleX project contains 
work-arounds for interacting cleanly with the Code Context extension. It 
also has a hack for dealing with the shortcomings of the 
Percolator/Delegator ordering.

There are other shortcomings in the extension that I could not address 
from IDLE's extension loading architecture. Notably, IDLE does not have 
a method to broadcast that a font was changed, so the extension polls 
every second to see what the font is. The Code Context extension also 
does this. This is clearly an inefficient way to handle identifying a 
configuration change.

I released IdleX with the University of Illinois. Presently, the code is 
under the NCSA license agreement and assigned to the Board of Trustees. 
If the PSF would allow inclusion as-is, then I'm all for it. Otherwise I 
will need to ask UIUC about how to re-license the code.

--

___
Python tracker 

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



[issue17537] csv.DictReader should fail if >1 column has the same name

2013-03-24 Thread R. David Murray

R. David Murray added the comment:

I haven't read the thread that Ned points to, but I do note that replacing the 
value is exactly how Python dict literals work.

Also, even if we decide that we want an error, I don't think it is a change 
that could be backported, since it could easily make currently working code 
stop working.

(This is may be a case where "status quo wins a stalemate".)

--
nosy: +r.david.murray

___
Python tracker 

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



[issue16145] Abort in _csv module

2013-03-24 Thread Roger Binns

Roger Binns added the comment:

So is 3.3.1 with the fix ever going to be released?  Georg did predict 
mid-November and we are 4 months after that.

--

___
Python tracker 

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



[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.

2013-03-24 Thread Todd Rovito

Todd Rovito added the comment:

The NCSA license is very permissive I would be surprised if the PSF didn't 
accept it since both are BSD based.  Needless to say I am not a lawyer and I am 
not sure who to speak with about this issue.  

I was able to find some precedence with the PEP 3146 which proposed the merging 
of Unladen Swallow with CPython.  Unladen Swallow used LLVM which also used the 
NCSA license.  But the merge never happened so I don't know what to think.  

Does this mean all the extensions from IDLEX are under NCSA license even 
Terminal.py?

I am flexible please let me know how you want to proceed

--

___
Python tracker 

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



[issue694339] IDLE: Dedenting with Shift+Tab

2013-03-24 Thread Todd Rovito

Changes by Todd Rovito :


--
nosy: +Todd.Rovito

___
Python tracker 

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



[issue11406] There is no os.listdir() equivalent returning generator instead of list

2013-03-24 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I don't this would be much of a win and we're better off not adding yet another 
function to the already overloaded os module.

--
nosy: +rhettinger

___
Python tracker 

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



[issue17536] update browser list with additional browser names

2013-03-24 Thread Éric Araujo

Éric Araujo added the comment:

I would consider the list of browsers updatable in stable branches, like MIME 
types and encoding aliases.  The alternate names for Mozilla browsers are 
really just strings in a list; xdg-open/x-www-browser/gvfs-open are a little 
more (need to use the right class i.e. BackgroundBrowser).  I think the goal of 
the backport rules is to 1) not compromise stability by adding new code 2) not 
break code that was valid in the previous bugfix version.  Adding encoding 
aliases or browsers seems much smaller to me than for example the cStringIO 
unicode fix that added unicode support to shlex as a side effect.

--
nosy: +eric.araujo

___
Python tracker 

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



[issue17538] Document XML Vulnerabilties

2013-03-24 Thread Donald Stufft

New submission from Donald Stufft:

Here's a documentation patch (Made against the 2.7 branch) that adds warning to 
the various xml modules to warn about the insecurity and points towards 
defusedxml/defusedexpat.

--
components: Library (Lib), XML
files: xmldocs.diff
keywords: patch
messages: 185176
nosy: christian.heimes, dstufft
priority: normal
severity: normal
status: open
title: Document XML Vulnerabilties
versions: Python 2.7
Added file: http://bugs.python.org/file29569/xmldocs.diff

___
Python tracker 

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



[issue17527] PATCH as valid request method in wsgiref.validator

2013-03-24 Thread Éric Araujo

Éric Araujo added the comment:

PATCH is not formally accepted yet.  OTOH many server and client libs support 
it and it does serve a real use case.

--
nosy: +eric.araujo

___
Python tracker 

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



[issue12207] Document ast.PyCF_ONLY_AST

2013-03-24 Thread Éric Araujo

Éric Araujo added the comment:

No problem.

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

___
Python tracker 

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



[issue12920] Document that inspect.getsource only works for objects loaded from files, not interactive session

2013-03-24 Thread Éric Araujo

Éric Araujo added the comment:

> It seems to work perfectly on command line though.

If the code is saved in a file, yes, but not in an interactive interpreter.  
This is not actually related to IDLE, but to the fact that inspect.getsource 
merely finds the __file__ attribute of the module object for its argument.  If 
a module object has no file, the error message indicates that it’s a built-in 
module (like sys), but this fails to take into account the special __main__ 
module in an interactive interpreter.

It might be worth it to improve the error message, and in any case the 
documentation can be improved.

--
stage:  -> needs patch
title: inspect.getsource fails to get source of local classes -> Document that 
inspect.getsource only works for objects loaded from files, not interactive 
session
versions: +Python 3.4

___
Python tracker 

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



[issue11406] There is no os.listdir() equivalent returning generator instead of list

2013-03-24 Thread Gregory P. Smith

Gregory P. Smith added the comment:

Your objection is noted but it is wrong.

A Python program today cannot process arbitrarily large directories within a 
fixed amount of ram today due to os.listdir. This makes it unsuitable for file 
system cleanup tasks that we have run into on production servers.  This fixes 
that without requiring an extension module or fragile ctypes code to work 
around the deficiency.

It _would've been nice_ for os.listdir to be updated to be an iterator with 3.0 
but it wasn't... so we're left supporting its legacy interface rather than just 
replacing it with this.

If think this functionality belongs in a module other than os, please suggest 
where.

long term: os.walk and os.fwalk are also unusable on arbitrary filesystems with 
large directories for the same reason because they use os.listdir.  providing a 
non-directory-preloading version of those is outside the scope of this issue.

--

___
Python tracker 

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



[issue1207613] Bottom Scroll Bar

2013-03-24 Thread Todd Rovito

Changes by Todd Rovito :


--
nosy: +Todd.Rovito

___
Python tracker 

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



[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.

2013-03-24 Thread Roger Serwy

Roger Serwy added the comment:

The file uploaded in 2010 falls under my PSF contributor agreement which 
has the Apache V2.0 license. The updates to the code in the latest 
version of IdleX fall under the NCSA license.

--

___
Python tracker 

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



[issue12226] use HTTPS by default for uploading packages to pypi

2013-03-24 Thread Éric Araujo

Éric Araujo added the comment:

I’m not sure what “this” refers to (in “This is true” and “this should 
automatically work correctly”).

My only concern is to avoid giving a false sense of security, so my initial 
stance was all-or-nothing.  However with the recent trend of incremental 
improvements to the PyPI ecosystem, I think it’s important to do what we can 
and keep the momentum, so I’m okay with the commit—I just wanted to make sure 
that committing half a fix was intentional.  You probably know more about SSL 
than me and you’re the RM, so let’s ship this. :)

--

___
Python tracker 

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



[issue17482] functools.update_wrapper mishandles __wrapped__

2013-03-24 Thread Jesús Cea Avión

Changes by Jesús Cea Avión :


--
nosy: +jcea

___
Python tracker 

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



[issue13266] Add inspect.unwrap(f) to easily unravel "__wrapped__" chains

2013-03-24 Thread Jesús Cea Avión

Changes by Jesús Cea Avión :


--
nosy: +jcea

___
Python tracker 

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



[issue12226] use HTTPS by default for uploading packages to pypi

2013-03-24 Thread Benjamin Peterson

Benjamin Peterson added the comment:

By "this", I meant the change I made. It was made in consultation with Richard 
Jones (added to nosy) at the PyCon sprints.

--
nosy: +richard

___
Python tracker 

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



[issue12226] use HTTPS by default for uploading packages to pypi

2013-03-24 Thread Donald Stufft

Donald Stufft added the comment:

Using HTTPS without a Certificate prevents passive attacks but not active 
attacks. It puts things in a _better_ situation but not the ideal situation.

--
nosy: +dstufft

___
Python tracker 

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



[issue17514] Add the license to argparse.py

2013-03-24 Thread Georg Brandl

Georg Brandl added the comment:

> Speaking personally, I wouldn't want license boilerplates to start
> cluttering every file in the Python source tree. They are an annoyance
> when opening and reading source files.

On the other hand, a simple file header would make sense, and make standard 
library files more consistent, so that you can see in one glance that a module 
is from the stdlib.

Not that I'm motivated to do that :)

--
nosy: +georg.brandl

___
Python tracker 

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



[issue17514] Add the license to argparse.py

2013-03-24 Thread Georg Brandl

Georg Brandl added the comment:

BTW, the correct blurb would probably be

# Copyright 200X Steven Bethard. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement.

--

___
Python tracker 

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



[issue17539] Use the builtins module in the unittest.mock.patch example

2013-03-24 Thread Berker Peksag

New submission from Berker Peksag:

(initially reported at 
http://mail.python.org/pipermail/docs/2013-February/013331.html )

--
assignee: docs@python
components: Documentation
files: unittest-mock-example.diff
keywords: patch
messages: 185187
nosy: berker.peksag, docs@python
priority: normal
severity: normal
status: open
title: Use the builtins module in the unittest.mock.patch example
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file29570/unittest-mock-example.diff

___
Python tracker 

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



[issue17540] logging formatter support 'style' key in dictionary config

2013-03-24 Thread monson

New submission from monson:

Since from version 3.2 ``style`` parameter was added in class 
logging.Formatter, it should be availably configured in configuration 
dictionary or file.

--
components: Library (Lib)
files: add-logging-config-key-style.patch
keywords: patch
messages: 185188
nosy: monson
priority: normal
severity: normal
status: open
title: logging formatter support 'style' key in dictionary config
type: enhancement
versions: Python 3.3
Added file: http://bugs.python.org/file29571/add-logging-config-key-style.patch

___
Python tracker 

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