Isaac Johnson added the comment:
Well that is how it works with open. It is implemented in the io module and
added to builtins.
--
___
Python tracker
<https://bugs.python.org/issue46
Isaac Johnson added the comment:
Well it wouldn't need to be imported. I was working on including it inside
builtins like open(). It wouldn't be very convenient if it needed to be
imported.
--
___
Python tracker
<https://bu
Change by Isaac Johnson :
--
type: -> enhancement
___
Python tracker
<https://bugs.python.org/issue46766>
___
___
Python-bugs-list mailing list
Unsubscrib
Isaac Johnson added the comment:
I'm currently working on implementing this. It will probably be a few weeks.
--
___
Python tracker
<https://bugs.python.org/is
New submission from Isaac Johnson :
I think it would be great for something like this to be with the IO module. It
will improve code readability.
--
components: Library (Lib)
messages: 413315
nosy: isaacsjohnson22
priority: normal
severity: normal
status: open
title: Add a class for
Isaac Muse added the comment:
If this was to be done, you'd want to make sure character sequences also match
hidden files: [.]. Just * and ? would be incomplete. If allowing ** to match a
leading dot, it would not match . or ..
--
nosy: +Isaac
Change by Neil Isaac :
--
nosy: +nisaac
___
Python tracker
<https://bugs.python.org/issue13475>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Isaac Boukris :
--
keywords: +patch
nosy: +Isaac Boukris
nosy_count: 1.0 -> 2.0
pull_requests: +27397
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/11770
___
Python tracker
<https://bugs.p
New submission from Isaac Boates :
I was just using the sqlite3 package and was very confused when trying to open
an sqlite database from a relative path, because the only error provided was:
File "/path/to/filepy", line 50, in __init__
self.connection = sqlite3.connect(pat
New submission from Jonathan Isaac :
Jonathan Isaac
Sent with Aqua Mail for Android
https://www.mobisystems.com/aqua-mail
--
messages: 400479
nosy: bonesisaac1982
priority: normal
severity: normal
status: open
title: Bugs
___
Python tracker
<ht
Jonathan Isaac added the comment:
Bugs
--
components: +Parser
nosy: +lys.nikolaou, pablogsal
type: -> crash
versions: +Python 3.11, Python 3.6
___
Python tracker
<https://bugs.python.org/issu
Jonathan Isaac added the comment:
Get the code!
--
nosy: +bonesisaac1982
___
Python tracker
<https://bugs.python.org/issue45037>
___
___
Python-bugs-list mailin
Isaac added the comment:
Not sure if it's proper etiquette to bump issues on the tracker, but is there
any interest in this issue for 3.11?
--
nosy: +fwahhab
___
Python tracker
<https://bugs.python.org/is
Isaac Muse added the comment:
Sadly, this because pathlib glob and glob.glob use different implementations.
And glob.glob does not provide something equivalent to a DOTALL flag allowing a
user to glob hidden files without explicitly defining the leading dot in the
pattern.
--
nosy
Isaac Ge added the comment:
Or we could integrate the explanation of uncased characters into the footnote
for cased characters, and append the footnote in "str.istitle()" and
"str.upper()".
--
___
Python tracker
<
Isaac Ge added the comment:
@ Josh Rosenberg Sorry, I mistook "follow" as "be followed by". Thanks to your
explication, the document is coherent. I admit that I cannot conjure up any
better altnernative.
I noticed that "cased character" are expl
Isaac Ge added the comment:
Why does "a".istitle() return "False" while it is not followed by any uncased
character?
--
___
Python tracker
<https://bug
Change by Isaac Ge :
--
title: What does "cased" and "uncased" mean? -> What do "cased" and "uncased"
mean?
___
Python t
New submission from Isaac Ge :
str.istitle(): Return True if the string is a titlecased string and there is at
least one character, for example uppercase characters may only follow uncased
characters and lowercase characters only cased ones. Return False otherwise.
I saw this description
Isaac Young added the comment:
Perhaps the documentation should be more explicit, but I wouldn't say this is
an issue. Both mkstemp and mkdtemp are low level functions which are intended
to have this kind of flexibility.
The os.unlink, and the equivalent os.remove, are POSIX de
Isaac Muse added the comment:
Wrong thread sorry
--
___
Python tracker
<https://bugs.python.org/issue39682>
___
___
Python-bugs-list mailing list
Unsubscribe:
Isaac Muse added the comment:
Brace expansion does not currently exist in Python's glob. You'd have to use a
third party module to expand the braces and then run glob on each returned
pattern, or use a third party module that implements a glob that does it for
you.
Shameless pl
Isaac Muse added the comment:
Brace expansion does not currently exist in Python's glob. You'd have to use a
third party module to expand the braces and then run glob on each returned
pattern, or use a third party module that implements a glob that does it for
you.
Shameless pl
Isaac Muse added the comment:
The more I think about this, I think the normalization of paths is actually
fine, it is the normalization of the patterns that is problematic, or more the
difference in normalization. I could live with the pattern normalization of `.`
and trailing `/` if it was
New submission from Isaac Muse :
It appears that the pathlib library strips out `.` in glob paths when they
represent a directory. This is kind of a naive approach in my opinion, but I
understand what was trying to be achieved.
When a path is given to pathlib, it normalizes it by stripping
Isaac Muse added the comment:
I think the idea of adding a globmatch function is a decent idea.
That is what I did in a library I wrote to get more out of glob than what
Python offered out of the box:
https://facelessuser.github.io/wcmatch/pathlib/#purepathglobmatch.
Specifically the
Isaac Turner added the comment:
I'm seeing the same error on Ubuntu LTS 16.04.6 on an ARM64 platform.
$ make && make test
...
0:09:18 load avg: 2.09 [ 78/416] test_complex
0:09:20 load avg: 2.08 [ 79/416] test_concurrent_futures
Traceback:
Thread 0x007f61f0 (most rece
Isaac Boukris added the comment:
if not data:
# a closed connection is indicated by signaling
# a read condition, and having recv() return 0.
self.handle_close()
return b''
This above is the current code. Do you agr
Isaac Boukris added the comment:
> But I want to raise the flag again: why we are adding new functionality to
> the *deprecated* module? It violates our on deprecation policy, isn't it?
I'm biased but I see this as more of a small and subtle fix for the current
logic that in
Isaac Boukris added the comment:
> It seems recv() returning b"" is an alias for "connection lost". E.g. in
> Twisted:
To my understanding, technically the connection is not fully closed, it is just
shut-down for reading but we can still perform write operations o
Isaac Boukris added the comment:
Fair enough. I'll sign the CLA meanwhile you consider it.
In my opinion it may still be useful in addressing issues in existing projects
written using asyncore (and maybe for python2 as well).
T
New submission from Isaac Boukris :
When recv() return 0 we may still have data to send. Add a handler for this
case, which may happen with some protocols, notably http1.0 ver.
Also, do not call recv with a buffer size of zero to avoid ambiguous return
value (see recv man page
New submission from Isaac Shabtay :
Windows 10 Pro, v1803.
Created a directory: D:\Test
Created a symbolic link to it: C:\Test -> D:\Test
The current user has permissions to access the link, however os.stat() fails:
>>> os.stat('C:\\Test')
Traceback (most recent call la
Isaac Elliott added the comment:
Cool, thanks for the help. Should I submit a PR with the updated documentation?
--
___
Python tracker
<https://bugs.python.org/issue33
Isaac Elliott added the comment:
I went through that document before I created this issue. I can't find anything
which describes this behavior - could you be more specific please?
--
___
Python tracker
<https://bugs.python.org/is
Isaac Elliott added the comment:
Thanks for the clarification. Is there a reference to this in the documentation?
--
___
Python tracker
<https://bugs.python.org/issue33
New submission from Isaac Elliott :
echo 'print("a");print("b")' > test.py
This program is grammatically incorrect according to the specification
(https://docs.python.org/3.8/reference/grammar.html). But Python 3 runs it
without issue.
It's this pr
Isaac Elliott added the comment:
Because of the way recursive descent parsing works,
[[
is actually the minimal input required to reproduce this in python3.
In python2, the bug is still present, but
New submission from Isaac Elliott :
python3's parser stack overflows on deeply-nested expressions, for ex
Isaac Elliott added the comment:
Does backward compatibility take priority over correct behavior? What process
is followed when fixing a bug causes a breaking change?
--
___
Python tracker
<http://bugs.python.org/issue31
Isaac Elliott added the comment:
Yes I would disallow a script such as
`a = [0]; [5, a][1][:] = [3]` (note: your example of just `[5, a][1][:] = [3]`
does not run, so I assumed it must be used in a situation like this)
Evaluating the target of an assignment is unnecessary, we can syntactically
New submission from Isaac Elliott:
In Python 3.5 and 3.6 (at least), the language reference presents a grammar
that disallows assignment to literals.
For example, `(a for 1 in [1,2,3])` is a syntax error, as is `(1, a) = (2, 3)`.
However the grammar doesn't prevent assignment to subscr
Isaac Morland added the comment:
Not if one of the attributes is something that cannot be part of a typename:
>>> fields = ['def', '-']
>>> namedtuple ('test', fields, rename=True).__doc__
'test(_0, _1)'
>>> namedtuple ('
Isaac Morland added the comment:
OK, so it's pretty clear this is heading towards a rejection, but I can't
help but respond to your points:
On 2 August 2017 at 01:12, Raymond Hettinger wrote:
* This would be a potentially confusing addition to the API.
>
I'm giving a
Isaac Morland added the comment:
On 1 August 2017 at 14:32, R. David Murray wrote:
>
> R. David Murray added the comment:
>
> I wrote a "parameterized tests" extension for unittest, and it has the
> option of autogenerating the test name from the parameter names and
&
Isaac Morland added the comment:
First, another note I would like to point out: this is much nicer to write
within namedtuple than as a wrapper function because it is trivial to use
the existing rename logic when needed, as seen in the diff I provided. I
suppose I could write a wrapper which
Isaac Morland added the comment:
Maybe the issue is that I work with SQL constantly. In SQL, if I say "SELECT
a, b, c FROM t" and table t has columns a, b, c, d, e, f, I can still select a,
b, and c from the result. So to me it is natural that getting a bunch of
attributes returns
Isaac Morland added the comment:
I want a meaningful name to appear in debugging output generated by repr() or
str(), not just _ all over the place. I just don't want to specifically come
up with the meaningful name myself.
Right now I pass in the same generated name ('__'.jo
Isaac Morland added the comment:
Here is the diff. Note that I assume implementation of #31085, which allows me
to push determination of a name for the namedtuple down into namedtuple itself:
diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py
index 62cf708..d507d23 100644
New submission from Isaac Morland:
This is meant to replace my proposal in #30020 to change attrgetter to use
namedtuple. By creating a new function implemented in Python, I avoid making
changes to the existing attrgetter, which means that both the need of
implementing a C version and the
Isaac Morland added the comment:
I'm hoping to make a pull request but while I figure that out here is the diff:
diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py
index 8408255..62cf708 100644
--- a/Lib/collections/__init__.py
+++ b/Lib/collections/__init__.py
@@ -
New submission from Isaac Morland:
I would like to have the possibility of creating a namedtuple type without
explicitly giving it a name. I see two major use cases for this:
1) Automatic creation of namedtuples for things like CSV files with headers
(see #1818) or SQL results (see #13299
Isaac Morland added the comment:
What are the "other issues"?
As to the issue you raise here, that's why I use rename=True.
First create a type with an underscore attribute:
>>> t = namedtuple ('t', ['a', '1234'], rename=True)
(just a
Isaac Morland added the comment:
I've attached a file which illustrates what I'm proposing to happen with the
examples from the help. Note that attrgetter (attr) is not affected, only
attrgetter (*attrs) for more than one attribute. The idea is that tuples
resulting from
New submission from Isaac Morland:
I would find it useful if the tuples returned by attrgetter functions were
namedtuples. An initial look at the code for attrgetter suggests that this
would be an easy change and should make little difference to performance.
Giving a namedtuple where
Isaac Schwabacher added the comment:
Further searching reveals this as a dupe of #13947. Closing.
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issu
New submission from Isaac Schwabacher:
I found because test_dbm_gnu fails on NFS; my initial thought was that the test
was failing to close a file somewhere (similarly to #20876), but a little
digging suggested that the problem is in dbm.gnu itself:
$ ./python
Python 3.5.1 (default
Isaac Dickinson added the comment:
I completely forgot asyncio has a debug mode. Ignore this.
--
resolution: -> not a bug
___
Python tracker
<http://bugs.python.org/issu
Changes by Isaac Dickinson :
--
title: If protocol_factory raises an error, the connection closes but no
stacktrace is printed on the server. -> asyncio: If protocol_factory raises an
error, the connection closes but no stacktrace is printed on the ser
New submission from Isaac Dickinson:
This makes it a nightmare to figure out why your connections are abruptly
closing. It should print an error at least.
--
components: asyncio
files: broken.py
messages: 256081
nosy: SunDwarf, gvanrossum, haypo, yselivanov
priority: normal
severity
Isaac Levy added the comment:
I guess users need to check standard streams for None. There's not many uses of
stream attributes in core libs.
Maybe catch should be Exception -- since it's documented to return a fallback
on error.
--
New submission from Isaac Levy:
OS: windows 7, python 3.4.3, tk version 8.6.1
os.get_terminal_size also fails.
>>> shutil.get_terminal_size()
Traceback (most recent call last):
File "", line 1, in
shutil.get_terminal_size()
File "C:\Python34\lib\s
Isaac Schwabacher added the comment:
Fixed a truncated line in the patch.
--
Added file: http://bugs.python.org/file38347/test_support.patch
___
Python tracker
<http://bugs.python.org/issue20
Isaac Schwabacher added the comment:
...and fixed a spot where git diff + copy/paste truncated a long line.
/sheepish
--
Added file: http://bugs.python.org/file38346/test_import.patch
___
Python tracker
<http://bugs.python.org/issue21
Isaac Schwabacher added the comment:
Whoops, that's 0x0601. Though Maxime gives evidence that the version should in
fact be 0x0603. (Note that while OS X ships with libedit over libreadline,
anyone who wants to can install the real thing instead of that pale imitation;
the test would
Isaac Schwabacher added the comment:
>From the OP:
> This was reported at [1] and originally at [2]. The readline maintainer
> suggests [3] using:
>
> rl_variable_bind ("enable-meta-key", "off");
>
> which was introduced in readline 6.1. Do you th
Isaac Schwabacher added the comment:
Patch to do precisely this. Wish I'd spent more time searching for this thread
and less time debugging; it would have saved me a lot of trouble.
--
keywords: +patch
nosy: +ischwabacher
Added file: http://bugs.python.org/file38291/test_import.
Isaac Schwabacher added the comment:
This behavior is caused by the way NFS clients implement unlinking open files:
instead of unlinking an open file, the filesystem renames it to .nfs and
unlinks it on close. (The search term you want is "silly rename".) The reason
this probl
New submission from Isaac Jurado:
The Bdb.runcall method shows a prompt right at the beginning of the function.
If breakpoints are defined, it is sometimes handy to skip the prompt until the
next breakpoint, if any.
This use case came up in our development environment for a Django
Isaac Schwabacher added the comment:
This may be only syntactic sugar, but it is POSIX-specified syntactic sugar:
according to http://pubs.opengroup.org/onlinepubs/9699919799/. trailing slashes
in pathnames are semantically meaningful in pathname resolution. Tilde escapes
are not mentioned
Isaac Schwabacher added the comment:
Further digging reveals that the issue with `open()` was fixed in #13848 (the
bug was in the `io` module). I still believe that this should fail in the
`pathlib.Path` constructor, but this is less of a security issue.
--
type: security -> behav
New submission from Isaac Schwabacher:
This is listed as a python3.4 issue even though I only tried this on the
python2.7 backport because I don't have a python3 handy, but I was not able to
find an indication, either here or elsewhere, that this had been addressed.
Please forgive me
New submission from Alan Isaac:
Section 4.6 of the tutorial introduces function definition:
http://docs.python.org/3/tutorial/controlflow.html#defining-functions
The first example defines a function that *prints* a Fibonacci series.
A basic mistake made by students new to programming is to use
New submission from Alan Isaac:
The need for weighted random choices is so common that it is addressed as a
"common task" in the docs:
http://docs.python.org/dev/library/random.html
This enhancement request is to add an optional argument to random.choice, which
must be a seque
Changes by Isaac (.ike) Levy :
--
nosy: +ikeaxial
___
Python tracker
<http://bugs.python.org/issue5575>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Isaac (.ike) Levy :
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue16882>
___
___
Python-bugs-list mailing list
Unsubscri
Changes by Isaac (.ike) Levy :
--
resolution: wont fix -> duplicate
___
Python tracker
<http://bugs.python.org/issue16882>
___
___
Python-bugs-list mai
Isaac (.ike) Levy added the comment:
Hi Ned,
Thanks. Your logic is rational here, I'll close it, and open another if I can
carve out time to attack this with an appropriate patch for setup.py - to
attempt resolution of the 3rd party library build issues.
However, off the top of your he
Isaac (.ike) Levy added the comment:
Ned, absolutely correct, thank you!
--
___
Python tracker
<http://bugs.python.org/issue16883>
___
___
Python-bugs-list mailin
New submission from Isaac (.ike) Levy:
Host OS: Ubuntu 11.10 (oneiric)
--enable-shared flag during configure forces 2.7.3 to build as 2.7.2+
TO REPLICATE:
unpack Python tarball,
# cd Python-2.7.3/
# ./configure --enable-shared
# make
# ./python -V
2.7.2+
# make clean ; ./configure --enable
New submission from Isaac (.ike) Levy:
There are currently 73 files with hard-coded references to /usr/local,
To see what I'm talking about, unpack a source Python tarball, and check it out
like so:
# cd Python-2.7.3
# grep -Rl '\/usr\/local' ./* | wc -l
73
To read more de
New submission from Isaac :
The simple repro below, shows that if a list of strings has two consecutive
items that begin with the same letter, an iteration over the list to find and
remove all strings that start with that letter fails. The second string that
starts with the same letter to
Isaac Salsberg added the comment:
The output for the command:
$ openssl s_client -connect www.finratrace.org:443
was the same on MAC OS X 10.6 and on Red hat 5 (https works fine under linux).
Nevertheless, Ned Deily is right: the bug is on the openssl libs supplied with
OS X 10.6
To
New submission from Isaac Jurado :
>From the following python code:
import os
from ConfigParser import ConfigParser
from pprint import pprint
c = ConfigParser()
c.read(['test.ini'])
pprint(c.items('test', raw=False, vars=os.environ))
I see the values contained in o
Isaac Salsberg added the comment:
Yep, I am sure Ronald, the RH server has no special configuration.
The RH box actually immediately connects to the server, an because it requires
a certificate returns a 403 forbidden code:
[opentrails@redhat5 ~]$ uname -a
Linux redhat5.ultralat.com 2.6.18
New submission from Isaac Salsberg :
https connections fails under intel MAC OS X 10.6.6 and 10.6.7 using httplib
and/or urllib2 connecting to an IIS web server requesting basic authentication
and a client certificate.
This is an issue with MAC OS X 10.6.x, because I tried these very same
Alan Isaac added the comment:
Bear with my confusion about your response. Are you saying that CPython
documentation bugs cannot be submitted here, or that this does not constitute a
CPython documentation bug? I assume the latter. But then, can you tell me
where to find the correct CPython
New submission from Alan Isaac :
In PEP 227 missing text is marked with XXX. Most of this is just calls for
examples and elaboration. However under the Implementation section XXX marks a
substantive question about the documentation.
Fixing this may be low priority, but a tracker search
Isaac Morland added the comment:
How different is this issue from Issue 1608579, Issue 1239890, Issue 1223238,
and Issue 1314067?
--
___
Python tracker
<http://bugs.python.org/issue9
Isaac Morland added the comment:
This is again being discussed in Issue 9299.
--
___
Python tracker
<http://bugs.python.org/issue1675>
___
___
Python-bugs-list m
Isaac Morland added the comment:
This exact issue has already been discussed in Issue 1675.
--
nosy: +ijmorlan
___
Python tracker
<http://bugs.python.org/issue9
Alan Isaac added the comment:
FYI a patch has been committed that should fix this. For discussion see
http://bugs.python.org/issue6844
--
nosy: +aisaac
___
Python tracker
<http://bugs.python.org/issue5
Alan Isaac added the comment:
I hope it is not too annoying to link these ...
I asked thhis of Jean-Paul but now I'll ask it of George.
Since you are working on this, can you see if
http://bugs.python.org/issue6108
is related or in any case can be fixed at the same time?
T
Alan Isaac added the comment:
Since you are working on this, can you see if
http://bugs.python.org/issue6108
is related or in any case can be fixed at the same time?
Thanks.
--
___
Python tracker
<http://bugs.python.org/issue6
Alan Isaac added the comment:
> The 'message' attribute itself is deprecated
> as it didn't exist prior to being introduced in 2.5.
That seems to me to be the wrong way to phrase it, and indeed that kind
of phrasing implies the current bug. For example, it leads to th
New submission from Alan Isaac :
In Python 2.6 if I subclass Exception and intialize my instances with a
`message` attribute, I get a DeprecationError via BaseException.
Of course there is no problem in Py3, because adding a `message`
attribute to instances of a subclass is in fact **not** a
Isaac Morland <[EMAIL PROTECTED]> added the comment:
Ok, good point. Perhaps the documentation should be updated to clarify
that Mac OS is treated as Unix even though a default Mac OS X
installation will have a case-insensitive file system. Wouldn't it be
possible for a Windows mach
New submission from Isaac Morland <[EMAIL PROTECTED]>:
$ python
Python 2.5.1 (r251:54863, Apr 15 2008, 22:57:26)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>&g
Isaac Morland <[EMAIL PROTECTED]> added the comment:
I should add that the full version information is:
Python 2.5 (r25:51908, Aug 15 2007, 11:38:03)
[GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
Also, in my actual code (a much larger file, in a project using ll.xist
and
New submission from Isaac Morland <[EMAIL PROTECTED]>:
$ cat bug_fine.py
if True:
max (a='a', 'b')
#elif True:
# pass
else:
pass
$ python bug_fine.py
File "bug_fine.py", line 2
max (a='a', 'b')
SyntaxError:
1 - 100 of 110 matches
Mail list logo