Re: error in os.chdir

2018-06-30 Thread Steven D'Aprano
On Sun, 01 Jul 2018 02:22:41 +, eryk sun wrote: > I use the native API a lot, so for me registry and file paths are just > paths. It's only the Windows API that separates the two and only the > Windows API that allows forward slash as a path separator in file paths. Not being a Windows user,

[issue33986] asyncio: Typo in documentation: BaseSubprocessTransport -> SubprocessTransport

2018-06-30 Thread Bumsik Kim
Bumsik Kim added the comment: As a note, BaseSubprocessTransport is used for implementation of SubprocessTransport. BaseSubprocessTransport is not exposed outside of the module. -- ___ Python tracker

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-30 Thread T Berger
On Saturday, June 30, 2018 at 6:39:36 PM UTC-4, MRAB wrote: > On 2018-06-30 23:01, T Berger wrote: > > On Friday, June 29, 2018 at 7:00:15 PM UTC-4, Cameron Simpson wrote: > > > >> The key point here from Jim is "simultaneously". Are you properly shutting > >> down > >> the Flask instance in

[issue34009] Document Travis CI / Ubuntu 14.04 OpenSSL compatibility issues

2018-06-30 Thread Nick Coghlan
Nick Coghlan added the comment: I've updated the PR to match my current understanding of the situation with Debian 8 and Ubuntu 14.04. -- stage: needs patch -> commit review ___ Python tracker

Re: error in os.chdir

2018-06-30 Thread eryk sun
On Sun, Jul 1, 2018 at 1:44 AM, Steven D'Aprano wrote: > On Sat, 30 Jun 2018 23:36:40 +, eryk sun wrote: > >> Only use forward slashes for legacy DOS paths passed to Windows API >> functions. Do not use forward slashes for paths in command line >> arguments, \\?\ prefixed paths, or registry

Re: error in os.chdir

2018-06-30 Thread Chris Angelico
On Sun, Jul 1, 2018 at 12:43 PM, eryk sun wrote: > On Sun, Jul 1, 2018 at 2:28 AM, Chris Angelico wrote: >> On Sun, Jul 1, 2018 at 12:22 PM, eryk sun wrote: So what if, internally, that's done by converting them to backslashes? No Python program needs to care. In fact, there are other

Re: error in os.chdir

2018-06-30 Thread eryk sun
On Sun, Jul 1, 2018 at 2:28 AM, Chris Angelico wrote: > On Sun, Jul 1, 2018 at 12:22 PM, eryk sun wrote: >>> So what if, internally, that's done by converting them to backslashes? >>> No Python program needs to care. In fact, there are other conversions, >>> too - the underlying file system is

Re: $s and %d in python

2018-06-30 Thread Gregory Ewing
Cameron Simpson wrote: The variable my_height is an int, and for an int both these things are the same. But note that 'd' and 's' can give different results when other formatting options are present, e.g. >>> "%05d" % 42 '00042' >>> "%05s" % 42 ' 42' -- Greg --

Re: error in os.chdir

2018-06-30 Thread Chris Angelico
On Sun, Jul 1, 2018 at 12:22 PM, eryk sun wrote: >> So what if, internally, that's done by converting them to backslashes? >> No Python program needs to care. In fact, there are other conversions, >> too - the underlying file system is most likely using UTF-16 paths, >> but your Python program

Re: error in os.chdir

2018-06-30 Thread eryk sun
On Sun, Jul 1, 2018 at 1:58 AM, Chris Angelico wrote: > On Sun, Jul 1, 2018 at 10:20 AM, eryk sun wrote: >> On Sat, Jun 30, 2018 at 11:42 PM, Chris Angelico wrote: >>> "Legacy" implies that it's the old standard that is now deprecated, >> >> I did not mean to imply that DOS paths are

Re: Logger option

2018-06-30 Thread Chris Angelico
On Sun, Jul 1, 2018 at 12:03 PM, Steven D'Aprano wrote: > On Sat, 30 Jun 2018 10:02:13 -0700, Sharan Basappa wrote: > >> Can anyone tell me if there are some good logger modules in Python. I >> have tried both logging and trace in Canopy and both are not working. > > When you are talking about a

