Re: The state of asyncio in 2019

2019-05-19 Thread Chris Angelico
On Mon, May 20, 2019 at 11:56 AM Becaree
 wrote:
>
> So i started to use asyncio some times ago. I see a lots of threads/forums 
> which date back from 2015 or older. My question is what the state of asyncio 
> in 2019? I guess, the major constrain of having async/await is quiet a 
> drawback. I do love asyncio but reinventing the wheel using it is somehow 
> complicated for a community. I mean i found disappointed that major scheduler 
> don't use it as airflow/luigi/dask. Also pulsar is kind of unmaintained. So 
> now i wonder, should i stick with asyncio or some async/await-freed 
> coroutines as use tornado or gevent is the way to go?
>

It depends a bit on what you're trying to do, but if you want a system
that doesn't use async/await, you may want to first look at the
built-in "threading" module. It doesn't scale to infinity the way
asyncio can, but for workloads of up to a few thousand threads, it
should be fine. In the context of an internet server, for instance,
that would mean you can handle a few thousand concurrent requests by
simply having that many threads, each one handling one request at a
time.

Otherwise, there's really not a lot that's fundamentally *bad* about
using the await keyword everywhere that you need to block. Just keep
an eye on your libraries' documentation, and if it says something's a
coroutine, slap an await in front of it. I've used asyncio in several
projects, and it doesn't feel all that onerous. For instance, this
function:

https://github.com/Rosuav/csgo_automute/blob/master/server.py#L47

responds to an HTTP request by saying "okay, wait till you have the
whole body, and JSON-decode it", then does some synchronous work, and
then says "ooh that was interesting, let's broadcast that to all
clients". Pretty simple. The websocket handler above it is similar;
although at the moment, it's very stubby, so it's probably not a great
example. (All it does is listen for messages and then print them on
the console. Mucho excitement.) That's using aiohttp. For vanilla
socket services, you can do everything using the standard library
directly - either start a server (to bind and listen), or connect a
socket, and then await your reads and your writes.

The past four years have definitely seen notable improvements to
asyncio in Python.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue24653] Mock.assert_has_calls([]) is surprising for users

2019-05-19 Thread Inada Naoki


Inada Naoki  added the comment:

I concur with Serhiy.  Current document and example describe clearly
that this API is for checking inclusion, not equality.

Current example:

"""
>>> mock = Mock(return_value=None)
>>> mock(1)
>>> mock(2)
>>> mock(3)
>>> mock(4)
>>> calls = [call(2), call(3)]
>>> mock.assert_has_calls(calls)
>>> calls = [call(4), call(2), call(3)]
>>> mock.assert_has_calls(calls, any_order=True)
"""

Empty list is allowed by same rule.  There are no exception.

And when people understand this API checks inclusion, calling with
empty list doesn't make sense at all.  So I don't think it is worth enough.

--
nosy: +inada.naoki
resolution:  -> wont fix
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue36958] IDLE should print exit message or status if one is provided

2019-05-19 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13346

___
Python tracker 

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



[issue36958] IDLE should print exit message or status if one is provided

2019-05-19 Thread Terry J. Reedy


Terry J. Reedy  added the comment:


New changeset 6d965b39b7a486dd9e96a60b19ee92382d668299 by Terry Jan Reedy in 
branch 'master':
bpo-36958: In IDLE, print exit message (GH-13435)
https://github.com/python/cpython/commit/6d965b39b7a486dd9e96a60b19ee92382d668299


--

___
Python tracker 

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



[issue36958] IDLE should print exit message or status if one is provided

2019-05-19 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests: +13345
stage: needs patch -> patch review

___
Python tracker 

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



The state of asyncio in 2019

2019-05-19 Thread Becaree
So i started to use asyncio some times ago. I see a lots of threads/forums 
which date back from 2015 or older. My question is what the state of asyncio in 
2019? I guess, the major constrain of having async/await is quiet a drawback. I 
do love asyncio but reinventing the wheel using it is somehow complicated for a 
community. I mean i found disappointed that major scheduler don't use it as 
airflow/luigi/dask. Also pulsar is kind of unmaintained. So now i wonder, 
should i stick with asyncio or some async/await-freed coroutines as use tornado 
or gevent is the way to go?
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue36630] failure of test_colors_funcs in test_curses with ncurses 6.1

2019-05-19 Thread Jeffrey Kintscher


Jeffrey Kintscher  added the comment:

The test fails because curses.pair_content(curses.COLOR_PAIRS-1) validates its 
parameter against the limits for signed short (max 32767) while 
curses.COLOR_PAIRS-1 has the value 65535.

Unfortunately, re-plumbing curses.pair_content() to use signed integers instead 
of signed shorts and replacing the underlying ncurses API call from 
pair_content() to extended_pair_content() doesn't fix the problem because 
extended_pair_content() still fails when passed 65535. Tracing into the ncurses 
6.1 source code, I found that start_color() clamps the maximum number of color 
pairs at SHRT_MAX (32767) regardless of the number of color pairs supported by 
the terminal.

--
nosy: +websurfer5
Added file: https://bugs.python.org/file48338/extended_pair_content.c

___
Python tracker 

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



[issue36951] Wrong types for PyMemberDefs in Objects/typeobject.c

2019-05-19 Thread miss-islington


miss-islington  added the comment:


New changeset 64b0bdba7ee30ecc5c4c5ad46fb6afd6c0ddd487 by Miss Islington (bot) 
in branch '3.7':
closes bpo-36951: Correct some types in the type_members struct in 
typeobject.c. (GH-13403)
https://github.com/python/cpython/commit/64b0bdba7ee30ecc5c4c5ad46fb6afd6c0ddd487


--

___
Python tracker 

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



[issue36951] Wrong types for PyMemberDefs in Objects/typeobject.c

2019-05-19 Thread miss-islington


miss-islington  added the comment:


New changeset eda691dd9d076e175c396dc6f85dee2795572f6c by Miss Islington (bot) 
in branch '2.7':
closes bpo-36951: Correct some types in the type_members struct in 
typeobject.c. (GH-13403)
https://github.com/python/cpython/commit/eda691dd9d076e175c396dc6f85dee2795572f6c


--
nosy: +miss-islington

___
Python tracker 

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



[issue36951] Wrong types for PyMemberDefs in Objects/typeobject.c

2019-05-19 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset 53d378c81286644138415cb56da52a7351e1a477 by Benjamin Peterson 
(Zackery Spytz) in branch 'master':
closes bpo-36951: Correct some types in the type_members struct in 
typeobject.c. (GH-13403)
https://github.com/python/cpython/commit/53d378c81286644138415cb56da52a7351e1a477


--
nosy: +benjamin.peterson
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue36951] Wrong types for PyMemberDefs in Objects/typeobject.c

2019-05-19 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13344

___
Python tracker 

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



[issue36951] Wrong types for PyMemberDefs in Objects/typeobject.c

2019-05-19 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13343

___
Python tracker 

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



