Re: sigmoid function and derivative

2018-06-26 Thread Terry Reedy
On 6/26/2018 11:26 PM, Sharan Basappa wrote: Folks, I know this is not a machine learning forum but I wanted to see if anyone can explain this to me. In artificial neural network, I can understand why sigmoid is used but I see that derivative of sigmoid output function is used. I am not able

[issue33975] IDLE: adjust DPI before Tk() for htests.

2018-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Both PRs have been merged. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue33975] IDLE: adjust DPI before Tk() for htests.

2018-06-26 Thread miss-islington
miss-islington added the comment: New changeset 5d2d9d7c08819c7fbdfd7906858609e5070c20dd by Miss Islington (bot) in branch '3.6': bpo-33975: Avoid small type when running IDLE's htests. (GH-7944) https://github.com/python/cpython/commit/5d2d9d7c08819c7fbdfd7906858609e5070c20dd --

[issue33975] IDLE: adjust DPI before Tk() for htests.

2018-06-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +7560 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33975] IDLE: adjust DPI before Tk() for htests.

2018-06-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +7559 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33975] IDLE: adjust DPI before Tk() for htests.

2018-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 3c8043d8fac4c0d05c0ba9e4e555e2f3165f2fe0 by Terry Jan Reedy in branch 'master': bpo-33975: Avoid small type when running IDLE's htests. (GH-7944) https://github.com/python/cpython/commit/3c8043d8fac4c0d05c0ba9e4e555e2f3165f2fe0 --

[issue33976] Enums don't support nested classes

2018-06-26 Thread Edward Wang
Change by Edward Wang : -- keywords: +patch pull_requests: +7557 stage: -> patch review ___ Python tracker ___ ___

[issue32475] Add ability to query number of buffered bytes available on buffered I/O

2018-06-26 Thread Josh Snyder
Josh Snyder added the comment: I've opened PR #7947 with another approach to this issue. In my use-case, an HTTP client makes a request and uses buffered I/O to parse the response headers. I would like to hand off the response socket to an extension module for use with raw I/O syscalls. The

[issue33976] Enums don't support nested classes

2018-06-26 Thread Edward Wang
New submission from Edward Wang : Methods defined in Enums behave 'normally' but classes defined in Enums get mistaken for regular values and can't be used as classes out of the box. ```python class Outer(Enum): a = 1 b = 2 class Inner(Enum): foo = 10 bar = 11 ```

[issue32475] Add ability to query number of buffered bytes available on buffered I/O

2018-06-26 Thread Josh Snyder
Change by Josh Snyder : -- pull_requests: +7556 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33956] update vendored expat to 2.2.5

2018-06-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 468f97b4640e69b237a707a0ef9152d1c023f701 by Benjamin Peterson in branch '2.7': [2.7] closes bpo-33956: update vendored expat to 2.2.5 (GH-7925) https://github.com/python/cpython/commit/468f97b4640e69b237a707a0ef9152d1c023f701 --

[issue29514] Add a test case that prevents magic number changes in minor releases

2018-06-26 Thread Ned Deily
Ned Deily added the comment: New changeset f79386f669c22199e3ce99cfba2e5945c73beb47 by Ned Deily in branch '2.7': bpo-29514: Make magic number test work for candidates (GH-7946) https://github.com/python/cpython/commit/f79386f669c22199e3ce99cfba2e5945c73beb47 --

[issue29514] Add a test case that prevents magic number changes in minor releases

2018-06-26 Thread Ned Deily
Ned Deily added the comment: New changeset 57389dbaa897fadc97de78af67d5e555e28be60b by Ned Deily in branch '3.6': bpo-29514: Make magic number test work for candidates (GH-7945) https://github.com/python/cpython/commit/57389dbaa897fadc97de78af67d5e555e28be60b --

sigmoid function and derivative

