[issue24848] Warts in UTF-7 error handling

2015-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset ff1366ff2761 by Serhiy Storchaka in branch '2.7': Issue #24848: Fixed yet one bug in UTF-7 decoder. Testing for BASE64 character https://hg.python.org/cpython/rev/ff1366ff2761 -- ___ Python tracker

[issue25359] io.open() fails to open ascii file if LANG env not set

2015-10-09 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Can't reproduce on Linux. $ python2.7 io.openBugEx.py Local pref: UTF-8 LANG env: uk_UA.utf8 Local pref: ANSI_X3.4-1968 LANG env has key: False ANSI_X3.4-1968 What

[issue25357] Add an optional newline parameter to binascii.b2a_base64() to not add a newline

2015-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: With Martin's comments the patch LGTM. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue25356] Idle (Python 3.4 on Ubuntu) does not allow typing accents

2015-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do you have problems with ASCII characters "'", "^", "~", or with combining accents in "á", "â", "ã"? -- nosy: +serhiy.storchaka ___ Python tracker __

[issue24402] input() uses sys.__stdout__ instead of sys.stdout for prompt

2015-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset d8dd9015b086 by Martin Panter in branch '3.4': Issue #24402: Factor out PtyTests.run_child() in input() tests https://hg.python.org/cpython/rev/d8dd9015b086 New changeset 6a8f96b46dce by Martin Panter in branch '3.5': Issue #24402: Merge potential t

[issue24402] input() uses sys.__stdout__ instead of sys.stdout for prompt

2015-10-09 Thread Xiang Zhang
Xiang Zhang added the comment: It's my fault. I forget to recompile. Now it works. -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue24402] input() uses sys.__stdout__ instead of sys.stdout for prompt

2015-10-09 Thread Martin Panter
Martin Panter added the comment: I wrote this on Arch Linux, so I doubt your Ubuntu failure is valid. The error you see is what I would expect if the bug were not actually fixed. I suspect you need to recompile /Python/bltinmodule.c, which contains the bug fix. However, the test also hangs OS

[issue25356] Idle (Python 3.4 on Ubuntu) does not allow typing accents

2015-10-09 Thread Ankit Baruah
Ankit Baruah added the comment: Find in Files (grep) Yes can type `'^~. Output Window Yes seems to work can type `'^~ and other characters. -- ___ Python tracker ___ __

[issue24402] input() uses sys.__stdout__ instead of sys.stdout for prompt

2015-10-09 Thread Xiang Zhang
Xiang Zhang added the comment: This test also fails on Ubuntu. [1/1] test_builtin test test_builtin failed -- Traceback (most recent call last): File "/home/angwer/my-cpython/Lib/test/test_builtin.py", line 1588, in test_input_no_stdout_fileno self.assertEqual(status, 0, output) Assertion

[issue25356] Idle (Python 3.4 on Ubuntu) does not allow typing accents

2015-10-09 Thread Ankit Baruah
Ankit Baruah added the comment: Yes,i am using ubuntu. Thank you Terry for guiding me really appreciate your help. Sorry for not replying fell asleep. -- ___ Python tracker __

[issue25357] Add an optional newline parameter to binascii.b2a_base64() to not add a newline

2015-10-09 Thread Martin Panter
Martin Panter added the comment: The “newline” name seems as good as any. The patch looks good in general. I left a few comments. I agree with not bothering for the UU encoder. That encoding has an embedded line length byte at the start of each line, so it makes less sense to omit newlines. B

[issue24402] input() uses sys.__stdout__ instead of sys.stdout for prompt

2015-10-09 Thread Martin Panter
Martin Panter added the comment: Seems my test hangs the Free BSD 9 buildbot, although Free BSD 10 apparently passed. http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.x%203.4/builds/1128/steps/test/logs/stdio [390/390] test_builtin Timeout (1:00:00)! Thread 0x000801407400 (most

[issue25194] Opt-in motivations & affiliations page for core contributors

2015-10-09 Thread Nick Coghlan
Nick Coghlan added the comment: The attached "Final draft" patch is the version I plan to commit tomorrow. Major differences from the previous draft: * accepted MAL's suggestion of using alphabetical order * as RDM suggested, explained the rationale for the cases where we encourage people to p

[issue25360] pyw should search for pythonw to implement #!/usr/bin/env python

2015-10-09 Thread eryksun
Changes by eryksun : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue25360] pyw should search for pythonw to implement #!/usr/bin/env python