Re: Logger option

2018-06-30 Thread Steven D'Aprano
On Sat, 30 Jun 2018 10:02:13 -0700, Sharan Basappa wrote: > Can anyone tell me if there are some good logger modules in Python. I > have tried both logging and trace in Canopy and both are not working. When you are talking about a standard module used by hundreds of thousands or millions of

Re: list initialize with ?

2018-06-30 Thread Steven D'Aprano
On Sat, 30 Jun 2018 05:49:03 -0700, Sharan Basappa wrote: > On Saturday, 30 June 2018 17:48:05 UTC+5:30, Steven D'Aprano wrote: >> On Sat, 30 Jun 2018 04:50:10 -0700, Sharan Basappa wrote: >> >> > Can anyone explain to me what the ? does here: >> > >> > ignore_words = ['?'] >> >> Its a

Re: error in os.chdir

2018-06-30 Thread Chris Angelico
On Sun, Jul 1, 2018 at 10:20 AM, eryk sun wrote: > On Sat, Jun 30, 2018 at 11:42 PM, Chris Angelico wrote: >> "Legacy" implies that it's the old standard that is now deprecated, > > I did not mean to imply that DOS paths are deprecated. That's not what > legacy means to me. Unless you are

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-30 Thread Steven D'Aprano
On Sat, 30 Jun 2018 23:49:41 +0200, Peter J. Holzer wrote: > The old adage that "security is binary" is utter balderdash. I think that "old adage" is one of those ones that only people denying it actually use. I've never seen anyone say "security is binary" except to disagree with it, "don't

Re: list initialize with ?

2018-06-30 Thread Steven D'Aprano
On Sat, 30 Jun 2018 05:49:03 -0700, Sharan Basappa wrote: > On Saturday, 30 June 2018 17:48:05 UTC+5:30, Steven D'Aprano wrote: >> On Sat, 30 Jun 2018 04:50:10 -0700, Sharan Basappa wrote: >> >> > Can anyone explain to me what the ? does here: >> > >> > ignore_words = ['?'] >> >> Its a

Re: error in os.chdir

2018-06-30 Thread Steven D'Aprano
On Sat, 30 Jun 2018 23:36:40 +, eryk sun wrote: > Only use forward slashes for legacy DOS paths passed to Windows API > functions. Do not use forward slashes for paths in command line > arguments, \\?\ prefixed paths, or registry paths. I don't see why this is relevant, or at least not the

[issue34015] doc Add link to Descriptor HowTo Guide in Data Model

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

[issue34015] doc Add link to Descriptor HowTo Guide in Data Model

2018-06-30 Thread Andrés Delfino
New submission from Andrés Delfino : IMHO, it would be useful to make the Descriptor HowTo Guide more discoverable. As far as I can see, we are not linking to it from anywhere except the HOWTO index. Section 3.3.2.2., "Implementing Descriptors", in "Data Model" seems to be the most

Re: error in os.chdir

2018-06-30 Thread eryk sun
On Sat, Jun 30, 2018 at 11:42 PM, Chris Angelico wrote: > On Sun, Jul 1, 2018 at 9:36 AM, eryk sun wrote: >> On Sat, Jun 30, 2018 at 11:21 AM, Chris Angelico wrote: >>> On Sat, Jun 30, 2018 at 9:05 PM, Sharan Basappa >>> wrote: 0 down vote favorite I need to

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-30 Thread Grant Edwards
On 2018-06-30, Gregory Ewing wrote: > Dan Stromberg wrote: >> On Thu, Jun 28, 2018 at 10:30 PM, Marko Rauhamaa wrote: >> >>>Well, the same security issue can be demonstrated without SO_REUSEADDR: >>> >>>The security issue can be real but is not directly related with >>>SO_REUSEADDR. >> >> Yes,

[issue34014] loop.run_in_executor should propagate current contextvars