[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-19 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +13342

___
Python tracker 

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



[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2019-05-19 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset fd1e0e93b15af018184476ea0b3af0eabef37d89 by Victor Stinner in 
branch 'master':
bpo-35134: Register new traceback.h header files (GH-13431)
https://github.com/python/cpython/commit/fd1e0e93b15af018184476ea0b3af0eabef37d89


--

___
Python tracker 

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



[issue36963] PyDict_GetItem SegFaults on simple dictionary lookup when using Ctypes

2019-05-19 Thread Larry Hastings


Larry Hastings  added the comment:

Inada-san, while it is best to not call PyDict_ functions without holding the 
GIL, it doesn't matter unless one creates a second thread.  The GIL doesn't 
even exist until Python creates a second thread.

But, I too don't want bugs.python.org to become a "help people debug their 
programs" site.  Particularly when using ctypes, which crashes a lot.

--

___
Python tracker 

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



Re: Amber Brown: Batteries Included, But They're Leaking

2019-05-19 Thread Terry Reedy

On 5/19/2019 5:34 PM, Christian Heimes wrote:


By the way, I'm working on removing some dead battieres since last year,
see proto PEP
https://github.com/tiran/peps/blob/oldbatteries/pep-.rst and LWN
article https://lwn.net/Articles/755229/


Hooray!
I believe that there are other modules, other than distutils, that 
others have proposed for deletion after 2.7 expires.


While deleting in 3.9 would be nice, I agree on waiting for 3.10.  Track 
issues to fix/enhance could be deleted before that.  For 3.8, I think 
deprecation in the docs and possibly PendingDeprecationWarning could be 
added anytime up to the .rc.


colorsys, color conversion functions between RGB, YIQ, HLS, and HSV 
coordinate systems, seems like it should still be useful.  Looking for 
substututes on pypi, I found


pyrgb: color conversion functions - RGB, HSV, HSL, CMYK
This needs YIQ to be a superset of colorsys.  Py version unspecified.

colorutils: among other things, conversions between RGB tuples, 
6-character HEX strings, 3-character HEX strings, WEB, YIQ, and HSV. 
WEB is a 'well-known' color name, when available, such as 'SeaGreen'. 
(Tk names would be helpful for tkinter programming.  HEX is used in Tk.) 
This needs HSL to be a superset.  2.7, last release 5/25/2015


Conclusion: colorsys could be pretty well replaced by an improved 
version of either package.


In the Linux World comments, k8to says "For a silly data point, I still 
have code that I still run that process amiga data files that I use in 
an archival project. I'm a little sad about some of the modules I use 
being removed from python.  I'm sure I can work around the problem 
though, as I only run the code locally."


My thought: who better to maintain an atari date file library than 
someone who still processes such libraries?  So publicize the PEP and 
encourage experts in old protocols to maintain the corresponding code.


--
Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list


[issue35252] test_functools dead code after FIXME

2019-05-19 Thread Lysandros Nikolaou


Change by Lysandros Nikolaou :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue36963] PyDict_GetItem SegFaults on simple dictionary lookup when using Ctypes

2019-05-19 Thread Inada Naoki


Inada Naoki  added the comment:

At first glance, you used ctypes.cdll, which releases GIL.  But you called 
Python/C API in extension module.  You shouldn't do it.
Try ctypes.pydll, which don't release GIL.

If it doesn't help you, please continue it in another communities.
I don't want to make Issue Tracker as user support forum.


> Could you let me know to whom I could reach out for help ?

Communities!

* Slack: https://pyslackers.com/
* Mailing list: https://mail.python.org/mailman/listinfo/python-list
* Stack Overflow: https://stackoverflow.com/questions/tagged/python

--
nosy: +inada.naoki

___
Python tracker 

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



Re: Why Python has no equivalent of JDBC of Java?

2019-05-19 Thread Andrew Z
The pg python lib requires
https://www.postgresql.org/docs/current/libpq.html
pip pulls it as a part of the lib install, whereas in oracle case you
install the driver yourself first.(suize matters)

//for some reason i thought the driver libs come as part of cx . But it was
a year ago and my memory may play tricks on me.


On Sun, May 19, 2019, 17:44 Chris Angelico  wrote:

> On Mon, May 20, 2019 at 7:34 AM Marco Sulla via Python-list
>  wrote:
> >
> > I programmed in Python 2 and 3 for many years, and I find it a fantastic
> > language.
> >
> > Now I'm programming in Java by m ore than 2 years, and even if I found
> its
> > code much more boilerplate, I admit that JDBC is fantastic.
> >
> > One example over all: Oracle. If you want to access an Oracle DB from
> > Python, you have to:
> >
> > 1. download the Oracle instantclient and install/unzip it
> > 2. on Linux, you have also to install/unzip Development and Runtime
> package
> > 3. on windows, you have to add the instantclient to PATH
> > 4. on Linux, you have to create a script to source that sets PATH,
> > ORACLE_HOME and LD_LIBRARY_PATH
> >
> > Finally, you can use cx_Oracle.
> >
> > Java? You have only to download ojdbcN.jar and add it to Maven/Gradle.
> >
> > Why Python has no equivalent to JDBC?
>
> I've no idea what the hassles are with Oracle, as it's a database
> engine that I don't use. But with PostgreSQL, which I *do* use, I can
> assure you that it's much easier:
>
> $ pip install psycopg2
> >>> import psycopg2
>
> Job done.
>
> If Oracle is harder to use, it may be a specific issue with installing
> the Oracle client. Have you tried using pip to install cx_oracle?
>
> ChrisA
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Amber Brown: Batteries Included, But They're Leaking

2019-05-19 Thread Terry Reedy

On 5/19/2019 4:48 PM, Chris Angelico wrote:

On Mon, May 20, 2019 at 5:41 AM John Ladasky  wrote:


On Saturday, May 18, 2019 at 2:21:59 PM UTC-7, Paul Rubin wrote:

http://pyfound.blogspot.com/2019/05/amber-brown-batteries-included-but.html

This was a controversial talk at the Python language summit, giving
various criticisms of Python's standard library,


I will try to find some time to read through Amber Brown's remarks.


I'll make a few comments too.


I read them and the read what I concluded is yet another useless, 
contradictory, rant based partly on ignorance and mis-information.


You corrected some of the latter.


Brown said her point was to move asyncio to PyPI, along with most new
feature development. “We should embrace PyPI,” she exhorted.


This is the only "action item" I've found in the entire rant.


The disinformation is the implication that core developers have not 
embraced pypi.  But anyone reading this list and python-ideas would know 
that it is mostly users pushing for new modules and some particular 
features in the stdlib and core developers saying "Whoo, we are already 
overloaded.  Start something on pypi first and *maybe* we will consider 
it later."


I think her main point is that she, a twisted developer, is mad and 
thinks it unfair that competitor asyncio was privileged by being allowed 
to be developed in the stdlib.  Hence, "Ever since asyncio was announced 
she has had to explain why Twisted is still worthwhile". And hence her 
wish that it, in particular, be relegated to being one competitor among 
others on pypi.



--
Terry Jan Reedy


--
https://mail.python.org/mailman/listinfo/python-list


[issue36969] pdb: do_args: display/handle keyword-only arguments

2019-05-19 Thread daniel hahler


New submission from daniel hahler :

With a program like the following, `args` will not display the keyword-only 
argument:

```
def f1(arg=None, *, kwonly=None):
__import__('pdb').set_trace()


f1()
```

```
(Pdb) args
arg = 'arg'
kw = 'kw'
```

Related code:
https://github.com/python/cpython/blob/5c08ce9bf712acbb3f05a3a57baf51fcb534cdf0/Lib/pdb.py#L1129-L1144

--
components: Library (Lib)
messages: 342878
nosy: blueyed
priority: normal
severity: normal
status: open
title: pdb: do_args: display/handle keyword-only arguments
type: behavior
versions: Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

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



[issue34580] sqlite doc: clarify the scope of the context manager

2019-05-19 Thread Berker Peksag


Change by Berker Peksag :


--
resolution:  -> fixed
stage: patch review -> 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



[issue34580] sqlite doc: clarify the scope of the context manager

2019-05-19 Thread Berker Peksag


Berker Peksag  added the comment:


New changeset 205c1f0e36e00e6e7cb7fbabaab4f52732859f9e by Berker Peksag (Miss 
Islington (bot)) in branch '3.7':
bpo-34580: Update sqlite3 examples to call close() explicitly (GH-9079)
https://github.com/python/cpython/commit/205c1f0e36e00e6e7cb7fbabaab4f52732859f9e


--

___
Python tracker 

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



[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2019-05-19 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +13341

___
Python tracker 

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



[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2019-05-19 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset ed48866c55b8e4ee14faa8b5ad97819e8e74c98b by Victor Stinner in 
branch 'master':
bpo-35134: Split traceback.h header (GH-13430)
https://github.com/python/cpython/commit/ed48866c55b8e4ee14faa8b5ad97819e8e74c98b


--

___
Python tracker 

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



[issue35252] test_functools dead code after FIXME

2019-05-19 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset d673810b9d9df6fbd29f5b7db3973d5adae10fd3 by Łukasz Langa 
(Lysandros Nikolaou) in branch 'master':
bpo-35252: Remove FIXME from test_functools (GH-10551)
https://github.com/python/cpython/commit/d673810b9d9df6fbd29f5b7db3973d5adae10fd3


--

___
Python tracker 

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



[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2019-05-19 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +13340

___
Python tracker 

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



[issue34580] sqlite doc: clarify the scope of the context manager

2019-05-19 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13339

___
Python tracker 

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



[issue34580] sqlite doc: clarify the scope of the context manager

2019-05-19 Thread Berker Peksag


Berker Peksag  added the comment:


New changeset 287b84de939db47aa8c6f30734ceb8aba9d1db29 by Berker Peksag 
(Xtreak) in branch 'master':
bpo-34580: Update sqlite3 examples to call close() explicitly (GH-9079)
https://github.com/python/cpython/commit/287b84de939db47aa8c6f30734ceb8aba9d1db29


--

___
Python tracker 

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



Re: Why Python has no equivalent of JDBC of Java?

2019-05-19 Thread Andrew Z
Marco,
  You clearly know more about python/java universe than i do.
 But im infinitely thankful to cx team for putting out the package.
Feature and performance wise , even with non supported oracle timesten, it
was fantastic.
Id always go after "native" vs jdbc. But i understand that most of apps
have a very general workflow of " select some, insert some/delete" thus
most of the native features are not required..

Sorry, its Sunday,  float off the subject.

On Sun, May 19, 2019, 17:33 Marco Sulla via Python-list <
python-list@python.org> wrote:

> I programmed in Python 2 and 3 for many years, and I find it a fantastic
> language.
>
> Now I'm programming in Java by m ore than 2 years, and even if I found its
> code much more boilerplate, I admit that JDBC is fantastic.
>
> One example over all: Oracle. If you want to access an Oracle DB from
> Python, you have to:
>
> 1. download the Oracle instantclient and install/unzip it
> 2. on Linux, you have also to install/unzip Development and Runtime package
> 3. on windows, you have to add the instantclient to PATH
> 4. on Linux, you have to create a script to source that sets PATH,
> ORACLE_HOME and LD_LIBRARY_PATH
>
> Finally, you can use cx_Oracle.
>
> Java? You have only to download ojdbcN.jar and add it to Maven/Gradle.
>
> Why Python has no equivalent to JDBC?
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Amber Brown: Batteries Included, But They're Leaking

2019-05-19 Thread Chris Angelico
On Mon, May 20, 2019 at 7:38 AM Christian Heimes  wrote:
>
> On 19/05/2019 22.48, Chris Angelico wrote:
> >> the sslmodule requires a monkeypatch to connect to non-ASCII domain names,
>
> It's not correct. There were some bugs in IDNA support in the SSL
> module. Nathaniel and I worked on the topic and fixed it in 3.7, see
> https://bugs.python.org/issue28414
>
> Python stdlib in general does not support some non-ASCII domain names
> (German, Greek, and some Asian languages), because there is no IDNA 2008
> encoding in the stdlib. The problem is not in the SSL module, but starts
> as low as host name encoding for DNS lookups. The solution here is to
> *add* more features to the stdlib, see
> https://bugs.python.org/issue17305
>

Thanks. And I agree; if there are limitations like this in the stdlib,
the stdlib needs to be fixed. That's not a leaking battery.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Why Python has no equivalent of JDBC of Java?

2019-05-19 Thread Chris Angelico
On Mon, May 20, 2019 at 7:34 AM Marco Sulla via Python-list
 wrote:
>
> I programmed in Python 2 and 3 for many years, and I find it a fantastic
> language.
>
> Now I'm programming in Java by m ore than 2 years, and even if I found its
> code much more boilerplate, I admit that JDBC is fantastic.
>
> One example over all: Oracle. If you want to access an Oracle DB from
> Python, you have to:
>
> 1. download the Oracle instantclient and install/unzip it
> 2. on Linux, you have also to install/unzip Development and Runtime package
> 3. on windows, you have to add the instantclient to PATH
> 4. on Linux, you have to create a script to source that sets PATH,
> ORACLE_HOME and LD_LIBRARY_PATH
>
> Finally, you can use cx_Oracle.
>
> Java? You have only to download ojdbcN.jar and add it to Maven/Gradle.
>
> Why Python has no equivalent to JDBC?

I've no idea what the hassles are with Oracle, as it's a database
engine that I don't use. But with PostgreSQL, which I *do* use, I can
assure you that it's much easier:

$ pip install psycopg2
>>> import psycopg2

Job done.

If Oracle is harder to use, it may be a specific issue with installing
the Oracle client. Have you tried using pip to install cx_oracle?

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Amber Brown: Batteries Included, But They're Leaking

2019-05-19 Thread Christian Heimes
On 19/05/2019 22.48, Chris Angelico wrote:
>> the sslmodule requires a monkeypatch to connect to non-ASCII domain names,

It's not correct. There were some bugs in IDNA support in the SSL
module. Nathaniel and I worked on the topic and fixed it in 3.7, see
https://bugs.python.org/issue28414

Python stdlib in general does not support some non-ASCII domain names
(German, Greek, and some Asian languages), because there is no IDNA 2008
encoding in the stdlib. The problem is not in the SSL module, but starts
as low as host name encoding for DNS lookups. The solution here is to
*add* more features to the stdlib, see
https://bugs.python.org/issue17305


By the way, I'm working on removing some dead battieres since last year,
see proto PEP
https://github.com/tiran/peps/blob/oldbatteries/pep-.rst and LWN
article https://lwn.net/Articles/755229/

Christian

-- 
https://mail.python.org/mailman/listinfo/python-list


[issue36968] Top level transient modal windows stopping deiconify on windows 10

2019-05-19 Thread Daniel Law


Change by Daniel Law :


Removed file: https://bugs.python.org/file48337/arrow_rotate_clockwise_48x48.png

___
Python tracker 

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



Why Python has no equivalent of JDBC of Java?

2019-05-19 Thread Marco Sulla via Python-list
I programmed in Python 2 and 3 for many years, and I find it a fantastic
language.

Now I'm programming in Java by m ore than 2 years, and even if I found its
code much more boilerplate, I admit that JDBC is fantastic.

One example over all: Oracle. If you want to access an Oracle DB from
Python, you have to:

1. download the Oracle instantclient and install/unzip it
2. on Linux, you have also to install/unzip Development and Runtime package
3. on windows, you have to add the instantclient to PATH
4. on Linux, you have to create a script to source that sets PATH,
ORACLE_HOME and LD_LIBRARY_PATH

Finally, you can use cx_Oracle.

Java? You have only to download ojdbcN.jar and add it to Maven/Gradle.

Why Python has no equivalent to JDBC?
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue36967] Eliminate unnecessary check in _strptime when determining AM/PM

2019-05-19 Thread Gordon P. Hemsley


Change by Gordon P. Hemsley :


--
components: +Library (Lib)

___
Python tracker 

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



[issue36967] Eliminate unnecessary check in _strptime when determining AM/PM

2019-05-19 Thread Gordon P. Hemsley


Change by Gordon P. Hemsley :


--
keywords: +patch
pull_requests: +13338
stage:  -> patch review

___
Python tracker 

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



[issue36968] Top level transient modal windows stopping deiconify on windows 10

2019-05-19 Thread Daniel Law


New submission from Daniel Law :

python 3.6 and also found it in 3.7.3, on windows 10. when a main application 
window built with Tkinter has a modal top level window (transient, grab_set) if 
it is minimised (which get blocked unless you click show desktop or shake 
another application around) any and all atempts to reopen or switch to the 
application again are blocked and the application has to be closed and reopened.

gif attached of this in practice.

--
components: Windows
files: arrow_rotate_clockwise_48x48.png
messages: 342873
nosy: Daniel Law, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Top level transient modal windows stopping deiconify on windows 10
type: behavior
versions: Python 3.6
Added file: https://bugs.python.org/file48337/arrow_rotate_clockwise_48x48.png

___
Python tracker 

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



[issue36967] Eliminate unnecessary check in _strptime when determining AM/PM

2019-05-19 Thread Gordon P. Hemsley


New submission from Gordon P. Hemsley :

Since __calc_am_pm() explicitly limits self.am_pm to 2 values, there are only 
ever 3 possible values of %p: AM, PM, or blank. Since blank is treated the same 
as AM, there is only the need to check whether %p is PM. This eliminates an 
unnecessary comparison and doubly ensures that there is no unhandled case.

--
messages: 342872
nosy: gphemsley, p-ganssle
priority: normal
severity: normal
status: open
title: Eliminate unnecessary check in _strptime when determining AM/PM
versions: Python 3.8

___
Python tracker 

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



[issue22865] Document how to make pty.spawn not copy data

2019-05-19 Thread Geoff Shannon


Geoff Shannon  added the comment:

@martin.panter I removed the mention of inserting null bytes and restricted the 
documentation updates to more fully documenting the current behaviour.

--

___
Python tracker 

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



[issue36881] isinstance raises TypeError for metaclass with metaclass=ABCMeta

2019-05-19 Thread Ivan Levkivskyi


Ivan Levkivskyi  added the comment:

I think this is related to how `__subclasscheck__` is implemented in `ABCMeta`. 
I just checked this also happens in Python 3.6 (i.e. it is not something 
specific to the C version introduced in Python 3.7).

--

___
Python tracker 

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



[issue35814] Syntax quirk with variable annotations

2019-05-19 Thread Ivan Levkivskyi


Ivan Levkivskyi  added the comment:

Is PEP the best place for such updates? Maybe we can add a `versionchanged` 
note in 
https://docs.python.org/3/reference/simple_stmts.html#annotated-assignment-statements
 instead?

--

___
Python tracker 

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



Re: Amber Brown: Batteries Included, But They're Leaking

2019-05-19 Thread Chris Angelico
On Mon, May 20, 2019 at 5:41 AM John Ladasky  wrote:
>
> On Saturday, May 18, 2019 at 2:21:59 PM UTC-7, Paul Rubin wrote:
> > http://pyfound.blogspot.com/2019/05/amber-brown-batteries-included-but.html
> >
> > This was a controversial talk at the Python language summit, giving
> > various criticisms of Python's standard library,
>
> I will try to find some time to read through Amber Brown's remarks.

I'll make a few comments too.

> Applications Need More Than The Standard Library
>
> For example, asyncio requires external libraries to connect to a database or 
> to speak HTTP.

Nothing in Python's standard library connects to a database (with the
minor exception of sqlite3, which isn't so much "connecting to a
database" as "reading a database file"). This is not a dependency of
asyncio any more than psycopg2 (from PyPI) is a dependency of the
socket module.

HTTP might be a valid point, as many applications could restrict
themselves to the stdlib if working synchronously or with threads, but
to do so with asyncio would require manually crafting HTTP requests
and parsing HTTP responses. Would have to confirm that, though; is it
possible to use asyncio's socket services with other modules in the
stdlib?

> Brown asserted that there were many such dependencies from the standard
> library to PyPI:

No, that is not a dependency. A dependency is where something cannot
run without something else. Nothing in the stdlib depends on anything
from PyPI. Claiming that an application needs a library from PyPI is
not the same as showing a dependency.

> typing works best with mypy,

The point of the typing module is to be the baseline that makes
annotations legal and executable, without giving them actual meaning.
Good use of mypy (or any other type checker - it's intentionally
generic) can be by publishing something that depends only on the
stdlib, but on your development computer, you install mypy. This is
the entire point of the typing module - to be part of the stdlib and
allow the code to run unmodified (but unchecked).

> the sslmodule requires a monkeypatch to connect to non-ASCII domain names,

Is that true? If confirmed, that should just be raised as an issue and
dealt with.

> datetime needs pytz,

You can easily use datetime without timezone support, either just
using naive datetimes, or using UTC. The stdlib includes support for
fixed UTC offsets too, but not daylight saving time. Considering that
the tzdata files get updated about ten times a year, baking that into
the stdlib would be a bad idea.

> and six is non-optional for writing code for Python 2 and 3.

Absolutely false. I have written 2/3 spanning code without six. It's a
convenience, and most assuredly not "non-optional". Also, writing
Py3-only code is a completely reasonable choice, especially as 2020
approaches.

> Other standard library modules are simply inferior to alternatives on PyPI.

Honestly, not surprised. If the stdlib modules were superior to the
PyPI ones, the latter wouldn't exist. There are plenty of reasons for
superior options to be installable, and that's not a problem. The
stdlib is there for people who want to be strict about deployment,
which makes it easier for people to use a script.

> The http.client documentation advises readers to use Requests,

And that's a prime example; the requests module changes too frequently
to be baked into the stdlib usefully.

> and the datetime module is confusing compared to its competitors such as 
> arrow, dateutil, and moment.

I've never even heard of arrow. Not sure what the issue is with
datetime; more details needed.

> Standard Library Modules Crowd Out Innovation
>
> Brown’s most controversial opinion, in her own estimation, is that adding 
> modules to
> the standard library stifles innovation, by discouraging programmers from 
> using
> or contributing to competing PyPI packages.

This opinion is in direct conflict with the prior complaint that there
are stdlib modules inferior to third-party ones.

> Van Rossum argued instead that if the Twisted team wants the ecosystem to
> evolve, they should stop supporting older Python versions and force users to
> upgrade. Brown acknowledged this point, but said half of Twisted users are
> still on Python 2 and it is difficult to abandon them. The debate at this 
> point
> became personal for Van Rossum, and he left angrily.

And this is what happens when you look at statistics to make your
decisions. So long as you say "half of Twisted users are on Python 2,
we have to support it", those users will say "Twisted still supports
Python 2, we don't have to move". Maybe it's not about abandoning
people but about drawing them onto a more recent Python.

> Brown said her point was to move asyncio to PyPI, along with most new
> feature development. “We should embrace PyPI,” she exhorted.

This is the only "action item" I've found in the entire rant. Quite
aside from the backward incompatibility in the specific example of
removing asyncio from the 

[issue36721] Add pkg-config python-3.8-embed

2019-05-19 Thread Ned Deily


Ned Deily  added the comment:

I don't understand the need for this.  AFAICT, the purpose of python-config is 
to provide configuration info for embedding Python (Issue1161914 and 
https://docs.python.org/3/extending/embedding.html#compiling-and-linking-under-unix-like-systems).
  At some point, a pkg-config template was added (in Issue3585) but it seems to 
duplicate the purpose of python-config and thus is also intended for use in 
embedding Python (although we don't seem to document it, it is familiar to 
users of automake). I don't know what other purposes either python-config or 
the pkg-config template serve other than for embedding. AFAIK, they should not 
be used for building C extension modules. But admittedly this area is not 
well-documented.  In any case, I think pkg-config and python-config should 
return the same values for similar parameters.  Anyone else have an opinion?

--
nosy: +ned.deily

___
Python tracker 

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



Re: Amber Brown: Batteries Included, But They're Leaking

2019-05-19 Thread John Ladasky
On Saturday, May 18, 2019 at 2:21:59 PM UTC-7, Paul Rubin wrote:
> http://pyfound.blogspot.com/2019/05/amber-brown-batteries-included-but.html
> 
> This was a controversial talk at the Python language summit, giving
> various criticisms of Python's standard library,

I will try to find some time to read through Amber Brown's remarks.  For now, I 
just want to remind everyone that we had this exact discussion here, about two 
years ago.  First post in the thread, if you want to see the source:

https://groups.google.com/forum/#!original/comp.lang.python/B2ODmhMS-x4/KMpF4yuHBAAJ


Here are a few excerpts from the thread:


On Saturday, September 16, 2017 at 11:01:03 PM UTC-7, Terry Reedy wrote: 
> The particular crippler for CLBG [Computer Language Benchmark Game]
> problems is the non-use of numpy in numerical calculations, such as the
> n-body problem.  Numerical python extensions are over two decades old 
> and give Python code access to optimized, compiled BLAS, LinPack, 
> FFTPack, and so on.  The current one, numpy, is the third of the series.
> It is both a historical accident and a continuing administrative
> convenience that numpy is not part of the Python stdlib. 


On Monday, September 18, 2017 at 10:21:55 PM UTC+1, John Ladasky wrote: 
> OK, I found this statement intriguing.  Honestly, I can't function without
> Numpy, but I have always assumed that many Python programmers do so. 
> Meanwhile: most of the time, I have no use for urllib, but that module is
> in the standard library. 
> 
> I noticed the adoption of the @ operation for matrix multiplication.  I 
> have yet to use it myself. 
> 
> So is there a fraction of the Python community that thinks that Numpy 
> should in fact become part of the Python stdlib?  What is the 
> "administrative convenience" to which you refer? 


On 2017-09-18 23:08, bream...@gmail.com wrote: 
> My very opinionated personnal opinion is that many third party libraries 
> are much better off outside of the stdlib, numpy particulary so as it's
> one of the most used, if not the most used, such libraries. 
> 
> My rationale is simple, the authors of the libraries are not tied into 
> the (c)Python release cycle, the PEP process or anything else, they can
> just get on with it. 
> 
> Consider my approach many blue moons ago when I was asking when the "new"
> regex module was going to be incorporated into Python, and getting a bit
> miffed in my normal XXXL size hat autistic way when it didn't happen.  I
> am now convinved that back then I was very firmly wrong, and that staying
> out of the stdlib has been the best thing that could have happened to
> regex.


On Tuesday, September 19, 2017 at 12:11:58 AM UTC-7, Steven D'Aprano wrote:
> On Tue, 19 Sep 2017 01:13:23 +0100, MRAB wrote:
> 
> > I even have it on a Raspberry Pi. "pip install regex" is all it took. No
> > need for it to be in the stdlib. :-)
> 
> That's fine for those of us who can run pip and install software from the 
> web without being immediately fired, and for those who have installation 
> rights on the computers they use. And those with easy, cheap and fast 
> access to the internet.
> 
> Not everyone is so lucky.


I'm not offering an opinion, just some historical context FYI.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Tkinter optionMenu Resize

2019-05-19 Thread Terry Reedy

On 5/18/2019 10:40 AM, Cummins, Hayden wrote:

Hi! I've been having a lot of trouble resizing the Tkinter optionMenu feature 
due to my inexperience in Python. Is there a way to resize the option menu? If 
so, how? I've tried using the config function and it makes it so the program no 
longer executes. I also can't find any articles about this problem at all 
across the internet, so any help would be greatly appreciated. Source code to 
follow.


This is a no-attachment list.  Put *minimal* code inline.

An OptionMenu is a Menubutton subclass initialized with a default 
configuration and with a drop-down menu for which all items have the 
same callback.  The following works for me to give the button a constant 
width regardless of the selection.


from tkinter import *
r = Tk()
s = StringVar()
om = OptionMenu(r, s, 'a', 'boat', 'cantilever')
om.pack()
om['width'] = 10  # len('cantilever')
r.mainloop()  # Omit this while developing in IDLE.

If using IDLE with mainloop() disabled, you can experiment with 
configuration settings at the interactive prompt.


Helpful (but not perfect) tkinter reference:
http://infohost.nmt.edu/tcc/help/pubs/tkinter/web/index.html
http://infohost.nmt.edu/tcc/help/pubs/tkinter/web/menubutton.html
shows the configuration settings for menubutton.
http://infohost.nmt.edu/tcc/help/pubs/tkinter/web/optionmenu.html
shows how to set an initial value so that the button is not initially blank.

--
Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list


[issue35647] Cookie path check returns incorrect results

2019-05-19 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
pull_requests: +13337

___
Python tracker 

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



[issue35121] Cookie domain check returns incorrect results

2019-05-19 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
pull_requests: +13336
stage: commit review -> patch review

___
Python tracker 

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



[issue36962] Cant sort ModuleInfo instances

2019-05-19 Thread Eric V. Smith


Eric V. Smith  added the comment:

I agree. Sorry, BTaskaya, but I just don't think the benefit of this change is 
worth the disruption.

--
resolution:  -> wont fix
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



Re: Import module from a different subdirectory

2019-05-19 Thread Peter J. Holzer
On 2019-05-18 16:15:34 -0700, Rich Shepard wrote:
> My apologies to all who patiently tried to get me to see what I kept
> missing.

I've certainly made similar mistakes in the past (and probably will in
the future).

And I didn't see it when I read your mail the first time. But then I
read Piet's reply and thought "But Rich already wrote that ..." and
reread you message. And then I was like "Wait a minute ..."[1]

hp

[1] And now I've got Frank Zappa's "Valley Girl" stuck in my head. 
One shouldn't compose a reply while waiting for the coffee machine
to boot - too much time to form weird associations.

-- 
   _  | Peter J. Holzer| we build much bigger, better disasters now
|_|_) || because we have much more sophisticated
| |   | h...@hjp.at | management tools.
__/   | http://www.hjp.at/ | -- Ross Anderson 


signature.asc
Description: PGP signature
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue21315] email._header_value_parser does not recognise in-line encoding changes

