[issue21085] Cygwin does not provide siginfo_t.si_band

2016-09-30 Thread Zachary Ware
Changes by Zachary Ware : -- title: compile error Python3.3 on Cygwin -> Cygwin does not provide siginfo_t.si_band ___ Python tracker

[issue21085] compile error Python3.3 on Cygwin

2016-09-30 Thread Zachary Ware
Zachary Ware added the comment: Thanks for the patch, masamoto, and thanks for the review and rebase, erik.bray! I only applied this to 3.7. It's much more open to experimentation currently, and we have a way to go before Python can even be built on Cygwin. Once we reach a more stable point

Re: how to append to list in list comprehension

2016-09-30 Thread Sayth Renshaw
On Saturday, 1 October 2016 14:17:06 UTC+10, Rustom Mody wrote: > On Saturday, October 1, 2016 at 9:08:09 AM UTC+5:30, Sayth Renshaw wrote: > > I do like [(f + ['0'] if len(f) < 5 else f) for f in fups ] Rustom, if > > there are better non list comprehension options I would like to know as > >

[issue21085] compile error Python3.3 on Cygwin

2016-09-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6874928eae4b by Zachary Ware in branch 'default': Issue #21085: add configure check for siginfo_t.si_band https://hg.python.org/cpython/rev/6874928eae4b -- nosy: +python-dev ___ Python tracker

[issue27897] Avoid possible crash in pysqlite_connection_create_collation

2016-09-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Martin! -- versions: +Python 2.7 ___ Python tracker ___ ___

[issue27897] Avoid possible crash in pysqlite_connection_create_collation

2016-09-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 38e954a2a37e by Serhiy Storchaka in branch '2.7': Issue #27897: Fixed possible crash in sqlite3.Connection.create_collation() https://hg.python.org/cpython/rev/38e954a2a37e -- ___ Python tracker

Re: unintuitive for-loop behavior

2016-09-30 Thread Rustom Mody
On Saturday, October 1, 2016 at 8:55:19 AM UTC+5:30, Random832 wrote: > On Fri, Sep 30, 2016, at 20:46, Gregory Ewing wrote: > > What *is* necessary and sufficient is to make each iteration > > of the for-loop create a new binding of the loop variable > > (and not any other variable!). > > I

Re: Lawrence D'Oliveiro

2016-09-30 Thread Rustom Mody
On Saturday, October 1, 2016 at 10:04:01 AM UTC+5:30, Rustom Mody wrote: > On Friday, September 30, 2016 at 10:45:03 PM UTC+5:30, Ethan Furman wrote: > > Lawrence D'Oliveiro is banned from Python List until the new year. > > > > If his posts show up somewhere else (e.g. Usenet), please ignore

Re: Lawrence D'Oliveiro

2016-09-30 Thread Rustom Mody
On Friday, September 30, 2016 at 10:45:03 PM UTC+5:30, Ethan Furman wrote: > Lawrence D'Oliveiro is banned from Python List until the new year. > > If his posts show up somewhere else (e.g. Usenet), please ignore them. If > you must respond to him please trim out his text so the rest of us

Re: how to append to list in list comprehension

2016-09-30 Thread Rustom Mody
On Saturday, October 1, 2016 at 9:08:09 AM UTC+5:30, Sayth Renshaw wrote: > I do like [(f + ['0'] if len(f) < 5 else f) for f in fups ] Rustom, if there > are better non list comprehension options I would like to know as generally I > find then confusing. Two points here — best taken

[issue28275] LZMADecompressor.decompress Use After Free

2016-09-30 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

[issue28276] test_loading.py - false positive result for "def test_find" when find_library() is not functional or the (shared) library does not exist

2016-09-30 Thread Martin Panter
Martin Panter added the comment: Other tests in this file skip the test if libc_name is None. So I think it would make more sense to skip the test rather than fail in test_find(). I.e. if not found: self.skipTest("Could not find c and m libraries") If you are confident that find_library()

Re: unintuitive for-loop behavior

2016-09-30 Thread Steve D'Aprano
On Sat, 1 Oct 2016 10:46 am, Gregory Ewing wrote: > Steve D'Aprano wrote: >> Giving for-loops their own namespace is a grossly unintuitive and a very >> weird thing to do. >> >> It would be terribly inconvenient and surprising for if...else blocks to >> be separate namespaces: > > There's an

Re: unintuitive for-loop behavior

2016-09-30 Thread Rustom Mody
For the most part you've taken the words out of my mouth! Some more details... On Saturday, October 1, 2016 at 6:16:32 AM UTC+5:30, Gregory Ewing wrote: > Steve D'Aprano wrote: > > Giving for-loops their own namespace is a grossly unintuitive and a very > > weird thing to do. > > > > It would be

Re: how to append to list in list comprehension

2016-09-30 Thread Sayth Renshaw
> > I want to go threw and for each index error at [4] append a 0. > > You want to append 0 if the list does not have at least 5 items? > > > p = re.compile('\d+') > > fups = p.findall(nomattr['firstup']) > > [x[4] for x in fups if IndexError fups.append(0)] > > print(fups) > > > Unsure why I

Re: how to append to list in list comprehension

2016-09-30 Thread Rustom Mody
On Saturday, October 1, 2016 at 7:48:19 AM UTC+5:30, John Gordon wrote: > In Sayth Renshaw writes: > > > I want to go threw and for each index error at [4] append a 0. > > You want to append 0 if the list does not have at least 5 items? > > > p = re.compile('\d+') > > fups =

[issue28275] LZMADecompressor.decompress Use After Free

2016-09-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 36d37ff6c236 by Martin Panter in branch '3.5': Issue #28275: Clean up to avoid use-after-free after bzip decompress failure https://hg.python.org/cpython/rev/36d37ff6c236 New changeset dca18f0ec280 by Martin Panter in branch '3.6': Issue #28275:

Re: unintuitive for-loop behavior

2016-09-30 Thread Random832
On Fri, Sep 30, 2016, at 20:46, Gregory Ewing wrote: > What *is* necessary and sufficient is to make each iteration > of the for-loop create a new binding of the loop variable > (and not any other variable!). I don't think that's true. I think this is logic that is excessively tied to the toy

Re: How to make a foreign function run as fast as possible in Windows?

2016-09-30 Thread Chris Angelico
On Sat, Oct 1, 2016 at 11:27 AM, wrote: > At this moment my interest is how to make it runs at 100% core usage. Windows > task manager shows this function takes only ~70% usage, and the number varies > during its execution, sometimes even drop to 50%. > What's it doing?

[issue27897] Avoid possible crash in pysqlite_connection_create_collation

2016-09-30 Thread Martin Panter
Martin Panter added the comment: The test in 2.7 (1aae9b7ff321) seems to cause a Windows 8.1 buildbot to hang in test_sqlite. I deduced this because there is no mention of "test_sqlite" in the test log output, compared to a previous successful test log.

Re: Could find libpython.so after succesfull compilation.

2016-09-30 Thread Steven Truppe
Damn i'm so stupid... the files where in fron on of my eyes and i was just not able to find then .. On 2016-10-01 02:23, Steven Truppe wrote: Hi all, i've compiled python3.5 and all went fine, i find ./python and it works, most of the make test stuff is working my only problem is that i'm

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-09-30 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch. I left some comments on Rietveld. -- stage: test needed -> patch review ___ Python tracker ___

Re: how to append to list in list comprehension

2016-09-30 Thread John Gordon
In <534d5506-1810-4a79-ac8f-95a664d17...@googlegroups.com> Sayth Renshaw writes: > I want to go threw and for each index error at [4] append a 0. You want to append 0 if the list does not have at least 5 items? > p = re.compile('\d+') > fups =

