Andrew McNamara added the comment:
Okay, while I am sympathetic to the points raised by the people asking for this
enhancement, I'm persuaded to reject it by the arguments that the potential
benefit is outweighed by the increase in complexity (code and documentation).
While the att
Andrew McNamara added the comment:
Note that there is one case that cannot easily be addressed via pre-processing:
where the comment character coincidently appears at the start of a line within
a multi-line quoted field. For example:
# This is a comment
1, 2, "This is field^M
#3"
Changes by Andrew Chong :
--
nosy: sledge76
severity: normal
status: open
title: list of list created by *
versions: Python 2.6
___
Python tracker
<http://bugs.python.org/issue7
New submission from Andrew Chong :
This shows unexpected behavior.
>>> data2 = [[]] * 4
>>> print data2
[[], [], [], []]
>>> data2[0] += [(0,1)]
>>> print data2
[[(0, 1)], [(0, 1)], [(0, 1)], [(0, 1)]]
I added a tuple to only 0th list, but it got added
Andrew Chong added the comment:
But this works fine.
>>> data = []
>>> data += [[]]
>>> data += [[]]
>>> data += [[]]
>>> data += [[]]
>>> print data
[[], [], [], []]
Andrew Clegg added the comment:
Hi,
I used a global name for a couple of reasons: it is consistent with the cache
itself and the size of the cache being defined in the same place; and because I
wanted to allow the value to be modified by users.
I used the leading underscore to give a weak
Andrew McNabb added the comment:
I think that optparse is doing the right thing here. I think that your code
example should be changed to:
import optparse
parser = optparse.OptionParser()
parser.add_option("-o", "--option", action = "append")
options, a
Andrew Clegg added the comment:
"If you give something an _, then it is not considered part of the public API
and it (the internal API, not the value) is subject to change, which means you
should *not* suggest that users change it. If they find it and want to change
it anyway, that
New submission from Andrew McNabb :
I was trying to open stdin in binary mode and ran the following:
>>> RawIOBase(sys.stdin.fileno()).read()
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'RawIOBase' object has no attribute 'readi
Andrew McNabb added the comment:
Oops. I had run "pydoc" instead of "pydoc3", so I was getting the 2.6 version
of the io docstrings instead of the 3.1 version.
By the way, it took about an hour to find out how to get Python 3 to treat
stdin as bytes instead of unicode.
New submission from Andrew McNabb :
The following snippet behaves differently in the C IO implementation than in
the Python IO implementation:
import sys
sys.stdout.write('unicode ')
sys.stdout.buffer.write(b'bytes ')
To test this, I have created two scripts, test
Andrew McNabb added the comment:
This seems like a common need (particularly for stdout and stderr), and setting
`stdout._CHUNK_SIZE = 1` is relying on an implementation detail.
1) Can the documentation for TextIOWrapper be updated to clearly describe this
extra buffering (how often
Andrew McNabb added the comment:
I would imagine that this would come up in most programs that read data from a
pipe or from a socket (which are binary data) and then output to stdout or
stderr. I ran across the problem in my first non-trivial port to Python 3, and
it seems like a common
New submission from Andrew Shuiu :
Interpreter do not fill in __dict__ attribute of a class which has atributes.
dir() shows them, but not __dict__. It works only when attributes are created
dynamically at runtime, such as class.attribute = value, not in class
definition.
Behaviour is the
Andrew Shuiu added the comment:
Hello Murray,
That seems a little strange to me, because if an object is instance of
a class, it should inherit all of it attributes.
Is it an optimization issue? because I observed that all
instances of a class that has such "static" attributes, s
Andrew McNabb added the comment:
I'm seeing something very similar to this. In my case, I have a
single-threaded program, and select fails to be interrupted by SIGCHLD. I'm
still tracking down more details, so I'll report back if I find more
information.
--
Andrew McNabb added the comment:
Sorry for the noise. It turns out that my problem was unrelated.
--
___
Python tracker
<http://bugs.python.org/issue5
New submission from Andrew McNabb :
The What's New documentation for Python 3.0 and 3.1 have sections called
"Porting to Python 3.0". It would be great to add a link to the Python wiki
page about porting Python to Python 3:
http://wiki.python.org/moin/PortingPythonToPy3k
Andrew McNabb added the comment:
What advice in particular do you consider bad? I would be happy to submit some
changes to the wiki page for anything that's wrong.
I think it would be great to have a reviewed version in the documentation
directly, but I think the world needs a little
Andrew McNabb added the comment:
By the way, I just noticed your notes on the wiki page and added a
response/question. It seems that the advice that you consider bad is the
official porting story (upgrade to 2.6 and use 2to3). I agree that it's easier
and better to not drop support fo
Andrew McNabb added the comment:
Thanks for your advice. I just signed up for the python-porting list, and I'll
start a discussion there.
I'm trying to improve the wiki page to address your concerns. There are
multiple valid approaches to take, and I'm trying to make the
Changes by Andrew Svetlov :
--
nosy: +asvetlov
___
Python tracker
<http://bugs.python.org/issue2919>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andrew Svetlov added the comment:
Florent, sorry.
I have no Windows workstation now, so I cannot follow this issue.
--
___
Python tracker
<http://bugs.python.org/issue7
New submission from Andrew Bennetts :
The effect of signal.siginterrupt(somesig, False) is reset the first time a
that signal is received. This is not the documented behaviour, and I do not
think this is a desireable behaviour. It renders siginterrupt effectively
useless at providing the
Andrew Bennetts added the comment:
Note that a trivial untilConcludes isn't correct for select if a timeout was
passed. If a select(..., 60) was interrupted after 59 seconds, you probably
want to restart it with a timeout of 1 second, not 60.
The SocketServer_eintr.diff patch has this
Changes by Andrew Svetlov :
--
nosy: +asvetlov
___
Python tracker
<http://bugs.python.org/issue850728>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andrew Bennetts added the comment:
Your patches look good to me.
(They don't fix platforms without sigaction, but as you say they probably don't
have siginterrupt, and even if they do they will still have an unfixable race.)
What's the next step? I can't see an button
Andrew Bennetts added the comment:
Are there any platforms that define HAVE_SIGINTERRUPT but that do not define
HAVE_SIGACTION? If there are, then yes I expect they would fail that test.
It would be a shame to delay this fix just because it doesn't fix all
platforms... is it possib
Andrew Bennetts added the comment:
FWIW, comparing the "change history" sections of
<http://www.opengroup.org/onlinepubs/95399/functions/siginterrupt.html> and
<http://www.opengroup.org/onlinepubs/95399/functions/sigaction.html>
suggests that sigaction predates
Changes by Andrew Bennetts :
--
nosy: +spiv
___
Python tracker
<http://bugs.python.org/issue8407>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andrew Bennetts added the comment:
> I'm not exactly sure how we will know if it is expected to fail,
> though. I don't think `HAVE_SIGACTION` is exposed nicely to Python
> right now.
It might be useful to have the contents of pyconfig.h exposed as a dict
somehow.
Andrew Straw added the comment:
Barry, stdeb does much of what you're describing. (Try the "python setup.py
sdist_dsc" command.)
I'm not particularly pleased with the stdeb codebase as it stands, but it does
work reasonably well, and I'd like to see progress in this
Andrew Straw added the comment:
Barry, I'm sorry I still don't understand what you think is the essential
distinction. A debian source package (.dsc, .orig.tar.gz, and .diff.gz files)
is simply made from a (patched) source directory, including the debian/
directory, and an upstre
Andrew Straw added the comment:
I see. So is copying the debian/ directory into its desired location a
possibility for you, either manually or via a new distutils commands that
shares 99% of its code with sdist_dsc? It doesn't seem like enough of a
difference to start a new pr
Andrew Straw added the comment:
I have moved the recent discussion on stdeb to a thread on the distutils-sig.
--
___
Python tracker
<http://bugs.python.org/issue1054
New submission from Andrew Bennetts :
set.difference(s), when s is also a set, basically does::
res = set()
for elem in self:
if elem not in other:
res.add(elem)
This is wasteful when len(self) is much greater than len(other):
$ python -m timeit -s "s = set(
Andrew Bennetts added the comment:
Oops, obvious bug in this patch. set('abc') - set('bcd') != set('bcd') -
set('abc'). I'll see if I can make a more sensible improvement.
See also <http://bugs.python
Andrew Bennetts added the comment:
Ok, this time test_set* passes :)
Currently if you have large set and small set the code will do len(large)
lookups in the small set. When large is >> than small, it is cheaper to copy
large and do len(small) lookups in large. On my laptop
Changes by Andrew Bennetts :
Added file: http://bugs.python.org/file17306/set-mem.py
___
Python tracker
<http://bugs.python.org/issue8685>
___
___
Python-bugs-list mailin
Andrew Bennetts added the comment:
Regarding memory, good question... but this patch turns out to be an
improvement there too.
This optimisation only applies when len(x) > len(y) * 4. So the minimum size
of the result is a set with 3/4 of the elems of x (and possibly would be a full
c
New submission from Andrew Dalke:
Current text in README:
See Mac/OSX/README for more information on framework and
universal builds.
Should be
See Mac/README for more information on framework and
universal builds.
because r46719 moved Mac/OSX/* one level up
Andrew Dalke added the comment:
I was optimization tuning and wondered why UserDict was imported by os.
Replacing
UserDict with dict passes all existing regression tests.
I see the concerns that doing that replacement is not future proof. Strange
then
that Cookie.py is acceptable. There
Andrew Dalke added the comment:
I should have added my preference. I would like to see UserDict replaced with
dict. I didn't like seeing the extra import when I was doing my performance
testing, through truthfully it's not a bit overhead.
As for future-proofing, of course when
Andrew Dalke added the comment:
Ahh, so the bug here that the environ dict should use neither UserDict nor
dict, it should implement the core {get,set,del}item and keys and use
DictMixin.
Martin mentioned that the patch doesn't support setdefault. He didn't note
though that the cu
Andrew Ferguson added the comment:
The idea of dynamic typing it seems quite heavy to me, but I'm not a
Python hacker, so I don't know what's the norm.
Notice that os.stat() does "PyInt_FromLong((long)st->st_uid)" on the
stat structure's st_uid field. On m
New submission from Andrew Dalke:
The reference manual documentation for raw string literals says
"""Note also that a single backslash followed by a newline is
interpreted as those two characters as part of the string, *not* as a line
continuation."""
This is not
New submission from Andrew Dalke:
I wrote a translator from the CFG used in the Grammar file into a form for PLY.
I
found one problem with
varargslist: ((fpdef ['=' test] ',')*
('*' NAME [',' '**' NAME] | '**'
New submission from Andrew Dalke:
Python 2.6a0 (trunk:60565M, Feb 4 2008, 01:21:28)
[GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from compiler import parse
&
Andrew Dalke added the comment:
This really is a minor point. I don't track the 3K list and I see now that the
compiler module won't be in Python 3k - good riddance - so feel free to discard
this as well as the other open compiler module bugs.
I want to experiment with adding instr
Andrew Dalke added the comment:
I've been working from the Grammar file from CVS for 2.6 ... I thought.
For example, I see "# except_clause: 'except' [test [('as' | ',')
test]]" which is a 2.6-ism.
"svn log" says it hasn't changed s
Andrew Trusty added the comment:
I agree with Daniel, I think this bug or a variant is still present in
2.5.1 because my wxPython app on Windows XP would fail to execute a
Popen with only stdout using PIPE but succeeded with the described
workaround of having stdout, stderr, and stdin set to
Andrew McNamara <[EMAIL PROTECTED]> added the comment:
I think it's a reasonable enough request - I've certainly had to
process CSV files with comments. Iain - appologies for not looking at
your request before now - 3 years is a pretty poor response time.
Some thoughts:
* th
New submission from andrew cooke <[EMAIL PROTECTED]>:
I am seeing some odd behaviour with logging which would be explained
if loggers that are not defined explicitly (but which are controlled
via their ancestors) must be created after the logging system is
configured via fileConfig().
Th
andrew cooke <[EMAIL PROTECTED]> added the comment:
Got more important things than this to worry about, but yes, original
response not very helpful. In a perfect world this might be either
justified more clearly or addressed. OTOH, I get the impression hardly
anyone uses this package
New submission from Andrew Shaw <[EMAIL PROTECTED]>:
Downloaded Python 2.6 for Mac OS X. When launching IDLE.app, it puts the
icon on the dock for a second, then disappears. Nothing else ever
happens. X11 does not open either.
--
components: IDLE
messages: 7515
Andrew McNamara <[EMAIL PROTECTED]> added the comment:
One reason why this issue has been having less impact is that a bug in
some versions of the copy.py code meant it was ignoring the
__deepcopy__ stubs and using the pickle logic to copy _sre objects -
so, if you run the right
Changes by Andrew McNamara <[EMAIL PROTECTED]>:
--
versions: +Python 2.5.3, Python 2.6
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.
Andrew Inglis <[EMAIL PROTECTED]> added the comment:
Are there any updates for this issue? I am having the same problem, or,
lack of feature, with SequenceMatcher. Gabriel, Differ doesn't seem to
have the functionality, or an easy way to patch it to get the
functionality, that C
Andrew Paprocki <[EMAIL PROTECTED]> added the comment:
summary of compiler errors/warnings i just hit in the same situation
with stock Python-2.6.tgz:
>>>>>>>>>>>>>> c++ style comment used
"Objects/frameobject.c", line 520.9: 1506-0
New submission from Andrew Paprocki <[EMAIL PROTECTED]>:
"Include/token.h", line 42.9: 1506-236 (W) Macro name TILDE has been
redefined.
"Include/token.h", line 42.9: 1506-358 (I) "TILDE" is defined on line
250 of /usr/include/sys/ioctl.h.
--
c
Andrew Paprocki <[EMAIL PROTECTED]> added the comment:
The list of files/lines I posted yesterday was all that I had to change
to get it to build here (where a C++ style comment is a syntax error),
so it doesn't seem like a massive change.
___
Pyt
Changes by Andrew Price <[EMAIL PROTECTED]>:
--
nosy: +AndyP
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4483>
___
___
Python
Andrew Price <[EMAIL PROTECTED]> added the comment:
I'm running the same distro as Leger and I was having the same problem.
Now I've applied dbm.diff and with a clean build I'm seeing this:
building '_dbm' extension
gcc -pthread -fPIC -fno-strict-aliasing -DNDEBU
Andrew Price <[EMAIL PROTECTED]> added the comment:
In Debian Lenny libgbdm-dev provides two libs, libgdbm and libgdbm_compat:
[EMAIL PROTECTED]:~$ objdump -t /usr/lib/libgdbm.a | grep dbm_firstkey
*UND* gdbm_firstkey
0140 g F .text 0056 gdbm_fi
Andrew Price <[EMAIL PROTECTED]> added the comment:
Skip, the new patch makes it fail with (highlights):
...
File "/home/andy/src/python3/Python-3.0/Lib/distutils/ccompiler.py",
line 844, in has_function
import tempfile
File "/home/andy/src/python3/Python-3.0/Lib/
Andrew Price <[EMAIL PROTECTED]> added the comment:
Skip, your simplified patch works for me. Makes it build fine with the
following snippet:
building '_dbm' extension
gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -DHAVE_GDBM_DASH_ND
New submission from Andrew Gillis :
Allocating large numbers of strings objects has been causing Python to
segfault on RHEL. Originally detected when sending large data
structures over XMLRPC, but also happens when appending large numbers of
small strings to a list and calling join in the list
Changes by Andrew Bennetts :
--
nosy: +spiv
___
Python tracker
<http://bugs.python.org/issue4753>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from andrew cooke :
There's a small confusion in terminology in the documentation related to
methods that implement augmented assignment.
The "Expressions" section of the language reference ("Simple
statements") refers to augmented assignment -
h
andrew cooke added the comment:
thanks!
___
Python tracker
<http://bugs.python.org/issue4986>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/m
Change by Andrew Svetlov :
--
resolution: -> duplicate
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
Thanks for checking
--
resolution: -> fixed
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Andrew Svetlov :
--
versions: +Python 3.11, Python 3.9
___
Python tracker
<https://bugs.python.org/issue46955>
___
___
Python-bugs-list mailin
Andrew Svetlov added the comment:
New changeset da80d6b2f3beff519cb1457d5e055168c89f7224 by Stefan Zabka in
branch 'main':
bpo-46955: Expose asyncio.base_events.Server as asyncio.Server (GH-31760)
https://github.com/python/cpython/commit/da80d6b2f3beff519cb1457d5e0551
Change by Andrew Svetlov :
--
resolution: -> duplicate
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue30740>
___
___
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue33886>
___
___
Andrew Svetlov added the comment:
'catch (boost::python::error_already_set e)' is equal to `except BaseException
as e:`
In Python, blind catching base exception is dangerous, the code should re-raise
it usually.
The same is true for boost::python usage.
> how would it tell t
Andrew Svetlov added the comment:
Thanks!
--
resolution: -> fixed
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
The implementation has landed, docs are still required.
--
___
Python tracker
<https://bugs.python.org/issue46771>
___
___
Andrew Svetlov added the comment:
> We’d like to merge our implementation into CPython
Could you provide a link first, please?
--
___
Python tracker
<https://bugs.python.org/issu
Andrew Svetlov added the comment:
The idea looks interesting.
The devil in the details I guess.
I'm curious what is the memory and performance penalty.
Waiting for the PR as the discussion starting point.
--
___
Python tracker
&
New submission from Andrew Svetlov :
Now asyncio creates a new context copy on task creation.
It is the perfect behavior *by default* and should stay as is.
However, sometimes passing an explicit context into a task and using back the
context modified by task code is desired.
The most
Change by Andrew Svetlov :
--
keywords: +patch
pull_requests: +29936
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/31837
___
Python tracker
<https://bugs.python.org/issu
New submission from Andrew Svetlov :
The method was introduced by Python 3.8
Let's raise DeprecationWarning if third-party task implementation doesn't
support it. Convert the depreciation into a strict error in Python 3.13
--
components: asyncio
messages: 414990
nosy
Change by Andrew Svetlov :
--
keywords: +patch
pull_requests: +29937
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/31838
___
Python tracker
<https://bugs.python.org/issu
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: backport needed -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
Fixed in Python 3.10
--
resolution: -> out of date
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
Please use TaskGroup from Python 3.11 for structural concurrency.
--
resolution: -> out of date
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
Please re-read the rejection reason:
https://bugs.python.org/issue33544#msg316962
--
resolution: -> rejected
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Andrew Svetlov :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Andrew Svetlov :
--
resolution: -> duplicate
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
Superseded by #28533
--
nosy: +asvetlov
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> Remove asyncore, asynchat and smtpd modules
___
Python tracker
<https://
Andrew Svetlov added the comment:
Reproducer is missing
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
TaskGroup has landed, aiodag is present on pypi.
Closing.
--
resolution: -> rejected
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
Docs were rewritten from scratch in Python 3.8, they are much better now.
--
nosy: +asvetlov
resolution: -> out of date
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bug
Andrew Svetlov added the comment:
Implemented a long time ago, closing
--
nosy: +asvetlov
resolution: -> out of date
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
loop.shutdown_default_executor() exists for it, asyncio.run() calls the method
--
nosy: +asvetlov
resolution: -> out of date
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bug
Andrew Svetlov added the comment:
No activity, closing.
--
resolution: -> out of date
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Andrew Svetlov added the comment:
I support the idea but we have no PR yet.
The request is not very strong.
Anyway, if you still want such change -- please recreate an issue.
--
resolution: -> postponed
stage: -> resolved
status: open -&g
301 - 400 of 3160 matches
Mail list logo