[issue25324] Importing tokenize modifies token

2015-10-06 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Importing the tokenize modifies the content of the token module. >>> import token >>> len(token.tok_name) 59 >>> import tokenize >>> len(token.tok_name) 61 Such side effect looks as bad design to me. Either token.tok_name should contain elements needed

[issue25324] Importing tokenize modifies token

2015-10-06 Thread STINNER Victor
STINNER Victor added the comment: I agree :-) Do you want to work on a patch? -- nosy: +haypo ___ Python tracker ___

[issue25157] Installing Python 3.5.0 32bit on Windows 8.1 64bit system gives Error 0x80240017

2015-10-06 Thread Laura Creighton
Laura Creighton added the comment: Got another log of an Error 0x802400 This is a windows 7 user reporting it to webmaster. -- Added file: http://bugs.python.org/file40699/bad_win7_install_log.txt ___ Python tracker

[issue23972] Asyncio reuseport

2015-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset aebbf205ef6f by Guido van Rossum in branch '3.4': Issue #23972: Fix tests for Windows and Debian. https://hg.python.org/cpython/rev/aebbf205ef6f New changeset 4d643c5df2a5 by Guido van Rossum in branch '3.5': Issue #23972: Fix tests for Windows and

[issue25330] Two issues with pkgutil.get_data

2015-10-06 Thread Antony Lee
New submission from Antony Lee: The docs of pkgutil.get_data say "The resource argument should be in the form of a relative filename, using / as the path separator. The parent directory name .. is not allowed, and nor is a rooted name (starting with a /)." In fact (on Python 3.5 at least): *

[issue25294] Absolute imports fail in some cases where relative imports would work

2015-10-06 Thread Nick Coghlan
Nick Coghlan added the comment: We seem to be talking past each other, so let's take a step back and ensure we have a common understanding of the absolute/relative terminology: "import x.y.z" is an absolute import "from x.y import z" is still an absolute import. "from . import z" is an

[issue25294] Absolute imports fail in some cases where relative imports would work

2015-10-06 Thread Nick Coghlan
Nick Coghlan added the comment: (Oops, it seems Brett already clarified the terminology. My apologies for the noise). Modularity and module design is hard. It's one of the hardest problems in software engineering, which is why folks invent entire new vocabularies to attempt to describe the

[issue25325] UTF-16LE, UTF-16BE, UTF-32LE, and UTF-32BE encodings don't add/remove BOM on encode/decode

2015-10-06 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> not a bug status: open -> closed ___ Python tracker ___

[issue25325] UTF-16LE, UTF-16BE, UTF-32LE, and UTF-32BE encodings don't add/remove BOM on encode/decode

2015-10-06 Thread Daniel Blanchard
Daniel Blanchard added the comment: Thanks for straightening me out there! I had not noticed this in the Unicode FAQ before: > Where the data has an associated type, such as a field in a database, a BOM > is unnecessary. In particular, if a text data stream is marked as UTF-16BE, >

[issue8256] input() doesn't catch _PyUnicode_AsString() exception; io.StringIO().encoding is None

2015-10-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch. -- stage: needs patch -> patch review Added file: http://bugs.python.org/file40704/input_fallback.patch ___ Python tracker

[issue8256] input() doesn't catch _PyUnicode_AsString() exception; io.StringIO().encoding is None

2015-10-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I would fallback to PyFile_WriteObject(prompt, fout, Py_PRINT_RAW) if the stdout has no the encoding attribute or it is not a string. -- nosy: +serhiy.storchaka versions: +Python 3.4, Python 3.5, Python 3.6 -Python 3.2, Python 3.3

[issue25327] Windows 10 Installation Fails With Corrupt Directory Error

2015-10-06 Thread Max Farrell
New submission from Max Farrell: Cannot install Python 3.5 64-bit on Windows 10 64-bit Educational Edition. I have Python 3.4 Installed. Log include. -- components: Installation files: Python 3.5.0 (64-bit)_20151006150920.log messages: 252423 nosy: Max Farrell priority: normal

