Ian Shields added the comment:
David, Tilde expansion is different to globbing. Globbing in Python doesn't
automatically do tilde expansion either.
>>> glob.glob("~")
[]
Looking at the documentation, I don't think it would be practical to add
documentation to e
Ian Shields added the comment:
I think that's an excellent resolution to the problem. Thank you.
--
___
Python tracker
<http://bugs.python.org/issue16877>
___
___
Ian Cordasco added the comment:
Was this already taken care of?
http://docs.python.org/2/library/thread.html?highlight=thread.lock#thread.lock.acquire
and
http://docs.python.org/3.3/library/_thread.html?highlight=thread.lock#_thread.lock.acquire
don't make any mention of returning
Ian Cordasco added the comment:
Thanks. I couldn't find it in the source but I just found
Modules/_threadmodule.c
I tested the method from the interpreter to confirm the changes I was making to
the docstring. Attached is a diff that covers the change.
--
Added file:
Changes by Ian Cordasco :
--
nosy: +icordasc, larry
___
Python tracker
<http://bugs.python.org/issue12779>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Ian Cordasco :
--
nosy: +icordasc
___
Python tracker
<http://bugs.python.org/issue6761>
___
___
Python-bugs-list mailing list
Unsubscribe:
Ian Cordasco added the comment:
As a further note, on python 2.6, I just touched a file called time.py, and in
the interpreter imported subprocess. It didn't hang because the file was empty
but it did generate a pyc file. This is almost certainly the root of your
problem. I doubt this
Ian Cordasco added the comment:
Could you give us the contents of your time.py file? I wonder if there's
something in that file that is causing the import to hang. It's the only reason
I can think of as to why the time.pyc file shows up.
Also, if you want to check before-hand,
Ian Cordasco added the comment:
Dave, at some point during the import of subprocess the time module is
apparently imported. Because of how imports work, it is importing your local
copy instead of the standard library version.
I would wager money that if you ran time python time.py (on your
Ian Cordasco added the comment:
Éric's suggestion is also implemented in python-requests if I remember
correctly. It allows for user-specified PEM files and tries to find the
operating system bundle. This would be a wonderful inclusion in the standard
library.
--
nosy: +ico
Changes by Ian Cordasco :
--
nosy: +icordasc
___
Python tracker
<http://bugs.python.org/issue19514>
___
___
Python-bugs-list mailing list
Unsubscribe:
Ian Cordasco added the comment:
Bumping this once more.
--
___
Python tracker
<http://bugs.python.org/issue10510>
___
___
Python-bugs-list mailing list
Unsub
Changes by Ian Cordasco :
--
nosy: +icordasc
___
Python tracker
<http://bugs.python.org/issue10721>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Ian Cordasco :
--
nosy: +icordasc
___
Python tracker
<http://bugs.python.org/issue17849>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Ian Cordasco :
--
nosy: +icordasc
___
Python tracker
<http://bugs.python.org/issue21308>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Ian Cordasco :
--
nosy: +icordasc
___
Python tracker
<http://bugs.python.org/issue3566>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Ian Cordasco :
--
nosy: +icordasc
___
Python tracker
<http://bugs.python.org/issue21039>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Ian Cordasco :
--
nosy: +icordasc
___
Python tracker
<http://bugs.python.org/issue19494>
___
___
Python-bugs-list mailing list
Unsubscribe:
Ian Cordasco added the comment:
> However, one sticking point is whether that optimization may also have
> adverse effects in terms of security (since we would always be sending auth
> headers, even when the server doesn't ask for it...).
Antoine's concern has always bee
Ian Beaver added the comment:
If there is any way to get this implemented, it is needed. For one, the docs
on memoryview make no mention that indexing and slicing doesn't work with
multi-dimensional data which led me to believe it was supported until I tried
using it. A second reas
Ian Beaver added the comment:
Its not multi-dimensional slicing to get a subset of objects as in Numpy, but
more the ability to slice a buffer containing a multi-dimensional array as raw
bytes. Buffer objects in Python2.7 are dimensionality naive so it works fine.
You were correct that I
Ian Beaver added the comment:
I found that the workaround suggested doesn't work when you have a
subclass of threading.Thread and you want to catch everything in the
module that contains the class to a common log.
Say you have a module with a socket server that spawns a thread on
accep
Ian Beaver added the comment:
Instead of using decorators, this is a slightly simpler modification to
the proposed workaround that allows for any subclassed run method to
also be caught.
def installThreadExcepthook():
"""
Workaround for sys.excepthook thread bu
Ian Donaldson added the comment:
For those not desiring the use of the chgat function and wishing
to avoid all the fun suggested in the last post (like me), and just
get a _cursesmodule built on Solaris 9 or 10... I enclose a simple patch.
--
nosy: +iandekit
Added file: http
Ian Donaldson added the comment:
Similarly, compile fails on Solaris 9 due to lack of sem_timedwait()
so here is a patch for that. Solaris 10 was the first Solaris
to have this function so the patch adapts for that case.
--
nosy: +iandekit
Added file: http://bugs.python.org/file14952
Ian Donaldson added the comment:
Similar to aix-patch, I enclose what I did for compilation
on Solaris 9, using macros from Solaris 10's headers.
These differ slightly to the aix ones, but I don't know if the
difference matters. (alignment related)
--
Added
New submission from Ian Donaldson :
whilst debugging the getcwd test on Solaris 9 I noticed that
the rmtree() failed, as on Solaris rmdir(2) returns EINVAL
if cwd is the named directory.
Fix is to reorder the rmtree and chdir, see attached patch.
--
components: Tests
files: EKIT.PATCH4
New submission from Ian Donaldson :
test_posix hung on Solaris 9 ... traced to getcwd test hanging.
This in turn was traced to the very long filename case...
It seems posixmodule was modified (since py2.4.3 at least)
to retry getcwd with a bigger buffer if ERANGE occurs.
However on Solaris
Ian Donaldson added the comment:
FWIW it hangs on Solaris 9 also (sparc + x86)
--
nosy: +iandekit
___
Python tracker
<http://bugs.python.org/issue5114>
___
___
Ian Bicking added the comment:
This has a similar purpose to virtualenv, but using an environmental
variable. An earlier package, workingenv, also used an environmental
variable, and this led to a set of problems.
The biggest problem is that the environmental variable is inherited by
Ian Bicking added the comment:
Also with respect to the patch, for consistency there needs to be
changes to distutils to make use of this variable. PYTHONUSERBASE
included changes so that you can install based on that variable.
--
___
Python
New submission from Ian Miers :
when calling help() from the python interpreter on a function
whose default argument is provided by another function
( e.g. def foo(bar=baz() ) : ), help will call baz().
This can cause problems because baz() can alter statefull
data like a file or
Ian Cordasco added the comment:
So I see the argument on both sides of this discussion. Having those optional
arguments for all the functions seems like an obvious blocker. If a submodule
is a blocker, what if we provide a context-manager to signal this?
--
nosy: +icordasc
Changes by Ian Lee :
--
nosy: +IanLee1521
___
Python tracker
<http://bugs.python.org/issue27187>
___
___
Python-bugs-list mailing list
Unsubscribe:
Ian Lee added the comment:
I think that it should be updated to specify that all dunders ('__all__',
'__version__', '__author__', etc) should be placed after the module docstring
and before any imports. See issue-27187-patch1.txt for a possible update
Ian Lee added the comment:
I might also suggest that the entire "Version bookkeeping" section could be
removed in this case, as it would be covered by my newly added dunder section.
--
___
Python tracker
<http://bugs.python.o
Changes by Ian Lee :
Added file: http://bugs.python.org/file43134/issue-27187-patch2.txt
___
Python tracker
<http://bugs.python.org/issue27187>
___
___
Python-bugs-list m
Ian Lee added the comment:
Are there any other concerns with the patch that I would be able to clean up?
--
nosy: +barry
___
Python tracker
<http://bugs.python.org/issue23
Ian Lee added the comment:
I added a comment on a pull request related to this that shows some of the
cases that we probably don't want to allow:
https://github.com/PyCQA/pycodestyle/pull/523#issuecomment-223464775
--
___
Python tracker
New submission from Ian Lee:
Noticed a couple methods in the text that aren't backtick quoted.
--
assignee: docs@python
components: Documentation
files: rst-formatting.txt
messages: 267015
nosy: IanLee1521, barry, docs@python
priority: normal
severity: normal
status: open
title
Ian Lee added the comment:
Good catch.
I'm uploading a new patch that addresses ``from __future__`` imports issue
explicitly.
--
___
Python tracker
<http://bugs.python.org/is
Changes by Ian Lee :
Added file: http://bugs.python.org/file43296/issue-27187-patch3.txt
___
Python tracker
<http://bugs.python.org/issue27187>
___
___
Python-bugs-list m
Changes by Ian Cordasco :
--
nosy: +icordasc
___
Python tracker
<http://bugs.python.org/issue27568>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Ian Cordasco:
In trying to add support for multiprocessing on Windows in Flake8, I found that
the behaviour of the module is significantly different than on Unix. If you
have a class that has class-level attributes on Unix, and you change them, put
the class into a Queue
Ian Cordasco added the comment:
Why did you remove Python 3.3? It's still affected by this behaviour.
--
___
Python tracker
<http://bugs.python.org/is
Ian Kelly added the comment:
The bug also occurs using 32-bit Python 3.3.1 on Windows 7.
--
nosy: +ikelly
___
Python tracker
<http://bugs.python.org/issue17
Changes by Ian Cordasco :
--
nosy: +icordasc
___
Python tracker
<http://bugs.python.org/issue12458>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Ian Cordasco:
Stemming from a StackOverflow question[1] and a conversation with Marc-Andre
Lemburg via email, I'm filing this issue without any easy way of confirming it
myself.
It seems that the logic in platform.python_implementation() has been obsoleted
by a c
Ian Cordasco added the comment:
This behaviour is allowed by the RFC but not encouraged. There's a difference
between MUST, SHOULD, and MAY
Sending this pre-emptively could well cause unexpected errors for users.
Changing the default even in 3.5 will make writing compatible code diff
New submission from Ian Kelly:
I expect this should result in a recursion depth exceeded error, not a
segmentation fault.
$ cat test.py
import itertools
l = []
it = itertools.chain.from_iterable(l)
l.append(it)
next(it)
$ python3 test.py
Segmentation fault (core dumped)
--
components
New submission from Ian Lee:
Minor update pep8 to specify explicitly that "Imports at top of file" refers
specifically to module level imports, per input from Nick Coghlan @
https://github.com/jcrocholl/pep8/pull/304#issuecomment-66939162
--
assignee: docs@python
Ian Lee added the comment:
So one concern that was brought up on GitHub was the fact that currently this
is not actually followed universally in the Python standard library. In
particular there are 636 errors in the standard library ``python pep8.py
--select E402 --statistics /usr/lib
Ian Lee added the comment:
I should add that I would be happy to patch the standard libraries to be
compliant w.r.t. the imports at top of the files.
--
___
Python tracker
<http://bugs.python.org/issue23
Changes by Ian Cordasco :
--
nosy: +icordasc
___
Python tracker
<http://bugs.python.org/issue23155>
___
___
Python-bugs-list mailing list
Unsubscribe:
Ian Cordasco added the comment:
Keep in mind, this could also be a problem with NetBSD's distribution of python.
--
___
Python tracker
<http://bugs.python.org/is
New submission from Ian Lee:
Per Guido's suggestion on the p...@python.org mailing list, I'm creating this
issue to update the argument annotation tests at
cpython/Lib/test/test_grammar.py to use the new style wording Guido requested
on GitHub [1] that I proposed and was merged int
Changes by Ian Lee :
--
title: Update grammar tests to use new style -> Update grammar tests to use new
style for annotated function definitions
___
Python tracker
<http://bugs.python.org/issu
New submission from Ian Kelly:
>>> '{:g}'.format(D('0.01'))
'0.01'
Formatted with '{:e}', the exponent would be -6, so per the formatting rules
described under the 'g' specifier at
https://docs.python.org/3/library/string.h
Ian Cordasco added the comment:
It's clearly no longer acceptable to include RC4 when the IETF has felt it
necessary to publish an RFC prohibiting its usage.
--
nosy: +icordasc
___
Python tracker
<http://bugs.python.org/is
Ian Cordasco added the comment:
FWIW, the proper section to reference now is 3.2 in RFC 7230
(https://tools.ietf.org/html/rfc7230#section-3.2)
--
nosy: +icordasc
___
Python tracker
<http://bugs.python.org/issue24
Ian Cordasco added the comment:
Also I'm marking this as affecting 3.3, 3.4, and 3.5. I haven't tested against
3.5, but it definitely fails on 3.4. I hope to be able to test against 3.5.0b2
tonight
--
versions: +Python 3.3, Python 3.4,
Changes by Ian Cordasco :
--
nosy: +icordasc
___
Python tracker
<http://bugs.python.org/issue24667>
___
___
Python-bugs-list mailing list
Unsubscribe:
Ian Macartney added the comment:
I don't have much experience with what should and shouldn't be in the python
docs, however I was recently bitten by a subtlety in signal/subprocess that
might be worth documenting.
Anything written to stdout in a signal handler could end up in the s
Ian Carroll added the comment:
Write still fails on 3.5.1 and OS X 10.11.2. I'm no dev, so can someone explain
how to use the patch while it's under review?
--
nosy: +Ian Carroll
___
Python tracker
<http://bugs.python.o
Ian Kelly added the comment:
The asyncio docs also have this note, so this is technically not a bug:
Note: In this documentation, some methods are documented as coroutines, even if
they are plain Python functions returning a Future. This is intentional to have
a freedom of tweaking the
New submission from Ian Kelly:
I was playing around with this class for adapting regular iterators to async
iterators using BaseEventLoop.run_in_executor:
import asyncio
class AsyncIteratorWrapper:
def __init__(self, iterable, loop=None, executor=None):
self._iterator = iter
Ian Kelly added the comment:
The idea is that the wrapped iterator is something potentially blocking, like a
database cursor that doesn't natively support asyncio. Usage would be something
like this:
async def get_data():
cursor.execute('select * from stuff')
a
Ian Kelly added the comment:
Fair enough. I think there should be some documentation though to the effect
that coroutines aren't robust to passing StopIteration across coroutine
boundaries. It's particularly surprising with PEP-492 coroutines, since those
aren't even iterators
Ian Kelly added the comment:
The place I'd expect to find it is in
https://docs.python.org/3/library/asyncio-task.html#coroutines, in the list of
"things a coroutine can do". The first two bullets in the list say that any
exceptions raised will be propagated. Maybe there s
Ian Kelly added the comment:
Chris Angelico suggested on python-list that another possibly useful thing to
do would be to add a "from __future__ import generator_stop" to
asyncio/futures.py. This would at least have the effect of causing "await
future" to raise a Run
New submission from Ian Lee:
Following up from discussion on python-ideas [1] about updating PEP-8 regarding
wrapping lines before rather than after binary operators.
--
files: wrap-before-binary-operator.patch
keywords: patch
messages: 263453
nosy: IanLee1521, gvanrossum
priority
Ian Lee added the comment:
Discussion link missing from msg263453:
https://mail.python.org/pipermail/python-ideas/2016-April/039774.html
--
___
Python tracker
<http://bugs.python.org/issue26
Ian Lee added the comment:
Link to GitHub branch with the patch as a commit [1].
[1] https://github.com/python/peps/compare/master...IanLee1521:issue26763
--
___
Python tracker
<http://bugs.python.org/issue26
Ian Lee added the comment:
> Aren't there many other examples in the PEP that need to be adjusted, since
> we're changing the style not just for 'and' and 'or' but for all binary
> operators?
Admittedly I'd only looked in that one section last
New submission from Ian Foote:
In statistics.pvariance, the sum of squares helper function (_ss) is called
twice and the first return value is unused:
https://github.com/python/cpython/blob/9043c80b0daaddb5bff1e37432d503910506727f/Lib/statistics.py#L596
--
components: Library (Lib
Ian Cordasco added the comment:
So it seems like
https://rt.openssl.org/Ticket/Display.html?user=guest&pass=guest&id=3621
includes a fix that we may be able to update Python to use (safely) by default.
If we don't then this will continue to be an issue.
Other referen
Changes by Ian Lee :
--
nosy: +IanLee1521
___
Python tracker
<http://bugs.python.org/issue23639>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Ian Cordasco :
--
nosy: +icordasc
___
Python tracker
<http://bugs.python.org/issue23794>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Ian Cordasco :
--
nosy: +Lukasa
___
Python tracker
<http://bugs.python.org/issue23794>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Ian Cordasco :
--
nosy: +icordasc
___
Python tracker
<http://bugs.python.org/issue23989>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Ian Cordasco :
--
nosy: +icordasc
___
Python tracker
<http://bugs.python.org/issue24107>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Ian Kelling:
https://docs.python.org/3.7/library/pdb.html:
"The typical usage to break into the debugger from a running program is to
insert
import pdb; pdb.set_trace()
at the location you want to break into the debugger."
A plain read of this says: insert c
New submission from Ian Stokes-Rees <[EMAIL PROTECTED]>:
http://docs.python.org/lib/module-site.html | sed -e "s/2.3/2.5/g"
--
assignee: georg.brandl
components: Documentation
messages: 70647
nosy: georg.brandl, ijstokes
severity: normal
status: open
title: site module d
Ian Jacob Bertolacci added the comment:
What's being done about this?
I would say this is less "misleading documentation" and more "incorrect
implementation"
There is also not an obvious temporary work-around.
--
nosy: +IanBertolacci
_
New submission from Ian M. Hoffman :
A description of the problem, complete example code for reproducing it, and a
work-around are available on SO at the link:
https://stackoverflow.com/questions/64083376/python-memory-corruption-after-successful-return-from-a-ctypes-foreign-function
In
Ian M. Hoffman added the comment:
You are correct.
After further review, I found an older ctypes issue #12836 which was then
enshrined in a workaround in the numpy.ndarray.ctypes interface to vanilla
ctypes.
https://numpy.org/doc/stable/reference/generated/numpy.ndarray.ctypes.html
Numpy
Ian M. Hoffman added the comment:
I agree with you. When I wrote "desired behavior" I intended it to mean "my
selfishly desired outcome of not loading my struct with a dangling pointer."
This issue seems to have descended into workarounds that treat the symptoms;
I
New submission from Ian Liu Rodrigues :
Some FTP clients will not allow changing to a directory if the path does not
ends with a slash. For example, try out this in a public FTP:
from ftplib import FTP
ftp = FTP('ftp.unicamp.br')
ftp.login()
ftp.cwd('pub/libreoffice') #
New submission from Ian Carr-de Avelon :
I can't understand why the result of changes() in the example file changes. I
get:
[[6.90642211e-310]
[1.01702662e-316]
[1.58101007e-322]]
[[0.]
[0.]
[0.]]
with an Ubuntu 14 system that has had a lot of changes made. I've checked the
sa
New submission from Ian Carr-de Avelon:
I'm new to Python and I've hit what appears to me to be a bug, but may be a
"feature", so a tutorial bug.
I tried to loop through the items in a list, test each and remove those which
fail the test.
Simplifying to illustrate:
>&g
101 - 190 of 190 matches
Mail list logo