[issue28125] identify cross builds by a more generic environment setting.

2016-09-13 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue27838] test_os.test_chown() random failure on "AMD64 FreeBSD CURRENT Debug 3.x" buildbot

2016-09-13 Thread Vajrasky Kok
Vajrasky Kok added the comment: "According to my (non-expert) reading of the code, the test skips (or is supposed to skip) unless group count of uid is > 1. The group membership of the buildbot user this worker runs as is only 'buildbot' and on that basis wouldn't a skip expected?" The group

[issue27838] test_os.test_chown() random failure on "AMD64 FreeBSD CURRENT Debug 3.x" buildbot

2016-09-13 Thread Vajrasky Kok
Vajrasky Kok added the comment: "The group here is not the group of buildbot user. The group here refers to all groups in the system." -> I retract back this statement. -- ___ Python tracker __

[issue24665] CJK support for textwrap

2016-09-13 Thread Florent Gallaire
Florent Gallaire added the comment: CJKwrap a little lib to fix this bug: https://github.com/fgallaire/cjkwrap -- ___ Python tracker ___ _

[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3c7456e28777 by Victor Stinner in branch '3.6': Issue #28040: Cleanup find_empty_slot() https://hg.python.org/cpython/rev/3c7456e28777 -- ___ Python tracker __

[issue27441] redundant assignments to ob_size of new ints that _PyLong_New returned

2016-09-13 Thread Oren Milman
Changes by Oren Milman : -- versions: +Python 3.7 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue27111] redundant variables in long_add and long_sub

2016-09-13 Thread Oren Milman
Changes by Oren Milman : -- versions: +Python 3.7 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue27222] redundant checks and a weird use of goto statements in long_rshift

2016-09-13 Thread Oren Milman
Changes by Oren Milman : -- versions: +Python 3.7 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue28120] Bug in _PyDict_Pop() on a splitted table

2016-09-13 Thread STINNER Victor
STINNER Victor added the comment: +# issue 28120 +c['a'] = 4 Can you please elaborate the comment? Something like: # issue 28120: Try to remove a pending key in a splitted table, # it must not crash -- ___ Python tracker

[issue28120] Bug in _PyDict_Pop() on a splitted table

2016-09-13 Thread Xiang Zhang
Xiang Zhang added the comment: v2 now enhances existing dict.pop() unittest to cover this case. -- Added file: http://bugs.python.org/file44632/issue28120_v2.patch ___ Python tracker ___

[issue27838] test_os.test_chown() random failure on "AMD64 FreeBSD CURRENT Debug 3.x" buildbot

2016-09-13 Thread Vajrasky Kok
Vajrasky Kok added the comment: The only way I can reproduce this in Linux (still downloading FreeBSD Current), is to remove user from the group before (I did it in different terminal) executing os.chown method to that specific group id. I am thinking to add more information in the exception m

[issue28120] Bug in _PyDict_Pop() on a splitted table

2016-09-13 Thread Xiang Zhang
Changes by Xiang Zhang : Added file: http://bugs.python.org/file44633/issue28120_v3.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue28125] identify cross builds by a more generic environment setting.

2016-09-13 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Plus the abi flags should not be set by hand, you'll get in trouble at least > for naming extensions, or building extensions for the wrong abi flags. This > was an explicit decision when I first started adding the cross-build changes. What do you mean ? The

[issue27973] urllib.urlretrieve() fails on second ftp transfer

2016-09-13 Thread Andreas Gustasfson
Andreas Gustasfson added the comment: I am also suffering from this bug, using Python 2.7.12 on NetBSD, and it is blocking my efforts to do automated testing of NetBSD/Xen. I'm attaching a minimal test case (only 3 lines). -- nosy: +gson Added file: http://bugs.python.org/file44634/tes

[issue28127] Add _PyDict_CheckConsistency()

2016-09-13 Thread STINNER Victor
New submission from STINNER Victor: Attached patch adds a function to check the consistency of a Python dictionary after each modification. The current implementation does really simple checks, but more advanced checks might be added later. I tried to check also the dictionary content, but it