[issue25327] Python 3.5 Windows 10 Installation Fails With Corrupt Directory Error

2015-10-06 Thread eryksun
Changes by eryksun : Removed file: http://bugs.python.org/file40706/Python 3.5.0 (64-bit)_20151006150920.log ___ Python tracker ___

[issue12346] Python source code build fails with old mercurial

2015-10-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___

[issue25228] Regression in cookie parsing with brackets and quotes

2015-10-06 Thread Tim Graham
Tim Graham added the comment: I had already proposed a test, see cookie-bracket-quotes-test.diff. What I meant was that the fix and the test should be combined into a single patch. -- ___ Python tracker

[issue24821] The optimization of string search can cause pessimization

2015-10-06 Thread Adam
Changes by Adam : -- nosy: +azsorkin ___ Python tracker ___ ___ Python-bugs-list mailing

[issue25325] UTF-16LE, UTF-16BE, UTF-32LE, and UTF-32BE encodings don't add/remove BOM on encode/decode

2015-10-06 Thread eryksun
eryksun added the comment: Yes, if you explicitly use big-ending or little-endian UTF, then you need to manually include a BOM if that's required. That said, if a file format or data field is specified with a particular byte order, then using a BOM is strictly incorrect. See the UTF BOM FAQ:

[issue25327] Python 3.5 Windows 10 Installation Fails With Corrupt Directory Error

2015-10-06 Thread Max Farrell
Max Farrell added the comment: Windows 10 64-Bit Educational Edition. Python 3.5 64-bit Installation failed. Directory is corrupt. Log included. -- title: Windows 10 Installation Fails With Corrupt Directory Error -> Python 3.5 Windows 10 Installation Fails With Corrupt Directory Error

[issue25327] Python 3.5 Windows 10 Installation Fails With Corrupt Directory Error

2015-10-06 Thread eryksun
Changes by eryksun : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue25325] UTF-16LE, UTF-16BE, UTF-32LE, and UTF-32BE encodings don't add/remove BOM on encode/decode

2015-10-06 Thread R. David Murray
R. David Murray added the comment: eryksun beat me to the answer, but I'm going to post mine anyway :) If I understand the codecs docs correctly, this is because if you are specifying the endianess you want, it is a sign that you are only going to interpret it as that endianness, so there's

[issue25314] Documentation: argparse's actions store_{true, false} default to False/True (undocumented)

2015-10-06 Thread paul j3
paul j3 added the comment: I have seen questions on StackOverflow with 'store_true' and explicit `default=False` parameters. I don't recall any where this was a problem. Usually it's as harmless as users specifying other defaults like `action='store'`, or a dest that echos a long option,

[issue25097] test_logging may fail with 'Access is denied' when pywin32 is installed

2015-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4e7697ccceeb by Zachary Ware in branch '3.4': Issue #25097: fix Windows error number access https://hg.python.org/cpython/rev/4e7697ccceeb New changeset 440d4da352fa by Zachary Ware in branch '3.5': Issue #25097: Merge with 3.4

[issue25097] test_logging may fail with 'Access is denied' when pywin32 is installed

2015-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 03a569eb0e0e by Zachary Ware in branch '3.4': Issue #25097: Re-raise any other pywin32 error https://hg.python.org/cpython/rev/03a569eb0e0e New changeset 95a26798819b by Zachary Ware in branch '3.5': Issue #25097: Merge with 3.4

[issue25329] test_json crashes with stack overflow on Windows

2015-10-06 Thread Zachary Ware
New submission from Zachary Ware: See for example: http://buildbot.python.org/all/builders/AMD64%20Windows8.1%20Non-Debug%203.4/builds/224 Possibly related to #25222. -- components: Tests, Windows messages: 252432 nosy: ezio.melotti, haypo, paul.moore, pitrou, rhettinger, steve.dower,