2015-10-09 Thread eryksun
New submission from eryksun: The Windows launcher searches PATH to implement the shebang "#!/usr/bin/env". Given "#!/usr/bin/env python", it always searches for L"python" (see issue 17903), even in pyw.exe. maybe_handle_shebang in PC/launcher.c should instead use a macro that's conditionally d

[issue25356] Idle (Python 3.4 on Ubuntu) does not allow typing accents

2015-10-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am not surprised that non-ascii chars fail also. But, all? or just a few (all symbol? or only diacriticals)? My first thought was that you have a european keyboard that is does not match your Ubuntu configuration. Or that you had an older tcl/tk that did no

[issue24402] input() uses sys.__stdout__ instead of sys.stdout for prompt

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

[issue22413] Bizarre StringIO(newline="\r\n") translation

2015-10-09 Thread Martin Panter
Martin Panter added the comment: Thanks for the feedback. Yeah, 2.7 is an independent branch, but I will try porting the changes there. -- assignee: docs@python -> martin.panter nosy: +berker.peksag stage: patch review -> commit review ___ Python tra

[issue24978] Contributing to Python 2x and 3x Documentation. Translation to Russian.

2015-10-09 Thread Sebastian A. Brachi
Sebastian A. Brachi added the comment: > I wrote a proposal to the board a while ago I couldn't find that proposal, could you post a link to it? Thanks! -- nosy: +Sebastian A. Brachi ___ Python tracker

[issue24402] input() uses sys.__stdout__ instead of sys.stdout for prompt

2015-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 425d81d10b13 by Martin Panter in branch '3.4': Issue #24402: Fix input() when stdout.fileno() fails; diagnosed by Eryksun https://hg.python.org/cpython/rev/425d81d10b13 New changeset e97d940a6543 by Martin Panter in branch '3.5': Issue #24402: Merge

[issue24402] input() uses sys.__stdout__ instead of sys.stdout for prompt

2015-10-09 Thread Martin Panter
Martin Panter added the comment: Okay I plan to commit a modified version where I moved the input() test methods that use pseudo terminals to a new PtyTests class. The test_input() method stays in the original class, because it shares a helper method with other tests. I am resisting dropping t

[issue25344] Enhancement to Logging - Logging Stack

2015-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3ad8a2d34d01 by Vinay Sajip in branch '2.7': Closes #25344: Added cookbook recipe to show buffering of logging events. https://hg.python.org/cpython/rev/3ad8a2d34d01 New changeset 7cc3a8141022 by Vinay Sajip in branch '3.4': Closes #25344: Added coo

[issue25356] Idle (Python 3.4 on Ubuntu) does not allow typing accents

2015-10-09 Thread Gian Carlo Martinelli
Gian Carlo Martinelli added the comment: Terry, first of all thanks for trying to solve this. I usually start IDLE using Ubuntu's dash. The problem is with more than just the three characters. Others that I have tested and that don't work include "ç", "`", umlauts... There work in others plac

[issue25356] Idle (Python 3.4 on Ubuntu) does not allow typing accents

2015-10-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ankit: the issue is where do they fail, why, and how to fix. Are you running Ubuntu also? G.C. How do you start IDLE? Is the problem with exactly those three chars? Do they fail in the Shell? an editor? search box? other entry box such as you get with Alt-M?

[issue25343] Document atomic operations on builtin types

2015-10-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes, I was asking where to put the disclaimer. The thread docs would be approriate if there is nothing already. Guido has been very reluctant to put any performance guarantees in the language reference. I believe he said that O(f(n)) info even for CPython sh

[issue25359] io.open() fails to open ascii file if LANG env not set

2015-10-09 Thread L
Changes by L : -- components: IO files: io.openBugEx.py nosy: sentinel priority: normal severity: normal status: open title: io.open() fails to open ascii file if LANG env not set type: crash versions: Python 2.7 Added file: http://bugs.python.org/file40737/io.openBugEx.py _

[issue25303] Add option to py_compile to compile for syntax checking without writing bytecode

2015-10-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: On the side issue: While the example given, which uses the py_compile.compile defaults via the command line interface, is useless, I disagree that writing a .pyc file for a file without .py is a bug. Python will run python code with any filename as main module

