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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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'
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
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
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
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
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
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
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
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
Ian Norton added the comment:
This may also cause https://bugs.python.org/issue35644
--
___
Python tracker
<https://bugs.python.org/issue43749>
___
___
Pytho
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
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
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
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
Ian H added the comment:
Proposed patch is in https://github.com/python/cpython/pull/25487.
--
___
Python tracker
<https://bugs.python.org/issue43895>
___
___
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
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
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
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
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
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
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
__
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
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
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
Change by Ian Fisher :
--
nosy: +iafisher
___
Python tracker
<https://bugs.python.org/issue26651>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Ian Fisher :
--
nosy: +iafisher
___
Python tracker
<https://bugs.python.org/issue19065>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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)
[[...], [...
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
Change by Ian Good :
--
keywords: +patch
pull_requests: +13056
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue34975>
___
___
Python-
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
Change by Ian Good :
--
nosy: +icgood
___
Python tracker
<https://bugs.python.org/issue36889>
___
___
Python-bugs-list mailing list
Unsubscribe:
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"
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
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
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
Change by Ian Remmel :
--
title: netrc parding is overly strict -> netrc parsing is overly strict
___
Python tracker
<https://bugs.python.org/issue34908>
___
_
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
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
Changes by Ian Bell :
--
type: -> crash
___
Python tracker
<http://bugs.python.org/issue15198>
___
___
Python-bugs-list mailing list
Unsubscri
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
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
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
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
Changes by Ian Cordasco :
--
nosy: +icordasc
___
Python tracker
<http://bugs.python.org/issue10510>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Changes by Ian Cordasco :
--
nosy: +icordasc
___
Python tracker
<http://bugs.python.org/issue21540>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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 - 100 of 190 matches
Mail list logo