[issue25097] test_logging may fail with 'Access is denied' when pywin32 is installed

2015-10-06 Thread Zachary Ware
Zachary Ware added the comment: Turned out that your change didn't quite do it, but it was just the method you used to try to access the errno (which looks like it ought to work from the formatting of the error message). Mere moments after pushing the fix for that, I realized that the new

[issue25327] Python 3.5 Windows 10 Installation Fails With Corrupt Directory Error

2015-10-06 Thread Steve Dower
Steve Dower added the comment: Looks like you need to download the installer again (clear your internet cache first to avoid getting the same corrupted file). -- type: compile error -> ___ Python tracker

[issue25328] ValueError in smtpd.py __init__() is not raised

2015-10-06 Thread Barry A. Warsaw
New submission from Barry A. Warsaw: In Python 3.5, SMTPChannel.__init__() ensures that enable_SMTPUTF8 and decode_data arguments are not both true. This even seems to be tested in test_smtpd.py. But it's clearly bogus because the exception is never raised! It just creates and throws away

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-10-06 Thread John
John added the comment: Consider the following generator function similar to the one that started this issue: from __future__ import generator_stop def myzip(*seqs): its = (iter(seq) for seq in seqs) while True: try: yield

[issue25329] test_json crashes with stack overflow on Windows

2015-10-06 Thread Zachary Ware
Zachary Ware added the comment: Note that this is not a consistent failure, see for example build 223[1] where test_json passes. I've noticed that the sooner test_json starts, the more likely it is to pass (it's the 28th test in 223, 117th in 224). [1]

[issue25325] UTF-16LE, UTF-16BE, UTF-32LE, and UTF-32BE encodings don't add/remove BOM on encode/decode

2015-10-06 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Just to add some more background: The LE and BE codecs are meant to be used when you already know the endianness of the platform you are targeting, e.g. in case you work on strings that were read after the initial BOM, or write to an output string in

[issue25308] Multiple names can target the same namespace

2015-10-06 Thread paul j3
paul j3 added the comment: What you are asking about is the fact that different arguments can share a 'dest'. https://docs.python.org/3/library/argparse.html#dest The 'append_const' action has an example of shared 'dest'. It says: The 'append_const' action is typically useful when

[issue23972] Asyncio reuseport

2015-10-06 Thread chris laws
chris laws added the comment: This patch contains minor updates to resolve the Buildbot issues observed on the Windows and Debian platforms after the initial #23972 change set was committed. -- Added file: http://bugs.python.org/file40696/23972_cjl_v006.patch

[issue21295] Python 3.4 gives wrong col_offset for Call nodes returned from ast.parse