Re: Could find libpython.so after succesfull compilation.

2016-09-30 Thread Steven Truppe
I fond this in the ./configuration help: * --enable-shared disable/enable building shared python library* so i tried: $configure --enabled-shard but i can't still find a library inside my build directory. On 2016-10-01 02:23, Steven Truppe wrote: Hi all, i've compiled python3.5

[issue28225] bz2 does not support pathlib

2016-09-30 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___

[issue27511] Add PathLike objects support to BZ2File

2016-09-30 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> bz2 does not support pathlib ___ Python tracker

[issue28228] imghdr does not support pathlib

2016-09-30 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the review, Brett! The next target is gzip module. Thanks for the all patches Ethan :) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: enhancement -> behavior ___

[issue28227] gzip does not support pathlib

2016-09-30 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___

how to append to list in list comprehension

2016-09-30 Thread Sayth Renshaw
I have a list of lists of numbers like this excerpt. ['0', '0', '0', '0'] ['0', '0', '0', '0'] ['0', '0', '0', '0'] ['0', '0', '0', '0'] ['0', '0', '0', '0'] ['0', '0', '0', '0'] ['7', '2', '1', '0', '142647', '00'] ['7', '2', '0', '1', '87080', '00'] ['6', '1', '1', '1', '51700', '00'] ['4',

[issue28228] imghdr does not support pathlib

2016-09-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 929e3adefe7a by Berker Peksag in branch '3.6': Issue #28228: imghdr now supports pathlib https://hg.python.org/cpython/rev/929e3adefe7a New changeset 013b3b5d3b6c by Berker Peksag in branch 'default': Issue #28228: Merge from 3.6

Re: What is a mechanism equivalent to "trace variable w ..." in Tcl for Python?

2016-09-30 Thread Terry Reedy
On 9/30/2016 2:23 PM, Les Cargill wrote: A really interesting design approach in Tcl is to install a callback when a variable is written to. This affords highly event-driven programming. Example ( sorry; it's Tcl ) : namespace eval events { set preRPM -1 proc handleRPM { args } {

Re: How to make a foreign function run as fast as possible in Windows?

2016-09-30 Thread jfong
Paul Moore at 2016/9/30 7:07:35PM wrote: > OK. So if your Python code only calls the function once, the problem needs to > be fixed in the external code (the assembly routine). But if you can split up > the task at the Python level to make multiple calls to the function, each to > do a part of

[issue28259] Ctypes bug windows

2016-09-30 Thread Steve Dower
Steve Dower added the comment: You keep removing the Windows component - is this not actually a bug on Windows? -- ___ Python tracker ___

[issue28283] test_sock_connect_sock_write_race() of test.test_asyncio.test_selector_events fails randomly on FreeBSD

2016-09-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset f7688db81753 by Berker Peksag in branch '3.5': Issue #28283: Remove flaky test test_sock_connect_sock_write_race again https://hg.python.org/cpython/rev/f7688db81753 New changeset 0fe04467c4b5 by Berker Peksag in branch '3.6': Issue #28283: Merge

Re: unintuitive for-loop behavior

2016-09-30 Thread Gregory Ewing
Steve D'Aprano wrote: What happens if it is *not* a misfeature? Gotchas are not always misfeatures -- sometimes gotchas are gotchas because people's expectations are simply wrong, and pandering to their confused expectations does not actually help them. I haven't made up my mind about *this*

[issue28226] compileall does not support pathlib

2016-09-30 Thread Berker Peksag
Changes by Berker Peksag : -- status: open -> closed ___ Python tracker ___ ___

Could find libpython.so after succesfull compilation.

2016-09-30 Thread Steven Truppe
Hi all, i've compiled python3.5 and all went fine, i find ./python and it works, most of the make test stuff is working my only problem is that i'm not able to find libpython.so am i missing somehting ? Thianks in advance -- https://mail.python.org/mailman/listinfo/python-list

Re: unintuitive for-loop behavior

2016-09-30 Thread Gregory Ewing
Steve D'Aprano wrote: Giving for-loops their own namespace is a grossly unintuitive and a very weird thing to do. It would be terribly inconvenient and surprising for if...else blocks to be separate namespaces: There's an important difference between a for-loop and an if-statement that's

[issue10415] readline.insert_text documentation incomplete

2016-09-30 Thread Berker Peksag
Berker Peksag added the comment: I agree with Martin. Closing this as 'out of date' for now, but we can reopen if you could provide more information. Thanks! -- resolution: -> out of date stage: needs patch -> resolved status: pending -> closed type: -> behavior

[issue28226] compileall does not support pathlib

2016-09-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 13cd90bdcfbe by Berker Peksag in branch '3.6': Issue #28226: Fix test_compileall on Windows https://hg.python.org/cpython/rev/13cd90bdcfbe New changeset ff80d77200ed by Berker Peksag in branch 'default': Issue #28226: Merge from 3.6

[issue18235] _sysconfigdata.py wrong on AIX installations

2016-09-30 Thread David Edelsohn
David Edelsohn added the comment: Michael Felt, The patch was from Michael Haubenwallner. I was addressing Michael Haubenwallner. -- ___ Python tracker

[issue28294] HTTPServer server.py assumes sys.stderr != None

2016-09-30 Thread Guido van Rossum
Guido van Rossum added the comment: I wonder if we shouldn't close this as "won't fix" and tell the OP to override the log_message() method. It's kind of curious to complain about *this* dependency on sys.stderr existing and working, since there are probably 1000s of other places in the

rocket simulation game with just using tkinter

2016-09-30 Thread Irmen de Jong
Hi, I've made a very simple rocket simulation game, inspired by the recent success of SpaceX where they managed to land the Falcon-9 rocket back on a platform. I was curious if you can make a simple graphics animation game with just using Tkinter, instead of using other game libraries such as

[issue28321] Plistlib: Half of the double width characters are missing when writing binary plist

2016-09-30 Thread kuglee
New submission from kuglee: I read an emoji character from a plist file. The emoji printed correctly to stdout. However when I dump the file to a binary plist only the half of the emoji was present. -- ___ Python tracker

[issue28321] Plistlib: Half of the double width characters are missing when writing binary plist

2016-09-30 Thread kuglee
Changes by kuglee : -- components: Library (Lib) files: input.plist nosy: kuglee priority: normal severity: normal status: open title: Plistlib: Half of the double width characters are missing when writing binary plist type: behavior versions: Python 3.5 Added file:

[issue28321] Plistlib: Half of the double width characters are missing when writing binary plist

2016-09-30 Thread kuglee
Changes by kuglee : Added file: http://bugs.python.org/file44898/output.plist ___ Python tracker ___

[issue18235] _sysconfigdata.py wrong on AIX installations

2016-09-30 Thread Michael Felt
Michael Felt added the comment: I am not suggesting anything. I am only trying to report what I experience. The first observation was that I could not build python when src != build directory. I believe that was the original complaint as well. The second observation came when I tried to use

[issue28319] typo in lzma module documentation

2016-09-30 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report! -- nosy: +berker.peksag resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.6 ___ Python tracker

[issue28319] typo in lzma module documentation

2016-09-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 258436eecb51 by Berker Peksag in branch '3.5': Issue #28319: Fix typo in lzma.rst https://hg.python.org/cpython/rev/258436eecb51 New changeset a1e7c9d249ed by Berker Peksag in branch '3.6': Issue #28319: Merge from 3.5

[issue28319] typo in lzma module documentation

2016-09-30 Thread Berker Peksag
Changes by Berker Peksag : -- type: -> behavior ___ Python tracker ___ ___

[issue28226] compileall does not support pathlib

2016-09-30 Thread Berker Peksag
Berker Peksag added the comment: Windows buildbots didn't like a6f0cc1820f4 :) Fix is incoming. == FAIL: test_compile_dir_pathlike (test.test_compileall.CompileallTests)

[issue28228] imghdr does not support pathlib

2016-09-30 Thread Brett Cannon
Brett Cannon added the comment: Berker, your patch LGTM -- assignee: -> berker.peksag ___ Python tracker ___

[issue28226] compileall does not support pathlib

2016-09-30 Thread Ethan Furman
Ethan Furman added the comment: Thanks, Berker Peksag! -- assignee: ethan.furman -> ___ Python tracker ___

[issue28226] compileall does not support pathlib

2016-09-30 Thread Berker Peksag
Berker Peksag added the comment: I found a similar problem in compile_dir() and fixed it in the commit. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue28226] compileall does not support pathlib

2016-09-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset a6f0cc1820f4 by Berker Peksag in branch '3.6': Issue #28226: compileall now supports pathlib https://hg.python.org/cpython/rev/a6f0cc1820f4 New changeset fcce24bc9416 by Berker Peksag in branch 'default': Issue #28226: Merge from 3.6

[issue28320] Hostname validation is False by default in imaplib

2016-09-30 Thread Maciej Szulik
New submission from Maciej Szulik: According to David [1] hostname validation should be True by default for the imaplib, my tests clearly show something different. Additionally he states you Christian were doing so, that's why I'm opening this not to forget about the problem and discuss

[issue25591] refactor imaplib tests

2016-09-30 Thread Maciej Szulik
Maciej Szulik added the comment: David I apologize for 2 emails from Reitveld, for some reason it didn't show me all in one view :/ (I need to master Reitveld better). I've just updated patch according to your comments. -- Added file:

Re: Counting words in a string??

2016-09-30 Thread breamoreboy
On Friday, September 30, 2016 at 8:12:47 PM UTC+1, Jake wrote: > On Friday, 30 September 2016 19:49:57 UTC+1, srinivas devaki wrote: > > On Oct 1, 2016 12:10 AM, "Jake" wrote: > > > > > > Hi, I need a program which: > > > 1) Asks the user for a sentence of their choice (not including > >

Re: What is a mechanism equivalent to "trace variable w ..." in Tcl for Python?

2016-09-30 Thread breamoreboy
On Friday, September 30, 2016 at 7:16:10 PM UTC+1, Les Cargill wrote: > A really interesting design approach in Tcl is to install a callback > when a variable is written to. This affords highly event-driven > programming. > > Example ( sorry; it's Tcl ) : > > > namespace eval events { >

Re: Counting words in a string??

2016-09-30 Thread mm0fmf
On 30/09/2016 20:12, Jake wrote: On Friday, 30 September 2016 19:49:57 UTC+1, srinivas devaki wrote: On Oct 1, 2016 12:10 AM, "Jake" wrote: Hi, I need a program which: 1) Asks the user for a sentence of their choice (not including punctuation) 2) Ask the user

