[issue30744] Local variable assignment is broken when combined with threads + tracing + closures

2017-06-24 Thread Armin Rigo
Armin Rigo added the comment: A version of the same problem without threads, using generators instead to get the bug deterministically. Prints 1, 1, 1, 1 on CPython and 1, 2, 3, 3 on PyPy; in both cases we would rather expect 1, 2, 3, 4. -- Added file:

[issue30541] Add restricted mocks to the python unittest mocking framework

2017-06-24 Thread László Kiss Kollár
Changes by László Kiss Kollár : -- nosy: +László Kiss Kollár ___ Python tracker ___

[issue30745] Warnings in Modules/_winapi.c

2017-06-24 Thread Segev Finer
New submission from Segev Finer: ..\Modules\_winapi.c(886): warning C4090: 'function': different 'const' qualifiers ..\Modules\_winapi.c(848): warning C4101: 'wenvironment_size': unreferenced local variable Added in d174d24a5d37d1516b885dc7c82f71ecd5930700 -- components: Windows

[issue30744] Local variable assignment is broken when combined with threads + tracing + closures

2017-06-24 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list

[issue30744] Local variable assignment is broken when combined with threads + tracing + closures

2017-06-24 Thread Nathaniel Smith
Nathaniel Smith added the comment: Some thoughts based on discussion with Armin in #pypy: It turns out if you simply delete the LocalsToFast and FastToLocals calls in call_trampoline, then the test suite still passes. I'm pretty sure that pdb relies on this as a way to set local variables,

[issue30647] CODESET error on AMD64 FreeBSD 10.x Shared 3.x caused by the PEP 538

2017-06-24 Thread Nick Coghlan
Changes by Nick Coghlan : -- pull_requests: +2421 ___ Python tracker ___ ___

[issue30730] Injecting environment variable in subprocess on Windows