2015-10-06 Thread Radek Novacek
Radek Novacek added the comment: There is still problem with col_offset is some situations, for example col_offset of the ast.Attribute should be 4 but is 0 instead: >>> for x in ast.walk(ast.parse('foo.bar')): ... if hasattr(x, 'col_offset'): ... print("%s: %d" % (x,

[issue21295] Python 3.4 gives wrong col_offset for Call nodes returned from ast.parse

2015-10-06 Thread Aivar Annamaa
Aivar Annamaa added the comment: Radek, the source corresponding to Attribute node does start at col 0 in your example -- ___ Python tracker ___

[issue25325] UTF-16LE, UTF-16BE, UTF-32LE, and UTF-32BE encodings don't add/remove BOM on encode/decode

2015-10-06 Thread R. David Murray
Changes by R. David Murray : -- stage: -> resolved ___ Python tracker ___ ___

[issue22865] Document how to make pty.spawn not copy data

2015-10-06 Thread Martin Panter
Martin Panter added the comment: If you return null bytes, they will be written to the parent process’s stdout file descriptor, rather than being ignored. I do not think it is possible to ignore output with the spawn() API, unless perhaps you previously set up stdout write to /dev/null or

[issue25321] Null Dereference "subname" in zipimport.c

2015-10-06 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> not a bug status: open -> closed ___ Python tracker ___

[issue25323] Bus error: 10 when executing recursive program

2015-10-06 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> not a bug status: open -> closed ___ Python tracker ___

[issue17824] pty.spawn handles errors improperly

2015-10-06 Thread Martin Panter
Martin Panter added the comment: The spawn() function has this code outside of any error handler: pid, master_fd = fork() if pid == CHILD: os.execlp(argv[0], *argv) If fork() succeeds, there will actually be a parent Python process and a child Python process. If exec() then fails, an

[issue22865] Document how to make pty.spawn not copy data

2015-10-06 Thread Geoff Shannon
Geoff Shannon added the comment: Hmm, I spoke improperly. I think you are entirely correct in your statements. What I meant by "terminals ignore null bytes" is that returning a string consisting of only a null byte doesn't cause anything observable to happen, including anything to be

[issue24806] Inheriting from NoneType does not fail consistently

2015-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset c46ccfac8763 by Benjamin Peterson in branch '2.7': prevent unacceptable bases from becoming bases through multiple inheritance (#24806) https://hg.python.org/cpython/rev/c46ccfac8763 New changeset e670b37e7b14 by Benjamin Peterson in branch '3.4':

[issue25308] Multiple names can target the same namespace

2015-10-06 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> not a bug status: open -> closed ___ Python tracker ___

[issue12346] Python source code build fails with old mercurial

2015-10-06 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> fixed status: pending -> closed ___ Python tracker ___

[issue25322] contextlib.suppress not tested for nested usage

2015-10-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: That patch looks correct. -- nosy: +rhettinger ___ Python tracker ___

[issue24954] No way to generate or parse timezone as produced by datetime.isoformat()

2015-10-06 Thread Martin Panter
Martin Panter added the comment: Okay I am happy to be wrong about Python allowing seconds resolution. I notice that Issue 12006 was committed, which adds a second table of Python-only codes for ISO 8601 values. The proposed entries here could be incorporated into that table, and the text

[issue25313] IDLE: gracefully handle themes (or keysets, or ...) not present

2015-10-06 Thread Mark Roseman
Mark Roseman added the comment: Okay, that's reasonable enough for me. :-) I'd still be for nuking the warning so that nothing gets displayed unless you go looking in online help. -- ___ Python tracker

[issue14576] IDLE: inconsistent use of HOMEDRIVE, HOMEPATH, and USERPROFILE on Windows

2015-10-06 Thread Mark Roseman
Changes by Mark Roseman : -- nosy: +markroseman ___ Python tracker ___ ___

[issue25322] contextlib.suppress not tested for nested usage

2015-10-06 Thread R. David Murray
R. David Murray added the comment: Looks good to me. I hope I never see anything like that in real code, though :) -- ___ Python tracker ___

[issue22906] PEP 479: Change StopIteration handling inside generators

2015-10-06 Thread John
John added the comment: Please ignore my previous comment - now I understood what is going on. The `its` generator is a one-shot iterator so is exhausted the first time the while loop is run. Therefore, on subsequent loops, only empty tuples are yielded. Still learning about generators... :)

[issue25322] contextlib.suppress not tested for nested usage

2015-10-06 Thread Frazer McLean
New submission from Frazer McLean: In Lib/test/test_contextlib.py, there is a bug in the nested usage part of the following function: def test_cm_is_reentrant(self): ignore_exceptions = suppress(Exception) with ignore_exceptions: pass with ignore_exceptions:

[issue24402] input() uses sys.__stdout__ instead of sys.stdout for prompt

2015-10-06 Thread Martin Panter
Martin Panter added the comment: Patch itself looks good. -- nosy: +martin.panter stage: needs patch -> patch review ___ Python tracker ___

[issue8256] input() doesn't catch _PyUnicode_AsString() exception; io.StringIO().encoding is None

2015-10-06 Thread Martin Panter
Martin Panter added the comment: Serhiy, your patch looks like a worthwhile improvement because it adds proper error checking and handling. However I suspect this original bug is actually a side effect of Issue 24402. The code in question shouldn’t even be running, because sys.stdout is not

[issue25322] contextlib.suppress not tested for nested usage

2015-10-06 Thread Martin Panter
Martin Panter added the comment: My suggested fix would look like: with ignore_exceptions: with ignore_exceptions: # Check nested usage len(5) ignored = True 1/0 self.assertTrue(ignored) -- nosy: +martin.panter ___ Python

[issue25324] Importing tokenize modifies token

2015-10-06 Thread Martin Panter
Martin Panter added the comment: I would fix this by making tokenize.tok_name a copy. It looks like this behaviour dates back to 1997 (see revision 1efc4273fdb7). -- nosy: +martin.panter ___ Python tracker

[issue22726] Idle: add help to config dialogs

2015-10-06 Thread Mark Roseman
Mark Roseman added the comment: I'm not against online help, but I feel that what's there wouldn't be helpful to someone using IDLE. Once this would be extended to per-tab, what are the problem areas that people really need help with? Also keeping in mind we're going to be replacing this

[issue12006] strptime should implement %G, %V and %u directives

2015-10-06 Thread Erik Cederstrand
Erik Cederstrand added the comment: I have reviewed the latest patch, and it looks good to me. There are tests for the tricky conversions around Jan 1, and the docs are brief and succinct. Until the full set of new c99 strftime directives are supported, I think it's overkill to include a

[issue21295] Python 3.4 gives wrong col_offset for Call nodes returned from ast.parse

2015-10-06 Thread Radek Novacek
Radek Novacek added the comment: Aivar, I have to admit that my knowledge of this is limited, but as I understand it, the attribute is "bar" in the "foo.bar" expression. I can get beginning of the assignment by >>> ast.parse('foo.bar').body[0].value.value.col_offset 0 But how can I get

[issue25323] Bus error: 10 when executing recursive program

2015-10-06 Thread Radosław Ejsmont
New submission from Radosław Ejsmont: When I execute a recursive deep tree reconstruction algorithm (depth ~2) I am hitting a bus error 10. I have modified the recursion limit accordingly (sys.setrecursionlimit(2)). I am running python 2.7.10 on OS X 10.11. The code I am running is

[issue21295] Python 3.4 gives wrong col_offset for Call nodes returned from ast.parse

2015-10-06 Thread Aivar Annamaa
Aivar Annamaa added the comment: ast.Attribute node actually means "the atribute of something", ie. the node includes this "something" as subnode. > How can I get the position of 'bar' in 'foo.bar'? I don't know a good way for this, because bar is not an AST node for Python. If Python AST

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

2015-10-06 Thread Florin Papa
Florin Papa added the comment: Hi all, I added LDFLAGS_NODIST in order to avoid distutils problems. Please see the updated patches. Thank you, Florin -- type: enhancement -> security Added file: http://bugs.python.org/file40697/mpx_enable_3_6_v3.patch

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

2015-10-06 Thread Florin Papa
Changes by Florin Papa : Added file: http://bugs.python.org/file40698/mpx_enable_2_7_v3.patch ___ Python tracker ___

[issue25322] contextlib.suppress not tested for nested usage

2015-10-06 Thread R. David Murray
R. David Murray added the comment: Oh, I didn't read your message carefully enough. But that makes this bug report even more ironic. -- ___ Python tracker

[issue25323] Bus error: 10 when executing recursive program

2015-10-06 Thread Mark Dickinson
Mark Dickinson added the comment: > You may have to enlarge the C stack The following might work (e.g., in bash shell) ulimit -s 6 Here the count is in KiB, so that's setting a stack size of about 58.6 MiB. There appears to be a system-wide limit of close to 64 MiB, so pushing past

[issue25323] Bus error: 10 when executing recursive program

2015-10-06 Thread eryksun
eryksun added the comment: I don't know about OS X, but in 64-bit Linux I can increase the recursion limit to 10 if I allow the main thread to grow to 64 MiB by setting the RLIMIT_STACK soft limit. For example: soft, hard = resource.getrlimit(resource.RLIMIT_STACK) soft =

[issue23543] encoding error trying to save string to file

2015-10-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Indeed, the name that looks as ASCII actually contains non-ASCII characters. >>> print(ascii('LKC.6558‐100‐HD‐P‐101_C.xlsx\n')) 'LKC.6558\u2010100\u2010HD\u2010P\u2010101_C.xlsx\n' Martin suggests correct solution. -- nosy: +serhiy.storchaka

[issue25323] Bus error: 10 when executing recursive program

2015-10-06 Thread STINNER Victor
STINNER Victor added the comment: Well, Python tries to protect you against stack overflow, but the protection is not perfect. You may have to enlarge the C stack, but I don't know how. Workaround: try to rewrite your algorithm to use a lower recursion depth. -- nosy: +haypo

[issue25322] contextlib.suppress not tested for nested usage

2015-10-06 Thread R. David Murray
R. David Murray added the comment: Hah. I predicted this thing was going to attract bug reports :) The behavior you observe is how context managers in general and this one in particular work. I'll let Nick explain it, since he wrote it. Maybe there is an doc improvement that would help.