Re: What is a mechanism equivalent to "trace variable w ..." in Tcl for Python?

2016-09-30 Thread Random832
On Fri, Sep 30, 2016, at 14:42, Ned Batchelder wrote: > On Friday, September 30, 2016 at 2:16:10 PM UTC-4, Les Cargill wrote: > > What is an equivalent mechanism in Python? > > There's no way* to hook into "x = 2", but you could hook into "x.a = 2" > if you wanted do, by defining __setattr__ on

[issue28315] incorrect "in ?" output in 'divide' example at "Defining Clean-up Actions" in tutorial

2016-09-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Pushed to all 4 versions in ce57a74b5223, 1bead1f0260f, c729a62d4ec5, and 89cc2a6b64aa, but I gave issue # as 28815 instead of 28315. Thanks for the clean patch for 3.5. It mostly worked for 2.7, which also had an additional item not in 3.5. The only other

Re: Counting words in a string??

2016-09-30 Thread Chris Angelico
On Sat, Oct 1, 2016 at 5:12 AM, Jake wrote: > Could you make the program for me or provide an outline? No. In case you didn't read any of the other responses, this community is not a plagiarism source. If you want to learn to be a programmer, you're going to have to

Re: Counting words in a string??

2016-09-30 Thread Jake
On Friday, 30 September 2016 19:49:57 UTC+1, srinivas devaki wrote: > On Oct 1, 2016 12:10 AM, "Jake" wrote: > > > > Hi, I need a program which: > > 1) Asks the user for a sentence of their choice (not including > punctuation) > > 2) Ask the user which word they would

