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://bugs.python.
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/issue46
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
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 Muse
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/issue35
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 defined
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 plug:
Brace
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 plug:
Brace
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
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
Hello all,
I'm glad to announce the first public release of calf, 0.3.1:
https://pypi.org/project/calf/0.3.1/
About
=
calf: Command Argument Loading Function for Python
Calf lets you remove all your command argument parsing code, at least
for simple cases. Only the implementation function
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 recent ca
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 agree
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 incorrectly
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).
Thanks
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 last):
Fil
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/issue33
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 production here
Isaac Elliott <isaace71...@gmail.com> added the comment:
Because of the way recursive descent parsing works,
[[
is actually the minimal input required to reproduce this in python3.
In python2, t
New submission from Isaac Elliott <isaace71...@gmail.com>:
python3's parser stack overflows on deeply-nested expressions, for e
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 <rep...@bugs.python.org>
<http://bugs.python.org/i
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 subscripted
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 ('__'.join (fields), fields, rename=True).__do
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 <rep...@bugs.python.org> wrote:
* This would be a potentially confusing addition to the API.
>
I
Isaac Morland added the comment:
On 1 August 2017 at 14:32, R. David Murray <rep...@bugs.python.org> wrote:
>
> R. David Murray added the comment:
>
> I wrote a "parameterized tests" extension for unittest, and it has the
> option of autogenerating the tes
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 ('__'.join (field_names
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
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
@@ -384,7
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 an easy way of creating such a type;
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 attrgetter
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
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 Schwabacher added the comment:
Further searching reveals this as a dupe of #13947. Closing.
--
status: open -> closed
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.or
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
Changes by Isaac Dickinson <eyesism...@gmail.com>:
--
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 t
Isaac Dickinson added the comment:
I completely forgot asyncio has a debug mode. Ignore this.
--
resolution: -> not a bug
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.or
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.
--
___
Python
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 pyshell#4, line 1, in module
shutil.get_terminal_size()
File C:\Python34\lib\shutil.py, line 1058
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 rep...@bugs.python.org
http://bugs.python.org
Isaac Schwabacher added the comment:
Fixed a truncated line in the patch.
--
Added file: http://bugs.python.org/file38347/test_support.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20876
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 think it'd be safe to add the
above line?
From
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 have
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.patch
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 problem appears
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
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
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 - behavior
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
Hi,
My question may be confusing.
Now I would like to extract temperature values from model output with python.
My model output have separate temperature, longitude and latitude variables.
So, I overlap these three grid variables on one figure to show temperature with
longitude and latitude
Is there a way to make sure that whenever you're making google engine app
iterations to a database that that info does not get wiped/deleted. Please
advise
--
https://mail.python.org/mailman/listinfo/python-list
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
meshgrid for X and Y, I also get:
TypeError: Inputs x and y must be 1D or 2D.
I just need to draw shaded contour with distance from one point on the top of
the plot of each point.
If you give any idea or hint, I will really apprecite. Thank you, Isaac
--
https://mail.python.org/mailman/listinfo
help, idea, and hint.
Thank you, Isaac
--
https://mail.python.org/mailman/listinfo/python-list
intention is to plot ax2 on the top of ax1 from xdist and ydist = 8 with 18
by 18 size.
However, the result seems only showing ax1.
I will really appreciate any help or idea.
Thank you, Isaac
--
https://mail.python.org/mailman/listinfo/python-list
On Thursday, November 14, 2013 2:01:39 PM UTC-8, John Ladasky wrote:
On Thursday, November 14, 2013 11:39:37 AM UTC-8, Isaac Won wrote:
I tried to plot one smaller contour inside of the other larger contour.
Using what software? A plotting package is not part of the Python standard
are supressed. I would hate
to do a warnings.filterwarnings('ignore') because when I unit test those
functions, the warnings dont appear.
Thanks in advance,
Isaac
--
https://mail.python.org/mailman/listinfo/python-list
Thanks for the reply Bill. The problem is the text i am getting is from a
python warning message, not one of my own print() function calls.
--
https://mail.python.org/mailman/listinfo/python-list
in advance,
Isaac
--
https://mail.python.org/mailman/listinfo/python-list
example here:
http://stackoverflow.com/questions/948119/preventing-file-handle-inheritance-in-multiprocessing-lib
None of the solutions posted work.
On Thursday, October 10, 2013 12:38:19 PM UTC-4, Piet van Oostrum wrote:
Isaac Gerg isaac.g...@gergltd.com writes:
I have a function
On Thu, Oct 10, 2013 at 2:41 PM, Ned Batchelder n...@nedbatchelder.comwrote:
On 10/10/13 12:44 PM, Isaac Gerg wrote:
Sorry, I am just providing pseudo code since I the code i have is quite
large.
As I mentioned, the code works fine when I remove the multirpcessing
stuff so the filename
On Thu, Oct 10, 2013 at 2:49 PM, Isaac Gerg isaac.g...@gergltd.com wrote:
On Thu, Oct 10, 2013 at 2:41 PM, Ned Batchelder n...@nedbatchelder.comwrote:
On 10/10/13 12:44 PM, Isaac Gerg wrote:
Sorry, I am just providing pseudo code since I the code i have is quite
large.
As I mentioned
functions which read from the file.
Isaac
--
https://mail.python.org/mailman/listinfo/python-list
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 sequence of non
On Sat, Jun 29, 2013 at 9:36 AM, Ethan Furman et...@stoneleaf.us wrote:
On 06/27/2013 03:49 PM, Steven D'Aprano wrote:
Libraries should not call sys.exit, or raise SystemExit. Whether to quit
or not is not the library's decision to make, that decision belongs to
the application layer. Yes,
You underestimated the arrogance of Python. Python 3 tab doesn't map to 4
spaces. It doesn't map to any number of spaces. Tabs and spaces are
completely unrelated. If you have a function having the first indentation
level with 4 (or any number of) spaces, the next line starting not with 4
In general, it is hard for any process to return the memory the OS allocate
to it back to the OS, short of exiting the whole process. The only case
that this works reliably is when the process allocates a chunk of memory by
mmap (which is chosen by libc if it malloc or calloc a large chunk of
try to make my triple nested loop working. My code would be:
c = 4
y1 = []
m1 = []
std1 = []
while c 24:
c = c + 1
a = []
f.seek(0,0)
for columns in ( raw.strip().split() for raw in f ):
a.append(columns[c])
Thank you, Chris.
I just want to acculate value from y repeatedly.
If y = 1,2,3...10, just have a [1,2,3...10] at onece.
On Friday, March 1, 2013 7:41:05 AM UTC-6, Chris Angelico wrote:
On Fri, Mar 1, 2013 at 7:59 PM, Isaac Won winef...@gmail.com wrote:
while c 24:
for columns
On Friday, March 1, 2013 7:41:05 AM UTC-6, Chris Angelico wrote:
On Fri, Mar 1, 2013 at 7:59 PM, Isaac Won winef...@gmail.com wrote:
while c 24:
for columns in ( raw.strip().split() for raw in f ):
while d 335:
Note your indentation levels: the code does
Thank you Ulich for reply,
What I really want to get from this code is m1 as I told. For this purpose, for
instance, values of fpsd upto second loop and that from third loop should be
same, but they are not. Actually it is my main question.
Thank you,
Isaac
On Friday, March 1, 2013 6:00:42 AM
to m1. However, it doesn't work and fpsd values in and
out of the last loop are totally different.
My question is clear?
Any help or questions would be really appreciated.
Isaac
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, Feb 11, 2013 at 8:27 PM, Oscar Benjamin
oscar.j.benja...@gmail.comwrote:
On 11 February 2013 06:50, Isaac To isaac...@gmail.com wrote:
Except one thing: it doesn't really work. If I `import foo.baz.mymod`
now,
and if in bar.baz.mymod there is a statement `import bar.baz.depmod
I have a package (say foo) that I want to rename (say, to bar), and for
compatibility reasons I want to be able to use the old package name to
refer to the new package. Copying files or using filesystem symlinks is
probably not the way to go, since that means any object in the modules of
the
()
---
For any help or advice, I will really appreciate.
Best regards,
Isaac
--
http://mail.python.org/mailman/listinfo/python-list
On Tuesday, January 22, 2013 10:06:41 PM UTC-6, Isaac Won wrote:
Hi all,
I have tried to use different interpolation methods with Scipy. My code seems
just fine with linear interpolation, but shows memory error with quadratic. I
am a novice for python. I will appreciate any help
1 - 100 of 647 matches
Mail list logo