Terry J. Reedy added the comment:
Changing behavior that already matches the docs is an enhancement, not a
bugfix, and one that will almost certainly break code. It is therefore one that
would normally require a deprecation period. I think the most you should ask
for is to skip the
New submission from Russell Kackley:
On a system with no ssl module the following test failure occurs:
==
ERROR: test_dir (test.test_ftplib.TestFTPClass)
--
Illia Polosukhin added the comment:
I've worked on this with Dave Malcolm @PyCon2013 sprints.
This patch is work in progress to make Py_XDECREF() and Py_XINCREF() expands
their arguments once instead of multiple times.
Because patch is work in progress, it contains old version for ease of
Illia Polosukhin added the comment:
Additionally, in macros Py_XINCREF and Py_XDECREF we've took an opportunity to
increase readability by changing expression:
if (item == NULL) ; else action(item);
to more natural inverted condition:
if (item != NULL) action(item);
There is a chance that
Illia Polosukhin added the comment:
Benchmark run on Clang Mac OS X 10.7 attached of comparison with and without
patch 17206.diff.
--
Added file: http://bugs.python.org/file29440/perf.log
___
Python tracker rep...@bugs.python.org
Illia Polosukhin added the comment:
Command used for benchmarking was:
python perf.py -b 2n3 -f ../cpython/baseline-clang/python.exe
../cpython/experiment-clang/python.exe | tee perf.log
--
___
Python tracker rep...@bugs.python.org
R. David Murray added the comment:
To clarify Colin's comment (we worked on this at the sprints), in 2.7 and later
regrtest no longer will generate a TESTFN that starts with /tmp in any
circumstance, so that includes cygwin. (Instead regrtest creates a temporary
directory in which the tests
New submission from Hervé Coatanhay:
In python 2.7 this code works:
import logging.config
import StringIO
a=[loggers]
... keys = root
... [logger_root]
... handlers =
... [formatters]
... keys =
... [handlers]
... keys =
...
logging.config.fileConfig(StringIO.StringIO(a))
whereas in
Ezio Melotti added the comment:
The module is not needed (unless you are planning to use sqlite), so you can
simply ignore the warning. See also
http://docs.python.org/devguide/setup.html#build-dependencies.
--
nosy: +ezio.melotti
resolution: - invalid
stage: - committed/rejected
New submission from alef:
error: Command xlC_r xlC_r -bI:/pathp/to/lib/python2.7/config/python.exp
unixccompiler.py at line 251 override linker[0] with self.compiler_cxx[0]. This
is not true for AIX that uses the script ld_so_aix, and not xlC_r.
--
assignee: eric.araujo
Nick Coghlan added the comment:
At a glance, this just looks like a bug in difflib - it should use
different literals when handling bytes. (Given that difflib newline
processing assumes ASCII compatibility, a latin-1 based decode/encode
solution may also be viable).
--
Illia Polosukhin added the comment:
Talked with David Murray (r.david.murray) at @pycon2013 sprints - will try to
address this.
--
nosy: +ilblackdragon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2786
Roundup Robot added the comment:
New changeset 0842c5411ed6 by Giampaolo Rodola' in branch 'default':
(issue 17452 / ftplib) fix TypeError occurring in case ssl module is not
installed
http://hg.python.org/cpython/rev/0842c5411ed6
--
nosy: +python-dev
Giampaolo Rodola' added the comment:
Fixed, thanks.
--
assignee: - giampaolo.rodola
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17452
Serhiy Storchaka added the comment:
Oh, yes.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17299
___
___
Python-bugs-list mailing list
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file: http://bugs.python.org/file29433/test_cpickle_fileio.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17299
___
New submission from Felix Matenaar:
We're getting the following exception in a custom testing framework using
sqlalchemy. Our process is running several days and the exception seems to
occurs unproducably during runtime, sometimes after a day and sometimes after a
couple of hours. The same
Matt Clarke added the comment:
Hi Amaury.
I have tried removing pack and using /Zp1, but it makes no difference.
The size of callback_t and the one in C are 8 bytes.
Thanks,
Matt
On 13 March 2013 13:19, Amaury Forgeot d'Arc rep...@bugs.python.org wrote:
Amaury Forgeot d'Arc added the
klappnase added the comment:
I am not familiar with python's test unit, but I tried my best.
As far as I see there are three possibilities to invoke the function:
* without pattern - return tuple with all themes
* with pattern that matches one or more themes
* with pattern that matches no
New submission from Corto Nexus:
In Python 3.3 (Windows 32bits) the lib os.py start with an uncommented letter
'r'.
--
messages: 184446
nosy: corto.nexus
priority: normal
severity: normal
status: open
title: os.py (unexpected character)
type: enhancement
versions: Python 3.3
Serhiy Storchaka added the comment:
Benjamin has fixed this in the changeset 6aab72424063.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17299
Ezio Melotti added the comment:
os.py starts with:
rOS routines for Mac, NT, or Posix depending on what system we're on.
[...]
Do you see only the 'r'?
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
Anuj Gupta added the comment:
http://docs.python.org/3/tutorial/introduction.html#strings
This seems like a good opportunity for you to learn about raw strings. :)
--
nosy: +anuj
___
Python tracker rep...@bugs.python.org
Changes by Christian Heimes li...@cheimes.de:
--
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17456
___
New submission from Popa Claudiu:
There is a problem with unittest discovering and namespace packages. Given the
following folder structure, where a namespace package X lies, the following
command fails with the following error:
-testbug
- flufl (namespace package with some tests in it,
Changes by Eli Bendersky eli...@gmail.com:
--
nosy: +theller
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16575
___
___
Python-bugs-list mailing
New submission from Jose Antonio Martin H:
Is it possible to consider the automatic type conversion from set to frozenset
whenever a set is declared inside a set, as the key of a Counter and as the key
of a Dict? Tha is, the case when a set is used but a hashable object is
requested.
Having
New submission from Matthijs van der Vleuten:
When calling assertItemsEqual(first,second), if the items in a and b differ,
the AssertionError treats second as the first sequence and first as the second
sequence.
Repro code:
from unittest.case import TestCase
class Foo(TestCase):
...
Matthijs van der Vleuten added the comment:
Duplicate of 14832.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17459
___
Senthil Kumaran added the comment:
The last commit 59292f366b53 was for fixing issue12921 and not this. Wrongly
linked.
--
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1291
Ezio Melotti added the comment:
I think this is python-ideas material. Automatic conversions are usually not a
good idea though.
--
nosy: +ezio.melotti
resolution: - rejected
stage: - committed/rejected
status: open - closed
versions: -Python 2.7, Python 3.1, Python 3.2, Python
Senthil Kumaran added the comment:
Sorry for taking long time to respond. full_url has been in the shape it is for
many versions, changing it in backwards incompatible way be do more harm than
good.
- I would be really interested to know why the present form of full_url
presented any
Amaury Forgeot d'Arc added the comment:
Sorry, I asked the wrong question; callback_t is a function pointer, so 8 bytes
is expected.
What is sizeof(myst_args) both in C and Python?
--
___
Python tracker rep...@bugs.python.org
New submission from Senthil Kumaran:
issue10711 Removed the HTTP 0.9 support in 3.2 and deprecated strict and
related params in 3.2. It is time to remove those in 3.4.
--
assignee: orsenthil
messages: 184458
nosy: orsenthil, pitrou
priority: normal
severity: normal
status: open
title:
Changes by Eric V. Smith e...@trueblade.com:
--
nosy: +eric.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17457
___
___
Python-bugs-list
Ronald Oussoren added the comment:
I'm not sure if hw.availcpu is the right value to use as it is not documented
at all (neither in a manpage, nor in a headerfile).
hw.activecpu seems to be the one that should be used: it is documented as The
number of processors currently available for
Matt Clarke added the comment:
Hi Amaury.
They are both 12 bytes.
Matt
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17310
___
___
Demian Brecht added the comment:
No worries.
The change is not backwards incompatible. test_urllib2 test pass without any
modification (I'm getting a segfault in test_heapq atm so can't run the full
suite). I've simply moved the side effects cause by __init__ to a setter so
that full_url may
New submission from Ramchandra Apte:
In here, now get it from the Cheeseshop.
Carole maintains several namespace packages,
--
messages: 184462
nosy: Ramchandra Apte
priority: normal
severity: normal
status: open
title: Carole should be Carol in PEP 396
John Szakmeister added the comment:
Ronald: it is mentioned in some books (a Google search can turn them up), but
they don't really offer much description behind the intent. When I looked into
this several years ago, it was very unclear what `hw.activecpu` was intended
for. It sounded more
Senthil Kumaran added the comment:
Tested this patch and all tests pass.
--
keywords: +patch
Added file: http://bugs.python.org/file29443/17460.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17460
Changes by Ned Deily n...@acm.org:
--
nosy: +vinay.sajip
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17453
___
___
Python-bugs-list mailing list
Paul Price added the comment:
The OSX manpage for setrlimit includes:
COMPATIBILITY
setrlimit() now returns with errno set to EINVAL in places that histori-
cally succeeded. It no longer accepts rlim_cur = RLIM_INFINITY for
RLIM_NOFILE. Use rlim_cur = min(OPEN_MAX, rlim_max).
Benjamin Peterson added the comment:
http://hg.python.org/peps/rev/dee47f9b87a4
--
nosy: +benjamin.peterson
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17461
Christian Heimes added the comment:
apport and sqlalchemy are both third-party extensions. apport is a part of
Debian's / Ubuntu's Python infrastructure. There is nothing we can do about the
two issues.
--
nosy: +christian.heimes
resolution: - invalid
status: open - closed
New submission from anatoly techtonik:
http://stackoverflow.com/questions/3217673/why-use-argparse-rather-than-optparse
Too many votes. This should be confirmed by the official documentation.
--
assignee: docs@python
components: Documentation
messages: 184468
nosy: docs@python,
Andrew Svetlov added the comment:
The patch is welcome
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17462
___
___
Ezio Melotti added the comment:
Is http://docs.python.org/dev/library/argparse.html#upgrading-optparse-code not
enough?
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17462
anatoly techtonik added the comment:
@asvetlov: I still don't have the answer which licence - Academic Free License
v2.1 or Apache 2.0 should I choose to license my patches. What is the
difference?
Ezio: It explains what you should replace, but doesn't explain why.
--
versions:
Benjamin Peterson added the comment:
Hi Sven, I was about to apply this (sorry for the delay), and I realized
there's one more thing. We have an example AST unparser in Tools/parser that
needs to be updated for AST changes. You can run it's test suite by running
test_tools in the main test
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: asvetlov
priority: normal
severity: normal
status: open
title: Fix test discovery for test_pdb.py
versions: Python 3.3, Python 3.4
___
Python tracker rep...@bugs.python.org
New submission from Roundup Robot:
New changeset 50af6682c6a7 by Andrew Svetlov in branch '3.3':
Issue #17463: Fix test discovery for test_pdb.py
http://hg.python.org/cpython/rev/50af6682c6a7
New changeset 30530f6c24bb by Andrew Svetlov in branch 'default':
Issue #17463: Fix test discovery for
Serhiy Storchaka added the comment:
May be in 3.4 an exception should be raised? HTTPConnection('python.org', 80,
False) now silently returns wrong result.
--
components: +Library (Lib)
nosy: +serhiy.storchaka
stage: - patch review
type: - enhancement
versions: +Python 3.4
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17463
___
Changes by Matt Bachmann bachmann.m...@gmail.com:
Added file: http://bugs.python.org/file29444/acks.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17451
___
Sven Brauch added the comment:
Hi Benjamin,
the delay is not a problem -- as long as this is in time for Python 3.4,
everything is fine.
Attached is a patch which adjusts the unparser to the changes. Acoording to the
tests, this is all that needs to be updated.
Cheers,
Sven
--
Nick Weinhold added the comment:
I've noticed that this issue hasn't been looked at in a while, and from looking
through the current docucmentation, it looks like this issue still exists.
I've uploaded a patch with the changes that Marc-Andre mentioned.
--
nosy: +ncweinhold
Added
Christina Chan added the comment:
Hi,
I am new to python and I am actually running script developed by others using
python. So,
In order for the script to use SQLite, does it means that it will have import
SQLite in the script or how could one tell if SQLite is needed?
For the build
klappnase added the comment:
Update: I just tried Python-3.3.0 on WinXP, the same error, so it is obviously
_not_ a bug specific to the debian python install.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17397
Matt Bachmann added the comment:
This has the test in the wrong place and I am actively expanding it. I will
reopen later today.
--
resolution: - rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 7c5c678e4164 by Benjamin Peterson in branch 'default':
unify some ast.argument's attrs; change Attribute column offset (closes #16795)
http://hg.python.org/cpython/rev/7c5c678e4164
--
nosy: +python-dev
resolution: - fixed
stage: -
Roundup Robot added the comment:
New changeset 219c997b880b by Benjamin Peterson in branch 'default':
add Sven Brauch for his #16795 contribution
http://hg.python.org/cpython/rev/219c997b880b
--
___
Python tracker rep...@bugs.python.org
Lukas Lueg added the comment:
Another proposal: Add a new BaseClass that, if inherited from, causes an
exception to be uncatchable (e.g. class HardMemoryError(MemoryError,
UncatchableException)).
--
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
This looks similar to issue16809 and requires a similar solution.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17397
___
Ned Jackson Lovely added the comment:
Added bytes literal 'b', made it a real patch, changed test to account for WAV
files actually returning number of frames from this function.
--
keywords: +patch
nosy: +n
versions: +Python 3.4 -Python 3.2
Added file:
Sven Brauch added the comment:
Thanks for reviewing this, and thanks for guiding me through the implementation
process. ;)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16795
___
Changes by Matt Bachmann bachmann.m...@gmail.com:
--
components: +Tests
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17464
___
New submission from Matt Bachmann:
Adds some test coverage to pydoc.
--
files: pydoctests.patch
keywords: patch
messages: 184486
nosy: Matt.Bachmann
priority: normal
severity: normal
status: open
title: Improve Test Coverage Of Pydoc
versions: Python 3.5
Added file:
Greg Ward added the comment:
The original reproduction I posted was incorrect -- it makes difflib look worse
than it should. (I passed strings rather than lists of strings.) Here is a more
accurate version:
import difflib
a = [b'hello']
b = [b'hello!']
'\n'.join(line for line in
Changes by Sanjeev Paskaradevan sanjeev@gmail.com:
--
nosy: +Sanjeev
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1745722
___
___
Mark Dickinson added the comment:
I'd suggest less generic names for the temporary variables, just to minimise
the chance of accidental name collisions. _py_xincref_tmp and _py_xdecref_tmp,
perhaps?
--
nosy: +mark.dickinson
___
Python tracker
New submission from Brett Cannon:
While devinabox was originally designed such that anyone running a core dev
sprint could have an easy way to grab everything, it has turned out only core
devs end up using it. That makes having a script to do checkouts, builds, etc.
is overkill.
What
Greg Ward added the comment:
Replying to Terry Reedy:
So a dual string/bytes function would not be completely trivial.
Correct. I have one working, but it makes my eyes bleed. I fail ashamed to have
written it.
Greg, can you convert bytes to strings, or strings to bytes
Nope. Here is the
Kushal Das added the comment:
Working on a patch for this.
--
nosy: +kushaldas
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17358
___
___
Illia Polosukhin added the comment:
That names were my first idea - but then I saw Py_CLEAR uses _py_tmp variable I
used it.
Should I replace in Py_CLEAR to _py_clear_tmp as well?
--
___
Python tracker rep...@bugs.python.org
Senthil Kumaran added the comment:
I don't know what is the best way to raise an Exception when we are deprecating
an argument.
1. The options are type checking on timeout parameter and then raising an
error. This does not look good to me.
2. Making the rest of the arguments as keyword only
Mark Dickinson added the comment:
Ignore me; I don't know what I was thinking. _py_tmp is fine. There's no
issue with name clashes.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17206
klappnase added the comment:
Yes, I happen to encounter these TclObjects occasionally, e.g. (not tested with
the latest python):
$ python3
Python 3.1.3 (r313:86834, Nov 28 2010, 11:28:10)
[GCC 4.4.5] on linux2
Type help, copyright, credits or license for more information.
from tkinter import
Sean Reifschneider added the comment:
This may be related to: http://bugs.python.org/issue17424
Perhaps there is a common fix that can address this for both?
--
nosy: +jafo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17053
Ned Jackson Lovely added the comment:
Check if sys.platform == 'win32', if so, skip test.
--
keywords: +patch
nosy: +n
versions: +Python 3.4 -Python 2.7
Added file: http://bugs.python.org/file29449/issue5051.diff
___
Python tracker
Kushal Das added the comment:
Can not reproduce it :(
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17358
___
___
Python-bugs-list mailing list
Sean Reifschneider added the comment:
This might be a duplicate of issue17053, but the patch provided there doesn't
resolve the issue, at least as far as I know it. Here is an example, from
David Beazley's talk at PyCon 2013:
from inspect import Parameter, Signature
def
Ned Jackson Lovely added the comment:
Improved msg per discussion.
I don't see how to test this without messing with the windows registry. I am
deeply reluctant to do that.
--
keywords: +patch
nosy: +n
Added file: http://bugs.python.org/file29450/issue2943.diff
New submission from Georgiy Treyvus:
The conditions under which this bug occurs I can't explain. I will provide as
much other information as I can.
This is an issue with both Python2 and Python3. More specifically Python 2.7.3
and Python 3.2.3 as those are what come with the Fedora 17
Ezio Melotti added the comment:
Have you tried to print letters and see what it is? Have you verified that
the asserts are executed?
You are probably doing something wrong, and it would be better to ask this on
python-list.
--
nosy: +ezio.melotti
Radu Voicilas added the comment:
Hi,
Here are some small comments to your otherwise good to have patch:
-- assertEquals has been deprecated in favor of assertEqual, and usually it's
great to be consistent across the test suite
-- likewise maxDiff should be max_diff mainly because of
Matt Bachmann added the comment:
Sure thing, ill make the improvements and upload a new patch. Thanks!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17464
___
Georgiy Treyvus added the comment:
Yes the assert statements are executed. They are not in any sort of if block or
anything like that. When the encrypt function is called and it was in the above
examples the assert statements execute period. They really don't have much else
of a choice. Look
Mark Dickinson added the comment:
doQuadraticDistortion returns a string. Closing as invalid.
--
nosy: +mark.dickinson
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17466
Matt Bachmann added the comment:
--Changes assertequals to assertequal
--Removes maxdiff as it should not really be there in the first place
--Creates an explicit testdir, and cleans it up
--Last patch did not actually apply cleanly... I reverted and applied this one
and this seems to work
Mark Dickinson added the comment:
Sorry; that was a bit terse. To elaborate: on the first iteration of your for
loop in the 'encrypt' function, you're correct that letters has type 'list'.
But on the second iteration, it'll have type 'str', because the line
Georgiy Treyvus added the comment:
wait why was this closed?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17466
___
___
Python-bugs-list
Georgiy Treyvus added the comment:
ok will try
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17466
___
___
Python-bugs-list mailing list
Kristján Valur Jónsson added the comment:
Here is a patch for 2.7
Since 2.7 doesn't have pytime.c, we export floattime() as _Py_floattime out of
time.c
--
Added file: http://bugs.python.org/file29453/socket.patch
___
Python tracker
New submission from Toshio Kuratomi:
unittest.mock provides a mock_open convenience function[1]. The convenience
function handled file.read() but does not handle file.readline() or
file.readlines(). I'll attach a patch that adds support for both of these
methods.
[1]:
Georgiy Treyvus added the comment:
@Mark: You're right. Sorry for the erroneous bug report.
--
resolution: invalid -
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17466
Changes by Gregory P. Smith g...@krypto.org:
--
assignee: - gregory.p.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17192
___
___
New submission from Anssi Kääriäinen:
A generator is leaked to gc.garbage in a situation where `__del__` isn't
defined. See the attached file for as-minimalistic test case as I could make.
Tested on Python 3.3.0, 3.2.3 and 2.7.3.
Note that if the try-except is removed from iterator(), then
Ned Jackson Lovely added the comment:
Should this be closed?
--
nosy: +n
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7573
___
___
R. David Murray added the comment:
Re-reported and fixed in issue 7317.
--
nosy: +r.david.murray
resolution: - duplicate
stage: test needed - committed/rejected
status: open - closed
superseder: - Display full tracebacks when an error occurs asynchronously
1 - 100 of 203 matches
Mail list logo