[issue25833] pyvenv: venvs cannot be moved because activate scripts hard-code paths

2016-02-12 Thread Ned Deily
Changes by Ned Deily : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue25829] Mixing multiprocessing pool and subprocess may create zombie process, and cause program to hang.

2016-02-12 Thread Ned Deily
Changes by Ned Deily : -- nosy: +davin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/

[issue26182] Deprecation warnings for the future async and await keywords in Python 3.6

2016-02-12 Thread Brett Cannon
Brett Cannon added the comment: Because parsing is done before execution you can't flip on warnings during runtime in the file you to be affected. As for the line number, that's because it's raise in C code that doesn't have a trigger in Python code. Try importing the code and you should get t

[issue25796] Running test_multiprocessing_spawn is slow (more than 8 minutes)

2016-02-12 Thread Ned Deily
Changes by Ned Deily : -- nosy: +davin, sbt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue26348] activate.fish sets VENV prompt incorrectly

2016-02-12 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue25726] sys.setprofile / sys.getprofile asymetry

2016-02-12 Thread Ned Deily
Changes by Ned Deily : -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue25713] Setuptools included with 64-bit Windows installer is outdated

2016-02-12 Thread Ned Deily
Ned Deily added the comment: Thanks for the report but, since 3.5.1 has subsequently been released, I don't think there is any reason to keep this open. The distributions vendored with ensurepip - like pip, setuptools, and their dependencies - will typically become out-of-date after any Pytho

[issue25179] PEP 498 f-strings need to be documented

2016-02-12 Thread Martin Panter
Martin Panter added the comment: Hopefully that did it. Let me know if I missed anything. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker _

[issue25709] Problem with string concatenation and utf-8 cache.

2016-02-12 Thread Ned Deily
Changes by Ned Deily : -- stage: patch review -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue26145] PEP 511: Add sys.set_code_transformers()

2016-02-12 Thread STINNER Victor
STINNER Victor added the comment: TODO: implement a fast-path for PyCode_Optimize() avoiding completly the "expensive" code transformer API, before the first call to sys.set_code_transformer(). It would avoid list <=> tuple conversions for code constants, and the need of creating two code obj

[issue25179] PEP 498 f-strings need to be documented

2016-02-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset f4d7de7d18c0 by Martin Panter in branch 'default': Issue #25179: Documentation for formatted string literals aka f-strings https://hg.python.org/cpython/rev/f4d7de7d18c0 -- ___ Python tracker

[issue26354] re.I does not work as expected

2016-02-12 Thread Ezio Melotti
Ezio Melotti added the comment: See #11957 -- resolution: -> not a bug stage: -> resolved status: open -> closed superseder: -> re.sub confusion between count and flags args ___ Python tracker __

[issue26354] re.I does not work as expected

2016-02-12 Thread Matthew Barnett
Matthew Barnett added the comment: The 4th argument of re.sub is the count, not the flags. Not a bug. -- ___ Python tracker ___ ___ P

[issue26155] 3.5.1 installer issue on Win 7 32 bit

2016-02-12 Thread TarotRedhand
TarotRedhand added the comment: The precise location it was installed to was C:\Users\Nigel\Python35-32. It was supposed to install to my F:\ (labelled DATA) drive. After all this time I don't remember the actual folder it was supposed to use. Incidentally, I have 3 physical HDs. F:\ is a 2tb

[issue26145] PEP 511: Add sys.set_code_transformers()

2016-02-12 Thread STINNER Victor
STINNER Victor added the comment: Patch version 6: updated to the new code_transformer() API, it now takes a code object as input and must return a new code object. Sadly, it looks like there are reference leaks (try: ./python -m test -R 3:3 test_import). -- Added file: http://bugs.py

[issue26354] re.I does not work as expected

2016-02-12 Thread Magesh Kumar
New submission from Magesh Kumar: I am in the process of re.sub the tag with empty string from a xml output line. If "re.I" is used, I am not able to remove the complete tag. >>> a 'ype="str">falseDefaultMulticastClien

[issue26317] Build Problem with GCC + Macintosh OS X 10.11 El Capitain

2016-02-12 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue26317] Build Problem with GCC + Macintosh OS X 10.11 El Capitain

2016-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: When you reply by email to an email, please snip off the quote, except for possible a line that you are responding to. The disposition of this issue for 3.5+ is up to Ned or Ronald. -- ___ Python tracker

[issue26334] bytes.translate() doesn't take keyword arguments; docs suggests it does