[issue25322] contextlib.suppress not tested for nested usage

2015-10-06 Thread Frazer McLean
Frazer McLean added the comment: I may not have been clear—I understand how context managers work with exceptions. I'm just pointing out that the nested context manager isn't called, so those final two lines aren't testing anything, right? -- ___

[issue25317] Convert test_tokenize to unittests

2015-10-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue25317] Convert test_tokenize to unittests

2015-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7b2af8ee6dfa by Serhiy Storchaka in branch '2.7': Issue #25317: Converted doctests in test_tokenize to unittests. https://hg.python.org/cpython/rev/7b2af8ee6dfa New changeset d272f3cbae05 by Serhiy Storchaka in branch '3.4': Issue #25317: Converted

[issue25228] Regression in cookie parsing with brackets and quotes

2015-10-06 Thread Pathangi Jatinshravan
Pathangi Jatinshravan added the comment: Hi I have made a patch for this, can anyone review and let me know? -- versions: -Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6 Added file: http://bugs.python.org/file40700/patch.diff ___ Python

[issue25157] Installing Python 3.5.0 32bit on Windows 8.1 64bit system gives Error 0x80240017

2015-10-06 Thread Steve Dower
Steve Dower added the comment: The new log looks like Win7 SP1 is needed. I suspect in the original case there was some other update that was required as well, but I don't know what it was. The prerequisites are the latest service packs for Win7/WinS2K8 and earlier, and