[issue21264] test_compileall fails to build in the installed location

2015-10-09 Thread Brett Cannon
Brett Cannon added the comment: I consider this fixed by way of issue #25099. If that's wrong then feel free to open the issue again. -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> test_compileall fails when run by unprivileged user o

[issue25099] test_compileall fails when run by unprivileged user on installed Python

2015-10-09 Thread Brett Cannon
Brett Cannon added the comment: Thanks to Serhiy for all of the reviews! -- resolution: -> fixed stage: commit review -> resolved ___ Python tracker ___

[issue25099] test_compileall fails when run by unprivileged user on installed Python

2015-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset 34bbd537b3e6 by Brett Cannon in branch '3.5': Issue #25099: Skip relevant tests in test_compileall when an entry on https://hg.python.org/cpython/rev/34bbd537b3e6 New changeset 21f3a92e0c6d by Brett Cannon in branch 'default': Merge for issue #25099

[issue25354] test_datetime failing

2015-10-09 Thread Tim Peters
Changes by Tim Peters : -- components: +Library (Lib) -Extension Modules, ctypes resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue25354] test_datetime failing

2015-10-09 Thread shanmbic
shanmbic added the comment: make distclean worked. I guess too many reverts in hg caused some issue. :) -- ___ Python tracker ___ ___

[issue25356] Idle (Python 3.4 on Ubuntu) does not allow typing accents

2015-10-09 Thread Ankit Baruah
Ankit Baruah added the comment: Yes same answers as Gian characters worked perfectly -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue25343] Document atomic operations on builtin types

2015-10-09 Thread R. David Murray
R. David Murray added the comment: I think you are correct, and I wouldn't be surprised if there is some in the stdlib as well. -- ___ Python tracker ___ ___

[issue24870] Optimize ascii and latin1 decoder with surrogateescape and surrogatepass error handlers

2015-10-09 Thread STINNER Victor
STINNER Victor added the comment: INADA Naoki: "I want to Python 3.4 and Python 3.5 solve this issue since it's critical problem for some people." On microbenchmarks, the optimization that I just implemented in Python 3.6 are impressive. The problem is that the implementation is quite complex.

[issue25099] test_compileall fails when run by unprivileged user on installed Python

2015-10-09 Thread Brett Cannon
Brett Cannon added the comment: I have addressed Serhiy's comments again. -- Added file: http://bugs.python.org/file40736/issue25099.diff ___ Python tracker ___ _

[issue24870] Optimize ascii and latin1 decoder with surrogateescape and surrogatepass error handlers

2015-10-09 Thread STINNER Victor
STINNER Victor added the comment: Short summary. Ok, I optimized ASCII, Latin1 and UTF-8 codecs (encoders and decoders) for the most common error handlers. * ASCII and Latin1 encoders: surrogateescape, replace, ignore, backslashreplace, xmlcharrefreplace * ASCII decoder: surrogateescape, repl

[issue25303] Add option to py_compile to compile for syntax checking without writing bytecode

2015-10-09 Thread Pavel Roskin
Pavel Roskin added the comment: That's what I have now: check: $(PYTHON) -m py_compile $(SOURCES) rm -f $(addsuffix c, $(SOURCES)) make check python -m py_compile redacted-build redacted-git-diff redacted-git-gc redacted-git-status redacted-init redacted-server redactedbuilder.

[issue25356] Idle (Python 3.4 on Ubuntu) does not allow typing accents

2015-10-09 Thread Gian Carlo Martinelli
Gian Carlo Martinelli added the comment: 1) Do the keys work in the Ubuntu console? Yes. 2) Do the keys work in interactive python (not IDLE), started with 'python' at the console prompt. Yes. 3) In IDLE, go to Help->About IDLE. What is the Tk version. Best if 8.6.x, if before 8.5.18, upgra

[issue25356] Idle (Python 3.4 on Ubuntu) does not allow typing accents

2015-10-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: IDLE uses tkinter which wraps the tcl/tk GUI framework. Tk handles key presses. So this is almost certainly not an IDLE bug, or even a tkinter bug. Unless you can demonstrate otherwise, I will closing this as a CPython issue. Since this is the first report I

[issue25349] Use _PyBytesWriter for bytes%args