2019-05-19 Thread Abhilash Raj


Change by Abhilash Raj :


--
pull_requests: +13335
stage:  -> patch review

___
Python tracker 

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



Re: Checking network input processing by Python for a multi-threaded server

2019-05-19 Thread Markus Elfring
>> I get an other impression from the statements “self._threads.append(t)” 
>> (process_request)
>> and “thread.join()” (server_close).
>
>   Okay -- v3.7 has added more logic that didn't exist in the v3.5 code
> I was examining... (block_on_close is new).

Thanks for such a version comparison.


>   However, I need to point out that this logic is part of server_close(),
> which is not the same as shutdown(). You have been calling shutdown() which
> only ends the loop accepting new connections, but leaves any in-process
> threads to finish handling their requests.
>
>   server_close() needs to be called by your code, I would expect AFTER
> calling shutdown() to stop accepting new requests (and starting new threads
> which may not be in the list that the close is trying to join).

Should this aspect be taken into account by the code specification “with 
server:”?


> And after calling server_close() you will not be able to simply "restart" the 
> server
> -- you must go through the entire server initialization process
> (ie: create a whole new server instance).

This should be finally achieved by the implementation of my method 
“perform_command”.
I hope that corresponding data processing can be cleanly repeated then
as desired for test purposes.

Regards,
Markus
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: PyCharm installation