[issue25326] Improve error message for "character buffer objects"

2015-10-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: Another alternative --- TypeError: expected a string or other character buffer object -- ___ Python tracker

[issue13535] Improved two's complement arithmetic support: to_signed() and to_unsigned()

2015-10-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm for closing this issue. This is not the common operation. -- nosy: +serhiy.storchaka status: open -> pending ___ Python tracker

[issue14126] Speed up list comprehensions by preallocating the list where possible

2015-10-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending versions: +Python 3.6 -Python 3.3 ___ Python tracker ___

[issue25228] Regression in cookie parsing with brackets and quotes

2015-10-06 Thread Pathangi Jatinshravan
Pathangi Jatinshravan added the comment: Hi Tim, I have submitted a patch for this issue (patch_final.diff, the earlier one failed a UT). Now all UTs are passing. Can you take a look at this? -- Added file: http://bugs.python.org/file40701/patch_final.diff

[issue12006] strptime should implement %G, %V and %u directives

2015-10-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I've committed the latest patch. Thank you Ashley and Erik for your work and perseverance. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue25326] Improve error message for "character buffer objects"

2015-10-06 Thread Raymond Hettinger
New submission from Raymond Hettinger: Python 2.7.10+ (2.7:fc6d62db8d42+, Oct 6 2015, 11:55:10) [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.72)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> s = 'the tale of two cities' >>> s.count(('a', 'z'))

