[issue20246] buffer overflow in socket.recvfrom_into

2014-02-24 Thread Nick Coghlan
Nick Coghlan added the comment: Confirming the fix is in the 3.3.4 tag: http://hg.python.org/cpython/file/7ff62415e426/Lib/test/test_socket.py#l4539 And the 3.4rc1 tag: http://hg.python.org/cpython/file/5e088cea8660/Lib/test/test_socket.py#l4708 -- ___

[issue20246] buffer overflow in socket.recvfrom_into

2014-02-24 Thread Nick Coghlan
Nick Coghlan added the comment: Branch status: Vulnerable (last release prior to patch): 2.7.6 3.1.5 3.2.5 Fixed (latest release post patch): 3.3.4+ 3.4 So my reading is that 2.7.7 needs to be brought forward, and source only releases of 3.1.6 and 3.2.6 should be published

[issue20246] buffer overflow in socket.recvfrom_into

2014-02-24 Thread Christian Heimes
Christian Heimes added the comment: I just came across https://www.trustedsec.com/february-2014/python-remote-code-execution-socket-recvfrom_into/ . Now I wonder why this bug was neither reported to PSRT nor get a CVE number. It's a buffer overflow... I'm going to contact MITRE right away. -

[issue20765] Pathlib docs fail to mention with_name, with_suffix

2014-02-24 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue20630] Add sorting helpers for collections containing None values

2014-02-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: > At this stage of the Py3 life cycle, though, > it seems simpler overall to remain consistent > with earlier Py3 releases. Given that so few users have converted, it is simpler to become consistent with Py2.7 and to not introduce compensating features. ---

[issue20764] os.walk recurses down even with dirnames deleted

2014-02-24 Thread Ned Deily
Ned Deily added the comment: I think you are misunderstanding how del and mutable sequences work. In your code snippet, the del unbinds the name "root_dir" but it does not alter the dirnames list object returned by os.path. Try replacing "del root_dir" with "del root_dir[:]" or "root_dir.cle

[issue20457] Use partition and enumerate make getopt easier

2014-02-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: I recommend we leave the code alone. No need for code churn unless there is a real improvement in code quality. -- ___ Python tracker ___ _

[issue20727] Improved roundrobin itertools recipe

2014-02-24 Thread David Lindquist
David Lindquist added the comment: > other benchmarks show it to be more than twice as slow Can you share the method you used to get those results? Here's what I did: $ python -m timeit --number=100 --setup="from rr_mine import roundrobin" "its = ['ABC', 'D', 'EF']; list(roundrobin(*its))"

[issue20765] Pathlib docs fail to mention with_name, with_suffix

2014-02-24 Thread Antony Lee
New submission from Antony Lee: I actually thought that Path.with_{name,suffix} had been removed before 3.4 when I didn't find them in the official docs... -- assignee: docs@python components: Documentation messages: 212160 nosy: Antony.Lee, docs@python priority: normal severity: normal

[issue20764] os.walk recurses down even with dirnames deleted

2014-02-24 Thread Sworddragon
New submission from Sworddragon: The following was tested on Linux. In the attachments is the example code and here is my output: sworddragon@ubuntu:/tmp$ ./test.py 1 I'm deleting the list of directories on every recursion and skipping if I'm directly in /proc (which is theoretically already

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

2014-02-24 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

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

2014-02-24 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

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

2014-02-24 Thread Yukihiro Nakadaira
New submission from Yukihiro Nakadaira: Steps to reproduce: $ cat a.py import sys class MyFinder: def __init__(self, path): if path != "__myfinder__": raise ImportError() def find_module(self, fullname, path=None): return None sys.path_hooks.append(MyFinder

[issue20457] Use partition and enumerate make getopt easier

2014-02-24 Thread dongwm
dongwm added the comment: Oh, really no big improvement in function, but I have been using the functionality provided by python. -- ___ Python tracker ___ __

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

2014-02-24 Thread Sean Rodman
Sean Rodman added the comment: To display my ignorance, I have run the pydoc command listed in the original message but I can't actually see where it lists the url. Or even where it has a link. -- ___ Python tracker

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

2014-02-24 Thread Sean Rodman
Sean Rodman added the comment: I could try to create the patch for pydoc if you would like for me to. -- nosy: +sean.rodman ___ Python tracker ___ ___

[issue14367] try/except block in ismethoddescriptor() in inspect.py, so that pydoc works with pygame in Python 3.2

2014-02-24 Thread Yury Selivanov
Yury Selivanov added the comment: Is this still an issue? -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue17373] Add inspect.Signature.from_callable()

2014-02-24 Thread Yury Selivanov
Changes by Yury Selivanov : -- assignee: -> yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue19903] Idle: Use inspect.signature for calltips