2015-10-09 Thread STINNER Victor
STINNER Victor added the comment: Ok, I implemented all optimizations which were already implemented in str % args. I close the issue. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue25356] Idle (Python 3.4 on Ubuntu) does not allow typing accents

2015-10-09 Thread Ankit Baruah
Ankit Baruah added the comment: Hello, i am totally new.I went through Pythons Developers guide and would like to learn so please tell me what i should learn to resolve this issue. -- nosy: +@nkit ___ Python tracker

[issue25099] test_compileall fails when run by unprivileged user on installed Python

2015-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added new comments. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue25349] Use _PyBytesWriter for bytes%args

2015-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset d9a89c9137d2 by Victor Stinner in branch 'default': Issue #25349: Optimize bytes % int https://hg.python.org/cpython/rev/d9a89c9137d2 New changeset 4d46d1588629 by Victor Stinner in branch 'default': Issue #25349: Add fast path for b'%c' % int https

[issue25343] Document atomic operations on builtin types

2015-10-09 Thread Dima Tisnek
Dima Tisnek added the comment: To clarify, Python language disclaimer can be in the general atomic operations or multithreading section. What I'd really like to see is documented, practical CPython and stdlib behaviour. I'm under the impression that there's quite a bit of code out there that

[issue25358] Unexpected behaviour when converting large float to int

2015-10-09 Thread eryksun
eryksun added the comment: int(float_version) is returning the actual integer value represented by the float, which is the closest approximation possible using an [IEEE 754 binary64][1], i.e. a C double. Here's one way to compute this value manually: from struct import pack from fracti

[issue25352] Add 'make this my default python' to windows installs for Python3.5 and later

2015-10-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: There used to be such a checkbox, but apparently it had problems. But there is still something with that effect, at least in part. When I installed 3.5.0, 'python' was switched from 3.4 to 3.5. That did not happen with the preliminary releases, because I di

[issue25343] Document atomic operations on builtin types

2015-10-09 Thread R. David Murray
R. David Murray added the comment: I think what Terry was asking was, where would you expect to see the disclaimer that *no* operations are guaranteed to be atomic? That's what we're inclining toward (though we'll probably need a signoff from Guido). -- __

[issue25349] Use _PyBytesWriter for bytes%args

2015-10-09 Thread STINNER Victor
STINNER Victor added the comment: I wrote bench_bytes_int.py micro-benchmark, results are below. Oh, I did'n expected a real difference even for simple code like b'%d' % 12345 (32% faster). So I consider that it's enough to apply the optimization. Common platform: Timer: time.perf_counter Bits

[issue25311] Add f-string support to tokenize.py

2015-10-09 Thread Ankit Baruah
Changes by Ankit Baruah : -- nosy: -@nkit ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue17908] Unittest runner needs an option to call gc.collect() after each test

2015-10-09 Thread Ankit Baruah
Changes by Ankit Baruah : -- nosy: -@nkit ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue25343] Document atomic operations on builtin types

2015-10-09 Thread Dima Tisnek
Dima Tisnek added the comment: Ideally I'd like 2 sources: 1. a whole section on atomic operations in language and CPython implementation 2. annotation of standard library methods, e.g.: set().add(element) [atomic] or [CPython: atomic(*)] (*) assuming basic types, note about what custom method

[issue25354] test_datetime failing

2015-10-09 Thread R. David Murray
R. David Murray added the comment: Yes, I find that if there's something that might be a compilation problem, doing a make distclean and a build from scratch is a good idea to confirm it. -- ___ Python tracker ___

[issue25354] test_datetime failing

2015-10-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Maybe @shanmbic has a clock skew and _datetime.so does not get recompiled? I would try to do make clean or even make distclean and rebuild everything. -- ___ Python tracker

[issue25347] assert_has_calls output is formatted inconsistently

2015-10-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5 ___ Python tracker ___ ___ Pytho

[issue25343] Document atomic operations on builtin types

2015-10-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: This question has been asked multiple times before. I think it should be documented that as far as the language goes, there is no answer. Raymond's answer is a start. Dima, where would you expect to find such a disclaimer (other than in the FAQ)? -

[issue17908] Unittest runner needs an option to call gc.collect() after each test

2015-10-09 Thread Ankit Baruah
Changes by Ankit Baruah : -- nosy: +@nkit ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue25311] Add f-string support to tokenize.py