[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2016-09-13 Thread Vinay Sajip
Vinay Sajip added the comment: > Ok, so we need to figure out whether the tests are wrong, or the 'fix' is > wrong. The tests were never updated, so most likely they will need changing. I was waiting for feedback about my point about _CONFIG_VARS['srcdir'], but I never got any at the time ...

[issue28120] Bug in _PyDict_Pop() on a splitted table

2016-09-13 Thread STINNER Victor
STINNER Victor added the comment: Thanks Stefan Krah for the bug report, thanks Christian Heimes for helping to identify the bug, and obvious thanks to Xiang Zhang to write a fix with an unit test ;-) -- resolution: -> fixed status: open -> closed versions: +Python 3.7 __

[issue28128] Improve the warning message for invalid escape sequences

2016-09-13 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: And I'd like to ask Ned: for me it's an improvement of an existing feature, so I guess it can enter the 3.6 branch? -- nosy: +ned.deily ___ Python tracker _

[issue28128] Improve the warning message for invalid escape sequences

2016-09-13 Thread Chi Hsuan Yen
New submission from Chi Hsuan Yen: In issue27364, invalid escape sequences in string literals are deprecated. Currently the deprecation message is not so useful when fixing lots of files in one or more large projects. For example, I have two files foo.py and bar.py: # foo.py import bar # bar.

[issue28120] Bug in _PyDict_Pop() on a splitted table

2016-09-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset dc627ef9020f by Victor Stinner in branch '3.6': Fix _PyDict_Pop() on pending key https://hg.python.org/cpython/rev/dc627ef9020f -- nosy: +python-dev ___ Python tracker

[issue27364] Deprecate invalid escape sequences in str/bytes

2016-09-13 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Opened a new issue at Issue28128. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue28129] assertion failures in ctypes

2016-09-13 Thread Oren Milman
New submission from Oren Milman: current state In Modules\_ctypes\_ctypes.c, there are six functions with assertions that might fail: 1. CDataType_from_buffer 2. CDataType_from_buffer_copy 3. PyCPointerType_set_type 4. PyCPointerType_from_param 5. Py

[issue28129] assertion failures in ctypes

2016-09-13 Thread Oren Milman
Changes by Oren Milman : -- keywords: +patch Added file: http://bugs.python.org/file44637/issue28129_ver1.diff ___ Python tracker ___

[issue28129] assertion failures in ctypes

2016-09-13 Thread Oren Milman
Changes by Oren Milman : Added file: http://bugs.python.org/file44638/CPythonTestOutput.txt ___ Python tracker ___ ___ Python-bugs-list mailin

[issue28129] assertion failures in ctypes

2016-09-13 Thread Oren Milman
Changes by Oren Milman : Added file: http://bugs.python.org/file44639/patchedCPythonTestOutput_ver1.txt ___ Python tracker ___ ___ Python-bugs

[issue28120] Bug in _PyDict_Pop() on a splitted table

2016-09-13 Thread INADA Naoki
INADA Naoki added the comment: Oh, very thank you, Xiang. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue27222] redundant checks and a weird use of goto statements in long_rshift

2016-09-13 Thread Mark Dickinson
Mark Dickinson added the comment: Sorry, this fell off my list of things to look at. -- assignee: -> mark.dickinson ___ Python tracker ___ __

[issue15393] JSONDecoder.raw_decode breaks on leading whitespace

2016-09-13 Thread R. David Murray
R. David Murray added the comment: Robert: as noted, skipping trailing whitespace would be breaking raw_decode's contract. It is designed to parse a json document and return the position of the last character of that document. If there is then another json document in the stream, parsing the

[issue15393] JSONDecoder.raw_decode breaks on leading whitespace

2016-09-13 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.5, Python 3.6, Python 3.7 -Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___

[issue25895] urllib.parse.urljoin does not handle WebSocket URLs

2016-09-13 Thread R. David Murray
R. David Murray added the comment: I believe our stance on these has changed over time from "feature" to "bugfix", especially when there is a standards document to back it (but sometimes when there is not...we gave up a while ago on the MIME-type standards ever getting finalized and just bow t

[issue28128] Improve the warning message for invalid escape sequences

2016-09-13 Thread Ned Deily
Ned Deily added the comment: It sounds like a fix but let's see the final patch first. If a core developer wants to apply it to the default branch for 3.7, we can decide whether it should go into 3.6, too. -- ___ Python tracker

[issue22426] strptime accepts the wrong '2010-06-01 MSK' string but rejects the right '2010-06-01 MSD'

2016-09-13 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- versions: +Python 3.7 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue28130] Document that time.tzset updates time module constants

