[issue46428] Cython Build: '_PyErr_StackItem’ has no member named ‘exc_traceback’

2022-01-18 Thread YoSTEALTH
YoSTEALTH added the comment: Thanks @iritkatriel will close this, seems like people are aware of this bug as working on fix it :) -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue46428] 3.11.0a3 vs 3.11.0a4

2022-01-18 Thread YoSTEALTH
New submission from YoSTEALTH : Getting compilation error for an Cython project, since upgrade from `3.11.0a3` to `3.11.0a4`, same code. /opt/python/3.11/bin/python3 setup.py build_ext --inplace -j18 clean --all # 3.11.0a3 # prefix/usr includedir

[issue41475] __future__.annotations set to become default in Python 4.0?

2020-08-05 Thread YoSTEALTH
YoSTEALTH added the comment: @cool-RR since your patch focuses on ``3.7`` there might be a merge issue. There might be other place where ``4.0`` is mentioned though. Its better to let core dev like Raymond make the call. -- ___ Python tracker

[issue41475] __future__.annotations set to become default in Python 4.0?

2020-08-05 Thread YoSTEALTH
YoSTEALTH added the comment: @rhettinger https://bugs.python.org/issue41314 -- nosy: +YoSTEALTH ___ Python tracker <https://bugs.python.org/issue41475> ___ ___

[issue40841] Provide mimetypes.sniff API as stdlib

2020-07-29 Thread YoSTEALTH
YoSTEALTH added the comment: Start and end position of the signature must be accounted for, not all file signature start at ``0`` or ``< 512`` bytes Rather then writing all the signatures manually might be a good idea to use already collected resource like https://www.garykessler.

[issue41405] python 3.9.0b5 test

2020-07-27 Thread YoSTEALTH
YoSTEALTH added the comment: I compiled and tested for same issues in 3.8.5 and they exist as well. -- ___ Python tracker <https://bugs.python.org/issue41

[issue41405] python 3.9.0b5 test

2020-07-27 Thread YoSTEALTH
YoSTEALTH added the comment: >>> /opt/python/3.9.0/bin/python3 -m test.pythoninfo Python debug information CC.version: gcc (GCC) 10.1.0 Py_DEBUG: No (sys.gettotalrefcount() missing) _decimal.__libmpdec_version__: 2.5.0 builtins.float.double_format: IEEE, litt

[issue41405] python 3.9.0b5 test

2020-07-26 Thread YoSTEALTH
YoSTEALTH added the comment: while compiling i got this warning, maybe its related! gcc -pthread -c -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function

[issue41405] python 3.9.0b5 test

2020-07-26 Thread YoSTEALTH
New submission from YoSTEALTH : >>> /opt/python/3.9.0/bin/python3 -m test -uall == CPython 3.9.0b5 (default, Jul 22 2020, 13:13:23) [GCC 10.1.0] == Linux-5.8.0-1-MANJARO-x86_64-with-glibc2.31 little-endian == cwd: /tmp/test_python_39605æ == CPU count: 16 == encodings: locale=UTF-8, FS=u

[issue41314] PEP 563 and annotations __future__ mandatory version

2020-07-25 Thread YoSTEALTH
YoSTEALTH added the comment: @gvanrossum I found couple of odd places where 4.0 is mentioned like https://docs.python.org/3/library/array.html for example, should a new issue be created? I am not sure how many more there are. -- ___ Python

[issue41314] PEP 563 and annotations __future__ mandatory version

2020-07-25 Thread YoSTEALTH
Change by YoSTEALTH : -- versions: +Python 3.7 ___ Python tracker <https://bugs.python.org/issue41314> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41314] PEP 563 and annotations __future__ mandatory version

2020-07-25 Thread YoSTEALTH
Change by YoSTEALTH : -- keywords: +patch nosy: +YoSTEALTH nosy_count: 5.0 -> 6.0 pull_requests: +20758 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/21616 ___ Python tracker <https://bugs.p

[issue41375] `mode` security concern