2015-10-09 Thread Ankit Baruah
Changes by Ankit Baruah : -- nosy: +@nkit ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue25303] Add option to py_compile to compile for syntax checking without writing bytecode

2015-10-09 Thread R. David Murray
R. David Murray added the comment: Well, the thing is that py_compile *already* has all the needed logic, the flag would just allow us to add an if statement before the two lines that write the compiled bytecode out to the file system. py_compile also has the advantage that it supports the im

[issue25329] test_json crashes with stack overflow on Windows

2015-10-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: See also #25342 and its list of related failures. -- nosy: +terry.reedy ___ Python tracker ___ ___ P

[issue25341] File mode wb+ appears as rb+

2015-10-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +benjamin.peterson, pitrou, stutzbach ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue25335] ast.literal_eval fails to parse numbers with leading "+"

2015-10-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am pretty sure the 2.x anomaly is tied up with having short ints plus the anomaly of having one more negative than positive int. >>> 2147483648 2147483648L >>> -(2147483648) -2147483648L >>> -2147483648 -2147483648 I believe the last result was once the same

[issue25358] Unexpected behaviour when converting large float to int

2015-10-09 Thread Nicolas Primeau
New submission from Nicolas Primeau: Converting arbitrarily large float type numbers to integer type number results in a non trivially different number. This can be repeated in all Python versions, same with Python 2 with longs. Expected behaviour would be an integer representation of 1e+44, a

[issue25303] Add option to py_compile to compile for syntax checking without writing bytecode

2015-10-09 Thread Brett Cannon
Brett Cannon added the comment: You can verify a script is syntactically correct by compiling it to an AST or just calling compile() which is another way of doing essentially what `import` does but without having to worry about import-related side-effects in the code being checked. But is thi

[issue25099] test_compileall fails when run by unprivileged user on installed Python

2015-10-09 Thread Brett Cannon
Brett Cannon added the comment: Here is a new patch that addresses Serhiy's comments. -- Added file: http://bugs.python.org/file40734/issue25099.diff ___ Python tracker ___ _

[issue25099] test_compileall fails when run by unprivileged user on installed Python

2015-10-09 Thread Brett Cannon
Changes by Brett Cannon : -- stage: patch review -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue25354] test_datetime failing

2015-10-09 Thread Tim Peters
Tim Peters added the comment: This is just hard to believe. The symptom you describe is exactly what's expected if you got the new test suite but did not compile the new C code, both added by the fix for: http://bugs.python.org/issue23600 Since we have numerous buildbots on which the tes

[issue25303] Add option to py_compile to compile for syntax checking without writing bytecode

2015-10-09 Thread R. David Murray
R. David Murray added the comment: OK, I'll change the title to reflect the current proposal, and we'll see if anyone is interested in proposing a patch. The bug with python -m py_compile is when you do: python -m py_compile myscript where myscript is a file containing python code (note t

[issue25354] test_datetime failing

2015-10-09 Thread shanmbic
shanmbic added the comment: @belopolsky - Yeah, I recompiled all the C modules successfully, still it fails the test. I am running Ubuntu 14.10 -- ___ Python tracker ___ ___

[issue25334] telnetlib: process_rawq() and binary data

2015-10-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: A new method is an API change is an enhancement only allowed in a future version. If this is the only change needed to support another RFC also, the idea seems plausible, but I am not an Inet protocol expert. https://tools.ietf.org/html/rfc854.html https://to

[issue25331] Using Windows doc should list service packs needed to install

2015-10-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> needs patch title: https://docs.python.org/3.5/using/windows.html should list whcih windows service packs are -> Using Windows doc should list service packs needed to install type: -> enhancement versions: +Python 3.5, Python 3.6

[issue19500] Error when connecting to FTPS servers not supporting SSL session resuming

2015-10-09 Thread Alex Warhawk
Alex Warhawk added the comment: Even after enabling client cache one still has to call SSL_set_session. See documentation of SSL_CTX_set_session_cache_mode point SSL_SESS_CACHE_CLIENT. I started thinking about not exposing a SSL_SESSION object to the user but rather extending wrap_socket to ta

[issue25307] Enhancing the argparse help output

2015-10-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +bethard versions: +Python 3.6 -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue25320] unittest loader.py TypeError when code directory contains a socket

2015-10-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +ezio.melotti, michael.foord, rbcollins versions: +Python 3.6 ___ Python tracker ___ ___ Python-b

