Re: python package management confusion

2019-01-14 Thread Chris Angelico
On Tue, Jan 15, 2019 at 6:18 PM dieter wrote: > > dcs3spp via Python-list writes: > > I am a newbie completely confused with python package management. > > > > I have a setup.py file (listed below) and have setup pip and setup.cfg to > > install my own dependencies from a local devpi

[issue35740] openssl version 1.1.1 need to be there in cpython-source-deps for windows ARM64

2019-01-14 Thread Christian Heimes
Christian Heimes added the comment: 3.7 uses OpenSSL 1.1.0. OpenSSL 1.1.1 adds TLS 1.3 and behaves differently than 1.1.0. We cannot update 3.7 to 1.1.1 because it would break backwards compatibility. For 3.8, we can move to 1.1.1. You either have to compile your own Python and OpenSSL

[issue35740] openssl version 1.1.1 need to be there in cpython-source-deps for windows ARM64

2019-01-14 Thread ossdev
Change by ossdev : -- title: ssl version 1.1.1 need to be there in cpython-source-deps for windows ARM64 -> openssl version 1.1.1 need to be there in cpython-source-deps for windows ARM64 ___ Python tracker

[issue35740] openssl version 1.1.1 need to be there in cpython-source-deps for windows ARM64

2019-01-14 Thread ossdev
New submission from ossdev : as per in https://github.com/openssl/openssl/issues/6856 , for windows on ARM64 we need to switch to Openssl 1.1.1 -- ___ Python tracker ___

[issue35740] ssl version 1.1.1 need to be there in cpython-source-deps for windows ARM64

2019-01-14 Thread ossdev
Change by ossdev : -- assignee: christian.heimes components: SSL nosy: christian.heimes, ossdev07 priority: normal severity: normal status: open title: ssl version 1.1.1 need to be there in cpython-source-deps for windows ARM64 type: enhancement versions: Python 3.7

Re: AssertionError without traceback?

2019-01-14 Thread dieter
Israel Brewster writes: > I have a flask application deployed on CentOS 7 using Python 3.6.7 and uwsgi > 2.0.17.1, proxied behind nginx. uwsgi is configured to listed on a socket in > /tmp. The app uses gevent and the flask_uwsgi_websockets plugin as well as > various other third-party

Re: Tracemalloc overhead when profiling

2019-01-14 Thread dieter
Juris __ writes: > I was looking for a way to profile memory usage for some script which > deals with log message parsing. Looking through Python's stdlib I > stumbled upon tracemalloc module. So I tried my hand on profiling my > script. A few things I noticed that I am not 100% sure I can

Re: python package management confusion

2019-01-14 Thread dieter
dcs3spp via Python-list writes: > I am a newbie completely confused with python package management. > > I have a setup.py file (listed below) and have setup pip and setup.cfg to > install my own dependencies from a local devpi repository. > > Can setup.py reference a git repository so that I

[issue35738] Update timeit documentation to reflect default repeat of five

2019-01-14 Thread Henry Chen
Change by Henry Chen : -- title: Update timeit documentation to reflect default repeat of three -> Update timeit documentation to reflect default repeat of five ___ Python tracker

[issue35738] Update timeit documentation to reflect default repeat of three

2019-01-14 Thread Henry Chen
Change by Henry Chen : -- keywords: +patch, patch, patch pull_requests: +11196, 11197, 11198 stage: -> patch review ___ Python tracker ___

[issue35738] Update timeit documentation to reflect default repeat of three

2019-01-14 Thread Henry Chen
Change by Henry Chen : -- keywords: +patch, patch pull_requests: +11196, 11197 stage: -> patch review ___ Python tracker ___ ___

[issue35738] Update timeit documentation to reflect default repeat of three

2019-01-14 Thread Henry Chen
Change by Henry Chen : -- keywords: +patch pull_requests: +11196 stage: -> patch review ___ Python tracker ___ ___

Re: 3 random numbers

2019-01-14 Thread Cameron Simpson
On 14Jan2019 21:29, caig...@gmail.com wrote: So I was given this question to be solved in Python 3 : Pick any 3 random ascending numbers and write out a loop function that prints out all 3 numbers. This was the code and solution presented to me. Can anyone understand it and explain it to me

