[issue25067] Spam

2015-09-11 Thread Zachary Ware
Changes by Zachary Ware : Removed file: http://bugs.python.org/file40433/attachment.zip ___ Python tracker ___

[issue25067] Spam

2015-09-11 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: -petri.lehtinen resolution: -> not a bug stage: -> resolved status: open -> closed title: Hello -> Spam ___ Python tracker

[issue25071] Windows installer requires TargetDir parameter when installing quietly

2015-09-11 Thread Steve Dower
New submission from Steve Dower: If you run the installer without UI and without specifying an installation path, it will not install. For example: C:\> python-3.5.0rc4-amd64-webinstall.exe /passive The workaround is to specify TargetPath: C:\> python-3.5.0rc4-amd64-webinstall.exe /passive

[issue25071] Windows installer requires TargetDir parameter when installing quietly

2015-09-11 Thread Steve Dower
Steve Dower added the comment: Patch attached. PR for 3.5.0 at: https://bitbucket.org/larry/cpython350/pull-requests/25/issue-25071-windows-installer-should-not/diff -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file40439/25071_1.patch

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-11 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks again, Martin. I've found 4 bugs so far, based on your suggested tests. The ones I haven't fixed are: 'fur' strings don't work (something in the lexer), and triple quoted strings don't work correctly. I'm working on both of those, and should have an

[issue25073] Document asyncio.test_utils

2015-09-11 Thread Yury Selivanov
Yury Selivanov added the comment: It's meant to be private. -- resolution: -> not a bug stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue25073] Document asyncio.test_utils

2015-09-11 Thread Guido van Rossum
Guido van Rossum added the comment: Agreed, but then why isn't it in the tests directory? There are some examples in the asyncio repo on GitHub that use test_utils.dummy_ssl_context(), and that's probably why; but that's a fairly bad practice plus it's really a one-liner. --

[issue25073] Document asyncio.test_utils

2015-09-11 Thread Zachary Ware
New submission from Zachary Ware: asyncio.test_utils is not documented. I'm unsure as to whether that's because it's meant to be private, or if it just hasn't been done yet. -- assignee: docs@python components: Documentation, asyncio messages: 250482 nosy: docs@python, gvanrossum,

[issue25071] Windows installer requires TargetDir parameter when installing quietly

2015-09-11 Thread Steve Dower
Changes by Steve Dower : -- nosy: +takluyver ___ Python tracker ___ ___

[issue25071] Windows installer requires TargetDir parameter when installing quietly

2015-09-11 Thread Larry Hastings
Larry Hastings added the comment: Pull request approved. Hopefully the last one for 3.5.0! Please forward-merge. -- ___ Python tracker ___

[issue24903] Do not verify destdir argument to compileall

2015-09-11 Thread Jake Garver
Jake Garver added the comment: Updated patch. Same as before, but updates tests. Sorry I went MIA on this issue. -- Added file: http://bugs.python.org/file40440/python34_compileall_ddir_2.diff ___ Python tracker

[issue25071] Windows installer requires TargetDir parameter when installing quietly

2015-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset da8f2767b6cc by Steve Dower in branch '3.5': Issue #25071: Windows installer should not require TargetDir parameter when installing quietly https://hg.python.org/cpython/rev/da8f2767b6cc New changeset bb7363b8b50e by Steve Dower in branch

[issue25071] Windows installer requires TargetDir parameter when installing quietly

2015-09-11 Thread Steve Dower
Steve Dower added the comment: I hope so too :) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue25069] Clean issue when generator not exhausted (garbage collector related?)

2015-09-11 Thread guilimo
New submission from guilimo: Hello! I experienced a strange behavior when using a generator, with some code encapsulated in a try/finally clause or a context manager. If the generator is not exhausted when we leave the script (because normal end of script, uncatched exception, etc...), I

[issue25068] The proxy key's string should ignore case.

2015-09-11 Thread Chris Angelico
Chris Angelico added the comment: This sounds like a feature enhancement, which means it (almost certainly) won't be applied to Python 2.7. Does the same question come up in Python 3? Also (FWIW) if you can confidently assume that all the keys are strings. then type.lower() is better than

[issue24684] socket.getaddrinfo(host) doesn't ensure that host.encode() returns a byte string

2015-09-11 Thread Chris Angelico
Chris Angelico added the comment: ISTM this is a case where Python's core shouldn't be using assert. It's possible for userland code to trigger an assertion failure, which means it should be a regular if(..) raise. Patch attached. @haypo, what do you mean by "fuzzing"? Is there something I've