2016-09-13 Thread Alexander Belopolsky
New submission from Alexander Belopolsky: Reported by MAL in #22798 (msg251840): "The fact that tzset() does update the module globals is not documented." The documentation should explicitly list timezone, daylight, altzone and tzname as the globals that are updated when time.tzset() is called

[issue22798] time.mktime doesn't update time.tzname

2016-09-13 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: MAL> The fact that tzset() does update the module globals is not documented. See #28130. -- ___ Python tracker ___ __

[issue22798] time.mktime doesn't update time.tzname

2016-09-13 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- versions: +Python 3.7 -Python 3.4, Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-

[issue28131] assert statements missed when loaded by zipimporter

2016-09-13 Thread Jason R. Coombs
New submission from Jason R. Coombs: Grabbing the recently released Python 3.6.0b1, I tried running one of my test suites, but found that some assertions were failing to assert when the package was loaded as a zip file (such as with pytest-runner installed dependencies). I distilled the issue

[issue28109] What's new item for PEP 526 -- Variable annotations

2016-09-13 Thread Guido van Rossum
Guido van Rossum added the comment: I'll take the latter. Give me a sec. -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue28127] Add _PyDict_CheckConsistency()

2016-09-13 Thread STINNER Victor
STINNER Victor added the comment: Ok, here is a more complete _PyDict_CheckConsistency() with an optional DEBUG_PYDICT (disabled by default). -- Added file: http://bugs.python.org/file44640/dict_check_consistency-2.patch ___ Python tracker

[issue28109] What's new item for PEP 526 -- Variable annotations

2016-09-13 Thread Guido van Rossum
Guido van Rossum added the comment: changeset: 103770:2c9e07db0ac4 tag: tip parent: 103768:879bde95a456 parent: 103769:f9b22b1bec2d user:Guido van Rossum date:Tue Sep 13 09:27:07 2016 -0700 summary: Add text about PEP 526 to What's new in 3.6. Ivan L. (mer

[issue22724] byte-compile fails for cross-builds

2016-09-13 Thread Xavier de Gaye
Xavier de Gaye added the comment: Cross-compilation of Android x86_64 on a linux x86_64 host followed by 'make install' does not fail anymore after the changes made in issue 27917. As expected since the triplets are different now when the target is an Android platform. -- ___

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

2016-09-13 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- dependencies: -byte-compile fails for cross-builds ___ Python tracker ___ ___ Python-bugs-list mailing

[issue28132] impossible to uninstall python3.6.0b1-amd64 from windows 10

2016-09-13 Thread Big Stone
New submission from Big Stone: most of the time, it confuses "uninstall" button for a "modify". when not confusing, it takes 0.5 second for no visible effect. -- messages: 276301 nosy: Big Stone priority: normal severity: normal status: open title: impossible to uninstall python3.6.0b1-a

[issue28132] impossible to uninstall python3.6.0b1-amd64 from windows 10

2016-09-13 Thread Big Stone
Big Stone added the comment: small detail: installed via non-default mean: python-3.6.0b1-amd64.exe TargetDir=C:\WinPython\basedir36\winpython-3.6.0b1-amd64\python-3.6.0b1.amd64 /quiet InstallAllUsers=0 Include_launcher=0 InstallLauncherAllUsers=0 Include_test=0 AssociateFiles=0 Shortcuts=0

[issue28115] Use argparse for the zipfile module

2016-09-13 Thread Jaysinh shukla
Jaysinh shukla added the comment: I'm working on this. :) -- nosy: +jaysinh.shukla ___ Python tracker ___ ___ Python-bugs-list mailing

[issue28114] Crash in unicodeobject.c find_maxchar_surrogates on python-3.6.0b1 for Windows

