[issue27130] zlib: OverflowError while trying to compress 2^32 bytes or more

2016-07-21 Thread Martin Panter
Martin Panter added the comment: Here is a new patch for 2.7 that should avoid the problem with ChecksumBigBufferTestCase. I tested a hacked version of the test, so I am more confident in it now :) -- Added file: http://bugs.python.org/file43823/64bit_support_for_zlib_v11-2.7.patch

[issue24034] Make fails Objects/typeslots.inc

2016-07-21 Thread Martin Panter
Martin Panter added the comment: Sorry nobody acted on your patch earlier. This is the same as Issue 26662, which has a more general patch that does the same sort of thing. -- nosy: +martin.panter resolution: -> duplicate status: open -> closed ___

[issue26662] configure/Makefile doesn't check if "python" command works, needed to build Objects/typeslots.inc

2016-07-21 Thread Martin Panter
Martin Panter added the comment: I think that error message would be okay. -- ___ Python tracker ___ ___

[issue27586] Is this a regular expression library bug?

2016-07-21 Thread Emanuel Barry
Emanuel Barry added the comment: For future reference, if your input can have arbitrary escapes, it might be a good idea to pass it through re.escape; it does proper escaping so that stuff like e.g. \g in your input will get treated as a literal backslash, followed by a literal 'g', and not

[issue8406] Make some setup.py paths exclude-able

2016-07-21 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: > We regularly close issues that are 1+ year old on Jupyter/IPython or rescope > the issue to be actionable for contribution. Sorry if me doing that on IPython/Jupyter recently have put you (willingc) in a bad position in here, sincere apologies, you are

[issue13849] Add tests for NUL checking in certain strs

2016-07-21 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[issue13849] Add tests for NUL checking in certain strs

2016-07-21 Thread STINNER Victor
STINNER Victor added the comment: issue13849.diff: LGTM. If the tests pass on Python 2.7 and 3.5, I think that it's worth to add the tests to these versions as well. -- ___ Python tracker

[issue27580] CSV Null Byte Error

2016-07-21 Thread Skip Montanaro
Skip Montanaro added the comment: Thanks. The display you showed looks about like I saw in LibreOffice. If you export it back to another CSV file, does the new file match the original exactly, or does (like LibreOffice) it save a file without NUL bytes? I don't mind having the discussion, but

[issue26533] logging.config does not allow disable_existing_loggers=True

2016-07-21 Thread Vinay Sajip
Vinay Sajip added the comment: > That's not really what this is about. As I see it, it's about the ability to configure disabling of existing loggers on reconfiguration via the listener. While it can't be done using fileConfig(), it *can* be done using dictConfig(). --

[issue26533] logging.config does not allow disable_existing_loggers=True

2016-07-21 Thread Grazfather x
Grazfather x added the comment: That's not really what this is about. This is about setting up the listener so that by default that setting is used. In logging/config.py: ```python def listen(port=DEFAULT_LOGGING_CONFIG_PORT, verify=None): ... try:

[issue27586] Is this a regular expression library bug?

2016-07-21 Thread Bruce Eckel
Bruce Eckel added the comment: Urk. There was exactly a \g in the input. Sorry for the bother. -- resolution: -> not a bug ___ Python tracker ___

[issue27586] Is this a regular expression library bug?

2016-07-21 Thread Tim Peters
Changes by Tim Peters : -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue27586] Is this a regular expression library bug?

2016-07-21 Thread Tim Peters
Tim Peters added the comment: Well, some backslash escapes are processed in the "replacement" argument to `.sub()`. If your replacement text contains a substring of the form \g not immediately followed by < that will raise the exception you're seeing. The parser is expecting to

[issue27580] CSV Null Byte Error

2016-07-21 Thread Bobby Ocean
Bobby Ocean added the comment: I attempted to open the file in excel; raised no errors. In any case (regardless of Microsoft-concerns), I am glad to see a discussion started and possibly some concern that an update might be useful to the community (it would certainly cut down on the number

[issue27586] Is this a regular expression library bug?

2016-07-21 Thread Bruce Eckel
Bruce Eckel added the comment: Sorry, I thought maybe the error message would be indicative of something. Here's the re: find_output = re.compile(r"/\* (Output:.*)\*/", re.DOTALL) Here's the program: #! py -3 # Requires Python 3.5 # Updates generated output into extracted Java programs in

[issue27586] Is this a regular expression library bug?

2016-07-21 Thread Tim Peters
Tim Peters added the comment: If you don't show us the regular expression, it's going to be darned hard to guess what it is ;-) -- nosy: +tim.peters ___ Python tracker

[issue27586] Is this a regular expression library bug?

2016-07-21 Thread Bruce Eckel
New submission from Bruce Eckel: This looks suspicious to me, like it could be a library bug, but before chasing it down I was hoping someone might be able to tell me whether I might be on to something: Traceback (most recent call last): File "update_extracted_example_output.py", line 22,

[issue27546] Integrate tkinter and asyncio (and async)

2016-07-21 Thread Guido van Rossum
Guido van Rossum added the comment: > Who actually wrote it [crawl.py], that would understand it? I wrote it, and I can probably still recover my understanding of it. Basically you say "python3 crawl.py xkcd.com -q" and it crawls the XKCD.com website -- that takes about 4 seconds on my

[issue13849] Add tests for NUL checking in certain strs

2016-07-21 Thread Berker Peksag
Berker Peksag added the comment: Attached patch adds tests for common members of Lib/genericpath.py. -- keywords: +patch nosy: +berker.peksag stage: needs patch -> patch review versions: +Python 3.6 -Python 3.4 Added file: http://bugs.python.org/file43821/issue13849.diff

[issue26533] logging.config does not allow disable_existing_loggers=True

2016-07-21 Thread Vinay Sajip
Vinay Sajip added the comment: I think this is just a documentation issue. You can send a dictionary suitable for dictConfig() as JSON over the listen() socket. This is supported by 2.7 and 3.2+ - the documentation doesn't mention this, though. --

[issue1521950] shlex.split() does not tokenize like the shell

2016-07-21 Thread R. David Murray
R. David Murray added the comment: No objection from me. I'm not likely to have the time to give it the kind of thorough review I'd *like* to, but I don't think it is really needed. -- ___ Python tracker

[issue27580] CSV Null Byte Error

2016-07-21 Thread Skip Montanaro
Skip Montanaro added the comment: I wasn't familiar with RFC 4180. (Or, quite possibly, I forgot I used to be familiar with it.) Note that at the bottom of the BNF definition of the file structure is the definition of TEXTDATA: TEXTDATA = %x20-21 / %x23-2B / %x2D-7E That pretty explicitly

[issue27493] logging module fails with unclear error when supplied a (Posix)Path

2016-07-21 Thread Vinay Sajip
Vinay Sajip added the comment: > the answer would be "not at all". Not sure about that. If all logging did were to pass the path to lower levels such as open or abspath, that may be true. However, some handlers do path computations (e.g. the rotating file handlers) and so logging would need

[issue1521950] shlex.split() does not tokenize like the shell

2016-07-21 Thread Vinay Sajip
Vinay Sajip added the comment: This has been knocking around since 3.3, but never got enough attention to make it in. Barring objections from anyone, I'd like to commit this patch once I check that it applies cleanly against 3.6, before we get into 3.6 beta. -- versions: +Python 3.6

[issue27580] CSV Null Byte Error

2016-07-21 Thread Bobby Ocean
Bobby Ocean added the comment: I am sorry I must have mis-read the history part of that article. -- ___ Python tracker ___

[issue27585] asyncio.Lock deadlock after cancellation

2016-07-21 Thread R. David Murray
R. David Murray added the comment: If you give the loop a chance to run (an await asyncio.sleep(0)) before doing the acquire) it does not deadlock. I don't understand enough of the asyncio internals to know if this is expected or a bug. -- nosy: +r.david.murray

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-21 Thread Stephen J. Turnbull
Stephen J. Turnbull added the comment: I still think the easiest thing to do would be to make all non-ASCII characters instances of "invalid_character_token", self-delimiting in the same way that operators are. That would automatically point to exactly the right place in the token stream,

