windows utf8 & lxml

2016-12-20 Thread Sayth Renshaw
Possibly i will have to use a different method from lxml like this. http://stackoverflow.com/a/29057244/461887 Sayth -- https://mail.python.org/mailman/listinfo/python-list

[issue24672] shutil.rmtree fails on non ascii filenames

2016-12-20 Thread Jason R. Coombs
Jason R. Coombs added the comment: I'm afraid I need to re-open this issue. Although passing unicode names to rmtree fixes the issue on Windows systems, it causes problems on Linux systems where LC_ALL=C. Consider this script: # # encoding: utf-8 from

[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-20 Thread eryk sun
eryk sun added the comment: When you change the association for executing scripts (either via Default Programs or the Open with => Choose another app menu), do not "look for another app on this PC". Manually associating files with an executable such as py.exe creates a ProgId that's only

[issue28997] test_readline.test_nonascii fails on Android

2016-12-20 Thread Xavier de Gaye
Xavier de Gaye added the comment: The test is ok on Android when LANG=en_US.UTF-8. When LANG is not set, the check made by the first statement in test_nonascii() should skip the test but fails to skip it on Android as Py_EncodeLocale() always encode to utf8 whatever the locale (same as with

[issue28997] test_readline.test_nonascii fails on Android

2016-12-20 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- stage: needs patch -> patch review ___ Python tracker ___

[issue29029] Faster positional arguments parsing in PyArg_ParseTupleAndKeywords

2016-12-20 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch speeds up parsing positional arguments in PyArg_ParseTupleAndKeywords(). $ ./python -m perf timeit "1 .to_bytes(1, 'little', signed=False)" Unpatched: Median +- std dev: 2.01 us +- 0.09 us Patched:Median +- std dev: 1.23 us +- 0.03 us

[issue24672] shutil.rmtree fails on non ascii filenames

2016-12-20 Thread Steve Dower
Steve Dower added the comment: Lib/posixpath.py needs a huge amount of work to behave correctly for either bytes or Unicode paths. I don't know why Lib/ntpath.py is okay here, but the code is different so I suspect it just happens to not need the same conversion. Switching for each platform

[issue28932] Fail compile Python 3.6.0rc1 on OpenBSD 6.0

2016-12-20 Thread Ned Deily
Changes by Ned Deily : -- priority: release blocker -> ___ Python tracker ___ ___

topology rules in python

2016-12-20 Thread Xristos Xristoou
I have a PostGIS database with shapefiles lines, polygons and points and I want to create a topology rules with python. Any idea how to do that ?some packages ? I like some easy way to do that because I am newbie but its OK. Some topology rules when I want. shapefile must not have gaps

[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-20 Thread Steve Dower
Steve Dower added the comment: > Steve, you could move the "Edit with IDLE" menu out of the Python.File ProgId > to an entry defined in SystemFileAssociations. I could, but I don't want to. I'd rather figure out adding an "Open With" entry for IDLE. There's no reason to for IDLE to be a

Metaclasses - magic functions

2016-12-20 Thread Mr. Wrobel
Hi, Quick question, can anybody tell me when to use __init__ instead of __new__ in meta programming? I see that __new__ can be used mostly when I want to manipulate with class variables that are stored into dictionary. But when to use __init__? Any example? Thanx, M --

[issue29021] Custom functions in sqlite receive None on invalid UTF-8

2016-12-20 Thread Ned Deily
Changes by Ned Deily : -- nosy: +ghaering ___ Python tracker ___ ___ Python-bugs-list

Re: Metaclasses - magic functions

2016-12-20 Thread Ian Kelly
On Tue, Dec 20, 2016 at 2:04 PM, Mr. Wrobel wrote: > Hi, > > Quick question, can anybody tell me when to use __init__ instead of __new__ > in meta programming? > > I see that __new__ can be used mostly when I want to manipulate with class > variables that are stored into

[issue29030] argparse: choices override metavar

2016-12-20 Thread Cyker Way
New submission from Cyker Way: Using `choices` option in `argparse` module caused unwanted behavior. # Without `choices` parser = argparse.ArgumentParser() parser.add_argument('length') parser.print_help() ## Output usage: demo.py [-h] length positional arguments:

[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-20 Thread David
David added the comment: So I tried changing it to py.exe, and it doesn't load the IDLE: instead, it opens up the run command for the program in command prompt. That's not what I want it to do. Also, there still is no Edit With IDLE option. And I tried doing the ProgID stuff, but none of it

Re: Metaclasses - magic functions

2016-12-20 Thread Ben Finney
"Mr. Wrobel" writes: > Quick question, can anybody tell me when to use __init__ instead of > __new__ in meta programming? Use ‘__new__’ to do the work of *creating* one instance from nothing; allocating the storage, determining the type, etc. — anything that will be *the same*

[issue23903] Generate PC/python3.def by scraping headers

2016-12-20 Thread Steve Dower
Steve Dower added the comment: I just ran into this because PyModule_AddFunctions() was added to the stable ABI in 3.5, but was not added to python3.dll. This is blatantly a compilation error. We _need_ python3.def and the stable ABI to be in sync. I've rerun the script against Python 3.6

Re: Pyvenv puts both Python 2 and Python 3 in the same environment. Shocked!

2016-12-20 Thread Steven D'Aprano
On Wednesday 21 December 2016 13:37, Malik Rumi wrote: > I just created a new venv using pyvenv from a 2.7 install. Now I am shocked > to see that I can get both 2.7 and 3.4 in this same venv: I'm not an expert on pyvenv, but my guess is this: Would you expect a command like "ls" or "grep" to

Re: Pyvenv puts both Python 2 and Python 3 in the same environment. Shocked!

2016-12-20 Thread Cameron Simpson
On 20Dec2016 18:37, Malik Rumi wrote: I just created a new venv using pyvenv from a 2.7 install. Now I am shocked to see that I can get both 2.7 and 3.4 in this same venv: (memory) malikarumi@Tetuoan2:~/Projects/cannon/New2.7Projects/memory$ python Python 2.7.12

[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-20 Thread eryk sun
eryk sun added the comment: > There's no reason to for IDLE to be a system-level association if > the user has not chosen the association Ok, to clarify, SystemFileAssociations can be defined in either the system or user hive. It's fine if the IDLE menu is added this way when it's done just

[issue29030] argparse: choices override metavar

2016-12-20 Thread R. David Murray
R. David Murray added the comment: metavar is, I believe, the intended way to change the default behavior. Whether or not this needs better documentation is a separate question :) -- nosy: +r.david.murray ___ Python tracker

Re: Metaclasses - magic functions

2016-12-20 Thread Ethan Furman
On 12/20/2016 03:39 PM, Ben Finney wrote: "Mr. Wrobel" writes: Quick question, can anybody tell me when to use __init__ instead of __new__ in meta programming? Use ‘__new__’ to do the work of *creating* one instance from nothing; allocating the storage, determining the type, etc. — anything

[issue19846] Python 3 raises Unicode errors with the C locale

2016-12-20 Thread Nick Coghlan
Nick Coghlan added the comment: Also see http://bugs.python.org/issue28180 for a more recent proposal to tackle this by coercing the C locale to the C.UTF-8 locale -- ___ Python tracker

[issue13643] 'ascii' is a bad filesystem default encoding

2016-12-20 Thread Nick Coghlan
Nick Coghlan added the comment: Also see http://bugs.python.org/issue28180 for a more recent proposal to tackle this by coercing the C locale to the C.UTF-8 locale -- nosy: +ncoghlan ___ Python tracker

Re: Metaclasses - magic functions

2016-12-20 Thread Ethan Furman
On 12/20/2016 03:26 PM, Ian Kelly wrote: ... The latter is interesting mostly because it allows you to set the __slots__ or do something interesting with the __prepare__ hook (although the only interesting thing I've ever seen done with __prepare__ is to use an OrderedDict to preserve the the

[issue28988] Switch dict and set structures to PyVarObject

2016-12-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: Please leave the set object patch for me. I would like to do it a bit differently. -- ___ Python tracker ___

Pyvenv puts both Python 2 and Python 3 in the same environment. Shocked!

2016-12-20 Thread Malik Rumi
I just created a new venv using pyvenv from a 2.7 install. Now I am shocked to see that I can get both 2.7 and 3.4 in this same venv: (memory) malikarumi@Tetuoan2:~/Projects/cannon/New2.7Projects/memory$ python Python 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] on linux2 Type

Re: topology rules in python

2016-12-20 Thread Bernd Nawothnig
On 2016-12-20, Xristos Xristoou wrote: > I have a PostGIS database with shapefiles lines, polygons and points > and I want to create a topology rules with python. Any idea how to do > that ?some packages ? http://www.gdal.org/ or: pip install gdal Bernd -- no time toulouse --

[issue29025] random.seed() relation to hash() function and its determinism is vague

2016-12-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: In Python 3.5 and Python 3.6, this is already fixed (decoupled from PYTHONHASHSEED). In Python 2.7, I could backport the fix, add a note to the docs, or just let it be (since seeding is turned off by default). The other versions of Python are already

[issue28975] os.walk generator giving inconsistent results

2016-12-20 Thread Eric V. Smith
Changes by Eric V. Smith : -- stage: -> resolved ___ Python tracker ___ ___

Re: Pyvenv puts both Python 2 and Python 3 in the same environment. Shocked!

2016-12-20 Thread Paul Rudin
Malik Rumi writes: > I just created a new venv using pyvenv from a 2.7 install. Now I am shocked to > see that I can get both 2.7 and 3.4 in this same venv: > > (memory) malikarumi@Tetuoan2:~/Projects/cannon/New2.7Projects/memory$ python > Python 2.7.12 (default, Nov 19

[issue29011] No entry Deque in typing.py

2016-12-20 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- components: +Library (Lib) keywords: +patch nosy: +ned.deily stage: -> patch review type: -> enhancement versions: +Python 3.5, Python 3.6, Python 3.7 Added file: http://bugs.python.org/file45979/Deque.diff

[issue29021] Custom functions in sqlite receive None on invalid UTF-8

2016-12-20 Thread Ingo Ruhnke
New submission from Ingo Ruhnke: When a sqlite database contains invalid UTF-8 code in a TEXT column, Python can query that data normally when .text_factory is set appropriately. However when a custom function is created with .create_function() and applied to that column the custom function

[issue28945] get_boundary invokes unquote twice

2016-12-20 Thread bpoaugust
bpoaugust added the comment: It looks like a simpler alternative is to just change boundary = self.get_param('boundary', missing) to boundary = self.get_param('boundary', missing, unquote=False) and let collapse_rfc2231_value do the unquoting --

[issue28988] Switch dict and set structures to PyVarObject

2016-12-20 Thread INADA Naoki
INADA Naoki added the comment: LGTM -- nosy: +inada.naoki ___ Python tracker ___ ___ Python-bugs-list mailing

[issue28822] Fix indices handling in PyUnicode_FindChar

2016-12-20 Thread STINNER Victor
STINNER Victor added the comment: Ignore my request about special direction values. It's not worth it to writ tests for that. PyUnicode_FindChar-v2.patch LGTM. -- ___ Python tracker

Re: ImportError: The ``fake-factory`` package is now called ``Faker``.

2016-12-20 Thread William Mayor
I came across this error this morning. In my case I was running a script that did this: “pip install fake-factory” The install worked properly but then I couldn’t import the library (with the same error message as you). I had to update the pip install command to say “pip install Faker” and

Re: Can't see numpy etc after upgrading Python on Ubuntu

2016-12-20 Thread Chris Angelico
On Tue, Dec 20, 2016 at 8:28 PM, Vincent Vande Vyvre wrote: >>> The link /usr/bin/python *MUST* point to the 2.7.3 version, if not, >>> restore >>> it. >> >> It does. When he installs pip via apt, it manages his original 2.7.3. >> Anything that explicitly shebangs

[issue28932] Fail compile Python 3.6.0rc1 on OpenBSD 6.0

2016-12-20 Thread STINNER Victor
STINNER Victor added the comment: Thanks Benjamin! -- ___ Python tracker ___ ___ Python-bugs-list mailing

Re: Can't see numpy etc after upgrading Python on Ubuntu

2016-12-20 Thread Vincent Vande Vyvre
Le 20/12/16 à 08:45, Chris Angelico a écrit : On Tue, Dec 20, 2016 at 5:19 PM, wrote: Thanks Chris for replying, but it didn't work. The upgrade happened, but still python can't see numpy! So it seems to be a path problem. The numpy (and scipy and matplotlib) files

[issue28999] Use Py_RETURN_NONE and like

2016-12-20 Thread INADA Naoki
INADA Naoki added the comment: LGTM -- nosy: +inada.naoki ___ Python tracker ___ ___ Python-bugs-list mailing

[issue28158] Implement LOAD_GLOBAL opcode cache

2016-12-20 Thread INADA Naoki
INADA Naoki added the comment: memo: http://bugs.python.org/issue26219 may be relating to this. -- ___ Python tracker ___

Re: Can't see numpy etc after upgrading Python on Ubuntu

2016-12-20 Thread Vincent Vande Vyvre
Le 20/12/16 à 10:13, Chris Angelico a écrit : On Tue, Dec 20, 2016 at 7:36 PM, Vincent Vande Vyvre wrote: It seems you have shadowed your default python2 with the new one. A very bad idea. Only because /usr/local/bin is ahead of /usr/bin in PATH. That's the

Re: Can't see numpy etc after upgrading Python on Ubuntu

2016-12-20 Thread Chris Angelico
On Tue, Dec 20, 2016 at 7:36 PM, Vincent Vande Vyvre wrote: > It seems you have shadowed your default python2 with the new one. A very bad > idea. Only because /usr/local/bin is ahead of /usr/bin in PATH. > The link /usr/bin/python *MUST* point to the 2.7.3

[issue28945] get_boundary invokes unquote twice

2016-12-20 Thread bpoaugust
bpoaugust added the comment: According to RFC822, a quoted-string should only be wrapped in double-quotes. So I'm not sure why unquote treats <> as quotes. If it did not, then again this issue would not arise. However maybe utils.unquote is needed by other code that uses <>, so it cannot

[issue28968] xml rpc server fails with connection reset by peer error no 104

2016-12-20 Thread R. David Murray
R. David Murray added the comment: I'm sorry, I don't have time to dig in to this right now. Hopefully someone else can pick it up. You might try posting on the python-list mailing list, there are several core devs who hang out there and might be interested in the problem. -- nosy:

[issue29010] Incorrect description about scope related with inheritance

2016-12-20 Thread Brendan Donegan
Brendan Donegan added the comment: Worth putting them side by side I think: "The name BaseClassName must be defined in a scope containing the derived class definition" vs. "BaseClassName must be defined in a namespace accessible from the scope containing the derived class definition"

[issue28822] Fix indices handling in PyUnicode_FindChar

2016-12-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset ce6a6cc3765d by Xiang Zhang in branch 'default': Issue #28822: Adjust indices handling of PyUnicode_FindChar(). https://hg.python.org/cpython/rev/ce6a6cc3765d -- nosy: +python-dev ___ Python tracker

[issue29026] time.time() documentation should mention UTC timezone

2016-12-20 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: time.time() is not quite UTC on Unix: it usually (*) doesn't include leap seconds, which UTC does. The Wikipedia page has a good definition and explanation: https://en.wikipedia.org/wiki/Unix_time (*) "usually" because POSIX defines time() to not include

[issue29026] time.time() documentation should mention UTC timezone

2016-12-20 Thread STINNER Victor
New submission from STINNER Victor: The documentation of the time.time() mentions "epoch" which it doesn't define epoch. If I recall correctly, it's January 1st, 1970 on most OS and most implementations of Python, except of IronPython which uses a different epoch.

[issue28945] get_boundary invokes unquote twice

2016-12-20 Thread R. David Murray
R. David Murray added the comment: I'm pretty sure you are correct in your guess that the utility is used by other code that depends on the <> unquoting. The new email policies (that is, the new header parsing code) probably do a better job of this, but get_param and friends haven't been

[issue29026] time.time() documentation should mention UTC timezone

2016-12-20 Thread STINNER Victor
STINNER Victor added the comment: > time.time() is not quite UTC on Unix Handling time is a complex task, so we should enhance the doc to help users. If there are multiple cases, we can list them: "time.time() uses UTC timezone with or without leap seconds". Maybe with a link to

[issue29022] Aritmetic error

2016-12-20 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report, but it works as expected. Please see https://docs.python.org/2/tutorial/floatingpoint.html for more information. -- nosy: +berker.peksag resolution: -> not a bug stage: -> resolved status: open -> closed

[issue29010] Incorrect description about scope related with inheritance

2016-12-20 Thread R. David Murray
R. David Murray added the comment: Would it make it clearer if we said "BaseClassName must be defined in a namespace accessible from the scope containing the dervied class definition" ? -- ___ Python tracker

[issue29010] Incorrect description about scope related with inheritance

2016-12-20 Thread woo yoo
woo yoo added the comment: As for me, i prefer the new description, which is clear and easy to understand. -- ___ Python tracker ___

[issue29027] 3.5.2 compile error from ssl related.

2016-12-20 Thread kevin
New submission from kevin: Download the python version 3.5.2 source code from official web site. Compile the python code by the following steps: sudo ./configure sudo make sudo make install but from make, I get the following errors: /home/boot/tools/Python-3.5.2/Modules/_ssl.c:2582:46: error:

[issue29023] Results of random.seed() call with integer argument should be claimed deterministic.

2016-12-20 Thread Jakub Mateusz Kowalski
New submission from Jakub Mateusz Kowalski: In https://docs.python.org/2/library/random.html#random.seed I can find that "If a hashable object is given, deterministic results are only assured when PYTHONHASHSEED is disabled." Both int and long are hashable. However, tests on the random module

[issue29024] Add Kivy entry to Graphic User Interface FAQ

2016-12-20 Thread Alexander Taylor
Changes by Alexander Taylor : -- assignee: docs@python components: Documentation files: gui_faq_kivy.patch keywords: patch nosy: docs@python, inclement priority: normal severity: normal status: open title: Add Kivy entry to Graphic User Interface FAQ type:

Re: python list index - an easy question

2016-12-20 Thread BartC
On 20/12/2016 00:49, Steve D'Aprano wrote: On Mon, 19 Dec 2016 03:21 am, BartC wrote: On 18/12/2016 10:59, Paul Götze wrote: Hi John, there is a nice short article by E. W. Dijkstra about why it makes sense to start numbering at zero (and exclude the upper given bound) while slicing a list.

[issue28971] nntplib is broken when responses are longer than _MAXLINE

2016-12-20 Thread Martin Panter
Martin Panter added the comment: I will try to come up with something in a few days -- ___ Python tracker ___

[issue29024] Add Kivy entry to Graphic User Interface FAQ

2016-12-20 Thread Alexander Taylor
Changes by Alexander Taylor : -- type: enhancement -> ___ Python tracker ___

[issue24165] Free list for single-digits ints

2016-12-20 Thread INADA Naoki
INADA Naoki added the comment: Performance version: 0.5.0 Python version: 3.7.0a0 (64-bit) revision 31df7d9863f3+ Report on Linux-4.8.0-30-generic-x86_64-with-debian-stretch-sid Slower (13): - nbody: 232 ms +- 3 ms -> 241 ms +- 6 ms: 1.04x slower - unpack_sequence: 118 ns +- 3 ns -> 121 ns +- 0

[issue29014] Python 3.5.2 installer doesn't register IDLE .py extensions on Windows 10

2016-12-20 Thread Steve Dower
Steve Dower added the comment: C:\Windows\py.exe (probably. If you changed from the default options it may be elsewhere, but if you Open With on a .py file it should be there) -- ___ Python tracker

windows utf8 & lxml

2016-12-20 Thread Sayth Renshaw
Hi I have been trying to get a script to work on windows that works on mint. The key blocker has been utf8 errors, most of which I have solved. Now however the last error I am trying to overcome, the solution appears to be to use the .decode('windows-1252') to correct an ascii error. I am

[issue29022] Aritmetic error

2016-12-20 Thread Jacopo
New submission from Jacopo: $ python Python 2.7.3 (default, Jun 21 2016, 18:38:19) [GCC 4.7.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> 69.90 + 2.90 72.81 -- components: Interpreter Core messages: 283684 nosy: r00ta priority:

Re: Can't see numpy etc after upgrading Python on Ubuntu

2016-12-20 Thread ozpeterballard
OK thanks both of you. I didn't realise there was a distinction between system python and other (user/personal) python. Yes, python2.7.3 is still there in /usr/bin/python . /usr/bin/python appears to be getting numpy and scipy from /usr/lib/python2.7/dist-packages . So I added that to

[issue29025] random.seed() relation to hash() function and its determinism is vague

2016-12-20 Thread Jakub Mateusz Kowalski
New submission from Jakub Mateusz Kowalski: 2.7 (https://docs.python.org/2/library/random.html#random.seed) - warning about PYTHONHASHSEED (environmental variable) voiding determinism - no warning on -R interpreter switch - relation to hash() function omitted 2.6

Geting error using python 3.5 : a_token = r.json() mention below

2016-12-20 Thread Akbar Shaikh
import io import csv import glob import os.path import requests import subprocess import urllib.request import json import time import xlwt import xlrd import datetime from datetime import date, timedelta def main(): """ Run the whole toolchain for all accounts. """ _clean()

CoderCruise Conference Announcement

2016-12-20 Thread Heather White
Announcing: The Call for Speakers is open for CoderCruise - a polyglot developer conference taking place on the Carnival Dream cruise ship, leaving from the Port of New Orleans, July 16-23, 2017 CST for a 7 day cruise with stops in Montego Bay, Grand Cayman, and Cozumel. The CfP will remain

NumPy 1.12.0rc1

2016-12-20 Thread Charles R Harris
Hi All, I am pleased to announce the release of NumPy 1.12.0rc1. This release supports Python 2.7 and 3.4 - 3.6 and is the result of 406 pull requests submitted by 139 contributors and comprises a large number of fixes and improvements. Among the many improvements it is difficult to pick out

[issue29027] 3.5.2 compile error from ssl related.

2016-12-20 Thread Christian Heimes
Christian Heimes added the comment: What is your platform, compiler and OpenSSL version? -- ___ Python tracker ___

Re: Geting error using python 3.5 : a_token = r.json() mention below

2016-12-20 Thread Ned Batchelder
On Tuesday, December 20, 2016 at 7:28:47 AM UTC-5, Akbar Shaikh wrote: > import io > import csv > import glob > import os.path > import requests > import subprocess > import urllib.request > import json > import time > import xlwt > import xlrd > import datetime > from datetime import date,

[issue29028] Use-After-Free in PyString_FromStringAndSize() of stringobject.c

2016-12-20 Thread dyjakan
New submission from dyjakan: Recently I started doing some research related to language interpreters and I've stumbled upon a bug in current Python 2.7. I already contacted PSRT and we concluded that this doesn't have security implications. Repro file looks like this: ``` class Index(object):

[issue29006] 2.7.13 _sqlite more prone to "database table is locked"

2016-12-20 Thread Armin Rigo
Armin Rigo added the comment: Tried that, but reverted because on Windows CheckTypeMapUsage() would fail with SQLITE_MISUSE ("ProgrammingError: database table is locked"). For now PyPy will not implement this 2.7.13 change. I really suspect you can get the same problems on CPython in some

ImportError: The ``fake-factory`` package is now called ``Faker``.

2016-12-20 Thread Uri Even-Chen
Hi, we get this error with Python 3.4 and 3.5: https://travis-ci.org/urievenchen/speedy-net/jobs/185497863 -- ImportError: Failed to import test module: speedy.net.accounts.tests.test_factories Traceback (most recent call

[issue28945] get_boundary invokes unquote twice

2016-12-20 Thread Eric Lafontaine
Eric Lafontaine added the comment: Hi all, I hate this proposition. I feel it's a "victory" for the people who don't want to follow RFC standard and allow "triple"-quoting on things that aren't supposed to... Now that my opinion is said, I made 2 test case that should be added to the

[issue28945] get_boundary invokes unquote twice

2016-12-20 Thread Eric Lafontaine
Eric Lafontaine added the comment: N.B., I've tried to do the keyword parameter on the get_param inside the get_boundary as well as I though it was a good Idea as well, but it was breaking some test cases (multiple ones). So I didn't pursue. N.B. I'm guessing (guessing) unquote must've been

[issue28945] get_boundary invokes unquote twice

2016-12-20 Thread R. David Murray
R. David Murray added the comment: The RFC compliance battle in email was lost long ago. We have to do our best to process what we get, and to produce only RFC correct output (unless retransmitting without change). That is Postel's law, and you can't successfully process Internet email

[issue28822] Fix indices handling in PyUnicode_FindChar

2016-12-20 Thread Xiang Zhang
Xiang Zhang added the comment: Thanks Victor and Serhiy! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker