[issue20841] asyncio.StreamReader.readline() lack lines limit optional parameter

2014-03-03 Thread Alexandre JABORSKA
Alexandre JABORSKA added the comment: Well, You're right, I'm confused, and I cannot use the http.client.parse_headers(). I made a workaround by reading all lines in a BytesIO and parse this one. Anyway, if it not possible to use a file like object with the asyncio module, which is absolu

[issue18943] argparse: default args in mutually exclusive groups

2014-03-03 Thread paul j3
paul j3 added the comment: I need to tweak the last patch so 'using_default' is also set when an "nargs='*'" positional is set to the '[]' default. if action.default is not None: value = action.default +using_default = True else:

[issue20849] add exist_ok to shutil.copytree

2014-03-03 Thread Elias Zamaria
Elias Zamaria added the comment: Here is a patch that adds the option. I am not very familiar with the internals of shutil and os so I would recommend that someone else review it. I haven't added any tests. I can try to if anyone wants but I am not sure how long it will take me or if I will f

[issue20849] add exist_ok to shutil.copytree

2014-03-03 Thread Alexander Mohr
New submission from Alexander Mohr: it would be REALLY nice (and REALLY easy) to add a parameter: exist_ok and pass this to os.makedirs with the same parameter name so you can use copytree to append a src dir to an existing dst dir. -- components: Library (Lib) messages: 212691 nosy: t

[issue19980] Improve help('non-topic') response

2014-03-03 Thread Elias Zamaria
Elias Zamaria added the comment: Here is a patch that addresses the empty string problem described by @BreamoreBoy. I am not sure if this is the best way to handle it but it is better than what we have now. -- Added file: http://bugs.python.org/file34281/empty-help-response.patch

[issue20847] asyncio docs should call out that network logging is a no-no

2014-03-03 Thread Yury Selivanov
Yury Selivanov added the comment: > If you really need network logging you should be able to configure a handler > that puts things in a queue whose other end is serviced by an asyncio task. > There should be no need to mess with the type of the logger object. It's something that is easy to mi

[issue20840] AttributeError: 'module' object has no attribute 'ArgumentParser'

2014-03-03 Thread R. David Murray
R. David Murray added the comment: Please show the output from print(argparse.__file__) -- nosy: +r.david.murray ___ Python tracker ___ __

[issue20848] 3.4 cherry-pick: b637064cc696 Improve enum subclass behavior

2014-03-03 Thread Ethan Furman
Ethan Furman added the comment: Ah, thanks! Docs are built, fixed, and built again. Larry, the two cherries to pick for this are: b637064cc696: bulk of doc changes 54ab95407288: fixes for ReST markup Thanks. -- ___ Python tracker

[issue20840] AttributeError: 'module' object has no attribute 'ArgumentParser'

2014-03-03 Thread bsduni
bsduni added the comment: Unfortunately it is not that case, ie, no argparse in my current working directory /home/bsduni/pytests/ (on a FreeBSD 9.2 system). The following are the locations I can find argparse in my system: /usr/local/lib/python2.7/argparse.py /usr/local/lib/python2.7/argparse

[issue20653] Pickle enums by name

2014-03-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 54ab95407288 by Ethan Furman in branch 'default': Issue20653: fix ReST for Enum http://hg.python.org/cpython/rev/54ab95407288 -- ___ Python tracker ___

[issue20846] pip can fail on windows but gives success message

2014-03-03 Thread Ned Deily
Ned Deily added the comment: This is existing behavior. The error messages are coming from Distutils doing a byte compile (producing .pyc) on .py files it is installing. AFAIK, that has always been treated as a warning in all versions of Distutils; changing that behavior now could break the

[issue20846] pip can fail on windows but gives success message

2014-03-03 Thread Éric Araujo
Éric Araujo added the comment: Can you assume good faith from the people involved and stay civil in the discussion? -- nosy: +eric.araujo ___ Python tracker ___

[issue20846] pip can fail on windows but gives success message

2014-03-03 Thread Mark Lawrence
Mark Lawrence added the comment: >From PEP 453 "Abstract - This PEP proposes that the Installing Python Modules >guide in Python 2.7, 3.3 and 3.4 be updated to officially recommend the use of >pip as the default installer for Python packages, and that appropriate >technical changes be made in

[issue20846] pip can fail on windows but gives success message