2019-05-19 Thread Jorge Gimeno
On Sun, May 19, 2019, 3:27 AM Syed Rizvi  wrote:

> Hi,
>
> I tried to install PyCharm. First time when I installed it, it worked
> well. It developed some problem and when I reinstalled PyCharm, it gives me
> error. I have installed it several times but could not install it
>
> I am unable to install PyCharm.
> --
> https://mail.python.org/mailman/listinfo/python-list


Without the error message there isn't much we can do. Can you please copy
and paste the error message?

-Jorge

>
>
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue36759] datetime: astimezone() results in OSError: [Errno 22] Invalid argument

2019-05-19 Thread SilentGhost


SilentGhost  added the comment:

I'm going to close this issue as a duplicate of #29097. If you're still 
experience this problem on python3.7, please re-open.

--
resolution:  -> duplicate
stage:  -> resolved
status: pending -> closed
superseder:  -> [Windows] datetime.fromtimestamp(t) when 0 <= t <= 86399 fails 
on Python 3.6

___
Python tracker 

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



Re: Why is augmented assignment of a tuple with iterable unpacking invalid syntax?

2019-05-19 Thread Piet van Oostrum
Eugene Alterman  writes:

> a = 1, 2, 3
>
> b = *a,   # assignment - OK
> b += *a,  # augmented assignment - syntax error
>
> Need to enclose in parenthesis:
>
> b += (*a,)
>
> Why isn't it allowed with an augmented assignment, while it is OK with a
> regular assignment?
>