2018-06-26 Thread Sharan Basappa
Folks, I know this is not a machine learning forum but I wanted to see if anyone can explain this to me. In artificial neural network, I can understand why sigmoid is used but I see that derivative of sigmoid output function is used. I am not able to understand why. For example: # convert

[issue29514] Add a test case that prevents magic number changes in minor releases

2018-06-26 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +7555 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29514] Add a test case that prevents magic number changes in minor releases

2018-06-26 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +7554 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29514] Add a test case that prevents magic number changes in minor releases

2018-06-26 Thread Ned Deily
Ned Deily added the comment: New changeset 8511b448a55929f15aa5730c9e30cbb654978ea4 by Ned Deily in branch '3.7': bpo-29514: Make magic number test work for candidates https://github.com/python/cpython/commit/8511b448a55929f15aa5730c9e30cbb654978ea4 --

[issue33975] IDLE: adjust DPI before Tk() for htests.

2018-06-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: IDLE: adjust DPI before Tk() -> IDLE: adjust DPI before Tk() for htests. ___ Python tracker ___

[issue33975] IDLE: adjust DPI before Tk()

2018-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Because of import caching, subsequent pyshell imports, after the first, do not re-call the Windows API. Apparently, 'root.destroy()' undoes a previous 'root = Tk()', but not a previous pyshell import. Since IDLE unittests always destroy roots, a unittest

[issue33975] IDLE: adjust DPI before Tk()

2018-06-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +7553 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33956] update vendored expat to 2.2.5

2018-06-26 Thread miss-islington
miss-islington added the comment: New changeset 5dc3f23b5fb0b510926012cb3732dae63cddea60 by Miss Islington (bot) in branch '3.6': bpo-33956: update vendored expat to 2.2.5 (GH-7925) https://github.com/python/cpython/commit/5dc3f23b5fb0b510926012cb3732dae63cddea60 --

[issue33956] update vendored expat to 2.2.5

2018-06-26 Thread miss-islington
miss-islington added the comment: New changeset fb17b81fc90cb8f64fcffbada2cadb6736f6d7fd by Miss Islington (bot) in branch '3.7': bpo-33956: update vendored expat to 2.2.5 (GH-7925) https://github.com/python/cpython/commit/fb17b81fc90cb8f64fcffbada2cadb6736f6d7fd -- nosy:

[issue33975] IDLE: adjust DPI before Tk()

2018-06-26 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: IDLE: only adjust DPI before Tk() -> IDLE: adjust DPI before Tk() ___ Python tracker ___ ___

[issue29514] Add a test case that prevents magic number changes in minor releases

2018-06-26 Thread Ned Deily
Ned Deily added the comment: New changeset e7d3cccd8e0da93a15ca80f4b6aac2ca3435fd06 by Ned Deily in branch 'master': bpo-29514: Make magic number test work for candidates https://github.com/python/cpython/commit/e7d3cccd8e0da93a15ca80f4b6aac2ca3435fd06 -- nosy: +ned.deily

[issue33956] update vendored expat to 2.2.5

2018-06-26 Thread Benjamin Peterson
Change by Benjamin Peterson : -- pull_requests: +7552 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33956] update vendored expat to 2.2.5

2018-06-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +7551 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33956] update vendored expat to 2.2.5

2018-06-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +7550 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33956] update vendored expat to 2.2.5

2018-06-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 4e21100fa7bf66e0b32146d3f46ae16afc73fee1 by Benjamin Peterson in branch 'master': bpo-33956: update vendored expat to 2.2.5 (GH-7925) https://github.com/python/cpython/commit/4e21100fa7bf66e0b32146d3f46ae16afc73fee1 --

[issue33975] IDLE: only adjust DPI before Tk()

2018-06-26 Thread Terry J. Reedy
New submission from Terry J. Reedy : #33656 patched PyShell to call SetProcessDpiAwareness on Windows nearly first thing, *at module level*, well before calling tkinter.Tk(). The Microsoft docs warn that making the Windows API call after starting the graphics system may not work as