2016-02-12 Thread Nicholas Chammas
Nicholas Chammas added the comment: Yep, you're right. I'm just understanding now that we have lots of methods defined in C which have signatures like this. Is there an umbrella issue, perhaps, that covers adding support for keyword-based arguments to functions defined in C, like `translate()`

[issue26349] Ship python35.lib with the embedded distribution, please

2016-02-12 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +steve.dower versions: +Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue26348] activate.fish sets VENV prompt incorrectly

2016-02-12 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +vinay.sajip stage: -> patch review versions: -Python 3.3, Python 3.4 ___ Python tracker ___ __

[issue26340] modal dialog with transient method; parent window fails to iconify

2016-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: I changed 'Tkinter' to 'tkinter' and added 'root' to the Toplevel call and got the same behavior running from IDLE on Win10. I am not sure this is a python bug, as opposed to a change in behavior. Modal dialogs tend to disable everything else and tk and or W

[issue13501] Make libedit support more generic; port readline / libedit to FreeBSD

2016-02-12 Thread Martin Panter
Martin Panter added the comment: Thanks for the review Ned. I haven’t looked too closely but your comments sound reasonable in general. I don’t have a personal need to update this patch (Editline doesn’t work well for me on Linux), but I can try to update it if there is demand for this. Regar

[issue26335] Make mmap.write return the number of bytes written like other write methods

2016-02-12 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +twouters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue26334] bytes.translate() doesn't take keyword arguments; docs suggests it does

2016-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is a known, generic issue with c-coded functions. Some C functions have been converted, especially those with boolean parameters, and especially those with multiple boolean parameters. I think, but an not sure, that / is sometimes used to signal that the

[issue26333] Multiprocessing imap hangs when generator input errors

2016-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: If you add the "if __name__ == '__main__':" guard after defining the target function, as specified in the multiprocessing doc, you will get a traceback much as you expect: Traceback (most recent call last): File "F:\Python\mypy\tem.py", line 12, in for

[issue23430] socketserver.BaseServer.handle_error() should not catch exiting exceptions

2016-02-12 Thread Martin Panter
Martin Panter added the comment: Here is an updated version for 3.6. I also wrote an entry for What’s New. It seems my change could help people trying to make a single-threaded server quit the server loop (Issue 13749). -- versions: +Python 3.6 -Python 3.5 Added file: http://bugs.pytho

[issue23992] multiprocessing: MapResult shouldn't fail fast upon exception

2016-02-12 Thread Charles-François Natali
Changes by Charles-François Natali : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue24303] OSError 17 due to _multiprocessing/semaphore.c assuming a one-to-one Pid -> process mapping.

2016-02-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset d3662c088db8 by Charles-François Natali in branch '2.7': Issue #24303: Fix random EEXIST upon multiprocessing semaphores creation with https://hg.python.org/cpython/rev/d3662c088db8 -- nosy: +python-dev _

[issue21140] Idle: saving Shell or an OutputWindow should default to .txt

2016-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: In #11830 I suggested that Shell should be added to this issue. #26327 does the same, as the prompt and output are not code. At least in 3.x, these mixed code and text files should be encoded utf-8 (which is the same as ascii for all ascii files), as code file

[issue26327] IDLE: File > Save in 2.7 Shell with non-ascii fails

2016-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: You raised three issues. 1. If you run IDLE from a console (Command Prompt or Powershell) you will see the no-save cause. C:\Users\Terry>py -m idlelib.idle Exception in Tkinter callback ... File "C:\Programs\Python27\lib\idlelib\IOBinding.py", line 433, in e

[issue26353] IDLE: Saving Shell should not add \n

2016-02-12 Thread Terry J. Reedy
New submission from Terry J. Reedy: When one saves the IDLE Shell window, at least when the cursor is at the prompt, \n is added, so that >>> | changes to >>> | This seems wrong. It does not happen in editor windows. I should check Output Windows. -- messages: 260205 nosy: terry.

[issue26350] Windows: signal doc should state certains signals can't be registered

2016-02-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- title: Windoes: signal doc should state certains signals can't be registered -> Windows: signal doc should state certains signals can't be registered ___ Python tracker ___

[issue26352] getpass incorrectly displays password prompt on stderr on fallback

2016-02-12 Thread Matt Hooks
Matt Hooks added the comment: Patch attached. I'm unsure whether forcing the warning message to stderr is the right choice here, but it seems unlikely that users would want their warning and password prompt on the same stream. The alternative here would be a second kwarg, but that seems over

[issue26352] getpass incorrectly displays password prompt on stderr on fallback

2016-02-12 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue25887] awaiting on coroutine more than once should be an error

