[issue31241] ast col_offset wrong for list comprehensions, generators and tuples

2018-11-25 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

I am not sure what parts of this PR should be backported if either.

--

___
Python tracker 

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



[issue32035] Documentation of zipfile.ZipFile().writestr() fails to mention that 'data' may also be bytes

2018-11-25 Thread miss-islington


miss-islington  added the comment:


New changeset af009fbcdb00fffced653792eb7af6b72f2521e3 by Miss Islington (bot) 
in branch '3.6':
bpo-32035: Fix words about strings and bytes in zipfile documentation. 
(GH-10592)
https://github.com/python/cpython/commit/af009fbcdb00fffced653792eb7af6b72f2521e3


--
nosy: +miss-islington

___
Python tracker 

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



[issue32035] Documentation of zipfile.ZipFile().writestr() fails to mention that 'data' may also be bytes

2018-11-25 Thread miss-islington


miss-islington  added the comment:


New changeset 89a3087d40feed3ca78033319389437bb4b5bcd7 by Miss Islington (bot) 
in branch '3.7':
bpo-32035: Fix words about strings and bytes in zipfile documentation. 
(GH-10592)
https://github.com/python/cpython/commit/89a3087d40feed3ca78033319389437bb4b5bcd7


--
nosy: +miss-islington, miss-islington

___
Python tracker 

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



[issue32035] Documentation of zipfile.ZipFile().writestr() fails to mention that 'data' may also be bytes

2018-11-25 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
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



[issue35148] cannot activate a venv environment on a Swiss German windows

2018-11-25 Thread Roundup Robot


Change by Roundup Robot :


--
keywords: +patch
pull_requests: +9949

___
Python tracker 

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



[issue35310] select which was interrupted by EINTR isn't re-run if the timeout has passed

2018-11-25 Thread Brian Maissy


Brian Maissy  added the comment:

I believe the offending line in the source is this break statement:
https://github.com/python/cpython/blob/master/Modules/selectmodule.c#L339

--

___
Python tracker 

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



[issue35148] cannot activate a venv environment on a Swiss German windows

2018-11-25 Thread Mike Pagel


Change by Mike Pagel :


--
nosy: +mpagel

___
Python tracker 

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



[issue35309] Typo in urllib.request warning: cpath → capath

2018-11-25 Thread Boštjan Mejak

Boštjan Mejak  added the comment:

Created a PR based on this issue. See: 
https://github.com/python/cpython/pull/10699

--
nosy: +PedanticHacker

___
Python tracker 

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



[issue35310] select which was interrupted by EINTR isn't re-run if the timeout has passed

2018-11-25 Thread Brian Maissy


New submission from Brian Maissy :

If a call to select.select() was interrupted by a signal and the select syscall 
set an errno of EINTR, then under PEP 475 the select call should be re-executed.

If, however, there is a signal handler which takes enough time that the 
select's timeout expires, select() is not retried, and the rlist is returned 
as-is (with fds in it which are not ready for reading).

Under this condition, either select() should be re-run with a timeout of 0, or 
the fd lists should be emptied before returning.

Example code which reproduces the problem attached.

--
files: select_eintr.py
messages: 330388
nosy: Brian Maissy
priority: normal
severity: normal
status: open
title: select which was interrupted by EINTR isn't re-run if the timeout has 
passed
type: behavior
versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8
Added file: https://bugs.python.org/file47945/select_eintr.py

___
Python tracker 

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



[issue35310] select which was interrupted by EINTR isn't re-run if the timeout has passed

2018-11-25 Thread Oran Avraham


Change by Oran Avraham :


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

___
Python tracker 

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



[issue35309] Typo in urllib.request warning: cpath → capath

2018-11-25 Thread Boštjan Mejak

Change by Boštjan Mejak :


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

___
Python tracker 

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



[issue35309] Typo in urllib.request warning: cpath → capath

2018-11-25 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9953

___
Python tracker 

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



[issue35309] Typo in urllib.request warning: cpath → capath

2018-11-25 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9954

___
Python tracker 

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



[issue35309] Typo in urllib.request warning: cpath → capath

2018-11-25 Thread Benjamin Peterson

Benjamin Peterson  added the comment:


New changeset 158695817d736df8b18682866033c87e46252309 by Benjamin Peterson 
(Boštjan Mejak) in branch 'master':
closes bpo-35309: cpath should be capath (GH-10699)
https://github.com/python/cpython/commit/158695817d736df8b18682866033c87e46252309


--
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



[issue35311] exception unpickling error causes `multiprocessing.Pool` to hang forever

2018-11-25 Thread Anthony Sottile


Anthony Sottile  added the comment:

`concurrent.futures` is affected as well:

```
import concurrent.futures

class E(Exception):
def __init__(self, a1, a2):
Exception.__init__(self, '{}{}'.format(a1, a2))

def f(_):
raise E(1, 2)

with concurrent.futures.ProcessPoolExecutor(2) as exe:
for _ in exe.map(f, (1,)):
pass
```

--

___
Python tracker 

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



[issue35081] Move internal headers to Include/internal/

2018-11-25 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9955

___
Python tracker 

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



[issue35307] Command line help example is missing "--prompt" option

2018-11-25 Thread Karthikeyan Singaravelan


Karthikeyan Singaravelan  added the comment:

Thanks for the report. Would you like to propose a PR for this? I think this is 
an easy issue where the new help string for --help needs to be updated at 
https://github.com/python/cpython/blob/master/Doc/using/venv-create.inc

--
nosy: +vinay.sajip, xtreak

___
Python tracker 

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



[issue35311] exception unpickling error causes `multiprocessing.Pool` to hang forever

2018-11-25 Thread Anthony Sottile


New submission from Anthony Sottile :

```
import multiprocessing

class E(Exception):
def __init__(self, a1, a2):
Exception.__init__(self, '{}{}'.format(a1, a2))

def f(_):
raise E(1, 2)

multiprocessing.Pool(1).map(f, (1,))
```


Running this causes a hang:

```
$ python3.7 t2.py 
Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.7/multiprocessing/pool.py", line 496, in 
_handle_results
task = get()
  File "/usr/lib/python3.7/multiprocessing/contrnection.py", line 251, in recv
return _ForkingPickler.loads(buf.getbuffer())
TypeError: __init__() missing 1 required positional argument: 'a2'

```

Upon eventual `^C`

```
^CTraceback (most recent call last):
Process ForkPoolWorker-1:
  File "t2.py", line 10, in 
multiprocessing.Pool(1).map(f, (1,))
  File "/usr/lib/python3.7/multiprocessing/pool.py", line 290, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
  File "/usr/lib/python3.7/multiprocessing/pool.py", line 677, in get
self.wait(timeout)
  File "/usr/lib/python3.7/multiprocessing/pool.py", line 674, in wait
Traceback (most recent call last):
  File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
self.run()
  File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run
self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.7/multiprocessing/pool.py", line 110, in worker
task = get()
  File "/usr/lib/python3.7/multiprocessing/queues.py", line 352, in get
res = self._reader.recv_bytes()
  File "/usr/lib/python3.7/multiprocessing/connection.py", line 216, in 
recv_bytes
buf = self._recv_bytes(maxlength)
  File "/usr/lib/python3.7/multiprocessing/connection.py", line 407, in 
_recv_bytes
buf = self._recv(4)
  File "/usr/lib/python3.7/multiprocessing/connection.py", line 379, in _recv
chunk = read(handle, remaining)
KeyboardInterrupt
self._event.wait(timeout)
  File "/usr/lib/python3.7/threading.py", line 552, in wait
signaled = self._cond.wait(timeout)
  File "/usr/lib/python3.7/threading.py", line 296, in wait
waiter.acquire()
KeyboardInterrupt
Traceback (most recent call last):
  File "/usr/lib/python3.7/multiprocessing/util.py", line 265, in 
_run_finalizers
finalizer()
  File "/usr/lib/python3.7/multiprocessing/util.py", line 189, in __call__
res = self._callback(*self._args, **self._kwargs)
  File "/usr/lib/python3.7/multiprocessing/pool.py", line 611, in 
_terminate_pool
"Cannot have cache with result_hander not alive")
AssertionError: Cannot have cache with result_hander not alive
```