Re: 3 random numbers

2019-01-14 Thread Spencer Graves
On 2019-01-14 23:29, caig...@gmail.com wrote: So I was given this question to be solved in Python 3 : Pick any 3 random ascending numbers and write out a loop function that prints out all 3 numbers. This was the code and solution presented to me. Can anyone understand it and explain it to

[issue35739] Enable verbose of tests during PGO build on amd64 platforms

2019-01-14 Thread Jorge Ramos
Change by Jorge Ramos : -- keywords: +patch, patch, patch pull_requests: +11193, 11194, 11195 stage: -> patch review ___ Python tracker ___

[issue35739] Enable verbose of tests during PGO build on amd64 platforms

2019-01-14 Thread Jorge Ramos
Change by Jorge Ramos : -- keywords: +patch, patch pull_requests: +11193, 11194 stage: -> patch review ___ Python tracker ___ ___

[issue35739] Enable verbose of tests during PGO build on amd64 platforms

2019-01-14 Thread Jorge Ramos
Change by Jorge Ramos : -- keywords: +patch pull_requests: +11193 stage: -> patch review ___ Python tracker ___ ___

3 random numbers

2019-01-14 Thread caigy84
So I was given this question to be solved in Python 3 : Pick any 3 random ascending numbers and write out a loop function that prints out all 3 numbers. This was the code and solution presented to me. Can anyone understand it and explain it to me please ? I have looked at it but cannot see how

[issue35739] Enable verbose of tests during PGO build on amd64 platforms

2019-01-14 Thread Jorge Ramos
New submission from Jorge Ramos : It would be interesting to allow regrtests to output to command line during testing with PGO enabled. The default behavior is to not display output unless some fatal error occurs ("quiet" mode). Making this issue to create a pull request. --

Re: sampling from frequency distribution / histogram without replacement

2019-01-14 Thread Spencer Graves
On 2019-01-14 18:40, duncan smith wrote: On 14/01/2019 22:59, Gregory Ewing wrote: duncan smith wrote: Hello,   Just checking to see if anyone has attacked this problem before for cases where the population size is unfeasibly large. The fastest way I know of is to create a list of

Re: get the terminal's size

2019-01-14 Thread eryk sun
On 1/14/19, Schachner, Joseph wrote: > I just tested the fix I proposed, in Python 2.7.13 > > Code: > from win32api import GetSystemMetrics > > def main(): > print "Width =", GetSystemMetrics(0) > print "Height =", GetSystemMetrics(1) That gets the monitor size, i.e: SM_CXSCREEN (0)

[issue26410] "incompatible pointer type" while compiling Python3.5.1

2019-01-14 Thread Cheryl Sabella
Change by Cheryl Sabella : -- status: open -> closed superseder: -> Use Py_uintptr_t instead of void* for atomic pointers ___ Python tracker ___

[issue26410] "incompatible pointer type" while compiling Python3.5.1

2019-01-14 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> duplicate stage: -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing

Re: sampling from frequency distribution / histogram without replacement

2019-01-14 Thread duncan smith
On 14/01/2019 22:59, Gregory Ewing wrote: > duncan smith wrote: >> Hello, >>   Just checking to see if anyone has attacked this problem before >> for cases where the population size is unfeasibly large. > > The fastest way I know of is to create a list of cumulative > frequencies, then

RE: Email blast management?

2019-01-14 Thread Avi Gross
There is an old saying about getting what you paid for. Python can be free but applications have costs. Chris makes some valid points when saying there are existing solutions that may be worth considering. If someone wants to know about commercial products that do approximately what they need

[issue35661] Store the venv prompt in pyvenv.cfg

2019-01-14 Thread Cheryl Sabella
Cheryl Sabella added the comment: Steve, thanks for explaining that. I understand what you're saying now. It's funny but because the context prompt has the space added at the end when it's created (`context.prompt = '(%s) ' % prompt`), I added it to the test, but completely forgot about

Re: get the terminal's size

2019-01-14 Thread John Doe
On 2019-01-14, Bob van der Poel wrote: > try this: > > > http://stackoverflow.com/questions/566746/how-to-get-console-window-width-in-python > and have a look at this one too: https://stackoverflow.com/questions/1396820/apt-like-column-output-python-library/1446973#1446973 > --

