Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16692
___
___
Python-bugs-list mailing list
Antoine Pitrou added the comment:
``./configure --without-pymalloc'' fails here:
gcc -pthread -Xlinker -export-dynamic -o python Modules/python.o
libpython3.4.a -lpthread -ldl -lutil -lm
libpython3.4.a(sysmodule.o): In function `sys_getallocatedblocks':
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16694
___
___
Python-bugs-list mailing list
STINNER Victor added the comment:
sys.gettotalrefcount() is only defined when Python is compiled in
debug mode. sys.getallocatedblocks() should only be available when the
right debug option is present. This function is specific to CPython
anyway, Python module should not rely on this (too much)
Chris Jerdonek added the comment:
Also see this e-mail to docs@:
http://mail.python.org/pipermail/docs/2012-December/012028.html
Subject: [docs] FOO and BAR
Do you think it would be possible to write your documentation avoiding the
silly usage of FOO and BAR everywhere? This is a very
anatoly techtonik added the comment:
Memory control over the stuff that Python creates is a practical feature that
compensates OS disability for tracking memory usage. If all Python scripts
could measure their memory usage, we could see more memory effective and
adaptive programs around.
Giampaolo Rodola' added the comment:
Why did you replace socket.error with OSError?
I think we should use socket.create_connection() as a guide line:
http://hg.python.org/cpython/file/45dfb657b430/Lib/socket.py#l401
A patch is in attachment.
--
Added file:
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
assignee: - giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16646
___
___
Serhiy Storchaka added the comment:
socket.error is alias to OSError since 3.3 (PEP 3151). For versions 3.3
socket.error should be preserved.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16646
Serhiy Storchaka added the comment:
I agree that copying a code from socket.create_connection() is a good idea.
Modernizing socket.error to OSError can be done in a separated issue.
--
stage: patch review - commit review
___
Python tracker
Antoine Pitrou added the comment:
sys.gettotalrefcount() is only defined when Python is compiled in
debug mode. sys.getallocatedblocks() should only be available when
the
right debug option is present. This function is specific to CPython
anyway, Python module should not rely on this (too
Stefan Krah added the comment:
Antoine Pitrou rep...@bugs.python.org wrote:
Hmm, interesting. When built --without-pymalloc, we could make
sys.getallocatedblocks() always return 0, or we could not define it all
(which would make like a bit harder for regrtest). What do you think?
Given the
Roundup Robot added the comment:
New changeset b7419f88c628 by Giampaolo Rodola' in branch '3.2':
Fix issue #16646: ftplib.FTP.makeport() might lose socket error details.
(patch by Serhiy Storchaka)
http://hg.python.org/cpython/rev/b7419f88c628
New changeset b8289a08d720 by Giampaolo Rodola'
Roundup Robot added the comment:
New changeset 6e07be3dfb6b by Giampaolo Rodola' in branch '2.7':
Fix issue #16646: ftplib.FTP.makeport() might lose socket error details.
(patch by Serhiy Storchaka)
http://hg.python.org/cpython/rev/6e07be3dfb6b
--
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
resolution: - fixed
stage: commit review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16646
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16692
___
___
Claude Paroz added the comment:
Thanks for the explanations (and history). I realize that changing the
behaviour is probably not an option.
As an example in a framework, we are currently discussing how we will cope with
this in Django: https://code.djangoproject.com/ticket/19468
On the
Roundup Robot added the comment:
New changeset 1a2ead9faa3f by Andrew Svetlov in branch '3.2':
Issue #16647: save socket error details in LMTP.connect()
http://hg.python.org/cpython/rev/1a2ead9faa3f
New changeset 6d805653843a by Andrew Svetlov in branch '3.3':
Issue #16647: save socket error
Andrew Svetlov added the comment:
Fixed. Thanks, Serhiy.
--
nosy: +asvetlov
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16647
Brett Cannon added the comment:
Clang's test runner output is really nice; green-coloured progress bar on one
line, next line listing what is executing. Eventual output listing details of
the run (e.g. counts of what was run, expected failures, etc.).
--
New submission from Jeff Knupp:
test_urllib2_localnet is concerned with testing connections only using
'localhost' or '127.0.0.1' hosts. If a user has the http_proxy environment
variable set, these test will likely fail as the proxy won't have any idea
where to send a request for 'localhost'.
Serhiy Storchaka added the comment:
For 3.3+ the patch can be modernized.
--
Added file:
http://bugs.python.org/file28344/test_subprocess_test_invalid_args_3.3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16644
Serhiy Storchaka added the comment:
I doubt about the committed variant of patch. Note that both my original patch
and socket.create_connection() use intermediate variable for catching an
exception. This is done deliberately.
Example:
err = None
try: raise ValueError
... except ValueError
New submission from Serhiy Storchaka:
Example:
err = None
try: raise ValueError
... except ValueError as err: pass
...
err
Traceback (most recent call last):
File stdin, line 1, in module
NameError: name 'err' is not defined
It is expected that either the variable will have the catched
Jeff Knupp added the comment:
I'm assuming this is the patch you were looking for. However, there are a
couple of unrelated issues with http.client.send that jumped out at me:
1. Encoding a file handed directly to send() seems wrong. If a client wants to
send a file encoded using something
Roundup Robot added the comment:
New changeset dcefa2c8386b by Giampaolo Rodola' in branch '3.2':
Issue 16646 (ftplib): deliberately use intermediate variable after catching
exception
http://hg.python.org/cpython/rev/dcefa2c8386b
New changeset da161499d0c0 by Giampaolo Rodola' in branch '3.3':
Mark Dickinson added the comment:
This is a deliberate feature of Python 3. See PEP 3110.
--
nosy: +mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16703
___
Giampaolo Rodola' added the comment:
Ouch! My bad. Thanks.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16646
___
___
Python-bugs-list mailing
Serhiy Storchaka added the comment:
I understand that such behavior change needed was a good reason. But the
current behavior is quite confusing.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16703
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
assignee: asvetlov
components: Library (Lib)
nosy: asvetlov
priority: normal
severity: normal
status: open
title: Get rid of select.error in stdlib. Use OSError instead
type: enhancement
versions: Python 3.4
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
dependencies: +Get rid of select.error in stdlib. Use OSError instead
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16648
___
New submission from Serhiy Storchaka:
Note that tests use a mock with overloaded `error` attribute.
--
nosy: +serhiy.storchaka
stage: - test needed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16704
Changes by Serhiy Storchaka storch...@gmail.com:
--
stage: test needed - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16704
___
___
Roundup Robot added the comment:
New changeset eb8032781eba by Andrew Svetlov in branch 'default':
Issue #16704: Get rid of select.error in stdlib. Use OSError instead.
http://hg.python.org/cpython/rev/eb8032781eba
--
nosy: +python-dev
___
Python
Andrew Svetlov added the comment:
Fixed.
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16704
___
And Clover added the comment:
(This issue should be closed; it is superseded by the fix for 10155 in Python
3.2.)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9022
___
And Clover added the comment:
(belated close-fixed)
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10155
___
New submission from Andrew Svetlov:
Probably it is long enough work and should be done in several iteration after
converting all exceptions like IOError, EnvironmentError, WindowsError,
mmap.error, socket.error and select.error to OSError.
--
assignee: asvetlov
components: Library
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
dependencies: +Use concrete classes inherited from OSError instead of errno
check
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16648
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
assignee: asvetlov
components: Library (Lib)
nosy: asvetlov
priority: normal
severity: normal
status: open
title: Get rid of os.error. Use OSError instead
type: behavior
versions: Python 3.4
___
Roundup Robot added the comment:
New changeset 7aa2ccc5aef1 by Andrew Svetlov in branch 'default':
Replace mmap.error with OSError, #16705
http://hg.python.org/cpython/rev/7aa2ccc5aef1
--
nosy: +python-dev
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 061e9a439f54 by Andrew Svetlov in branch 'default':
Get rig of EnvironmentError (#16705)
http://hg.python.org/cpython/rev/061e9a439f54
--
___
Python tracker rep...@bugs.python.org
New submission from Antoine Pitrou:
Here is what happens when combining --with-pydebug and --without-pymalloc:
gcc -pthread -g -O0 -Wall -Wstrict-prototypes Parser/acceler.o
Parser/grammar1.o Parser/listnode.o Parser/node.o Parser/parser.o
Parser/bitset.o Parser/metagrammar.o
Antoine Pitrou added the comment:
make clean fixed the build. Sorry for the noise.
--
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16707
___
Roundup Robot added the comment:
New changeset a85673b55177 by Antoine Pitrou in branch 'default':
Following issue #13390, fix compilation --without-pymalloc, and make
sys.getallocatedblocks() return 0 in that situation.
http://hg.python.org/cpython/rev/a85673b55177
--
Changes by luke wood dj_...@live.com:
--
components: Library (Lib)
files: dropbox dropper.py
nosy: dj_law
priority: normal
severity: normal
status: open
title: Module: shutil will not import when writen in the text editor but will
in the python shell
type: behavior
versions: Python 3.3
New submission from R. David Murray:
It works fine for me. Are you on windows by any chance? I suspect you should
take this to python-list for help, but you could paste the traceback you are
getting if you still think it is a bug in Python.
--
nosy: +r.david.murray
resolution: -
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15911
___
New submission from Robert Collins:
Openstack recently switched from nose to using discover. discover walks the
filesystem using os.listdir(), and that is just a thin layer over readdir. On
ext3/ext4 filesystems, readdir is in an arbitrary order dependent on file
insertion into the directory
Antoine Pitrou added the comment:
+1. It also makes test output nicer.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16709
___
___
Changes by Mikhail Korobov kmik...@gmail.com:
--
nosy: +kmike
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6784
___
___
Python-bugs-list mailing
New submission from Hynek Schlawack:
Ah yeah I support this endeavor, I fixed a few instances in rmtree while
working on it. It’s just confusing.
JFTR, is there any rationale/reason to do it? Last time I checked it wasn’t
deprecated.
--
nosy: +hynek
luke wood added the comment:
ok i dont really know what python list is. i googled it but it just came up
with the documentation.
Traceback (most recent call last):
File C:\Users\luke\Documents\Python Code\dropbox dropper.py, line 1, in
module
import shutil
File
53 matches
Mail list logo