New submission from Edward:
The Python launcher in Windows is a neat tool for running multiple versions of
Python 2 and Python 3 at different times. It allows as options the ability to
specify the latest version of either Python 2 or Python 3 defaulting to the
64-bit version if both exist, or
New submission from Edward:
This code:
z = [
["Y" for y in None
] for x in range(4)
]
produces this stacktrace in both Python 2.7 and 3.4:
Traceback (most recent call last):
File "/Users/edwsmith/dev/untitled4/test.py", line 7, in
] for x in ran
New submission from Edward Abraham:
webchecker and its dependent, websucker, which are distributed with the
python tools, are not following references to stylesheets given with the
@import url(mystyle.css); declaration ...
This means that the websucker isn't copying across styles
New submission from Edward Langley <[EMAIL PROTECTED]>:
On OS X 10.5.3 the default python has a mild memory leak.
sample session:
% python -S
Python 2.5.1 (r251:54863, Apr 15 2008, 22:57:26)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
>>>
% leaks Python
Process 2357: 572
Edward Langley <[EMAIL PROTECTED]> added the comment:
I think it may be a result of the framework build, I don't have the
problem with either 2.5.2 (debug build) or 2.6b1, both non-framework
builds.
___
Python tracker <[EMAIL PRO
New submission from Edward Welbourne :
http://docs.python.org/whatsnew/2.6.html#writing-context-managers
penultimate item in "A high-level explanation":
If BLOCK raises an exception, the __exit__(type, value, traceback)() is called
has extra () after the argument list - this appe
New submission from Edward Welbourne :
http://docs.python.org/library/string.html#formatstrings
field_name::= (identifier | integer) ("." attribute_name | "["
element_index "]")*
element_index ::= integer
Subsequent text indicates __getitem__() is
Edward Welbourne added the comment:
The third change removes the early uses of "object" from:
Finally, the closing(object)() function returns object so that it can
be bound to a variable, and calls object.close at the end of the block.
leaving the last use (object.close) as
Edward Welbourne added the comment:
Nice :-)
--
___
Python tracker
<http://bugs.python.org/issue7926>
___
___
Python-bugs-list mailing list
Unsubscribe:
Edward Yang added the comment:
Supposing I like the old behavior (line number of the end of the statement), is
there any way to recover that line number from the traceback after this change?
--
nosy: +ezyang
___
Python tracker
<ht
New submission from Edward Yang :
The fact that the error indicator may be set during tp_dealloc is somewhat well
known
(https://github.com/posborne/dbus-python/blob/fef4bccfc535c6c2819e3f15384600d7bc198bc5/_dbus_bindings/conn.c#L387)
but it's not documented in the official manual. We s
New submission from Edward Yang :
Consider the following program:
```
import inspect
from typing import Generic, TypeVar
T = TypeVar('T')
class A(Generic[T]):
def __init__(self) -> None:
pass
print(inspect.signature(A))
```
I expect inspect.signature to ret
New submission from Edward Yang :
The syslog module is missing constants for a number of logging priorities
available on modern Linuxen. In particular, the following options are missing:
LOG_ODELAY, LOG_AUTHPRIV, LOG_SYSLOG, LOG_UUCP.
--
components: Library (Lib)
messages: 156842
nosy
Edward Yang added the comment:
I misspoke about UUCP. SYSLOG appears to be missing from the documentation.
Arguably they should be present if Linux supports them, and missing if they
don't (same as LOG_PERROR, and some of the other constants.) Then you can do
feature detection Python
New submission from Edward Yang :
When generating a backtrace from an interactive Python session (e.g. the input
is from , Python attempts to actually find a file named , to
somewhat hilarious consequences.
See the strace'd Python session below:
>>> foo
open("/etc/defaul
Edward Yang added the comment:
"" is a valid name of a file on Unix systems. So the fix is not so clear.
ezyang@javelin:~$ python
Python 2.7.2+ (default, Oct 4 2011, 20:03:08)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license
New submission from Edward Smith :
Regex for imaplib should account for IMAP servers which return one or two
whitespaces after the * in responses. For example when using davmail as an
interpreter between exchange to IMAP
Acceptable response is as follows:
```
58:24.54 > PJJD3 EXAM
Edward Gow added the comment:
This bug is triggered by xml-rpc calls from the xmlrpc.client in the Python 3.5
standard library to a mod_wsgi/Python 3.5 endpoint.
--
nosy: +elgow
___
Python tracker
<https://bugs.python.org/issue27
New submission from Edward Preble :
The random.triangular function produces an unexpected distribution result
(instead of an error or warning message) when the order of the 3 arguments are
mixed up.
Python notebook with demo of issue here:
https://github.com/epreble
New submission from Edward Wang :
Methods defined in Enums behave 'normally' but classes defined in Enums get
mistaken for regular values and can't be used as classes out of the box.
```python
class Outer(Enum):
a = 1
b = 2
class Inner(Enum):
foo = 10
Change by Edward Wang :
--
keywords: +patch
pull_requests: +7557
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue33976>
___
___
Py
Edward Wang added the comment:
Ethan - thank you for your speedy response!
For an example you can see
https://github.com/ucb-bar/hammer/blob/97021bc7e1c819747f8b8b6d4b8c76cdc6a488e3/src/hammer-vlsi/hammer_vlsi_impl.py#L195
- the ObstructionType enum is really only used inside
New submission from Edward Jones :
When `__init__` is called for a class which 1) is annotated with
`@dataclasses.dataclass(frozen=True)` and 2) has a attribute named `object` a
TypeError is raised because `object` is overridden for the local scope and as a
result `__setattr__` is called on
New submission from Edward Pratt :
I am looking for a string inside of a process, and it seems that the output of
the check_output command depends on the screen size of the terminal I run the
code in.
Here I ran the code with a normal screen resolution:
>>> result = subprocess.che
Edward Pratt added the comment:
I don’t think that is true. I tried grepping for what I need in a very small
terminal and still got the correct result.
> On Oct 24, 2018, at 1:40 PM, Eryk Sun wrote:
>
>
> Eryk Sun added the comment:
>
> This is due to the ps command
Edward Pratt added the comment:
You are correct. It works as expected outside of the REPL.
> On Oct 24, 2018, at 4:34 PM, Stéphane Wirtel wrote:
>
>
> Stéphane Wirtel added the comment:
>
> My script:
>
> #!/usr/bin/env python
> import pathlib
>
New submission from Edward Catmur:
Suppose we have a class C with MRO (C, B, A, object). C virtual-inherits an
ABC V, while B virtual-inherits an unrelated ABC W:
object
/ | \
A W |
| .` /
B` V
| .`
C`
Recalling that per PEP 443
Edward Catmur added the comment:
Apologies, the linked repository is for the 2.x backport of singledispatch.
I'll replace it with a proper Python repo.
--
___
Python tracker
<http://bugs.python.org/is
Changes by Edward Catmur :
--
keywords: +patch
Added file: http://bugs.python.org/file30623/singledispatch-mro-18244.patch
___
Python tracker
<http://bugs.python.org/issue18
Changes by Edward Catmur :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue18244>
___
___
Python-bugs-list mailing list
Unsubscri
Edward Catmur added the comment:
See attachment for patch and test. Note that reproducing the issue without
access to singledispatch internals depends on iteration order of a dict of
types and is thus intermittent/environment dependent
Edward Catmur added the comment:
Łukasz, thanks. When the most-derived class virtual-inherits two related ABCs
U, V:
object
/ | \
A W V
| .` .`
B` U`
| .`
C`
The secondary `for` loop is necessary to ensure U and V are ordered correctly
New submission from Edward Brey:
When installing on Windows, the UAC prompt shows a temporary random file name
for the MSI file. To solve this, use the /d switch with signtool when signing
the MSI file.
Cf. http://stackoverflow.com/q/4315840
--
components: Installation
messages
New submission from Edward Catmur:
There is a race condition in multiprocessing.Pool._terminate_pool that can
result in workers being restarted during shutdown (process shutdown or
pool.terminate()).
worker_handler._state = TERMINATE# < race from here
task_hand
Edward Catmur added the comment:
Suggested patch:
https://bitbucket.org/ecatmur/cpython/compare/19096-multiprocessing-race..#diff
Move the worker_handler.join() to immediately after setting the worker handler
thread state to TERMINATE. This is a safe change as nothing in the moved-over
code
New submission from Edward Catmur:
foo.c:
#include
static PyMethodDef mth[] = { {NULL, NULL, 0, NULL} };
static struct PyModuleDef mod = { PyModuleDef_HEAD_INIT, "foo", NULL, -1, mth };
PyMODINIT_FUNC PyInit_foo(void) { return PyModule_Create(&mod); }
bar.c:
#include
static P
Edward Catmur added the comment:
Report dlerror() if dlsym() fails.
The error output is now something like:
ImportError: /<...>/foo.cpython-34dm.so: undefined symbol: PyInit_bar
--
keywords: +patch
Added file: http://bugs.python.org/file32643/dynload_report_dlerror
New submission from Edward Oubrayrie:
pickle.loads raises a TypeError when calling the datetime constructor, (then a
UnicodeEncodeError in the load_reduce function).
A short test program & the log, including dis output of both PY2 and PY3
pickles, are available in this gist; and extrac
Edward O added the comment:
The code works when using encoding='bytes'. Thanks Tim for the suggestion.
So this is not a bug, but is there any sense in having encoding='ASCII' by
default in pickle ?
--
___
Python tracker
<
New submission from Edward O:
This is a patch for issues similar to #16573
With this patch, the following new tests are now unchanged:
r = dict(zip(s, range(len(s))), **d)
r = len(filter(attrgetter('t'), self.a))
r = min(map(methodcaller('f'), self.a))
max(map(node.id,
Changes by Edward O :
--
nosy: +benjamin.peterson
___
Python tracker
<http://bugs.python.org/issue22294>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Edward O:
_make_iterencode in python2.7/json/encoder.py encodes custom enum types
incorrectly (the label will be printed without '"') because of these lines
(line 320 in 2.7.6):
elif isinstance(value, (int, long)):
yield buf + str(value
Changes by Edward O :
--
title: json encoding broken for -> 2.7 json encoding broken for enums
___
Python tracker
<http://bugs.python.org/issue22297>
___
___
Py
Changes by Edward O :
--
nosy: +eddygeek
___
Python tracker
<http://bugs.python.org/issue7434>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Edward O :
--
nosy: +BreamoreBoy
___
Python tracker
<http://bugs.python.org/issue22294>
___
___
Python-bugs-list mailing list
Unsubscribe:
Edward O added the comment:
The arguments for fixing:
* int subclasses overriding str is a very common usecase for enums (so much so
that it was added to stdlib in 3.4).
* json supporting a standard type of a subsequent python version, though not
mandatory, would be beneficial to Py2/Py3
New submission from Edward Pilatowicz :
recently i was writing some python code that attempted to bind a unix
domain socket to a long filesystem path. this code was failing and
telling me that the path name was too long. tracing python i saw that
it wasn't event issuing a system call f
Edward Pilatowicz added the comment:
so i wrote a simple test program that tells me the defined length of
sun_path and then uses bind() with increasingly long paths to determine
the actually supported length of sun_path. here's what i've found:
Solaris:
defined sun_path = 1
Edward Pilatowicz added the comment:
some additional data.
AIX 6.1:
defined sun_path = 1023
max sun_path = 1023
i'll also point out the existence of the SUN_LEN() macro, which is
defined on all the previously mentioned operating systems, and which
calculates the size of a sockad
New submission from Edward Laier:
I installed Python 3.6 on my Microsoft server 2016 , running VS 2015 Community.
I tried the path to Python Environment, then auto-detect, VS crashes and then
when it restarts it will have the "+ Custom" grayed out. Where I then have to
remove
New submission from Edward Alexander:
Whenever i run my code on Python IDLE editor,
the output is as follows:
== RESTART
I am a newbie,it seems i cannot move from this point .
This is my code:
def convert_to_celsius(fahrenheit
Changes by Edward O :
--
nosy: +eddygeek
___
Python tracker
<http://bugs.python.org/issue20371>
___
___
Python-bugs-list mailing list
Unsubscribe:
Edward O added the comment:
Here is a workaround for subclasses (2&3-compatible):
--- start code ---
class MyDate(datetime):
@classmethod
def fromDT(cls, d):
""" :type d: datetime """
return cls(d.year, d.month, d.day, d.hour,
New submission from Edward Segall:
I am using the tutorial to learn Python. I know many other languages, and I've
taught programming language theory, but even so I found the warning in Section
4.7.1 about Default Argument Values to be confusing. After I spent some effort
investigating
Edward Segall added the comment:
I agree with most of your points: A tutorial should be brief and should not go
down rabbit holes. Expanded discussion of default parameter behavior would
probably fit better with the other facets of parameter speceification and
parameter passing, perhaps as a
New submission from Edward D'Souza:
The list of built-in functions at the top of
https://docs.python.org/2/library/functions.html is not alphabetical.
Specifically, (apply, coerce, intern, buffer) allow appear out of order at the
end of the list, instead of where they should be alphabeti
Edward D'Souza added the comment:
Doesn't make sense to me. The page says "They are listed here in alphabetical
order.", which isn't true.
Furthermore, not putting them in order screws up people who assume it is in
alphabetical order and try to search for a function w
Edward D'Souza added the comment:
I think putting them in a separate table is good, but I think it makes more
sense to appear right below the existing table at the top of the page. For
better or worse, these "non-essential" functions are still builtins in Python 2.
It would b
New submission from Edward K Ream <[EMAIL PROTECTED]>:
While porting Leo to Python 3.0, I found that passing any byte stream to
xml.sax.parser.parse will hang the parser. My quick fix was to change:
while buffer != "":
to:
while buffer != "" and buff
Edward K Ream <[EMAIL PROTECTED]> added the comment:
On Mon, Aug 18, 2008 at 10:09 AM, Benjamin Peterson
<[EMAIL PROTECTED]>wrote:
>
> Benjamin Peterson <[EMAIL PROTECTED]> added the comment:
>
> It should probably be changed to just while buffer != b""
Edward K Ream <[EMAIL PROTECTED]> added the comment:
On Mon, Aug 18, 2008 at 1:51 PM, Antoine Pitrou <[EMAIL PROTECTED]>wrote:
>
> Antoine Pitrou <[EMAIL PROTECTED]> added the comment:
>
> From the discussion on the python-3000, it looks like it would be nice
>
Edward K Ream <[EMAIL PROTECTED]> added the comment:
On Mon, Aug 18, 2008 at 11:00 AM, Antoine Pitrou <[EMAIL PROTECTED]>wrote:
>
> Antoine Pitrou <[EMAIL PROTECTED]> added the comment:
>
> > Just to be clear, I am at present totally confused about io streams
Edward K Ream <[EMAIL PROTECTED]> added the comment:
On Mon, Aug 18, 2008 at 4:15 PM, Antoine Pitrou <[EMAIL PROTECTED]>wrote:
>
> Antoine Pitrou <[EMAIL PROTECTED]> added the comment:
>
> > The same calls to sax read the file correctly on Python 2.5.
>
>
New submission from Edward K Ream <[EMAIL PROTECTED]>:
Python 2.6 final on Windows XP gives following warnings with -3 option:
c:\python26\lib\compiler\ast.py:54: SyntaxWarning: tuple parameter
unpacking has been removed in 3.x
def __init__(self, (left, right), lineno=None):
c:\python
Edward K Ream <[EMAIL PROTECTED]> added the comment:
On Thu, Dec 4, 2008 at 12:33 PM, Brett Cannon <[EMAIL PROTECTED]> wrote:
>
> Brett Cannon <[EMAIL PROTECTED]> added the comment:
>
> Considering the entire compiler package is not in 3.0 it is not worth
>
New submission from Edward K Ream :
Tested on 3.6.
tokenize.untokenize does not round-trip whitespace before backslash-newlines
outside of strings:
from io import BytesIO
import tokenize
# Round tripping fails on the second string.
table = (
r'''
print\
("a
Edward K Ream added the comment:
The original bug report used a Leo-only function, g.toUnicode. To fix this,
replace:
result = g.toUnicode(tokenize.untokenize(tokens))
by:
result_b = tokenize.untokenize(tokens)
result = result_b.decode('utf-8'
Edward K Ream added the comment:
This post
https://groups.google.com/d/msg/leo-editor/DpZ2cMS03WE/VPqtB9lTEAAJ
discusses a complete rewrite of tokenizer.untokenize.
To quote from the post:
I have "discovered" a spectacular replacement for Untokenizer.untokenize in
python's t
Edward K Ream added the comment:
This post:
https://groups.google.com/d/msg/leo-editor/DpZ2cMS03WE/5X8IDzpgEAAJ
discusses unit testing. The summary states:
"I've done the heavy lifting on issue 38663. Python devs should handle the
details of testing and packaging."
I'
Edward K Ream added the comment:
Hello all,
This is a "sideways" response to this issue. I have been dithering about
whether to give you a heads up. I hope you won't mind...
I have just announced the leoAst.py on python-announce-list. You can read the
announcemen
New submission from Edward K Ream :
These links added with the provisional approval of GvR, pending approval of the
PR.
--
assignee: docs@python
components: Documentation
messages: 375019
nosy: docs@python, edreamleo
priority: normal
severity: normal
status: open
title: Add links to
Edward K Ream added the comment:
You're welcome. It was a pleasure working with you all on this issue.
I enjoyed learning the PR workflow, and I enjoyed the discussion of the merits.
One last comment. Like everything in life, links and their implied endorsements
are provisional. If a
Edward K Ream added the comment:
On Mon, Jan 14, 2019 at 5:24 AM Ivan Levkivskyi
wrote:
Adding endline and endcolumn to every ast node will be a big improvement.
Edward
--
Edward K. Ream: edream
Edward K. Ream added the comment:
The last message on this thread was in January, and this item is Open.
According to Pep 478, 3.5.2 final was released Sunday, June 26, 2016.
How is this issue not a release blocker?
Why does there appear to be no urgency in fixing this bug?
This bug bites
Edward K. Ream added the comment:
On Sat, Dec 3, 2016 at 1:37 PM, Steve Dower wrote:
Thanks, Steve and David, for your replies. Getting this issue fixed
eventually will do. Glad to hear it was a mistake, and not policy ;-)
EKR
--
___
Python
Edward K. Ream added the comment:
Thank you, Steve, et. al. for resolving this issue.
--
___
Python tracker
<http://bugs.python.org/issue25778>
___
___
Python-bug
New submission from Edward Ned Harvey:
I would like to suggest that the OSX installer automatically run "Install
Certificates.command", or display a prompt to users saying "Run Now" during
installation.
Having the readme is helpful - but only after you google for 20 min
New submission from Edward K. Ream:
On both windows and Linux the following fails on Python 2.7:
s = '\\Upsilon'
unicode(s,"unicode_escape")
UnicodeDecodeError: 'unicodeescape' codec can't decode bytes in position 0-7:
end of string in escape sequence
Edward K. Ream added the comment:
Thanks for your quick reply.
If this is not a bug, why does six define six.u as unicode(s,"unicode_escape")
for *all* u constants??
--
___
Python tracker
<http://bugs.python.o
Edward K Ream added the comment:
On Fri, Apr 26, 2013 at 8:51 AM, Edward K. Ream wrote:
>
> If this is not a bug, why does six define six.u as
> unicode(s,"unicode_escape") for *all* u constants??
>
Oops. The following works::
s = r'\\Upsilon'
Edward K. Ream added the comment:
I urge the Python development team to fix this and the related bugs given in
the Post Script. The lack of an easy way of associating ast nodes with text
ranges in the original sources is arguably the biggest hole in the Python api.
These bugs have immediate
New submission from Edward K. Ream:
In Python3.2 xml.sax.saxutils.XMLGenerator.__init__ succeeds if the "out"
keyword argument is not given and sys.stdout is None, which will typically be
the case when using pythonw.exe.
Alas, on Python3.4, the ctor throws an exception in this case
New submission from William Edward Stuart Clemens :
The DB API Spec 2.0 (PEP 249) clearly requires that column name and type_code
be set as the first two values in Cursor.description the other 5 attributes are
optional. The sqlite3 module doesn't set type_code.
--
components:
William Edward Stuart Clemens added the comment:
The patch for version 3.3 has a one line difference.
--
assignee: -> docs@python
components: +Documentation, Library (Lib) -None
nosy: +docs@python
versions: +Python 3.3
Added file: http://bugs.python.org/file21
84 matches
Mail list logo