Syntactically (i.e. according to the grammar):
The right-hand side of an assignment has as one of the alternative a 
starred_expression, which includes starred and unstarred expressions.

The right-hand side of an augmented assignment has an expression_list there. 
(The other option is both cases is a yield_expression.) And if it is a list 
(i.e. there is a comma in it), it is a tuple.

Semantically:
x += y is more or less equivalent to x = x + y, except that x is only evaluated 
once, and y is treated as a unity (think implicit parentheses around it). So 
the y is basically part of an expression. But starred expressions are not 
allowed in expressions, except within explicit parentheses.
-- 
Piet van Oostrum 
WWW: http://piet.vanoostrum.org/
PGP key: [8DAE142BE17999C4]
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: The if is not working properly

2019-05-19 Thread MRAB

On 2019-05-19 11:29, Cameron Simpson wrote:

On 18May2019 13:22, nobelio  wrote:
When you print the variable “a” it appears as True, but the program is 
it is not getting in the if a==True:


It may be that "a" is not the Boolean value True but something else. But
that is just a guess. Please reply and paste in a small example
programme showing this problem.


My guess is that it's the string 'True'.
--
https://mail.python.org/mailman/listinfo/python-list


[issue36957] Speed up math.isqrt

2019-05-19 Thread Mark Dickinson