(I've also tried this against master@158695817d736df8b18682866033c87e46252309)

--
components: Library (Lib)
messages: 330397
nosy: Anthony Sottile
priority: normal
severity: normal
status: open
title: exception unpickling error causes `multiprocessing.Pool` to hang forever
versions: Python 3.7, Python 3.8

___
Python tracker 

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



[issue35081] Move internal headers to Include/internal/

2018-11-25 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset ec13b9322d95a651606219469fc7b7e9c977f248 by Victor Stinner in 
branch 'master':
bpo-35081: Add Include/internal/pycore_tupleobject.h (GH-10705)
https://github.com/python/cpython/commit/ec13b9322d95a651606219469fc7b7e9c977f248


--

___
Python tracker 

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



[issue35313] test_embed fails in travis CI when tests are executed from a virtual environment

2018-11-25 Thread Karthikeyan Singaravelan


New submission from Karthikeyan Singaravelan :

I noticed GCC related test always failing in Travis but it's optional and 
builds were always green. It's consistent and related to test_embed. It seems 
that the tests are ran from a virtual environment for GCC that causes some 
difference in the prefix for the new tests added in test_embed. With virtual 
environment prefix points to virtual environment path and not to /usr/local. 
Other tests are ran with built CPython and not with virtual environment hence 
tests pass. To reproduce this build CPython and activate a virtual environment 
to run test_embed under the virtual environment. I thought to file it anyway as 
reference and I don't know if the tests need to be fixed or Travis config. 

Sample failure in Travis : 
https://travis-ci.org/tirkarthi/cpython/builds/459615265

   cpython git:(test_embed_travis) ./python.exe -m venv test_venv
   cpython git:(test_embed_travis) ./test_venv/bin/python -m test 
--fail-env-changed -v test.test_embed
== CPython 3.8.0a0 (heads/master:f0e0f2008d, Nov 26 2018, 11:08:07) [Clang 
7.0.2 (clang-700.1.81)]
== Darwin-14.4.0-x86_64-i386-64bit little-endian
== cwd: 
/Users/karthikeyansingaravelan/stuff/python/cpython/build/test_python_11655
== CPU count: 4
== encodings: locale=UTF-8, FS=utf-8
Run tests sequentially
0:00:00 load avg: 2.40 [1/1] test.test_embed
test_bpo20891 (test.test_embed.EmbeddingTests) ... ok
test_forced_io_encoding (test.test_embed.EmbeddingTests) ... ok
test_initialize_pymain (test.test_embed.EmbeddingTests) ... ok
test_initialize_twice (test.test_embed.EmbeddingTests) ... ok
test_pre_initialization_api (test.test_embed.EmbeddingTests) ... ok
test_pre_initialization_sys_options (test.test_embed.EmbeddingTests) ... ok
test_subinterps_different_ids (test.test_embed.EmbeddingTests) ... ok
test_subinterps_distinct_state (test.test_embed.EmbeddingTests) ... ok
test_subinterps_main (test.test_embed.EmbeddingTests) ... ok
test_init_default_config (test.test_embed.InitConfigTests) ... FAIL
test_init_dev_mode (test.test_embed.InitConfigTests) ... FAIL
test_init_env (test.test_embed.InitConfigTests) ... FAIL
test_init_from_config (test.test_embed.InitConfigTests) ... FAIL
test_init_global_config (test.test_embed.InitConfigTests) ... FAIL
test_init_isolated (test.test_embed.InitConfigTests) ... FAIL

==
FAIL: test_init_default_config (test.test_embed.InitConfigTests)
--
Traceback (most recent call last):
  File 
"/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_embed.py", 
line 488, in test_init_default_config
self.check_config("init_default_config", {})
  File 
"/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_embed.py", 
line 483, in check_config
self.check_core_config(config, expected, env)
  File 
"/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_embed.py", 
line 450, in check_core_config
self.assertEqual(core_config, expected)
AssertionError: {'ins[248 chars] 0, 'coerce_c_locale': 0, 
'coerce_c_locale_war[722 chars]': 0} != {'ins[248 chars] 0, 
'filesystem_encoding': 'utf-8', 'filesyste[824 chars]': 0}
  {'_check_hash_pycs_mode': 'default',
   '_frozen': 0,
   '_install_importlib': 1,
   'allocator': None,
   'argv': [],
   'base_exec_prefix': '/usr/local',
   'base_prefix': '/usr/local',
   'buffered_stdio': 1,
   'bytes_warning': 0,
   'coerce_c_locale': 0,
   'coerce_c_locale_warn': 0,
   'dev_mode': 0,
   'dump_refs': 0,
-  'exec_prefix': '/usr/local',
+  'exec_prefix': 
'/Users/karthikeyansingaravelan/stuff/python/cpython/test_venv',
   'faulthandler': 0,
   'filesystem_encoding': 'utf-8',
   'filesystem_errors': 'surrogateescape',
   'hash_seed': 0,
   'home': None,
   'import_time': 0,
   'inspect': 0,
   'install_signal_handlers': 1,
   'interactive': 0,
   'isolated': 0,
   'malloc_stats': 0,
   'module_search_path_env': None,
   'optimization_level': 0,
   'parser_debug': 0,
-  'prefix': '/usr/local',
+  'prefix': '/Users/karthikeyansingaravelan/stuff/python/cpython/test_venv',
   'program': None,
   'program_name': './_testembed',
   'pycache_prefix': None,
   'quiet': 0,
   'show_alloc_count': 0,
   'show_ref_count': 0,
   'site_import': 1,
   'stdio_encoding': 'utf-8',
   'stdio_errors': 'strict',
   'tracemalloc': 0,
   'use_environment': 1,
   'use_hash_seed': 0,
   'user_site_directory': 1,
   'utf8_mode': 0,
   'verbose': 0,
   'warnoptions': [],
   'write_bytecode': 1,
   'xoptions': []}

==
FAIL: test_init_dev_mode (test.test_embed.InitConfigTests)
--
Traceback (most recent call last):
  File 
"/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/test/test_embed.py", 
line 586, in test_init_dev_mode
self.check_config("init_dev_mode", config)
  File 

[issue35300] Document what functions are suitable for use with the lru_cache

2018-11-25 Thread Raymond Hettinger


Change by Raymond Hettinger :


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

___
Python tracker 

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



[issue35312] lib2to3.pgen2.parse.ParseError is not roundtrip pickleable

2018-11-25 Thread Anthony Sottile


Change by Anthony Sottile :


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

___
Python tracker 

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



[issue35300] Document what functions are suitable for use with the lru_cache

2018-11-25 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
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



[issue35300] Document what functions are suitable for use with the lru_cache

2018-11-25 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset c7074007272f257a0efab76f03e6b400c30a51b4 by Raymond Hettinger 
(Miss Islington (bot)) in branch '3.7':
bpo-35300: Add usage note to the lru_cache() docs (GH-10707) (GH-10708)
https://github.com/python/cpython/commit/c7074007272f257a0efab76f03e6b400c30a51b4


--

___
Python tracker 

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



[issue35300] Document what functions are suitable for use with the lru_cache

2018-11-25 Thread Raymond Hettinger


Raymond Hettinger  added the comment:


New changeset 6c12091ca67e8ec2960652ef7a763d0de772f799 by Raymond Hettinger 
(Miss Islington (bot)) in branch '3.6':
bpo-35300: Add usage note to the lru_cache() docs (GH-10707) (GH-10709)
https://github.com/python/cpython/commit/6c12091ca67e8ec2960652ef7a763d0de772f799


--

___
Python tracker 

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



[issue35081] Move internal headers to Include/internal/

2018-11-25 Thread STINNER Victor


Change by STINNER Victor :


--
pull_requests: +9956

___
Python tracker 

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



[issue35081] Move internal headers to Include/internal/

2018-11-25 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 8ac6539d85b481fc6b5e9145446b07e591b2caba by Victor Stinner in 
branch 'master':
bpo-35081: Add _PyTuple_CAST() (GH-10704)
https://github.com/python/cpython/commit/8ac6539d85b481fc6b5e9145446b07e591b2caba


--

___
Python tracker 

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



[issue35300] Document what functions are suitable for use with the lru_cache

2018-11-25 Thread miss-islington


miss-islington  added the comment:


New changeset f0e0f2008d160cdd7e5bc02ea61c43f8c7b2b82f by Miss Islington (bot) 
(Raymond Hettinger) in branch 'master':
bpo-35300: Add usage note to the lru_cache() docs (GH-10707)
https://github.com/python/cpython/commit/f0e0f2008d160cdd7e5bc02ea61c43f8c7b2b82f


--
nosy: +miss-islington

___
Python tracker 

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



[issue35300] Document what functions are suitable for use with the lru_cache

2018-11-25 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9959

___
Python tracker 

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



[issue35300] Document what functions are suitable for use with the lru_cache

2018-11-25 Thread miss-islington


Change by miss-islington :


--
pull_requests: +9958

___
Python tracker 

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



[issue35312] lib2to3.pgen2.parse.ParseError is not roundtrip pickleable

2018-11-25 Thread Anthony Sottile


Change by Anthony Sottile :


--
title: lib2to3.pgen2.parser.ParseError is not roundtrip pickleable -> 
lib2to3.pgen2.parse.ParseError is not roundtrip pickleable

___
Python tracker 

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



[issue35312] lib2to3.pgen2.parser.ParseError is not roundtrip pickleable

2018-11-25 Thread Anthony Sottile


New submission from Anthony Sottile :

related to https://bugs.python.org/issue35311

encountered here: https://gitlab.com/pycqa/flake8/issues/473

minimal reproduction:


class TestPickleableException(unittest.TestCase):
def test_ParseError(self):
err = ParseError('msg', 2, None, (1, 'context'))
err2 = pickle.loads(pickle.dumps(err))
self.assertEqual(vars(err), vars(err2))


==
ERROR: test_ParseError (lib2to3.tests.test_parser.TestPickleableException)
--
Traceback (most recent call last):
  File "/home/asottile/workspace/cpython/Lib/lib2to3/tests/test_parser.py", 
line 628, in test_ParseError
err2 = pickle.loads(pickle.dumps(err))
TypeError: __init__() missing 3 required positional arguments: 'type', 'value', 
and 'context'

--
components: Library (Lib)
messages: 330404
nosy: Anthony Sottile
priority: normal
severity: normal
status: open
title: lib2to3.pgen2.parser.ParseError is not roundtrip pickleable
versions: Python 3.7, Python 3.8

___
Python tracker 

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



[issue35145] sqlite3: optionally autoconvert table_info's DATETIME fields

2018-11-25 Thread Robert Pollak


Robert Pollak  added the comment:

So my workaround is of course
```
table = pd.read_sql_query('select * from table', con)
column_type = pd.read_sql_query('PRAGMA table_info("table")', con)['type']
datetimes = table.columns[column_type == 'DATETIME']
table.loc[:, datetimes] = table.loc[:, datetimes].apply(pd.to_datetime)
```

I would be interested in creating a pull request for the 
`detect_types=CONVERT_DATETIME` argument that I described. Is there any chance 
to get that merged? I currently see 541 open cpython pull requests labeled 
"awaiting review" :-/

--

___
Python tracker 

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



[issue35306] OSError [WinError 123] when testing if pathlib.Path('*') (asterisks) exists

2018-11-25 Thread Eryk Sun


Eryk Sun  added the comment:

Path.exists should ignore all OSError exceptions, as os.path.exists does. 
Barring that, I suppose for Windows we could add EINVAL to IGNORED_ERROS. 

The problem with ValueError was already addressed in issue 33721.

--
components: +Windows
nosy: +eryksun, paul.moore, serhiy.storchaka, steve.dower, tim.golden, zach.ware

___
Python tracker 

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



[issue35309] Typo in urllib.request warning: cpath → capath

2018-11-25 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset 8c1592e53a8981451f59050198da34a584160b4e by Benjamin Peterson 
(Miss Islington (bot)) in branch '3.6':
closes bpo-35309: cpath should be capath (GH-10702)
https://github.com/python/cpython/commit/8c1592e53a8981451f59050198da34a584160b4e


--

___
Python tracker 

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



[issue35309] Typo in urllib.request warning: cpath → capath

2018-11-25 Thread Benjamin Peterson


Benjamin Peterson  added the comment:


New changeset 6a528ccb4c09933c434be1011b2f5e148170d3a1 by Benjamin Peterson 
(Miss Islington (bot)) in branch '3.7':
closes bpo-35309: cpath should be capath (GH-10701)
https://github.com/python/cpython/commit/6a528ccb4c09933c434be1011b2f5e148170d3a1


--

___
Python tracker 

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