2018-06-30 Thread Viktor Kovtun
Viktor Kovtun added the comment: `ProcessPoolExecutor as executor is not so popular in real world` - as executor for asyncio -- ___ Python tracker ___

[issue34014] loop.run_in_executor should propagate current contextvars

2018-06-30 Thread Viktor Kovtun
Viktor Kovtun added the comment: What about to check instance of executor and depending on that propagate contextvars or not? As well to raise RuntimeError for ProcessPoolExecutor with provided context? I assume, that ProcessPoolExecutor as executor is not so popular in real world, but I

[issue34014] loop.run_in_executor should propagate current contextvars

2018-06-30 Thread Yury Selivanov
Yury Selivanov added the comment: As a workaround you can subclass the ThreadPoolExecutor and set it as a default executor. -- ___ Python tracker ___

[issue34014] loop.run_in_executor should propagate current contextvars

2018-06-30 Thread Yury Selivanov
Yury Selivanov added the comment: I considered enabling that, but in the end decided not to. The reason is that it's possible to use a ProcessPoolExecutor with run_in_execuror(), and context cars currently don't support pickling (and probably never will). We can't have a single api that

Re: error in os.chdir

2018-06-30 Thread Terry Reedy
On 6/30/2018 7:36 PM, eryk sun wrote: On Sat, Jun 30, 2018 at 11:21 AM, Chris Angelico wrote: On Sat, Jun 30, 2018 at 9:05 PM, Sharan Basappa wrote: 0 down vote favorite I need to change directory to my local working directory in windows and then open a file for processing. Its just a 3

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-30 Thread Gregory Ewing
Dan Stromberg wrote: On Thu, Jun 28, 2018 at 10:30 PM, Marko Rauhamaa wrote: Well, the same security issue can be demonstrated without SO_REUSEADDR: The security issue can be real but is not directly related with SO_REUSEADDR. Yes, it can. It just takes longer. I don't see how the

Re: $s and %d in python

2018-06-30 Thread Terry Reedy
On 6/30/2018 7:04 PM, Cameron Simpson wrote: On 30Jun2018 05:01, Sharan Basappa wrote: Is there any difference in %d and %s below. I get the same result: my_name = 'Zed A. Shaw' my_age = 35 # not a lie my_height = 74 # inches print "Let's talk about %s." % my_name print "He's %d inches

Re: error in os.chdir

2018-06-30 Thread Chris Angelico
On Sun, Jul 1, 2018 at 9:36 AM, eryk sun wrote: > On Sat, Jun 30, 2018 at 11:21 AM, Chris Angelico wrote: >> On Sat, Jun 30, 2018 at 9:05 PM, Sharan Basappa >> wrote: >>> >>> 0 >>> down vote >>> favorite >>> >>> I need to change directory to my local working directory in windows and >>> then

Re: error in os.chdir

2018-06-30 Thread eryk sun
On Sat, Jun 30, 2018 at 11:21 AM, Chris Angelico wrote: > On Sat, Jun 30, 2018 at 9:05 PM, Sharan Basappa > wrote: >> >> 0 >> down vote >> favorite >> >> I need to change directory to my local working directory in windows and then >> open a file for processing. >> Its just a 3 lines code, as

[issue32942] test_script_helper fails on Windows when run from the source code directory

2018-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Lorenz, welcome! Please sign CLA so we can review and merge this. -- ___ Python tracker ___ ___

[issue34014] loop.run_in_executor should propagate current contextvars

2018-06-30 Thread Viktor Kovtun
Change by Viktor Kovtun : -- keywords: +patch pull_requests: +7645 stage: -> patch review ___ Python tracker ___ ___

[issue32942] test_script_helper fails on Windows when run from the source code directory

2018-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: f:\dev\3x>python -m test test_script_helper ... test_script_helper failed f:\dev\3x> git pr 8034 ... Switched to branch 'pr_8034' f:\dev\3x>python -m test test_script_helper ... == Tests result: SUCCESS == -- ___

[issue34014] loop.run_in_executor should propagate current contextvars