2014-03-03 Thread R. David Murray
R. David Murray added the comment: Well, the fact that a syntax error can result in a "successful install" message is a bug *somewhere*, and like I said I've seen this before with pip (on linux, so this issue has nothing to do with windows). I guess it's a distutils bug, and falls into that ca

[issue20846] pip can fail on windows but gives success message

2014-03-03 Thread Ned Deily
Ned Deily added the comment: It's not a bug and has nothing to do with pip per se. The PyPI entry of this package makes no claims that it is supported on Python 3 nor does its README. PEP 453 does not make any claims to add new capabilities to pip to automatically try to transform packages wr

[issue20848] 3.4 cherry-pick: b637064cc696 Improve enum subclass behavior

2014-03-03 Thread R. David Murray
R. David Murray added the comment: You have to install sphinx now. The doc build tools no longer fetch it from svn. -- nosy: +r.david.murray ___ Python tracker ___

[issue20848] 3.4 cherry-pick: b637064cc696 Improve enum subclass behavior

2014-03-03 Thread Ethan Furman
Ethan Furman added the comment: For the past couple weeks everytime I try I get: sphinx-build -b html -d build/doctrees -D latex_paper_size= . build/html make: sphinx-build: Command not found make: *** [build] Error 127 -- ___ Python tracker

[issue20283] Wrong keyword parameter name in regex pattern methods

2014-03-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Why can't you remove the "= NULL" from the Clinic input for "string"? Because this will prohibit the use of "pattern" as keyword argument. -- ___ Python tracker __

[issue20848] 3.4 cherry-pick: b637064cc696 Improve enum subclass behavior

2014-03-03 Thread Larry Hastings
Larry Hastings added the comment: Why can't you build the docs on your system? "make html" works for me every time--it even downloads the packages it needs. -- ___ Python tracker _

[issue20839] pkgutil.get_loader throws deprecation warning due to internal deprecation

2014-03-03 Thread Nick Coghlan
Nick Coghlan added the comment: OK, I can add it tonight. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue20283] Wrong keyword parameter name in regex pattern methods

2014-03-03 Thread Larry Hastings
Larry Hastings added the comment: Why can't you remove the "= NULL" from the Clinic input for "string"? -- ___ Python tracker ___ ___

[issue20015] Allow 1-character ASCII unicode where 1-character str is required

2014-03-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > However, do note that the semantics will end up different from other uses of unicode. e.g.: > >>> "aa".strip(u"b") > > u'aa' And this behavior is weird. >>> print 'À\n'.strip('\n') À >>> print 'À\n'.strip(u'\n') Traceback (most recent call last): File "

[issue20283] Wrong keyword parameter name in regex pattern methods

2014-03-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The disadvantage of sre_deprecate_pattern_keyword-3.4.patch is that it creates false signature for SRE_Pattern.match(). Default value of first argument is exposed as None, but actually this parameter is mandatory and None is not valid value for it. I afraid

[issue20847] asyncio docs should call out that network logging is a no-no

2014-03-03 Thread Guido van Rossum
Guido van Rossum added the comment: If you really need network logging you should be able to configure a handler that puts things in a queue whose other end is serviced by an asyncio task. There should be no need to mess with the type of the logger object. Anyway, in 3.4 it is what it is. :-)

[issue20848] 3.4 cherry-pick: b637064cc696 Improve enum subclass behavior

2014-03-03 Thread Ethan Furman
New submission from Ethan Furman: Two minor code changes addressing the "more pythonic" comments. Major doc enhancement addressing the functional API. Not sure about the markup as I can no longer create the docs on my system. -- assignee: larry messages: 212670 nosy: ethan.furman, la

[issue20653] Pickle enums by name

2014-03-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset b637064cc696 by Ethan Furman in branch 'default': Close issue20653: improve functional API docs; minor code changes http://hg.python.org/cpython/rev/b637064cc696 -- resolution: -> fixed stage: commit review -> committed/rejected status: ope

[issue15014] smtplib: add support for arbitrary auth methods

2014-03-03 Thread R. David Murray
R. David Murray added the comment: Oh, sorry. I meant to start out that message by saying, thanks for the patch. Your idea is indeed interesting from the standpoint of not needing to change the rest of the API, butand then the rest of my message. In other words, I appreciate your work an

[issue15014] smtplib: add support for arbitrary auth methods

