James Dominy added the comment:
How does one create a multi-stream bzip2 file in the first place? And how do I
tell it's multi-stream.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20781
New submission from Frank Millman:
Using copy.copy on a byte string returns a new copy instead of the original
immutable object. Using copy.deepcopy returns the original, as expected.
Testing with timeit, copy.copy is much slower than copy.deepcopy.
import copy
a = 'a'*1000 # string
Saimadhav Heblikar added the comment:
This patch does
1.Remove pep8 violations in PathBrowser.py . Replaces file,dir,sorted by
file_,dir_,sorted_ respectively.
2.Extends test coverage for PathBrowser.py in idle_test/test_PathBrowser.py
New modules now under tests include
1.dirBrowserTreeItem
Nadeem Vawda added the comment:
How does one create a multi-stream bzip2 file in the first place?
If you didn't do so deliberately, I would guess that you used a parallel
compression tool like pbzip2 or lbzip2 to create your bz2 file. These tools work
by splitting the input into chunks,
Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com:
Removed file: http://bugs.python.org/file34242/pathbrowser1.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16226
___
New submission from Saimadhav Heblikar:
This patch does
1.Remove pep8 violations in PathBrowser.py . Replaces file,dir,sorted by
file_,dir_,sorted_ respectively.
2.Extends test coverage for PathBrowser.py in idle_test/test_PathBrowser.py
New modules now under tests include
Peter Otten added the comment:
Assuming that the current behaviour is by accident here's a patch that adds the
bytes type to the _copy_dispatch registry.
--
keywords: +patch
nosy: +peter.otten
Added file: http://bugs.python.org/file34244/copy_bytes.patch
STINNER Victor added the comment:
bytes is immutable, I don't why we would duplicate it.
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20791
___
Kristján Valur Jónsson added the comment:
Are you referring to the Py_LOCAL_INLINE macro?
I see that we have no Py_INLINE. Py_LOCAL_INLINE includes the static
qualifier, and in fact, if there is no USE_INLINE defined, then all that it
does is to add static.
Would having a Py_INLINE(type)
Kristján Valur Jónsson added the comment:
Well, Larry, I certainly am in no mood to start wrangling on python-dev. A 25
year old C standard is likely to be very mature and reliable by now. Why take
risks? :)
#Py_LOCAL_INLINE exists and demonstrates that we can make use of them when
Steven D'Aprano added the comment:
I think you may have misread PEP 8. It does not recommend a trailing underscore
for names that shadow built-ins (e.g. file_ instead of file), it only
recommends a trailing underscore when you need to use a keyword as a name (e.g.
class_ instead of class).
Laurent Mazuel added the comment:
Thank for your answer.
Unfortunately, I cannot test easily python 3.4 for now. But I have downloaded
the source code and diff from 3.3 to 3.4 the zipfile module and see no
difference relating to this problem. I can be wrong, maybe if some core
improvement of
New submission from René Fleschenberg:
locale.setlocale() does not work if you pass it a ``unicode`` object instead of
a ``str`` (locale.py, line 576):
``if locale and type(locale) is not type():``
Maybe it would be better to do a check like this?
``if locale and not
New submission from Naval Gupta:
Getting below compilation error:
ImportError: Bad magic number in .pyc
Ran a python abc.py module which is trying to import .pyc during compilation
Python Interpreter used to run: Python 2.7
Python pre-compiled file .pyc is compiled using Python
STINNER Victor added the comment:
Can you please attach your script and give the command you are typing to
reproduce the issue?
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20794
Peter Otten added the comment:
This is expected. You cannot run/import 2.6 .pyc files in python 2.7 because
the file format has changed.
$ echo 'print hello' tmp.py
$ python2.6 -c 'import tmp'
hello
$ rm tmp.py
$ python2.7 -c 'import tmp'
Traceback (most recent call last):
File string,
Changes by Yury Selivanov yselivanov...@gmail.com:
--
nosy: +yselivanov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20791
___
___
R. David Murray added the comment:
We probably just forgot to add it when the bytes type was added, and there was
of course no test that would fail since it was a new type.
--
nosy: +r.david.murray
versions: +Python 3.4, Python 3.5
___
Python
New submission from LuisC:
HelloKiss those diets good bye. Lose weight quick the easy way. Watch
video!Just for you - visit now
Buy more, pay less! Be healthy with best meds for women.
--
messages: 212355
nosy: lcarrionr
priority: normal
severity: normal
status: open
title: Feel our
Changes by Berker Peksag berker.pek...@gmail.com:
--
Removed message: http://bugs.python.org/msg212355
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20795
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: -lcarrionr
resolution: - invalid
stage: - committed/rejected
status: open - closed
title: Feel our love and care. Order medications from our drugstore. - Spam
___
Python tracker
Changes by Martin Dengler mar...@martindengler.com:
--
nosy: +mdengler
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14302
___
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
resolution: - invalid
stage: - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20777
___
Changes by Chris Angelico ros...@gmail.com:
--
components: +Tests
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20796
___
New submission from Chris Angelico:
$ find . -name \*.pyc -delete
$ PYTHONDONTWRITEBYTECODE=1 make test
Three test failures, which all seem to be duplicates of:
==
FAIL: test_timestamp_overflow
Changes by Berker Peksag berker.pek...@gmail.com:
--
versions: +Python 3.4 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16484
___
___
Zachary Ware added the comment:
Agreed with Vajrasky, the 2.7 commit wasn't as clean as it could be (sorry I
didn't get an actual review done before you committed, I posted my last test
results in a bit of a hurry). The commented out line should either be removed,
or used instead of the
New submission from Laurent Mazuel:
Many methods which use path in Python now accept string or bytes in parameter
(e.g. all methods in os.path, the open method, etc.).
Actually, sometimes it is not possible to handle a file without using bytes
path. For example, path coded in another encoding
Barry A. Warsaw added the comment:
We're seeing this in Ubuntu now that 3.4 is the default.
https://bugs.launchpad.net/python/+bug/1284469
--
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19021
Chris Angelico added the comment:
One test failing, due to Tools/parser/unparse.py not knowing how to unparse an
except expression. Otherwise, test suite passes (with most of the stdlib
unchanged). I'm about to try writing an actual conversion script which will
rewrite the stdlib, and then
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +larry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19021
___
___
Python-bugs-list
STINNER Victor added the comment:
Serhiy fixed the issue #19255 with the changeset 6a1711c96fa6, but this
changeset will wait Python 3.4.1.
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19021
Terry J. Reedy added the comment:
S.H. moved his patch for new tests to new issue #20792.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16226
___
Terry J. Reedy added the comment:
We do not usually make pure style changes in a file unless the code is being
reviewed and edited. Even then, I focus on changes that make the file easier to
read and understand, as is necessary to write tests. One example is adding
missing spaces after commas
Brett Cannon added the comment:
Somehow managed to glance right over it. Guess I was more frazzled than I
thought last night.
--
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20790
Berker Peksag added the comment:
Here's a patch to skip the test if PYTHONDONTWRITEBYTECODE is not None.
--
keywords: +patch
nosy: +berker.peksag
Added file: http://bugs.python.org/file34246/issue20796.diff
___
Python tracker rep...@bugs.python.org
New submission from Pete Zaitcev:
When using an assert such as self.assertEquals(tester(), expected), an error
message suggests wrong argument order (as in, not the order in examples in the
documentation). Apparently this is confusing enough that OpenStack even opened
a whole bunch of bugs
New submission from Brett Cannon:
Some tests have a leading underscore which means they were probably turned off
for testing purposes but forgot to be flipped back on. Should turn them back on
and make sure that they actually still pass.
--
assignee: brett.cannon
components: Library
Changes by Brett Cannon br...@python.org:
--
assignee: - brett.cannon
nosy: +brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20796
___
R. David Murray added the comment:
Testtools is not part of the stdlib. Are you saying there is a bug in the
stdlib assertEqual? If so, can you demonstrate the bug using just stdlib-based
code?
--
nosy: +r.david.murray
___
Python tracker
Barry A. Warsaw added the comment:
On Feb 27, 2014, at 03:46 PM, STINNER Victor wrote:
Serhiy fixed the issue #19255 with the changeset 6a1711c96fa6, but this
changeset will wait Python 3.4.1.
Okay, thanks. I was reviewing and rather liked the less invasive patch, but
if this one is going to
Berker Peksag added the comment:
Updated patch adressing Brett's comment. Thanks!
--
stage: - patch review
Added file: http://bugs.python.org/file34247/issue20796_v2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20796
Berker Peksag added the comment:
Updated patch adressing Larry's comment. I also fixed a typo in the max()
documentation. Thanks!
--
stage: - patch review
Added file: http://bugs.python.org/file34248/issue20620_v2.diff
___
Python tracker
Brett Cannon added the comment:
LGTM; I (or some other core dev) will commit when there's time.
--
stage: patch review - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20796
___
Chris Angelico added the comment:
Thanks for the fast turn-around, guys! Not that it matters hugely - I happened
to have bytecode writing disabled to test something unrelated and noticed the
test failure.
--
___
Python tracker
Roundup Robot added the comment:
New changeset 8afcfe6dfd6e by Benjamin Peterson in branch '3.3':
fix importlib test failure when bytecode writing is disabled (closes #20796)
http://hg.python.org/cpython/rev/8afcfe6dfd6e
New changeset 15a0bbfb27f1 by Benjamin Peterson in branch 'default':
merge
Barry A. Warsaw added the comment:
If this fixes the problem, shouldn't the issue be closed and a NEWS item added?
I'm going to test the patch locally.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19021
Antoine Pitrou added the comment:
Hmm... if this *already* affects Ubuntu users, shouldn't this be fixed in 3.4
proper? It's extremely likely that someone else will be affected too.
--
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
I don't know about philosophical reasons ;-), but I don't think chown is very
often used. Do you know of a context where it is?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20779
Antoine Pitrou added the comment:
Thanks for the patch, Peter. Could you sign a contributor's agreement? You can
do so online at http://www.python.org/psf/contrib/contrib-form/
--
nosy: +pitrou
stage: - patch review
versions: -Python 3.3
___
Antoine Pitrou added the comment:
Akira, thanks. I have posted a review; if you haven't received the e-mail
notification, you can still access it at
http://bugs.python.org/review/19940/#ps11142
--
stage: needs patch - patch review
versions: +Python 3.5 -Python 3.4
Pete Zaitcev added the comment:
Oh, indeed. The printout is in testtools only. The unittest prints this:
[zaitcev@guren xxx]$ python3 -c 'import nose; nose.main()'
F
==
FAIL: test_testEquals (testic.TestConfigTrueValue)
Changes by R. David Murray rdmur...@bitdance.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20798
___
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2771
___
___
Python-bugs-list
Barry A. Warsaw added the comment:
On Feb 27, 2014, at 07:23 PM, Antoine Pitrou wrote:
Hmm... if this *already* affects Ubuntu users, shouldn't this be fixed in 3.4
proper? It's extremely likely that someone else will be affected too.
Agreed!
--
Ned Deily added the comment:
Thanks for the report. There was a lengthy discussion of this behavior a few
years ago in Issue3067. At that time it was decided not to change this
behavior for 2.7. I'm not sure if the __future__ unicode_literals was
considered then, however you can work
Peter Otten added the comment:
I did sign today (and received the confirmation email).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20791
___
Ned Deily added the comment:
As Peter notes, .pyc and .pyo files are in general not compatible across Python
versions. PEP 3147 was implemented in Python 3.2 to help avoid the problem you
are seeing by storing .pyc/.pyo files with version-specific filenames. For
Python 2, you need to be
Chris Angelico added the comment:
I've applied all the changes my script can find, including ones that are
actually quite inappropriate, like:
try:
some_function_call()
except some_exception:
some_other_function_call()
All tests pass except for one, which I don't fully
Changes by Chris Angelico ros...@gmail.com:
Added file: http://bugs.python.org/file34250/churn1.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20739
___
Changes by Chris Angelico ros...@gmail.com:
Added file: http://bugs.python.org/file34251/churn2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20739
___
Changes by Chris Angelico ros...@gmail.com:
Added file: http://bugs.python.org/file34252/broken.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20739
___
Zachary Ware added the comment:
Windows 8 (or at least 8.1) doesn't seem to be too far off from the directions
on that site. If you're proficient enough to change an environment variable in
Windows 7, chances are good you can figure it out on Windows 8(.1). If you're
not, chances are good
Zachary Ware added the comment:
What's the status here? Appears to be fixed?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19085
___
___
Roundup Robot added the comment:
New changeset c2523bca50d7 by Antoine Pitrou in branch 'default':
Issue #20791: copy.copy() now doesn't make a copy when the input is a bytes
object. Initial patch by Peter Otten.
http://hg.python.org/cpython/rev/c2523bca50d7
--
nosy: +python-dev
Antoine Pitrou added the comment:
Ok, thank you! This will be in 3.4.1 and 3.5.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20791
Zachary Ware added the comment:
This was added by #20456 (a couple weeks ago).
--
components: +Demos and Tools
resolution: - fixed
stage: - committed/rejected
status: open - closed
superseder: - Argument Clinic rollup patch, 2014/01/31
type: - enhancement
versions: +Python 3.4
Ned Deily added the comment:
All of the failures I reported are now fixed so I think this issue can be
closed.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19085
___
Changes by Julian Mehnle jul...@mehnle.net:
--
nosy: +jmehnle
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3831
___
___
Python-bugs-list mailing
STINNER Victor added the comment:
Why not fixing this bug in Python 3.3 too?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20791
___
___
Antoine Pitrou added the comment:
Is Python 3.3 still allowing bug fixes?
If yes, this is a good idea. Do you want to backport it?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20791
___
R. David Murray added the comment:
3.3 will get fixes until its final release, which will be some time after the
release of 3.4.0.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20791
___
Roundup Robot added the comment:
New changeset b3fb7828b6fc by Antoine Pitrou in branch '3.3':
Issue #20791: copy.copy() now doesn't make a copy when the input is a bytes
object. Initial patch by Peter Otten.
http://hg.python.org/cpython/rev/b3fb7828b6fc
--
Roundup Robot added the comment:
New changeset 43c4073cb2e2 by Terry Jan Reedy in branch '2.7':
Issue #20567: Delete class attribute gui widgets in idle tests.
http://hg.python.org/cpython/rev/43c4073cb2e2
New changeset daf44eb9c54e by Terry Jan Reedy in branch '3.3':
Issue #20567: Delete class
New submission from Terry J. Reedy:
After the fix for #20567, running test_idle and then test_ttk_guionly works,
but running either after itself does not. Example command and output, which is
same running with installed 3.4.0rc1 (Feb 11) or fresh debug build.
F:\Python\dev
Terry J. Reedy added the comment:
There is also a different test problem that might be related to the altered
environment. See #20800
--
stage: needs patch - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20567
Saimadhav Heblikar added the comment:
Well,thank you for the feedback to both .
I will try to make a new patch , during this weekend,
removing the name changes
to add docstrings
and add a human testable dialog for pathbrowser,as is present in other tests.
--
Ned Deily added the comment:
The Warning -- os.environ was modified by test_ttk_guionly looks suspicious.
Does the patch for Issue20035 help?
--
nosy: +ned.deily
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20800
Terry J. Reedy added the comment:
The #20035 patch removes the warning but the rest is the same.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20800
___
Ned Deily added the comment:
What happens if you add -v (verbose) ... -m test -v -ugui ... to find the
failing tests?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20800
___
Terry J. Reedy added the comment:
The patch works to suppress the message for test_ttk_guionly. However,
unfix_environ does not undo everything that needs to be undone, as evidenced by
#20800.
The patch does not fix test_idle. I suspect that this is because test_idle
pulls in tests from
Terry J. Reedy added the comment:
With 3.3 and the patch still applied, all 13 test methods fail with tracebacks
that end with the _tkinter.create call, as above. For Idle, there are 3
tracebacks for the 3 modules with gui tests.
--
___
Python
akira added the comment:
Related: issue4926 putenv() accepts names containing '=', return value of
unsetenv() not checked
`os.environ.clear()` also fails if the environment contains names with `=`:
import os
os.environ['a=b'] = 'c'
os.environ.clear()
Traceback (most recent call
Sam Gleske added the comment:
Are you kidding me? I can't believe SNI isn't being backported to python 2.x.
This is ridiculous in my opinion. The bug fix needs to be back ported.
--
nosy: +sag47
versions: +Python 2.7, Python 3.1
___
Python
New submission from Pramod Jadhav:
Exception in thread Thread-18:
Traceback (most recent call last):
File C:\Anaconda\lib\threading.py, line 810, in __bootstrap_inner
self.run()
File C:\Anaconda\lib\threading.py, line 763, in run
self.__target(*self.__args, **self.__kwargs)
File
Ned Deily added the comment:
Sorry, you are going to have supply more information. From the traceback
supplied, it appears the call to subprocess is coming from envoy, which is not
part of the Python standard library. Please re-open if you can supply a test
case demonstrating a problem in
New submission from Pramod Jadhav:
AttributeErrorTraceback (most recent call last)
ipython-input-16-c985c6423e2d in module()
7 #F='C:\Users\Prashant\Documents\IPython
Notebooks\resources\ch06-mailboxes'
8
Ned Deily added the comment:
The traceback shows an issue when using envoy, which is not part of the Python
standard library. Assuming you are using the envoy listed in PyPI, I suggest
you ask on the project's issue tracker:
https://github.com/kennethreitz/envoy/issues
--
nosy:
Vajrasky Kok added the comment:
Pragmatic reasons:
I use chown moderately often. Usually as root, I want to change the uid of the
files after generating a bunch of files. But I almost never changed gid.
I am in two mind whether I should add lchown as well or not (just like lchmod)
and make
89 matches
Mail list logo