2018-06-30 Thread Viktor Kovtun
New submission from Viktor Kovtun : PEP 567 supports copying context into another threads, but for asyncio users each call `run_in_executor` requires explicit context propagation For end users expected behavior that context is copied automatically -- components: asyncio messages:

Re: $s and %d in python

2018-06-30 Thread Cameron Simpson
On 30Jun2018 05:01, Sharan Basappa wrote: Is there any difference in %d and %s below. I get the same result: my_name = 'Zed A. Shaw' my_age = 35 # not a lie my_height = 74 # inches print "Let's talk about %s." % my_name print "He's %d inches tall." % my_height print "He's %s inches tall." %

[issue34006] Windows HTML Help (chm) has fixed line length

2018-06-30 Thread Ned Deily
Ned Deily added the comment: nosying Julien -- nosy: +mdk, ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-30 Thread MRAB
On 2018-06-30 23:01, T Berger wrote: On Friday, June 29, 2018 at 7:00:15 PM UTC-4, Cameron Simpson wrote: The key point here from Jim is "simultaneously". Are you properly shutting down the Flask instance in IDLE before running from Terminal, and vice versa? Cameron, I try every option to

$s and %d in python

2018-06-30 Thread Sharan Basappa
Is there any difference in %d and %s below. I get the same result: my_name = 'Zed A. Shaw' my_age = 35 # not a lie my_height = 74 # inches print "Let's talk about %s." % my_name print "He's %d inches tall." % my_height print "He's %s inches tall." % my_height Let's talk about Zed A. Shaw. He's

[issue28657] cmd.Cmd.get_help() implementation can't see do_*() methods added dynamically by setattr()

2018-06-30 Thread Błażej Michalik
Błażej Michalik added the comment: It was nearly 2 years ago when we needed it, and we avoided the issue by overriding get_names(). I'll have to find the code in which this was used to answer your question. I guess we could've modified the class definition, however weirdly would that look.

Re: using trace module in enthought

2018-06-30 Thread Terry Reedy
On 6/30/2018 12:46 PM, Sharan Basappa wrote: I am using enthought for python. Trace module seems to be very useful for my work but somehow I am unable to make it work. When I use the following option, I get the following error: %run What is 'run' and what does it do? Does not exist on

Re: is my interpreation correct

2018-06-30 Thread Terry Reedy
On 6/30/2018 8:57 AM, Sharan Basappa wrote: A code I am using as reference has the following line: from nltk.stem.lancaster import LancasterStemmer The CapitalName indicates a class. I am inferring the following based on above: 1) nltk is a package 2) nltk itself may have module because I

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-30 Thread T Berger
On Friday, June 29, 2018 at 7:00:15 PM UTC-4, Cameron Simpson wrote: > The key point here from Jim is "simultaneously". Are you properly shutting > down > the Flask instance in IDLE before running from Terminal, and vice versa? Cameron, I try every option to quit either program, but they don't

Re: naming methods in python (std lib)

2018-06-30 Thread Terry Reedy
On 6/30/2018 7:27 AM, Abdur-Rahmaan Janhangeer wrote: normally, naming methods in python is given by method_name but i see some cases where this is not followed in the std lib ex : dict.fromkeys should it not have been from_keys? No. _ is an option, not a requirement and usually not

[issue32942] test_script_helper fails on Windows when run from the source code directory

2018-06-30 Thread Lorenz Mende
Lorenz Mende added the comment: I confirm the issue too. I am running the tests on a win 10 Ver 1709, clean build. Most likely the issue is caused by the changes from commit fa9a502a387a26ba116840d35ae4a30f672e78ad at test.support.script_helper The function in test was altered to support a

[issue32942] test_script_helper fails on Windows when run from the source code directory

2018-06-30 Thread Lorenz Mende
Change by Lorenz Mende : -- keywords: +patch pull_requests: +7643 stage: -> patch review ___ Python tracker ___ ___

[issue34006] Windows HTML Help (chm) has fixed line length