2014-03-03 Thread R. David Murray
R. David Murray added the comment: There is a lot of repeated code in those methods, which becomes a maintenance burden. That is one reason the imaplib authobj approach seems interesting to me. Also, going the authobj route would mean imaplib and smptlib had a consistent interface for this,

[issue20847] asyncio docs should call out that network logging is a no-no

2014-03-03 Thread Yury Selivanov
Yury Selivanov added the comment: Can we instead re-engineer asyncio logging to have logger calls in a separate thread? I.e. `logger` is a proxy object, that puts logging calls in a queue, and there would be another thread to block on the queue and do the actual logging. This way it won't rea

[issue20846] pip can fail on windows but gives success message

2014-03-03 Thread Mark Lawrence
Mark Lawrence added the comment: This should have been tested before it got into a release candidate, not left to users to find such a blatantly obvious bug. I'll leave the PEP authors to sort this out, I've no intention of spending my time clearing up their mess. --

[issue20847] asyncio docs should call out that network logging is a no-no

2014-03-03 Thread Guido van Rossum
New submission from Guido van Rossum: The asyncio package uses the logging module. We should remind users that they should always configure their logs to go to a file on the local filesystem -- using any kind of network logging will block the event loop. -- assignee: haypo messages: 21

[issue15014] smtplib: add support for arbitrary auth methods

2014-03-03 Thread Milan Oberkirch
Milan Oberkirch added the comment: I implemented one approach to solve this by writing new member functions for each method (see the patch attached). Bonus: It does not change the usage of login() in any way (which uses the new functions internally). Another option would be to make those functi

[issue4508] distutils compiler not handling spaces in path to output/src files

2014-03-03 Thread Alexandru Gheorghe
Alexandru Gheorghe added the comment: I am having the same issue on Debian 7 x86-64 (3.2.0-4-amd64) Python 2.7.3 (default, Jan 2 2013, 13:56:14) // [GCC 4.7.2] on linux2 Not noticing this bug I've opened a duplicate, for which the interesting comment can be found here: http://bugs.python.org/i

[issue20846] pip can fail on windows but gives success message

2014-03-03 Thread R. David Murray
R. David Murray added the comment: Why? Before the PEP and its implementation, you would have had to first install pip before you could have had the problems you reported. So, at least one annoying step was eliminated. Now we'll work on the other bugs and issues with python packaging. Th

[issue20744] shutil should not use distutils

2014-03-03 Thread Éric Araujo
Éric Araujo added the comment: Agreed; this looks like a relic. zlib is optional, but zipfile is always in the standard library. -- nosy: +eric.araujo ___ Python tracker ___ __

[issue20846] pip can fail on windows but gives success message

2014-03-03 Thread Mark Lawrence
Mark Lawrence added the comment: Just awesome, from my viewpoint PEP 453 and #19347 were a complete and utter waste of time. -- ___ Python tracker ___ __

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

2014-03-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Vajrasky and Zachary. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

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

2014-03-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset d37f963394aa by Serhiy Storchaka in branch '2.7': Correct and improve comments in test_fileinput (closes #20501). http://hg.python.org/cpython/rev/d37f963394aa New changeset 204ef3bca9c8 by Serhiy Storchaka in branch '3.3': Correct comments and impr

[issue20846] pip can fail on windows but gives success message

2014-03-03 Thread R. David Murray
R. David Murray added the comment: I think I've observed other occasions when PIP claimed a successful install but the install had actually failed. PIP is still an independent project, so this should be reported on the PIP tracker at https://github.com/pypa/pip/issues. As for running 2to3 aut

[issue20846] pip can fail on windows but gives success message

2014-03-03 Thread Mark Lawrence
New submission from Mark Lawrence: Trying to install pyttsx you get "Successfully installed pyttsx" despite the syntax errors and you can't actually do an import. c:\Users\Mark\CrossCode>c:\Python34\Scripts\pip3.4.exe install pyttsx Downloading/unpacking pyttsx Downloading pyttsx-1.1.tar.gz

[issue20845] email.utils.formataddr encodes incorrectly

2014-03-03 Thread R. David Murray
R. David Murray added the comment: Well, the "work around" was how you always had to do it in python2. So this is just a bit you can't port to the easier Python3 interface until you can drop python2 support. -- ___ Python tracker

[issue19614] support.temp_cwd should use support.rmtree

2014-03-03 Thread R. David Murray
R. David Murray added the comment: Thanks. Yes, the fix is in temp_dir. Patch looks fine, may be a bit before I get around to applying it. -- ___ Python tracker ___ __

[issue20155] Regression test test_httpservers fails, hangs on Windows

2014-03-03 Thread R. David Murray
R. David Murray added the comment: The second test looks correct to me. I don't understand what tset_request_line_trimming is testing (I haven't investigated), so I don't know if that one is correct, but it is certainly plausible. -- ___ Python tra