2014-02-24 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue20727] Improved roundrobin itertools recipe

2014-02-24 Thread Gareth Rees
Gareth Rees added the comment: > benchmarks show it to be more than twice as fast I'm sure they do, but other benchmarks show it to be more than twice as slow. Try something like: iterables = [range(100)] + [()] * 100 -- nosy: +Gareth.Rees ___

[issue20146] UserDict module docs link is obsolete

2014-02-24 Thread Ned Deily
Ned Deily added the comment: This problem is a duplicate of Issue16484. The URL is generated by pydoc's getdocloc() when you use pydoc explicitly or through the interactive interpreter's help command. But the doc web server is not set up to handle links for modules with mixed-case names, like

[issue17053] pydoc should use inspect.signature instead of inspect.getfullargspec

2014-02-24 Thread Yury Selivanov
Yury Selivanov added the comment: Fixed in 19674. Closing this one. -- nosy: +yselivanov resolution: -> out of date status: open -> closed superseder: -> Add introspection information for builtins ___ Python tracker

[issue19614] support.temp_cwd should use support.rmtree

2014-02-24 Thread Sean Rodman
Sean Rodman added the comment: I don't see where temp_cwd uses shutil.rmtree, but I do see where temp_dir uses shutil.rmtree. Here is a patch to change that to support.rmtree. If I am way off base on this patch please let me know and I will change it to fix whatever needs to be fixed. I want t

[issue19614] support.temp_cwd should use support.rmtree

2014-02-24 Thread Sean Rodman
Sean Rodman added the comment: Hey r.david.murray, so should this change be made in the test? -- nosy: +sean.rodman ___ Python tracker ___ ___

[issue20754] distutils should use SafeConfigParser

2014-02-24 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +eric.araujo, tarek versions: +Python 3.4 ___ Python tracker ___ ___ Python-

[issue20630] Add sorting helpers for collections containing None values

2014-02-24 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue20737] 3.3 _thread lock.acquire() timeout and threading.Event().wait() do not wake for certain values on Windows

2014-02-24 Thread Alex Grönholm
Changes by Alex Grönholm : -- nosy: +alex.gronholm ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue20146] UserDict module docs link is obsolete

2014-02-24 Thread Sean Rodman
Sean Rodman added the comment: Hey drunax, I would like to create a patch for this and upload, but I don't see the link you are talking about. Is it in the documentation or is it in the file UserDict.py? -- nosy: +sean.rodman ___ Python tracker

[issue20760] test_compileall test getting failed on 3.4 RC

2014-02-24 Thread Ned Deily
Changes by Ned Deily : -- nosy: +r.david.murray type: crash -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20630] Add sorting helpers for collections containing None values

2014-02-24 Thread Nick Coghlan
Nick Coghlan added the comment: I suspect if we'd thought of it back in the 3.0 or 3.1 time frame then giving the Py3 None a consistent "sorts low" behaviour would have been more likely. At this stage of the Py3 life cycle, though, it seems simpler overall to remain consistent with earlier Py3 r

[issue20726] inspect: Make Signature instances picklable