2018-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: The change is also in 3.6.6, released the same day as 3.7.0. It was done intentionally, without, as far as I know, consulting Python doc users. Users were previously free to select the max line width they wanted. On

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-30 Thread Peter J. Holzer
On 2018-06-30 14:01:56 -0700, Dan Stromberg wrote: > On Sat, Jun 30, 2018 at 11:19 AM, Peter J. Holzer wrote: > > On 2018-06-28 18:04:16 -0700, Dan Stromberg wrote: > > > If someone else comes along soon after and starts a different echo server

[issue15112] argparse: nargs='*' positional argument doesn't accept any items if preceded by an option and another positional

2018-06-30 Thread paul j3
paul j3 added the comment: `parse_intermixed_args` was added in v 3.7. https://docs.python.org/3/library/argparse.html#intermixed-parsing https://stackoverflow.com/questions/50916124/allow-positional-command-line-arguments-with-nargs-to-be-seperated-by-a-flag --

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-30 Thread Dan Stromberg
On Sat, Jun 30, 2018 at 11:19 AM, Peter J. Holzer wrote: > On 2018-06-28 18:04:16 -0700, Dan Stromberg wrote: > > On Thu, Jun 28, 2018 at 1:27 PM, Marko Rauhamaa > wrote: > > Start an echo server process P that listens on tcp/. > > > > Initiate a connection from a client machine to process

[issue34006] Windows HTML Help (chm) has fixed line length

2018-06-30 Thread Steve Dower
Steve Dower added the comment: > I want to deprecate chm because it uses legacy HTML ... Agreed, but not without a replacement. -- ___ Python tracker ___

[issue19764] subprocess: use PROC_THREAD_ATTRIBUTE_HANDLE_LIST with STARTUPINFOEX on Windows Vista

2018-06-30 Thread Eryk Sun
Eryk Sun added the comment: Sebastian, the problem in this case is that startupinfo.lpAttributeList['handle_list'] contains the duplicated standard-handle values from the previous call, which were closed and are no longer valid. subprocess.Popen has always modified STARTUPINFO in place,

[issue31938] Convert selectmodule.c to Argument Clinic

2018-06-30 Thread Tal Einat
Change by Tal Einat : -- versions: +Python 3.8 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31938] Convert selectmodule.c to Argument Clinic

2018-06-30 Thread Tal Einat
Change by Tal Einat : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue31938] Convert selectmodule.c to Argument Clinic

2018-06-30 Thread Tal Einat
Change by Tal Einat : -- pull_requests: -7636 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31938] Convert selectmodule.c to Argument Clinic

2018-06-30 Thread Tal Einat
Change by Tal Einat : -- Removed message: https://bugs.python.org/msg320777 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue31938] Convert selectmodule.c to Argument Clinic

2018-06-30 Thread Tal Einat
Change by Tal Einat : -- pull_requests: -7637 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31938] Convert selectmodule.c to Argument Clinic

2018-06-30 Thread Tal Einat
Change by Tal Einat : -- Removed message: https://bugs.python.org/msg320779 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue31938] Convert selectmodule.c to Argument Clinic

2018-06-30 Thread Tal Einat
Tal Einat added the comment: New changeset 6dc57e2a20c5beb99e8bf5eb04cc836d53fa9aee by Tal Einat in branch 'master': bpo-31938: Convert selectmodule.c to Argument Clinic (GH-4265) https://github.com/python/cpython/commit/6dc57e2a20c5beb99e8bf5eb04cc836d53fa9aee --

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-30 Thread Jim Lee
On 06/28/18 18:04, Dan Stromberg wrote: [snip] Start an echo server process P that listens on tcp/. Initiate a connection from a client machine to process P at tcp/. It works as expected. Kill P. Initiate a connection from a client machine to process P at tcp/. It gives a

[issue27477] IDLE: Switch search dialogs to ttk widgets, and other refinement

2018-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: By adding 'and other refinements' to the title and discussing them here, I made this an index issue, with dependencies, for search. I am leaving this open as that. #33987 is about adding a ttk frame inside the top window. This is point 2 above. #33987

[issue25862] TextIOWrapper assertion failure after read() and SEEK_CUR