Re: Counting words in a string??

2016-09-30 Thread Peter Pearson
On Fri, 30 Sep 2016 11:37:19 -0700 (PDT), Jake wrote: > Hi, I need a program which: > 1) Asks the user for a sentence of their choice (not including punctuation) > 2) Ask the user which word they would like to know is repeated > 3) Print out to the user how many times the

[issue28315] incorrect "in ?" output in 'divide' example at "Defining Clean-up Actions" in tutorial

2016-09-30 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: docs@python -> terry.reedy nosy: +terry.reedy stage: -> commit review versions: +Python 3.6, Python 3.7 ___ Python tracker

Re: Counting words in a string??

2016-09-30 Thread Rob Gaddi
Jake wrote: > Hi, I need a program which: > 1) Asks the user for a sentence of their choice (not including punctuation) > 2) Ask the user which word they would like to know is repeated > 3) Print out to the user how many times the word came up which they chose > from their sentence. > > It would

Re: Counting words in a string??

2016-09-30 Thread srinivas devaki
On Oct 1, 2016 12:10 AM, "Jake" wrote: > > Hi, I need a program which: > 1) Asks the user for a sentence of their choice (not including punctuation) > 2) Ask the user which word they would like to know is repeated > 3) Print out to the user how many times the word came up

Re: What is a mechanism equivalent to "trace variable w ..." in Tcl for Python?