[issue24137] Force not using _default_root in IDLE

2018-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: The net effect of this issue: pyshell.main calls NoDefaultRoot() when running normally, when using a subprocess and testing is not set. It does not call it when in -n mode since that would affect users. idle_test.htest calls NoDefaultRoot()

[issue33973] HTTP request-line parsing splits on Unicode whitespace

2018-06-26 Thread STINNER Victor
STINNER Victor added the comment: isspace() is also true for another non-ASCII character: U+0085 (b'\x85'). >>> ''.join(chr(i) for i in range(256) if chr(i).isspace()) '\t\n\x0b\x0c\r\x1c\x1d\x1e\x1f \x85\xa0' -- ___ Python tracker

[issue33966] test_multiprocessing_spawn.WithProcessesTestPool.test_traceback() leaks 4 handles on Windows

2018-06-26 Thread STINNER Victor
STINNER Victor added the comment: > * dump() indirectly calls reduce_connection() (ex: for SimpleQueue._reader) > of multiprocessing.connection > * reduce_connection() duplicates the pipe handle Sorry, it's reduce_pipe_connection(), not reduce_connection(). > It's unclear to me who is

[issue33917] Fix and document idlelib/idle_test/template.py

2018-06-26 Thread Ned Deily
Ned Deily added the comment: FTR, the problem change was merged/backported after 3.7.0rc1 and 3.6.6rc1 so doko must have been working from a development branch and not a release tag. The original and its fix will first be officially released in 3.7.1 and 3.6.7 so there's really no need for

[issue24567] random.choice IndexError due to double-rounding

2018-06-26 Thread Tim Peters
Tim Peters added the comment: [Victor] > This method [shuffle()] has a weird API. What is > the point of passing a random function, > ... I proposed to deprecate this argument and remove it later. I don't care here. This is a bug report. Making backward-incompatible API changes does

[issue33966] test_multiprocessing_spawn.WithProcessesTestPool.test_traceback() leaks 4 handles on Windows

2018-06-26 Thread STINNER Victor
STINNER Victor added the comment: * Pool._repopulate_pool() creates processes with args=(self._inqueue, ...) * Pool._inqueue is a multiprocessing.queues.SimpleQueue * Process.__init__() of multiprocessing.popen_spawn_win32 calls reduction.dump(process_obj, to_child) which indirectly contains

Re: syntax difference

2018-06-26 Thread Gregory Ewing
Bart wrote: I don't know whether there is a direct equivalent in Python (I thought somebody would point it out) Not built-in, but a tiny bit of googling turns this up: https://pypi.org/project/bitarray/ "This module provides an object type which efficiently represents an array of booleans.

Re: I'm getting a spamassassin party here

2018-06-26 Thread Cameron Simpson
On 27Jun2018 08:55, Cameron Simpson wrote: On closer inspection it looks like a FIDONET gateway may be the cause. I've made enquiries of ab...@news.bbs.nz and newsmas...@news.bbs.nz, and am awaiting a response. I've also asked at Castle Rock BBS, based on a different header. Cheers,

Re: syntax difference

2018-06-26 Thread Gregory Ewing
Bart wrote: x = set(range(10_000_000)) This used up 460MB of RAM (the original 100M I tried exhausted the memory). The advantage of Pascal-style sets is that that same set will occupy only 1.25MB, as it is a bit-map. That's true, but they're also extremely limited compared to the things

Re: I'm getting a spamassassin party here

2018-06-26 Thread Gregory Ewing
Cameron Simpson wrote: > I've been noticing a swathe of messages in the past few days with From: > headers like this: > > From: "Steven D'Aprano" In comp.lang.python I'm seeing repeats of messages that were posted 2 or 3 days ago, with these mangled addresses. -- Greg --

Re: I'm getting a spamassassin party here