[issue25068] The proxy key's string should ignore case.

2015-09-11 Thread Martin Panter
Martin Panter added the comment: On the other hand, a documentation update saying it has to be lower case would be fine for Python 2.7 and 3.4+, if you wanted to go that way. -- ___ Python tracker

[issue25068] The proxy key's string should ignore case.

2015-09-11 Thread Martin Panter
Martin Panter added the comment: Looking at the code, I think Python 3 is in the same boat. Most things in Python are case-sensitive, but I think it is reasonable to make an exception here, since the protocol schemes in general are insensitive. E.g.

[issue24684] socket.getaddrinfo(host) doesn't ensure that host.encode() returns a byte string

2015-09-11 Thread Chris Angelico
Chris Angelico added the comment: Oops, forgot to add a test. Using a variant of poc_getaddr.py to construct something which fails on current CPython tip, and passes with the patch. -- Added file: http://bugs.python.org/file40435/dont_assert_with_test.patch

[issue25038] test_os.TestSendfile.test_keywords() introduced a regression

2015-09-11 Thread Martin Panter
Changes by Martin Panter : -- components: +Tests resolution: -> fixed stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker

[issue25057] Make parameter of io.base to be positional and keyword

2015-09-11 Thread shiyao.ma
shiyao.ma added the comment: You've listed much of the benefits it can bring about. The real problem is there are many places like iobase.seek to modify to support keyword argument, and seems not many people think it's a good idea to do that, per issue 8706. But I think the former is the main

[issue25068] The proxy key's string should ignore case.

2015-09-11 Thread Chuang Cao
New submission from Chuang Cao: When use a urllib2.ProxyHandler to set a proxy, if the proxies's key is an upper string, like "HTTP", "HTTPS". The proxy url can't be used, because they can't find the _open function. Two way can sovle the issue. 1. Specify it in document to let users to use a

[issue23484] SemLock acquire() keyword arg 'blocking' is invalid

2015-09-11 Thread Berker Peksag
Changes by Berker Peksag : -- assignee: docs@python -> berker.peksag versions: +Python 3.6 ___ Python tracker ___

[issue25073] Document asyncio.test_utils

2015-09-11 Thread Yury Selivanov
Yury Selivanov added the comment: > Agreed, but then why isn't it in the tests directory? I think that the main reason is to make it possible for tests to import some common functionality from 'asyncio' package, when you run them from the cloned github asyncio repo. In fact, I think we

[issue24915] Profile Guided Optimization improvements (better training, llvm support, etc)

2015-09-11 Thread Brett Cannon
Brett Cannon added the comment: Attached is what I plan to commit to Python 2.7 assuming everyone is happy with the outcome. I tweaked the echoed messages from Alecsandru's patch, pulled in the README changes, and dropped the x86 checks as Antoine and Stefan requested. Assuming people are

[issue25073] Document asyncio.test_utils

2015-09-11 Thread Guido van Rossum
Guido van Rossum added the comment: The _ is a good idea. Please do fix up the examples! -- ___ Python tracker ___

[issue25074] Bind logger and waninigs modules for asyncio __del__ methods

2015-09-11 Thread Andrew Svetlov
New submission from Andrew Svetlov: See https://github.com/KeepSafe/aiohttp/issues/497 for the reason. Desctructors and descendant code (`loop.call_exception_handler()`) can be called on interpreter shutdown stage, which leads to printouts like 'None object has no attribute "errror"'.

[issue20629] Python ctypes BigEndianStructure bitfield assignment misbehavior in Linux

2015-09-11 Thread Brian Trotter
Brian Trotter added the comment: I am experiencing the same bug with c_uint32 bitfields inside BigEndianStructure in Python 3.4.0 on Ubuntu 14.04.3 x64. No problem in Windows 7 x64. As shown in the example below, the fourth byte is the only one that is written correctly. This is a rather

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-11 Thread Eric V. Smith
Eric V. Smith added the comment: It turns out 'fur' strings aren't a thing, because 'ur' strings aren't. >From tokenizer.c: /* ur"" and ru"" are not supported */ And the PEP: https://www.python.org/dev/peps/pep-0414/#exclusion-of-raw-unicode-literals I'll add a test to make sure this fails.

[issue25043] document socket constants for Bluetooth

2015-09-11 Thread Martin Panter
Martin Panter added the comment: Thanks for your work on this. I think the patch is good, although I might add :const:`BDADDR_ANY` etc markup around the references within the text. By the way, you don’t normally need to make separate patches for each branch. When I commit this I will just