2018-06-30 Thread miss-islington
miss-islington added the comment: New changeset e5153d0d404d58e83d802199bea1a8dd0ea5178e by Miss Islington (bot) in branch '3.6': bpo-25862: Fix several bugs in the _io module. (GH-8026) https://github.com/python/cpython/commit/e5153d0d404d58e83d802199bea1a8dd0ea5178e --

[issue25862] TextIOWrapper assertion failure after read() and SEEK_CUR

2018-06-30 Thread miss-islington
miss-islington added the comment: New changeset dedb28efd84314d899f795e821a3fc27d2f928e7 by Miss Islington (bot) in branch '3.7': bpo-25862: Fix several bugs in the _io module. (GH-8026) https://github.com/python/cpython/commit/dedb28efd84314d899f795e821a3fc27d2f928e7 --

[issue25862] TextIOWrapper assertion failure after read() and SEEK_CUR

2018-06-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +7642 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30660] Lossless Optimization of PNG files

2018-06-30 Thread INADA Naoki
Change by INADA Naoki : -- keywords: +patch pull_requests: +7641 stage: -> patch review ___ Python tracker ___ ___

[issue30660] Lossless Optimization of PNG files

2018-06-30 Thread INADA Naoki
INADA Naoki added the comment: 03:19 $ find . -name '*.png' | xargs optipng -o7 03:20 $ ll **/*.png -rw-r--r-- 1 inada-n staff 2888 7 1 03:20 faq/python-video-icon.png -rw-r--r-- 1 inada-n staff 22058 7 1 03:20 howto/logging_flow.png -rw-r--r-- 1 inada-n staff 11146 7 1 03:20

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-30 Thread Peter J. Holzer
On 2018-06-28 18:04:16 -0700, Dan Stromberg wrote: > On Thu, Jun 28, 2018 at 1:27 PM, Marko Rauhamaa wrote: > > Dan Stromberg : > > > On Wed, Jun 27, 2018 at 10:31 PM, Marko Rauhamaa > > > wrote: > > >> Dan Stromberg : > > >> >> > The problem can be solved by turning on the SO_REUSEADDR flag of

[issue33987] IDLE: add ttk.Frame inside searchbaseToplevel

2018-06-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: The image could have been attached to #27477, but a new issue for a new PR is needed anyway. I will make this a dependency of that issue. I did not at first see the difference in the screen-capture images on my monitor in Firefox with the room lighting and

[issue34006] Windows HTML Help (chm) has fixed line length

2018-06-30 Thread INADA Naoki
INADA Naoki added the comment: Hmm, I want to deprecate chm because it uses legacy HTML (doesn't support UTF-8!), hard to build, hard to confirm issues -- ___ Python tracker

[issue25862] TextIOWrapper assertion failure after read() and SEEK_CUR

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

[issue25862] TextIOWrapper assertion failure after read() and SEEK_CUR

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

[issue25862] TextIOWrapper assertion failure after read() and SEEK_CUR

2018-06-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset fdb5a50ef34f7951c3b01eb77b1359725a9ad670 by Serhiy Storchaka in branch 'master': bpo-25862: Fix several bugs in the _io module. (GH-8026) https://github.com/python/cpython/commit/fdb5a50ef34f7951c3b01eb77b1359725a9ad670 --

Re: error in os.chdir

2018-06-30 Thread Jim Lee
On 06/30/18 07:34, Sharan Basappa wrote: sorry. I mean why my code worked in one case but did not in the other one. This worked - os.chdir('D:\Projects\Initiatives\machine learning\programs') This did not work - os.chdir('D:\Projects\Initiatives\machine learning\programs\assertion') only

[issue34013] Inconsistent SyntaxError for print

2018-06-30 Thread Dong-hee Na
Change by Dong-hee Na : -- components: +Interpreter Core type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing

[issue34013] Inconsistent SyntaxError for print

2018-06-30 Thread Dong-hee Na
New submission from Dong-hee Na : Python 3.8.0a0 (heads/master-dirty:0cdf5f4289, Jul 1 2018, 02:30:31) [Clang 9.1.0 (clang-902.0.39.1)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> print "hi" File "", line 1 print "hi" ^ SyntaxError:

[issue30660] Lossless Optimization of PNG files

2018-06-30 Thread INADA Naoki
INADA Naoki added the comment: It seems PR author removed his repository and the PR can't be merge via conflict. In master branch: 02:18 $ ll **/*.png -rw-r--r-- 1 inada-n staff 3732 7 1 02:13 faq/python-video-icon.png -rwxr-xr-x 1 inada-n staff 49648 7 1 02:09