2014-02-24 Thread Yury Selivanov
Changes by Yury Selivanov : Added file: http://bugs.python.org/file34217/sig_picklable_03.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue20630] Add sorting helpers for collections containing None values

2014-02-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: > If it is in fact specific to sorting, then this specific symptom > and "the problem" are in fact the same thing ;-) The first rule of tautology club is the first rule of tautology club ;-) FWIW, we had to add a work-around for this in pprint._safe_key clas

[issue20630] Add sorting helpers for collections containing None values

2014-02-24 Thread Nick Coghlan
Nick Coghlan added the comment: And in case that last comment worried anyone - I won't commit *anything* related to this to the standard library until after creating a PyPI "sortlib" module that includes both this and an "order_by_key" class decorator, and we have consensus that the proposed chan

[issue20630] Add sorting helpers for collections containing None values

2014-02-24 Thread Nick Coghlan
Nick Coghlan added the comment: It occurred to me the current names are a bit misleading when using "reverse=True", so low/high is likely a better naming scheme than first/last. I think I'll propose a patch for six before doing anything to the standard library - this is already an issue for some

[issue20568] Pass --default-install to ensurepip in the Windows installers

2014-02-24 Thread Nick Coghlan
Nick Coghlan added the comment: While it occurs to me that changing ensurepip's default behaviour on Windows is likely a better long term (3.5+) solution, I think passing the option in the installer is still the better near term (3.4 rc3/final) solution. -- _

[issue20757] 3.4rc2 Traceback on Windows pip uninstall

2014-02-24 Thread Ned Deily
Ned Deily added the comment: LGTM -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue20727] Improved roundrobin itertools recipe

2014-02-24 Thread David Lindquist
David Lindquist added the comment: Sure. That would be nice. :) Thanks Raymond and Larry -- ___ Python tracker ___ ___ Python-bugs-li

[issue20727] Improved roundrobin itertools recipe

2014-02-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: Okay, after the RC then. David, would you like to be credited in the recipe? -- resolution: -> remind ___ Python tracker ___ __

[issue20283] Wrong keyword parameter name in regex pattern methods

2014-02-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch with the show_in_signature hack for 3.4. -- priority: normal -> release blocker Added file: http://bugs.python.org/file34216/sre_deprecate_pattern_keyword-3.4.patch ___ Python tracker

[issue16074] Bad error message in os.rename, os.link, and os.symlink

2014-02-24 Thread Larry Hastings
Larry Hastings added the comment: It's fine that we're not fixing this in 3.3, but since this did get fixed in 3.4, I propose dropping 3.3 from the version list and changing the resolution to "fixed". *waves magic wand* -- resolution: wont fix -> fixed stage: needs patch -> committed/

[issue20628] Improve doc for csv.DictReader 'fieldnames' parameter

2014-02-24 Thread R. David Murray
R. David Murray added the comment: Applied. Thanks, Sean. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue20628] Improve doc for csv.DictReader 'fieldnames' parameter

2014-02-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset a5d4660c6cb6 by R David Murray in branch '3.3': #20628: make it clear that DictReader/Writer *fieldnames* is a Sequence. http://hg.python.org/cpython/rev/a5d4660c6cb6 New changeset 9f036047187b by R David Murray in branch '3.3': #20628: wrap lines t

[issue20749] shutil.unpack_archive(): security concerns not documented

2014-02-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: -> needs patch type: -> behavior versions: +Python 2.7, Python 3.3, Python 3.4 ___ Python tracker ___

[issue20762] SSLSocket.read() not documented

2014-02-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue16074] Bad error message in os.rename, os.link, and os.symlink

2014-02-24 Thread Georg Brandl
Georg Brandl added the comment: No change for 3.3. -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ ___ Pytho

[issue20628] Improve doc for csv.DictReader 'fieldnames' parameter

2014-02-24 Thread Sean Rodman
Sean Rodman added the comment: Is there anything else that should be added to this patch? I don't mean to bug you guys just want to make sure that everything is right with it so that if and or when it is applied it will apply without any problems. Also, if there is anything else I should chang