[issue25070] Python 2.6 - Python 3.4 allows unparenthesized generator with *args, **kw, forbidden in 3.5

2015-09-11 Thread R. David Murray
R. David Murray added the comment: If we have decided that this is a "fixed bug", it should indeed be mentioned in what's new for 3.5 since it is a behavior change. -- nosy: +r.david.murray ___ Python tracker

[issue25003] os.urandom() should call getrandom(2) not getentropy(2) on Solaris 11.3 and newer

2015-09-11 Thread STINNER Victor
STINNER Victor added the comment: > While testing this, I found out why I had needed EINVAL earlier (and still > do, for now): there is a bug in the Solaris implementation of getrandom(2). > If flags are 0 and the buffer size > 1024, then it fails with EINVAL. That > is only supposed to

[issue25043] document socket constants for Bluetooth

2015-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 152568976062 by Martin Panter in branch '3.4': Issue #25043: Document BDADDR_ and HCI_ Bluetooth socket constants https://hg.python.org/cpython/rev/152568976062 New changeset 3f475417eadd by Martin Panter in branch '3.5': Issue #25043: Merge

[issue23447] Import fails when doing a circular import involving an `import *`

2015-09-11 Thread Brett Cannon
Brett Cannon added the comment: Here is Steven's patch touched up. I still have not decided if the semantic change is worth it. If anyone else has an opinion please feel free to speak up. All tests do pass, though, so it at least doesn't seem to directly break anything. -- Added

[issue25003] os.urandom() should call getrandom(2) not getentropy(2) on Solaris 11.3 and newer

2015-09-11 Thread John Beck
John Beck added the comment: I have queried the engineer who owns the kernel bug and will post an update once I hear back from him. But as it is already almost midnight on Friday in his geo, it may well be Monday before I hear back. -- ___ Python

[issue25072] CGI large POST data string truncated

2015-09-11 Thread R. David Murray
R. David Murray added the comment: Any chance you could provide code that demonstrates this bug? -- nosy: +r.david.murray ___ Python tracker ___

[issue25075] issue from python in encode base64 with Json Model

2015-09-11 Thread Ramin Farajpour Cami
New submission from Ramin Farajpour Cami: Hi, issue from python in encode base64 with Json Model in twice encode with base64 output python different with JAVA and C# , if programmer using rest-service in server side and other programmer using UI(Python Django) in client site , this encode

[issue25043] document socket constants for Bluetooth

2015-09-11 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

[issue24684] socket.getaddrinfo(host) doesn't ensure that host.encode() returns a byte string

2015-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2bff115e6ba0 by Victor Stinner in branch '3.4': Issue #24684: socket.socket.getaddrinfo() now calls https://hg.python.org/cpython/rev/2bff115e6ba0 New changeset 0c13674cf8b5 by Victor Stinner in branch '2.7': Issue #24684:

[issue25069] Clean issue when generator not exhausted (garbage collector related?)

2015-09-11 Thread Martin Panter
Martin Panter added the comment: You are basically right that it is garbage collection which causes your generator instance to be cleaned up, and in this instance it is happening after “time.sleep” has been set to None. It could also happen in the order, which would explain why changing names

[issue25043] document socket constants for Bluetooth

2015-09-11 Thread Tim Tisdall
Tim Tisdall added the comment: Okay, since there's currently no existing tests for the Bluetooth components of socket and the only example for BDADDR_ALL seems to be for something I'm not sure you can do in socket, I'm just going to not bother including it. I've attached a 3.6 patch without

[issue25070] Python 2.6 - Python 3.4 allows unparenthesized generator with *args, **kw, forbidden in 3.5

2015-09-11 Thread Stefan Krah
Stefan Krah added the comment: According to the human readable grammar in the docs https://docs.python.org/3/reference/expressions.html#calls I'd say this was a bug that is now fixed in 3.5. The call should either take a single unparenthesized generator expression or an argument_list (which

[issue25070] Python 2.6 - Python 3.4 allows unparenthesized generator with *args, **kw, forbidden in 3.5

2015-09-11 Thread Antti Haapala
Antti Haapala added the comment: Yeah, it is a bug in 2.5 too; https://docs.python.org/2.5/ref/calls.html call ::= primary "(" [argument_list [","] | expression genexpr_for] ")" -- assignee: -> docs@python components: +Documentation nosy: +docs@python

[issue24927] multiprocessing.Pool hangs forever on segfault

2015-09-11 Thread Brian Boonstra
Brian Boonstra added the comment: See also issue 22393 -- nosy: +brianboonstra ___ Python tracker ___ ___

[issue25072] CGI large POST data string truncated