2020-07-23 Thread YoSTEALTH
YoSTEALTH added the comment: I am closing this as its not a issue anymore... I was trying to solve a problem that has become a core feature! -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue41375] `mode` security concern

2020-07-23 Thread YoSTEALTH
New submission from YoSTEALTH : import os import stat import os.path def problem(tmp_path): # result: # --- # check: False # mode: 416 # create temp file fd = os.open(tmp_path, os.O_CREAT, 0o660) os.close(fd) # Directory is effected as well # os.mkdir

[issue40869] errno missing descriptions

2020-06-10 Thread YoSTEALTH
YoSTEALTH added the comment: Hello Arpit, Welcome to python bugs. I have already created the patch at https://github.com/python/cpython/pull/20665 if you feel like i missed something you can comment on it. That said there is always something to do with python, just keep your eye out

[issue40869] errno missing descriptions

2020-06-09 Thread YoSTEALTH
Change by YoSTEALTH : -- components: +C API ___ Python tracker <https://bugs.python.org/issue40869> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40869] errno missing descriptions

2020-06-05 Thread YoSTEALTH
Change by YoSTEALTH : -- versions: +Python 3.10 ___ Python tracker <https://bugs.python.org/issue40869> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40869] errno missing descriptions

2020-06-05 Thread YoSTEALTH
Change by YoSTEALTH : -- type: -> enhancement versions: +Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue40869> ___ ___ Py

[issue40869] errno missing descriptions

2020-06-05 Thread YoSTEALTH
Change by YoSTEALTH : -- keywords: +patch pull_requests: +19882 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20665 ___ Python tracker <https://bugs.python.org/issu

[issue40869] errno missing descriptions

2020-06-04 Thread YoSTEALTH
New submission from YoSTEALTH : `errno` https://docs.python.org/3/library/errno.html is missing description for symbols like `ECANCELED` https://www.gnu.org/software/libc/manual/html_node/Error-Codes.html There might be others missing description as well, i haven't investigated further

[issue37129] Add os.RWF_APPEND flag for os.pwritev

2020-05-23 Thread YoSTEALTH
YoSTEALTH added the comment: terry.reedy ok, recreated the patch. -- ___ Python tracker <https://bugs.python.org/issue37129> ___ ___ Python-bugs-list mailin

[issue37129] Add os.RWF_APPEND flag for os.pwritev

2020-05-23 Thread YoSTEALTH
Change by YoSTEALTH : -- pull_requests: +19604 pull_request: https://github.com/python/cpython/pull/20336 ___ Python tracker <https://bugs.python.org/issue37

[issue37129] Add os.RWF_APPEND flag for os.pwritev

2020-05-23 Thread YoSTEALTH
Change by YoSTEALTH : -- keywords: +patch pull_requests: +19603 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20335 ___ Python tracker <https://bugs.python.org/issu

[issue40367] ImportError: libffi.so.6

2020-05-23 Thread YoSTEALTH
YoSTEALTH added the comment: How did you get the Python installed in /opt/python/3.8.1? - I custom installed python. Maybe it was compiled against libffi 6, then you updated the system to libffi 7, so that Python would need a rebuild. - Yes, you are right about this. So i did rebuild

[issue40367] ImportError: libffi.so.6

2020-04-22 Thread YoSTEALTH
New submission from YoSTEALTH : >>> /opt/python/3.8.1/lib/python3 setup.py build_ext --inplace Traceback (most recent call last): File "./setup.py", line 1, in from setuptools import setup, find_packages File "/opt/python/3.8.1/lib/python3.8/site-package

[issue39673] TimeoutError

2020-02-18 Thread YoSTEALTH
YoSTEALTH added the comment: If nothing else, it could be a feature of next Python release as its appropriate that `TimeoutError` catches both `ETIME` and `ETIMEDOUT`. -- versions: +Python 3.9 -Python 3.8 ___ Python tracker <ht

[issue39673] TimeoutError

