[issue10438] list an example for calling static methods from WITHIN classes

2010-11-16 Thread Ian
New submission from Ian : Concerning this section of the docs: http://docs.python.org/library/functions.html#staticmethod There is no example for calling a static method from another static method within the same class. As I discovered later, it's simple: C.f() -- from inside the cla

[issue10438] list an example for calling static methods from WITHIN classes

2010-11-16 Thread Ian
Ian added the comment: Am I to understand that self.f() is a valid way to call a static method? Can you see how that would run counter to intuition for someone who is familiar with other languages? Given that, I would make the following (more precise) change: < It can be called either

[issue10438] list an example for calling static methods from WITHIN classes

2010-11-16 Thread Ian
Ian added the comment: Disregard my previous comment; calling self.f() does not work from a static method. I stand by my previous suggestion, but I'll clarify it like this: "Note: you must also use the C.f() syntax when calling from a static method within t

[issue38300] Documentation says destuction of TemporaryDirectory object will also delete it, but it does not.

2019-09-27 Thread Ian
New submission from Ian : The documentation found here https://docs.python.org/3.7/library/tempfile.html#tempfile.TemporaryDirectory states the following "On completion of the context or destruction of the temporary directory object the newly created temporary directory and all its con

[issue38300] Documentation says destuction of TemporaryDirectory object will also delete it, but it does not.

2019-09-27 Thread Ian
Ian added the comment: I'm sorry, I should've thought to check my python version. I was on 3.6.3 which it would not be deleted, updated to 3.6.8 and it works as intended. -- resolution: -> not a bug stage: -> resolved status: open -> closed ver

[issue34798] pprint ignores the compact parameter for dicts

2021-10-25 Thread Ian
Ian added the comment: I came across this and was confused by it too. I also don't understand the justification with not having dicts to be affected by the `compact` parameter. If the "compact form" is having separate entries or elements on one line, instead of having each el

[issue10438] list an example for calling static methods from WITHIN classes

2017-07-09 Thread Ian
Ian added the comment: I agree that the use case is probably rare. I agree that to someone intimately familiar with the "self-consistent rules" of Python, the correctness of the C.f() approach is probably obvious. However, your documentation says: Static methods in Python are

[issue10438] list an example for calling static methods from WITHIN classes

2017-07-11 Thread Ian
Ian added the comment: I would hope that the docs would cater to people who aren't sure how the language works (and who want to confirm that they are using proper patterns). If people already know how the language works, they won't need the docs. Whether or not you refer to Java an

[issue10438] list an example for calling static methods from WITHIN classes

2017-07-12 Thread Ian
Ian added the comment: As indicated earlier, I would prefer to see clear instructions on how to call a class's static method from another static method within the same class. Currently, it's only clear how to call from outside the class. If that's not going to happen, then I

[issue46550] __slots__ updates despite being read-only