2016-02-12 Thread Yury Selivanov
Yury Selivanov added the comment: > I haven't looked at the patch, but the intent to make the 2nd > await raise a RuntimeError seems strange for several reasons: > - it's inconsistent with the Future/Task interface; Well, coroutines are much more lower level than Future/Tasks. > - it's quite

[issue26352] getpass incorrectly displays password prompt on stderr on fallback

2016-02-12 Thread Matt Hooks
New submission from Matt Hooks: When calling getpass.getpass(), certain circumstances cause it to fallback to getpass.fallback_getpass, such as when swapping out sys.stdin for another object in a unit test. In such a circumstance, fallback_getpass may be called with stream=None when getpass i

[issue26350] Windoes: signal doc should state certains signals can't be registered

2016-02-12 Thread Eryk Sun
Eryk Sun added the comment: All of the implemented signals can be registered, and the associated handler can at least be executed by calling the C raise() function. However, for pure-Python code only SIGINT and SIGBREAK are really useful. FYI, Windows doesn't implement POSIX signals at the sys

[issue25887] awaiting on coroutine more than once should be an error

2016-02-12 Thread André Caron
André Caron added the comment: Hi there! I've just stumbled upon this behavior and I was also surprised by the fact that the second await simply returns None. After fiddling around for a while, I noticed that if I wrap the coroutine object using asyncio.ensure_future() or asyncio.get_event_lo

[issue26326] Named entity "vertical line" missed in 2.7 htmlentitydefs.py

2016-02-12 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +ezio.melotti stage: -> test needed type: -> behavior ___ Python tracker ___ ___ Python-bugs-li

[issue26319] Check recData size before unpack in zipfile

2016-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: The bug was not noticing the length mismatch caused by a corrupt zip file. It is already fixed. The last link in your message opens https://hg.python.org/cpython/file/2.7/Lib/zipfile.py#l238. A few lines further, the code now has an added guard. re

[issue26318] `io.open(fd, ...).name` returns numeric fd instead of None

2016-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.4 only gets security fixes. 3.5 only gets bug fixes. Feature changes ('enhancements') are limited to future versions. This is not a behavior issue because the code and doc match. https://docs.python.org/3/library/io.html#io.FileIO.name says (as Martin pa

[issue26342] Faster bit ops for single-digit positive longs

2016-02-12 Thread Yury Selivanov
Yury Selivanov added the comment: > with patch: 0.404usec without patch: 0.41 Sorry, I made a typo: these results should be flipped -- 0.41-0.404 is the overhead of the fastpath's 'if' check. I'd say it's a pretty small overhead -- we already optimize all other long ops, including bit in

[issue26342] Faster bit ops for single-digit positive longs

2016-02-12 Thread Yury Selivanov
Yury Selivanov added the comment: > Does this patch have effect with results over 8 bits? -m timeit -s "x=2**40" "x&2;x&2;x&2;x&333;x&3;x&3;x&;x&4" with patch: 0.404usec without patch: 0.41 > Does it have effect after applying patches from 24165? I'm not sure how it's related, but l

[issue26317] Build Problem with GCC + Macintosh OS X 10.11 El Capitain

2016-02-12 Thread Robert P Fischer
Robert P Fischer added the comment: Could this be fixed on 3.5 and 3.6? On Fri, Feb 12, 2016 at 2:34 PM, Terry J. Reedy wrote: > > Terry J. Reedy added the comment: > > 3.4 only gets security fixes > > -- > nosy: +terry.reedy > stage: -> needs patch > type: -> compile error > version

[issue24961] shell stdout broken after exiting interactive python prompt

2016-02-12 Thread Julian Mehnle
Changes by Julian Mehnle : -- nosy: +jmehnle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue26317] Build Problem with GCC + Macintosh OS X 10.11 El Capitain

2016-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.4 only gets security fixes -- nosy: +terry.reedy stage: -> needs patch type: -> compile error versions: +Python 3.5, Python 3.6 -Python 3.4 ___ Python tracker _

[issue26316] Probable typo in Arg Clinic's linear_format()

2016-02-12 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: Probable typo in Arg Clinic’s linear_format() -> Probable typo in Arg Clinic's linear_format() ___ Python tracker ___ _

[issue26306] Can't create abstract tuple

2016-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.2 to 3.4 only get security fixes -- components: +Library (Lib) nosy: +terry.reedy stage: -> test needed versions: +Python 3.6 -Python 3.2, Python 3.3, Python 3.4 ___ Python tracker

[issue26306] Can't create abstract tuple

