[issue24902] http.server: on startup, show host/port as URL

2016-04-29 Thread Berker Peksag

Berker Peksag added the comment:

I replaced %-string with str.format(). Thanks!

Note: Please sign the PSF contributor agreement at 
https://www.python.org/psf/contrib/contrib-form/

--
nosy: +berker.peksag
resolution:  -> fixed
stage:  -> resolved
status: open -> closed
versions: +Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24902] http.server: on startup, show host/port as URL

2016-04-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3be61137280a by Berker Peksag in branch 'default':
Issue #24902: Print server URL on http.server startup
https://hg.python.org/cpython/rev/3be61137280a

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24902] http.server: on startup, show host/port as URL

2015-08-25 Thread Martin Panter

Changes by Martin Panter vadmium...@gmail.com:


--
nosy: +martin.panter

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24902
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24902] http.server: on startup, show host/port as URL

2015-08-20 Thread Raymond Hettinger

Raymond Hettinger added the comment:

FWIW, I like Felix's original suggestion.

--
nosy: +rhettinger

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24902
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24902] http.server: on startup, show host/port as URL

2015-08-20 Thread R. David Murray

R. David Murray added the comment:

This is a nice idea, but I think it would be better to add it to the message 
rather than change the message (and we'd still break some people's programs, 
I'm sure):

  Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000) ...

--
nosy: +r.david.murray

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24902
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24902] http.server: on startup, show host/port as URL

2015-08-20 Thread Felix Kaiser

New submission from Felix Kaiser:

http.server: on startup, show host/port as URL

Old:

% python3 -m http.server
Serving HTTP on 0.0.0.0 port 8000 ...

New:

% ./python -m http.server  
Serving http://0.0.0.0:8000/ ...

This is useful because (modern) terminals will auto-detect URLs and make them 
clickable, so printing an URL makes it easier to navigate the browser there.

--
components: Library (Lib)
files: http_server__on_startup_show_host_and_port_as_url.patch
keywords: patch
messages: 248882
nosy: fxkr
priority: normal
severity: normal
status: open
title: http.server: on startup, show host/port as URL
type: enhancement
Added file: 
http://bugs.python.org/file40214/http_server__on_startup_show_host_and_port_as_url.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24902
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24902] http.server: on startup, show host/port as URL

2015-08-20 Thread Felix Kaiser

Felix Kaiser added the comment:

I'm not sure - that'd be redundant, and I find it harder to read. It also 
breaks for badly configured terminals where (/) are part of the 
select-by-word character set (but thats a very minor issue -- users with 
parentheses in the set will probably be used to broken links). Here's a new 
patch though. Your choice :-)

As for breaking programs: that message is clearly intended for human 
consumption. My opinion is that if someone parses that, they deserve the 
opportunity to fix their code. However, out of curiosity, I did search for code 
containing Serving HTTP on before opening the issue and couldn't find 
anything that's parsing that message.

--
Added file: 
http://bugs.python.org/file40215/http_server__on_startup_show_host_and_port_as_url.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24902
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24902] http.server: on startup, show host/port as URL

2015-08-20 Thread R. David Murray

R. David Murray added the comment:

I do it in a number of test suites (you pass in localhost and port 0, then 
parse the output to find out what port got used).  I'm sure other people do it 
as well.  The parens could be dropped.  I don't think it is really redundant, 
as the two ways of presenting the info hit different parts of my brain: one is 
the part that looks at things from a networking perspective (ports and IPs) and 
the other that looks at it from a web perspective (urls).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24902
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com