[issue20693] Sidebar scrolls down 2x as fast as page content

2014-02-24 Thread Ezio Melotti
Ezio Melotti added the comment: I can reproduce on tip with Sphinx v1.1.3; seems to work fine on 3.3 and tip with Sphinx v1.2. -- ___ Python tracker ___

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

2014-02-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Can anyone please test the patch on Windows? -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue20740] Remove invalid number from squares in introduction section

2014-02-24 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.3, Python 3.4 ___ Python tracker ___

[issue20740] Remove invalid number from squares in introduction section

2014-02-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 151a498c55e3 by Ezio Melotti in branch '3.3': #20740: desquarify 2. http://hg.python.org/cpython/rev/151a498c55e3 New changeset 1bc585ba5df2 by Ezio Melotti in branch 'default': #20740: merge with 3.3. http://hg.python.org/cpython/rev/1bc585ba5df2

[issue20740] Remove invalid number from squares in introduction section

2014-02-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Python has a super *extra* square 2! And let's not forget about -1. -- nosy: +pitrou ___ Python tracker ___ _

[issue20740] Remove invalid number from squares in introduction section

2014-02-24 Thread Martin v . Löwis
Martin v. Löwis added the comment: We should then declare that π is a square, which would allow an easy solution to squaring a circle in Python ☺ -- nosy: +loewis ___ Python tracker ___

[issue20740] Remove invalid number from squares in introduction section

2014-02-24 Thread Mark Dickinson
Mark Dickinson added the comment: That's not nitpicky! It's a potentially confusing error that should definitely be rectified. (Alternatively, we could redefine squares in Python. All other languages just have the regular squares; Python has a super *extra* square 2! That clearly makes sq

[issue20745] test_statistics fails in refleak mode

2014-02-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: (ah, actually "-F" seems to work fine with test_statistics :-)) -- ___ Python tracker ___ ___ Python

[issue20762] SSLSocket.read() not documented

2014-02-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hmm, yeah, this is actually intended. The read() and write() methods on SSLSocket are not intended to be a public API: you should call send() or recv() instead. Ideally we would deprecate the read() and write() methods and rename the internal helpers to _read

[issue20745] test_statistics fails in refleak mode

2014-02-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: The best way to learn about the different testing modes is to run "./python -m test -h". Basically "-R" executes the given tests several times in a row. This failure shows that test_statistics doesn't like being executed several times, which is a bug. (the sa

[issue20630] Add sorting helpers for collections containing None values

2014-02-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Both Nick's proposals look ok to me. -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list ma

[issue20762] SSLSocket.read() not documented

2014-02-24 Thread R. David Murray
R. David Murray added the comment: Oops. My mistake. It's been too long since I did any socket programming :( -- resolution: invalid -> stage: committed/rejected -> needs patch status: closed -> open ___ Python tracker

[issue20630] Add sorting helpers for collections containing None values

2014-02-24 Thread Tim Peters
Tim Peters added the comment: I've haven't yet seen anyone complain about the inability to compare None except in the specific context of sorting. If it is in fact specific to sorting, then this specific symptom and "the problem" are in fact the same thing ;-) -- nosy: +tim.peters _

[issue20727] Improved roundrobin itertools recipe

2014-02-24 Thread Larry Hastings
Larry Hastings added the comment: The patch attached to this issue has changes to Lib/test/test_itertools.py. -- ___ Python tracker ___ __

[issue18652] Add itertools.first_true (return first true item in iterable)

2014-02-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > David said, "now I have a place in the non-test email code where using this > would lead to easier-to-read code". IMO, this is telling. The bar is > higher than "I would have used this one time". That doesn't make it worth > having to learn and remember.

[issue20727] Improved roundrobin itertools recipe

2014-02-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: It's a doc change only. Do you want it in the 3.4.0RC or in 3.4.1? -- ___ Python tracker ___ ___