[issue25312] Cryptic error message if incorrect spec is set on a callable mock

2015-10-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue25303] py_compile disregards PYTHONDONTWRITEBYTECODE and -B

2015-10-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that the proposal as written should be rejected. I am inclined to think this issue should be closed. I do not understand the claim about 'python -m py_compile'. For me, this does nothing, as I would expect from reading the code. If args = sys.arg[1:

[issue12939] Add new io.FileIO using the native Windows API

2015-10-09 Thread Steve Dower
Changes by Steve Dower : -- nosy: +steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue25352] Add 'make this my default python' to windows installs for Python3.5 and later

2015-10-09 Thread Steve Dower
Steve Dower added the comment: They can find the 3.5 shortcut in their Start Menu (either by browsing or searching for "IDLE") and then move that to their desktop. Depending on operating system version, moving it could be: * drag from the Start Menu to the desktop and drop it * right-click and

[issue25357] Add an optional newline parameter to binascii.b2a_base64() to not add a newline

2015-10-09 Thread STINNER Victor
STINNER Victor added the comment: Oh by the way, the new parameter is a keyword only parameter. It's not possible to write b2a_base64(data, False). Maybe I should also add an unit test for this. -- ___ Python tracker

[issue25357] Add an optional newline parameter to binascii.b2a_base64() to not add a newline

2015-10-09 Thread STINNER Victor
STINNER Victor added the comment: Updated patch to take Serhiy's comments in account and now with an unit test! -- Added file: http://bugs.python.org/file40733/binascii_b2a_base64_newline-2.patch ___ Python tracker

[issue25357] Add an optional newline parameter to binascii.b2a_base64() to not add a newline

2015-10-09 Thread STINNER Victor
STINNER Victor added the comment: Oh, I forgot to add an unit test. > What about adding the same parameter to binascii.b2a_uu()? This function is used in Lib/encodings/uu_codec.py and Lib/uu.py, but the newline is not stripped. So I don't think that it's worth to add an optional parameter. -

[issue25349] Use _PyBytesWriter for bytes%args

2015-10-09 Thread STINNER Victor
STINNER Victor added the comment: bytes_formatlong.patch: Fast-path for b'%d' % int and other integer formatters. It avoids the creation of a temporary bytes object, it writes directly into the writer, as '%d' % int (Unicode). -- Added file: http://bugs.python.org/file40732/bytes_forma

[issue25354] test_datetime failing

2015-10-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: @shanmbic - did you recompile C modules before running the tests? -- ___ Python tracker ___ __

[issue25357] Add an optional newline parameter to binascii.b2a_base64() to not add a newline

2015-10-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: +1. Not sure about the parameter name, but if no one suggests better, it LGTM. Added comments on Rietveld. What about adding the same parameter to binascii.b2a_uu()? -- nosy: +ncoghlan, pitrou, serhiy.storchaka __

[issue25303] py_compile disregards PYTHONDONTWRITEBYTECODE and -B

2015-10-09 Thread Éric Araujo
Éric Araujo added the comment: I had the same reasoning as RDM when I worked on byte-compilation in distutils2: https://hg.python.org/distutils2/rev/7c0a88497b5c Using py_compile or compileall means that you want to create pyc or pyo files. Defining PYTHONDONTWRITEBYTECODE or -B means that you

[issue25357] Add an optional newline parameter to binascii.b2a_base64() to not add a newline

2015-10-09 Thread STINNER Victor
New submission from STINNER Victor: The base64.b64encode() function calls binascii.b2a_base64() and then strips the newline. It would be more efficient to directly not add a newline. Attached patch adds an optional newline parameter to binascii.b2a_base64(). It also modifies base64.b64encode()

[issue25352] Add 'make this my default python' to windows installs for Python3.5 and later

2015-10-09 Thread Laura Creighton
Laura Creighton added the comment: checking, these kids are using computers where, at some point, somebody moved the idle shortcut from their 2.7 folder to the desktop. Which was probably a very bad idea. But what should I tell them to do to get 3.5 there instead? (adding IDLE to 'Type') --

[issue25336] Segmentation fault on Mavericks consistent crashing of software: Please HELP!!!!!