2020-02-18 Thread YoSTEALTH
YoSTEALTH added the comment: I am on Linux 5.5.2-1-MANJARO >>> sorted(errno.errorcode.items()) [(1, 'EPERM'), (2, 'ENOENT'), (3, 'ESRCH'), (4, 'EINTR'), (5, 'EIO'), (6, 'ENXIO'), (7, 'E2BIG'), (8, 'ENOEXEC'), (9, 'EBADF'), (10, 'ECHILD'), (11, 'EAGAIN'), (12, 'ENOMEM'), (13, 'EACC

[issue39673] TimeoutError

2020-02-18 Thread YoSTEALTH
YoSTEALTH added the comment: First example prints # Failed: [Errno 62] Timer expired Second example prints # Success: [Errno 11] Resource temporarily unavailable -- ___ Python tracker <https://bugs.python.org/issue39

[issue39673] TimeoutError

2020-02-18 Thread YoSTEALTH
YoSTEALTH added the comment: Since I provide `OSError` with appropriate `errono`, it raises that error for example: import os try: no = -11 raise OSError(-no, os.strerror(-no)) except BlockingIOError as e: print('Success:', e) # Success: [Errno 11] Resource temporarily

[issue39673] TimeoutError

2020-02-18 Thread YoSTEALTH
New submission from YoSTEALTH : import os try: no = -62 raise OSError(-no, os.strerror(-no)) except TimeoutError: print('Success') except OSError as e: print('Failed:', e) # Failed: [Errno 62] Timer expired Shouldn't `TimeoutError` catch this error? -- messages

[issue39234] `enum.auto()` incrementation value not specified.

2020-01-06 Thread YoSTEALTH
Change by YoSTEALTH : -- pull_requests: +17294 pull_request: https://github.com/python/cpython/pull/17878 ___ Python tracker <https://bugs.python.org/issue39

[issue39234] `enum.auto()` incrementation value not specified.

2020-01-06 Thread YoSTEALTH
Change by YoSTEALTH : -- keywords: +patch pull_requests: +17288 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17872 ___ Python tracker <https://bugs.python.org/issu

[issue39234] `enum.auto()` incrementation value not specified.

2020-01-06 Thread YoSTEALTH
New submission from YoSTEALTH : # enum in C # - enum { a, b, c } # a = 0 # b = 1 # b = 2 # enum in Python # -- class Count(enum.IntEnum): a = enum.auto() b = enum.auto() c = enum.auto() # a = 1 # b = 2 # b = 3 I am not sure why the `enum.auto

[issue37509] OSError preadv()

2019-12-25 Thread YoSTEALTH
YoSTEALTH added the comment: I am closing this topic as its right for python to raise OSError as `-errno` must be assigned to e.g. `OSError(-errno, os.strerror(-errno))` to raise appropriate exception. -- resolution: -> not a bug stage: -> resolved status: open -&g

[issue34938] Fix mimetype.init() to account for from import

2019-12-20 Thread YoSTEALTH
YoSTEALTH added the comment: I didn't receive any notification of replay on this topic. `_default_mime_types()` should never have been a function. This function should be safe to remove as its an internal function. This would avoid unneeded function call and globals used. Stuff like

[issue39053] Hide manually raised exception formatting

2019-12-15 Thread YoSTEALTH
New submission from YoSTEALTH : class Some_Class: def error(self): if not getattr(self, 'boo', None): raise Exception(f'`class {self.__class__.__name__}:` raised some error!') something = Some_Class() something.error() # This is how Error looks

[issue37509] OSError preadv()

2019-07-05 Thread YoSTEALTH
New submission from YoSTEALTH : import os import ctypes # Stdlib # -- def test_preadv_stdlib(path): fd = os.open(path, os.O_RDWR | os.O_CREAT) buffer = bytearray(10) buffers = [buffer] try: length = os.preadv(fd, buffers, 0, os.RWF_NOWAIT) # OSError: [Errno

[issue37352] Typo in documentation: "to making it easy"

2019-06-20 Thread YoSTEALTH
YoSTEALTH added the comment: programmers "plan" their code, they don't "design" it, as far as i know! -- ___ Python tracker <https://bug

[issue37352] Typo in documentation: "to making it easy"

2019-06-20 Thread YoSTEALTH
YoSTEALTH added the comment: "Writing test suites is very helpful, and you might want to plan your code based on expectation of making it easy for testing." -- nosy: +YoSTEALTH ___ Python tracker <https://bugs.python.o

[issue37299] RuntimeWarning is NOT raised

2019-06-17 Thread YoSTEALTH
YoSTEALTH added the comment: As far as i can tell "static analyzers" like flake8 and "type hints" like mypy does not detect this problem -- ___ Python tracker <https://bug

[issue37299] RuntimeWarning is NOT raised

2019-06-17 Thread YoSTEALTH
YoSTEALTH added the comment: Yes, this was the previous conclusion. In a large code base, its hard to find such solution easily! There are many cases where `await` is not called and `RuntimeWarning` is not raised. Hard to narrow down the exact problem. Maybe there needs to be a better way

[issue37299] RuntimeWarning is NOT raised

2019-06-15 Thread YoSTEALTH
New submission from YoSTEALTH : from asyncio import run async def true(): return True async def false(): return False async def error(): a = false() b = true() return await (a or b) # Good Error # "RuntimeWarning: coroutine 'true' was never awaited

[issue37129] Add RWF_APPEND flag

2019-06-05 Thread YoSTEALTH
Change by YoSTEALTH : -- nosy: +YoSTEALTH ___ Python tracker <https://bugs.python.org/issue37129> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34926] Adding "mime_type" method to pathlib.Path

2018-10-08 Thread YoSTEALTH
Change by YoSTEALTH : -- components: -Extension Modules ___ Python tracker <https://bugs.python.org/issue34926> ___ ___ Python-bugs-list mailing list Unsub

[issue34938] Fix mimetype.init() to account for from import

2018-10-08 Thread YoSTEALTH
New submission from YoSTEALTH : When a user uses from import, there is a flaw in how mimetype.init() updates its global references. # Option-1 (flawed) # - from mimetypes import init, types_map print(types_map.get('.gz')) # None init() # <- initialize print(types_map.

[issue34926] Adding "mine_type" method to pathlib.Path

2018-10-08 Thread YoSTEALTH
New submission from YoSTEALTH : How about adding basic "mime_type" method to "pathlib.Path" ? Code would do something like: import mimetypes def mime_type(name): """Mime-type of the file.""" find = name.rfind(

[issue31368] Add os.preadv() and os.pwritev()

2018-05-30 Thread YoSTEALTH
YoSTEALTH added the comment: I can't at the moment, i am out of country for couple more months. -- ___ Python tracker <https://bugs.python.org/issue31

[issue28134] socket.socket(fileno=fd) does not work as documented

2018-03-02 Thread YoSTEALTH
YoSTEALTH <rit...@stealthcentral.com> added the comment: It would be nice if "python" accounted for such low level os things. None the less client.detach() method works fine. I really did enjoy your talk, kinda bummed it was short and didn't get into more details. Than

[issue28134] socket.socket(fileno=fd) does not work as documented

2018-02-23 Thread YoSTEALTH
YoSTEALTH <rit...@stealthcentral.com> added the comment: Christian thank you for your reply, i really appreciate it. Lets analyze this a bit: - Technically speaking i can "return client" directly and it would NOT close the socket. - Shouldn't "inside" having re

[issue28134] socket.socket(fileno=fd) does not work as documented

2018-02-23 Thread YoSTEALTH
YoSTEALTH <rit...@stealthcentral.com> added the comment: I am using 3.7.0b1 i don't think this issue is fixed! # simple mockup: # -- def accept(sock): client, addr = sock.accept() inside = socket(fileno=client.fileno()) print(inside) # <__main__.Socket fd=

[issue32842] Fixing epoll timeout logics

2018-02-13 Thread YoSTEALTH
YoSTEALTH <rit...@stealthcentral.com> added the comment: my confusion comes from epoll.poll(timeout=-1, maxevents=-1) has nothing to do with selectors.BaseSelector.select(timeout=None) -- resolution: -> not a bug stage: patch review -> resolved status: op

[issue32842] Fixing epoll timeout logics

2018-02-13 Thread YoSTEALTH
Change by YoSTEALTH <rit...@stealthcentral.com>: -- pull_requests: +5474 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32842> ___

[issue32842] Fixing epoll timeout logics

2018-02-13 Thread YoSTEALTH
Change by YoSTEALTH <rit...@stealthcentral.com>: -- keywords: +patch pull_requests: +5472 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue32842] Fixing epoll timeout logics

2018-02-13 Thread YoSTEALTH
New submission from YoSTEALTH <rit...@stealthcentral.com>: # current if timeout is None: timeout = -1 elif timeout <= 0: timeout = 0 # changed if timeout is None: timeout = -1 elif timeout < -1: timeout = 0 what if "timeout=-1" ? - currently it would res

[issue31368] Add os.preadv() and os.pwritev()

2018-01-31 Thread YoSTEALTH
Change by YoSTEALTH <rit...@stealthcentral.com>: -- pull_requests: +5293 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31368> ___

[issue31356] Add context manager to temporarily disable GC

2018-01-31 Thread YoSTEALTH
YoSTEALTH <rit...@stealthcentral.com> added the comment: Actually i don't remember the last time where i saw anyone call a function using a "with" statement. This is very sloppy, sure PEP8 isn't ironclad but this is going to lead to confusion and we might have another case of

[issue31356] Add context manager to temporarily disable GC

2018-01-31 Thread YoSTEALTH
YoSTEALTH <rit...@stealthcentral.com> added the comment: ps, maybe a better name "DisabledZone" ? -- ___ Python tracker <rep...@bugs.python.org> <https://b

[issue31356] Add context manager to temporarily disable GC

2018-01-31 Thread YoSTEALTH
YoSTEALTH <rit...@stealthcentral.com> added the comment: Since "ensure_disabled" is a class https://docs.python.org/3.7/library/gc.html#gc.ensure_disabled it should be "EnsureDisabled" according to https://www.python.org/dev/peps/pep-0008/#class-names -

[issue31368] Add os.preadv() and os.pwritev()

2018-01-27 Thread YoSTEALTH
YoSTEALTH <rit...@stealthcentral.com> added the comment: Thank you Pablo Galindo for your amazingly hard work. Also Victor Stinner for your guidance, thanks you :) -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue32529] Call readinto in shutil.copyfileobj