[issue20845] email.utils.formataddr encodes incorrectly

2014-03-03 Thread Michael JasonSmith
Michael JasonSmith added the comment: I care enough to lodge an issue, but I lack the conviction in order to belabour the point in python-dev! I'll mark this issue as closed. Hopefully the work-around in my original post will help others :) -- resolution: -> wont fix status: open -> c

[issue20845] email.utils.formataddr encodes incorrectly

2014-03-03 Thread R. David Murray
Changes by R. David Murray : -- components: +email nosy: +barry versions: -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mai

[issue20845] email.utils.formataddr encodes incorrectly

2014-03-03 Thread R. David Murray
R. David Murray added the comment: At the time we introduced this behavior in python3, it was considered an enhancement and thus not suitable for backporting. So you'd have to advocate for backporting it on python-dev. My guess is it won't be approved, especially since there are significant

[issue20841] asyncio.StreamReader.readline() lack lines limit optional parameter

2014-03-03 Thread Guido van Rossum
Guido van Rossum added the comment: > > It seems to me that the StreamReader() limit parameter is for buffer size > while the io.BytesIO.readline() "n" parameter is for maximum number of > lines to be retreived, I guess. > You sound confused. The parameter for io.BytesIO.readline() limits the nu

[issue20845] email.utils.formataddr encodes incorrectly

2014-03-03 Thread Michael JasonSmith
New submission from Michael JasonSmith: The email.utils.formataddr function is used to encode a name-address 2-tuple for use as an email message. If the name contains a non-ASCII character it needs to be encoded. This happens correctly in Python 3.3.2, but incorrectly in Python 2.7.5. Ideally

[issue20015] Allow 1-character ASCII unicode where 1-character str is required

2014-03-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: The behavior of str.strip is not what I would expect from reading '''str.strip([chars]) Return a copy of the string with the leading and trailing characters removed.''' but I guess it is consistent with a general rule that when mixing bytes and unicode (wh

[issue20744] shutil should not use distutils

2014-03-03 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue18139] email module should have a way to prepend and insert headers

2014-03-03 Thread R. David Murray
R. David Murray added the comment: (Aside: I have no idea why I set the stage to needs patch. The API discussion is needed first!) -- stage: needs patch -> ___ Python tracker

[issue18139] email module should have a way to prepend and insert headers

2014-03-03 Thread R. David Murray
R. David Murray added the comment: The patch is a reasonable effort, thanks. However, before we can really evaluate any code, we need to agree on an API. The Message object presents a hybrid dictionary/sequence API over the headers. In the Sequence API, we insert something into the list usin

[issue20015] Allow 1-character ASCII unicode where 1-character str is required

2014-03-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: However, do note that the semantics will end up different from other uses of unicode. e.g.: >>> "aa".strip(u"b") u'aa' In str.strip(), passing an unicode parameter returns an unicode string. In str.ljust(), passing an unicode parameter will return a byte stri

[issue20015] Allow 1-character ASCII unicode where 1-character str is required

2014-03-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: This sounds reasonable to me, but the patch lacks tests. -- ___ Python tracker ___ ___ Python-bugs-l

[issue18139] email module should have a way to prepend and insert headers

2014-03-03 Thread Surya K
Surya K added the comment: I've done the following changes: 1. create insert_header(): Which places header at the beginning. For that I created set() method which actually takes an argument `pos` default to 0. 2. __setitem__() uses set() (new method) method while fixing `pos` to end. 3. _parse

[issue20098] email policy needs a mangle_from setting

2014-03-03 Thread Milan Oberkirch
Milan Oberkirch added the comment: Updates patch to include necessary changes to test_policy.py. -- Added file: http://bugs.python.org/file34277/mangle_from.patch ___ Python tracker

[issue20839] pkgutil.get_loader throws deprecation warning due to internal deprecation

2014-03-03 Thread Brett Cannon
Brett Cannon added the comment: LGTM, but I won't be able to commit it until Friday so hopefully Eric or you can do it sooner. -- ___ Python tracker ___