2018-06-26 Thread Cameron Simpson
On 26Jun2018 07:44, Richard Damon wrote: On 6/26/18 2:50 AM, Cameron Simpson wrote: On 24Jun2018 17:03, Gene Heskett wrote: Generally spamassassin only gets picky about this occasionally, but for the past several hours its working overtime on python list messages, with the major problem

[issue25007] Add support of copy protocol to zlib compressors and decompressors

2018-06-26 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz versions: +Python 3.8 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list

Re: Where's the junk coming from?

2018-06-26 Thread Cameron Simpson
On 25Jun2018 18:37, Mark Lawrence wrote: More of the flaming things, this time name@1261/38.remove-ij1-this. Any ideas as I don't understand this stuff? Looks like a FIDONET gateway leaking somehow. I've made an enquiry to a possible source for the message, we'll see what transpires.

[issue25007] Add support of copy protocol to zlib compressors and decompressors

2018-06-26 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +7549 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list

[ANN] PyYAML-4.1: YAML parser and emitter for Python

2018-06-26 Thread Ingy dot Net
=== Announcing PyYAML-4.1 === A new MAJOR RELEASE of PyYAML is now available: https://pypi.org/project/PyYAML/ This is the first release of PyYAML under a new maintenance team. In August 2016, maintenance of PyYAML and LibYAML was turned over from the

[issue33873] False positives when running leak tests with -R 1:1

2018-06-26 Thread STINNER Victor
STINNER Victor added the comment: Pablo Galindo Salgado fixed the bug in master, I backported his fix to 2.7, 3.6 and 3.7 branches. Thanks Pablo! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 2.7, Python 3.6, Python 3.7

[issue33718] Enhance regrtest: meta-ticket for multiple changes

2018-06-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1d55888a78bcefed3723fb7e48df2a75b4f0adb0 by Victor Stinner in branch '3.6': bpo-33873: Backport regrtest from master to 3.7 (GH-7935) (GH-7937) https://github.com/python/cpython/commit/1d55888a78bcefed3723fb7e48df2a75b4f0adb0 --

[issue33873] False positives when running leak tests with -R 1:1

2018-06-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1d55888a78bcefed3723fb7e48df2a75b4f0adb0 by Victor Stinner in branch '3.6': bpo-33873: Backport regrtest from master to 3.7 (GH-7935) (GH-7937) https://github.com/python/cpython/commit/1d55888a78bcefed3723fb7e48df2a75b4f0adb0 --

[issue24567] random.choice IndexError due to double-rounding