2016-09-30 Thread Ned Batchelder
On Friday, September 30, 2016 at 2:16:10 PM UTC-4, Les Cargill wrote: > A really interesting design approach in Tcl is to install a callback > when a variable is written to. This affords highly event-driven > programming. > > Example ( sorry; it's Tcl ) : > > (I can't read Tcl, sorry) > >

[issue18235] _sysconfigdata.py wrong on AIX installations

2016-09-30 Thread David Edelsohn
David Edelsohn added the comment: Michael, Are you suggesting to move the code fragment *AND* revert or change the reversal of LDSHARED? The Python code seems to be setting and reversing the value in multiple places. This also relates to Issue25825. Repeatedly flipping this around is not

[issue28287] Refactor subprocess.Popen to let a subclass handle IO asynchronously

2016-09-30 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.7 -Python 3.6 ___ Python tracker ___ ___

[issue28287] Refactor subprocess.Popen to let a subclass handle IO asynchronously

2016-09-30 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +yselivanov ___ Python tracker ___ ___

[issue28228] imghdr does not support pathlib

2016-09-30 Thread Ethan Furman
Ethan Furman added the comment: Berker, yes please. I just got back from vacation. -- ___ Python tracker ___

Counting words in a string??

2016-09-30 Thread Jake
Hi, I need a program which: 1) Asks the user for a sentence of their choice (not including punctuation) 2) Ask the user which word they would like to know is repeated 3) Print out to the user how many times the word came up which they chose from their sentence. It would help if you could comment

Re: unintuitive for-loop behavior

2016-09-30 Thread Steve D'Aprano
On Fri, 30 Sep 2016 11:43 pm, BartC wrote: > It can make sense for 'x' to be local to this for-loop block (everything > else is at it works now), and independent of any x's in outer blocks. It > means being able to do stuff like this: > > for x in a: > for x in b: > pass >