[issue17894] Edits to descriptor howto

2018-06-30 Thread Julian Berman
Julian Berman added the comment: This seems very very slightly overly conversational (specifically the "That's all there is to it" sentence), but overall like a pretty decent improvement here. Personally I'd axe that sentence but then seems like this should be merged as-is and any further

[issue34006] Windows HTML Help (chm) has fixed line length

2018-06-30 Thread gladman
gladman added the comment: You are exactly right Steve - that is very close to what I am seeing and it is often quite hard to read. For example, where function prototypes are displayed on two lines, it takes me a lot longer to parse and understand them when compared with a situation where

Re: I lost nearly all my modules installing 3.7

2018-06-30 Thread Elliott Roper
On 30 Jun 2018, dieter wrote (in article): > Elliott Roper writes: > > ... > > install scipy wrote an error message longer than War and Peace that finished > > with:- > > > > error: library dfftpack has Fortran sources

Re: Logger option

2018-06-30 Thread Karsten Hilbert
On Sat, Jun 30, 2018 at 10:02:13AM -0700, Sharan Basappa wrote: > I have tried both logging and trace in Canopy and both are not working. You will have to be more specific. Karsten -- GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B --

Logger option

2018-06-30 Thread Sharan Basappa
Can anyone tell me if there are some good logger modules in Python. I have tried both logging and trace in Canopy and both are not working. Any help is appreciated. -- https://mail.python.org/mailman/listinfo/python-list

[issue34006] Windows HTML Help (chm) has fixed line length

