[issue25277] test_sigwaitinfo() of test_eintr hangs on randomly on FreeBSD buildbots

2015-10-09 Thread STINNER Victor
STINNER Victor added the comment: The bug was reproduced with faulthandler: FAIL: test_all (test.test_eintr.EINTRTests) Timeout (0:10:00)! Thread 0x000802006400 (most recent call first): File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/eintrdata/eintr_tester.py", line 4

[issue25287] test_crypt fails on OpenBSD

2015-10-09 Thread STINNER Victor
STINNER Victor added the comment: Hum, the test now fails differently :-( == FAIL: test_methods (test.test_crypt.CryptTestCase) -- Traceback (most recent call l

[issue25306] test_huntrleaks_fd_leak() of test_regrtest hangs on Windows

2015-10-09 Thread STINNER Victor
STINNER Victor added the comment: Ok, it looks like the issue was fixed. -- keywords: +buildbot resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue25351] pyvenv activate script failure with specific bash option

2015-10-09 Thread s-wakaba
New submission from s-wakaba: When writing bash shellscripts, I always set options "set -ueC" for strict error checking. However, loading pyvenv's activate and deactivate scripts from bash with "-u" option, they are failure because they may refer undefined shell variables. I hope activate scr

[issue25344] Enhancement to Logging - Logging Stack

2015-10-09 Thread Vinay Sajip
Vinay Sajip added the comment: This is already supported. There is a logging.handlers.MemoryHandler which allows you to buffer logging events and then pass the buffered events to another handler when some condition is met, such as e.g. buffer full or some severity threshold is exceeded. Flushi

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

2015-10-09 Thread Laura Creighton
New submission from Laura Creighton: webmaster is hearing from children who have downloaded 3.5 but who are still getting 2.7 when they click on desktop Python icons, and type python at a console prompt. a checkbox on the installer saying 'make this my default python' that would then go off any

[issue25349] Use _PyBytesWriter for bytes%args

2015-10-09 Thread STINNER Victor
STINNER Victor added the comment: bench_bytes_format.py: micro-benchmark testing a few formats. Some tests are focused on the implementation of _PyBytesWriter to ensure that the optimization is efficient. Except of a single test (which is not really revelant, it takes less than 500 nanosecond

[issue25349] Use _PyBytesWriter for bytes%args

2015-10-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset b2f3cbdc0f2d by Victor Stinner in branch 'default': Issue #25349: Optimize bytes % args using the new private _PyBytesWriter API https://hg.python.org/cpython/rev/b2f3cbdc0f2d -- nosy: +python-dev ___ Pyt

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

2015-10-09 Thread Emanuel Barry
Emanuel Barry added the comment: What about the `py' launcher? It will always launch the latest installed version. -- nosy: +ebarry ___ Python tracker ___ __

[issue25353] Use _PyBytesWriter for unicode escape and raw unicode escape encoders

2015-10-09 Thread STINNER Victor
New submission from STINNER Victor: Attached patch modifies unicode escape and raw unicode escape encoders to use the new _PyBytesWriter API. The patch is optimized to encode Latin1 characters: encoding Latin1 characters when no character is escaped should not have to call _PyByte_Resize() at

[issue25353] Use _PyBytesWriter for unicode escape and raw unicode escape encoders

2015-10-09 Thread STINNER Victor
STINNER Victor added the comment: A few more encoders should be updated to use _PyBytesWriter API: * Code Page (Windows only) * Charmap * UTF-7 * UTF-16 * UTF-32 -- ___ Python tracker _

[issue25353] Use _PyBytesWriter for unicode escape and raw unicode escape encoders

2015-10-09 Thread STINNER Victor
STINNER Victor added the comment: The _PyBytesWriter API was added in the issue #25318. See also the issue #25349 which optimized bytes % args. -- ___ Python tracker ___ ___

[issue25318] Add _PyBytesWriter API to optimize Unicode encoders

2015-10-09 Thread STINNER Victor
STINNER Victor added the comment: Buildbots still like this new API :-) (no test failure recently) I reworked the API a little bit to make its usage simpler in Unicode encoders. I started to open new issues to using this new API in more functions producing byte strings. I consider that this i

[issue25300] Enable Intel MPX (Memory protection Extensions) feature

2015-10-09 Thread Florin Papa
Changes by Florin Papa : Added file: http://bugs.python.org/file40729/mpx_enable_2_7_v4.patch ___ Python tracker ___ ___ Python-bugs-list mail

[issue25300] Enable Intel MPX (Memory protection Extensions) feature

2015-10-09 Thread Florin Papa
Florin Papa added the comment: I have modified the small object allocator to set proper bounds for the pointers it returns. Please see the updated patches. -- Added file: http://bugs.python.org/file40728/mpx_enable_3_6_v4.patch ___ Python tracker <

[issue25300] Enable Intel MPX (Memory protection Extensions) feature

2015-10-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks. For the record, the whole test suite still passes? This is good to know :) -- ___ Python tracker ___ __

[issue25300] Enable Intel MPX (Memory protection Extensions) feature

2015-10-09 Thread Florin Papa
Florin Papa added the comment: I ran the full Grand Unified Python Benchmarks suite on Python 3.6 and 2.7 before submitting the patches and everything went well. Sorry I did not mention it :) -- ___ Python tracker

[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: The py launcher will prefer 2.7 because that's what was decided when it was added. We're probably getting to a stage where we can revert that. Unfortunately, there's no way we can reliably fix system configuration without corrupting the users machine. Using the p

[issue25300] Enable Intel MPX (Memory protection Extensions) feature

2015-10-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: I meant the test suite ("python -m test.regrtest"). I presume you did, just checking :-) -- ___ Python tracker ___

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

2015-10-09 Thread Emanuel Barry
Emanuel Barry added the comment: Oh, I didn't know the py launcher preferred 2.7 - I always work with 3.x; my bad. -- ___ Python tracker ___

[issue25300] Enable Intel MPX (Memory protection Extensions) feature

2015-10-09 Thread Florin Papa
Florin Papa added the comment: I ran regrtest now and there are a few tests that fail. I will look into the cause of this and provide a solution. -- ___ Python tracker ___ _

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

2015-10-09 Thread Eric V. Smith
Eric V. Smith added the comment: I think the best way to approach this is to generate (in code) all of the places where string prefixes appear. There's StringPrefix, endpats, triple_quotes, and single_quoted. With the currently valid combinations of f, b, r, and u, I count 24 combinations: ['

[issue25354] test_datetime failing

2015-10-09 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue25354] test_datetime failing

2015-10-09 Thread shanmbic
New submission from shanmbic: The test for datetime module keeps failing. test test_datetime failed -- Traceback (most recent call last): File "/home/shantanu/cpython/Lib/test/datetimetester.py", line 215, in test_issue23600 self.assertEqual(t - t.utcoffset(), u) AssertionError: datet[22

[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',

[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 __

[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

[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

[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

[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:

[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

[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

[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

[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

[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

[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: 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

[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') --

[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()

[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 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 __

[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 ___ __

[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

[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. -

[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 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

[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

[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

[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:

[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

[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

[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

[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

[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

[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

[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 ___ ___

[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 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

[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

[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 ___ _

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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

[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 ___

[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

[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.

[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.

[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

[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). -- __

[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

[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

[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

[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

[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 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

[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

[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

[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.

[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

[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: 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.

[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 ___ ___

[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

[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 ___ ___

[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 ___ _

[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

[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

[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

[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 _

[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

  1   2   >