2018-06-26 Thread STINNER Victor
STINNER Victor added the comment: Let me see random_double_round.diff. In master: def shuffle(self, x, random=None): """Shuffle list x in place, and return None. Optional argument random is a 0-argument function returning a random float in [0.0, 1.0); if it is

[issue5978] cProfile and profile don't work with pygtk/pyqt and sys.exit(0)

2018-06-26 Thread Andrés Delfino
Change by Andrés Delfino : -- nosy: +adelfino versions: +Python 2.7, Python 3.6, Python 3.7 ___ Python tracker ___ ___

[issue5978] cProfile and profile don't work with pygtk/pyqt and sys.exit(0)

2018-06-26 Thread Andrés Delfino
Change by Andrés Delfino : -- keywords: +patch pull_requests: +7548 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue33929] test_multiprocessing_spawn: WithProcessesTestProcess.test_many_processes() leaks 5 handles on Windows

2018-06-26 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-33966: test_multiprocessing_spawn.WithProcessesTestPool.test_traceback() leaks 4 handles on Windows. -- ___ Python tracker

[issue24567] random.choice IndexError due to double-rounding

2018-06-26 Thread Tim Peters
Tim Peters added the comment: Victor, look at Raymond's patch. In Python 3, `randrange()` and friends already use the all-integer `getrandbits()`. He's changing three other lines, where some variant of `int(random() * someinteger)` is being used in an inner loop for speed. Presumably the

[issue33718] Enhance regrtest: meta-ticket for multiple changes

2018-06-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5430c14aba319f83b18879575244ba429e8c1d81 by Victor Stinner in branch '2.7': [2.7] bpo-33873: Backport regrtest from master (GH-7936) https://github.com/python/cpython/commit/5430c14aba319f83b18879575244ba429e8c1d81 --

[issue33873] False positives when running leak tests with -R 1:1

2018-06-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5430c14aba319f83b18879575244ba429e8c1d81 by Victor Stinner in branch '2.7': [2.7] bpo-33873: Backport regrtest from master (GH-7936) https://github.com/python/cpython/commit/5430c14aba319f83b18879575244ba429e8c1d81 --

[issue24567] random.choice IndexError due to double-rounding

2018-06-26 Thread STINNER Victor
STINNER Victor added the comment: The error goes avoid if we stop using floating point number to generate random integers. Can't we drop/deprecate support of RNG only providing getrandom() but not getrandbits()? I'm talking about the master branch. Things are simpler when you only

[issue33873] False positives when running leak tests with -R 1:1

2018-06-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +7546 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33718] Enhance regrtest: meta-ticket for multiple changes

2018-06-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +7547 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33718] Enhance regrtest: meta-ticket for multiple changes

2018-06-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset d1f9481b7a2d31c40fca1347ef99d819eb656ce7 by Victor Stinner in branch '3.7': bpo-33873: Backport regrtest from master to 3.7 (GH-7935) https://github.com/python/cpython/commit/d1f9481b7a2d31c40fca1347ef99d819eb656ce7 --

[issue33873] False positives when running leak tests with -R 1:1

2018-06-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset d1f9481b7a2d31c40fca1347ef99d819eb656ce7 by Victor Stinner in branch '3.7': bpo-33873: Backport regrtest from master to 3.7 (GH-7935) https://github.com/python/cpython/commit/d1f9481b7a2d31c40fca1347ef99d819eb656ce7 --

[issue33718] Enhance regrtest: meta-ticket for multiple changes

2018-06-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +7545 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33873] False positives when running leak tests with -R 1:1

2018-06-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +7544 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33974] _stringify handles quoted strings incorrectly

2018-06-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: How did you find this bug? -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker ___

[issue33466] Distutils does not support the compilation of Objective-C++ (“.mm”) files

2018-06-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: Eric, Thanks. See the pull request for why this might qualify for a back port: other parts of distutils recognise '.mm' as a valid extension, but '.mm' doesn't work yet because UnixCCompiler doesn't support this yet. On the other hand this is

[issue24567] random.choice IndexError due to double-rounding

2018-06-26 Thread Tim Peters
Tim Peters added the comment: [Mark] > If we do this, can we also persuade Guido to Pronounce that > Python implementations assume IEEE 754 format and semantics > for floating-point? On its own, I don't think a change to force 53-bit precision _on_ 754 boxes would justify that. That's just

[issue33873] False positives when running leak tests with -R 1:1

2018-06-26 Thread STINNER Victor
STINNER Victor added the comment: Since I didn't backport yet the commit 4ffe9c2b251f6e027b26250b7a2618e78d4edd22 (format duration) from master to other branches, I will backport the commit 58ed7307ea0b5c5aa052291ebc3030f314f938d8 (-R fix) manually to other branches with other recent

[issue33718] Enhance regrtest: meta-ticket for multiple changes

2018-06-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +7543 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33873] False positives when running leak tests with -R 1:1

2018-06-26 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +7542 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33873] False positives when running leak tests with -R 1:1

2018-06-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +7541 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33873] False positives when running leak tests with -R 1:1

2018-06-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +7540 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: syntax difference

2018-06-26 Thread Mark Lawrence
On 26/06/18 12:39, Chris Angelico wrote: On Tue, Jun 26, 2018 at 9:30 PM, Bart wrote: On 19/06/2018 11:33, Steven D'Aprano wrote: On Tue, 19 Jun 2018 10:19:15 +0100, Bart wrote: * Integer sets (Pascal-like sets) Why do you need them if you have real sets? I tried Python sets for the

[issue33930] Segfault with deep recursion into object().__dir__

2018-06-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: @victor: thanks for confirming my analysis. The trashcan API does fix this issue, although I did have to change "_PyObject_GC_UNTRACK(m);" to "PyObject_GC_UnTrack(m);" as well. I haven't checked yet why that's necessary. --

[issue33973] HTTP request-line parsing splits on Unicode whitespace

2018-06-26 Thread Tim Burke
Change by Tim Burke : -- keywords: +patch pull_requests: +7539 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2018-06-26 Thread Chris Eykamp
Chris Eykamp added the comment: I don't know if you've read the dialog on the PR (there was also some offline between Ned and myself), but the patch breaks a test when running under a fresh build of Python. I can't reproduce it here without setting up a build system, which I haven't had

Re: Where's the junk coming from?

2018-06-26 Thread José María Mateos
On Mon, Jun 25, 2018, at 13:37, Mark Lawrence wrote: > More of the flaming things, this time name@1261/38.remove-ij1-this. Any > ideas as I don't understand this stuff? I've contacted the list admin about this. It doesn't seem like it's going to go away on its own. I just received another

Re: Python for beginners or not? [was Re: syntax difference]

2018-06-26 Thread Mark Lawrence
From: Mark Lawrence On 25/06/18 17:15, jkn wrote: > On Monday, June 25, 2018 at 4:23:57 PM UTC+1, Chris Angelico wrote: >> On Mon, Jun 25, 2018 at 11:15 PM, jkn wrote: >>> (as well as pedanticism ;-o). >> >> Pedantry. >> >> ChrisA >> (You know I can't let that one pass.) > > I was chanel[l]ing

Re: Python for beginners or not? [was Re: syntax difference]

2018-06-26 Thread Mark Lawrence
From: Mark Lawrence On 25/06/18 10:10, Alister via Python-list wrote: > On Mon, 25 Jun 2018 11:36:25 +0400, Abdur-Rahmaan Janhangeer wrote: > >> i think he means like for a loop to iterate over a list you might do >> >> list = [1,2,3] >> for i in range(len(list)): >> print(list[i]) >> >> >>

Where's the junk coming from?

2018-06-26 Thread Mark Lawrence
From: Mark Lawrence Hi folks, In the last hour or so I've seen via thunderbird and gmane around 15 emails from various people where the from field is name@1261/38.remove-r7u-this. The part after the @ symbol never changes. I've seen the contents previously, apart from one from the RUE.

Re: Anyone here on Python-Dev mailing list?

2018-06-26 Thread Mark Lawrence
From: Mark Lawrence On 24/06/18 17:07, Steven D'Aprano wrote: > Anyone on the Python-Dev mailing list, are you getting private emails > containing nothing but stream of consciousness word-salad from somebody > (some bot?) calling himself "Chanel Marvin" with a gmail address? > > Typical example:

[issue33973] HTTP request-line parsing splits on Unicode whitespace

2018-06-26 Thread Tim Burke
New submission from Tim Burke : This causes (admittedly, buggy) clients that would work with a Python 2 server to stop working when the server upgrades to Python 3. To demonstrate, run `python2.7 -m SimpleHTTPServer 8027` in one terminal and `curl -v http://127.0.0.1:8027/你好` in another --

[issue33974] _stringify handles quoted strings incorrectly

2018-06-26 Thread Gauchj
New submission from Gauchj : _stringify escapes special characters so they can be processed by tcl/tk. To that end, two different escaping techniques are implemented: put a backslash in front of every special character or put the entire string in curly braces. However, a string like the

Re: syntax difference

2018-06-26 Thread Mark Lawrence
From: Mark Lawrence On 24/06/18 00:44, boB Stepp wrote: > I imagine that the > transition from version 2 to 3 was not undertaken halfheartedly, but > only after much thought and discussion since it did break backwards > compatibility. > So much so that a specific mailing list was set up just to

Re: moving to Python from Java/C++/C

2018-06-26 Thread Chris Angelico
From: Chris Angelico On Tue, Jun 26, 2018 at 2:35 AM, Dan Stromberg wrote: > On Mon, Jun 25, 2018 at 3:40 AM, wrote: > >> Hey, >> I already have quite an experience in programming, and I wish to study >> Python as well. I need to study it before I continue with my comp. science >> academic

Re: I'm getting a spamassassin party here

2018-06-26 Thread Vincent Vande Vyvre
Le 26/06/18 à 15:50, Gene Heskett a écrit : On Tuesday 26 June 2018 02:50:01 Cameron Simpson wrote: On 24Jun2018 17:03, Gene Heskett wrote: Greetings list; Generally spamassassin only gets picky about this occasionally, but for the past several hours its working overtime on python list

Re: syntax difference

2018-06-26 Thread Bart
To: boB Stepp From: "Bart" To: boB Stepp From: Bart On 24/06/2018 16:37, boB Stepp wrote: > On Sun, Jun 24, 2018 at 5:21 AM Bart wrote: > "... And of course, you would have to know how to use Python properly in > idiomatic style. No. I want to program in /my/ style, one more like the

[issue21914] Create unit tests for Turtle guionly

2018-06-26 Thread Lita Cho
Lita Cho added the comment: Feel free. On Tue, Jun 26, 2018, 3:21 AM RAJALAKSHMI V wrote: > > RAJALAKSHMI V added the comment: > > Hey, I am a new contributor here. Could I take this issue up? > > -- > nosy: +RAJALAKSHMI V > > ___ > Python

Re: syntax difference

2018-06-26 Thread Bart
To: Chris Angelico From: "Bart" To: Chris Angelico From: Bart On 24/06/2018 15:46, Chris Angelico wrote: > On Sun, Jun 24, 2018 at 8:40 PM, Steven D'Aprano > wrote: >> On Sun, 24 Jun 2018 11:18:37 +0100, Bart wrote: >> >>> I wonder why it is just me that constantly needs to justify his

Re: Python for beginners or not? [was Re: syntax difference]

2018-06-26 Thread Rick Johnson
To: Steven D'Aprano From: Rick Johnson On Monday, June 25, 2018 at 5:56:04 AM UTC-5, Steven D'Aprano wrote: > Nearly everybody misses the fact that the Zen is a joke, > not to be taken *too* seriously. A particularly subtle > joke, but still a joke. The Python Zen is not merely a joke. But

Re: syntax difference

2018-06-26 Thread Rick Johnson
To: Steven D'Aprano From: "Rick Johnson" To: Steven D'Aprano From: Rick Johnson On Sunday, June 24, 2018 at 10:05:14 AM UTC-5, Steven D'Aprano wrote: [...] > Be fair. It's more like 50% of the time. Let's not dogpile > onto Bart. He asked a question, I answered it, we don't all > need to

Re: Python for beginners or not? [was Re: syntax difference]

2018-06-26 Thread Stefan Ram
To: Steven D'Aprano From: "Stefan Ram" To: Steven D'Aprano From: r...@zedat.fu-berlin.de (Stefan Ram) Steven D'Aprano writes: >It has been a long, long time since Python has been a "simple" language >suitable for rank beginners, if it ever was. Python is not Scratch. Python is simpler

Re: Static variables [was Re: syntax difference]

2018-06-26 Thread Bart
To: Ben Bacarisse From: "Bart" To: Ben Bacarisse From: Bart On 24/06/2018 01:53, Ben Bacarisse wrote: > Bart writes: >> Wow. (Just think of all the times you write a function containing a >> neat bunch of local functions, every time it's called it has to create >> a new function

Re: syntax difference

2018-06-26 Thread Bart
To: boB Stepp From: "Bart" To: boB Stepp From: Bart On 24/06/2018 00:44, boB Stepp wrote: > On Sat, Jun 23, 2018 at 5:35 PM Bart wrote: >> I'm not a user... > > Then I am truly puzzled, Bart. Why do you even bother to hang out on > this list? If you do not want to use Python and you do

Re: syntax difference

2018-06-26 Thread Gregory Ewing
To: Bart From: "Gregory Ewing" To: Bart From: Gregory Ewing Bart wrote: > But 40 years > ago it was just 'readln a,b,c'; it was just taken for granted. The problem with something like that is that it's really only useful for throwaway code. For any serious application, you need to deal

Re: Static variables [was Re: syntax difference]

2018-06-26 Thread Gregory Ewing
To: Bart From: "Gregory Ewing" To: Bart From: Gregory Ewing Bart wrote: > Wow. (Just think of all the times you write a function containing a neat > bunch of local functions, every time it's called it has to create a new > function instances for each of those functions, even if they are

Re: syntax difference

2018-06-26 Thread Bart
To: boB Stepp From: "Bart" To: boB Stepp From: Bart On 23/06/2018 20:52, boB Stepp wrote: > I've finally found time to examine this rather long, rambling thread. >> There is a place for various levels of programming language. I'm saying that Python which is always touted as a 'simple'

Re: Static variables [was Re: syntax difference]

2018-06-26 Thread Ben Bacarisse
To: Bart From: "Ben Bacarisse" To: Bart From: Ben Bacarisse Bart writes: > On 23/06/2018 23:25, Ben Bacarisse wrote: >> Bart writes: >> >>> On 23/06/2018 21:13, Chris Angelico wrote: On Sat, Jun 23, 2018 at 10:41 PM, Bart wrote: >>> > (At what point would that happen anyway;

Re: Static variables [was Re: syntax difference]

2018-06-26 Thread Ben Bacarisse
To: Bart From: "Ben Bacarisse" To: Bart From: Ben Bacarisse Bart writes: > On 23/06/2018 21:13, Chris Angelico wrote: >> On Sat, Jun 23, 2018 at 10:41 PM, Bart wrote: > >>> (At what point would that happen anyway; if you do this: > >> NONE of your examples are taking copies of the

Re: Static variables [was Re: syntax difference]

2018-06-26 Thread Bart
To: Ben Bacarisse From: "Bart" To: Ben Bacarisse From: Bart On 23/06/2018 23:25, Ben Bacarisse wrote: > Bart writes: > >> On 23/06/2018 21:13, Chris Angelico wrote: >>> On Sat, Jun 23, 2018 at 10:41 PM, Bart wrote: >> (At what point would that happen anyway; if you do this: >> >>>

Re: Static variables [was Re: syntax difference]

2018-06-26 Thread Bart
To: Chris Angelico From: "Bart" To: Chris Angelico From: Bart On 23/06/2018 21:13, Chris Angelico wrote: > On Sat, Jun 23, 2018 at 10:41 PM, Bart wrote: >> (At what point would that happen anyway; if you do this: > NONE of your examples are taking copies of the function. They all are >

Re: moving to Python from Java/C++/C

2018-06-26 Thread Dan Stromberg
From: Dan Stromberg On Mon, Jun 25, 2018 at 3:40 AM, wrote: > Hey, > I already have quite an experience in programming, and I wish to study > Python as well. I need to study it before I continue with my comp. science > academic studies. > How do you recommend studying it? As mentioned in the

Re: Python for beginners or not? [was Re: syntax difference]

2018-06-26 Thread jkn
To: Chris Angelico From: jkn On Monday, June 25, 2018 at 4:23:57 PM UTC+1, Chris Angelico wrote: > On Mon, Jun 25, 2018 at 11:15 PM, jkn wrote: > > (as well as pedanticism ;-o). > > Pedantry. > > ChrisA > (You know I can't let that one pass.) I was chanel[l]ing the TimBot, as any fule kno...

  1   2   3   >