[issue20098] email policy needs a mangle_from setting

2014-03-03 Thread Milan Oberkirch
Changes by Milan Oberkirch : Removed file: http://bugs.python.org/file34275/mangle_from.patch ___ Python tracker ___ ___ Python-bugs-list mail

[issue20811] str.format for fixed width float can return a string longer than the maximum specified

2014-03-03 Thread aubmoon
aubmoon added the comment: We will add extending the float class as another possible work around or part of a work around. Our developers now have a few options to choose from. I am not sure which approach will be preferred. thanks for all of the quick replies. this was just an odd case that was

[issue20844] coding bug remains in 3.3.5rc2

2014-03-03 Thread STINNER Victor
STINNER Victor added the comment: It's a duplicate of the issue #20731. -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list ma

[issue20844] coding bug remains in 3.3.5rc2

2014-03-03 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue20844] coding bug remains in 3.3.5rc2

2014-03-03 Thread Musashi Tamura
New submission from Musashi Tamura: Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\bug>python Python 3.3.5rc2 (v3.3.5rc2:ca5635efe090, Mar 2 2014, 18:18:29) [MSC v.1600 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "lic

[issue20098] email policy needs a mangle_from setting

2014-03-03 Thread Milan Oberkirch
Milan Oberkirch added the comment: (@r.david.murray) I just implemented what you suggested: - Policy has a mangle_from_ property, overridden in EMailPolicy - Generator and DecodedGenerator default to policy.mangle_from_ or True if policy is None. Would be glad if it helps :) -- nosy: +

[issue20814] tracemalloc example - Pretty Top

2014-03-03 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing

[issue20815] ipaddress unit tests PEP8

2014-03-03 Thread Michel Albert
Michel Albert added the comment: I strongly agree with Raymond's points! They are all valid. I should note, that I submitted this patch to - as mentioned by Nick - familiarise myself with the patch submission process. I decided to make harmless changes which won't risk braking anything. -

[issue20843] 3.4 cherry-pick: a9058b772807 fix tracemalloc doc

2014-03-03 Thread STINNER Victor
New submission from STINNER Victor: Please pick a9058b772807 into Python 3.4 final: it fixes a typo in tracemalloc documentation (in the "Pretty Top" example). Related issue: #20814. -- assignee: larry messages: 212634 nosy: haypo, larry priority: release blocker severity: normal statu

[issue20804] Sentinels identity lost when pickled (unittest.mock)

2014-03-03 Thread Michael Foord
Michael Foord added the comment: I'm not sure to what extent mock documentation should explain Python semantics. The docs *do* make clear that sentinel is useful for where you want to test (compare) objects by *identity*. Problems with copying and pickling them come from the fact that those op

[issue20814] tracemalloc example - Pretty Top

2014-03-03 Thread Georg Brandl
Changes by Georg Brandl : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue20839] pkgutil.get_loader throws deprecation warning due to internal deprecation

2014-03-03 Thread Nick Coghlan
Nick Coghlan added the comment: Brett, Eric - if this looks right to you, feel free to commit and create the issue for Larry to incorporate it into 3.4.0. -- ___ Python tracker

[issue20839] pkgutil.get_loader throws deprecation warning due to internal deprecation

2014-03-03 Thread Nick Coghlan
Nick Coghlan added the comment: Attached patch adds some appropriate unit tests, switches pkgutil.find_loader over to using importlib.util.find_spec and updates the docs appropriately. I also filed issue 20842 relating to the fact that the pkgutil docs still refer to PEP 302 when they should b

[issue20842] pkgutil docs should reference glossary terms not PEP 302

2014-03-03 Thread Nick Coghlan
New submission from Nick Coghlan: The pkgutil docs still point at PEP 302 when mentioning loaders, importers, etc. They should reference the glossary terms (:term:`loader`, etc) instead. -- assignee: docs@python components: Documentation messages: 212630 nosy: docs@python, ncoghlan prio

[issue20839] pkgutil.get_loader throws deprecation warning due to internal deprecation