2016-09-13 Thread Steve Dower
Steve Dower added the comment: Whoops, yeah that's my fault. I'll get to it before b2, but I need to catch up on my day job the next week or two, so if someone else wants to apply a fix (and add a test - test_crashers, presumably?) then go for it! -- __

[issue28132] impossible to uninstall python3.6.0b1-amd64 from windows 10

2016-09-13 Thread Steve Dower
Steve Dower added the comment: You should have some log files in your %TEMP% directory. Can you zip up the most recent set and attach them here? FWIW, I just installed with that command and uninstall was fine, though Repair certainly had some issues that I'll investigate. -- nosy: +st

[issue28126] Py_MEMCPY: Use memcpy on Windows?

2016-09-13 Thread Christian Heimes
Christian Heimes added the comment: Perfect, thanks! Should we keep the Py_MEMCPY() macro for now and define it to memcpy()? Or should I get rid of it and just define it for b/w compatibility? -- ___ Python tracker

[issue22798] time.mktime doesn't update time.tzname

2016-09-13 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I ran the attached test-mktime.c program on Linux and MacOS X with the following results (TZ=America/New_York): $ cat test-mktime.c #include #include static void print_globals(struct tm *tm) { printf("%04d-%02d: %s/%s (%s) %d %ld (%ld)\n", 19

[issue28132] impossible to uninstall python3.6.0b1-amd64 from windows 10

2016-09-13 Thread Big Stone
Big Stone added the comment: what I found in temp (user temp) -- Added file: http://bugs.python.org/file44642/temp_info.zip ___ Python tracker ___ ___

[issue28126] Py_MEMCPY: Use memcpy on Windows?

2016-09-13 Thread Steve Dower
Steve Dower added the comment: I'm okay with removing it completely, if you're willing to change that much code. (Most of my additions already uses memcpy or memcpy_s directly, since I wasn't even aware of this macro :) ) -- ___ Python tracker

[issue28126] Py_MEMCPY: Use memcpy on Windows?

2016-09-13 Thread Christian Heimes
Christian Heimes added the comment: Behold the power of Unix! :) $ find -name '*.[ch]' | xargs sed -i s/Py_MEMCPY/memcpy/g Victor, are you fine with the change? I'm going to keep Py_MEMCPY around. -- ___ Python tracker

[issue28131] assert statements missed when loaded by zipimporter

2016-09-13 Thread Brett Cannon
Brett Cannon added the comment: I've added Greg and Thomas in case they have any ideas as they have looked at zipimport more recently than I have. -- nosy: +gregory.p.smith, twouters ___ Python tracker ___

[issue27322] test_compile_path fails when python has been installed

2016-09-13 Thread Brett Cannon
Brett Cannon added the comment: That seems reasonable to me. There is a context manager in test.test_importlib.util which can help with changing sys.path temporarily. -- ___ Python tracker

[issue28126] Py_MEMCPY: Use memcpy on Windows?

2016-09-13 Thread STINNER Victor
STINNER Victor added the comment: The macro looks public, you cannot remove it. Make it an alias to memcpy(), but explain that it's only kept for backward compatibility with a reference to this issue. -- ___ Python tracker

[issue28126] Py_MEMCPY: Use memcpy on Windows?

2016-09-13 Thread Christian Heimes
Christian Heimes added the comment: As I said, I'm going to keep Py_MEMCPY around but replace it everywhere else. /* Py_MEMCPY is kept for backwards compatibility, * see https://bugs.python.org/issue28126 */ #define Py_MEMCPY memcpy -- ___ Python tr

[issue28116] Error in what's new - PEP 515

2016-09-13 Thread Brett Cannon
Brett Cannon added the comment: the author meant "integer literals" when he said "integers" which is accurate as the hex literal isn't quite the same (e.g. uses different parse rules, etc.). If you would still like to propose different wording then you can submit a pull request at github.com/p

[issue27883] Update sqlite version for Windows build

2016-09-13 Thread Big Stone
Big Stone added the comment: well, json extension is not included in 3.6.0b1 . not a drama, yet a small deception -- ___ Python tracker ___ _

[issue28115] Use argparse for the zipfile module