2018-06-30 Thread Steve Dower
Steve Dower added the comment: It's pretty annoying when HTML Help doesn't properly handle your screen scaling settings (guessing my new screenshot looks like gladman's). I'd love to have a new HTML Help program for our docs that could handle this better, but there's nothing in the same

[issue34006] Windows HTML Help (chm) has fixed line length

2018-06-30 Thread Steve Dower
Steve Dower added the comment: Let's try adding that screenshot again... -- Added file: https://bugs.python.org/file47662/NarrowCHM.png ___ Python tracker ___

using trace module in enthought

2018-06-30 Thread Sharan Basappa
I am using enthought for python. Trace module seems to be very useful for my work but somehow I am unable to make it work. When I use the following option, I get the following error: %run -m trace --trace "D:/Projects/Initiatives/machine learning/programs/debug_1.py" UsageError: option --trace

[issue28657] cmd.Cmd.get_help() implementation can't see do_*() methods added dynamically by setattr()

2018-06-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: Błażej, why is there a need to attach a function to the cli instance rather than the MyCmd class (which would be the norm for Python)? from cmd import Cmd class MyCmd(Cmd): def do_documented_at_definition(self, arg): """ This

[issue33991] lib2to3 should parse f-strings

2018-06-30 Thread skreft
skreft added the comment: Note also, that lib2to3 will parse invalid f-strings like f"hello {", whereas ast.parse will raise a SyntaxError exception. See below for reproduction cases: In [2]: lib2to3.tests.support.parse_string('f"hello {"') Out[2]: Node(file_input, [Node(simple_stmt,

[issue34006] Windows HTML Help (chm) has fixed line length

2018-06-30 Thread INADA Naoki
INADA Naoki added the comment: I think this is not only chm, but same to all HTML based (online, zipped html, maybe ePub). max-width was added for readability. https://github.com/python/python-docs-theme/issues/4 There are no absolute right answer and there are many personal preferences.

[issue33955] Implement PyOS_CheckStack on macOS using pthread_get_stack*_np

2018-06-30 Thread Dong-hee Na
Dong-hee Na added the comment: @ronaldoussoren Hi, Ronald Can I take a look this issue? -- nosy: +corona10 ___ Python tracker ___

Re: error in os.chdir

2018-06-30 Thread Karsten Hilbert
On Sat, Jun 30, 2018 at 07:34:46AM -0700, Sharan Basappa wrote: > sorry. I mean why my code worked in one case but did not in the other one. > > This worked - os.chdir('D:\Projects\Initiatives\machine learning\programs') > > This did not work - os.chdir('D:\Projects\Initiatives\machine >

[issue34006] Windows HTML Help (chm) has fixed line length

2018-06-30 Thread Joseph L. Casale
Change by Joseph L. Casale : -- nosy: +jcasale ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34012] No option to include system headers in distutils.core.Extension

2018-06-30 Thread Dan Hemberger
Change by Dan Hemberger : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28657] cmd.Cmd.get_help() implementation can't see do_*() methods added dynamically by setattr()

2018-06-30 Thread Błażej Michalik
Błażej Michalik added the comment: Yes, the proposed patch fixes all the problems that I pointed out in the last comment. -- ___ Python tracker ___

[issue34012] No option to include system headers in distutils.core.Extension

2018-06-30 Thread Dan Hemberger
New submission from Dan Hemberger : The distutils.core.Extension class has a constructor argument `include_dirs`, which includes each directory with `-I`. However, it is sometimes desirable to include additional system headers using `-isystem`. Currently, this is only possible by manually

[issue34006] Windows HTML Help (chm) has fixed line length

2018-06-30 Thread gladman
gladman added the comment: Comparing the basic.css files for the 3.6.5 chm file and the 3.6.6 chm file shows that the latter has the following body style definition that the earlier versions don't have: /* -- general body styles - */ div.body { min-width:

Re: error in os.chdir

2018-06-30 Thread Sharan Basappa
On Saturday, 30 June 2018 18:55:53 UTC+5:30, Karsten Hilbert wrote: > On Sat, Jun 30, 2018 at 05:46:59AM -0700, Sharan Basappa wrote: > > > > >> The quick fix: > > > >> > > > >> put an r in front of the directory string: r'...' > > > > > > Please don't do that. It's the wrong solution -- all

[issue19764] subprocess: use PROC_THREAD_ATTRIBUTE_HANDLE_LIST with STARTUPINFOEX on Windows Vista

2018-06-30 Thread Sebastian Bank
Sebastian Bank added the comment: AFAIU, this change broke the following usage of subprocess on Windows (re-using a subprocess.STARTUPINFO instance to hide the command window): import os, subprocess STARTUPINFO = subprocess.STARTUPINFO() STARTUPINFO.dwFlags |=

[issue34006] Windows HTML Help (chm) has fixed line length

2018-06-30 Thread Steve Dower
Steve Dower added the comment: I agree. I don't think we deliberately changed anything here. Possibly the sphinx theme has some CSS that doesn't work well in IE, so that should be the starting point for someone to look. -- ___ Python tracker

[issue33997] multiprocessing Pool hangs in terminate()

2018-06-30 Thread Steve Dower
Change by Steve Dower : -- nosy: +davin, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34006] Windows HTML Help (chm) has fixed line length

2018-06-30 Thread gladman
gladman added the comment: I too much prefer the old behaviour since the fixed width is too narrow on my high resolution display -- nosy: +gladman ___ Python tracker ___

Re: Python 3.7 Windows Help Behaviour

2018-06-30 Thread BlindAnagram
On 30/06/2018 10:43, Steven D'Aprano wrote: > On Fri, 29 Jun 2018 12:53:15 -0400, Terry Reedy wrote: > >> On 6/29/2018 6:14 AM, BlindAnagram wrote: >>> In Python 3.7.0 on Windows the help file (python370.chm) displays with >>> a fixed line length and does not adjust its line length when the user

[issue33468] Add try-finally contextlib.contextmanager example

2018-06-30 Thread Tal Einat
Tal Einat added the comment: Nick's abstract example LGTM as well. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

  1   2   >