2015-10-09 Thread CM
CM added the comment: I understood what Ned meant, and I did seek advice from the third party software creator, it was the first thing I did because like you stated I thought it was an issue with the third party software and not python. Coming to this bug website was my last resort but I can s

[issue25336] Segmentation fault on Mavericks consistent crashing of software: Please HELP!!!!!

2015-10-09 Thread R. David Murray
R. David Murray added the comment: I think Ned meant "it is *not* likely to be in the python interpreter or standard library", and that you should seek help from the third party people trying to track down the problem. *If* it turns out to be python or the stdlib, which means you've managed t

[issue25336] Segmentation fault on Mavericks consistent crashing of software: Please HELP!!!!!

2015-10-09 Thread CM
CM added the comment: Hi Thanks for your response. So as you have correctly surmised I am using a software package call oof. I ran the package using gdb and this is the output that I got. I'm having the same issue on i.e. Segmentation fault on three machines, one is a Linux Centos/Redhat serve

[issue25356] Idle (Python 3.4 on Ubuntu) does not allow typing accents

2015-10-09 Thread Gian Carlo Martinelli
New submission from Gian Carlo Martinelli: IDLE (using Python 3.4 on Ubuntu) does not recognize accent key presses (ex: ~, ^, '). This makes it impossible to program in some languages. -- components: IDLE messages: 252620 nosy: Gian Carlo Martinelli priority: normal severity: normal st

[issue25311] Add f-string support to tokenize.py

2015-10-09 Thread Eric V. Smith
Eric V. Smith added the comment: My first attempt. Many more tests are needed. I'm going to need to spend some time trying to figure out how parts of tokenize.py actually works. I'm not sure, for example, that endpats is initialized correctly. There definitely aren't enough tests, since if I c

[issue25355] Windows 3.5 installer does not add python to "App Paths" key

2015-10-09 Thread Oscar Benjamin
New submission from Oscar Benjamin: >From the mailing list: https://mail.python.org/pipermail/python-list/2015-October/697744.html ''' The new installer for 3.5 doesn't create an "App Paths" key for "python.exe" like the old installer used to do (see the old Tools/msi/msi.py). Without that, unle

[issue25354] test_datetime failing

2015-10-09 Thread R. David Murray
R. David Murray added the comment: No, that delta being one hour is the whole point of that test. I've nosied Alexander. He'll probably need more information about the environment in which you are seeing this. -- nosy: +r.david.murray ___ Python tr

[issue25328] ValueError in smtpd.py __init__() is not raised

2015-10-09 Thread R. David Murray
R. David Murray added the comment: Thanks, Xiang. Your analysis was correct and your patch is good. For anyone who is curious, Barry discovered this while writing tests for a new aiosmtpd, which is based on the existing smtpd code. -- resolution: -> fixed stage: -> resolved status:

[issue25328] ValueError in smtpd.py __init__() is not raised

2015-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset d471cf4a73b2 by R David Murray in branch '3.5': #25328: add missing raise keyword in decode_data+SMTPUTF8 check. https://hg.python.org/cpython/rev/d471cf4a73b2 New changeset 576128c0d068 by R David Murray in branch 'default': Merge #25328: add missi

[issue6953] readline documenation needs work

2015-10-09 Thread Gabi Davar
Changes by Gabi Davar : -- nosy: +Gabi.Davar ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue25350] Stronger type enforcement (feature request)

2015-10-09 Thread R. David Murray
R. David Murray added the comment: Check out the types module and PEP 484. -- nosy: +r.david.murray resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue25228] Regression in cookie parsing with brackets and quotes

2015-10-09 Thread R. David Murray
R. David Murray added the comment: Yes, we should get signoff from someone who was involved in the original security fix, since it was a security fix. -- nosy: +r.david.murray ___ Python tracker __

[issue25311] Add f-string support to tokenize.py

2015-10-09 Thread Eric V. Smith
Eric V. Smith added the comment: Oops, make that 80 combinations (I forgot the various 'fb' ones): ['B', 'BF', 'BFR', 'BFr', 'BR', 'BRF', 'BRf', 'Bf', 'BfR', 'Bfr', 'Br', 'BrF', 'Brf', 'F', 'FB', 'FBR', 'FBr', 'FR', 'FRB', 'FRb', 'Fb', 'FbR', 'Fbr', 'Fr', 'FrB', 'Frb', 'R', 'RB', 'RBF', 'RBf',

  1   2   >