Re: sampling from frequency distribution / histogram without replacement

2019-01-14 Thread Gregory Ewing
duncan smith wrote: Hello, Just checking to see if anyone has attacked this problem before for cases where the population size is unfeasibly large. The fastest way I know of is to create a list of cumulative frequencies, then generate uniformly distributed numbers and use a binary search

Re: get the terminal's size

2019-01-14 Thread Cameron Simpson
On 14Jan2019 17:16, Alex Ternaute wrote: Looking on the internet for a hint, I see that python3 has an os.get_terminal_size(). Use that then. Up to now I wanted to keep compatibility with a big bunch of code in Python2 that I do no maintain by myself. Well, I saw that get_terminal_size()

[issue35537] use os.posix_spawn in subprocess

2019-01-14 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: > Until muscl decides to provide an "#ifdef __MUSL__"-like or any way that it's > musl, I propose to not support musl: don't use os.posix_spawn() but > _posixsubprocess. FYI, I'm researching how to use vfork(), focusing on Linux, but I'll need more time

[issue33944] Deprecate and remove pth files

2019-01-14 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jan 14, 2019, at 17:30, STINNER Victor wrote: > > I don't think that you will like it, but I feel that a PEP will be needed > here to list use cases and explain what replace .pth files for each use > case. Maybe no replacement for some use cases is fine.

[issue33944] Deprecate and remove pth files

2019-01-14 Thread STINNER Victor
STINNER Victor added the comment: I don't think that you will like it, but I feel that a PEP will be needed here to list use cases and explain what replace .pth files for each use case. Maybe no replacement for some use cases is fine. The PEP doesn't have to be long. I also expect that it's

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

2019-01-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Maybe the methods could all rely on `get_names` that > return `dir(self.__class__)`, Please read the previous posts on the subject. The only reason to do this is if we want the module to explicitly support attaching methods directly to instances.

sampling from frequency distribution / histogram without replacement

2019-01-14 Thread duncan smith
Hello, Just checking to see if anyone has attacked this problem before for cases where the population size is unfeasibly large. i.e. The number of categories is manageable, but the sum of the frequencies, N, precludes simple solutions such as creating a list, shuffling it and using the first

AssertionError without traceback?

2019-01-14 Thread Israel Brewster
I have a flask application deployed on CentOS 7 using Python 3.6.7 and uwsgi 2.0.17.1, proxied behind nginx. uwsgi is configured to listed on a socket in /tmp. The app uses gevent and the flask_uwsgi_websockets plugin as well as various other third-party modules, all installed via pip in a

[issue33944] Deprecate and remove pth files

2019-01-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Is that true outside of virtual environments? Not in my experience. But I'm not sure special-casing virtual environments will make the situation easier to understand ;-) -- ___ Python tracker

[issue32496] lib2to3 fails to parse a ** of a conditional expression

2019-01-14 Thread Ori Avtalion
Ori Avtalion added the comment: This can be circumvented by adding parenthesis: dummy(**(kwargs if kwargs else dict())) -- nosy: +salty-horse ___ Python tracker ___

[issue33944] Deprecate and remove pth files

2019-01-14 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jan 14, 2019, at 07:17, Nick Coghlan wrote: > > I'll also reiterate that I am *completely* opposed to deprecating the "append > entries to sys.path" usage model, as there is absolutely nothing wrong with > that (if distros are ending up with an overly

[issue33944] Deprecate and remove pth files

2019-01-14 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jan 14, 2019, at 04:14, Antoine Pitrou wrote: > > As I said: editable installs (`pip install -e`) are an important use case of > .pth files. Is that true outside of virtual environments? I care less about .pth files inside venvs, since those are

[issue33944] Deprecate and remove pth files

2019-01-14 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jan 14, 2019, at 04:02, STINNER Victor wrote: > > I really hate .pth files because the slow down Python startup time for *all* > applications whereas .pth files are usually specific to a very few > applications using one or two specific modules. > >

ANN: Creating GUI Applications with wxPython