[issue20762] SSLSocket.read() not documented

2014-02-24 Thread R. David Murray
R. David Murray added the comment: That's because SSLSocket is a wrapper around a regular socket, and the read method is documented in the Socket documentation. You will notice that *only* SSL specific methods are documented in the SSLSocket documentation. -- nosy: +r.david.murray res

[issue20727] Improved roundrobin itertools recipe

2014-02-24 Thread Larry Hastings
Larry Hastings added the comment: Doc changes are fine basically anytime, but I don't want low-priority changes in Lib for 3.4.0. But this would be fine for 3.4.1 if you like, or you could just wait for 3.5. -- ___ Python tracker

[issue20762] SSLSocket.read() not documented

2014-02-24 Thread Enrico Bianchi
New submission from Enrico Bianchi: although exists, read() method isn't reported in the SSLSocket documentation. Please, fix it -- assignee: docs@python components: Documentation messages: 212115 nosy: docs@python, ebianchi priority: normal severity: normal status: open title: SSLSocke

[issue20757] 3.4rc2 Traceback on Windows pip uninstall

2014-02-24 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Nick, this resolves the installation issues for me at least. +1 -- ___ Python tracker ___ ___

[issue20747] Charset.header_encode in email.charset doesn't take a maxlinelen argument and has inconsistent behavior with different encodings

2014-02-24 Thread R. David Murray
R. David Murray added the comment: That wasn't clear. By "something that works" I mean exactly what you are talking about: someone writing code using these functions would naturally try to use None with base64mime, and if we make it work, that would work fine in 2.7.x, but mysteriously break

[issue18652] Add itertools.first_true (return first true item in iterable)

2014-02-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: As soon as the trunk opens again, I'll add Nick's version to the itertools recipes section. I'm disinclined to add it directly to the itertools module as a native C function for several reasons: * The problem solved isn't that common (very little of co

[issue20747] Charset.header_encode in email.charset doesn't take a maxlinelen argument and has inconsistent behavior with different encodings

2014-02-24 Thread R. David Murray
R. David Murray added the comment: Well, there's the usual API change risk: something that works on 2.7.x doesn't work on 2.7.x-1. So since we can fix the bug without making the API change, I think we should. -- ___ Python tracker

[issue20761] os.path.join doesn't strip LF or CR

2014-02-24 Thread Tiberiu Dragulinescu
Tiberiu Dragulinescu added the comment: The join function should know that it will compose a path with the provided string, so I think it should complain or ignore ilegal path/filename components, in regard to the host OS. But if it is not a valid point of view python-wise, one can check his own

[issue20761] os.path.join doesn't strip LF or CR

2014-02-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: This doesn't sound like a bug. File paths are not URIs: almost all characters are valid in a POSIX filename. Also, sanity checking of user input is up to the caller. I recommend closing this issue. -- nosy: +pitrou resolution: -> invalid ___

[issue20745] test_statistics fails in refleak mode

2014-02-24 Thread Steven D'Aprano
Steven D'Aprano added the comment: I don't know how to interpret this. Where can I find out more about refleak mode? Thanks. -- ___ Python tracker ___ __

[issue20747] Charset.header_encode in email.charset doesn't take a maxlinelen argument and has inconsistent behavior with different encodings

2014-02-24 Thread Rik
Rik added the comment: Ok, do you think there's any risk in making `base64mime.header_encode` handle `maxlinelen=None`? I think it would be more consistent if `base64mime.header_encode` and `quoprimime.header_encode` interpret their arguments similarly. -- ___

[issue20761] os.path.join doesn't strip LF or CR

2014-02-24 Thread Steven D'Aprano
Steven D'Aprano added the comment: > LF or CR cannot be part of a URI But they can be part of a filename, at least on POSIX systems. Are you proposing that only the Windows version of os.path.join strip LF/CR? I don't think that it up to the join function to validate the path, and certainly

[issue16499] CLI option for isolated mode

2014-02-24 Thread R. David Murray
R. David Murray added the comment: For the record (since it took me a while to figure it out), the changeset that this was committed in is dd0d751cc7f1. -- nosy: +r.david.murray ___ Python tracker

[issue14976] queue.Queue() is not reentrant, so signals and GC can cause deadlocks

2014-02-24 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +rhettinger, tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20457] Use partition and enumerate make getopt easier