Mark Dickinson  added the comment:

Calling this done for now.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue36957] Speed up math.isqrt

2019-05-19 Thread Mark Dickinson


Mark Dickinson  added the comment:


New changeset 5c08ce9bf712acbb3f05a3a57baf51fcb534cdf0 by Mark Dickinson in 
branch 'master':
bpo-36957: Speed up math.isqrt (#13405)
https://github.com/python/cpython/commit/5c08ce9bf712acbb3f05a3a57baf51fcb534cdf0


--

___
Python tracker 

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



[issue35894] Apparent regression in 3.8-dev: 'TypeError: required field "type_ignores" missing from Module'

2019-05-19 Thread David Lord


Change by David Lord :


--
nosy: +davidism

___
Python tracker 

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



[issue29183] Unintuitive error handling in wsgiref when a crash happens in write() or close()

2019-05-19 Thread Berker Peksag


Change by Berker Peksag :


--
components: +Library (Lib)
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.7, Python 3.8 -Python 2.7, Python 3.4, Python 3.5, Python 
3.6

___
Python tracker 

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



[issue29183] Unintuitive error handling in wsgiref when a crash happens in write() or close()

2019-05-19 Thread Berker Peksag


Berker Peksag  added the comment:


New changeset f393e8eb463d60ce559982613429568c518ab8d9 by Berker Peksag (Miss 
Islington (bot)) in branch '3.7':
bpo-29183: Fix double exceptions in wsgiref.handlers.BaseHandler (GH-12914)
https://github.com/python/cpython/commit/f393e8eb463d60ce559982613429568c518ab8d9


--

___
Python tracker 

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



Re: The if is not working properly

2019-05-19 Thread Alister via Python-list
On Sun, 19 May 2019 20:29:35 +1000, Cameron Simpson wrote:

> On 18May2019 13:22, nobelio  wrote:
>>When you print the variable “a” it appears as True, but the program is
>>it is not getting in the if a==True:
> 
> It may be that "a" is not the Boolean value True but something else. But
> that is just a guess. Please reply and paste in a small example
> programme showing this problem.
> 
> Cheers,
> Cameron Simpson 

also if a==True is unnecessarily verbose
if a: would suffice
(unless you explicitly want True & not just a truthy value in which case 
use
if a is True:
 
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue36691] SystemExit & sys.exit : Allow both exit status and message

2019-05-19 Thread Matthias Bussonnier


Change by Matthias Bussonnier :


--
nosy: +mbussonn

___
Python tracker 

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



[issue35894] Apparent regression in 3.8-dev: 'TypeError: required field "type_ignores" missing from Module'

2019-05-19 Thread Anthony Sottile


Anthony Sottile  added the comment:

there's other optional fields in the ast, type ignores don't seem essential to 
the `Module`, could those be made optional as well?

--
nosy: +Anthony Sottile

___
Python tracker 

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



[issue29183] Unintuitive error handling in wsgiref when a crash happens in write() or close()

2019-05-19 Thread Berker Peksag


Berker Peksag  added the comment:


New changeset 7c59362a15dfce538512ff1fce4e07d33a925cfb by Berker Peksag in 
branch 'master':
bpo-29183: Fix double exceptions in wsgiref.handlers.BaseHandler (GH-12914)
https://github.com/python/cpython/commit/7c59362a15dfce538512ff1fce4e07d33a925cfb


--
nosy: +berker.peksag

___
Python tracker 

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



[issue29183] Unintuitive error handling in wsgiref when a crash happens in write() or close()

2019-05-19 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13334

___
Python tracker 

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



[issue35328] Set a environment variable for venv prompt

2019-05-19 Thread Lysandros Nikolaou


Lysandros Nikolaou  added the comment:

Is anybody still working on this?

--

___
Python tracker 

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



[issue27141] Fix collections.UserList shallow copy

2019-05-19 Thread miss-islington


miss-islington  added the comment:


New changeset 3645d29a1dc2102fdb0f5f0c0129ff2295bcd768 by Miss Islington (bot) 
in branch '3.7':
bpo-27141: Fix collections.UserList and UserDict shallow copy. (GH-4094)
https://github.com/python/cpython/commit/3645d29a1dc2102fdb0f5f0c0129ff2295bcd768


--
nosy: +miss-islington

___
Python tracker 

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



[issue36964] `python3 -m venv NAME`: virtualenv is not portable

2019-05-19 Thread SilentGhost


Change by SilentGhost :


--
nosy: +vinay.sajip
versions: +Python 3.8 -Python 3.9

___
Python tracker 

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



[issue35328] Set a environment variable for venv prompt

2019-05-19 Thread Lysandros Nikolaou


Change by Lysandros Nikolaou :


--
nosy: +lys.nikolaou

___
Python tracker 

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



[issue36966] Export __VENV_PROMPT__ as environment variable

2019-05-19 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
superseder:  -> Set a environment variable for venv prompt

___
Python tracker 

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



[issue36966] Export __VENV_PROMPT__ as environment variable

2019-05-19 Thread Lysandros Nikolaou


Change by Lysandros Nikolaou :


--
resolution:  -> duplicate

___
Python tracker 

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



[issue36966] Export __VENV_PROMPT__ as environment variable

2019-05-19 Thread Lysandros Nikolaou


Lysandros Nikolaou  added the comment:

It is. Somehow search failed me big time. I'm closing the issue.

--
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue36966] Export __VENV_PROMPT__ as environment variable

2019-05-19 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Is this same as issue35328?

--
nosy: +xtreak

___
Python tracker 

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



[issue36963] PyDict_GetItem SegFaults on simple dictionary lookup when using Ctypes

2019-05-19 Thread Apoorv Reddy


Apoorv Reddy  added the comment:

Greetings Larry !

I apologize for spamming so many people. I was hoping to get some insight into 
this ! Could you let me know to whom I could reach out for help ? I've included 
tehybel as I saw that he has raised/resolved some issues with PyDict in the 
past.

My C code is essentially just this:

#include "Python.h"

#ifdef __cplusplus
extern "C" double test(PyObject* key, PyObject* dict)
#else
double test(PyObject* key, PyObject* dict)
#endif
{
PyObject* list = PyObject_GetItem(dict, key);
return 0.0;
}