2019-01-14 Thread Mike Driscoll
Hi, I just thought I would let you all know that I am working on my 2nd wxPython book, "Creating GUI Applications with wxPython". This one will be about actually creating small runnable applications instead of just recipes like my Cookbook did. I hope to have 8-10 working applications included

Re: Email blast management?

2019-01-14 Thread Chris Angelico
On Tue, Jan 15, 2019 at 12:53 AM Hartmut Goebel wrote: > > Am 14.01.19 um 12:47 schrieb Chris Angelico: > > It's a whole lot more respectful than keeping your own database of > > email addresses and then having it compromised some day. > > This assumes that one would not *keep* a list of

Tracemalloc overhead when profiling

2019-01-14 Thread Juris __
Hi, I was looking for a way to profile memory usage for some script which deals with log message parsing. Looking through Python's stdlib I stumbled upon tracemalloc module. So I tried my hand on profiling my script. A few things I noticed that I am not 100% sure I can explain. Tracemalloc

[issue33944] Deprecate and remove pth files

2019-01-14 Thread Jason R. Coombs
Jason R. Coombs added the comment: I like Nick's proposal. It has I believe the features that satisfy the use-cases of which I'm currently aware... with one edge case you may not have considered - support for multiple `__sitecustomize__` locations. Consider, for example, the case where

[issue35738] Update timeit documentation to reflect default repeat of three

2019-01-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35732] Typo in library/warnings documentation

2019-01-14 Thread Cheryl Sabella
Cheryl Sabella added the comment: Closing as a duplicate of #35563, which converts the 'see above' to links. -- nosy: +cheryl.sabella ___ Python tracker ___

[issue35732] Typo in library/warnings documentation

2019-01-14 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Doc: warnings.rst - add links to references ___ Python tracker

[issue35738] Update timeit documentation to reflect default repeat of three

2019-01-14 Thread Jayanth Raman
New submission from Jayanth Raman : In the Examples section of the timeit documentation, repeat() returns a list of size three. But the default is now five and the documentation should reflect that. Thanks. -- assignee: docs@python components: Documentation messages: 333635 nosy:

[issue31658] xml.sax.parse won't accept path objects

2019-01-14 Thread Mickaël Schoentgen
Change by Mickaël Schoentgen : -- versions: +Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35735] Current "make test" status for AIX

2019-01-14 Thread Michael Felt
Change by Michael Felt : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35735] Current "make test" status for AIX

2019-01-14 Thread Michael Felt
Michael Felt added the comment: Well, I can close this again - whatever was wrong with test_xml_etree_c disappeared - and a cursory look at test_os reveals that the issue might be the time lag between the NFS server where the temp files are made and the "local" sense of time. Most of the

[issue35701] [uuid] 3.8 breaks weak references for UUIDs

2019-01-14 Thread David Heiberg
David Heiberg added the comment: Ok thanks for your input, I will work on a PR and hopefully submit one tomorrow or Wednesday depending on schedule. -- ___ Python tracker

[issue35701] [uuid] 3.8 breaks weak references for UUIDs

2019-01-14 Thread wouter bolsterlee
wouter bolsterlee added the comment: the test could be sth like x = uuid.uuid4() y = weakref.ref(x) assert x is y() -- ___ Python tracker ___

Re: get the terminal's size

2019-01-14 Thread Bob van der Poel
On Mon, Jan 14, 2019 at 4:57 AM Alex Ternaute wrote: > Hi there, > > I want to know the number of columns of the terminal where python2 writes > it's outputs. > > In a terminal, I type > $ echo $COLUMNS > 100 > > But in Python, os.getenv("COLUMNS") gets nothing. > It gets nothing as well if I

[issue35701] [uuid] 3.8 breaks weak references for UUIDs

2019-01-14 Thread Tal Einat
Tal Einat added the comment: Indeed, a PR for this should include a test that weakrefs work. -- ___ Python tracker ___ ___

[issue35701] [uuid] 3.8 breaks weak references for UUIDs

2019-01-14 Thread David Heiberg
David Heiberg added the comment: Since there has been no objection to this yet, would it be alright for me to take this as my first PR? On top of the change you mentioned to the __slots__ list, should there also be a test written so that a similar regression doesn't happen again?

RE: get the terminal's size