2016-02-12 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue26209] TypeError in smtpd module with string arguments

2016-02-12 Thread Anish Shah
Changes by Anish Shah : -- nosy: +anish.shah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue26342] Faster bit ops for single-digit positive longs

2016-02-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Does this patch have effect with results over 8 bits? Does it have effect after applying patches from 24165? -- ___ Python tracker ___ __

[issue26282] Add support for partial keyword arguments in extension functions

2016-02-12 Thread Anish Shah
Changes by Anish Shah : -- nosy: -anish.shah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue26342] Faster bit ops for single-digit positive longs

2016-02-12 Thread Yury Selivanov
Yury Selivanov added the comment: > You should add a tests. especially for edge cases, for negative values for > example. There are many binop tests in test_long.py -- ___ Python tracker _

[issue26351] Occasionally check for Ctrl-C in long-running operations like sum

2016-02-12 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue26342] Faster bit ops for single-digit positive longs

2016-02-12 Thread Марк Коренберг
Марк Коренберг added the comment: You should add a tests. especially for edge cases, for negative values for example. -- nosy: +mmarkk ___ Python tracker ___ ___

[issue26351] Occasionally check for Ctrl-C in long-running operations like sum

2016-02-12 Thread Steven D'Aprano
New submission from Steven D'Aprano: There are a few operations such as summing or unpacking infinite iterators where the interpreter can become unresponsive and ignore Ctrl-C KeyboardInterrupt. Guido suggests that such places should occasionally check for signals: https://mail.python.org/pip

[issue26318] `io.open(fd, ...).name` returns numeric fd instead of None

2016-02-12 Thread Марк Коренберг
Марк Коренберг added the comment: The main idea: if wile does not have a name, it should not have it! -- ___ Python tracker ___ ___ Py

[issue26318] `io.open(fd, ...).name` returns numeric fd instead of None

2016-02-12 Thread Марк Коренберг
Марк Коренберг added the comment: oops, issue22208 is not related issue -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue26318] `io.open(fd, ...).name` returns numeric fd instead of None

2016-02-12 Thread Марк Коренберг
Марк Коренберг added the comment: 1. nasty bugs not in my code! 2. It is not documented that name may be an int, so if applications rely on undocumented stuff are definitely broken, so if IMHO we CAN change that. 3. It will be much stricter to delattr('name') instead of setting as None. This wi

[issue26182] Deprecation warnings for the future async and await keywords in Python 3.6

2016-02-12 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue25931] os.fork() command distributed in windows Python27 (in SocketServer module)

2016-02-12 Thread Davin Potts
Changes by Davin Potts : -- nosy: +davin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue26333] Multiprocessing imap hangs when generator input errors

2016-02-12 Thread Davin Potts
Changes by Davin Potts : -- nosy: +davin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue8690] multiprocessing.dummy.Queue does not expose same interface as multiprocessing.Queue

2016-02-12 Thread Davin Potts
Changes by Davin Potts : -- nosy: +davin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue24303] OSError 17 due to _multiprocessing/semaphore.c assuming a one-to-one Pid -> process mapping.

2016-02-12 Thread Davin Potts
Davin Potts added the comment: @neologix: I second your proposed patch -- looks like a winner to me. Apologies for not following up earlier. -- ___ Python tracker ___ _

[issue21130] equivalent functools.partial instances should compare equal

2016-02-12 Thread shakur shams Mullick
shakur shams Mullick added the comment: I have submitted a patch for the issue. Please review and give feedback. -- nosy: +shakur shams Mullick ___ Python tracker ___ ___

[issue21130] equivalent functools.partial instances should compare equal

2016-02-12 Thread shakur shams Mullick
Changes by shakur shams Mullick : -- keywords: +patch Added file: http://bugs.python.org/file41909/issue21130.patch ___ Python tracker ___ ___

[issue23948] Deprecate os.kill() on Windows

2016-02-12 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: See also #26350. -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue26344] `sys.meta_path` Skipped for Packages with Non-Standard Suffixed `__init__` Files

2016-02-12 Thread Wolfgang Richter
Wolfgang Richter added the comment: Ah, sorry Brett! Thanks for spotting this. The import machinery is *really* awesome. -- ___ Python tracker ___ _

[issue26347] BoundArguments.apply_defaults doesn't handle empty arguments

2016-02-12 Thread Yury Selivanov
Yury Selivanov added the comment: Hi Frederick, the patch looks good. Thanks for reporting this! Could you please sign the contributor agreement so that I can commit your patch? -- assignee: -> yselivanov nosy: +yselivanov ___ Python tracker