2016-09-13 Thread R. David Murray
R. David Murray added the comment: Note that a key part of doing a translation like this is to write tests for the CLI, as comprehensively as possible, so that we have some assurance we didn't break anything in the translation. But experience tells us that we *will* break something, since we

[issue28132] impossible to uninstall python3.6.0b1-amd64 from windows 10

2016-09-13 Thread Big Stone
Big Stone added the comment: okay is successfukky repaired, then uninstalled by clicking twice on the installer.exe. this never worked by using the "application and functionalities" menu of windows 109. -- ___ Python tracker

[issue28126] Py_MEMCPY: Use memcpy on Windows?

2016-09-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset bedce61ae0a0 by Christian Heimes in branch '3.6': Issue #28126: Replace Py_MEMCPY with memcpy(). Visual Studio can properly optimize memcpy(). https://hg.python.org/cpython/rev/bedce61ae0a0 New changeset f5d32ed0f9c2 by Christian Heimes in branch '

[issue28126] Py_MEMCPY: Use memcpy on Windows?

2016-09-13 Thread Christian Heimes
Changes by Christian Heimes : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ __

[issue28122] email.header.decode_header can not decode string with quotation

2016-09-13 Thread R. David Murray
R. David Murray added the comment: Note, however, that python3 will compensate for this bug in the input, and register a defect for it: >>> import email >>> import email.policy >>> msg = email.message_from_string('To: "=?gb18030?B?bWFpbGZvcnRlc3R0?=" >>> <2070776...@qq.com>\n\ntest body', poli

[issue28118] type-limits warning in PyMem_New() _ssl_locks_count

2016-09-13 Thread Christian Heimes
Christian Heimes added the comment: I have an even better solution that gets rid of the warning and the extra memset() call: diff -r bedce61ae0a0 Modules/_ssl.c --- a/Modules/_ssl.cTue Sep 13 20:22:02 2016 +0200 +++ b/Modules/_ssl.cTue Sep 13 20:45:46 2016 +0200 @@ -5073,13 +5073,12 @@

[issue28118] type-limits warning in PyMem_New() _ssl_locks_count

2016-09-13 Thread Christian Heimes
Christian Heimes added the comment: Fixed in 9e8e15993aae -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ __

[issue27778] PEP 524: Add os.getrandom()

2016-09-13 Thread Christian Heimes
Christian Heimes added the comment: 3.6 is in beta phase. Are you interested to add the feature to 3.7? -- nosy: +christian.heimes versions: +Python 3.7 -Python 3.6 ___ Python tracker __

[issue28133] really and truly

2016-09-13 Thread Gukas Artunyan
New submission from Gukas Artunyan: Hello! I wanted to share with you something important , I guess I really and truly am in love this time! Take a look at some pics of us Be well, gukaar77 -- messages: 276324 nosy: gukaar77 priority: normal se

[issue27908] del _limbo[self] KeyError

2016-09-13 Thread Maciej Urbański
Maciej Urbański added the comment: Successfully reproduced on 2.7.12 and 3.5.2 . Currently there seems to be no protection against starting the same thread twice at the same time. What was checked was only if start operation already finished once. Attached patch makes it so limbo, our starting

[issue28133] spam

2016-09-13 Thread SilentGhost
Changes by SilentGhost : -- Removed message: http://bugs.python.org/msg276324 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue28133] spam

2016-09-13 Thread SilentGhost
Changes by SilentGhost : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue28128] Improve the warning message for invalid escape sequences

2016-09-13 Thread R. David Murray
R. David Murray added the comment: The error can't be a SyntaxError, it must be a DeprecationWarning. If you can improve the deprecation warning text, I'd be in favor of calling that a fix to the original feature and put it in 3.6. The deprecation warning can even say that this will be a Syn

[issue28133] spam

2016-09-13 Thread SilentGhost
Changes by SilentGhost : -- nosy: -gukaar77 title: really and truly -> spam ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue28134] socket.socket(fileno=fd) does not work as documented

2016-09-13 Thread Christian Heimes
New submission from Christian Heimes: Documentation of socket.socket(fileno) https://docs.python.org/3/library/socket.html#socket.socket says: > If fileno is specified, the other arguments are ignored, causing the socket > with the specified file descriptor to return. The feature does not wor