2018-01-17 Thread YoSTEALTH
Change by YoSTEALTH <rit...@stealthcentral.com>: -- stage: patch review -> resolved status: open -> closed ___ Python tracker <rep...@bugs.python.org> <https://bugs.

[issue31368] Support asynchronous, non-blocking buffered reads (RWF_NONBLOCK)

2018-01-16 Thread YoSTEALTH
YoSTEALTH <rit...@stealthcentral.com> added the comment: According to this nginx test https://www.nginx.com/blog/thread-pools-boost-performance-9x/ there is a huge boost in performance when using thread poll for File IO. It is postulated that when preadv2() & RWF_NONBLO

[issue32561] Add API to io objects for non-blocking reads/writes

2018-01-16 Thread YoSTEALTH
YoSTEALTH <rit...@stealthcentral.com> added the comment: There will be lot of confusion using "buffered" & "unbuffered" terminology, since python already has BufferedIOBase (as mentioned by Martin). It would be more appropriate to create io.CachedIOBase and add

[issue31368] RWF_NONBLOCK

2018-01-13 Thread YoSTEALTH
YoSTEALTH <rit...@stealthcentral.com> added the comment: preadv2(2) syscall with RWF_NONBLOCK feature is now released starting linux4.14 https://kernelnewbies.org/Linux_4.14#Asynchronous_buffered_I.2FO_support -- ___ Python tracke

