[issue31858] IDLE: cleanup use of sys.ps1 and never set it.

2017-10-23 Thread Terry J. Reedy
New submission from Terry J. Reedy : This issue is about cleaning up IDLE's use of sys.ps1 for its prompt (sys.ps2 is not used). A. This will make for cleaner code and fix some bugs. B. This will be better for testing. (Some possible changes to pyshell might make sys.ps1

[issue18835] Add aligned memory variants to the suite of PyMem functions/macros

2017-10-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: Having the ability to allocated aligned memory could help avoid some undefined behavior. See #27987 (though, we only need 16-byte alignment there) -- nosy: +benjamin.peterson ___ Python

Re: Compression of random binary data

2017-10-23 Thread Chris Angelico
On Tue, Oct 24, 2017 at 2:28 AM, Paul Moore wrote: > Hope this helps put the subject into context. Compression is a very > technical subject, to "do it right". Special cases can be worked out, > sure, but the "hidden assumptions" in a method are what make the > difference

[issue31847] Fix commented out tests in test_syntax

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31855] mock_open is not compatible with read(n) (and pickle.load)

2017-10-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> michael.foord nosy: +michael.foord ___ Python tracker ___

[issue27141] Fix collections.UserList shallow copy

2017-10-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Either of the patches looks fine. I lean a bit towards the opt1 patch. -- assignee: rhettinger -> serhiy.storchaka ___ Python tracker

Re: Compression of random binary data

2017-10-23 Thread Steve D'Aprano
On Tue, 24 Oct 2017 03:13 pm, danceswithnumb...@gmail.com wrote: > I did that quite a while ago. 352,954 kb. Sure you did. Let's see the code you used. -- Steve “Cheer up,” they said, “things could be worse.” So I cheered up, and sure enough, things got worse. --

[issue31841] Several methods of collections.UserString do not return instances of UserString or its subclasses

2017-10-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: I would support changing format() and format_map(). The join() method has been around for a long time, so changing it might do more harm than good. -- assignee: -> lisroach nosy: +lisroach, rhettinger versions:

Re: Compression of random binary data

2017-10-23 Thread danceswithnumbers
I did that quite a while ago. 352,954 kb. -- https://mail.python.org/mailman/listinfo/python-list

Re: Compression of random binary data

2017-10-23 Thread Steve D'Aprano
On Tue, 24 Oct 2017 01:27 pm, danceswithnumb...@gmail.com wrote: > Finally figured out how to turn this into a random binary compression > program. Since my transform can compress more than dec to binary. Then i > took a random binary stream, changed it to a decimal stream 0-9 tranformed > it

[issue31856] Unexpected behavior of re module when VERBOSE flag is set

2017-10-23 Thread Bob Kline
Bob Kline added the comment: The light finally comes on. I actually *was* putting a backslash into the string value, with the raw flag (which is, of course, what you were trying to tell me). Thanks for your patience. :-) --

[issue29202] Improve dict iteration

2017-10-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: This doesn't meet our criteria for backports. -- assignee: rhettinger -> serhiy.storchaka versions: -Python 3.6 ___ Python tracker

Re: Compression of random binary data

2017-10-23 Thread danceswithnumbers
Finally figured out how to turn this into a random binary compression program. Since my transform can compress more than dec to binary. Then i took a random binary stream, changed it to a decimal stream 0-9 tranformed it into a compressed/encrypted binary stream 23.7% smaller. Yes! Decode

[issue31857] Make the behavior of USE_STACKCHECK deterministic

2017-10-23 Thread pdox
Change by pdox : -- keywords: +patch pull_requests: +4069 stage: -> patch review ___ Python tracker ___

[issue31857] Make the behavior of USE_STACKCHECK deterministic

2017-10-23 Thread pdox
New submission from pdox : USE_STACKCHECK is a Windows-only feature which provides additional safety against C stack overflow by periodically calling PyOS_CheckStack to determine whether the current thread is too close to the end of the stack. The way USE_STACKCHECK ensures