[issue27580] CSV Null Byte Error

2016-07-21 Thread R. David Murray
R. David Murray added the comment: Bobby: Skip is one of the authors of the csv module, and has been maintaining it since it was added to the standard library. He knows whereof he speaks: there is no standard for csv (as noted in the article you link), and all csv parsers that want to be

[issue27585] asyncio.Lock deadlock after cancellation

2016-07-21 Thread sss
New submission from sss: The lock.py file prints DEADLOCK HERE _locked: False _waiters: deque([]) I think the problem is that acquire() will block because of the cancelled future in _waiters, but release() has already ran so no one will wake it up. -- components: asyncio files:

[issue26944] android: test_posix fails

2016-07-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Is there a plan to make Android a supported platform in 3.6? Answer in the Android meta-issue at msg 270942. -- ___ Python tracker

[issue26865] Meta-issue: support of the android platform

2016-07-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: Larry asked in msg 270937: > Is there a plan to make Android a supported platform in 3.6? This is the list of Android related issues that will modify the standard library and core Python when fixed: issue 16255: subrocess.Popen needs /bin/sh but Android

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-21 Thread Chris Angelico
Chris Angelico added the comment: Attached is a combined patch that has the new private function for IsIdentifier, method 4's error handling change, and a bit of glue in the middle to make use of it. The result is a passing test suite (bar test_site which was already failing on my system) and

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-21 Thread Chris Angelico
Chris Angelico added the comment: Hmm, that'd be curious. The code to do that is actually pretty simple - see attached patch - but actually using that to affect error messages is a bit harder. Is it safe to mess with tok->start? -- Added file:

[issue27562] Import error encodings (Windows xp compatibility)

2016-07-21 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___

[issue27580] CSV Null Byte Error

2016-07-21 Thread Bobby Ocean
Bobby Ocean added the comment: @ Skip Montanaro, Actually, CSV has nothing to do with excel. Excel is a gui that processes CSV like many other programs. CSV stands for comma seperated values and is basic standard for data.https://en.m.wikipedia.org/wiki/Comma-separated_values As far as I

[issue23951] Update devguide style to use a similar theme as Docs

2016-07-21 Thread STINNER Victor
STINNER Victor added the comment: Thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue26944] android: test_posix fails

2016-07-21 Thread Larry Hastings
Larry Hastings added the comment: Is there a plan to make Android a supported platform in 3.6? -- ___ Python tracker ___

[issue26944] android: test_posix fails

2016-07-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: New patch with cosmetic changes. -- assignee: -> xdegaye stage: -> patch review Added file: http://bugs.python.org/file43817/test_getgroups_2.patch ___ Python tracker

[issue27584] New addition of vSockets to the python socket module

2016-07-21 Thread Cathy Avery
New submission from Cathy Avery: I have added AF_VSOCK support to python's 3.6 socket module ( socketmodule.c socketmodule.h cloned from https://hg.python.org/cpython ). The implementation is very similar to AF_NETLINK. AF_VSOCK requires the VMware-specific VMCI transport which is currently

[issue23951] Update devguide style to use a similar theme as Docs

2016-07-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5a19fbb8501f by Zachary Ware in branch 'default': Issue #23951: Add missing icon https://hg.python.org/devguide/rev/5a19fbb8501f New changeset 0f642c1ba901 by Zachary Ware in branch 'default': Issue #23951: Clean up rstlint makefile integration

[issue27583] configparser: modifying default_section at runtime

2016-07-21 Thread R. David Murray
R. David Murray added the comment: We use the versions field to indicate which versions it might get fixed in. Since this is not a security issue, that would be 3.5 and 3.6, if it doesn't affect 2.7. If we decide to make the code match the docs, it will probably only get fixed in 3.6, since

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-21 Thread Nick Coghlan
Nick Coghlan added the comment: Looking at issue 2382, I agree that's a different problem (I'm seeing the current misbehaviour even though everything is consistently encoded as UTF-8) The main case we're interested in here is the PyUnicode_IsIdentifier one, so if we wanted to do better than

