New submission from Serhiy Storchaka:
The proposed patch introduces new private function which chains previously
fetched and current exceptions. This will help in correct implementing at C
level an equivalent of following Python idioms:
try:
...
finally:
...
and
Dmitry Korchemny added the comment:
I think that the situation when you want start numbering from 0 is rather
common, especially when you need to define bit fields as enumeration or when
you need to implement an interface with other languages (e.g., C).
--
Terry J. Reedy added the comment:
Refinement 1: in doing coverage for UndoDelegator, I noticed that the htest
function is counted as missing (uncovered). Both of the following in
.coveragerc work to ignore the block: name prefix; comment suffix.
def htest_.*:
.*# htest #
The
Changes by Thomas Klausner t...@giga.or.at:
--
nosy: +wiz
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19561
___
___
Python-bugs-list mailing
Terry J. Reedy added the comment:
cls.percolator.close() cut leaks in half.
test_idle leaked [237, 237, 237, 237] references, sum=948
test_idle leaked [95, 97, 97, 97] memory blocks, sum=386
test_idle leaked [130, 130, 130, 130] references, sum=520
test_idle leaked [60, 62, 62, 62] memory
Milan Oberkirch added the comment:
Ping :)
--
nosy: +zvyn
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11783
___
___
Python-bugs-list mailing
Roundup Robot added the comment:
New changeset 11a920a26f13 by Vinay Sajip in branch '3.4':
Issue #21709: Remove references to __file__ when part of a frozen application.
http://hg.python.org/cpython/rev/11a920a26f13
New changeset 149cc6364180 by Vinay Sajip in branch 'default':
Closes #21709:
STINNER Victor added the comment:
Hum, it would be nice to have a unit test for this change.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12989
___
Saimadhav Heblikar added the comment:
It was WidgetRedirector which was leaking.
cls.percolator.redir.close() added in tearDownClass fixes the leak.
saimadhav@debian:~/dev/34-cpython$ ./python -m test -R :: -uall test_idle
[1/1] test_idle
beginning 9 repetitions
123456789
.
1 test OK.
Changes by grossdm m...@douglasmgross.com:
--
components: Windows
nosy: grossdm
priority: normal
severity: normal
status: open
title: 3.4.1 download page link for OpenPGP signatures has no sigs
type: enhancement
versions: Python 3.4
___
Python
Terry J. Reedy added the comment:
Great. I will review the next patch (with the change in the comment) tomorrow.
The ttk theme changed message comes up often. I believe it is specific to debug
builds. Perhaps you could keep track of when it occurs so we can make a guess
at the cause. I
Tal Einat added the comment:
What do you mean with the comment regarding pep8?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20577
___
___
Marc-Andre Lemburg added the comment:
Hi Vinaj,
thanks for the patch, but it doesn't really help outside of py2exe. The
sys.frozen flag is not an official Python API and it's unlikely to become one,
since you can freeze the whole application or just parts of it, which
sys.frozen would not be
Changes by Milan Oberkirch milan...@oberkirch.org:
--
nosy: +jesstess
Added file: http://bugs.python.org/file35565/issue11783.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11783
___
Vinay Sajip added the comment:
Could you please use a fix that works for Python tools in general?
I suggested an alternative implementation altogether in Issue #16778, but it
was suggested that we wait for frame annotations. I'm not sure what the
schedule for that is.
The sys.frozen flag
Marc-Andre Lemburg added the comment:
On 11.06.2014 11:25, Vinay Sajip wrote:
Vinay Sajip added the comment:
Could you please use a fix that works for Python tools in general?
I suggested an alternative implementation altogether in Issue #16778, but it
was suggested that we wait for
New submission from Antony Lee:
I noticed that while lzma and bz2 already support the x (create a new file,
raise if it already exists) flag, zipfile and tarfile don't know about it yet.
It would be an useful addition, just as it is useful for regular open.
A quick look at both modules show
Vinay Sajip added the comment:
_srcfile is only used to identify the caller's stack frame
Not quite. It's also used to indicate whether findCaller() should be called at
all: setting it to None avoids calling findCaller(), which might be desirable
in some performance-sensitive scenarios.
So
Larry Hastings added the comment:
Confirmed.
--
assignee: - larry
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21629
___
Marc-Andre Lemburg added the comment:
On 11.06.2014 12:32, Vinay Sajip wrote:
Vinay Sajip added the comment:
_srcfile is only used to identify the caller's stack frame
Not quite. It's also used to indicate whether findCaller() should be called
at all: setting it to None avoids calling
Milan Oberkirch added the comment:
Here comes an updated patch based on 'email_address_idna.patch' without
breaking smtplib (as the previous patches did).
--
Added file: http://bugs.python.org/file35566/issue11783-rdm-fixed.patch
___
Python tracker
Vinay Sajip added the comment:
Please also add some comment explaining why this is done in this way.
Natürlich :-)
it may be worthwhile introducing some generic helper to the stdlib
Wouldn't you have to pass in a function (or code object) from a specific
module, though? It seems more
Roundup Robot added the comment:
New changeset 6b2db7fc17f7 by Larry Hastings in branch '3.4':
Issue #21629: Fix Argument Clinic's --converters feature.
http://hg.python.org/cpython/rev/6b2db7fc17f7
--
nosy: +python-dev
___
Python tracker
Marc-Andre Lemburg added the comment:
On 11.06.2014 13:22, Vinay Sajip wrote:
Vinay Sajip added the comment:
Please also add some comment explaining why this is done in this way.
Natürlich :-)
Prima :-)
it may be worthwhile introducing some generic helper to the stdlib
Wouldn't
Roundup Robot added the comment:
New changeset 8b4b8f5d7321 by Larry Hastings in branch 'default':
Issue #21629: Merge from 3.4.
http://hg.python.org/cpython/rev/8b4b8f5d7321
--
___
Python tracker rep...@bugs.python.org
Changes by Larry Hastings la...@hastings.org:
--
resolution: - fixed
stage: needs patch - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21629
___
Larry Hastings added the comment:
With this patch applied the test passes. (Patch is against 3.4 branch.) Look
good?
--
keywords: +patch
Added file: http://bugs.python.org/file35567/larry.bad.zipfile.1.diff
___
Python tracker
Tal Einat added the comment:
Ned, many thanks for the review and detailed feedback!
Here are responses to your comments
1. Thanks for the code suggestion regarding the menudefs! That's a good catch.
I have an OSX box for such testing.
2. I'll check this out. Could you perhaps explain or
Mark Dickinson added the comment:
Agreed with Tim.
Oddly enough[1], remembering that with binary floating-point numbers, what you
see is not what you get[2], it turns out that 8.881784197001252e-16 (=
Fraction(1, 1125899906842624)) is in fact *exactly* the right answer, in that
it's a
Changes by Giampaolo Rodola' g.rod...@gmail.com:
Added file: http://bugs.python.org/file35568/ftplib-sendfile5.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13564
___
Giampaolo Rodola' added the comment:
Updated patch which uses the newly added socket.sendfile() method (issue 17552).
--
assignee: - giampaolo.rodola
type: enhancement - performance
versions: +Python 3.5 -Python 3.4
___
Python tracker
Giampaolo Rodola' added the comment:
Patch in attachment uses the newly added socket.sendfile() method (issue 17552).
--
keywords: +patch
type: enhancement - performance
Added file: http://bugs.python.org/file35569/httplib-sendfile.patch
___
Python
New submission from mike bayer:
Per DBAPI and pysqlite docs, .description must be available for any SELECT
statement regardless of whether or not rows are returned. However, this fails
for SELECT statements that aren't simple SELECTs, such as those that use CTEs
and therefore start out with
Roundup Robot added the comment:
New changeset 9438a8aa3622 by Senthil Kumaran in branch '2.7':
#21693 - Fix the broken link for pylons project.
http://hg.python.org/cpython/rev/9438a8aa3622
New changeset 08fa17130fb3 by Senthil Kumaran in branch '3.4':
#21693 - Fix the broken link for pylons
Senthil Kumaran added the comment:
Fixed these. Thanks for the report.
--
nosy: +orsenthil
resolution: - fixed
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21693
New submission from Ben Hoyt:
I asked recently on python-dev [1] about adding a st_winattrs attribute to
stat result objects on Windows, to return the full set of Windows file
attribute bits, such as hidden or compressed status. Copying from that
thread for a bit more context here:
Python's
New submission from David Szotten:
```
__import__('fabric.', fromlist=[u'api'])
Traceback (most recent call last):
File stdin, line 1, in module
```
accidentally ended up with something like this via some module that was using
`unicode_literals`. stumped me for a second until i realised
R. David Murray added the comment:
It is true that the sqlite interface does not support WITH currently. It is an
interesting question whether or not we could change this as a bug fix or
not...I suppose it depends on whether or not it changes any behavior other than
making .description work.
Antoine Pitrou added the comment:
I think raising ValueError is the way to go. Would you like to try writing a
patch for it?
--
nosy: +pitrou
stage: - needs patch
type: - behavior
___
Python tracker rep...@bugs.python.org
New submission from Giampaolo Rodola':
This is a follow up of issue 17552 which adds a new socket.sendfile() method
taking advantage of high-performance os.sendfile() on UNIX.
The same thing could be done for Windows by using TransmitFile:
Saimadhav Heblikar added the comment:
Attaching a patch to test the default configuration files. config-keys.def will
be added once the issues related to it[1] are resolved.
In this patch, test that the configHandler module can successfully extract the
values. For places where numeric values
Martin v. Löwis added the comment:
Instead of the somewhat cryptic name winattrs, I suggest to call it
st_file_attributes, as it is called in the Windows API (actually,
GetFileAttributesEx calls it dwFileAttributes, but st_file_attributes could be
considered a Pythonic spelling of that).
STINNER Victor added the comment:
gen_qualname.patch: add a new __qualname__ attribute to generators and change
how the name is set: use the name of the function, instead of using the name of
the code.
Incompatible changes of this patch:
- repr(generator) now shows the qualified name instead
Ben Hoyt added the comment:
Fair call -- st_file_attributes sounds good to me, and matches the prefix of
the FILE_ATTRIBUTES_* constants better too.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21719
STINNER Victor added the comment:
Instead of the somewhat cryptic name winattrs, I suggest to call it
st_file_attributes (...)
On Windows, os.stat() calls GetFileInformationByHandle() which fills a
BY_HANDLE_FILE_INFORMATION structure, and this structure has a dwFileAttributes
attribute.
Changes by STINNER Victor victor.stin...@gmail.com:
--
title: Add a name to Python generators - Add __qualname__ attribute to Python
generators and change default __name__
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21205
Martin Dengler added the comment:
The attached file is a patch for backporting this fix to 2.7.7.
--
Added file:
http://bugs.python.org/file35573/cpython2-patch-Lib-distutils-command-upload.py.patch
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 4e22213ca275 by R David Murray in branch 'default':
#19662: add decode_data to smtpd so you can get at DATA in bytes form.
http://hg.python.org/cpython/rev/4e22213ca275
--
nosy: +python-dev
___
Python
New submission from Martin Dengler:
This patch teaches distutils/command/upload.py to return a non-zero exit code
when uploading fails. Currently a zero error code is returned (specifically,
no Exception is raised by upload.run(...)) regardless of the HTTP response from
the server or any
R. David Murray added the comment:
Thanks, Maciej.
I tweaked the patch a bit, you might want to take a look just for your own
information. Mostly I fixed the warning stuff, which I didn't explain very
well. The idea is that if the default is used (no value is specified), we want
there to
New submission from Vajrasky Kok:
import asyncio
loop = asyncio.get_event_loop()
q = asyncio.Queue(maxsize=1.2, loop=loop)
q.put_nowait(1)
q.put_nowait(1)
q.put_nowait(1)
q.put_nowait(1)
q.put_nowait(1)
and so on
It seems counter intuitive for my innocent eyes. As comparison with the
Terry J. Reedy added the comment:
For flowing long blocks of text with fewer structural restrictions (docstrings
or comments), the line length should be limited to 72 characters.
--
___
Python tracker rep...@bugs.python.org
New submission from Antoine Pitrou:
There seems to be no (official) way to reset the warnings registry; in
particular, resetwarnings() doesn't reset it. It makes it difficult to get
repeatable warning messages, e.g. at the command prompt, because the shortcut
path will silence messages which
STINNER Victor added the comment:
It looks strange to use a float as maxsize. I suggest to raise a TypeError in
the constructor if the type is not int, or maybe to cast maxsize parameter to
an int.
--
___
Python tracker rep...@bugs.python.org
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21205
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset a6c846ec5fd3 by R David Murray in branch 'default':
#19662: Eliminate warnings in other test modules that use smtpd.
http://hg.python.org/cpython/rev/a6c846ec5fd3
--
___
Python tracker
New submission from R. David Murray:
I thought there was already an issue for this, but I can't find it. This is
part of this summer's GSOC work, and involves adding support for the SMTPUTF8
extension to smtpd.
--
components: email
messages: 220285
nosy: barry, jesstess, pitrou,
Tal Einat added the comment:
I'll be damned. 72 it is, then.
What about using the 'default' parameter for GetOption() instead of or 72?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20577
Changes by R. David Murray rdmur...@bitdance.com:
--
hgrepos: +256
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21725
___
___
Python-bugs-list
Changes by R. David Murray rdmur...@bitdance.com:
--
keywords: +patch
Added file: http://bugs.python.org/file35575/80ea1cdf2b23.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21725
___
R. David Murray added the comment:
Milan: your patch looks good for the most part. Now that I committed the
decode_data patch you should modify it so that SMTPUTF8 implies
decode_data=False (otherwise we *don't* have an 8-bit-clean channel). Please
either attach the modified patch here or
Changes by R. David Murray rdmur...@bitdance.com:
--
hgrepos: -256
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21725
___
___
Python-bugs-list
Changes by R. David Murray rdmur...@bitdance.com:
Removed file: http://bugs.python.org/file35575/80ea1cdf2b23.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21725
___
Oz Tiram added the comment:
Hi,
I have been wanting this feature for quite a long time. IMHO, binaries and
scripts should always include a man page. The Debian developers require that.
However, man pages have a 'bizarre' format.
Long talk, short time. I did implement something. I tested it
Yury Selivanov added the comment:
FWIW, this can also be resolved by fixing Queue.full to do self.qsize() =
self._maxsize instead of self.qsize() == self._maxsize.
I generally don't like implicit casts as they break duck typing.
--
___
Python
Antoine Pitrou added the comment:
Thanks Ned, I'm hoping someone can give it a run under Windows too :)
--
nosy: +steve.dower, tim.golden, zach.ware
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21711
R. David Murray added the comment:
Thanks, Milan. I had to fix a couple things: you had left the refactored
methods on the SMTPDServerTest, and somehow your new TestFamilyDetection class
got indented under SMTPDServerTest in the new version of the patch. (I also
had to update it to
Changes by Terry J. Reedy tjre...@udel.edu:
--
title: Idle: test syntax of configuration files - Idle: test configuration
files
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21696
___
Roundup Robot added the comment:
New changeset 1efbc86a200a by R David Murray in branch 'default':
#14758: add IPv6 support to smtpd.
http://hg.python.org/cpython/rev/1efbc86a200a
--
nosy: +python-dev
___
Python tracker rep...@bugs.python.org
Changes by Thomas Guettler guet...@thomas-guettler.de:
--
nosy: -guettli
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14102
___
___
Antoine Pitrou added the comment:
Martin, what do you think about the aforementioned use case?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21536
___
Zachary Ware added the comment:
Seems fine on Windows (especially since it doesn't look like site-python ever
meant anything on Windows in the first place)!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21711
New submission from Reid Price:
https://docs.python.org/2/distutils/examples.html#pure-python-distribution-by-package
Chrome on Linux
The last (parenthetical) sentence is not needed.
(Again, the empty string in package_dir stands for the current directory.)
because there is no package_dir
Roundup Robot added the comment:
New changeset 0d61a2a50f9f by R David Murray in branch 'default':
#19840: Add copy_function to shutil.move.
http://hg.python.org/cpython/rev/0d61a2a50f9f
--
nosy: +python-dev
___
Python tracker rep...@bugs.python.org
R. David Murray added the comment:
Thanks, Claudiu.
--
resolution: - fixed
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19840
___
New submission from Matt Deacalion Stevens:
https://docs.python.org/3.5/library/itertools.html#itertools.cycle
The first sentence sounds a bit ambiguous:
Make an iterator returning elements from the iterable and saving a copy of
each.
Suggestion:
Make an iterator that returns elements from
R. David Murray added the comment:
Hmm. Looks like the IPv6 support is making the FreeBSD and and OSX buildbots
unhappy :(.
--
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14758
Pablo Acosta added the comment:
Understood and agreed. My bad too for not reading the documentation more
carefully. Thank you for the detailed explanation.
Pablo
On Jun 11, 2014, at 2:52 PM, Tim Peters rep...@bugs.python.org wrote:
Tim Peters added the comment:
@pacosta, if Mark's
Changes by Zachary Ware zachary.w...@gmail.com:
--
nosy: +rhettinger
versions: -Python 3.1, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21727
___
Tim Peters added the comment:
@pacosta, if Mark's answer is too abstract, here's a complete session showing
that the result you got for gcd(2.7, 107.3) is in fact exactly correct:
import fractions
f1 = fractions.Fraction(2.7)
f2 = fractions.Fraction(107.3)
f1
Fraction(3039929748475085,
Roundup Robot added the comment:
New changeset d8e0fca7cbe3 by R David Murray in branch 'default':
#14758: Need to specify the desired socket type in the getaddrinfo call.
http://hg.python.org/cpython/rev/d8e0fca7cbe3
--
___
Python tracker
New submission from Ned Deily:
Can you be more specific as to which page? I see valid links to GPG sigs on
this page:
https://www.python.org/downloads/release/python-341/
Note that issues with the python.org website should be reported to its tracker:
Ned Deily added the comment:
Yep
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21520
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Ned Deily n...@acm.org:
--
components: +Distutils
nosy: +dstufft, eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21722
___
Roundup Robot added the comment:
New changeset 9b0d58b0c712 by R David Murray in branch 'default':
#14758: Fix the fix (fix getaddrinfo in mock_socket)
http://hg.python.org/cpython/rev/9b0d58b0c712
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 61a00b7eac5d by Zachary Ware in branch '3.4':
Issue #21713: Fix typo in a comment. Found by Joseph Shen.
http://hg.python.org/cpython/rev/61a00b7eac5d
New changeset b94384c4f9d0 by Zachary Ware in branch 'default':
Closes #21713: Merge with 3.4
Zachary Ware added the comment:
Fixed, thanks for the report!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21713
___
___
Python-bugs-list
R. David Murray added the comment:
OK, I think this is fixed.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14758
___
___
Changes by Zachary Ware zachary.w...@gmail.com:
--
assignee: - zach.ware
type: compile error - enhancement
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21713
___
R. David Murray added the comment:
It is a clever idea, and might be worth considering, but it doesn't feel
natural to have to specify the attachments before the html. What I'd really
like is an API that hides the messy details of the RFC from the library user,
and I haven't thought of
Terry J. Reedy added the comment:
I am not completely sure what you are asking. Config-keys.def has 4 Idle
Classic sections, one each for Windows, Unix, Mac (still needed?), and OSX. On
my Windows install, the one for Windows is preselected. I have presumed the the
appropriate selections are
Terry J. Reedy added the comment:
'yes!' meant please do so.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20577
___
___
Python-bugs-list
Milan Oberkirch added the comment:
I merged it into https://bitbucket.org/zvyn/cpython and made a diff from that.
(I used bash for this so hopefully its compatible to the review system here.)
--
Added file: http://bugs.python.org/file35577/issue21725.patch
New submission from Gerrit Holl:
When I initialise a class that doesn't define its own __init__, but I still
pass arguments, the error message is confusing:
class A: pass
...
A(42)
Traceback (most recent call last):
File stdin, line 1, in module
TypeError: object() takes no parameters
Changes by Milan Oberkirch milan...@oberkirch.org:
Added file: http://bugs.python.org/file35578/issue21725-fixed.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21725
___
Changes by Milan Oberkirch milan...@oberkirch.org:
Removed file: http://bugs.python.org/file35578/issue21725-fixed.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21725
___
Changes by Milan Oberkirch milan...@oberkirch.org:
Added file: http://bugs.python.org/file35579/issue21725-fixed.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21725
___
Antoine Pitrou added the comment:
Thanks you for the patch. It may be good to add a unit test for this.
Also, for development, it is probably better to use a Mercurial clone instead
of trying to generate diffs by hand. See the devguide for more information:
https://docs.python.org/devguide/
Andrew Barnert added the comment:
Hi, Stephan. Sorry, for some reason Yahoo was sending updates from the tracker
to spam again, so I missed this. I'd be glad to sign a contributor agreement if
it's still relevant, but it looks like there's a later patch that does what
mine did and more?
Andrew Barnert added the comment:
Sorry, Stefan, not Stephan. Anyway, I've signed the agreement.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1820
___
1 - 100 of 124 matches
Mail list logo