2017-06-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 9dda2caca8edc7ff1285f6b0d1c5279b51854b7d by Serhiy Storchaka in branch '2.7': [2.7] bpo-30730: Prevent environment variables injection in subprocess on Windows. (GH-2325) (#2372)

Re: Best way to ensure user calls methods in correct order?

2017-06-24 Thread Thomas Jollans
On 22/06/17 17:31, Thomas Nyberg wrote: > Thanks for the response! I see the reasoning, but I can't entirely > square it with what I'm thinking. Probably it's either because I was > hiding some of my intention (sorry if I wasted your time due to lack of > details) or that I'm naive and regardless

[issue30730] Injecting environment variable in subprocess on Windows

2017-06-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2420 ___ Python tracker ___ ___

[issue30744] Local variable assignment is broken when combined with threads + tracing + closures

2017-06-24 Thread Armin Rigo
Armin Rigo added the comment: (Note: x.py is for Python 2.7; for 3.x, of course, replace ``.next()`` with ``.__next__()``. The result is the same) -- ___ Python tracker

[issue29097] datetime.fromtimestamp(t) when 0 <= t <= 86399 fails on Python 3.6

2017-06-24 Thread Ammar Askar
Ammar Askar added the comment: Hey, sorry for the late response. I just ran: import datetime from dateutil.zoneinfo import get_zonefile_instance import dateutil.tz zonenames = list(get_zonefile_instance().zones) for tz in zonenames: tz = dateutil.tz.gettz(tz) for i in

Unable to convert pandas object to string

2017-06-24 Thread Bhaskar Dhariyal
Int64Index: 171594 entries, 0 to 63464 Data columns (total 7 columns): project_id 171594 non-null object desc171594 non-null object goal171594 non-null float64 keywords171594 non-null object diff_creat_laun 171594 non-null int64

Re: Unable to convert pandas object to string

2017-06-24 Thread Paul Barry
Any chance you could post one line of data so we can see what we have to work with? Also - have you taken a look at Jake VanderPlas's notebooks? There's lot of help with pandas to be found there: https://github.com/jakevdp/PythonDataScienceHandbook Paul. On 24 June 2017 at 10:32, Bhaskar

Re: Deleting An Optional Dict Entry (Posting On Python-List Prohibited)

2017-06-24 Thread Steve D'Aprano
On Fri, 23 Jun 2017 07:19 pm, Lawrence D’Oliveiro wrote: > The construct > > del «dict»[«key»] > > deletes the entry with key «key» from the dictionary «dict», provided it > exists. If it does not, you get a KeyError. > > To delete an entry which might or might not exist, the simplest way

[issue30708] Ensure that the result of PyUnicode_AsWideCharString() doesn't contain null characters if size is not returned

2017-06-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could anyone please make a review of this PR? Especially the documentation part. This PR is a part of a set of PRs that fix potential vulnerabilities (issue13617, issue30730, and yet few issues planned). -- ___

[issue30744] Local variable assignment is broken when combined with threads + tracing + closures

2017-06-24 Thread Armin Rigo
Changes by Armin Rigo : -- nosy: +arigo ___ Python tracker ___ ___

[issue30730] Injecting environment variable in subprocess on Windows

2017-06-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e0d446e9caa38923e43818f78c94f95fe0aa995e by Serhiy Storchaka in branch '3.5': [3.5] bpo-30745: Fix compiler warnings introduced in bpo-30730. (GH-2376) (#2379) https://github.com/python/cpython/commit/e0d446e9caa38923e43818f78c94f95fe0aa995e

[issue30745] Warnings in Modules/_winapi.c

2017-06-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e0d446e9caa38923e43818f78c94f95fe0aa995e by Serhiy Storchaka in branch '3.5': [3.5] bpo-30745: Fix compiler warnings introduced in bpo-30730. (GH-2376) (#2379) https://github.com/python/cpython/commit/e0d446e9caa38923e43818f78c94f95fe0aa995e

Re: New to Python - Career question

2017-06-24 Thread J. Clarke
In article , larry.mart...@gmail.com says... > > On Tue, Jun 6, 2017 at 6:37 PM, Marko Rauhamaa wrote: > > pta...@gmail.com: > > > >> New to Python and have been at it for about a month now. I'm doing > >> well and like it

[issue30703] test_multiprocessing_forkserver hangs on the master branch

2017-06-24 Thread Matt Billenstein
Matt Billenstein added the comment: Cool -- do you need me to do something more to help debug this? -- ___ Python tracker ___

[issue30687] build.bat should locate msbuild.exe rather than vcvarsall.bat

2017-06-24 Thread Steve Dower
Steve Dower added the comment: You're going to get build failures without the C++ tooling anyway, and msbuild should find previous installs that are compatible. What is your system setup that causes this failure when you expect success? -- ___

[issue30715] Test_winreg, test_dynamic_key hangs on my Win 10

2017-06-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ping. I still cannot run the test suite to completion, so I cannot tell whether I add a warning failure regression. Does anyone else have the same problem? Should I patch the file to skip this test? -- ___

Re: os.walk the apostrophe and unicode

2017-06-24 Thread MRAB
On 2017-06-24 19:57, Rod Person wrote: Hi, I'm working on a program that will walk a file system and clean the id3 tags of mp3 and flac files, everything is working great until the follow file is found '06 - Todd's Song (Post-Spiderland Song in Progress).flac' for some reason that I can't

Re: os.walk the apostrophe and unicode

2017-06-24 Thread Rod Person
On Sat, 24 Jun 2017 21:28:45 +0200 Peter Otten <__pete...@web.de> wrote: > Rod Person wrote: > > > Hi, > > > > I'm working on a program that will walk a file system and clean the > > id3 tags of mp3 and flac files, everything is working great until > > the follow file is found > > > > '06 -

Re: os.walk the apostrophe and unicode

2017-06-24 Thread Steve D'Aprano
On Sun, 25 Jun 2017 07:17 am, Peter Otten wrote: > Then I'd fix the name manually... The file name isn't broken. What's broken is parts of the OP's code which assumes that non-ASCII file names are broken... -- Steve “Cheer up,” they said, “things could be worse.” So I cheered up, and sure

Re: os.walk the apostrophe and unicode

2017-06-24 Thread Peter Otten
Rod Person wrote: > On Sat, 24 Jun 2017 21:28:45 +0200 > Peter Otten <__pete...@web.de> wrote: > >> Rod Person wrote: >> >> > Hi, >> > >> > I'm working on a program that will walk a file system and clean the >> > id3 tags of mp3 and flac files, everything is working great until >> > the follow

Re: os.walk the apostrophe and unicode

2017-06-24 Thread MRAB
On 2017-06-24 20:47, Rod Person wrote: On Sat, 24 Jun 2017 13:28:55 -0600 Michael Torrie wrote: On 06/24/2017 12:57 PM, Rod Person wrote: > Hi, > > I'm working on a program that will walk a file system and clean the > id3 tags of mp3 and flac files, everything is working

[issue30671] dict: improve lookup function

2017-06-24 Thread Tim Peters
Tim Peters added the comment: Actually, there is something to be gained here, for smaller tables. The simple formulas for the expected number of probes under uniform hashing are upper bounds, and are significantly overstated when the load factor is very high (not a concern for Python) or the

[issue30749] Non-atomic and unusual (wrong) rename behavior under OS X, Python 2.7.13

2017-06-24 Thread Alex Groce
New submission from Alex Groce: Attached file causes a failed rename, which is fine. However, after the failed rename, the directory structure has changed (and the error reported is not very helpful). Behavior does not match Linux or Windows behavior. Discovered using random testing to

[issue30747] _Py_atomic_* not actually atomic on Windows with MSVC

2017-06-24 Thread Steve Dower
Steve Dower added the comment: Unless you've got an example of this causing actual issues, it should only go into 3.7. All platforms supported by Windows guarantee atomicity for aligned, pointer-sized reads and writes, but there appear to be memory fencing semantics in here too. I don't

Re: Checking for an exception

2017-06-24 Thread Ben Finney
Steve D'Aprano writes: > What's the right/best way to test whether an object is an exception > ahead of time? (That is, without trying to raise from it.) This being Python, it is Easier to Ask for Forgiveness than for Permission. The corollary of that is, if you try

[issue4926] putenv() accepts names containing '=', return value of unsetenv() not checked

2017-06-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2432 ___ Python tracker ___ ___

Re: os.walk the apostrophe and unicode

2017-06-24 Thread alister
On Sat, 24 Jun 2017 14:57:21 -0400, Rod Person wrote: > \xe2\x80\x99, because the file name has been created using "Right single quote" instead of apostrophe, the glyphs look identical in many fonts. -- "If you understand what you're doing, you're not learning anything." --

Re: os.walk the apostrophe and unicode

2017-06-24 Thread Andre Müller
Can os.fsencode and os.fsdecode help? I've seen it somewhere. I've never used it. To fix encodings, sometimes I use the module ftfy Greetings Andre -- https://mail.python.org/mailman/listinfo/python-list

[issue30747] _Py_atomic_* not actually atomic on Windows with MSVC

2017-06-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +paul.moore, steve.dower, tim.golden, zach.ware stage: -> patch review type: enhancement -> behavior versions: +Python 3.5 ___ Python tracker

[issue30746] Reject environment variable names containing '='

2017-06-24 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Environment variable names shouldn't contain the '=' character, because it often is used as a separator between a name and a value. There is an exception -- starting '=' on Windows is used for defining "hidden" environment variables. Using names

[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: I had run the full test before pushing the changes without any messages. I didn't run it with any options though. -- $:~/cpython/Lib$ /home/cheryl/cpython/python -m test.test_idle

[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: $:~/cpython/Lib$ /home/cheryl/cpython/python -m test -ugui == CPython 3.7.0a0 (heads/bpo24813:48fbe52, Jun 23 2017, 15:42:25) [GCC 5.4.0 20160609] == Linux-4.4.0-78-generic-x86_64-with-debian-stretch-sid little-endian == hash algorithm: siphash24 64bit == cwd:

[issue30687] build.bat should locate msbuild.exe rather than vcvarsall.bat

2017-06-24 Thread Steve Dower
Steve Dower added the comment: I suspect that should be filed as a bug against VS 2017 - I'll do that when I get to work on Monday. Our workaround should be to check for that targets file and keep searching if it's not found. Your best workaround is to start the build from the VS 2015

[issue29097] datetime.fromtimestamp(t) when 0 <= t <= 86399 fails on Python 3.6

2017-06-24 Thread Ammar Askar
Changes by Ammar Askar : -- pull_requests: +2434 ___ Python tracker ___ ___

[issue29097] datetime.fromtimestamp(t) when 0 <= t <= 86399 fails on Python 3.6

2017-06-24 Thread Ammar Askar
Ammar Askar added the comment: Created a github pull request for the recommended patch along with a test: https://github.com/python/cpython/pull/2385 -- ___ Python tracker

[issue30750] Update `make patchcheck` to understand Misc/NEWS.d

2017-06-24 Thread Brett Cannon
New submission from Brett Cannon: Title says it all. -- messages: 296797 nosy: brett.cannon, pitrou priority: normal severity: normal status: open title: Update `make patchcheck` to understand Misc/NEWS.d ___ Python tracker

[issue21519] IDLE : Bug in keybinding validity check

2017-06-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: configdialog.ConfigDialog.getNewKeys() calls config_key.GetKeysDialog with a list of lists of one or more sequences (currentKeySequences). GetKeysDialog.KeysOK looks for keys.split() in currentKeySequences. Since KeysOK on only called for the no-space

[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: There are no *nix buildbots running gui tests. Please run python3 -m test.test_ttk_guionly -v and post failure part of result on core_mentorship or open a tracker issue. -- ___ Python tracker

[issue30750] Update `make patchcheck` to understand Misc/NEWS.d

2017-06-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- pull_requests: +2435 ___ Python tracker ___ ___

Re: environment variable

2017-06-24 Thread Steve D'Aprano
On Sun, 25 Jun 2017 08:39 am, Gene Heskett wrote: > On Saturday 24 June 2017 16:49:25 Smith wrote: > >> Hello to all, >> I wanted to ask you how I could delete a line of an environment >> variable (PATH) [...] > export PATH= > > but be prepared to type the full path to anything you want to

[issue30616] Cannot use functional API to create enum with zero values

2017-06-24 Thread Ethan Furman
Ethan Furman added the comment: New changeset 504b95047a8ada06ab630abce55ac2f85566ca37 by ethanfurman (Dong-hee Na) in branch '3.6': [3.6] bpo-30616: Functional API of enum allows to create empty enums. (#2304) (#2324)

[issue30596] Add close() to multiprocessing.Process

2017-06-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 13e96cc596d158b98996db3fa291086ea4afecd9 by Antoine Pitrou in branch 'master': Fix bpo-30596: Add close() method to multiprocessing.Process (#2010) https://github.com/python/cpython/commit/13e96cc596d158b98996db3fa291086ea4afecd9 --

[issue30687] build.bat should locate msbuild.exe rather than vcvarsall.bat

2017-06-24 Thread Pär Björklund
Pär Björklund added the comment: This change causes build failures when VS2017 is installed without the C++ tooling as it finds MSBuild belonging to VS2017 but it can't build using it. Microsoft recommends using this tool https://github.com/microsoft/vswhere to find and set up the paths, it

Re: os.walk the apostrophe and unicode

2017-06-24 Thread John Ladasky
On Saturday, June 24, 2017 at 12:07:05 PM UTC-7, Rod Person wrote: > Hi, > > I'm working on a program that will walk a file system and clean the id3 > tags of mp3 and flac files, everything is working great until the > follow file is found > > '06 - Todd's Song (Post-Spiderland Song in

Re: os.walk the apostrophe and unicode

2017-06-24 Thread Peter Otten
Rod Person wrote: > Hi, > > I'm working on a program that will walk a file system and clean the id3 > tags of mp3 and flac files, everything is working great until the > follow file is found > > '06 - Todd's Song (Post-Spiderland Song in Progress).flac' > > for some reason that I can't

[issue30747] _Py_atomic_* not actually atomic on Windows with MSVC

2017-06-24 Thread Pär Björklund
New submission from Pär Björklund: _Py_atomic_store and _Py_atomic_load are not implemented as atomic operations on Windows when using Visual Studio to build. This might cause hard to troubleshoot behaviour, especially in third party hosting applications.. -- components: Interpreter

[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: I should have been clearer - the full *python* test suite, not just IDLE, an with gui available -- "python -m test -ugui". I don't think the check is applied with just one file, and definitely not with 'test.test_idle' versus 'test -ugui test_idle'. The

environment variable

2017-06-24 Thread Smith
Hello to all, I wanted to ask you how I could delete a line of an environment variable (PATH) ~/Scaricati/pycharm-2017.1.4/bin$ echo $PATH | sed s/:/'\n'/g /usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin /usr/games /usr/local/games /snap/bin /path/to/my/program ---> linea da

Re: environment variable

2017-06-24 Thread Gene Heskett
On Saturday 24 June 2017 16:49:25 Smith wrote: > Hello to all, > I wanted to ask you how I could delete a line of an environment > variable (PATH) > > ~/Scaricati/pycharm-2017.1.4/bin$ echo $PATH | sed s/:/'\n'/g > /usr/local/sbin > /usr/local/bin > /usr/sbin > /usr/bin > /sbin > /bin >

os.walk the apostrophe and unicode

2017-06-24 Thread Rod Person
Hi, I'm working on a program that will walk a file system and clean the id3 tags of mp3 and flac files, everything is working great until the follow file is found '06 - Todd's Song (Post-Spiderland Song in Progress).flac' for some reason that I can't understand os.walk() returns this file name

[issue30746] Reject environment variable names containing '='

2017-06-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2431 ___ Python tracker ___ ___

Re: os.walk the apostrophe and unicode

2017-06-24 Thread Michael Torrie
On 06/24/2017 12:57 PM, Rod Person wrote: > Hi, > > I'm working on a program that will walk a file system and clean the id3 > tags of mp3 and flac files, everything is working great until the > follow file is found > > '06 - Todd's Song (Post-Spiderland Song in Progress).flac' > > for some

[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Please run the full test suite to see if it ends with a warning about test_idle altering something. I cannot because of #30715. I usually save and restore original objects when mocking, but I don't really know when this is and is not needed. --

[issue30687] build.bat should locate msbuild.exe rather than vcvarsall.bat

2017-06-24 Thread Pär Björklund
Pär Björklund added the comment: Currently I have VS2017 installed without C++ tooling for .NET development. The C++ tooling breaks other projects I'm working on. I have VS2015 Community update 3 installed with C++ tooling and the latest compatible Windows SDK. Before this patch everything

Re: os.walk the apostrophe and unicode

2017-06-24 Thread Rod Person
On Sat, 24 Jun 2017 13:28:55 -0600 Michael Torrie wrote: > On 06/24/2017 12:57 PM, Rod Person wrote: > > Hi, > > > > I'm working on a program that will walk a file system and clean the > > id3 tags of mp3 and flac files, everything is working great until > > the follow file

Re: environment variable

2017-06-24 Thread Michael F. Stemper
On 2017-06-24 15:49, Smith wrote: Hello to all, I wanted to ask you how I could delete a line of an environment variable (PATH) ~/Scaricati/pycharm-2017.1.4/bin$ echo $PATH | sed s/:/'\n'/g /usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin /usr/games /usr/local/games /snap/bin

[issue30748] Upgrade tuples in socket to named tuple like

2017-06-24 Thread Ben Lewis
New submission from Ben Lewis: Within the socket module, there are various tuples that are used for different representations of a socket address. There are also other tuples returned by other functions in the socket module. As suggested on

[issue30703] test_multiprocessing_forkserver hangs on the master branch

2017-06-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: It would be nice to know if there is additional output (for example exceptions happening in other threads or processes) when you run that command and manage to trigger a hang. -- ___ Python tracker

[issue30596] Add close() to multiprocessing.Process

2017-06-24 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue30747] _Py_atomic_* not actually atomic on Windows with MSVC

2017-06-24 Thread Pär Björklund
Changes by Pär Björklund : -- pull_requests: +2433 ___ Python tracker ___ ___

[issue30703] test_multiprocessing_forkserver hangs on the master branch

2017-06-24 Thread Matt Billenstein
Matt Billenstein added the comment: I don't see anything odd -- it runs for awhile and then times out once it's deadlocked: 0:03:18 load avg: 3.20 [224] test_multiprocessing_forkserver test_many_processes (test.test_multiprocessing_forkserver.WithProcessesTestProcess) ... ok

[issue30703] test_multiprocessing_forkserver hangs on the master branch

2017-06-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for trying :-) Hmm, that's annoying. I don't know if you'd like to give me shell access to the machine (and a CPython checkout I can play with, perhaps)? -- ___ Python tracker

[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-24 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- pull_requests: +2430 ___ Python tracker ___ ___

Re: Checking for an exception

2017-06-24 Thread Cameron Simpson
On 24Jun2017 20:31, Steve D'Aprano wrote: What's the right/best way to test whether an object is an exception ahead of time? (That is, without trying to raise from it.) I have: return (isinstance(obj, type) and issubclass(obj, BaseException) or

Re: Checking for an exception

2017-06-24 Thread Steve D'Aprano
On Sun, 25 Jun 2017 09:37 am, Cameron Simpson wrote: > On 24Jun2017 20:31, Steve D'Aprano wrote: >>What's the right/best way to test whether an object is an exception ahead of >>time? (That is, without trying to raise from it.) >> >>I have: >> >>return

[issue30746] Reject environment variable names containing '='

2017-06-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2441 ___ Python tracker ___ ___

[issue30747] _Py_atomic_* not actually atomic on Windows with MSVC

2017-06-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +mark.dickinson ___ Python tracker ___

Re: environment variable

2017-06-24 Thread Gene Heskett
On Saturday 24 June 2017 21:03:18 Steve D'Aprano wrote: > On Sun, 25 Jun 2017 08:39 am, Gene Heskett wrote: > > On Saturday 24 June 2017 16:49:25 Smith wrote: > >> Hello to all, > >> I wanted to ask you how I could delete a line of an environment > >> variable (PATH) > > [...] > > > export PATH=

[issue30748] Upgrade tuples in socket to named tuple like

2017-06-24 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +2436 ___ Python tracker ___

[issue30746] Reject environment variable names containing '='

2017-06-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 77703942c5997dff00c48f10df1b29b11645624c by Serhiy Storchaka in branch 'master': bpo-30746: Prohibited the '=' character in environment variable names (#2382) https://github.com/python/cpython/commit/77703942c5997dff00c48f10df1b29b11645624c

[issue30746] Reject environment variable names containing '='

2017-06-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2439 ___ Python tracker ___ ___

[issue27523] Silence Socket Depreciation Warnings.

2017-06-24 Thread Zachary Ware
Zachary Ware added the comment: This is being handled in bpo-23451, GH-2318. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Deprecation warnings building 3.5 Visual Studio Windows 8.1 64 bit ___ Python

[issue30751] IDLE: Display entry errors for key sequence entry in entry box

2017-06-24 Thread Terry J. Reedy
New submission from Terry J. Reedy: One of the features of query.Query boxes is that error messages are displayed in the box (in red) rather than in a separate tkinter.messagebox error box (showerror). This issue is about copying the idea and implementation to config_key.GetKeysDialog. To

[issue30746] Reject environment variable names containing '='

2017-06-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2440 ___ Python tracker ___ ___

[issue27523] Silence Socket Depreciation Warnings.

2017-06-24 Thread Decorater
Changes by Decorater : -- versions: +Python 3.7 ___ Python tracker ___ ___

Re: environment variable

2017-06-24 Thread Cameron Simpson
On 24Jun2017 21:31, Gene Heskett wrote: On Saturday 24 June 2017 21:03:18 Steve D'Aprano wrote: On Sun, 25 Jun 2017 08:39 am, Gene Heskett wrote: > On Saturday 24 June 2017 16:49:25 Smith wrote: >> Hello to all, >> I wanted to ask you how I could delete a line of an

[issue30746] Reject environment variable names containing '='

2017-06-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2438 ___ Python tracker ___ ___

[issue30062] datetime in Python 3.6+ no longer respects 'TZ' environment variable

2017-06-24 Thread Ammar Askar
Ammar Askar added the comment: Closing this since as you pointed out this behavior is already documented. As an aside, seeing as you guys already have pytz as a dependency. Instead of fixing this with tzset you can also just explicitly do datetime.datetime.fromtimestamp(time,

Re: Checking for an exception

2017-06-24 Thread Steve D'Aprano
On Sun, 25 Jun 2017 10:49 am, Ben Finney wrote: > Steve D'Aprano writes: > >> What's the right/best way to test whether an object is an exception >> ahead of time? (That is, without trying to raise from it.) > > This being Python, it is Easier to Ask for Forgiveness

[issue30576] http.server should support HTTP compression (gzip)

2017-06-24 Thread Martin Panter
Martin Panter added the comment: For existing “.gz” files, I wasn’t suggesting to compress them a second time, just for the server report that they are already compressed, like how it reports the Content-Type value based on the file name. Including Content-Encoding would help browsers display

[issue30623] python-nightly import numpy fails since recently

2017-06-24 Thread Thomas Caswell
Thomas Caswell added the comment: https://github.com/python/cpython/pull/1236 has been merged, I believe this issue can be closed. -- nosy: +tcaswell ___ Python tracker

Re: Checking for an exception

2017-06-24 Thread Ben Finney
Steve D'Aprano writes: > […] the result of passing a non-exception to raise is to raise an > exception, so I cannot trivially distinguish between "caller passes an > exception" and "caller passes a non-exception" (result is still an > exception). Yes, hence my

[issue27523] Silence Socket Depreciation Warnings.

2017-06-24 Thread Decorater
Decorater added the comment: Reopened as I found where to actually silence it. -- status: closed -> open ___ Python tracker ___

[issue27523] Silence Socket Depreciation Warnings.

2017-06-24 Thread Decorater
Changes by Decorater : -- pull_requests: +2437 ___ Python tracker ___ ___

Checking for an exception

2017-06-24 Thread Steve D'Aprano
What's the right/best way to test whether an object is an exception ahead of time? (That is, without trying to raise from it.) I have: return (isinstance(obj, type) and issubclass(obj, BaseException) or isinstance(obj, BaseException)) Any better ideas? -- Steve “Cheer up,” they

[issue30745] Warnings in Modules/_winapi.c

2017-06-24 Thread Segev Finer
Segev Finer added the comment: I tried the PR locally and I didn't get the warnings. :) -- ___ Python tracker ___

Re: Checking for an exception

2017-06-24 Thread mbyrnepr2
On Saturday, June 24, 2017 at 11:31:11 AM UTC+1, Steve D'Aprano wrote: > What's the right/best way to test whether an object is an exception ahead of > time? (That is, without trying to raise from it.) > > I have: > > return (isinstance(obj, type) and issubclass(obj, BaseException) > or

how to write add frequency in particular file by reading a csv file and then making a new file of multiple csv file by adding frequency

2017-06-24 Thread Mark Byrne
A problem (possibly the problem) is the lines which use the get function: count = frequency.get(word,0) Since the dictionary is empty at the start of the loop, the get function is passing a value of 0 to count and count1. The subsequent updates to the dictionary are applying a value of zero As a

[issue30730] Injecting environment variable in subprocess on Windows

2017-06-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2427 ___ Python tracker ___ ___

[issue30745] Warnings in Modules/_winapi.c

2017-06-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2426 ___ Python tracker ___ ___

[issue30745] Warnings in Modules/_winapi.c

2017-06-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.5, Python 3.6 ___ Python tracker

[issue30726] [Windows] Warnings in elementtree due to new expat

2017-06-24 Thread Segev Finer
Changes by Segev Finer : -- pull_requests: +2422 ___ Python tracker ___ ___

[issue30726] [Windows] Warnings in elementtree due to new expat

2017-06-24 Thread Segev Finer
Segev Finer added the comment: It seems that the issue repeats in pyexpat.vcxproj. I submitted a PR for that one as well. -- ___ Python tracker ___

[issue30730] Injecting environment variable in subprocess on Windows

2017-06-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2424 ___ Python tracker ___ ___

  1   2   >