[issue28134] socket.socket(fileno=fd) does not work as documented

2016-09-13 Thread Christian Heimes
Changes by Christian Heimes : -- stage: -> needs patch type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue5396] os.read not handling O_DIRECT flag

2016-09-13 Thread Michael Mol
Michael Mol added the comment: I need to remember not to try to write quick programs in Python that need O_DIRECT. My use case: I'm attempting to write a program that forces the disk to seek to a particular place, as part of burning in the disk. My algorithm goes: 1. Seek to the beginning of

[issue28134] socket.socket(fileno=fd) does not work as documented

2016-09-13 Thread Christian Heimes
Christian Heimes added the comment: I expected that socket.socket(fileno) would fill in all socket options like my own implementation https://github.com/tiran/socketfromfd/blob/master/socketfromfd.py -- ___ Python tracker

[issue28134] socket.socket(fileno=fd) does not work as documented

2016-09-13 Thread R. David Murray
R. David Murray added the comment: See also issue 27377? -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing

[issue27908] del _limbo[self] KeyError

2016-09-13 Thread Dima Tisnek
Dima Tisnek added the comment: @rooter, if you go this way, you should also `self._started.set()` with lock held, together with removing thread from `_limbo` -- ___ Python tracker _

[issue15369] pybench and test.pystone poorly documented