[issue27583] configparser: modifying default_section at runtime

2016-07-21 Thread rk
Changes by rk : Removed file: http://bugs.python.org/file43815/bug_configparser_default_section.py ___ Python tracker ___

[issue27583] configparser: modifying default_section at runtime

2016-07-21 Thread rk
rk added the comment: Verified/tested with Python 2.7.9, 3.2.6, 3.3.6, 3.4.2, 3.5.1. The bug exists in all versions, so I've added 3.2, 3.3, 3.4 again. I've also attached an updated testcase, which now works in both Python 2 and Python 3. -- versions: +Python 3.2, Python 3.3, Python

[issue27583] configparser: modifying default_section at runtime

2016-07-21 Thread rk
rk added the comment: (removed Python 2.7, since default_section was not supported there) -- versions: -Python 2.7 ___ Python tracker ___

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-21 Thread Chris Angelico
Chris Angelico added the comment: BTW, here's how a session looks using method 4's change: >>> varname = asdf“d“a”t”apoint File "", line 1 varname = asdf“d“a”t”apoint ^ SyntaxError: invalid character in identifier >>> varname = asdf“d“a”t”apoint.evidence File "", line 1

[issue26081] Implement asyncio Future in C to improve performance

2016-07-21 Thread Yury Selivanov
Yury Selivanov added the comment: Yes. Most people will use vanilla asyncio anyways. -- ___ Python tracker ___

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-21 Thread Chris Angelico
Changes by Chris Angelico : Added file: http://bugs.python.org/file43813/method3-change-all-errors.patch ___ Python tracker ___

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-21 Thread Chris Angelico
Changes by Chris Angelico : Added file: http://bugs.python.org/file43812/method2-change-cur-and-inp.patch ___ Python tracker ___

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-21 Thread Chris Angelico
Changes by Chris Angelico : Added file: http://bugs.python.org/file43814/method4-change-all-errors-if-possible.patch ___ Python tracker ___

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-21 Thread Chris Angelico
Chris Angelico added the comment: Actually pinpointing the invalid character may be impractical, as there are two boolean situations: either a UnicodeDecodeError (because you had an invalid UTF-8 stream), or PyUnicode_IsIdentifier returns false. Either way, it applies to the whole identifier.

[issue27580] CSV Null Byte Error