[issue28264] Turtle.onclick events blocked by Turtle.stamp

2016-09-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.4 only gets security patches. I cannot reproduce in 3.5.2 or 3.6.0b1 on Win 10. Left click always moves the turtle whether or not stamp is activated. Until problem is verified in a current release, we will have to assume it has been fixed by a turtle or

Re: unintuitive for-loop behavior

2016-09-30 Thread Steve D'Aprano
On Fri, 30 Sep 2016 03:06 pm, Rustom Mody wrote: > On Friday, September 30, 2016 at 10:23:31 AM UTC+5:30, Gregory Ewing > wrote: >> namenobodywants wrote: >> > can anyone help to reconcile me to this semantics? >> >> Not really. Most people agree that it's not desirable >> behaviour, but we've

What is a mechanism equivalent to "trace variable w ..." in Tcl for Python?

2016-09-30 Thread Les Cargill
A really interesting design approach in Tcl is to install a callback when a variable is written to. This affords highly event-driven programming. Example ( sorry; it's Tcl ) : namespace eval events { set preRPM -1 proc handleRPM { args } { # do stuff to

[issue28318] Python unittest.mock.mock_calls stores references to arguments instead of their values

2016-09-30 Thread R. David Murray
R. David Murray added the comment: This is pretty much just the way python works. The only alternative would be for mock to try to do a deepcopy, which won't always work, so it is probably better not to do it at all. -- nosy: +michael.foord, r.david.murray, rbcollins

Re: Regarding Job Opportunity for the position Python Developer in Mc Lean, VA

2016-09-30 Thread gowri
On Friday, September 30, 2016 at 10:56:14 AM UTC-5, go...@spsolinc.com wrote: > Hi, > > Here we have an immediate opening. Location will be Mc Lean, VA. > Please revert back to us if you are interested. > Need good Python experience. SAS or AWS knowledge is added advantage. > > Thanks, > Gowri

[issue28319] typo in lzma module documentation

2016-09-30 Thread Vladimir Rutsky
New submission from Vladimir Rutsky: "Specifying custom filter chains" section contains: > It only supports a single The delta filter supports only one option, dist. Probably should be just: > The delta filter supports only one option, dist. -- assignee: docs@python components:

[issue28301] python3.4-config --extension-suffix reports '.cpython-34m.so'

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

[issue28318] Python unittest.mock.mock_calls stores references to arguments instead of their values

2016-09-30 Thread Guillaume Chorn
New submission from Guillaume Chorn: In the unittest.mock library, when a Mock object stores the calls made on it in its `mock_calls` attribute, it appears to store references to the call arguments instead of the actual values of the call arguments. In cases where call args are mutable types,

Re: Save Idle Options

2016-09-30 Thread Terry Reedy
On 9/29/2016 9:33 PM, tce...@comcast.net wrote: Win 10 pro 32, Python 3.6 I’m new to Python and installed Python with Idle, which I like as an IDE. But I’m mystified as to how to make interface options stick. Opened Options, Configure Idle. Changed font to Consolas Bold. And stopped dead.

[issue28217] Add interactive console tests

2016-09-30 Thread Steve Dower
Steve Dower added the comment: Added my work on this so far. I've only done input testing, but that's the more important one anyway in my opinion. Feel free to suggest more edge cases we ought to test and I'll try and get to adding them before b2. -- keywords: +patch Added file:

Lawrence D'Oliveiro

2016-09-30 Thread Ethan Furman
Lawrence D'Oliveiro is banned from Python List until the new year. If his posts show up somewhere else (e.g. Usenet), please ignore them. If you must respond to him please trim out his text so the rest of us don't have to deal with him. -- Python List Moderators --

[issue28259] Ctypes bug windows

2016-09-30 Thread Aristotel
Aristotel added the comment: I use 32-bit python on 64-bit windows -- components: -Windows ___ Python tracker ___

Re: unintuitive for-loop behavior

2016-09-30 Thread Chris Angelico
On Sat, Oct 1, 2016 at 3:03 AM, Brendan Abel <007bren...@gmail.com> wrote: >> a = 1 > if condition: > print(a) # UnboundLocalError: local 'a' referenced before assignment > a += 1 > > > For-loops are no different. Making them their own namespace is a very > strange thing to do, it would

Re: unintuitive for-loop behavior

2016-09-30 Thread Brendan Abel
> a = 1 if condition: print(a) # UnboundLocalError: local 'a' referenced before assignment a += 1 For-loops are no different. Making them their own namespace is a very strange thing to do, it would mean you couldn't re-bind a value inside a for-loop: count = 0 for x in sequence:

Re: unintuitive for-loop behavior

2016-09-30 Thread Grant Edwards
On 2016-09-30, Grant Edwards wrote: > On 2016-09-30, Steve D'Aprano wrote: > >> To me, "make for-loops be their own scope" sounds like a joke >> feature out of joke languages like INTERCAL. I'm not aware of any >> sensible language that does

Re: unintuitive for-loop behavior

2016-09-30 Thread Chris Angelico
On Sat, Oct 1, 2016 at 12:36 AM, Grant Edwards wrote: > On 2016-09-30, Steve D'Aprano wrote: > >> To me, "make for-loops be their own scope" sounds like a joke feature out of >> joke languages like INTERCAL. I'm not aware of any sensible

[issue28269] [MinGW] Can't compile Python/dynload_win.c due to static strcasecmp

2016-09-30 Thread Steve Dower
Steve Dower added the comment: Why not replace it entirely with stricmp? Does it behave differently? -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker

[issue28259] Ctypes bug windows

2016-09-30 Thread Steve Dower
Steve Dower added the comment: Are you using 64-bit? There was an issue passing structs a while back, but I don't recall when or if we've merged the patch. -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python

[issue28277] ./Modules/_io/_iomodule.c build failure on AIX (beta1) while (a2) was fine.

2016-09-30 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue28207] Use pkg-config to find dependencies