2019-01-14 Thread Schachner, Joseph
I just tested the fix I proposed, in Python 2.7.13 Code: from win32api import GetSystemMetrics def main(): print "Width =", GetSystemMetrics(0) print "Height =", GetSystemMetrics(1) if __name__ == '__main__': main() Result: Width = 1536 Height = 864 -Original Message-

Re: get the terminal's size

2019-01-14 Thread Grant Edwards
On 2019-01-14, Schachner, Joseph wrote: > Note sure why you couldn't capture $ echo $COLUMNS from a subprocess > call. You can. But, the subprocess is going to inherit the value from the Python program's environment, so it's just pointless complexity. -- Grant Edwards

RE: get the terminal's size

2019-01-14 Thread Schachner, Joseph
Note sure why you couldn't capture $ echo $COLUMNS from a subprocess call. But, how about this (found on the web): from win32api import GetSystemMetrics print "Width =", GetSystemMetrics(0) print "Height =", GetSystemMetrics(1) -Original Message- From: Alex Ternaute Sent: Monday,

Re: get the terminal's size

2019-01-14 Thread Alex Ternaute
Hi, Grant Edwards : >>export COLUMNS LINES > That will tell you the terminal size at the time Python was started. Ok, I think tracking these changes in real time is not worth the work to be done using Python2. I think at last I'll rewrite this (little) programe in Python3 in order to use

Re: get the terminal's size

2019-01-14 Thread Alex Ternaute
Hi Thomas >> Looking on the internet for a hint, I see that python3 has an >> os.get_terminal_size(). > Use that then. Up to now I wanted to keep compatibility with a big bunch of code in Python2 that I do no maintain by myself. Well, I saw that get_terminal_size() follows the windows

Re: get the terminal's size

2019-01-14 Thread Grant Edwards
On 2019-01-14, Peter Otten <__pete...@web.de> wrote: > Grant Edwards wrote: > > os.environ["COLUMNS"] > >> [...] will tell you the terminal size at the time Python was started. > > I admit that none of my scripts is ambitious enough to try and track > changes in terminal size. > > But still,

Re: get the terminal's size

2019-01-14 Thread Peter Otten
Grant Edwards wrote: os.environ["COLUMNS"] > [...] will tell you the terminal size at the time Python was started. I admit that none of my scripts is ambitious enough to try and track changes in terminal size. But still, Grant's post prompted me to reread the doc and source of

[issue35537] use os.posix_spawn in subprocess

2019-01-14 Thread STINNER Victor
STINNER Victor added the comment: > https://wiki.musl-libc.org/faq.html """ Q: Why is there no __MUSL__ macro? It’s a bug to assume a certain implementation has particular properties rather than testing. So far, every time somebody’s asked for this with a particular usage case in mind, the

[issue34323] False timeout log message on proactor close

2019-01-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11190, 11191, 11192 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34323] False timeout log message on proactor close

2019-01-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11190 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34323] False timeout log message on proactor close

2019-01-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11190, 11191 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

RE: Python read text file columnwise