[issue32529] Call readinto in shutil.copyfileobj

2018-01-11 Thread YoSTEALTH
YoSTEALTH <rit...@stealthcentral.com> added the comment: here is the links to benchmark: https://repl.it/@altendky/timeit-of-proposed-shutilfileobjcopy https://gist.github.com/altendky/ff5ccee2baf9822dce69ae8aa66a0fdf https://paste.pound-python.org/show/urORPXztcbDlqXKTORAj/

[issue32529] Call readinto in shutil.copyfileobj

2018-01-11 Thread YoSTEALTH
Change by YoSTEALTH <rit...@stealthcentral.com>: -- pull_requests: +5014 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32529> ___

[issue32529] Call readinto in shutil.copyfileobj

2018-01-11 Thread YoSTEALTH
YoSTEALTH <rit...@stealthcentral.com> added the comment: Ok, updated the patch to account for: - improved memory usage for bytes io using readinto - still supporting negative length - potential encoding mismatch bug fix while using text io did i miss an

[issue32529] Call readinto in shutil.copyfileobj

2018-01-11 Thread YoSTEALTH
Change by YoSTEALTH <rit...@stealthcentral.com>: -- pull_requests: -5004 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32529> ___

[issue32529] Call readinto in shutil.copyfileobj

2018-01-11 Thread YoSTEALTH
Change by YoSTEALTH <rit...@stealthcentral.com>: -- keywords: +patch pull_requests: +5013 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue32529] Call readinto in shutil.copyfileobj