And my Python Code is this. I'm pretty sure I've got the input and output types 
correct here.

from ctypes import cdll
from ctypes import *
import json
import sys
import pickle


dll = CDLL('./test2.so')
dll.test.restype = c_double
dll.test.argtypes = (py_object, py_object)

d = {68113113140: [1, 2]}
for i in d.keys():
if i == 68113113140:
break
print(dll.test(i, d)) # this works just fine
print(dll.test(68113113140, d) # this segfaults !

GDB shows me that PyObject_RichCompare (called inside PyDict_GetItem) is the 
function where the segmentation fault happens !


Hoping for some guidance here ! I've been trying to resolve this for 3 days 
now. I have made sure that I've compiled with the correct version of Python 
headers and that I'm using the same version of interpreter as well (in this 
case Python 3.5.6)

--
nosy:  -amaury.forgeotdarc, belopolsky, benjamin.peterson, christian.heimes, 
duaneg, ebarry, georg.brandl, inada.naoki, meador.inge, ned.deily, rhettinger, 
serhiy.storchaka

___
Python tracker 

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



[issue36966] Export __VENV_PROMPT__ as environment variable

2019-05-19 Thread Lysandros Nikolaou


New submission from Lysandros Nikolaou :

For those, who use custom tools for their terminals, prepending __VENV_PROMPT__ 
to PS1 doesn't really help all that much, because it gets overwritten by those 
tools. Would it make sense to export __VENV_PROMPT__ as an environment variable 
upon activation, so that these tools can make use of it, in order to edit PS1 
accordingly?

--
components: Library (Lib)
messages: 342855
nosy: lys.nikolaou
priority: normal
severity: normal
status: open
title: Export __VENV_PROMPT__ as environment variable
type: enhancement
versions: Python 3.8

___
Python tracker 

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



[issue36963] PyDict_GetItem SegFaults on simple dictionary lookup when using Ctypes

2019-05-19 Thread Larry Hastings


Larry Hastings  added the comment:

It's not surprising that you crashed the CPython interpreter by using 
ctypes--it's very easy to do by accident, or via a bug in your own code.  
That's why we don't accept crash reports involving ctypes.

Also, it's rude to "nosy" so many people, particularly on your first bug.  
Please show some courtesy in the future, rather than trying to involve as many 
core developers as possible with what is probably a bug in your own code.

--
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue27141] Fix collections.UserList shallow copy

2019-05-19 Thread miss-islington


Change by miss-islington :


--
pull_requests: +1

___
Python tracker 

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



[issue27141] Fix collections.UserList shallow copy

2019-05-19 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset f4e1babf44792bdeb0c01da96821ba0800a51fd8 by Serhiy Storchaka (Bar 
Harel) in branch 'master':
bpo-27141: Fix collections.UserList and UserDict shallow copy. (GH-4094)
https://github.com/python/cpython/commit/f4e1babf44792bdeb0c01da96821ba0800a51fd8


--

___
Python tracker 

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



[issue36962] Cant sort ModuleInfo instances

2019-05-19 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Dataclasses are even more heavyweight than namedtuples. I am not sure that they 
should be used in the stdlib now. Especially in this case. I think the common 
use of iter_modules() is immediate unpacking of the yielded tuple:

for importer, modname, ispkg in pkgutil.iter_modules():
...

Your change breaks it.

I agree with Eric and Berker that this issue should be closed.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue36948] NameError in urllib.request.URLopener.retrieve

2019-05-19 Thread Berker Peksag


Berker Peksag  added the comment:

Thanks! Apparently, backport to 3.7 isn't needed, so I just closed PR 13422.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue36567] DOC: manpage directive doesn't create hyperlink

2019-05-19 Thread Berker Peksag


Change by Berker Peksag :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue36948] NameError in urllib.request.URLopener.retrieve

2019-05-19 Thread miss-islington


Change by miss-islington :


--
pull_requests: +13332

___
Python tracker 

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



[issue36948] NameError in urllib.request.URLopener.retrieve

2019-05-19 Thread Berker Peksag


Berker Peksag  added the comment:


New changeset c661b30f89ffe7a7995538d3b1649469b184bee4 by Berker Peksag 
(Xtreak) in branch 'master':
bpo-36948: Fix NameError in urllib.request.URLopener.retrieve (GH-13389)
https://github.com/python/cpython/commit/c661b30f89ffe7a7995538d3b1649469b184bee4


--
nosy: +berker.peksag

___
Python tracker 

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



[issue36962] Cant sort ModuleInfo instances

2019-05-19 Thread Berker Peksag


Berker Peksag  added the comment:

I agree with Eric that this use case can be easily covered by using sorted(..., 
key=...).

I suggest closing this as 'rejected'.

--
nosy: +berker.peksag

___
Python tracker 

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



[issue36965] use of STATUS_CONTROL_C_EXIT in Modules/main.c breaks compilation with non MSC compilers

2019-05-19 Thread Erik Janssens


Erik Janssens  added the comment:

According to the Microsoft documentation at

https://docs.microsoft.com/en-us/windows-hardware/drivers/kernel/using-ntstatus-values

system-supplied status codes are defined in ntstatus.h. and the NTSTATUS type 
is defined in ntdef.h

PR 13421 includes both ntstatus.h and ntdef.h to be able to use 
STATUS_CONTROL_C_EXIT when compiling for windows.

--

___
Python tracker 

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



[issue36965] use of STATUS_CONTROL_C_EXIT in Modules/main.c breaks compilation with non MSC compilers

2019-05-19 Thread Erik Janssens


Change by Erik Janssens :


--
keywords: +patch
pull_requests: +13330
stage:  -> patch review

___
Python tracker 

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



[issue36962] Cant sort ModuleInfo instances

2019-05-19 Thread Eric V. Smith


Eric V. Smith  added the comment:

I'm not sure all of this churn is worth it for an unusual use case that can be 
satisfied by:

>>> sorted(pkgutil.iter_modules(None), key=lambda x: (x[1], x[2])

or even:

>>> sorted(pkgutil.iter_modules(None), key=operator.itemgetter(1))

(assuming that ispkg doesn't really need to be part of the key)

Before reviewing the patch, I suggest you raise the issue on python-dev and get 
some additional input.

--

___
Python tracker 

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



[issue36965] use of STATUS_CONTROL_C_EXIT in Modules/main.c breaks compilation with non MSC compilers

2019-05-19 Thread SilentGhost


Change by SilentGhost :


--
nosy: +vstinner

___
Python tracker 

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



[issue36965] use of STATUS_CONTROL_C_EXIT in Modules/main.c breaks compilation with non MSC compilers

2019-05-19 Thread Erik Janssens


New submission from Erik Janssens :

in Modules/main.c STATUS_CONTROL_C_EXIT is included conditionally if compiling 
when _MSC_VER is defined.  Later on STATUS_CONTROL_C_EXIT is used if MS_WINDOWS 
is defined.

This breaks compilation of main.c with any non MSC compiler while compiling for 
MS Windows.

This appears to have been introduced in GH-12123 for bpo-36142

--
components: Windows
messages: 342845
nosy: erikjanss, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: use of STATUS_CONTROL_C_EXIT in Modules/main.c breaks compilation with 
non MSC compilers
type: compile error
versions: Python 3.8

___
Python tracker 

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



[issue36962] Cant sort ModuleInfo instances

2019-05-19 Thread Batuhan


Batuhan  added the comment:

Can you review the PR, i implemented it there.

--

___
Python tracker 

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



[issue36962] Cant sort ModuleInfo instances

2019-05-19 Thread Batuhan


Batuhan  added the comment:

You're right. I am thinking implementing 4 sequence methods
(contains/len/iter/getitem) and set a depraction warning for them. We can
remove this methods in next relase

On Sun, May 19, 2019, 2:37 PM Eric V. Smith  wrote:

>
> Eric V. Smith  added the comment:
>
> Unfortunately your change isn't backward compatible with the existing
> (namedtuple) version.
>
> I expect this to fail in the dataclass version:
> >>> finder, name, ispkg = list(pkgutil.iter_modules(None))[0]
>
> And since this is an enhancement, it can only go in to 3.8. And the window
> is closing for that, so it's more likely to be 3.9, if we decide that
> backward compatibility isn't important here.
>
> --
> nosy: +eric.smith
> type:  -> enhancement
> versions:  -Python 3.6, Python 3.7
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue36964] `python3 -m venv NAME`: virtualenv is not portable

2019-05-19 Thread Marco Sulla


New submission from Marco Sulla :

I'm telling about python3 -m venv VIRTUALENV_NAME, not about the virtualenv 
binary.

Some remarks:

1. `VIRTUAL_ENV` variable in `activate` script is the absolute path of the 
virtualenv folder

2. A symlink to the `python3` bin of the machine is created.

This makes the virtualenv difficult to export to another machine. The 
VIRTUAL_ENV variable must be manually changed. 

Furthermore I do not understand why the simlink is created. I suppose that 
`python3` is already on the `PATH`, so what's the purpose of simlink?

I propose to makes VIRTUAL_ENV eqauls to the parent folder of the directory 
where `activate` resides. It makes it possible to move the virtualenv and copy 
it to another machine with the same OS.

--
components: Library (Lib)
messages: 342842
nosy: Marco Sulla
priority: normal
severity: normal
status: open
title: `python3 -m venv NAME`: virtualenv is not portable
type: enhancement
versions: Python 3.9

___
Python tracker 

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



[issue36962] Cant sort ModuleInfo instances

2019-05-19 Thread Eric V. Smith


Eric V. Smith  added the comment:

Unfortunately your change isn't backward compatible with the existing 
(namedtuple) version.

I expect this to fail in the dataclass version:
>>> finder, name, ispkg = list(pkgutil.iter_modules(None))[0]

And since this is an enhancement, it can only go in to 3.8. And the window is 
closing for that, so it's more likely to be 3.9, if we decide that backward 
compatibility isn't important here.

--
nosy: +eric.smith
type:  -> enhancement
versions:  -Python 3.6, Python 3.7

___
Python tracker 

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



[issue36957] Speed up math.isqrt

2019-05-19 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:


New changeset a5119e7d75c9729fc36c059d05f3d7132e7f6bb4 by Serhiy Storchaka in 
branch 'master':
bpo-36957: Add _PyLong_Rshift() and _PyLong_Lshift(). (GH-13416)
https://github.com/python/cpython/commit/a5119e7d75c9729fc36c059d05f3d7132e7f6bb4


--

___
Python tracker 

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



Why is augmented assignment of a tuple with iterable unpacking invalid syntax?

2019-05-19 Thread Eugene Alterman

a = 1, 2, 3

b = *a,   # assignment - OK
b += *a,  # augmented assignment - syntax error

Need to enclose in parenthesis:

b += (*a,)

Why isn't it allowed with an augmented assignment, while it is OK with a 
regular assignment?


--
https://mail.python.org/mailman/listinfo/python-list


Leo 5.9 released

2019-05-19 Thread Edward K. Ream
Leo 5.9 final, http://leoeditor.com, is now available on [GitHub](
https://github.com/leo-editor/leo-editor).

Leo is an IDE, outliner and PIM, as described [here](
http://leoeditor.com/preface.html).

**The highlights of Leo 5.9**

This will be the last version of Leo that supports Python 2.

Major features
- LeoWapp: Leo in a browser.
- Optional syntax coloring using pygments.
  Optional: you may use @color & @font directives instead of pygments
styles.
- Integrated debugger.

Other features
- *Experimental*: nested @clean nodes, useful for LaTex files.
- A major refactoring of the code that writes external files.
- Better error recovery.
- Support for continuous integration with TravisCI.
- More than 50 minor bug fixes.

**Links**

- Leo's home page: http://leoeditor.com
- [Documentation](http://leoeditor.com/leo_toc.html)
- [Tutorials](http://leoeditor.com/tutorial.html)
- [Video tutorials](http://leoeditor.com/screencasts.html)
- [Forum](http://groups.google.com/group/leo-editor)
- [Download](http://sourceforge.net/projects/leo/files/)
- [Leo on GitHub](https://github.com/leo-editor/leo-editor)
- [LeoVue](https://github.com/kaleguy/leovue#leo-vue)
- [What people are saying about Leo](http://leoeditor.com/testimonials.html)
- [A web page that displays .leo files](http://leoeditor.com/load-leo.html)
- [More links](http://leoeditor.com/leoLinks.html)

Edward
--
Edward K. Ream: edream...@gmail.com Leo: http://leoeditor.com/
--
-- 
https://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


EuroPython 2019: Sponsor brochure available

2019-05-19 Thread M.-A. Lemburg
We are pleased to present our EuroPython 2019 Sponsor Brochure:

  * https://ep2019.europython.eu/sponsor/brochure/ *

We have worked with our designer to compile all relevant information
about the conference in a nice to read brochure, you can use to
discuss a possible sponsorship in your company.

If you have questions, please contact our sponsor team at
sponsor...@europython.eu.

Once you have decided, please sign up via the form on our sponsor
package page.

https://ep2019.europython.eu/sponsor/packages/


Early-bird sponsorship deal
---

If you are quick to decide, you can benefit from a 10% early-bird
discount we give on sponsor packages, if you sign up today (Friday,
May 17):

https://ep2019.europython.eu/sponsor/packages/



Dates and Venues


EuroPython will be held from July 8-14 2019 in Basel, Switzerland, at
the Congress Center Basel (BCC) for the main conference days (Wed-Fri)
and the FHNW Muttenz for the workshops/trainings/sprints days
(Mon-Tue, Sat-Sun).

For more details, please have a look at our website and the FAQ:

https://ep2019.europython.eu/faq


Help spread the word


Please help us spread this message by sharing it on your social
networks as widely as possible. Thank you !

Link to the blog post:

https://blog.europython.eu/post/184937371007/europython-2019-sponsor-brochure-available

Tweet:

https://twitter.com/europython/status/1129286303055568896


Enjoy,
--
EuroPython 2019 Team
https://ep2019.europython.eu/
https://www.europython-society.org/

-- 
https://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


Re: The if is not working properly

2019-05-19 Thread Cameron Simpson

On 18May2019 13:22, nobelio  wrote:
When you print the variable “a” it appears as True, but the program is 
it is not getting in the if a==True:


It may be that "a" is not the Boolean value True but something else. But 
that is just a guess. Please reply and paste in a small example 
programme showing this problem.


Cheers,
Cameron Simpson 
--
https://mail.python.org/mailman/listinfo/python-list


ANN: distlib 0.2.9 released on PyPI

2019-05-19 Thread Vinay Sajip via Python-announce-list
I've recently released version 0.2.9 of distlib on PyPI [1]. For 
newcomers,distlib is a library of packaging functionality which is intended to 
beusable as the basis for third-party packaging tools.
The main changes in this release are as follows:
* Updated default PyPI URL to https://pypi.org/pypi.
* Relaxed metadata format checks to ignore 'Provides'.
* Fixed #33, #34: simplified script template.
* Fixed #115: Relaxed check for '..' in wheel archive entries by not  checking 
filename parts, only directory segments.
* Fixed #116: Corrected parsing of credentials from URLs.
* Fixed #122: Skipped entries in archive entries ending with '/' (directories)  
when verifying or installing.
* Commented out Disqus comment section in documentation.
A more detailed change log is available at [2].
Please try it out, and if you find any problems or have any suggestions for 
improvements,please give some feedback using the issue tracker! [3]
Regards,
Vinay Sajip
[1] https://pypi.org/project/distlib/0.2.9/[2] 
https://distlib.readthedocs.io/en/latest/overview.html#change-log-for-distlib[3]
 https://bitbucket.org/pypa/distlib/issues/new

-- 
https://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


  1   2   >