2019-01-14 Thread Schachner, Joseph
About the original question: If I were you, I would put the 3 numbers into a list (or a tuple, if you don't need to modify them) and put this into a dictionary. The key would be the date & time string. Then, if you need to find a particular entry you can look it up by date and time. But I

[issue35737] crypt AuthenticationError introduced with new Linux kernel

2019-01-14 Thread Brett R
New submission from Brett R : We are seeing a crash apparently in crypt.py when invoked via SaltStack and have narrowed it down to some change in the Linux kernel introduced by this security update: https://access.redhat.com/errata/RHSA-2018:3083 Linux kernel 3.10.0-862.14.4.el7.x86_64 works

ANN: Wing Python IDE 6.1.3 released

2019-01-14 Thread Wingware
Hi, We've just released Wing 6.1.3 , which improves management of the Python Shell when the project environment changes, adds 2FA card selector capability in remote host configuration , improves support for

[issue24780] unittest assertEqual difference output foiled by newlines

2019-01-14 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Sorry, I just stumbled upon issue2142 which is a similar report for unique_diff producing wrong output due to missing trailing newlines and could have been the original reason where the title was changed. But since there is a PR now towards adding

Re: get the terminal's size

2019-01-14 Thread Grant Edwards
On 2019-01-14, Peter Otten <__pete...@web.de> wrote: > >> I want to know the number of columns of the terminal where python2 writes >> it's outputs. >> >> In a terminal, I type >> $ echo $COLUMNS >> 100 >> >> But in Python, os.getenv("COLUMNS") gets nothing. >> It gets nothing as well if I try

[issue35736] Missing component in table after getElementsByTagName("nn")

2019-01-14 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: It seems you have added a reply with the program at https://bugs.python.org/file48049/unnamed but it's filled with escaped HTML I hope. I assume you have a problem that there are 34 items with 'operation name' under grep and in the program it

python package management confusion

2019-01-14 Thread dcs3spp via Python-list
Hi, I am a newbie completely confused with python package management. I have a setup.py file (listed below) and have setup pip and setup.cfg to install my own dependencies from a local devpi repository. Can setup.py reference a git repository so that I can install from that url? Is this

[issue35736] Missing component in table after getElementsByTagName("nn")

2019-01-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Please do not post a large amount of text as a message. This would make communication harder. -- nosy: +serhiy.storchaka ___ Python tracker

[issue35736] Missing component in table after getElementsByTagName("nn")

2019-01-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- Removed message: https://bugs.python.org/msg333624 ___ Python tracker ___ ___ Python-bugs-list

[issue35674] Expose os.posix_spawnp()

2019-01-14 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- pull_requests: +11187, 11188, 11189 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35674] Expose os.posix_spawnp()

2019-01-14 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- pull_requests: +11187 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35674] Expose os.posix_spawnp()

2019-01-14 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- pull_requests: +11187, 11188 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35721] _UnixSubprocessTransport leaks socket pair if Popen fails

2019-01-14 Thread Niklas Fiekas
Change by Niklas Fiekas : -- keywords: +patch, patch, patch pull_requests: +11184, 11185, 11186 stage: -> patch review ___ Python tracker ___

[issue35721] _UnixSubprocessTransport leaks socket pair if Popen fails

2019-01-14 Thread Niklas Fiekas
Change by Niklas Fiekas : -- keywords: +patch, patch pull_requests: +11184, 11185 stage: -> patch review ___ Python tracker ___

[issue35721] _UnixSubprocessTransport leaks socket pair if Popen fails

2019-01-14 Thread Niklas Fiekas
Change by Niklas Fiekas : -- keywords: +patch pull_requests: +11184 stage: -> patch review ___ Python tracker ___ ___

[issue35736] Missing component in table after getElementsByTagName("nn")

2019-01-14 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. Please post a minimal code snippet with what you are expecting and the actual output of the program explaining the problem and how it's a bug in Python and not the actual code's logic. -- nosy: +xtreak

[issue35723] Add "time zone index" cache to datetime objects

2019-01-14 Thread Paul Ganssle
Paul Ganssle added the comment: > I dislike adding a public API for an optimization. Would it be possible to > make it private? Would it make sense? tzidx => _tzidx. This also would have been my preference, but it is unfortunately not possible because of the way tzinfo works. tzinfo is an

Re: Email blast management?

2019-01-14 Thread Hartmut Goebel
Am 14.01.19 um 12:47 schrieb Chris Angelico: > It's a whole lot more respectful than keeping your own database of > email addresses and then having it compromised some day. This assumes that one would not *keep* a list of customers in in company. -- Schönen Gruß Hartmut Goebel

[issue35736] Missing component in table after getElementsByTagName("nn")

2019-01-14 Thread Michael Krötlinger
New submission from Michael Krötlinger : After operations = xmltree.getElementsByTagName("operation") the table does not contain operations antragstypenErmitteln and mammographieIndikationenErmitteln -- files: EbsService.wsdl messages: 333621 nosy: MiKr41 priority: normal severity:

Re: get the terminal's size

2019-01-14 Thread Thomas Jollans
On 14/01/2019 12.57, Alex Ternaute wrote: > Hi there, > > I want to know the number of columns of the terminal where python2 writes > it's outputs. > > In a terminal, I type > $ echo $COLUMNS > 100 > > But in Python, os.getenv("COLUMNS") gets nothing. > It gets nothing as well if I try to read