2016-07-21 Thread Skip Montanaro
Skip Montanaro added the comment: Beyond whether or not the csv module can handle NUL bytes, you might figure out if Excel will. Since the CSV format isn't some sort of "standard", its operational definition has always been what Excel will produce or consume. I don't have Excel (not a Windows

[issue27580] CSV Null Byte Error

2016-07-21 Thread R. David Murray
R. David Murray added the comment: By "discussed before" I presume you are referring to issue 1599055. It is true that have been changes since then in Python's handling of null bytes. Perhaps it is indeed time to revisit this. I'll leave that to the experts...this can be closed as a

[issue27583] configparser: modifying default_section at runtime

2016-07-21 Thread R. David Murray
Changes by R. David Murray : -- nosy: +lukasz.langa versions: -Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___

[issue27578] inspect.findsource raises exception with empty __init__.py

2016-07-21 Thread R. David Murray
R. David Murray added the comment: I think someone should propose a patch with tests and we'll evaluate it. We prefer to retain backward compatibility even on undocumented interfaces, if possible, but yes they are more open to change (though only in a feature release, in general).

[issue26081] Implement asyncio Future in C to improve performance

2016-07-21 Thread Marco Paolini
Marco Paolini added the comment: THe guys developing uvloop say their implementation is already quite fast [1]. Is it worth integrating it? [1] https://github.com/MagicStack/uvloop -- nosy: +mpaolini ___ Python tracker

[issue26859] unittest fails with "Start directory is not importable" when trying to run sourceless tests

2016-07-21 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- stage: test needed -> patch review ___ Python tracker ___

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-21 Thread Chris Angelico
Chris Angelico added the comment: The question was raised that there might be a problem with (UTF-8) bytes vs characters, but that's definitely not it - pythonrun.c:1362 UTF-8-decodes the line of source and then gets its character length to use as the new offset. So I don't think this is a

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-21 Thread Berker Peksag
Berker Peksag added the comment: This looks like a duplicate of issue 2382. -- nosy: +berker.peksag ___ Python tracker ___

[issue26852] android: add a COMPILEALL_FLAGS Makefile variable

2016-07-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: > The python '-E' option was needed on 3.4 when this patch was first > implemented and is not needed anymore See msg 269359 in issue 22724. -- ___ Python tracker

[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2016-07-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: New patch that does not call sysconfig.get_config_var() on platforms that have '/bin/sh'. -- Added file: http://bugs.python.org/file43809/unix_shell_16255_2.patch ___ Python tracker

[issue27583] configparser: modifying default_section at runtime

2016-07-21 Thread rk
New submission from rk: Modifying "default_section" in the configparser at runtime does not behave as described. The documentation says about default_section: When default_section is given, it specifies the name for the special section holding default values for other sections and

[issue17310] Ctypes callbacks shows problem on Windows Python (64bit)

2016-07-21 Thread Patrick Stewart
Patrick Stewart added the comment: I've attached a patch with an extra fix to the duplicated issue 20160 http://bugs.python.org/issue20160 -- ___ Python tracker

[issue20160] broken ctypes calling convention on MSVC / 64-bit Windows (large structs)

2016-07-21 Thread Patrick Stewart
Patrick Stewart added the comment: This is still a problem, and the suggested fix seems to work. There is another error a few lines above where it is allocating 4 bytes for a pointer. I've attached a new patch with both fixes, but without Bob's tests. This issue is a duplicate of 17310

[issue26662] configure/Makefile doesn't check if "python" command works, needed to build Objects/typeslots.inc

2016-07-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: Issue 24034 is a duplicate. -- ___ Python tracker ___ ___ Python-bugs-list

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-21 Thread Chris Angelico
Changes by Chris Angelico : -- nosy: +Rosuav ___ Python tracker ___ ___ Python-bugs-list

[issue27582] Mispositioned SyntaxError caret for unknown code points

2016-07-21 Thread Nick Coghlan
New submission from Nick Coghlan: Reporting by Rustom Mody on python-ideas, the SyntaxError caret is confusingly mispositioned when an invalid Unicode codepoint appears as part of a larger sequence of invalid codepoints and/or valid identifier characters: >>> varname = “d“a”t”apoint File

[issue26662] configure/Makefile doesn't check if "python" command works, needed to build Objects/typeslots.inc

2016-07-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: So the error message could be ('$@' being the target): Cannot generate $@, python not found ! To skip re-generation of $@ run 'make touch' or 'make -t $@'. Otherwise, set python in PATH and run configure or run make with PYTHON_FOR_GEN=python. Martin, what do

[issue27578] inspect.findsource raises exception with empty __init__.py

2016-07-21 Thread Antti Haapala
Antti Haapala added the comment: It must be noted that `getlines` itself is not documented, and thus there is no backwards-compatibility to preserve really. `getline` returns '' for *any* erroneous line, so it wouldn't affect it. -- ___ Python

[issue27578] inspect.findsource raises exception with empty __init__.py

2016-07-21 Thread Antti Haapala
Antti Haapala added the comment: Or perhaps getlines should return [''] for empty regular files? -- nosy: +ztane ___ Python tracker ___

[issue27562] Import error encodings (Windows xp compatibility)

2016-07-21 Thread Iovan Irinel
Iovan Irinel added the comment: Still searching for someone who can do it. -- ___ Python tracker ___ ___

[issue27580] CSV Null Byte Error

2016-07-21 Thread SilentGhost
Changes by SilentGhost : -- versions: +Python 3.6 -Python 3.5 ___ Python tracker ___