2018-01-11 Thread YoSTEALTH
YoSTEALTH <rit...@stealthcentral.com> added the comment: Martin, your points got me thinking... to make a proper copy of a file, it should be done using bytes! Text IO could easily lead to corrupting your file. for example (current function): with open(old_path, 'r', encoding='l

[issue32529] improved shutil.py function

2018-01-10 Thread YoSTEALTH
New submission from YoSTEALTH <rit...@stealthcentral.com>: improved "copyfileobj" function to use less memory -- messages: 309784 nosy: YoSTEALTH priority: normal pull_requests: 5004 severity: normal status: open title: improved shutil.py function type: performance vers

[issue32401] No module named '_ctypes'

2017-12-27 Thread YoSTEALTH
YoSTEALTH <rit...@stealthcentral.com> added the comment: Yes, it does work without pip. -- stage: -> resolved status: open -> closed ___ Python tracker <rep...@bugs.python.org> <https://bugs.

[issue32401] No module named '_ctypes'

2017-12-21 Thread YoSTEALTH
New submission from YoSTEALTH <rit...@stealthcentral.com>: I tried to install python3.7.0a3 just to test it out and i keep getting error: Traceback (most recent call last): File "/tmp/psi/Python-3.7.0a3/Lib/runpy.py", line 193, in _run_module_as_main "__main__",

[issue31368] RWF_NONBLOCK

2017-09-06 Thread YoSTEALTH
New submission from YoSTEALTH: Asynchronous, Non-blocking Buffered File Read "RWF_NONBLOCK" flag for os.open() Link: https://lwn.net/Articles/612483/ https://lwn.net/Articles/613068/ https://lwn.net/Articles/636967/ -- messages: 301508 nosy: YoSTEALTH priority: normal severi

[issue29186] TimeoutError isn't being raised?

2017-01-06 Thread YoSTEALTH
Changes by YoSTEALTH <rit...@stealthcentral.com>: -- resolution: -> not a bug status: open -> closed ___ Python tracker <rep...@bugs.python.org> <http://bugs.

[issue29186] TimeoutError isn't being raised?

2017-01-06 Thread YoSTEALTH
New submission from YoSTEALTH: TimeoutError isn't being raised? My Python Version: 3.5.1 (64bit, linux) # Document: https://docs.python.org/3/library/exceptions.html#TimeoutError """ exception TimeoutError Raised when a system function timed out at the system level. Corres

[issue29134] contextlib doc bug

2017-01-02 Thread YoSTEALTH
YoSTEALTH added the comment: typo: def ContextBase: to class ContextBase: -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue29134] contextlib doc bug

2017-01-02 Thread YoSTEALTH
YoSTEALTH added the comment: @SilentGhost You are right, I see it now! If this is the case maybe "ContextBaseClass" should be changed to "UserDefinedContextClass" (or something...) having "Base" in the class name was confusing, since module "io" has IO