2016-09-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Please add notes to the Tools/README pointing users to the performance suite. I'd also like to request that you reword this dismissive line in the performance package's readme: """ pybench - run the standard Python PyBench benchmark suite. This is consider

[issue27908] del _limbo[self] KeyError

2016-09-13 Thread Maciej Urbański
Maciej Urbański added the comment: @Dima.Tisnek, only reason for having both of these conditions together is so I won't have to repeat the same error message in the code at little price of the performance in this edge case (trying to start the same thread multiple times). Unless I'm missing so

[issue27908] del _limbo[self] KeyError

2016-09-13 Thread Brett Cannon
Changes by Brett Cannon : -- components: -Extension Modules ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue27908] del _limbo[self] KeyError

2016-09-13 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: -brett.cannon versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue28135] assertRaises should return the exception in its simple form

2016-09-13 Thread Facundo Batista
New submission from Facundo Batista: So, you could do: exc = self.assertRaises(ValueError, somefunc, someargs) And then, explore "exc" as will. Yes, you can get the exception if you use assertRaises as a context manager, but that leads to more cumbersome code: with self.assertRaises(Val

[issue23591] enum: Add Flags and IntFlags

2016-09-13 Thread Vedran Čačić
Vedran Čačić added the comment: Now that I actually had the chance to play with the implementation, I see most of my worst fears were justified. :-( Look: >>> import enum >>> class B(enum.Flag): b = 3 c = 4 d = 6 >>> B.b | B.c Traceback (most

[issue28136] RegEx documentation error

2016-09-13 Thread triuan
New submission from triuan: https://docs.python.org/2/library/re.html error: ...string 'aa', a{3,5} will match 5 'a' characters... suggest correction: ...string 'aa', a{5} will match 5 'a' characters... -- assignee: docs@python components: Documentation messages: 276336 nosy: d

[issue27908] del _limbo[self] KeyError

2016-09-13 Thread Dima Tisnek
Dima Tisnek added the comment: Your logic is accurate; _started is in fact separate from _limbo. As such taking a lock for "test-then-set" only would suffice. Now when you bring the other primitive under this lock in one place, it would look cleaner if it was also brought in the other. Ther

[issue28136] RegEx documentation error

2016-09-13 Thread triuan
triuan added the comment: https://docs.python.org/2/library/re.html error: ...string 'aa', a{3,5} will match 5 'a' characters... suggest correction 2: ...string 'aa', a{3, 5} will match 3 to 5 'a' characters... -- ___ Python tracker

[issue10673] multiprocess.Process join method - timeout indistinguishable from success

2016-09-13 Thread ppperry
Changes by ppperry : -- assignee: -> docs@python components: +Documentation nosy: +docs@python ___ Python tracker ___ ___ Python-bugs

[issue28048] Adjust class-build method of Enum so final ordered dict more closely resembles definition order

2016-09-13 Thread Ethan Furman
Ethan Furman added the comment: __definition_order__ was dropped from PEP520, so this issue is moot. -- resolution: -> rejected stage: test needed -> resolved status: open -> closed ___ Python tracker

[issue28136] RegEx documentation error

2016-09-13 Thread Christian Heimes
Christian Heimes added the comment: The documentation is correct. It explains the difference between a default match (greedy) and a non-greedy match. >>> re.match('(a{3,5})', 'a').group(1) 'a' >>> re.match('(a{3,5}?)', 'a').group(1) 'aaa' -- nosy: +christian.heimes ___

[issue28136] RegEx documentation error

2016-09-13 Thread SilentGhost
Changes by SilentGhost : -- resolution: -> not a bug stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker ___ ___

[issue28128] Improve the warning message for invalid escape sequences

2016-09-13 Thread Emanuel Barry
Emanuel Barry added the comment: Hello, and thanks! I'll work on a patch this week, or at most next week. I will make it so that it's completely uncontroversial to apply it to 3.6 as well (won't change the actual feature, only prettify the error message), so no need to worry about that :) ---

[issue28125] identify cross builds by a more generic environment setting.

2016-09-13 Thread Matthias Klose
Matthias Klose added the comment: On 13.09.2016 16:40, Xavier de Gaye wrote: > > Xavier de Gaye added the comment: > >> Plus the abi flags should not be set by hand, you'll get in trouble at least >> for naming extensions, or building extensions for the wrong abi flags. This >> was an explici

[issue28137] Windows sys.path file should be renamed

2016-09-13 Thread Steve Dower
New submission from Steve Dower: The Windows getpath implementation gained the ability to find and read a sys.path file to skip reading the registry. While the name is cute, it really ought to start with a leading underscore (i.e. "_sys.path") to indicate that it is very at-your-own-risk. The

[issue28138] Windows _sys.path file should allow import site

2016-09-13 Thread Steve Dower
New submission from Steve Dower: Windows's _sys.path file (being renamed from sys.path in b1) currently disable the initial "import site; site.main()" call. However, there are legitimate cases where you may want to opt-in to this while still controlling the search paths. We should support "im

[issue28055] pyhash's siphash24 assumes alignment of the data pointer

2016-09-13 Thread Matthias Klose
Matthias Klose added the comment: > I believe the unaligned memory access configure check is supposed to > prevent siphash from being used, so we might look into why that's not > working. > > IMO, though, we should just require alignment for the argument to > _PyHash_Bytes. It's private after al

[issue28055] pyhash's siphash24 assumes alignment of the data pointer

2016-09-13 Thread Christian Heimes
Christian Heimes added the comment: The main reason for two different hash algorithms was missing support for 64bit integer types. Python 3.4 was targeting platforms that had no 64bit integer support at all (IIRC SPARC). Nowaday Python requires 64bit ints to compile. I'm all in favor to remove

[issue28055] pyhash's siphash24 assumes alignment of the data pointer

2016-09-13 Thread Matthias Klose
Matthias Klose added the comment: ... would be to remove the autoconf check and make the selection of the hash method unconditional ... -- ___ Python tracker ___ ___

[issue23591] enum: Add Flags and IntFlags

2016-09-13 Thread Ethan Furman
Ethan Furman added the comment: Vedran: 1) Thank you for the bug report, it's appreciated. 2) I would appreciate it even more if you just kept it to a bug report without the, for lack of a better word, drama. --- >>>> import enum >>>> cla

[issue28125] identify cross builds by a more generic environment setting.

2016-09-13 Thread Xavier de Gaye
Xavier de Gaye added the comment: You do not answer my questions and resort to sarcasm instead: "How did you make it more difficult?". I understand that you may be upset because issue 23968 has been dismantled by the recent decision of removing the platdir files, but please keep exchanges on t

[issue28137] Windows sys.path file should be renamed

2016-09-13 Thread Christian Heimes
Christian Heimes added the comment: I don't want to start a bike-shedding discussion but how about a name that can't be confused with a module and attribute? It's hard to distinguish between sys.path and sys.path in a discussion. How do you like the idea of a file name like __syspath__.path? _

<    1   2   3   >