2014-03-03 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, I think I see what may have happened - when we finally switched all the stdlib importers over to PEP 302 (and consistently set __loader__), the pkgutil.get_loader fallback to pkgutil.find_loader stopped being exercised by the test suite (it's currently missi

[issue20814] tracemalloc example - Pretty Top

2014-03-03 Thread STINNER Victor
STINNER Victor added the comment: Thank you Jeong-Min for your report, it's now fixed. -- resolution: fixed -> stage: committed/rejected -> status: closed -> open ___ Python tracker __

[issue20814] tracemalloc example - Pretty Top

2014-03-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset a9058b772807 by Victor Stinner in branch 'default': Close #20814: doc: Fix "Pretty top" example of tracemalloc http://hg.python.org/cpython/rev/a9058b772807 -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: ope

[issue20841] asyncio.StreamReader.readline() lack lines limit optional parameter

2014-03-03 Thread Alexandre JABORSKA
Alexandre JABORSKA added the comment: Hum... It seems to me that the StreamReader() limit parameter is for buffer size while the io.BytesIO.readline() "n" parameter is for maximum number of lines to be retreived, I guess. And since the StreamReader().readline() does not accept parameter, it

[issue20841] asyncio.StreamReader.readline() lack lines limit optional parameter

2014-03-03 Thread STINNER Victor
STINNER Victor added the comment: The readline() limit can be set in the StreamReader constructor: http://docs.python.org/dev/library/asyncio-stream.html#streamreader Oh, it looks like it is not documented :-( -- nosy: +gvanrossum, haypo, yselivanov

[issue20839] pkgutil.get_loader throws deprecation warning due to internal deprecation

2014-03-03 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +larry priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue20841] asyncio.StreamReader.readline() lack lines limit optional parameter

2014-03-03 Thread Alexandre JABORSKA
New submission from Alexandre JABORSKA: This prevent using StreamReader as a normal file object in some circumstances (like http header parsing) -- components: Library (Lib) messages: 212624 nosy: ajaborsk priority: normal severity: normal status: open title: asyncio.StreamReader.readli

[issue20838] Documents disagree about release state of Python 3.3.5

2014-03-03 Thread Georg Brandl
Georg Brandl added the comment: It's coming. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue20283] Wrong keyword parameter name in regex pattern methods

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

[issue20839] pkgutil.get_loader throws deprecation warning due to internal deprecation

2014-03-03 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever, brett.cannon, eric.snow, ncoghlan ___ Python tracker ___ ___ Pyth

[issue20840] AttributeError: 'module' object has no attribute 'ArgumentParser'

2014-03-03 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: I guess that there is argparse module in current directory, which overrides argparse module from standard library. Use e.g. print(argparse) or print(argparse.__file__) to find it. A correct location would be something like /usr/lib64/python2

[issue20804] Sentinels identity lost when pickled (unittest.mock)

2014-03-03 Thread Vlastimil Zíma
Vlastimil Zíma added the comment: David, first part of your comment should be added to docs. Purpose of sentinels isn't much intuitive and in my opinion documentation doesn't quite describe it. An exception in case of pickle or copy would be much easier to understand apart from unexpected ineq

[issue20840] AttributeError: 'module' object has no attribute 'ArgumentParser'

2014-03-03 Thread bsduni
New submission from bsduni: Hi! I have installed Python 2.7.6 fully (all the modules selected). I attempted run some Python codes that were developed by a past staff, and am stuck with an issue with argparse. For ease of explanation I am using the example given in this website at http://doc

[issue20283] Wrong keyword parameter name in regex pattern methods

2014-03-03 Thread Martin v . Löwis
Martin v. Löwis added the comment: The patch sre_deprecate_pattern_keyword-3.4.patch looks good to me. I *think* that Larry has pre-approved it for 3.4. If it is applied, and if people still think that 2.7 and 3.3 need to be changed, the release-critical status should be removed from the issue

[issue20839] pkgutil.get_loader throws deprecation warning due to internal deprecation

2014-03-03 Thread Armin Ronacher
Armin Ronacher added the comment: This also happens with the latest hg version. I could not make an isolated test case unfortunately but it happens on the flask testsuite if run on 3.4. -- ___ Python tracker

[issue19861] Update What's New for Python 3.4

2014-03-03 Thread Martin v . Löwis
Martin v. Löwis added the comment: I don't think this issue is actually release-critical. The current status of the document is fine for the release, any additions that people find can be added to bugfix releases (and online, of course). The question also is how long this issue itself stays op

[issue15809] IDLE console uses incorrect encoding.

2014-03-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Terry, what do you think? This bug is critical for non-ASCII-only users of IDLE. -- ___ Python tracker ___ ___