2014-02-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I don't find the new patch to be any clearer than the original. -- nosy: +rhettinger ___ Python tracker ___ ___

[issue20630] Add sorting helpers for collections containing None values

2014-02-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Currently, it's a bit annoying to sort collections > containing "None" values in Python 3 I think we should seriously consider whether to restore None's ability to compare with other entries. Removing this capability has been a major PITA and is an obs

[issue20727] Improved roundrobin itertools recipe

2014-02-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: I like the brevity and clarity of your version. If you would like, I can also add your name as the credit for the recipe. It is up to Larry whether this goes in before or after the 3.4 release. -- assignee: docs@python -> rhettinger nosy: +larry pr

[issue20747] Charset.header_encode in email.charset doesn't take a maxlinelen argument and has inconsistent behavior with different encodings

2014-02-24 Thread R. David Murray
R. David Murray added the comment: Well, we have to make base64mime.header_encode also handle a None value...so perhaps instead we should just use 1, which is what the Header wrapping code in python3 does. Python3's Header doesn't have this bug. -- ___

[issue20733] Typo in itertools docs - "itertool-functions"

2014-02-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: Elazar, this is a nit and isn't worth changing the section head (that would break any external links to the section). Also, I like the way it reads now (itertools functions is technically correct but sounds odd to my ear). -- nosy: +rhettinger re

[issue20761] os.path.join doesn't strip LF or CR

2014-02-24 Thread Tiberiu Dragulinescu
New submission from Tiberiu Dragulinescu: >>>d="asdasd"+chr(10) >>>print os.path.normpath(os.path.join('a/b',d,'d')) a\b\asdasd \d LF or CR cannot be part of a URI (rfc1738) -- components: Windows messages: 212099 nosy: ExtraVeral priority: normal severity: normal status: open title: os

[issue20747] Charset.header_encode in email.charset doesn't take a maxlinelen argument and has inconsistent behavior with different encodings

2014-02-24 Thread Rik
Rik added the comment: Ok, so you suggest to use `maxlinelen=None` for the `base64mime.header_encode` which will act the same as giving `maxlinelen=None` to `email.quoprimime`, so that we don't need to change the API? And this change would then also be reflected in the Python 3.5 legacy interf

[issue19619] Blacklist base64, hex, ... codecs from bytes.decode() and str.encode()

2014-02-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think that issue20404 should be backported too. It is common to wrap socket stream with io.TextIOWrapper, and socket.makefile() returns text stream by default. -- ___ Python tracker

[issue20535] run_tests.py: Work around issues 20355 and 20361

2014-02-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM too. Thank you for your patch Arfrever. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue20361] -W command line options and PYTHONWARNINGS environmental variable should not override -b / -bb command line options

2014-02-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Final patch should remove a workaround in Tools/scripts/run_tests.py. -- nosy: +serhiy.storchaka ___ Python tracker ___ __

[issue20355] -W command line options should have higher priority than PYTHONWARNINGS environmental variable

2014-02-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Final patch should remove a workaround in Tools/scripts/run_tests.py. -- nosy: +serhiy.storchaka ___ Python tracker ___ __

[issue20747] Charset.header_encode in email.charset doesn't take a maxlinelen argument and has inconsistent behavior with different encodings

2014-02-24 Thread R. David Murray
R. David Murray added the comment: I've no clue, to tell you the truth. Those APIs evolved long before I took over email package maintenance. And since we are talking about 2.7, we can't change the existing API. In Python3, Charset.header_encode will as of 3.5 become a legacy interface, so