[issue29134] contextlib doc bug

2017-01-02 Thread YoSTEALTH
New submission from YoSTEALTH: Link: https://docs.python.org/3/library/contextlib.html#contextlib.ContextDecorator "from contextlib import ContextDecorator class mycontext(ContextBaseClass, ContextDecorator):" "ContextBaseClass" is referenced but its no where t

[issue28861] Type Hints Syntax

2016-12-03 Thread YoSTEALTH
YoSTEALTH added the comment: I was told to post this in python-ideas and also i totally missed the most important part (type aliases) in my example (rushed it) -- status: open -> closed ___ Python tracker <rep...@bugs.python.org&

[issue28861] Type Hints Syntax

2016-12-03 Thread YoSTEALTH
New submission from YoSTEALTH: Type Hints Syntax - Goal: Is to make it easy to read function/methods arguments, yet keep the new and cool Type Hints. For example this is a code from one of my function. Its getting to that point of what the heck is going on here? def

[issue27852] itertools -> flatten_all()

2016-08-25 Thread YoSTEALTH
YoSTEALTH added the comment: Currently there is flatten() function in itertools Recipes section. This is what it does: -> a = ['one', 'plus', [b'two', b'three'], ['four', ('five', (1, {'e', 'ee'}, (2, (3, ))), ['six'])], generator()] <- ['o', 'n', 'e', 'p', 'l', 'u', 's', b'two', b

[issue27852] itertools -> flatten_all()

2016-08-24 Thread YoSTEALTH
New submission from YoSTEALTH: # Maybe a Recipe for itertools from collections.abc import Iterable def flatten_all(iterable): # -> 'one' # <- ['one'] # -> ['one', [b'two', b'three'], ['four', ('five', (1, {'e', 'ee'}, (2, (3, ))), ['six'])], generator()] # <- [

[issue27751] Itertools -> Recipes -> pairwise()

2016-08-12 Thread YoSTEALTH
YoSTEALTH added the comment: Tim, I get what you are saying good point. -- status: open -> closed ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.or

[issue27751] Itertools -> Recipes -> pairwise()

2016-08-12 Thread YoSTEALTH
New submission from YoSTEALTH: # Link: https://docs.python.org/3/library/itertools.html#itertools-recipes # Function pairwise() in Itertools -> Recipes could be improved!? Here is the code: import time import itertools def pairwise(iterable): "s -> (s0,s1), (s1,s

[issue27339] Security Issue: Typosquatting

2016-06-16 Thread YoSTEALTH
New submission from YoSTEALTH: I read this new article that explains Typosquatting well: http://incolumitas.com/2016/06/08/typosquatting-package-managers/ making it known here so python developers can address this issue accordingly! -- messages: 268692 nosy: YoSTEALTH priority: normal

[issue13033] Add shutil.chowntree

2015-12-04 Thread YoSTEALTH
YoSTEALTH added the comment: Can this chowntree() function proposed here be implemented? It would have saved me a bunch of time and its a good feature to have. -- nosy: +YoSTEALTH, r.david.murray ___ Python tracker <rep...@bugs.python.org>

[issue25790] shutil.chown function enhancement

2015-12-03 Thread YoSTEALTH
New submission from YoSTEALTH: A very simple but useful enhancement for shutil.chown function Currently "shutil.chown" function effects only one directory or file user/group permission by adding "recursive" parameter it can easily effect all sub-directories/

[issue25790] shutil.chown function enhancement

2015-12-03 Thread YoSTEALTH
YoSTEALTH added the comment: Thanks David. I hope this is what a patch file should be! Attached. -- keywords: +patch Added file: http://bugs.python.org/file41230/shutil.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.p

[issue13299] namedtuple row factory for sqlite3

2015-01-20 Thread YoSTEALTH
YoSTEALTH added the comment: note: sqlite_namedtuplerow.patch _cache method conflicts with attached database with say common table.column name like id Using namedtuple method over sqlite3.Row was a terrible idea for me. I thought namedtuple is like tuple so should be faster then dict! wrong