2015-09-11 Thread Vincent Caloone
New submission from Vincent Caloone: For "large" POST request (> 25 ko), cgi.FieldStorage() doesn't contains all field in the html form. When we trace the root of the issue, it is located in file server.py : if self.command.lower() == "post" and nbytes > 0: data = self.rfile.read(nbytes)

[issue25076] Wrong parameter name in distutils documentation

2015-09-11 Thread TAKASE Arihiro
New submission from TAKASE Arihiro: In Doc/distutils/apiref.rst, the palameter name of CCompiler.library_option is *lib*, but written *dir* in the documentation. This also applies to the docstring of CCompiler.library_option(). The attached patch fixes it. -- assignee: docs@python

[issue10972] zipfile: add "unicode" option to the force the filename encoding to UTF-8

2015-09-11 Thread irdb
Changes by irdb : -- nosy: +irdb ___ Python tracker ___ ___ Python-bugs-list mailing

[issue10614] ZipFile: add a filename_encoding argument

2015-09-11 Thread irdb
Changes by irdb : -- nosy: +irdb ___ Python tracker ___ ___ Python-bugs-list mailing

[issue24684] socket.getaddrinfo(host) doesn't ensure that host.encode() returns a byte string

2015-09-11 Thread STINNER Victor
STINNER Victor added the comment: Ok, I fixed the bug in Python 2.7, 3.4, 3.5 and 3.6. (Python 2.7 was also impacted for custom *unicode* strings.) Thanks for your bug report paul! > ISTM this is a case where Python's core shouldn't be using assert. It's > possible for userland code to

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-11 Thread Martin Panter
Martin Panter added the comment: Another version of that AST that is better for my digestion: f'a={a}' Module(body=[Expr( value=JoinedStr(values=[ Str(s='a='), FormattedValue( value=Name(id='a', ctx=Load()), conversion=0,

[issue25066] Better repr for multiprocessing.synchronize objects

2015-09-11 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___

[issue25003] os.urandom() should call getrandom(2) not getentropy(2) on Solaris 11.3 and newer

2015-09-11 Thread STINNER Victor
STINNER Victor added the comment: > But EINVAL should also be checked for to make sure the system call was > invoked with proper parameters. py_getrandom() calls Py_FatalError() or raises an OSError on EINVAL. The error is not silently ignored. > My builds of Python 3.5.0.X (don't recall

[issue25063] shutil.copyfileobj should internally use os.sendfile when possible

2015-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3d9cbbad8a04 by Martin Panter in branch '3.4': Issue #25063: socket.sendfile() does not exist in 3.4 https://hg.python.org/cpython/rev/3d9cbbad8a04 -- nosy: +python-dev ___ Python tracker

[issue25075] issue from python in encode base64 with Json Model

2015-09-11 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: why any update in python 2.7? you should using a function this code change : enc_sec = ZXlKMWMyVnlUbUZ0WlNJNkltRmtiV2x1SWl3aWNHRnpjM2R2Y21RaU9pSmhaRzFwYmlKOQo= url = re.sub('\o=$','',enc_sec) result = url.replace('\n','==') print result --

[issue16473] quopri module differences in quoted-printable text with whitespace

2015-09-11 Thread Martin Panter
Martin Panter added the comment: Will commit a slightly modified version of my doc patch to 3.4+, since mentioning the wrong functions is confusing. But I think we still need to fix the “binascii” decoding, and have a look at Alejandro’s test suite patch. -- nosy: +berker.peksag

[issue25075] issue from python in encode base64 with Json Model

2015-09-11 Thread Ramin Farajpour Cami
Ramin Farajpour Cami added the comment: no close plz, i using python 2.7.3 i get this output without "\n"? code: json_obj='{"userName": "admin", "password": "admin"}' enc = json_obj.encode("base64") print enc

[issue16473] quopri module differences in quoted-printable text with whitespace

2015-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset de82f41d6669 by Martin Panter in branch '3.4': Issue #16473: Fix byte transform codec documentation; test quotetabs=True https://hg.python.org/cpython/rev/de82f41d6669 New changeset 28cd11dc2915 by Martin Panter in branch '3.5': Issue #16473:

[issue25075] issue from python in encode base64 with Json Model

2015-09-11 Thread Martin Panter
Changes by Martin Panter : -- components: -2to3 (2.x to 3.x conversion tool) ___ Python tracker ___

[issue25075] issue from python in encode base64 with Json Model

2015-09-11 Thread Martin Panter
Martin Panter added the comment: This seems to be as documented. Have a look at the definition of “base64_codec” under , which says “the result always includes a trailing '\n' ”. In fact, line breaks are also added for

[issue25075] issue from python in encode base64 with Json Model

2015-09-11 Thread R. David Murray
Changes by R. David Murray : -- status: open -> closed ___ Python tracker ___ ___

[issue25070] Python 2.6 - Python 3.4 allows unparenthesized generator with *args, **kw, forbidden in 3.5

2015-09-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 3.2, Python 3.3 ___ Python tracker ___

[issue16473] quopri module differences in quoted-printable text with whitespace

2015-09-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset cfb0481c89d7 by Martin Panter in branch '2.7': Issue #16473: Fix byte transform codec documentation; test quotetabs=True https://hg.python.org/cpython/rev/cfb0481c89d7 -- ___ Python tracker

[issue25070] Python 2.6 - Python 3.4 allows unparenthesized generator with *args, **kw, forbidden in 3.5

2015-09-11 Thread Yury Selivanov
Yury Selivanov added the comment: > If we have decided that this is a "fixed bug", [..] I'd call this a bug fix. The old syntax was completely unreadable. Should I close this issue? > [..] it should indeed be mentioned in what's new for 3.5 since it is a > behavior change. Sure, I'll

[issue25008] Deprecate smtpd

2015-09-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: http://nullege.com/codes/search?cq=import+smtpd shows 135 hits. FWIW, import+asyncore get 972. -- nosy: +terry.reedy ___ Python tracker

[issue25069] Clean issue when generator not exhausted (garbage collector related?)

2015-09-11 Thread R. David Murray
R. David Murray added the comment: Yes, it is (was) to break otherwise unbreakable GC cycles involving __del__. Many improvements have been made to these algorithms in python3, such that __del__ methods no longer create unbreakable cycles, although I believe a few cases still remain. Since

[issue24965] Implement PEP 498: Literal String Formatting

2015-09-11 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks, Martin. I've posted my replies. I'll add some more tests, and work on the triple quoted string bug. -- ___ Python tracker

[issue25070] Python 2.6 - Python 3.4 allows unparenthesized generator with *args, **kw, forbidden in 3.5

2015-09-11 Thread Antti Haapala
Antti Haapala added the comment: @haypo yes. I must add that I found out that Python 2.5 also allows f(1 for x in [1], *a) and f(1 for x in [1], **kw) but not f(*a, 1 for x in [1]) So I do not know if the first and second cases were intentional or not. Also, in Python 2.6 -

[issue25070] Python 2.6 - Python 3.4 allows unparenthesized generator with *args, **kw, forbidden in 3.5

2015-09-11 Thread STINNER Victor
STINNER Victor added the comment: I guess that it's a consequence of the PEP 448 "additional unpacking generalizations". -- nosy: +haypo, yselivanov ___ Python tracker

[issue25070] Python 2.6 - Python 3.4 allows unparenthesized generator with *args, **kw, forbidden in 3.5

2015-09-11 Thread Antti Haapala
New submission from Antti Haapala: User DeTeReR asked a question (http://stackoverflow.com/questions/32521140/generator-as-function-argument) on Stack Overflow about a special case of code that seemed to work in Python 3.4: f(1 for x in [1], *[2]) and f(*[2], 1 for x in [1]) I

[issue25043] document socket constants for Bluetooth

2015-09-11 Thread Tim Tisdall
Tim Tisdall added the comment: okay, I talked to one of the Bluez developers and he recommended leaving out BDADDR_ALL since it doesn't seem to correspond to anything in the kernel. -- ___ Python tracker

[issue24899] Add an os.path <=> pathlib equivalence table in pathlib docs

2015-09-11 Thread Nikita Klimov
Changes by Nikita Klimov : -- nosy: +klimov ___ Python tracker ___ ___ Python-bugs-list

[issue25071] Windows installer requires TargetDir parameter when installing quietly

2015-09-11 Thread Steve Dower
Steve Dower added the comment: Adding Larry, as this either needs a fix or a prominent release note for 3.5.0 (or we document the bug in the docs). I *think* the fix will be fairly simple and constrained entire to one file. Should have something ready later today. -- nosy: +larry

[issue25003] os.urandom() should call getrandom(2) not getentropy(2) on Solaris 11.3 and newer

2015-09-11 Thread John Beck
John Beck added the comment: Yes, those patches work, with a caveat. While testing this, I found out why I had needed EINVAL earlier (and still do, for now): there is a bug in the Solaris implementation of getrandom(2). If flags are 0 and the buffer size > 1024, then it fails with EINVAL.