[Python-Dev] Re: Python.org downloads page and javascript

2020-11-12 Thread Florian Bruhin
Hey Michael, On Thu, Nov 12, 2020 at 01:50:12PM +0100, Michael Felt wrote: > Not clear on where to report this - so I hope someone else sees the same and > can notify whoever needs to be notified. There's a "Submit Website Bug" in the footer of the website, taking you to the respective bugtracker

Re: [Python-Dev] Testing tkinter on Linux

2015-08-27 Thread Florian Bruhin
* R. David Murray [2015-08-27 15:00:40 -0400]: > It is possible to create a "virtual" X on an otherwise headless linux > system, but I've never tried to do it myself. If someone comes up > with a recipe we could add it to the devguide chapter on running > a buildbot. It's usually as easy as inst

Re: [Python-Dev] How do we tell if we're helping or hindering the core development process?

2015-07-22 Thread Florian Bruhin
* Nikolaus Rath [2015-07-21 20:23:15 -0700]: > On Jul 21 2015, Nick Coghlan wrote: > > All of this is why the chart that I believe should be worrying people > > is the topmost one on this page: > > http://bugs.python.org/issue?@template=stats > > > > Both the number of open issues and the number

Re: [Python-Dev] How far to go with user-friendliness

2015-07-20 Thread Florian Bruhin
* Ron Adam [2015-07-20 12:57:08 -0400]: > >It's "unsafe" because tests which: > > > >1) are using the assert_* methods of a mock, and > >2) where the programmer did a typo (assert_called() instead of > >assert_called_with() for example) > > > >do silently pass. > > And further down, you say..

Re: [Python-Dev] How far to go with user-friendliness

2015-07-20 Thread Florian Bruhin
* Ron Adam [2015-07-19 18:06:22 -0400]: > > > On 07/19/2015 02:33 PM, Florian Bruhin wrote: > >* Ron Adam [2015-07-19 11:17:10 -0400]: > >>>I had to look at the source to figure out what this thread was really all > >>>about. > > And it seems I d

Re: [Python-Dev] How far to go with user-friendliness

2015-07-19 Thread Florian Bruhin
* Ron Adam [2015-07-19 11:17:10 -0400]: > I had to look at the source to figure out what this thread was really all > about. > > Basically it looks to me the purpose of adding "assret" is to add an "alias > check" for "unsafe" methods. It doesn't actually add an "alias". It allows > a developer

Re: [Python-Dev] How far to go with user-friendliness

2015-07-14 Thread Florian Bruhin
* Steven D'Aprano [2015-07-14 23:41:56 +1000]: > On Tue, Jul 14, 2015 at 02:06:14PM +0200, Dima Tisnek wrote: > > https://bugs.python.org/issue21238 introduces detection of > > missing/misspelt mock.assert_xxx() calls on getattr level in Python > > 3.5 > > > > Michael and Kushal are of the opinio

Re: [Python-Dev] Python 3 migration status update across some key subcommunities (was Re: 2.7 is here until 2020, please don't call it a waste.)

2015-05-31 Thread Florian Bruhin
* Nick Coghlan [2015-06-01 00:15:01 +1000]: > On 31 May 2015 at 19:07, Ludovic Gasc wrote: > > About Python 3 migration, I think that one of our best control stick is > > newcomers, and by extension, Python trainers/teachers. > > If newcomers learn first Python 3, when they will start to work > >

Re: [Python-Dev] anomaly

2015-05-12 Thread Florian Bruhin
* Mark Rosenblitt-Janssen [2015-05-10 11:34:52 -0500]: > Here's something that might be wrong in Python (tried on v2.7): > > >>> class int(str): pass > > >>> int(3) > '3' What's so odd about this? "class int" is an assignment to "int", i.e. what you're doing here is basically: int = str int(3

Re: [Python-Dev] What's missing in PEP-484 (Type hints)

2015-05-02 Thread Florian Bruhin
* Dima Tisnek [2015-04-30 13:41:53 +0200]: > # lambda > Not mentioned in the PEP, omitted for convenience or is there a rationale? > f = lambda x: None if x is None else str(x ** 2) > Current syntax seems to preclude annotation of `x` due to colon. > Current syntax sort of allows lamba return type

Re: [Python-Dev] Type hints -- a mediocre programmer's reaction

2015-04-23 Thread Florian Bruhin
* Wolfgang Langner [2015-04-23 10:43:52 +0200]: > 2. Using it in the language as part of the function signature, my first > thought was oh good, then I changed my mind >to: oh it can be very ugly and unreadable, it is the wrong place. >Now I am against it, best is, if I have to specify typ

Re: [Python-Dev] Possible wrong behavior of the dict?

2015-03-17 Thread Florian Bruhin
* Zaur Shibzukhov [2015-03-17 22:29:07 +0300]: > Yes... But I expected that dict constructor will use `__getitem__` or > `items` method of MyDict instance in order to retrieve items of the MyDict > instance during construction of the dict instance... Instead it interpreted > MyDict instance as t

Re: [Python-Dev] str.lstrip bug?

2015-03-10 Thread Florian Bruhin
* lou xiao [2015-03-11 01:27:21 +0800]: > I find a bug in str.lstrip, when i call str.lstrip, i get this result. You're misunderstanding how str.strip works. It takes a set of characters and removes them all from the beginning: >>> "abababcd".lstrip('ab') >>> 'cd' Florian -- http://ww

Re: [Python-Dev] Fwd: str(IntEnum)

2015-02-20 Thread Florian Bruhin
* Demian Brecht [2015-02-20 10:24:53 -0800]: > These and other implementations return a string representation of the > instance’s value, not a string representation of the object itself. Whereas > elsewhere in the standard library: > > >>> str(ProtocolError('url', 42, 'msg', '')) > '’ > >>> str

Re: [Python-Dev] subprocess shell=True on Windows doesn't escape ^ character

2014-06-12 Thread Florian Bruhin
* Nikolaus Rath [2014-06-12 19:11:07 -0700]: > "R. David Murray" writes: > > Also notice that using a list with shell=True is using the API > > incorrectly. It wouldn't even work on Linux, so that torpedoes > > the cross-platform concern already :) > > > > This kind of confusion is why I opened

Re: [Python-Dev] subprocess shell=True on Windows doesn't escape ^ character

2014-06-11 Thread Florian Bruhin
* anatoly techtonik [2014-06-12 02:00:55 +0300]: > On Thu, Jun 12, 2014 at 1:30 AM, Chris Angelico wrote: > > > Why pass shell=True when executing a single > > command? I don't get it. > > > > I don't know about Linux, but on Windows programs are not directly > available as /usr/bin/python, so

Re: [Python-Dev] ConfigParser mangles keys with special chars

2014-05-13 Thread Florian Bruhin
* Florian Bruhin [2014-04-25 16:22:06 +0200]: > I noticed configparser does behave in a surprising way when a key > has a special meaning in ini-format. I've now submitted an issue here: http://bugs.python.org/issue21498 Florian -- () ascii ribbon campaign - sto

[Python-Dev] ConfigParser mangles keys with special chars

2014-04-25 Thread Florian Bruhin
Hi, I noticed configparser does behave in a surprising way when a key has a special meaning in ini-format. Consider this example: >>> cp = configparser.ConfigParser() >>> cp.read_dict({'DEFAULT': {';foo': 'bar'}}) >>> cp.write(sys.stdout) [DEFAULT] ;foo = bar Now when readin