Re: Meaning and purpose of the Subject field (was: Ignore error with non-zero exit status)

2015-12-22 Thread Grant Edwards
On 2015-12-21, Steven D'Aprano wrote: > So as far as I am concerned, if changes of subject line breaks threading for > you, so sad, too bad. Go without threading or use a better mail client. Same here. After getting what is effectively a

Re: Library function to encode data to multipart/form-data format?

2015-12-22 Thread Grant Edwards
On 2015-12-21, Laura Creighton wrote: > In a message of Mon, 21 Dec 2015 17:51:00 +, Grant Edwards writes: >>Is there a standard library function that can be used to encode data >>into multipart/form-data format? IIRC, I looked for this once before >>and didn't find anything

Re: unicodedata with chr() not the same between python 3.4 and 3.5

2015-12-22 Thread Chris Angelico
On Wed, Dec 23, 2015 at 2:27 AM, Vincent Davis wrote: > I was expecting the code below to be the same between python3.4 and 3.5. I > need a mapping between the integers and unicode that is consistant between > 3.4 and 3.5 > > import unicodedata > u =

[issue25925] Coverage support for CPython 2

2015-12-22 Thread Zachary Ware
Zachary Ware added the comment: Left a couple of review comments on Rietveld. -- nosy: +zach.ware stage: -> patch review ___ Python tracker ___

[issue25925] Coverage support for CPython 2

2015-12-22 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: Thank you for the reviews. I've added a new patch (v02) to correct the issues. -- Added file: http://bugs.python.org/file41386/coverage-2.7-v02.patch ___ Python tracker

unicodedata with chr() not the same between python 3.4 and 3.5

2015-12-22 Thread Vincent Davis
​I was expecting the code below to be the same between python3.4 and 3.5. I need a mapping between the integers and unicode that is consistant between 3.4 and 3.5 >>> import unicodedata >>> u = ''.join(chr(i) for i in range(65536) if (unicodedata.category(chr(i)) in ('Lu', 'Ll')))[945:965] >>> u

Re: Meaning and purpose of the Subject field (was: Ignore error with non-zero exit status)

2015-12-22 Thread Ian Kelly
On Tue, Dec 22, 2015 at 8:17 AM, Grant Edwards wrote: > On 2015-12-21, Steven D'Aprano wrote: > >> So as far as I am concerned, if changes of subject line breaks threading for >> you, so sad, too bad. Go without threading or use a better mail client.

[issue4709] Mingw-w64 and python on windows x64

2015-12-22 Thread Nathaniel Smith
Nathaniel Smith added the comment: > We are working on the Fortran issue in a few different ways, one of which is > your work on MinGW compatibility so that gfortran can be used. But that isn't > the only solution to this whole problem, and it's not even preferable for a > lot of Python

Re: imshow keeps crashhing

2015-12-22 Thread John Gordon
In norou...@gmail.com writes: > Can anyone please help me with "imshow"? I have tried "imshow" on different > computers and different Python consoles but it does not work. Here are the > code and the error message: > import scipy.misc as

[issue25599] asyncio.iscoroutinefunction returns unexpected results when presented with unittest.mock.Mock

2015-12-22 Thread Guido van Rossum
Guido van Rossum added the comment: No I just misremembered. --Guido (mobile) -- ___ Python tracker ___ ___

Re: 0x80070570-The file or directory is corrupted and unreadable

2015-12-22 Thread eryk sun
On Tue, Dec 22, 2015 at 11:51 AM, Dennis Lee Bieber wrote: > > http://www.tech-faq.com/how-to-fix-error-0x80070570.html > suggests a registry cleaner (my preference over downloading some > unknown/unvetted "repair" tool) > > Most of the links on Google are for getting the

[issue25599] asyncio.iscoroutinefunction returns unexpected results when presented with unittest.mock.Mock

2015-12-22 Thread Yury Selivanov
Yury Selivanov added the comment: > Now we missed the 3.5.2 deadline. Did you mean 3.5.1? Or Larry is going to rush 3.5.2 soon? -- ___ Python tracker