2022-01-27 Thread Ian Lee
New submission from Ian Lee : Hi there - I admit that I don't really understand the internals here, so maybe there is a good reason for this, but I thought it was weird when I just ran across it. If I create a new class `A`, and set it's `__slots`: ```python ➜ ~ docker run -it p

[issue46550] __slots__ updates despite being read-only

2022-01-27 Thread Ian Lee
Ian Lee added the comment: @sobolevn - Hmm, interesting.. I tested in python 3.9 which I had available, and I can reproduce your result, but I think it's different because you are using a tuple. If I use a list then I see my same reported behavior in 3.9: ```python Python 3.9.10 (main

[issue46550] __slots__ updates despite being read-only

2022-01-28 Thread Ian Lee
Ian Lee added the comment: @ronaldoussoren - right, I agree that I think that raising the AttributeErrors is the right thing. The part that feels like a bug to me is that the exception is saying it is read only and yet it is not being treated it that way (even though as you point out, the

[issue1167] gdbm/ndbm 1.8.1+ needs libgdbm_compat.so

2007-09-15 Thread Ian Kelly
New submission from Ian Kelly: The ndbm functions in gdbm 1.8.1+ require the gdbm_compat library in addition to gdbm. -- components: Build, Extension Modules files: gdbm_ndbm.diff messages: 55939 nosy: ikelly severity: normal status: open title: gdbm/ndbm 1.8.1+ needs libgdbm_compat.so

[issue12059] hashlib does not handle missing hash functions correctly

2011-05-11 Thread Ian Wienand
New submission from Ian Wienand : If one of the hash functions isn't defined in _hashlib, the code suggests it should just be skipped === # this one has no builtin implementation, don't define it pass === This doesn't happen however; due to ImportError n

[issue10748] zipfile does not write empty ZIP structure if close() called after __init__() as doc suggests

2010-12-21 Thread Ian Stevens
New submission from Ian Stevens : The zipfile documentation (http://docs.python.org/library/zipfile.html) states: "If the file is created with mode 'a' or 'w' and then close()d without adding any files to the archive, the appropriate ZIP structures for an empty archiv

[issue10748] zipfile does not write empty ZIP structure if close() called after __init__() as doc suggests

2010-12-21 Thread Ian Stevens
Ian Stevens added the comment: Yes, I'm using 2.6. If this is not the expected behaviour in 2.6, the doc should reflect that with a "New in version 2.7" note. -- ___ Python tracker <http://bugs.pyt

[issue11220] https sslv3 error 14077417: illegal parameter

2011-02-15 Thread Ian Wetherbee
New submission from Ian Wetherbee : Certain https urls do not open using urllib2 (py2.6) and urllib(py3.1), but they open using the latest version of curl and firefox. To reproduce: >>> import urllib.request >>> urllib.request.urlopen("https://ui2web1.apps

[issue11220] https sslv3 error 14077417: illegal parameter

2011-02-16 Thread Ian Wetherbee
Ian Wetherbee added the comment: The server seems to be sending a bad TLS handshake, so curl falls back on SSLv3 with TLS disabled. curl 7.20.1 (x86_64-redhat-linux-gnu) libcurl/7.20.1 NSS/3.12.8.0 zlib/1.2.3 libidn/1.16 libssh2/1.2.4 Protocols: dict file ftp ftps http https imap imaps ldap

[issue11220] https sslv3 error 14077417: illegal parameter

2011-02-16 Thread Ian Wetherbee
Ian Wetherbee added the comment: Any solution for 2.x? I'm using this with twisted. -- resolution: rejected -> status: pending -> open ___ Python tracker <http://bugs.python.

[issue11220] https sslv3 error 14077417: illegal parameter

2011-02-16 Thread Ian Wetherbee
Ian Wetherbee added the comment: This works for 2.x, I'm closing this issue: # custom HTTPS opener, banner's oracle 10g server supports SSLv3 only import httplib, ssl, urllib2, socket class HTTPSConnectionV3(httplib.HTTPSConnection): def __init__(self, *args

[issue3037] in output

2008-06-04 Thread Ian Bicking
New submission from Ian Bicking <[EMAIL PROTECTED]>: I updated to sphinx trunk and made just a few small changes in my template, and I'm now seeing: Note specifically "", which comes right before extrahead. -- a

[issue3037] in output

2008-06-04 Thread Ian Bicking
Ian Bicking <[EMAIL PROTECTED]> added the comment: You can see the source that produces this in http://svn.pythonpaste.org/Paste/trunk at revision 7387 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3037] in output

2008-06-04 Thread Ian Bicking
Ian Bicking <[EMAIL PROTECTED]> added the comment: Armin says this is a bug that has now been resolved in Jinja ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3512] Change fsync to use fullfsync on platforms (like OS X) that have/need it

2008-08-06 Thread Ian Charnas
New submission from Ian Charnas <[EMAIL PROTECTED]>: fsync on OSX does not actually flush the file to disk as is desired. This is a problem because application developers rely on fsync for file integrity. SQLite [1] and MySQL [2] and other major database systems all use 'fullfsy

[issue3512] Change fsync to use fullfsync on platforms (like OS X) that have/need it

2008-08-06 Thread Ian Charnas
Ian Charnas <[EMAIL PROTECTED]> added the comment: My patch is against trunk, but really this fix should be applied to all versions that will have future releases. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3517] PATCH - Providing fullfsync on supported platforms

2008-08-07 Thread Ian Charnas
New submission from Ian Charnas <[EMAIL PROTECTED]>: Python currently provides os.fsync to call the POSIX 'fsync' on platforms that support it. While this function forces the operating system to force a file buffer to the storage device, data may still be waiting in the hardwa

[issue3512] Change fsync to use fullfsync on platforms (like OS X) that have/need it

2008-08-07 Thread Ian Charnas
Ian Charnas <[EMAIL PROTECTED]> added the comment: Done. See 3517 http://bugs.python.org/issue3517 On Thu, Aug 7, 2008 at 12:53 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > Guido van Rossum <[EMAIL PROTECTED]> added the comment: > > Based on discussion in

[issue3517] PATCH - Providing fullfsync on supported platforms

2008-08-07 Thread Ian Charnas
Ian Charnas <[EMAIL PROTECTED]> added the comment: Sounds fair enough. I was looking forward to the glitz and glamor of the os module, but I'll settle for a good seat in fcntl. Here's a patch implementing just that. -ian Added file: http://bugs.python.org/file11074/fullf

[issue4056] :Class: causes exception

2008-10-06 Thread Ian Bicking
New submission from Ian Bicking <[EMAIL PROTECTED]>: I used a reference like :Class:`something` (note the capitalization) and got this exception: Traceback (most recent call last): File "/home/ianb/src/env/lib/python2.4/site-packages/sphinx/__init__.py", l

[issue8426] multiprocessing.Queue fails to get() very large objects

2010-04-16 Thread Ian Davis
New submission from Ian Davis : I'm trying to parallelize some scientific computing jobs using multiprocessing.Pool. I've also tried rolling my own Pool equivalent using Queues. In trying to return very large result objects from Pool.map()/imap() or via Queue.put(), I'

[issue1167] gdbm/ndbm 1.8.1+ needs libgdbm_compat.so

2008-02-25 Thread Ian Kelly
Ian Kelly added the comment: I'm not sure why you think this patch would be backwards incompatible. I've tested it with gdbm-1.8.0 and gdbm-1.7.3, and it works for those. __ Tracker <[EMAIL PROTECTED]> <http://bugs.p

[issue4330] wsgiref.validate doesn't accept arguments to readline

2008-11-15 Thread Ian Bicking
New submission from Ian Bicking <[EMAIL PROTECTED]>: The method wsgiref.validate:InputWrapper.readline doesn't take any arguments. It should take an optional size argument. Though this isn't part of the WSGI specification, the cgi module uses this argument when parsing

[issue4330] wsgiref.validate doesn't accept arguments to readline

2008-11-15 Thread Ian Bicking
Ian Bicking <[EMAIL PROTECTED]> added the comment: This renders wsgiref.validate.validator completely useless, because it cannot be used with any existing code. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue4330] wsgiref.validate doesn't accept arguments to readline

2008-11-15 Thread Ian Bicking
Ian Bicking <[EMAIL PROTECTED]> added the comment: Yes, and I've wanted to deprecate paste.lint, but I can't because people use it over wsgiref.validate because it had this change applied. Yes, cgi.FieldStorage changed, but now that it's changed wsgiref needs to be com

[issue4330] wsgiref.validate doesn't accept arguments to readline

2008-11-16 Thread Ian Bicking
Ian Bicking <[EMAIL PROTECTED]> added the comment: cgi started using this argument due to the potential of a DoS attack without the length limit. So undoing this in cgi (even as an option) would be a regression. ___ Python tracker <[EMAIL PROTECTE

[issue38242] Revert the new asyncio Streams API

2022-03-22 Thread Ian Good
Change by Ian Good : -- nosy: +icgood nosy_count: 9.0 -> 10.0 pull_requests: +30142 pull_request: https://github.com/python/cpython/pull/13143 ___ Python tracker <https://bugs.python.org/issu

[issue34975] start_tls() difficult when using asyncio.start_server()

2019-10-28 Thread Ian Good
Ian Good added the comment: #36889 was reverted, so this is not resolved. I'm guessing this needs to be moved to 3.9 now too. Is my original PR worth revisiting? https://github.com/python/cpython/pull/13143/files -- resolution: fixed -> status: closed

[issue43749] venv module does not copy the correct python exe

2021-04-06 Thread Ian Norton
New submission from Ian Norton : On windows, the venv module does not copy the correct python exe if the current running exe (eg sys.executable) has been renamed (eg, named python3.exe) venv will only make copies of python.exe, pythonw.exe, python_d.exe or pythonw_d.exe. If for example the

[issue43749] venv module does not copy the correct python exe

2021-04-06 Thread Ian Norton
Ian Norton added the comment: This may also cause https://bugs.python.org/issue35644 -- ___ Python tracker <https://bugs.python.org/issue43749> ___ ___ Pytho

[issue43749] venv module does not copy the correct python exe

2021-04-06 Thread Ian Norton
Change by Ian Norton : -- keywords: +patch pull_requests: +23954 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25216 ___ Python tracker <https://bugs.python.org/issu

[issue43819] ExtensionFileLoader Does Not Implement invalidate_caches

2021-04-12 Thread Ian H
New submission from Ian H : Currently there's no easy way to get at the internal cache of module spec objects for compiled extension modules. See https://github.com/python/cpython/blob/20ac34772aa9805ccbf082e700f2b033291ff5d2/Python/import.c#L401-L415. For example, these module spec ob

[issue43870] C API Functions Bypass __import__ Override

2021-04-16 Thread Ian H
New submission from Ian H : Some of the import-related C API functions are documented as bypassing an override to builtins.__import__. This appears to be the case, but the documentation is incomplete in this regard. For example, PyImport_ImportModule is implemented by calling PyImport_Import

[issue43895] Unnecessary Cache of Shared Object Handles

2021-04-20 Thread Ian H
New submission from Ian H : While working on another project I noticed that there's a cache of shared object handles kept inside _PyImport_FindSharedFuncptr. See https://github.com/python/cpython/blob/b2b6cd00c6329426fc3b34700f2e22155b44168c/Python/dynload_shlib.c#L51-L55. It appears

[issue43895] Unnecessary Cache of Shared Object Handles

2021-04-20 Thread Ian H
Ian H added the comment: Proposed patch is in https://github.com/python/cpython/pull/25487. -- ___ Python tracker <https://bugs.python.org/issue43895> ___ ___

[issue43895] Unnecessary Cache of Shared Object Handles

2021-04-23 Thread Ian H
Change by Ian H : -- keywords: +patch pull_requests: +24282 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25487 ___ Python tracker <https://bugs.python.org/issu

[issue45081] dataclasses that inherit from Protocol subclasses have wrong __init__

2021-09-11 Thread Ian Good
Ian Good added the comment: I believe this was a deeper issue that affected all classes inheriting Protocol, causing a TypeError on even the most basic case (see attached): Traceback (most recent call last): File "/.../test.py", line 14, in MyClass() File "/.../test.p

[issue45081] dataclasses that inherit from Protocol subclasses have wrong __init__

2021-09-12 Thread Ian Good
Ian Good added the comment: Julian, That is certainly a workaround, however the behavior you are describing is inconsistent with PEP-544 in both word and intention. From the PEP: > To explicitly declare that a certain class implements a given protocol, it > can be used as a regula

[issue45241] python REPL leaks local variables when an exception is thrown

2021-09-19 Thread Ian Henderson
New submission from Ian Henderson : To reproduce, copy the following code: import gc gc.collect() objs = gc.get_objects() for obj in objs: try: if isinstance(obj, X): print(obj) except NameError: class X: pass def f(): x = X() raise

[issue45241] python REPL leaks local variables when an exception is thrown

2021-09-19 Thread Ian Henderson
Ian Henderson added the comment: Ah, you're right -- it looks like the 'objs' global is what's keeping these objects alive. Sorry for the noise. -- stage: -> resolved status: open -> closed ___ Python tracker <https

[issue45335] Default TIMESTAMP converter in sqlite3 ignores time zone

2021-09-30 Thread Ian Fisher
New submission from Ian Fisher : The SQLite converter that the sqlite3 library automatically registers for TIMESTAMP columns (https://github.com/python/cpython/blob/main/Lib/sqlite3/dbapi2.py#L66) ignores the time zone even if it is present and always returns a naive datetime object. I

[issue45335] Default TIMESTAMP converter in sqlite3 ignores time zone

2021-10-02 Thread Ian Fisher
Ian Fisher added the comment: Substitute "UTC offset" for "time zone" in my comment above. I have attached a minimal Python program demonstrating data loss from this bug. -- Added file: https://bugs.python.org/file50324/timestamp.py __

[issue45335] Default TIMESTAMP converter in sqlite3 ignores UTC offset

2021-10-04 Thread Ian Fisher
Ian Fisher added the comment: Unfortunately fixing this will have to be considered a backwards-incompatible change, since Python doesn't allow naive and aware datetime objects to be compared, so if sqlite3 starts returning aware datetimes, existing code might break. Alternatively, pe

[issue45335] Default TIMESTAMP converter in sqlite3 ignores UTC offset

2021-10-05 Thread Ian Fisher
Ian Fisher added the comment: > Another option could be to deprecate the current behaviour and then change it > to being timezone aware in Python 3.13. This sounds like the simplest option. I'd be interested in working on this myself, if you think it's something tha

[issue45335] Default TIMESTAMP converter in sqlite3 ignores UTC offset

2021-10-05 Thread Ian Fisher
Ian Fisher added the comment: Okay, I started a discussion here: https://discuss.python.org/t/fixing-sqlite-timestamp-converter-to-handle-utc-offsets/10985 -- ___ Python tracker <https://bugs.python.org/issue45

[issue26651] Deprecate register_adapter() and register_converter() in sqlite3

2021-10-07 Thread Ian Fisher
Change by Ian Fisher : -- nosy: +iafisher ___ Python tracker <https://bugs.python.org/issue26651> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19065] sqlite3 timestamp adapter chokes on timezones

2021-10-07 Thread Ian Fisher
Change by Ian Fisher : -- nosy: +iafisher ___ Python tracker <https://bugs.python.org/issue19065> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45335] Default TIMESTAMP converter in sqlite3 ignores UTC offset

2021-10-24 Thread Ian Fisher
Change by Ian Fisher : -- keywords: +patch pull_requests: +27469 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29200 ___ Python tracker <https://bugs.python.org/issu

[issue45611] pprint - low width overrides depth folding

2021-10-26 Thread Ian Currie
New submission from Ian Currie : Reproducible example: >>> from pprint import pprint >>> data = [["aa"],[2],[3],[4],[5]] >>> pprint(data) [["aa"], [2], [3], [4], [5]] >>> pprint(data, depth=1) [[...], [...

[issue45858] Deprecate default converters in sqlite3

2021-11-21 Thread Ian Fisher
New submission from Ian Fisher : Per discussion at https://discuss.python.org/t/fixing-sqlite-timestamp-converter-to-handle-utc-offsets/, the default converters in SQLite3 have several bugs and are probably not worth continuing to maintain, so I propose deprecating them and removing them in

[issue45858] Deprecate default converters in sqlite3

2021-11-21 Thread Ian Fisher
Ian Fisher added the comment: See also bpo-26651 for a related proposal to deprecate the converter/adapter infrastructure entirely. The proposal in this bug is more limited: remove the default converters (though I think the default adapters should stay), but continue to allow users to

[issue26651] Deprecate register_adapter() and register_converter() in sqlite3

2021-11-21 Thread Ian Fisher
Ian Fisher added the comment: See bpo-45858 for a more limited proposal to only deprecate the default converters. -- ___ Python tracker <https://bugs.python.org/issue26

[issue45677] [doc] improve sqlite3 docs

2021-11-21 Thread Ian Fisher
Ian Fisher added the comment: I think it would also be helpful to make the examples at the top simpler/more idiomatic, e.g. using a context manager for the connection and calling conn.execute directly instead of spawning a cursor. I think the information about the isolation_level parameter

[issue39480] referendum reference is needlessly annoying

2020-01-28 Thread Ian Jackson
New submission from Ian Jackson : The section "Fancier Output Formatting" has the example below. This will remind many UK readers of the 2016 EU referendum. About half of those readers will be quite annoyed. This annoyance seems entirely avoidable; a different example which did

[issue39619] os.chroot is not enabled on HP-UX builds

2020-02-12 Thread Ian Norton
New submission from Ian Norton : When building on HP-UX using: The configure stage fails to detect chroot(). This is due to setting _XOPEN_SOURCE to a value higher than 500. The fix for this is to not set _XOPEN_SOURCE when configuring for HP-UX -- components: Interpreter Core

[issue43047] logging.config formatters documentation is out of sync with code

2021-01-27 Thread Ian Wienand
New submission from Ian Wienand : The dict based configuration does not mention the "class" option, and neither the ini-file or dict sections mention the style tag. -- components: Library (Lib) messages: 385825 nosy: iwienand priority: normal severity: normal status:

[issue43047] logging.config formatters documentation is out of sync with code

2021-01-27 Thread Ian Wienand
Change by Ian Wienand : -- keywords: +patch pull_requests: +23182 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24358 ___ Python tracker <https://bugs.python.org/issu

[issue41389] Garbage Collector Ignoring Some (Not All) Circular References of Identical Type

2020-07-24 Thread Ian O'Shaughnessy
New submission from Ian O'Shaughnessy : Using a script that has two classes A and B which contain a circular reference variable, it is possible to cause a memory leak that is not captured by default gc collection. Only by running gc.collect() manually do the circular references get coll

[issue41389] Garbage Collector Ignoring Some (Not All) Circular References of Identical Type

2020-07-24 Thread Ian O'Shaughnessy
Ian O'Shaughnessy added the comment: For a long running process (greatly exceeding a million iterations) the uncollected garbage will become too large for the system (many gigabytes). A manual execution of the gc would be required. That seems flawed given that Python is a garbage coll

[issue41389] Garbage Collector Ignoring Some (Not All) Circular References of Identical Type

2020-07-27 Thread Ian O'Shaughnessy
Ian O'Shaughnessy added the comment: "Leak" was likely the wrong word. It does appear problematic though. The loop is using a fixed number of variables (yes, there are repeated dynamic allocations, but they fall out of scope with each iteration), only one of these variables

[issue41389] Garbage Collector Ignoring Some (Not All) Circular References of Identical Type

2020-07-27 Thread Ian O'Shaughnessy
Ian O'Shaughnessy added the comment: >I don't know of any language that guarantees all garbage will be collected >"right away". Do you? I'm not an expert in this domain, so, no. I am however attempting to find a way to mitigate this issue. Do you have any su

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-08 Thread Ian Strawbridge
Ian Strawbridge added the comment: Further to the information I posted on Stack Overflow (referred to above) relating to reproducing emoticon characters from Idle under Ubuntu, I have done more testing. Based on some of the code/comments above, I tried modifications which I hoped might

[issue42225] Tkinter hangs or crashes when displaying astral chars

2020-11-08 Thread Ian Strawbridge
Ian Strawbridge added the comment: On Ubuntu, Tk version is showing as 8.6.10 On Windows 10, Tk version is showing as 8.6.9 -- ___ Python tracker <https://bugs.python.org/issue42

[issue42442] Tarfile to stdout documentation example

2020-11-23 Thread Ian Laughlin
New submission from Ian Laughlin : Recommend adding example to tarfile documentation to provide example of writing a tarfile to stdout. example: files = [(file_1, filename_1), (file_2, filename_2)] with tarfile.open(fileobj=sys.stdout.buffer, mode = 'w|gz') as tar: for file

[issue13952] mimetypes doesn't recognize .csv

2012-02-06 Thread Ian Davis
New submission from Ian Davis : The mimetypes module does not respond with "text/csv" for files that end in ".csv", and I think it should :) For goodness sake, "text/tab-delimited-values" is in there as ".tsv", and that seems much less used (to m

[issue14561] python-2.7.2-r3 suffers test failure at test_mhlib

2012-04-12 Thread Ian Delaney
New submission from Ian Delaney : Testing test suite of pyth-2.7. Re-running failed tests in verbose mode Re-running test 'test_mhlib' in verbose mode test_basic (test.test_mhlib.MhlibTests) ... ok test_listfolders (test.test_mhlib.MhlibTests) ... FAIL It seems to be pinned down t

[issue31426] Segfault during GC of generator object; invalid gi_frame?

2017-09-12 Thread Ian Wienand
New submission from Ian Wienand: Using 3.5.2-2ubuntu0~16.04.3 (Xenial) we see an occasional segfault during garbage collection of a generator object A full backtrace is attached, but the crash appears to be triggered inside gen_traverse during gc --- (gdb) info args gen = 0x7f22385f0150

[issue31426] Segfault during GC of generator object; invalid gi_frame?

2017-09-12 Thread Ian Wienand
Changes by Ian Wienand : Added file: https://bugs.python.org/file47135/crash-py-bt.txt ___ Python tracker <https://bugs.python.org/issue31426> ___ ___ Python-bugs-list m

[issue34975] start_tls() difficult when using asyncio.start_server()

2019-05-06 Thread Ian Good
Change by Ian Good : -- keywords: +patch pull_requests: +13056 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34975> ___ ___ Python-

[issue34975] start_tls() difficult when using asyncio.start_server()

2019-05-09 Thread Ian Good
Ian Good added the comment: I added start_tls() to StreamWriter. My implementation returns a new StreamWriter that should be used from then on, but it could be adapted to modify the current writer in-place (let me know). I've added docs, an integration test, and done some additional

[issue36889] Merge StreamWriter and StreamReader into just asyncio.Stream

2019-05-16 Thread Ian Good
Change by Ian Good : -- nosy: +icgood ___ Python tracker <https://bugs.python.org/issue36889> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32541] cgi.FieldStorage constructor assumes all lines terminate with \n

2018-01-12 Thread Ian Craggs
New submission from Ian Craggs : Using cgi.FieldStorage in an HTTP server in a subclass of BaseHTTPRequestHandler, parsing the request with: form = cgi.FieldStorage(fp=self.rfile, headers=self.headers, environ={"REQUEST_METHOD"

[issue33281] ctypes.util.find_library not working on macOS

2018-04-14 Thread Ian Burgwin
New submission from Ian Burgwin : On Python 3.7.0a4 and later (including 3.7.0b4), find_library currently always returns None on macOS. It works on 3.7.0a3 and earlier. Tested on macOS 10.11 and 10.13. Expected result: Tested on 3.6.5, 3.7.0a1 and 3.7.0a3: >>> from ctypes.ut

[issue34908] netrc parding is overly strict

2018-10-05 Thread Ian Remmel
New submission from Ian Remmel : This started as a bug report for httpie https://github.com/jakubroztocil/httpie/issues/717#issuecomment-426125261 And became a bug report for requests https://github.com/requests/requests/issues/4813 > But turned out to be an issue with Python's netr

[issue34908] netrc parding is overly strict

2018-10-05 Thread Ian Remmel
Ian Remmel added the comment: Yea, somehow, I suspected it was because there's no formal spec :) I guess technically it's an enhancement, but given that configuration dictated by third-parties can break the environment, it does feel like a bug. For example, I can't use

[issue34908] netrc parsing is overly strict

2018-10-05 Thread Ian Remmel
Change by Ian Remmel : -- title: netrc parding is overly strict -> netrc parsing is overly strict ___ Python tracker <https://bugs.python.org/issue34908> ___ _

[issue34975] start_tls() difficult when using asyncio.start_server()

2018-10-13 Thread Ian Good
New submission from Ian Good : There does not seem to be a public API for replacing the transport of the StreamReader / StreamWriter provided to the callback of a call to asyncio.start_server(). The only way I have found to use the new SSL transport is to update protected members of the

[issue15198] multiprocessing Pipe send of non-picklable objects doesn't raise error

2012-06-26 Thread Ian Bell
New submission from Ian Bell : When a non-picklable object is sent through a multiprocessing.Pipe, no exception is raised, instead when trying to read the other end of the pipe, a TypeError is raised: TypeError: Required argument 'handle' (pos 1) not found -- component

[issue15198] multiprocessing Pipe send of non-picklable objects doesn't raise error

2012-06-26 Thread Ian Bell
Changes by Ian Bell : -- type: -> crash ___ Python tracker <http://bugs.python.org/issue15198> ___ ___ Python-bugs-list mailing list Unsubscri

[issue15198] multiprocessing Pipe send of non-picklable objects doesn't raise error

2012-06-30 Thread Ian Bell
Ian Bell added the comment: I had issues with a class that I wrote myself. It is a rather involved data structure with all kinds of interesting things going on. Unfortunately I cannot put together a minimal working example that will cause a Python hang

[issue15198] multiprocessing Pipe send of non-picklable objects doesn't raise error

2012-07-01 Thread Ian Bell
Ian Bell added the comment: I have repaired my class so that it pickles properly, but that does not resolve the issue that if you send a non-picklable object through a pipe, it should raise an error, rather than hang. -- ___ Python tracker <h

[issue15340] OSError with "import random" when /dev/urandom doesn't exist (regression from 2.6)

2012-07-12 Thread Ian Wienand
New submission from Ian Wienand : Hi, Lib/random.py has a fallback if os.urandom() returns NotImplementedError --- from os import urandom as _urandom ... def seed(self, a=None): if a is None: try: a = long(_hexlify(_urandom(16)), 16) except

[issue15340] OSError with "import random" when /dev/urandom doesn't exist (regression from 2.6)

2012-09-07 Thread Ian Wienand
Ian Wienand added the comment: I'm not sure what systems are defined as critical or not. Although python is not really installable/configurable by end-users on ESXi, I noticed during development because we use python very early in the boot, before /dev/urandom appears for us (it comes f

[issue10510] distutils upload/register should use CRLF in HTTP requests

2014-04-22 Thread Ian Cordasco
Changes by Ian Cordasco : -- nosy: +icordasc ___ Python tracker <http://bugs.python.org/issue10510> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10510] distutils upload/register should use CRLF in HTTP requests

2014-04-27 Thread Ian Cordasco
Ian Cordasco added the comment: I've attached a patch that should fix this issue. Please review and let me know if changes are necessary. -- keywords: +patch Added file: http://bugs.python.org/file35067/compliant_distutils.patch ___ Python tr

[issue17994] Change necessary in platform.py to support IronPython

2014-05-18 Thread Ian Cordasco
Ian Cordasco added the comment: I missed the fact that the user gave me the information from sys.version: https://stackoverflow.com/questions/16545027/ironpython-error-in-url-request?noredirect=1#comment23847257_16545027 I'll throw together a failing test with this and run it against 2.7

[issue21540] PEP 8 should recommend "is not" and "not in"

2014-05-20 Thread Ian Cordasco
Changes by Ian Cordasco : -- nosy: +icordasc ___ Python tracker <http://bugs.python.org/issue21540> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10510] distutils upload/register should use CRLF in HTTP requests

2014-05-26 Thread Ian Cordasco
Ian Cordasco added the comment: Per discussion on twitter (https://twitter.com/merwok_/status/468518605135835136) I'm bumping this to make sure it's merged. -- ___ Python tracker <http://bugs.python.o

[issue16877] Odd behavior of ~ in os.path.abspath and os.path.realpath

2013-01-05 Thread Ian Shields
New submission from Ian Shields: Filespecs that start with ~ are not properly handled by os.path.realpath or os.path.abspath (and maybe other functions). Following console output from Fedora 17 using Puthon 3.2 illustrates the issue. Similar issue in 2.7 [ian@attic4 developerworks]$ cd .. [ian

[issue16877] Odd behavior of ~ in os.path.abspath and os.path.realpath

2013-01-06 Thread Ian Shields
Ian Shields added the comment: Regarding last comment. I had missed the comment in documentation fo os.path.join "Join one or more path components intelligently. If any component is an absolute path, all previous components (on Windows, including the previous drive letter, if there wa

[issue16877] Odd behavior of ~ in os.path.abspath and os.path.realpath

2013-01-06 Thread Ian Shields
Ian Shields added the comment: Oddity may be in the eye of the beholder. I've been programming and scripting for about 40 years, including several *IX shells and many other systems. I'm relatively new to Python. Mostly the results of doing things in Python are what I expect.

  1   2   >