[issue31856] Unexpected behavior of re module when VERBOSE flag is set

2017-10-23 Thread Bob Kline
Bob Kline added the comment: I had been under the impression that "escaped" in this context meant that an escape character (the backslash) was part of the string value for the regular expression (there's a little bit of overloading going on with that word). Thanks for

Re: Installing tkinter on FreeBSD

2017-10-23 Thread Thomas Jollans
On 24/10/17 00:16, Dick Holmes wrote: > I am trying to use tkinter on a FreeBSD system but the installed > versions of Python (2.7 and 3.6) don't have thinter configured. I tried > to download the source (no binaries available for FreeBSD) and build a > new version of Python but the build

[issue31856] Unexpected behavior of re module when VERBOSE flag is set

2017-10-23 Thread Matthew Barnett
Matthew Barnett added the comment: Your verbose examples put the pattern into raw triple-quoted strings, which is OK, but their first character is a backslash, which makes the next character (a newline) an escaped literal whitespace character. Escaped whitespace is

Re: Sandsifter software finds hidden instructions inside processors.

2017-10-23 Thread skybuck2000
On Tuesday, October 24, 2017 at 1:13:22 AM UTC+2, MRAB wrote: > On 2017-10-23 23:50, skybuck2...@hotmail.com wrote: > > Question: > > > > What do the letters > > > > # v l s c > > > > Stand for in this source code ? > > > > v = not valid/valid > > l = length >

[issue2651] Strings passed to KeyError do not round trip

2017-10-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: A new Stackoverflow question gives a better illustration of how special-casing KeyError can be a nuisance. https://stackoverflow.com/questions/46892261/new-line-on-error-message-in-idle-python-3-3/46899120#46899120 >From a current repository

[issue31856] Unexpected behavior of re module when VERBOSE flag is set

2017-10-23 Thread Bob Kline
New submission from Bob Kline : According to the documentation of the re module, "When this flag [re.VERBOSE] has been specified, whitespace within the RE string is ignored, except when the whitespace is in a character class or preceded by an unescaped backslash; this

Re: Sandsifter software finds hidden instructions inside processors.

2017-10-23 Thread skybuck2000
Idea of this software is basically: Generate random bytes and feed them to processor. Observe result of processor if good or bad (error codes). If good check docs. If bad adjust and retry. Somebody wrote a nice short explanation of what SandSifter does to give you an idea (it's a new

[issue28936] test_global_err_then_warn in test_syntax is no longer valid

2017-10-23 Thread Guido van Rossum
Guido van Rossum added the comment: Am I needed here? -- nosy: -Jeremy.Hylton ___ Python tracker ___

Re: Sandsifter software finds hidden instructions inside processors.

2017-10-23 Thread MRAB
On 2017-10-23 23:50, skybuck2...@hotmail.com wrote: Question: What do the letters # v l s c Stand for in this source code ? v = not valid/valid l = length s = ? c = ? If somebody with lots of python experience could dive into this code and then tell me I'd

Re: Sandsifter software finds hidden instructions inside processors.

2017-10-23 Thread skybuck2000
Question: What do the letters # v l s c Stand for in this source code ? v = not valid/valid l = length s = ? c = ? If somebody with lots of python experience could dive into this code and then tell me I'd be most gratefull ! :) # # ./sifter.py --unk --dis

Installing tkinter on FreeBSD

2017-10-23 Thread Dick Holmes
I am trying to use tkinter on a FreeBSD system but the installed versions of Python (2.7 and 3.6) don't have thinter configured. I tried to download the source (no binaries available for FreeBSD) and build a new version of Python but the build reported that it couldn't install _tkinter.

[issue31847] Fix commented out tests in test_syntax

2017-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset d7604f5d0621c23d037455acd682d0d489455d54 by Serhiy Storchaka (Miss Islington (bot)) in branch '3.6': bpo-31847: Fix commented out tests in test_syntax. (GH-4084) (#4095)

Re: grapheme cluster library

2017-10-23 Thread Thomas Jollans
On 23/10/17 16:25, Rustom Mody wrote: > On Monday, October 23, 2017 at 1:15:35 PM UTC+5:30, Steve D'Aprano wrote: >> >> and more. Many linguists also include digraphs (pairs of letters) like the >> English "th", "sh", "qu", or "gh" as graphemes. >> >> >>

[issue28936] test_global_err_then_warn in test_syntax is no longer valid

2017-10-23 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: OK, I made a PR with the fix and a test that checks the line number for syntax error (so that the original purpose test_global_err_then_warn is preserved). -- ___ Python tracker

[issue28936] test_global_err_then_warn in test_syntax is no longer valid

2017-10-23 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- pull_requests: +4068 stage: -> patch review ___ Python tracker ___

[issue31855] mock_open is not compatible with read(n) (and pickle.load)

2017-10-23 Thread Ron Rothman
Ron Rothman added the comment: Confirmed that the behavior exists in Python 3.6 as well. -- versions: +Python 3.6 ___ Python tracker

[issue31828] Support Py_tss_NEEDS_INIT outside of static initialisation

2017-10-23 Thread Masayuki Yamamoto
Change by Masayuki Yamamoto : -- keywords: +patch pull_requests: +4067 stage: -> patch review ___ Python tracker ___

Re: Windows alternative: multiprocessing.connection.wait on Pipe, Tkinter File Handlers

2017-10-23 Thread Thomas Jollans
On 23/10/17 18:34, Josh Jacobson wrote: > The two functions in the subject are not fully implementable on Windows, > and so I am looking for an alternative. > > Relevant SO postings including full code and description, with bounty: > Freezes >

[issue31847] Fix commented out tests in test_syntax

2017-10-23 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4066 ___ Python tracker ___

[issue31847] Fix commented out tests in test_syntax

2017-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3b66ebe7727dba68c2c6ccf0cd85a4c31255b9b4 by Serhiy Storchaka in branch 'master': bpo-31847: Fix commented out tests in test_syntax. (#4084)

[issue18835] Add aligned memory variants to the suite of PyMem functions/macros

2017-10-23 Thread Stefan Krah
Stefan Krah added the comment: On Mon, Oct 23, 2017 at 09:16:08PM +, Antoine Pitrou wrote: > > The Arrow memory format for example recommends 64 bit alignment. > > I presume you mean 64 bytes? Yes, I was typing too fast. --

[issue28253] calendar.prcal(9999) output has a problem

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -982 ___ Python tracker ___ ___

[issue18835] Add aligned memory variants to the suite of PyMem functions/macros

2017-10-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: By the way: > The Arrow memory format for example recommends 64 bit alignment. I presume you mean 64 bytes? -- ___ Python tracker

[issue27141] Fix collections.UserList shallow copy

2017-10-23 Thread Bar Harel
Bar Harel added the comment: Done :-) Seems like I forgot to edit the news though, I'll try to edit it. -- ___ Python tracker ___

[issue27141] Fix collections.UserList shallow copy

2017-10-23 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4065 stage: needs patch -> patch review ___ Python tracker ___

[issue31855] mock_open is not compatible with read(n) (and pickle.load)

2017-10-23 Thread Ron Rothman
New submission from Ron Rothman : mock.mock_open works as expected when reading the entire file (read()) or when reading a single line (readline()), but it seems to not support reading a number of bytes (read(n)). These work as expected: from mock import mock_open,

[issue31653] Don't release the GIL if we can acquire a multiprocessing semaphore immediately

2017-10-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset 828ca59208af0b1b52a328676c5cc0c5e2e999b0 by Victor Stinner in branch 'master': bpo-31653: Remove deadcode in semlock_acquire() (#4091) https://github.com/python/cpython/commit/828ca59208af0b1b52a328676c5cc0c5e2e999b0

[issue31854] Add mmap.ACCESS_DEFAULT to namespace

2017-10-23 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +4064 stage: -> patch review ___ Python tracker ___

Re: Compression of random binary data

2017-10-23 Thread Ian Kelly
On Mon, Oct 23, 2017 at 1:42 PM, wrote: > Wow, do programmers actually use zscii. That is huge. So much wated space. Not really. ZSCII is only relevant if you're writing Z-code or a Z-code interpreter. Those in turn are only relevant if you're writing Infocom games.

[issue31853] Use super().method instead of socket.method in SSLSocket

2017-10-23 Thread Mads Jensen
Change by Mads Jensen : -- nosy: +madsjensen -earonesty ___ Python tracker ___ ___

[issue31854] Add mmap.ACCESS_DEFAULT to namespace

2017-10-23 Thread Justus Schwabedal
New submission from Justus Schwabedal : I propose to add mmap.ACCESS_DEFAULT into the namespace. Accessing the default value might be necessary, if one needs to overwrite an `ACCESS` keyword argument. -- components: Extension Modules messages: 304839 nosy:

[issue31853] Use super().method instead of socket.method in SSLSocket

2017-10-23 Thread Erik Aronesty
New submission from Erik Aronesty : I asked on #python-dev and was told that it's most likely due to legacy reasons that the class has things like `socket.__init__` instead of `super().__init__` -- assignee: christian.heimes components: SSL messages: 304838 nosy:

Re: choice of web-framework

2017-10-23 Thread Chris Warrick
On 23 October 2017 at 21:37, John Black wrote: > Chris, thanks for all this detailed information. I am confused though > with your database recommendation. You say you teach SQLAlchemy but > generally use PostgreSQL yourself. I can maybe guess why there seems to > be this

[issue18835] Add aligned memory variants to the suite of PyMem functions/macros

2017-10-23 Thread Nathaniel Smith
Nathaniel Smith added the comment: There's also aligned calloc, which no native APIs support but is still quite useful. -- ___ Python tracker

[issue31800] datetime.strptime: Support for parsing offsets with a colon

2017-10-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Note that #5288 relaxed the whole number of minutes restriction on UTC offsets. Since the goal is to be able to parse the output of .isoformat(), I think %z should accept sub-minute offsets. -- nosy: +belopolsky

Re: Compression of random binary data

2017-10-23 Thread danceswithnumbers
Wow, do programmers actually use zscii. That is huge. So much wated space. -- https://mail.python.org/mailman/listinfo/python-list

Re: choice of web-framework

2017-10-23 Thread John Black
In article , ros...@gmail.com says... > For the database, I generally use PostgreSQL, unless the job's so > simple it can be done with flat files. Using Flask with SQLAlchemy is > a popular option, but you can also dive into psycopg2 directly (the

Re: Searching For Old Posts On Python

2017-10-23 Thread Cai Gengyang
Right ... I am going to continue learning Python then ... On Thursday, October 19, 2017 at 3:39:44 AM UTC+8, Ian wrote: > On Mon, Oct 16, 2017 at 10:42 PM, Cai Gengyang wrote: > > https://duckduckgo.com/html/?q=%22Cai%20Gengyang%22%20python This > > seems to be the

[issue31852] Crashes with lines of the form "async \"

2017-10-23 Thread Alexandre Hamelin
New submission from Alexandre Hamelin : Hi. Python 3.6.2 crashes when interpreting lines with the text "async \" (future keyword 'async' and ending with a backslash). Tested in a docker environment (debian jessie). (see github.com/0xquad/docker-python36 if needed)

Windows alternative: multiprocessing.connection.wait on Pipe, Tkinter File Handlers

2017-10-23 Thread Josh Jacobson
The two functions in the subject are not fully implementable on Windows, and so I am looking for an alternative. Relevant SO postings including full code and description, with bounty: Freezes

[issue18835] Add aligned memory variants to the suite of PyMem functions/macros

2017-10-23 Thread Stefan Krah
Stefan Krah added the comment: On Mon, Oct 23, 2017 at 05:16:53PM +, STINNER Victor wrote: > Memory allocated by PyMem_AlignedAlloc() must be freed with > PyMem_AlignedFree(). > > We cannot reuse PyMem_Free(). On Windows, PyMem_AlignedAlloc() is implemented > with

[issue31822] Document that urllib.parse.{Defrag, Split, Parse}Result are namedtuples

2017-10-23 Thread Éric Araujo
Éric Araujo added the comment: I suggest using :term:`named tuple` for the link (+ an example of using _replace as Mike said) -- ___ Python tracker

[issue31822] Document that urllib.parse.{Defrag, Split, Parse}Result are namedtuples

2017-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: collections.namedtuples is not a class. -- nosy: +serhiy.storchaka ___ Python tracker

[issue31822] Document that urllib.parse.{Defrag, Split, Parse}Result are namedtuples

2017-10-23 Thread Éric Araujo
Change by Éric Araujo : -- keywords: +easy nosy: +eric.araujo stage: -> needs patch versions: +Python 3.7 ___ Python tracker ___

[issue25041] document AF_PACKET socket address format

2017-10-23 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: +4062 stage: needs patch -> patch review ___ Python tracker ___

[issue31851] test_subprocess hangs randomly on x86 Windows7 3.x

2017-10-23 Thread STINNER Victor
New submission from STINNER Victor : test_subprocess hanged on the build 46 of x86 Windows7 3.x: http://buildbot.python.org/all/#/builders/58/builds/46 (...) 1:29:55 [405/407] test_cmath passed -- running: test_subprocess (1249 sec) 1:29:58 [406/407] test_pstats

[issue31850] test_nntplib failed with "nntplib.NNTPDataError: line too long"

2017-10-23 Thread STINNER Victor
STINNER Victor added the comment: It also failed on Travis CI: https://mail.python.org/pipermail/python-committers/2017-October/004910.html Other buildbot failures: http://buildbot.python.org/all/#builders/80/builds/17

[issue29438] use after free in key sharing dict

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -960 ___ Python tracker ___ ___

[issue31850] test_nntplib failed with "nntplib.NNTPDataError: line too long"

2017-10-23 Thread STINNER Victor
New submission from STINNER Victor : test_nntplib failed on many buildbots yesterday with the "line too long" error. It may be related to bpo-28971. Example: http://buildbot.python.org/all/#/builders/12/builds/52 (...) test_with_statement

Re: Compression of random binary data

2017-10-23 Thread Neil Cerutti
On 2017-10-23, alister via Python-list wrote: >> 12344321 >> >> It only takes seven 8 bit bytes to represent this > > Would you care to provide the seven 8-bit bytes you propose to use? > Paul I would suspect he is using BCD &

[issue30722] Tools/demo/redemo.py broken

2017-10-23 Thread Berker Peksag
Berker Peksag added the comment: Thank you, Christoph. I wasn't aware of Tools/demo/redemo.py and I must say it was fun to play with while reviewing PR 2311. -- components: +Demos and Tools -Regular Expressions resolution: -> fixed stage: patch review ->

[issue30722] Tools/demo/redemo.py broken

2017-10-23 Thread Berker Peksag
Berker Peksag added the comment: New changeset a5f9d24c171c7e3a3715161fd16b747c7dcaf76f by Berker Peksag (Miss Islington (bot)) in branch '3.6': bpo-30722: Make redemo work with Python 3.6+ (GH-2311)

[issue31653] Don't release the GIL if we can acquire a multiprocessing semaphore immediately

2017-10-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4061 ___ Python tracker ___ ___

Re: I used list, def. why li += [100,200] , and li = li + [100,200] is different

2017-10-23 Thread Bill
Rob Gaddi wrote: On 10/23/2017 09:29 AM, 임현준 wrote: I am a Korean student, and I am a beginner in English and Python.;( I can't understand about this def If I want to print [1,2,3,4,5] [1,2,3,4,5,100,200] I will make code like this, and I can understand code. def modify(li): li +=

Re: I used list, def. why li += [100, 200] , and li = li + [100, 200] is different

2017-10-23 Thread Rhodri James
On 23/10/17 17:29, 임현준 wrote: I am a Korean student, and I am a beginner in English and Python.;( I can't understand about this def If I want to print [1,2,3,4,5] [1,2,3,4,5,100,200] I will make code like this, and I can understand code. def modify(li): li += [100,200] > list =

[issue29368] Optimize unpickling list-like objects: use extend() instead of append()

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: -836 ___ Python tracker ___ ___

[issue29084] C API of OrderedDict

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___

Re: Compression of random binary data

2017-10-23 Thread danceswithnumbers
Good point I hope it has a use, other than a cute toyi don't see it yet. -- https://mail.python.org/mailman/listinfo/python-list

[issue18835] Add aligned memory variants to the suite of PyMem functions/macros

2017-10-23 Thread STINNER Victor
STINNER Victor added the comment: I added _PyTraceMalloc_Track() and _PyTraceMalloc_Untrack() private functions to the C API in Python 3.6. These functions were made public in Python 3.7: renamed to PyTraceMalloc_Track() and PyTraceMalloc_Untrack(). I made this

[issue30722] Tools/demo/redemo.py broken

2017-10-23 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +4060 stage: -> patch review ___ Python tracker ___

[issue30722] Tools/demo/redemo.py broken

2017-10-23 Thread Berker Peksag
Berker Peksag added the comment: New changeset 62adc55aff0b78447568f73bd1abc610d2784bf8 by Berker Peksag (Christoph Sarnowski) in branch 'master': bpo-30722: Make redemo work with Python 3.6+ (GH-2311)

[issue18835] Add aligned memory variants to the suite of PyMem functions/macros

2017-10-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4059 stage: needs patch -> patch review ___ Python tracker ___

[issue29202] Improve dict iteration

2017-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do you mind to create a pull request Raymond? -- ___ Python tracker ___

[issue31826] Misleading __version__ attribute of modules in standard library

2017-10-23 Thread Éric Araujo
Éric Araujo added the comment: The version in distutils is derived from sys.version and should be left as is too. Thanks! -- nosy: +eric.araujo ___ Python tracker

[issue30549] ProcessPoolExecutor hangs forever if the object raises on __getstate__

2017-10-23 Thread Berker Peksag
Change by Berker Peksag : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Deadlocks in `concurrent.futures.ProcessPoolExecutor` ___ Python tracker

Re: I used list, def. why li += [100, 200] , and li = li + [100, 200] is different

2017-10-23 Thread MRAB
On 2017-10-23 17:29, 임현준 wrote: I am a Korean student, and I am a beginner in English and Python.;( I can't understand about this def If I want to print [1,2,3,4,5] [1,2,3,4,5,100,200] I will make code like this, and I can understand code. def modify(li): li += [100,200] list =

[issue31752] Assertion failure in timedelta() in case of bad __divmod__

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31752] Assertion failure in timedelta() in case of bad __divmod__

2017-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 5ef883b096895a84123760859f0f34ad37bf2277 by Serhiy Storchaka in branch '2.7': [2.7] bpo-31752: Fix possible crash in timedelta constructor called with custom integers. (GH-3947) (#4088)

[issue23699] Add a macro to ease writing rich comparisons

2017-10-23 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: PR has been rebased on top of master and also blurbified. -- ___ Python tracker ___

[issue31845] PYTHONDONTWRITEBYTECODE and PYTHONOPTIMIZE have no effect

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +ncoghlan ___ Python tracker ___ ___

Re: I used list, def. why li += [100,200] , and li = li + [100,200] is different

2017-10-23 Thread Rob Gaddi
On 10/23/2017 09:29 AM, 임현준 wrote: I am a Korean student, and I am a beginner in English and Python.;( I can't understand about this def If I want to print [1,2,3,4,5] [1,2,3,4,5,100,200] I will make code like this, and I can understand code. def modify(li): li += [100,200] list =

Re: Compression of random binary data

2017-10-23 Thread Thomas Jollans
On 2017-10-23 17:39, danceswithnumb...@gmail.com wrote: > Thanks Paul...blunt to the point. > > My 8 year old can decode this back into base 10, i still have to help him a > bit going from base 10 to 8 bit bytesit's incredibly simple to decode. No > dictionary, can easily be done with

I used list, def. why li += [100, 200] , and li = li + [100, 200] is different

2017-10-23 Thread 임현준
I am a Korean student, and I am a beginner in English and Python.;( I can't understand about this def If I want to print [1,2,3,4,5] [1,2,3,4,5,100,200] I will make code like this, and I can understand code. def modify(li): li += [100,200] list = [1,2,3,4,5] print(list) modify(list)

[issue28645] Drop __aiter__ compatibility layer from 3.7

2017-10-23 Thread Yury Selivanov
Yury Selivanov added the comment: Already resolved as part of https://bugs.python.org/issue31709. Closing this one. -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Drop support for asynchronous __aiter__

Re: Compression of random binary data

2017-10-23 Thread Thomas Jollans
On 2017-10-23 07:39, Steve D'Aprano wrote: > By the way: here is a very clever trick for hiding information in the file > system: > > http://www.patrickcraig.co.uk/other/compression.php > > > but as people point out, the information in the file, plus the information in > the file system, ends

[issue31845] PYTHONDONTWRITEBYTECODE and PYTHONOPTIMIZE have no effect

2017-10-23 Thread Stefan Krah
Change by Stefan Krah : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list

[issue31833] Compile fail on gentoo for MIPS CPU of loongson 2f

2017-10-23 Thread emtone
emtone added the comment: OK, Thank you pitrou! -- ___ Python tracker ___ ___

[issue30817] Abort in PyErr_PrintEx() when no memory

2017-10-23 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset 66caacf2f0d6213b049a3097556e28e30440b900 by xdegaye in branch 'master': bpo-30817: Fix PyErr_PrintEx() when no memory (#2526) https://github.com/python/cpython/commit/66caacf2f0d6213b049a3097556e28e30440b900 --

[issue5430] imaplib: must not replace LF or CR by CRLF in literals

2017-10-23 Thread Matej Cepl
Change by Matej Cepl : -- nosy: +mcepl ___ Python tracker ___ ___ Python-bugs-list mailing

[issue31849] Python/pyhash.c warning: comparison of integers of different signs

2017-10-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +easy (C) stage: -> needs patch ___ Python tracker ___

[issue31849] Python/pyhash.c warning: comparison of integers of different signs

2017-10-23 Thread Xavier de Gaye
New submission from Xavier de Gaye : When built with: Android clang version 3.8.275480 (based on LLVM 3.8.275480) The following warning is emitted: ccache /pathto/android/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target x86_64-none-linux-androideabi

[issue28936] test_global_err_then_warn in test_syntax is no longer valid

2017-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do you mind to create a pull request Ivan? -- ___ Python tracker ___

[issue31833] Compile fail on gentoo for MIPS CPU of loongson 2f

2017-10-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: If it works with 2.7.14 then we can just close this issue. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue31833] Compile fail on gentoo for MIPS CPU of loongson 2f

2017-10-23 Thread emtone
emtone added the comment: I update the Python to 2.7.14 and It's Compile success. Here is running the command with strace: yeeloong /home/gentoo # python --version Python 2.7.14 yeeloong /home/gentoo # strace -o ./python_strace.txt python -c "import _multiprocessing"

[issue28645] Drop __aiter__ compatibility layer from 3.7

2017-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do you mind to create a pull request Yury? -- ___ Python tracker ___

  1   2   >