[issue8604] Adding an atomic FS write API

2015-12-22 Thread Марк Коренберг
Марк Коренберг added the comment: instead of realpath, os.lstat() may be used in order to detect if target file object is not plain file. Also, os.rename() cannot be used since it follows symlinks by default. -- ___ Python tracker

How to use a variable to act as @rule in a Sopel IRC bot module?

2015-12-22 Thread arresteddevlopment
Hi everyone. I'm working with the Sopel (previously Willie and before that, Jenni/Phenny) python IRC bot as I'd like to set up a trivia quiz for our IRC channel. With Sopel, the @rule decorator lets you set a string that the bot will listen out for and which triggers a corresponding function

[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision

2015-12-22 Thread Alessandro Cucci
Alessandro Cucci added the comment: Thanks SilentGhost! -- Added file: http://bugs.python.org/file41391/issue19475_v9.patch ___ Python tracker ___

Re: Newbie: String to Tuple

2015-12-22 Thread KP
On Tuesday, 22 December 2015 12:59:59 UTC-8, Mark Lawrence wrote: > On 22/12/2015 20:53, KP wrote: > > How do I convert > > > > '1280,1024' > > > > to > > > > (1280,1024) ? > > > > Thanks for all help! > > > > Start with this https://docs.python.org/3/library/stdtypes.html#str.split > > -- >

Re: Newbie XML problem

2015-12-22 Thread KP
Thank you both - your help is much appreciated! -- https://mail.python.org/mailman/listinfo/python-list

imshow keeps crashhing

2015-12-22 Thread norouzey
Hello everyone, Can anyone please help me with "imshow"? I have tried "imshow" on different computers and different Python consoles but it does not work. Here are the code and the error message: import scipy.misc as mi img = mi.imread('C:\images\circles.png') mi.imshow(img) 'see' is not

[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision

2015-12-22 Thread Alessandro Cucci
Alessandro Cucci added the comment: Sorry @SilentGhost, I didn't seen your comment at the bottom of the review. With this patch is microsecond is 0, the time will display 6 zeroes. -- Added file: http://bugs.python.org/file41388/issue19475_v8.patch

[issue25919] htp.client PUT method ignores error responses sent immediatly after headers

2015-12-22 Thread Wiktor Niesiobedzki
Wiktor Niesiobedzki added the comment: Maybe something like this? Doesn't look too complicated and I haven't noticed any breakage yet. -- keywords: +patch Added file: http://bugs.python.org/file41390/http.client.put.fix.patch ___ Python tracker

Re: Newbie: String to Tuple

2015-12-22 Thread Mark Lawrence
On 22/12/2015 20:53, KP wrote: How do I convert '1280,1024' to (1280,1024) ? Thanks for all help! Start with this https://docs.python.org/3/library/stdtypes.html#str.split -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark

Re: How to use a variable to act as @rule in a Sopel IRC bot module?

2015-12-22 Thread arresteddevlopment
Apologies for the terrible formatting, let me try that again: A: from sopel.module import commands, rule import random q_and_as = [('Why?', 'because'), ('Can I kick it?', 'nope')] @commands("quizme") def ask_q(bot, trigger): q = random.choice(q_and_as) bot.say(q[0])  @rule(q[1])

[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision

2015-12-22 Thread Alessandro Cucci
Changes by Alessandro Cucci : Added file: http://bugs.python.org/file41387/issue19475_v7.patch ___ Python tracker ___

[issue8604] Adding an atomic FS write API

2015-12-22 Thread Марк Коренберг
Марк Коренберг added the comment: Also, modern kernels allows to replace entire directory! renameat2() + RENAME_EXCHANGE So, there should be more atomic operations -- ___ Python tracker

[issue21579] Python 3.4: tempfile.close attribute does not work

2015-12-22 Thread Марк Коренберг
Марк Коренберг added the comment: David Murray, in your code, if temporary file cannot be created, it attempts to unlink unknown name :). But, I already have almost the same solution in production. I mention it sources in issue8604. -- ___ Python

[issue11588] Add "necessarily inclusive" groups to argparse

2015-12-22 Thread Chris Mayo
Changes by Chris Mayo : -- nosy: +cjmayo ___ Python tracker ___ ___ Python-bugs-list

[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision

2015-12-22 Thread SilentGhost
SilentGhost added the comment: I think the patch is nearly finalised, but I'd appreciate if someone else would carefully go over the new C code. After that, I think, the patch could be committed. -- ___ Python tracker

[issue4709] Mingw-w64 and python on windows x64

2015-12-22 Thread Steve Dower
Steve Dower added the comment: "We" is a lot of different companies and individuals. Anyone distributing prebuilt binaries is helping here, a few people are working on the licensing concerns for some components, other people are working on C BLAS libraries. I see the issue approximately as

unable to open IDLE for Python3.50rc1 on windows10 64bit AMD

2015-12-22 Thread Nicky Mac
I have run the install (and repair) which explicitly includes Tcl/Tk and l have this problem: Microsoft Windows [Version 10.0.10586] (c) 2015 Microsoft Corporation. All rights reserved. >C:\Python\Python35\python.exe -m idlelib ** IDLE can't import Tkinter. Your Python may not be configured

[issue24840] implement bool conversion for enums to prevent odd edge case

2015-12-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: This change breaks existing code that is relying on the behavior of the enum API as shipped in 3.4 and 3.5. Please do NOT do this. Worse, you've landed this change in a "stable" release of the enum34 "backport" module (1.1.1) despite it never having been

[issue21815] imaplib truncates some untagged responses

2015-12-22 Thread Lita Cho
Lita Cho added the comment: Sounds good. On Tuesday, December 22, 2015, Maciej Szulik wrote: > > Maciej Szulik added the comment: > > Lita can you please apply the changes from latest review (from > SilentGhost). Especially the one regarding newline, which currently

[issue25930] os.unlink != os.remove in python3.5

2015-12-22 Thread Anthony Sottile
Anthony Sottile added the comment: Breaks this function: ``` def rmtree(path): """On windows, rmtree fails for readonly dirs.""" def handle_remove_readonly(func, path, exc): # pragma: no cover (windows) excvalue = exc[1] if func in (os.rmdir, os.remove) and

[issue25251] Unknown MS Compiler version 1900

2015-12-22 Thread Tod Haren
Tod Haren added the comment: In addition to patching cygwincompiler.py I also had to patch numpy\distutils\misc_util.py and numpy\distutils\mingw32ccompiler.py to handle the new dll name. A pull request has been submitted for the numpy patches. https://github.com/numpy/numpy/pull/6875

[issue25930] Document that os.remove is semantically identical to os.unlink

2015-12-22 Thread Brett Cannon
Brett Cannon added the comment: I think it's reasonable to say the documentation could be misconstrued -- as Anthony has shown -- and so a patch changing the os.remove docs to say "This function is semantically identical to os.unlink()" would be acceptable. -- assignee: ->

[issue25929] When doing string.replace, it uses the entire 'find' string and doesn't let it get reused...

2015-12-22 Thread R. David Murray
R. David Murray added the comment: No, you aren't missing anything, it is working as designed. -- nosy: +r.david.murray resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue25770] expose name, args, and kwargs from methodcaller

2015-12-22 Thread Joe Jevnik
Joe Jevnik added the comment: Is there a decision on the name? I can update the patch if needed. -- ___ Python tracker ___

[issue24379] operator.subscript

2015-12-22 Thread Joe Jevnik
Joe Jevnik added the comment: > and the latter might give the impression it was some sort of special > method/attribute when it was not. Wouldn't adding this be special because it is specifically reserved by CPython as an implementation detail? Also, would adding this name (__stub or

[issue25930] os.unlink != os.remove in python3.5

2015-12-22 Thread Larry Hastings
Larry Hastings added the comment: Unless you can explain what bugs this is causing, I don't see any need to change the behavior. -- resolution: -> not a bug status: open -> closed ___ Python tracker

[issue25930] os.unlink != os.remove in python3.5

2015-12-22 Thread Anthony Sottile
Anthony Sottile added the comment: When calling shutil.rmtree on windows on a readonly directory, the error handler is called with os.unlink as the first argument `func` which fails the check `func in (os.rmdir, os.remove)` which succeeded on previous python versions --

[issue15068] fileinput requires two EOF when reading stdin

2015-12-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: That individually is probably okay. It's more a question of whether the entire change is appropriate for 2.7. Note PendingDeprecationWarning is fairly useless, since it's rarely enabled. On Sat, Dec 19, 2015, at 00:34, Serhiy Storchaka wrote: > > Serhiy

Re: v3.5.1 - msi download

2015-12-22 Thread jfong
Mark Lawrence at 2015/12/21 UTC+8 8:50:00PM wrote: > My fellow Pythonistas, ask not what our language can do for you, ask > what you can do for our language. When I saw this sentence, I can't resist to think of the famous lie created by president John kennedy: "Ask not what your country can do

[issue21998] asyncio: support fork

2015-12-22 Thread Adam Bishop
Adam Bishop added the comment: A note about this issue should really be added to the documentation - on OS X, it fails with the rather non-sensical "OSError: [Errno 9] Bad file descriptor", making this very hard to debug. I don't have any specific requirement for fork support in asyncio as

[issue25930] os.unlink != os.remove in python3.5

2015-12-22 Thread Larry Hastings
Larry Hastings added the comment: How does it break? Maybe you could explain more. -- ___ Python tracker ___

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

2015-12-22 Thread Sam Lobel
New submission from Sam Lobel: I ran into this bug while using multiprocessing in Flask, which deep down uses the SocketServer.py module. There's a call to os.fork() in the windows version , which obviously doesn't work. So SocketServer.py can't be used on windows. Maybe replace it with

[issue24379] Add operator.subscript as a convenience for creating slices

2015-12-22 Thread Emanuel Barry
Changes by Emanuel Barry : -- nosy: +ebarry stage: resolved -> patch review title: operator.subscript -> Add operator.subscript as a convenience for creating slices ___ Python tracker

[issue4709] Mingw-w64 and python on windows x64

2015-12-22 Thread Nathaniel Smith
Nathaniel Smith added the comment: Hi Steve- okay, thanks for clarifying! I think you already know this, but for the general record: the reason for the apparent fixation on this solution is that after a lot of struggle it's emerged as basically the only contender for

[issue25927] add dir_fd for mkstemp, and also maybe to all tempfile.*

2015-12-22 Thread Марк Коренберг
New submission from Марк Коренберг: dir_fd support is good in `os` module. but tempfile module lack support of that great feature. Please add. -- messages: 256856 nosy: mmarkk priority: normal severity: normal status: open title: add dir_fd for mkstemp, and also maybe to all tempfile.*

[issue25860] os.fwalk() silently skips remaining directories when error occurs

2015-12-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 767262c149ca by Serhiy Storchaka in branch '3.5': Issue #25860: os.fwalk() no longer skips remaining directories when error occurs. https://hg.python.org/cpython/rev/767262c149ca New changeset a85675dabb8f by Serhiy Storchaka in branch 'default':

[issue25928] Improve performance of statistics._decimal_to_ratio and fractions.from_decimal

2015-12-22 Thread John Walker
John Walker added the comment: Heres the output of running the benchmark on my machine: Testing proposed implementation number = 1 0.07098613299967838 number = 10 0.6952260910002224 number = 100 6.948197601999709 Testing current implementation number = 1 0.141816276996

[issue25928] Improve performance of statistics._decimal_to_ratio and fractions.from_decimal

2015-12-22 Thread John Walker
Changes by John Walker : -- type: -> performance ___ Python tracker ___ ___

[issue25929] When doing string.replace, it uses the entire 'find' string and doesn't let it get reused...

2015-12-22 Thread Mark Cline
New submission from Mark Cline: The Title might be a bit awkward but this is what I mean: before = '' after = before.replace(',,', ',null,') print(after) >,null,,null, I suspect it is starting the second search at the start of the first find + length of the find? ie: 0123 Starting

[issue21815] imaplib truncates some untagged responses

2015-12-22 Thread Maciej Szulik
Maciej Szulik added the comment: Lita can you please apply the changes from latest review (from SilentGhost). Especially the one regarding newline, which currently fails to apply this patch on default. If all those will be cleaned I'll recommend this patch for David for inclusion. --

[issue12797] io.FileIO and io.open should support openat

2015-12-22 Thread Eryk Sun
Eryk Sun added the comment: Марк, os.open added dir_fd support in 3.3, which is implemented on POSIX systems by calling openat. The dir_fd parameter is available for many os functions. This is discussed in section 1.5, Files and Directories [1]. It would be nice if we could support dir_fd on

Re: unable to open IDLE for Python3.50rc1 on windows10 64bit AMD

2015-12-22 Thread Terry Reedy
On 12/22/2015 3:27 PM, Nicky Mac wrote: I have run the install (and repair) which explicitly includes Tcl/Tk and l have this problem: First, I would download and install the final 3.5.1. I believe there was a change to the installer that might, possibly, make a difference. Write down

[issue25860] os.fwalk() silently skips remaining directories when error occurs

2015-12-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7995a81236b6 by Serhiy Storchaka in branch '3.5': Issue #25860: Fixed test failure caused by inconsistency of os.walk() and https://hg.python.org/cpython/rev/7995a81236b6 New changeset dcf9e9ae5393 by Serhiy Storchaka in branch 'default': Issue

Re: Meaning and purpose of the Subject field (was: Ignore error with non-zero exit status)

2015-12-22 Thread Grant Edwards
On 2015-12-22, Ian Kelly wrote: > On Tue, Dec 22, 2015 at 8:17 AM, Grant Edwards > wrote: >> On 2015-12-21, Steven D'Aprano wrote: >> >>> So as far as I am concerned, if changes of subject line breaks threading for >>> you,

[issue25919] htp.client PUT method ignores error responses sent immediatly after headers

2015-12-22 Thread Wiktor Niesiobedzki
Wiktor Niesiobedzki added the comment: Here is revised patch. Also covers changes to tests. -- Added file: http://bugs.python.org/file41392/http.client.put.fix.patch ___ Python tracker

Newbie: Convert strings in nested dict to tuples

2015-12-22 Thread KP
I now know how to convert a string cont. coordinates to a tuple, but hwo can I do this? Given cfg = {'canvas': ('3840', '1024'), 'panel1': {'gpio': '1', 'id': '4', 'co': '0,0,1280,1024'}, 'panel2': {'gpio': '2', 'id': '5', 'co': '1280,0,2560,1024'}, 'panel3': {'gpio': '3',

Re: Newbie: Convert strings in nested dict to tuples

2015-12-22 Thread KP
Beautiful - thanks! On Tuesday, 22 December 2015 15:23:25 UTC-8, Peter Otten wrote: > KP wrote: > > > I now know how to convert a string cont. coordinates to a tuple, but hwo > > can I do this? > > > > Given > > > > cfg = {'canvas': ('3840', '1024'), > > 'panel1': {'gpio': '1', 'id':

[issue24840] implement bool conversion for enums to prevent odd edge case

2015-12-22 Thread Ethan Furman
Ethan Furman added the comment: The enum34 backport has been fixed to not have 3.6 only features (assuming the __bool__ change was the only one). Was that your only objection, or do you not want this change in 3.6 either? -- ___ Python tracker

[issue25928] Improve performance of statistics._decimal_to_ratio and fractions.from_decimal

2015-12-22 Thread John Walker
New submission from John Walker: In statistics, there is a FIXME on Line 250 above _decimal_to_ratio that says: # FIXME This is faster than Fraction.from_decimal, but still too slow. Half of the time is spent in a conversion in d.as_tuple(). Decimal internally stores the digits as a string,

[issue25930] os.unlink != os.remove in python3.5

2015-12-22 Thread Anthony Sottile
New submission from Anthony Sottile: I've confirmed this bug is present on both windows and linux, the outputs below are from linux however. Compare: ``` $ python3.4 --version Python 3.4.3 $ python3.4 -c 'import os; print(os.unlink == os.remove)' True ``` ``` $ python3.5 --version Python

[issue23846] asyncio : ProactorEventLoop raised BlockingIOError when ThreadPoolExecutor has many workers

2015-12-22 Thread Yury Selivanov
Yury Selivanov added the comment: > Why are you using 2 threads? That's a good question. In any case it looks like self-pipe sock's buffer was overflown because call_soon_threadsafe was called too many times, and loop._read_from_self couldn't empty the buffer promptly. Then, at some

Re: Newbie: Convert strings in nested dict to tuples

2015-12-22 Thread Peter Otten
KP wrote: > I now know how to convert a string cont. coordinates to a tuple, but hwo > can I do this? > > Given > > cfg = {'canvas': ('3840', '1024'), > 'panel1': {'gpio': '1', 'id': '4', 'co': '0,0,1280,1024'}, > 'panel2': {'gpio': '2', 'id': '5', 'co': '1280,0,2560,1024'}, >

[issue8604] Adding an atomic FS write API

2015-12-22 Thread Марк Коренберг
Марк Коренберг added the comment: You also forgot about two things: 1. set temporary file permissions before rename 2. fsync(open(os.dirname(temporaryfile))) 3. if original file name is symlink, replace will works wrong. os.realpath should be used. So, here are real life function, that we use

[issue12797] io.FileIO and io.open should support openat

2015-12-22 Thread Марк Коренберг
Марк Коренберг added the comment: But... os.openat() is still missing... why status is closed() ?! -- nosy: +mmarkk ___ Python tracker ___

[issue4709] Mingw-w64 and python on windows x64

2015-12-22 Thread Steve Dower
Steve Dower added the comment: And FTR, there are plenty of major Python-using companies that insist on compiling from scratch and also refuse to touch GPL at all, no matter how many exemptions are in the licenses. GFortran is not the ideal solution for these users. --

[issue25919] htp.client PUT method ignores error responses sent immediatly after headers

2015-12-22 Thread SilentGhost
SilentGhost added the comment: There is a test suite which can be run to test for breakages: ./python -m test test_httplib If you do that you'll notice that some things are broken, I got error in 5 different tests related to you select.select call: TypeError: argument must be an int, or have

[issue25919] htp.client PUT method ignores error responses sent immediatly after headers

2015-12-22 Thread SilentGhost
SilentGhost added the comment: That was a testing issue, apparently test.test_httplib.FakeSocket is not fake enough. -- ___ Python tracker ___

[issue25930] os.unlink != os.remove in python3.5

2015-12-22 Thread Eryk Sun
Eryk Sun added the comment: This is due to using argument clinic in Modules/posixmodule.c: /*[clinic input] os.remove = os.unlink builtin_function_or_method instances are equal if m_self (the module in this case) and m_ml->ml_meth (the C function) are the same. In 3.4, the function

[issue24840] implement bool conversion for enums to prevent odd edge case

2015-12-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: lets collect some examples of where it causes problems (someone ran into the problem at work which is why i hunted down this bugs.python.org issue) before deciding. If it stays in, it needs a mention in both Misc/NEWS and What's New as it will require some

[issue24658] open().write() fails on 2 GB+ data (OS X)

2015-12-22 Thread Ian Carroll
Ian Carroll added the comment: Write still fails on 3.5.1 and OS X 10.11.2. I'm no dev, so can someone explain how to use the patch while it's under review? -- nosy: +Ian Carroll ___ Python tracker

convert to python code

2015-12-22 Thread Rodrick Brown
Tried a few things but can't seem to get it right any help ? let times = (...matrices) => matrices.reduce( ([a,b,c], [d,e,f]) => [a*d + b*e, a*e + b*f, b*e + c*f] ); -- https://mail.python.org/mailman/listinfo/python-list

Re: convert to python code

2015-12-22 Thread Ben Finney
Rodrick Brown writes: > Tried a few things but can't seem to get it right any help ? To convert it to Python code, you'll need to actually write some code. Please show here in this forum the actual Python code which is not behaving how you want, and say *exactly* what

[issue25913] base64.a85decode adobe flag incorrectly utilizes <~ as a marker causing error

2015-12-22 Thread Swati Jaiswal
Changes by Swati Jaiswal : Added file: http://bugs.python.org/file41393/iss_25913_2.patch ___ Python tracker ___

[issue4709] Mingw-w64 and python on windows x64

2015-12-22 Thread Ralf Gommers
Ralf Gommers added the comment: > "We" is a lot of different companies and individuals. Anyone distributing > prebuilt binaries is helping here, a few people are working on the licensing > concerns for some components, other people are working on C BLAS libraries. Note that we by default

[issue4709] Mingw-w64 and python on windows x64

2015-12-22 Thread Ralf Gommers
Ralf Gommers added the comment: > I'm happy and keen to help so please feel free to poke me if you need > assistance with anything. I'll keep an eye out too - is it actively being > discussed on any list? Thanks Henry. There's no ongoing discussion on a list right now, but give it a week or

OT: citizens and countries - was Re: v3.5.1 - msi download

2015-12-22 Thread Michael Torrie
On 12/22/2015 07:06 PM, jf...@ms4.hinet.net wrote: > Mark Lawrence at 2015/12/21 UTC+8 8:50:00PM wrote: >> My fellow Pythonistas, ask not what our language can do for you, ask >> what you can do for our language. > > When I saw this sentence, I can't resist to think of the famous lie created >

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

2015-12-22 Thread Eryk Sun
Eryk Sun added the comment: Starting a Windows process is expensive. Who not use threading, e.g. SocketServer.ThreadingTCPServer? It seems to me that it's a bug to even define ForkingMixIn, ForkingTCPServer, and ForkingUDPServer on Windows. Those should be conditionally defined depending on

[issue13317] building with 2to3 generates wrong import paths because build_ext is run after build_py

2015-12-22 Thread Swati Jaiswal
Swati Jaiswal added the comment: Can someone help with tests? I just need a pointer on how to do it. -- keywords: +patch Added file: http://bugs.python.org/file41394/iss_13317.patch ___ Python tracker

[issue25599] asyncio.iscoroutinefunction returns unexpected results when presented with unittest.mock.Mock

2015-12-22 Thread Joseph Gordon
Joseph Gordon added the comment: I uploaded a patch that appears to fix the issue. -- keywords: +patch Added file: http://bugs.python.org/file41396/issue25599.patch ___ Python tracker

[issue21815] imaplib truncates some untagged responses

2015-12-22 Thread Lita Cho
Lita Cho added the comment: Here is a patch after SlientGhost's review. I have added back the newline and included the comments for the imaplib documentation. -- Added file: http://bugs.python.org/file41395/imaplib_after_silentghost_review.patch

[issue25913] base64.a85decode adobe flag incorrectly utilizes <~ as a marker causing error

2015-12-22 Thread Martin Morrison
Martin Morrison added the comment: The proposed patch does stop requiring the leading <~, but still trims the first two characters off the data set. This will no doubt fail in cases where there is no leading marker. I think it will need to explicitly handle the case where the leading marker

Re: 0x80070570-The file or directory is corrupted and unreadable

2015-12-22 Thread eryk sun
On Tue, Dec 22, 2015 at 8:02 AM, muizz hasan wrote: > Hi there! I've been recently trying to install Python for Windows 10 > and I've been encountering some issues. Every time i try to install > the program it just says"0x80070570-The file or directory is corrupted > and

[issue23846] asyncio : ProactorEventLoop raised BlockingIOError when ThreadPoolExecutor has many workers

2015-12-22 Thread Guido van Rossum
Guido van Rossum added the comment: Why are you using 2 threads? --Guido (mobile) On Dec 22, 2015 02:03, "Joseph Gordon" wrote: > > Changes by Joseph Gordon : > > > -- > nosy: +josephgordon > >

Re: match point

2015-12-22 Thread Chris Angelico
On Tue, Dec 22, 2015 at 9:56 PM, Thierry wrote: > Maybe re.match has an implementation that makes it more efficient? But > then why would I ever use r'\A', since that anchor makes a pattern match > in only a single position, and is therefore useless in functions like > re.findall,

[issue23894] lib2to3 doesn't recognize rb'...' as a raw byte string in Python 3

2015-12-22 Thread Joseph Gordon
Joseph Gordon added the comment: With the changes in the uploaded patch it looks like strings of the form rb'...' are now recognized as raw byte strings. -- keywords: +patch Added file: http://bugs.python.org/file41382/issue23894.patch ___ Python

[issue25661] tokenize.untokenize does not maintain the order of tabbed indentations and leading spaces

2015-12-22 Thread Joseph Gordon
Changes by Joseph Gordon : -- nosy: +josephgordon ___ Python tracker ___ ___

[issue19873] There is a duplicate function in Lib/test/test_pathlib.py

2015-12-22 Thread Joseph Gordon
Changes by Joseph Gordon : -- nosy: +josephgordon ___ Python tracker ___ ___

match point

2015-12-22 Thread Thierry
Hi, Reading the docs about regular expressions, I am under the impression that calling re.match(pattern, string) is exactly the same as re.search(r'\A'+pattern, string) Same for fullmatch, that amounts to re.search(r'\A'+pattern+r'\Z', string) The docs devote a chapter

[issue25922] canceling a repair install breaks the ability to uninstall, repair, or re-install

2015-12-22 Thread Steve Dower
Steve Dower added the comment: Does rebooting allow you to keep going? -- ___ Python tracker ___ ___

[issue4709] Mingw-w64 and python on windows x64

2015-12-22 Thread Steve Dower
Steve Dower added the comment: We are working on the Fortran issue in a few different ways, one of which is your work on MinGW compatibility so that gfortran can be used. But that isn't the only solution to this whole problem, and it's not even preferable for a lot of Python users, so expect

[issue25900] unittest ignores the first ctrl-c when it shouldn't

2015-12-22 Thread Marius Gedminas
Marius Gedminas added the comment: Somewhat unrelated nitpick: I'm not very happy that _InterruptHandler doesn't return early after calling the original handler. It's all very well, if the original handler raises or does nothing at all, but if it's a user-installed handler that does something

[issue25599] asyncio.iscoroutinefunction returns unexpected results when presented with unittest.mock.Mock

2015-12-22 Thread Joseph Gordon
Changes by Joseph Gordon : -- nosy: +josephgordon ___ Python tracker ___ ___

[issue25900] unittest ignores the first ctrl-c when it shouldn't

2015-12-22 Thread Marius Gedminas
Marius Gedminas added the comment: Here's an updated patch with tests -- Added file: http://bugs.python.org/file41383/dont-ignore-first-ctrl-c-with-tests.patch ___ Python tracker

[issue4709] Mingw-w64 and python on windows x64

2015-12-22 Thread Henry Gomersall
Henry Gomersall added the comment: Thanks Ralf - I'm happy and keen to help so please feel free to poke me if you need assistance with anything. I'll keep an eye out too - is it actively being discussed on any list? -- ___ Python tracker

[issue25900] unittest ignores the first ctrl-c when it shouldn't

2015-12-22 Thread Marius Gedminas
Marius Gedminas added the comment: I looked for any existing tests (by grepping for 'signals' and 'import' on the same line), didn't find any (because my assumption that 'signals' would have to be explicitly imported was wrong). Wrote some new tests, which made me also make some further

[issue25664] Logging cannot handle Unicode logger names

2015-12-22 Thread Joseph Gordon
Changes by Joseph Gordon : -- nosy: +josephgordon ___ Python tracker ___ ___

[issue25324] Importing tokenize modifies token

2015-12-22 Thread Joseph Gordon
Changes by Joseph Gordon : -- nosy: +josephgordon ___ Python tracker ___ ___

[issue23846] asyncio : ProactorEventLoop raised BlockingIOError when ThreadPoolExecutor has many workers

2015-12-22 Thread Joseph Gordon
Changes by Joseph Gordon : -- nosy: +josephgordon ___ Python tracker ___ ___

  1   2   >