snehal added the comment:
When I gave following command, I see no error
root@beta1:/home/ubuntu/python/Python-3.4.1# python3.4 -c 'import ctypes'
root@beta1:/home/ubuntu/python/Python-3.4.1#
I do see ctypes in root@beta1:/home/ubuntu/python/Python-3.4.1/Lib# folder
--
snehal added the comment:
Also ctypes contains following
root@beta1:/home/ubuntu/python/Python-3.4.1/Lib/ctypes# ls
_endian.py __init__.py macholib __pycache__ test util.py wintypes.py
--
___
Python tracker rep...@bugs.python.org
Csaba Makara added the comment:
Sorry for the late answer.
It was a direct usage of the dir_utils.copy_tree.
I absolutely understand you don't want to touch it.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22132
Ned Deily added the comment:
OK. Does test_ctypes run successfully?
cd /home/ubuntu/python/Python-3.4.1
./python -E -S -m test -v test_ctypes
and then does test_venv run successfully in isolation?
cd /home/ubuntu/python/Python-3.4.1
./python -E -S -m test -v test_venv
Also, what
Serhiy Storchaka added the comment:
Here are things which support bytes instances only:
1. Constructor and setter of the value attribute of NUL terminated char
buffer.
p = create_string_buffer(bHello)
p.value
b'Hello'
p.raw
b'Hello\x00'
p.value = b'Bye'
p.value
b'Bye'
p.raw
Nick Coghlan added the comment:
The problem is that the Rietveld integration isn't able to figure out the base
revision, so it isn't generating the review automatically. Times like this it
would be nice to be able to specify a base branch explicitly...
In other news... the outcome of the
New submission from Serhiy Storchaka:
Some ctypes functions by mistake accept wrong types which then rejected by
internal functions. This is mainly remnants of 2.x where both str and unicode
was accepted and then automatically converted to right type.
--
assignee: serhiy.storchaka
Changes by Serhiy Storchaka storch...@gmail.com:
--
dependencies: +Remove unsupported code from ctypes
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10803
___
Michael Foord added the comment:
testBaseClass, abstractTestClass and abstractBaseClass are all fine with me. I
wouldn't waste too much time bike-shedding it. If we need a decision let's go
with abstractTestClass.
--
___
Python tracker
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file: http://bugs.python.org/file36297/ctype_bytes_checks-3.4.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22161
___
Changes by Serhiy Storchaka storch...@gmail.com:
Added file: http://bugs.python.org/file36298/ctype_bytes_checks-3.4.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22161
___
New submission from Daniel Lintott:
In the documentation for venv (https://docs.python.org/3.5/library/venv.html)
it gives examples for activating the venv under bash/zsh.
For a long time under both Debian and Ubuntu the default shell has been Dash
(https://wiki.ubuntu.com/DashAsBinSh)
Dash
Changes by Daniel Lintott dan...@serverb.co.uk:
--
nosy: +eric.araujo, ezio.melotti, georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22162
___
Changes by Daniel Lintott dan...@serverb.co.uk:
--
title: Actiavting a venv - Dash doesn't understand source - Activating a venv
- Dash doesn't understand source
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22162
Changes by Georg Brandl ge...@python.org:
--
nosy: -georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22162
___
___
Python-bugs-list
Mark Summerfield added the comment:
I'd be happy to draft a PEP if it is needed, if no one else has the
time/inclination.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22123
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
assignee: - berker.peksag
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22150
___
___
Éric Araujo added the comment:
dash is the default system shell used to execute scripts (i.e. /bin/sh), not
the default shell used for users login shell and terminal emulators.
The venv/scripts/poxis/activate file seems to require bash anyway: running
checkbashisms on it warns about “hash
Ezio Melotti added the comment:
SGTM.
The patch still needs docs and there are some comments on rietveld.
The name of the decorator should be updated too, and possibly
__unittest_base_class__ should be renamed to __unittest_abstract_class__ to
match the name of the decorator.
--
Daniel Lintott added the comment:
Hmm... just double checked this and this time has worked with the source
command (previously was telling me it couldn't be found).
Have double checked and indeed the default login shell is bash
So feel free to close this issue
--
New submission from Eduardo Robles Elvira:
I think I have found a small typo-bug in tarfile.py, that seems to
be present in cpython upstream, which makes tarfile compression slower.
The issue can be seen here, in line 415 [1] of tarfile.py:
self.cmp = self.zlib.compressobj(9,
Vinay Sajip added the comment:
Was there a reason you couldn't close it yourself?
--
resolution: - not a bug
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22162
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: -serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14534
___
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +nadeem.vawda
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22163
___
___
Edd Barrett added the comment:
This problem shows up on OpenBSD too. It breaks 'hg view' also.
--
nosy: +Edd.Barrett
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19884
___
Eli Bendersky added the comment:
Ezio, could you see if your comments were addressed?
Steven, do you want to take another look, or is this OK to commit?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14910
Éric Araujo added the comment:
Thanks. There is a function intended for general use: shutil.copytree; it may
have the same behavior (not a bug if it's documented).
--
resolution: - wont fix
stage: - resolved
status: open - closed
___
Python
Antoine Pitrou added the comment:
Le 07/08/2014 04:34, Nick Coghlan a écrit :
In other news... the outcome of the Fedora thread is that Slavek is
just going to go ahead and apply the patch to Python 2.7 RPMs in Fedora
Rawhide next week. That will hopefully be entirely uneventful, but if it
Changes by Remi Pointel pyt...@xiri.fr:
--
nosy: +rpointel
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19884
___
___
Python-bugs-list mailing
New submission from Antoine Pitrou:
This is a tricky issue I'm sometimes seeing when running Numba's test suite,
and I can't seem to write a reproducer. Somtimes I'm seeing the following
messages:
Exception ignored in: function
_OverloadedBase._make_finalizer.locals.finalizer at
Vajrasky Kok added the comment:
Victor, your patch fixes most of the pesky warnings. However you left one
warning left (at least in Mac OS X 10.9.4).
Objects/unicodeobject.c:4831:43: warning: comparison of integers of different
signs: 'unsigned long' and 'long' [-Wsign-compare]
if
Vajrasky Kok added the comment:
In test_shutil.py, yes, this is the only place. But in other tests, we got
different type of warnings, such as:
test_mailbox.py:46: RuntimeWarning: tests may fail, delete still pending for
@test_4456_tmp
test_decimal:5608: UserWarning: C tests skipped: no
venza added the comment:
This is the exception that comes out after running the py -m ensurepip manually:
C:\Python34\lib\ensurepip\__main__.py run on 08/07/14 15:44:36
Ignoring indexes: https://pypi.python.org/simple/
New submission from Josh Lee:
While SimpleHTTPServer from Python2 would happily spit out whatever bytes were
in the directory listing, Python3's http.server logs an error and closes the
connection without responding to the HTTP request.
$ mkdir $'\xff'
$ ls
\377/
$ python3 -m http.server
Serhiy Storchaka added the comment:
You left 3.4 branch unmerged into default branch.
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22160
___
Steve Dower added the comment:
Presumably the value for subkeyname being passed to OpenKey contains an
embedded null, which I believe is legal for the registry in general, but
doesn't make much sense in this context and is quite possibly a corruption
issue on your machine.
We can certainly
Steve Dower added the comment:
FWIW, on my machine I don't have embedded nulls in any of the values that
enum_keys is looking for:
import winreg
hkcr=winreg.OpenKey(winreg.HKEY_CLASSES_ROOT, '')
n = []
i = 0
while True:
... try:
... n.append(winreg.EnumKey(hkcr, i))
... except
STINNER Victor added the comment:
Victor, your patch fixes most of the pesky warnings. However you left one
warning ...
Yes, my patch is uncomplete. Don't hesitate to post a new patch or
complete mine. I'm in holliday, I'm not going to update it before a
few weeks.
--
Steve Dower added the comment:
The 2.7 installer will be fine whenever the release manager asks for it
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22160
___
Zachary Ware added the comment:
Oops. Merged now.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22160
___
___
Python-bugs-list mailing list
venza added the comment:
Ok, I had three such keys. I run RegDelNull.exe and managed to remove two of
them. The third one is still there.
I'm reasonably sure that this machine is clean, anyway:
1. the Python installer should not fail silently when an exception is thrown
during pip
Steve Dower added the comment:
Agreed on both points, but we need to find someone willing to fix the 3.4
installer (I'm completely focused on the 3.5 installer, which won't suffer from
the first point).
There's a separate issue tracker for pip which would be the place to get their
developers
Roundup Robot added the comment:
New changeset e306cf07046a by Serhiy Storchaka in branch '3.4':
Issue #20056: Fixed deprecation warning about bytes path in test_shutil on
http://hg.python.org/cpython/rev/e306cf07046a
New changeset 8480179d2a7f by Serhiy Storchaka in branch 'default':
Issue
Serhiy Storchaka added the comment:
Oops. Merged now.
Thank you.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22160
___
___
Serhiy Storchaka added the comment:
Thank you Vajrasky.
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20056
___
Mark Lawrence added the comment:
Nobody is listed as a maintainer for mimetypes here
https://docs.python.org/devguide/experts.html but I've seen Tim has done some
work on it so adding him to nosy list.
--
nosy: +BreamoreBoy, tim.golden
___
Python
Alex Gaynor added the comment:
New patch should be in the mercurial diff format.
--
Added file: http://bugs.python.org/file36301/ssl-backport.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21308
R. David Murray added the comment:
It should return a server error, I think.
--
nosy: +r.david.murray
stage: - needs patch
type: - behavior
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22165
Augie Fackler added the comment:
Why not treat the filename as opaque bytes, and let the client fetch it anyway?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22165
___
Jason Robinson added the comment:
Ezio, here are new versions of the patch. This time I used `hg mv` command to
move the files to the new location and then copied over the correct versions.
It does look though to me that there is no difference except timestamps.
I will upload also a --git
Jason Robinson added the comment:
Here is the `hg diff --git` patch.
Hope this one applies :)
--
Added file: http://bugs.python.org/file36303/issue15907_3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15907
Nick Coghlan added the comment:
On 7 Aug 2014 23:11, Antoine Pitrou rep...@bugs.python.org wrote:
I doubt adding a ton of new APIs and code can be uneventful, but good
luck :)
They don't call it Rawhide for nothing! :)
--
___
Python tracker
R. David Murray added the comment:
Because http traffic is supposed to be either latin-1 or whatever charset is
specified (at least, to my understanding that is the case), so sending
incorrectly encoded data seems wrong.
On the other hand, we support unix files systems not having well defined
Serhiy Storchaka added the comment:
Here is a patch which fixes handling of undecodable paths in
SimpleHTTPRequestHandler.
--
keywords: +patch
nosy: +serhiy.storchaka
stage: needs patch - patch review
Added file: http://bugs.python.org/file36304/issue22165.patch
Changes by Demian Brecht demianbre...@gmail.com:
--
nosy: +demian.brecht
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22165
___
___
Mark Lawrence added the comment:
Looks as if the v2 and v3 docs need changing.
--
nosy: +BreamoreBoy
type: enhancement - behavior
versions: +Python 2.7, Python 3.4, Python 3.5
___
Python tracker rep...@bugs.python.org
Mark Lawrence added the comment:
@Eric what do you make of the attached patch?
--
nosy: +BreamoreBoy
versions: -Python 2.6, Python 3.1, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18976
Mark Lawrence added the comment:
Could it be argued that this is a regression so the type should be behavior and
not enhancement?
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18977
New submission from Zachary Ware:
After 9bca86812857 (#22104), test_codecs now reports leaked references from
ExceptionChainingTest. Previously the tests were only ever loaded one time, so
each run of the tests was actually using the same set of TestCase instances;
now the tests are freshly
Zachary Ware added the comment:
Here's a new patch; have I missed anything else that ought to be in setUpModule?
--
Added file: http://bugs.python.org/file36305/issue22060.diff
___
Python tracker rep...@bugs.python.org
Roumen Petrov added the comment:
more simple correction is attached to issue17219
--
nosy: +rpetrov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18976
___
paul j3 added the comment:
For documentation, ['this','is','a','test'] might be a bit clearer than 'this
is a test'.split(). But generating a list of strings by split is, I think, a
pretty basic idiom.
But for testing purposes the split() version is a bit more robust because it is
closer to
paul j3 added the comment:
Another issue dealing with abbreviations is close to being committed.
http://bugs.python.org/issue14910
argparse: disable abbreviation
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14365
Dan O'Reilly added the comment:
Here's an updated patch that adds documentation and Antoine's requested code
changes.
--
Added file: http://bugs.python.org/file36306/map_chunksize_with_docs.patch
___
Python tracker rep...@bugs.python.org
paul j3 added the comment:
On Stackoverflow a couple of posters have asked about nesting namespaces as a
way of separating the parser and subparser arguments.
http://stackoverflow.com/questions/15782948
http://stackoverflow.com/questions/18668227
One solution that I rather like
Mark Lawrence added the comment:
@Paul what is your opinion of this patch?
--
nosy: +BreamoreBoy, paul.j3
versions: +Python 3.5 -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18979
Changes by Berker Peksag berker.pek...@gmail.com:
--
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15907
___
___
New submission from Roy Smith:
For background, see:
https://mail.python.org/pipermail/python-list/2014-August/676291.html
In a nutshell, the iglob() docs say, Return an iterator which yields the same
values as glob() without actually storing them all simultaneously. The
problem is,
Changes by Tim Chase python.b...@tim.thechases.com:
--
nosy: +Gumnos
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22167
___
___
Python-bugs-list
New submission from Kent D. Lee:
This is either a turtle graphics or tkinter problem.
In Python 3.4 it appears that something in Turtle Graphics broke or at least
changed. I get the following error when trying to run a program that works in
Python 3.1 and 3.2.
Kent's Mac python3.4 c4.py
Steven D'Aprano added the comment:
I agree that the documentation could be improved, but it's not really *wrong*.
Consider a glob like spam/[abc]/*.txt. What iglob does is conceptually closer
to:
(1) generate the list of files matching spam/a/*.txt and yield them;
(2) generate the list of
Roy Smith added the comment:
The thread that led to this started out with the use case of a directory that
had 200k files in it. If I ran iglob() on that and discovered that it had
internally generated a list of all 200k names in memory at the same time, I
would be pretty darn surprised,
paul j3 added the comment:
Reading through, but not testing, it looks like a faithful replacement. The
usage like will be a bit different.
Given optparse:
usage='usage: %prog [-d] [-t] [input [output]]
automatic argparse:
usage='usage: %prog [-d] [-t] [input] [output]
There
Ned Deily added the comment:
It looks like the changes associated with Issue11571, released in 3.4.1, cause
this problem when the program supplies its own Canvas object rather than
relying on the turtle module to create a default one.
--
assignee: - ned.deily
nosy: +ned.deily
stage:
Ned Deily added the comment:
As a temporary workaround, you could edit turtle.py to revert that change, in
other words, just search for and delete the whole if sys.platform == 'darwin'
test:
diff -r d85fcf23549e Lib/turtle.py
--- a/Lib/turtle.py Tue Aug 05 14:02:11 2014 -0500
+++
New submission from Orson Peters:
According to the documentation of sys.tracebacklimit, setting it to 0 or less
would assure all traceback information is suppressed and only the exception
type and value are printed.
This is not the case:
$ python -c import sys; sys.tracebacklimit = 0;
New submission from Susan Tan:
Typo in last line:
for line in open(myfile.txt):
print line,
Instead there should be no extra , character in print line,
--
assignee: docs@python
components: Documentation
messages: 225056
nosy: Susan, docs@python
priority: normal
severity: normal
Susan Tan added the comment:
https://docs.python.org/2/tutorial/classes.html#iterators
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22170
___
Ned Deily added the comment:
This appears to be a duplicate of open Issue12276.
--
nosy: +ned.deily
resolution: - duplicate
stage: - resolved
status: open - closed
superseder: - 3.x ignores sys.tracebacklimit=0
___
Python tracker
New submission from Wesley Kerfoot:
Description:
python 2.7.8 fails with a 'stack smashing detected' error and aborts when
trying to access a C union using ctypes/libffi
Steps to reproduce:
See the contents of test.c and test.py in the attached file
gcc -c -fpic -Wall -Wextra -pedantic
80 matches
Mail list logo