2016-09-30 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- nosy: +xdegaye ___ Python tracker ___ ___ Python-bugs-list

[issue28288] Expose environment variable for Py_Py3kWarningFlag

2016-09-30 Thread Roy Williams
Roy Williams added the comment: Thanks for your support! Here's a patch to enable the `PYTHON3WARNINGS` environment variable. -- keywords: +patch Added file: http://bugs.python.org/file44894/pythonenable3kwarningsflag.patch ___ Python tracker

Regarding Job Opportunity for the position Python Developer in Mc Lean, VA

2016-09-30 Thread gowri
Hi, Here we have an immediate opening. Location will be Mc Lean, VA. Please revert back to us if you are interested. Need good Python experience. SAS or AWS knowledge is added advantage. Thanks, Gowri Shekar 972-983-3467 -- https://mail.python.org/mailman/listinfo/python-list

[issue28190] Detect curses headers correctly for cross-compiling

2016-09-30 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- nosy: +xdegaye ___ Python tracker ___ ___ Python-bugs-list

[issue28199] Compact dict resizing is doing too much work

2016-09-30 Thread INADA Naoki
INADA Naoki added the comment: Ah, I'm sorry. I forget to remove some changes relating to inplace compaction (reusing oldkeys when oldsize==newsize). -- Added file: http://bugs.python.org/file44893/dictresize2.patch ___ Python tracker

[issue26351] Occasionally check for Ctrl-C in long-running operations like sum

2016-09-30 Thread Trey Hunner
Trey Hunner added the comment: This is a problem I experience occasionally while teaching and while developing teaching curriculum. I tend to close problem windows quickly enough to avoid a computer crash in front of a live audience, but it's still an annoyance to get the REPL state back to

  1   2   >