[issue26350] Windoes: signal doc should state certains signals can't be registered

2016-02-12 Thread STINNER Victor
STINNER Victor added the comment: See also issue #23948. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue26350] Windoes: signal doc should state certains signals can't be registered

2016-02-12 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue26350] Windoes: signal doc should state certains signals can't be registered

2016-02-12 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola': I'm not sure whether this is a bug with signal.signal doc or with the function itself, anyway, here goes. On UNIX I'm able to register a signal handler for SIGTERM which is executed when the signal is received. On Windows I'm able to register it but it wi

[issue24165] Free list for single-digits ints

2016-02-12 Thread Yury Selivanov
Yury Selivanov added the comment: > Did that comment come from a benchmark suite run? (i.e. actual applications > and not micro benchmarks?) And, does it show a difference between the single- > and multi-digit cases? Yes, more details here: http://bugs.python.org/issue26341#msg260124

[issue26182] Deprecation warnings for the future async and await keywords in Python 3.6

2016-02-12 Thread Marco Buttu
Marco Buttu added the comment: Thank you Brett, the problem was the missed exec(). With the patch in attachment the tests pass, but it does not seem to me a good solution. Infact, changing the filter at runtime has no effect: $ cat foo.py import warnings warnings.simplefilter("always") asyn

[issue26349] Ship python35.lib with the embedded distribution, please

2016-02-12 Thread Thomas Führinger
New submission from Thomas Führinger: I would like to use the new embedded distribution and load-time link to python35.dll. It would make things a lot easier if you could also include python35.lib in the file python-3.5.1-embed-win32.zip. -- components: Installation messages: 260176 no

[issue26348] activate.fish sets VENV prompt incorrectly

2016-02-12 Thread Dan McCombs
New submission from Dan McCombs: Currently, the activate.fish VENV script sets fish's prompt to be prepended with a literal "__VENV_PROMPT__" rather than the contents of the $__VENV_PROMPT__ variable as intended. The attached patch simply adds the missing "$" to the variable in the conditiona

[issue25709] Problem with string concatenation and utf-8 cache.

2016-02-12 Thread Georg Brandl
Georg Brandl added the comment: Don't bother. I can do that once 3.3.7 is released. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue15873] datetime: add ability to parse RFC 3339 dates and times

2016-02-12 Thread Jakub Stasiak
Changes by Jakub Stasiak : -- nosy: +jstasiak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue26345] Extra newline appended to UTF-8 strings on Windows

2016-02-12 Thread Eryk Sun
Eryk Sun added the comment: This a third-party problem due to bugs in the console's support for codepage 65001. For the general problem of Unicode in the console, see issue 1602. The best way to resolve this problem is by using the wide-character APIs, WriteConsoleW and ReadConsoleW. I suggest

[issue25709] Problem with string concatenation and utf-8 cache.

2016-02-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: b9c8f1c80f47 added a new head. Should we merge 3.3 -> 3.4 -> 3.5 -> default? -- ___ Python tracker ___ ___

[issue24165] Free list for single-digits ints

2016-02-12 Thread Stefan Behnel
Stefan Behnel added the comment: I like Serhiy's patch, too, but it feels like the single-digit case should be enough. I found this comment by Yury a good argument: """ I can see improvements in micro benchmarks, but even more importantly, Serhiy's patch reduces memory fragmentations. 99% of

[issue26345] Extra newline appended to UTF-8 strings on Windows

2016-02-12 Thread STINNER Victor
STINNER Victor added the comment: I guess that it's yet another example of the bug #1602: "windows console doesn't print or input Unicode". Don't use the Windows console, but use a better console which has a better Unicode support. For example, you can play with IDLE :-) (Maybe PowerShell or

[issue26343] os.O_CLOEXEC not available on OS X

2016-02-12 Thread STINNER Victor
STINNER Victor added the comment: > FYI Python creates non-inheritable file descriptors by default since Python > 3.4: PEP 446. You didn't reply why you need O_CLOEXEC? -- ___ Python tracker _

[issue23718] strptime() can produce invalid date with negative year day

2016-02-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please add tests? -- stage: -> test needed ___ Python tracker ___ ___ Python-bugs-list

[issue24165] Free list for single-digits ints

2016-02-12 Thread STINNER Victor
STINNER Victor added the comment: I ran again the benchmark on long_fl.patch of issue #26341 with -b all. The problem is that I don't know what to think about the benchmark, to me all these number only look like noise :-/ If we ignore changes smaller than 1.05 (positive or negative), the patch