[issue35698] [statistics] Division by 2 in statistics.median

2019-01-14 Thread STINNER Victor
STINNER Victor added the comment: > I find Steve's closing of the issue premature, but I'm not going to reverse > it. Steven D'Aprano is the maintainer of the module (he wrote 450 and implemented it), he has the last word. Steven D'Aprano, Raymond Hettinger and me are 3 core developers and

[issue35698] [statistics] Division by 2 in statistics.median

2019-01-14 Thread Jonathan Fine
Jonathan Fine added the comment: I'm still thinking about this. I find Steve's closing of the issue premature, but I'm not going to reverse it. -- ___ Python tracker ___

Re: get the terminal's size

2019-01-14 Thread Alex Ternaute
Hi, Peter Otten : >> In a terminal, I type $ echo $COLUMNS 100 >> But in Python, os.getenv("COLUMNS") gets nothing. >> I feel that I'm missing something but what ? > $ export COLUMNS Thank you very much ! -- Aelx -- https://mail.python.org/mailman/listinfo/python-list

[issue35698] [statistics] Division by 2 in statistics.median

2019-01-14 Thread Steven D'Aprano
Steven D'Aprano added the comment: I agree that for numeric data, it isn't worth changing the behaviour of median to avoid the division in the case of two equal middle values. Even if we did accept this feature request, it is not going to eliminate the change in type in all circumstances.

[issue33416] Add endline and endcolumn to every AST node

2019-01-14 Thread Aivar Annamaa
Aivar Annamaa added the comment: I strongly support this feature, because my IDE (https://thonny.org) needs to highlight AST nodes in the source code. There would be many interested parties if you count the stars of this project: https://github.com/gristlabs/asttokens -- nosy:

NumPy 1.16.0 released.

2019-01-14 Thread Charles R Harris
Hi All, On behalf of the NumPy team I'm pleased to announce the release of NumPy 1.16.0. This is the last NumPy release to support Python 2.7 and will be maintained as a long term release with bug fixes until 2020. This release has seen a lot of refactoring and features many bug fixes, improved

ANN: PyScripter 3.6 released

2019-01-14 Thread pyscripter
PyScripter is a free and open-source Python Integrated Development Environment (IDE) created with the ambition to become competitive in functionality with commercial Windows-based IDEs available for other languages. It is feature-rich, but also light-weight. This release contains important

pytest 4.1.1

2019-01-14 Thread Bruno Oliveira
pytest 4.1.1 has just been released to PyPI. This is a bug-fix release, being a drop-in replacement. To upgrade:: pip install --upgrade pytest The full changelog is available at https://docs.pytest.org/en/latest/changelog.html. Thanks to all who contributed to this release, among them: *

ANN: Python Meeting Düsseldorf - 09.01.2019

2019-01-14 Thread eGenix Team: M.-A. Lemburg
[This announcement is in German since it targets a local user group meeting in Düsseldorf, Germany] ANKÜNDIGUNG Python Meeting Düsseldorf http://pyddf.de/ Ein

EuroPython 2019: Kicking off the organization

2019-01-14 Thread M.-A. Lemburg
Today, we’re happy to announce our pre-launch website under the official EuroPython 2019 URL: * https://ep2019.europython.eu/ * Dates and Venues EuroPython will be held from July 8-14 2019 in Basel, Switzerland, at the Congress Center Basel (BCC) for the

[issue35734] ipaddress's _BaseV4._is_valid_netmask fails to detect invalid netmask like 255.254.128.0

2019-01-14 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Still 255.254.128.0 is a valid subnet. If I understand correctly, rfc1519 relate to how public ip addresses should be attributed. It does not cover what private subnets you use and you still can such submask (as long as you own the whole /16 for example).

[issue35723] Add "time zone index" cache to datetime objects

2019-01-14 Thread STINNER Victor
STINNER Victor added the comment: I dislike adding a public API for an optimization. Would it be possible to make it private? Would it make sense? tzidx => _tzidx. > One other thing I might mention here is that I did explore the idea of > storing this cache on the tzinfo implementation

[issue35730] IDLE: Fix squeezer test_reload.

2019-01-14 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +11181, 11182 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   >