[issue20760] test_compileall test getting failed on 3.4 RC

2014-02-24 Thread Vipul Borikar
Vipul Borikar added the comment: Linux Distribution: Ubuntu 13.04 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue20760] test_compileall test getting failed on 3.4 RC

2014-02-24 Thread Vipul Borikar
New submission from Vipul Borikar: Hi, I getting python trace when running test_compileall test case OS: $ uname -a Linux vipul-desktop 3.8.13.8 #1 SMP Thu Oct 3 17:54:03 IST 2013 x86_64 x86_64 x86_64 GNU/Linux Python Version: $ ./bin/python3 -V Python 3.4.0rc2 Output and Error: $

[issue19619] Blacklist base64, hex, ... codecs from bytes.decode() and str.encode()

2014-02-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 95386bbf9471 by Serhiy Storchaka in branch '3.3': Issue #19619: Blacklist non-text codecs in method API http://hg.python.org/cpython/rev/95386bbf9471 -- ___ Python tracker

[issue20757] 3.4rc2 Traceback on Windows pip uninstall

2014-02-24 Thread Nick Coghlan
Nick Coghlan added the comment: Attached patch uses a similar solution to the one I used in issue 19744 to better handle "make install" and "make altinstall" when SSL/TLS are missing: it converts the version mismatch to a printed warning that still reports "success" to the caller. --

[issue20568] Pass --default-install to ensurepip in the Windows installers

2014-02-24 Thread Nick Coghlan
Nick Coghlan added the comment: And if that means we need an rc3, then we should *absolutely* do one. It's that important. -- ___ Python tracker ___

[issue20568] Pass --default-install to ensurepip in the Windows installers

2014-02-24 Thread Nick Coghlan
Nick Coghlan added the comment: This was still missing from rc2 - this is a *serious* usability issue on Windows and needs to be fixed before 3.4 final. POSIX already has the python/python3 convention, so extending that to pip is reasonable. Windows has no such convention, and the "pip3" namin

[issue20535] run_tests.py: Work around issues 20355 and 20361

2014-02-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset c89e495cdff8 by Serhiy Storchaka in branch '3.3': Issue #20535: PYTHONWARNING no longer affects the run_tests.py script. http://hg.python.org/cpython/rev/c89e495cdff8 New changeset 656d0e273ccb by Serhiy Storchaka in branch 'default': Issue #20535:

[issue20759] unittest.mock documentation typos

2014-02-24 Thread Jurko Gospodnetić
Jurko Gospodnetić added the comment: And another one: 'setttings' should be spelled 'settings' in: http://hg.python.org/releasing/3.4/file/c1f9fbefb237/Doc/library/unittest.mock.rst#l1512 -- ___ Python tracker

[issue19619] Blacklist base64, hex, ... codecs from bytes.decode() and str.encode()

2014-02-24 Thread Nick Coghlan
Nick Coghlan added the comment: Backporting just the encode/decode changes sounds reasonable to me, since open() isn't likely to be a DoS vector in this particular case. -- ___ Python tracker _

[issue20759] unittest.mock documentation typos

2014-02-24 Thread Jurko Gospodnetić
Jurko Gospodnetić added the comment: Another related documentation 'bug' - the following wording: > Mock doesn’t create these but instead of raises an > AttributeError. should be changed to something like: > Mock doesn’t create these on demand and raises an AttributeError > instead. Can be se

[issue20758] mimetypes initialization order

2014-02-24 Thread Ned Deily
Changes by Ned Deily : -- nosy: +tim.golden type: crash -> versions: -Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-

[issue20753] disable test_robotparser test that uses an invalid URL

2014-02-24 Thread Vajrasky Kok
Vajrasky Kok added the comment: Okay, here is my attempt to rewrite the test using local web server. I copied and modified the code from Lib/test/test_socketserver.py. The website mueblesmoraleda can not be accessed so I could only guess what the intention of this test was. I am not sure whet

  1   2   >