[issue25157] Installing Python 3.5.0 32bit on Windows 8.1 64bit system gives Error 0x80240017

2015-10-06 Thread Shirshendu Bhowmick
Shirshendu Bhowmick added the comment: I have tried downloading and installing the updates from Microsoft, but the system said that the updates are already installed. -- ___ Python tracker

[issue25228] Regression in cookie parsing with brackets and quotes

2015-10-06 Thread Tim Graham
Tim Graham added the comment: Could you please integrate my unit test into your patch? You also need to sign the PSF Contributor Agreement: https://www.python.org/psf/contrib/contrib-form/ -- ___ Python tracker

[issue25228] Regression in cookie parsing with brackets and quotes

2015-10-06 Thread Pathangi Jatinshravan
Pathangi Jatinshravan added the comment: Oops, sorry looks like a unit test is failing. I will fix it and submit another one soon. -- ___ Python tracker

[issue25157] Installing Python 3.5.0 32bit on Windows 8.1 64bit system gives Error 0x80240017

2015-10-06 Thread Steve Dower
Steve Dower added the comment: Do you still get the same error from the Python installer? -- ___ Python tracker ___

[issue25324] Importing tokenize modifies token

2015-10-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I left the decision for modules maintainers. -- ___ Python tracker ___

[issue13348] test_unicode_file fails: shutil.copy2 says "same file"

2015-10-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___

[issue25157] Installing Python 3.5.0 32bit on Windows 8.1 64bit system gives Error 0x80240017

2015-10-06 Thread eryksun
eryksun added the comment: Error code WU_E_NOT_APPLICABLE (0x80240017) just tells us that "there are no applicable updates". Perhaps the Windows Update log has more information. Shirshendu, try directly installing the [Universal CRT update][1] from the command prompt. Run it with the /log

[issue12006] strptime should implement %G, %V and %u directives

2015-10-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset acdebfbfbdcf by Alexander Belopolsky in branch 'default': Closes issue #12006: Add ISO 8601 year, week, and day directives to strptime. https://hg.python.org/cpython/rev/acdebfbfbdcf -- nosy: +python-dev

[issue25157] Installing Python 3.5.0 32bit on Windows 8.1 64bit system gives Error 0x80240017

2015-10-06 Thread Shirshendu Bhowmick
Shirshendu Bhowmick added the comment: Yes still the same error, even i have tried on a different system with different configurations running Windows 8.1 there is also i faced the same error. -- ___ Python tracker

[issue25325] UTF-16LE, UTF-16BE, UTF-32LE, and UTF-32BE encodings don't add/remove BOM on encode/decode

2015-10-06 Thread Daniel Blanchard
New submission from Daniel Blanchard: As I recently discovered when someone filed a PR on chardet (see https://github.com/chardet/chardet/issues/70), BOMs are handled are not handled correctly by the endian-specific encodings UTF-16LE, UTF-16BE, UTF-32LE, and UTF-32BE, but are by the UTF-16

[issue25326] Improve error message for "character buffer objects"

2015-10-06 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- components: Interpreter Core files: better_error_message.diff keywords: patch nosy: rhettinger priority: normal severity: normal stage: patch review status: open title: Improve error message for "character buffer objects"

[issue25228] Regression in cookie parsing with brackets and quotes

2015-10-06 Thread Pathangi Jatinshravan
Pathangi Jatinshravan added the comment: Added a patch where unit test has been modified to include the above case. I have signed the agreement. -- Added file: http://bugs.python.org/file40703/patch_unittest.diff ___ Python tracker