Hynek Schlawack h...@ox.cx added the comment:
For the sake of completeness: what you're looking for is os.lstat.
--
nosy: +hynek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15461
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
So I tried to make proper changes in _bootstrap.py, and regenerate importlib.h
on Linux.
I don't have any Windows machine; all this is completely untested, but at least
it can help some Windows developer to finish the work, and write
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14578
___
___
Python-bugs-list mailing
Antoine Pitrou pit...@free.fr added the comment:
Thank you, patch looks fine to me. It will have to wait for after the 3.3
release, though, since we are now in feature freeze.
--
versions: +Python 3.4 -Python 3.2, Python 3.3
___
Python tracker
New submission from Nick Coghlan ncogh...@gmail.com:
As far as I can tell, the only mentions of the C API version macros are:
1. In the prose for the stable ABI section (incidentally: this section has a
typo in the title)
2. In the documentation for sys.hexversion
There should be a clear API
Changes by Nick Coghlan ncogh...@gmail.com:
--
versions: +Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15465
___
___
Antoine Pitrou pit...@free.fr added the comment:
I would really like to release beta2 this weekend. Is it possible to get
this resolved by then?
At worse, perhaps 3.3 can be released without this feature. I don't know who
relies on it.
--
nosy: +pitrou
STINNER Victor victor.stin...@gmail.com added the comment:
faulthandler has arbitrary limits to avoid an unlimited loop if some
data are corrupted.
#define MAX_STRING_LENGTH 100
#define MAX_FRAME_DEPTH 100
#define MAX_NTHREADS 100
The string limit is maybe too short. MAX_STRING_LENGTH can be
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
pywin32 used to install modules this way, but it seems it doesn't anymore:
http://pywin32.hg.sourceforge.net/hgweb/pywin32/pywin32/file/16707e6f1624/pywin32_postinstall.py#l307
# It is possible people with old versions installed with
Stefan Krah stefan-use...@bytereef.org added the comment:
Any objections to committing this before beta2? What about the
len view-len change: Does that look reasonable?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12834
Ricky Ng-Adam rnga...@lophilo.com added the comment:
I find this resolution to rejected somewhat questionable. It has been pointed
that the mmap behavior in Python differs from the behavior of the underlying
mmap as defined by the system documentation.
I think the incorrect assumption here
Richard Oudkerk shibt...@gmail.com added the comment:
Here is a minimal patch against default.
It is a clear improvement on the current situation, even though it still cannot
handle the case
class Error(Exception):
def __init__(self, x):
Exception.__init__(self)
self.x = x
Changes by Richard Oudkerk shibt...@gmail.com:
Added file: http://bugs.python.org/file26537/init_args.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1692335
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset d2f448dbc30d by Richard Oudkerk in branch 'default':
Issue #15364: Fix sysconfig.get_config_var('srcdir') to be an absolute path.
http://hg.python.org/cpython/rev/d2f448dbc30d
--
nosy: +python-dev
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
Here's a patch. A new project, _freeze_importlib, has the necessary
prerequisites and runs the executable, generating importlib.h, as a post-build
step.
I'm not sure if we should make this project a pre-requisite of any other
Antoine Pitrou pit...@free.fr added the comment:
There should be an actual pickling / unpickling test, so that this
doesn't regress by mistake.
Le vendredi 27 juillet 2012 à 11:01 +, Richard Oudkerk a écrit :
Changes by Richard Oudkerk shibt...@gmail.com:
Added file:
Andrew Svetlov andrew.svet...@gmail.com added the comment:
Ok
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15041
___
___
Python-bugs-list
Richard Oudkerk shibt...@gmail.com added the comment:
ExceptionTests.testAttributes already checks the attributes of unpickled copies
(using all protocols).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1692335
Antoine Pitrou pit...@free.fr added the comment:
ExceptionTests.testAttributes already checks the attributes of
unpickled copies (using all protocols).
Ok, sorry for the noise then.
--
___
Python tracker rep...@bugs.python.org
New submission from Amaury Forgeot d'Arc amaur...@gmail.com:
As shown in a patch in issue15431, frozen.c does not output the same data on
different platforms.
The first difference looks like this (extracted from the patch):
-101,73,255,255,255,255,0,0,0,0,40,10,0,0,0,117,
+
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
IMO dependencies is not a big issue here. In the worst case, the developer can
build a second time...
I think your patch won't work on Unix machines: _freeze_importlib.c is linked
with all Python files *except* frozen.c which defines
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
I realize that uppercase I and lowercase L are easily confused:
On first row, 'I' (=TYPE_INT64) followed by 0x on 8 bytes.
On second row, 'l' (=TYPE_LONG) followed by 3 followed by 0x (in 3
chunks of 15 bits).
Changes by Stefan Mihaila mstefa...@gmail.com:
--
nosy: +mstefanro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1062277
___
___
Python-bugs-list
Nick Coghlan ncogh...@gmail.com added the comment:
Georg, need a call on how close you are to cutting beta 2 and whether you want
this to wait until rc1.
--
nosy: +benjamin.peterson, georg.brandl
priority: normal - release blocker
___
Python tracker
Antoine Pitrou pit...@free.fr added the comment:
I suggest to remove this distinction, and allow TYPE_INT64 on all
platforms.
You have to find a 64-bit C int type that works on all platforms and for which
a PyLongAsXXX() function exists, though. Or perhaps you want to restrict
yourself to
Nick Coghlan ncogh...@gmail.com added the comment:
Summary of my review for Georg's benefit: I had one minor formatting nit with
the patch (which Stefan can easily fix before committing), but it otherwise
looked fine to me.
I also agree that the old implicit truncation was unusable in
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
My primary goal is to have a stable importlib.h, and currently all developer
work on machines where PY_LONG_LONG is 64bit. So the restriction is OK.
--
___
Python tracker
Éric Araujo mer...@netwok.org added the comment:
Okay, so LGTM. Let’s ask the RMs if this is a new behavior or a bugfix.
--
nosy: +benjamin.peterson, georg.brandl
versions: +Python 3.4 -Python 3.3
___
Python tracker rep...@bugs.python.org
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 4e85e4743757 by Richard Oudkerk in branch '2.7':
Issue #6056: Make multiprocessing use setblocking(True) on the sockets it uses.
http://hg.python.org/cpython/rev/4e85e4743757
New changeset 290f04722be3 by Richard
Éric Araujo mer...@netwok.org added the comment:
Compare:
running the command above without warnings is not sufficient for PyPI to
convert the content successfully.
being able to run the command above without warnings is not sufficient to be
sure that PyPI will convert the content
Ronald Oussoren ronaldousso...@mac.com added the comment:
The current patch should be fine, although it is IMHO not the long-term
solution. For installed python's get_config_var('srcdir') still lies, but now
at least returns slightly more sane path.
As I noted before the real problem is that
Stefan Mihaila mstefa...@gmail.com added the comment:
Attaching patch for fixing a test and adding better testing of sets.
--
Added file: http://bugs.python.org/file26539/sets-test.patch
___
Python tracker rep...@bugs.python.org
Changes by Antoine Pitrou pit...@free.fr:
--
assignee: belopolsky -
dependencies: -Pickle breakage with reduction of recursive structures
stage: needs patch - patch review
versions: +Python 3.4 -Python 3.2
___
Python tracker rep...@bugs.python.org
Matthias Klose d...@debian.org added the comment:
just back in DE today, but still travelling. Won't be able to look at this
before late Monday.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14330
Brett Cannon br...@python.org added the comment:
Temporarily making this a blocker to see if Georg considers this a bugfix or
feature.
--
nosy: +benjamin.peterson
priority: critical - release blocker
___
Python tracker rep...@bugs.python.org
Changes by Brett Cannon br...@python.org:
--
nosy: +brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15466
___
___
Python-bugs-list
Atsuo Ishimoto ishim...@gembook.org added the comment:
Patch to check if locale was changed.
Since I'm not sure where to put tests for test.regrtest, I created
new file, test.test_regrtest.
--
keywords: +patch
nosy: +ishimoto
Added file:
New submission from Serhiy Storchaka storch...@gmail.com:
The proposed patches move to test.support some functions, which will be useful
for testing __sizeof__. The next few patches will use it. Also in 3.3 some bugs
have fixed, now n is used for Py_ssize_t and Py_hash_t (which is not long
Changes by Serhiy Storchaka storch...@gmail.com:
Added file: http://bugs.python.org/file26542/sizeof_tests-3.2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15467
___
Changes by Serhiy Storchaka storch...@gmail.com:
Added file: http://bugs.python.org/file26543/sizeof_tests-2.7.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15467
___
Daniel Holth dho...@fastmail.fm added the comment:
While you are at it, can you edit the docs to put md5() at the bottom of the
page at the back of the list in a 2-point font and raise a
DeprecationWarning(This function is totally lame, and it is slower than SHA-3,
get with the program.) the
Antoine Pitrou pit...@free.fr added the comment:
While you are at it, can you edit the docs to put md5() at the bottom
of the page at the back of the list in a 2-point font and raise a
DeprecationWarning(This function is totally lame, and it is slower
than SHA-3, get with the program.) the
New submission from Daniel Holth dho...@fastmail.fm:
md5() has been obsolete since 1996. It has no place as the first item in
hashlib's list of guaranteed to be available hashes, and it doesn't work when
Python has been compiled to be FIPS-compliant.
The documentation should be edited to make
New submission from Serhiy Storchaka storch...@gmail.com:
Here is a patch that implements correct __sizeof__ for collections.deque.
Test depends on issue15467.
--
components: Library (Lib)
files: deque_sizeof.patch
keywords: patch
messages: 166578
nosy: storchaka
priority: normal
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +rhettinger
Added file: http://bugs.python.org/file26545/deque_sizeof-3.2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15469
Changes by Serhiy Storchaka storch...@gmail.com:
Added file: http://bugs.python.org/file26546/deque_sizeof-2.7.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15469
___
New submission from Seamus McKenna seamus.mcke...@intunenetworks.com:
My python scripting has been running for several weeks periodically sending out
emails. However the script has been stuck for the last 24 hrs. No parts of my
script have been executed in this period.
On terminating the
Martin v. Löwis mar...@v.loewis.de added the comment:
The problem is that this adds new features to test_support, which can only be
done in 3.4.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15467
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15411
___
___
Richard Oudkerk shibt...@gmail.com added the comment:
BTW, BaseException_init() has the code
Py_XDECREF(self-args);
self-args = args;
Py_INCREF(self-args);
Presumably the Py_XDECREF(self-args) would be better replaced by
Py_CLEAR(self-args)?
--
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
Thank you. I see how I must change the linkage on PC Only, although I wonder
why tuen unix version isn't simply doing something similar..
The marshaled code was indeed created using 64 bits. I was unsure whether to
include that
Brian Curtin br...@python.org added the comment:
I would really like to release beta2 this weekend. Is it possible to get
this resolved by then?
As others stated, I'm not sure it's entirely necessary. Given the two
dependencies that need to be fixed before this one can move forward, I
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo, gregory.p.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15468
___
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
If you look at Makefile.pre.in, you'll see that on Unix it builds a special
binary: Modules/_freezeimportlib.c; it uses most of Python machinery (except
importlib, of course), and manually open importlib/_bootstrap.py, compiles it,
Changes by Amaury Forgeot d'Arc amaur...@gmail.com:
--
Removed message: http://bugs.python.org/msg166584
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15431
___
New submission from Barry A. Warsaw ba...@python.org:
Very minor style nit. In general, it's not considered good style to use
mutable objects in default argument values. importlib's
_bootstrap.__import__() does just this for its globals, locals, and fromlist
arguments.
The implementation
Gregory P. Smith g...@krypto.org added the comment:
The only edit that is needed is for md5 to be documented as unavailable when
Python has been compiled in FIPS-compliant mode. Most of the world does not
and will never use that mode.
md5 is still a perfectly good algorithm for many uses and
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
(Sorry for the previous message, it was wrong, and I also pressed the wrong
button...)
A Unix Makefile cannot stand circular dependencies, so _freezeimportlib.c
cannot depend on frozen.o. OTOH it's not simple to have almost-similar
Antoine Pitrou pit...@free.fr added the comment:
Well, the traceback shows it's stuck trying to read from the network. It
doesn't mean it's stuck in the ssl library; unless your script was taking 100%
CPU when you killed it, it was most likely waiting for the peer (a SMTP server,
I guess) to
Antoine Pitrou pit...@free.fr added the comment:
I'll wait for an update for the 64 bit issue.
I don't think it's necessary, it's a pretty minor issue since the generated
bytecode is portable anyway.
--
dependencies: -Python/importlib.h is different on 32bit and 64bit
nosy: +pitrou
Antoine Pitrou pit...@free.fr added the comment:
Presumably the Py_XDECREF(self-args) would be better replaced by
Py_CLEAR(self-args)?
Ah, yes, definitely.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1692335
Chris Jerdonek chris.jerdo...@gmail.com added the comment:
That is one way to do it. But it would be better to use a local variable
rather than an attribute of the class (because otherwise you have to worry
about resetting the value if more than one test uses the same pattern).
Something
Antoine Pitrou pit...@free.fr added the comment:
Or you could simply Py_INCREF(args) before the Py_XDECREF...
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1692335
___
Daniel Holth dho...@fastmail.fm added the comment:
Not to mention its continued popularity as a password hash, surpassed only by
double-rot13. You've convinced me, it is reasonable to continue to support,
nay, recommend md5 for the non-FIPS world. This hash function continues to have
raving
New submission from Éric Araujo mer...@netwok.org:
In the tables near the top of http://docs.python.org/library/itertools , some
functions like cycle have an example that uses “seq”, which is interpreted as
“sequence” but the functions do work with any iterable.
--
assignee:
New submission from Barry A. Warsaw ba...@python.org:
I think this is mostly just out of date documentation, but I want to get
Brett's feedback. The sys module has this to say about sys.path_importer_cache:
A dictionary acting as a cache for finder objects. The keys are paths that
have been
Changes by Chris Jerdonek chris.jerdo...@gmail.com:
--
nosy: +cjerdonek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1234674
___
___
Antoine Pitrou pit...@free.fr added the comment:
The hashlib doc starts with Warning: Some algorithms have known hash collision
weaknesses, see the FAQ at the end (the FAQ at the end is a link to a
Wikipedia article). The sentence Included are the FIPS secure hash algorithms
SHA1, SHA224,
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
assignee: - docs@python
components: +Documentation -Library (Lib)
nosy: +docs@python, tshepang
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15460
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
nosy: +tshepang
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15439
___
___
Antoine Pitrou pit...@free.fr added the comment:
OK, I propose to completely drop the Doc/ACKS.txt from the documentation, and
replace it with the words
Sounds good to me.
--
___
Python tracker rep...@bugs.python.org
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +ghaering
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15460
___
___
Python-bugs-list mailing
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
nosy: +tshepang
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15418
___
___
Richard Oudkerk shibt...@gmail.com added the comment:
Or you could simply Py_INCREF(args) before the Py_XDECREF...
But won't self-args point to a broken object while any callbacks triggered by
Py_XDECREF() are run?
An alternative would be
tmp = self-args;
self-args = args;
Serhiy Storchaka storch...@gmail.com added the comment:
Can we get around this by renaming check_sizeof into _check_sizeof? Or would
we have to duplicate these auxiliary functions in every test file with
__sizeof__ test?
--
___
Python tracker
New submission from Éric Araujo mer...@netwok.org:
Some of the confusion encountered when writing decorators arise from the
difference between a decorator (@something) and a decorator factory
(@something(args)). It would help to adopt this clearer terminology in our
docs: a decorator takes
Antoine Pitrou pit...@free.fr added the comment:
But won't self-args point to a broken object while any callbacks triggered
by Py_XDECREF() are run?
An alternative would be
tmp = self-args;
self-args = args;
Py_INCREF(self-args);
Py_XDECREF(tmp);
You are right,
Gerhard Häring g...@ghaering.de added the comment:
SQLite's columns aren't typed, only SQLite values are. So it's entirely
possible for the same column to have different types, like the NULL type, the
INTEGER type and the TEXT type.
It's thus impossible to give meaningful type information in
New submission from Serhiy Storchaka storch...@gmail.com:
Here is a patch that implements correct __sizeof__ for some itertools
iterators: product(), combinations(), combinations_with_replacement() and
permutations().
--
components: Library (Lib)
files: itertools_sizeof-3.3.patch
Changes by Serhiy Storchaka storch...@gmail.com:
Added file: http://bugs.python.org/file26548/itertools_sizeof-3.2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15475
___
Changes by Serhiy Storchaka storch...@gmail.com:
Added file: http://bugs.python.org/file26549/itertools_sizeof-2.7.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15475
___
Martin v. Löwis mar...@v.loewis.de added the comment:
Not sure: that's for release managers to decide.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15467
___
Richard Oudkerk shibt...@gmail.com added the comment:
Patch which adds fix for BaseException_init().
Actually this class of problem seem to be quite common.
BaseException_set_tb() appears to be affected too, as is the code in the
tutorial which introduces setters.
--
Added file:
Terry J. Reedy tjre...@udel.edu added the comment:
I agree with Martin also. A short paragraph and link to the (combined) online
file is quite sufficient. There is no need for the file to be in offline
copies. And I would make the change in all current versions.
--
nosy: +terry.reedy
Chris Jerdonek chris.jerdo...@gmail.com added the comment:
Hi Ned, you committed two of my Dev Guide patches in the recent past. I was
wondering if you would be willing to commit this one as well. Thanks a lot.
--
___
Python tracker
Terry J. Reedy tjre...@udel.edu added the comment:
I basically agree with Marc-André. Indeed, I think Acks, at least, should
contain names in native spelling plus, if that is not Latin-based, a
romanization. Three reasons:
1. I want English-speaking Python programmers to feel welcome to
Ned Deily n...@acm.org added the comment:
I believe you'll find that the update target in the Doc Makefile will install
or update all the necessary doc tools including Sphinx.
--
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
The Doc makefile does install Sphinx, just like it used to install the previous
toolchain, but the devguide is a regular Sphinx project which requires you to
have Sphinx installed.
--
___
Python
Ned Deily n...@acm.org added the comment:
Sorry, of course! The devguide is not the docset.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15311
___
Terry J. Reedy tjre...@udel.edu added the comment:
Richard is correct. From 17.1.1.2. Popen Constructor
If env is not None, it must be a mapping that defines the environment
variables for the new process; these are used instead of inheriting the current
process’ environment, which is the
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 706b1fa362a4 by Ned Deily in branch 'default':
Issue #15311: Expand section on helping with the Developer's Guide
http://hg.python.org/devguide/rev/706b1fa362a4
--
nosy: +python-dev
Ned Deily n...@acm.org added the comment:
Thanks for the patch.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15311
Antoine Pitrou pit...@free.fr added the comment:
The original issue (Developer Guide doesn't get updated once a day) isn't
fixed, though.
--
priority: normal - critical
resolution: fixed -
stage: committed/rejected -
status: closed - open
___
Chris Jerdonek chris.jerdo...@gmail.com added the comment:
Thanks, Ned! Renaming the issue title to be more specific.
--
keywords: -easy, patch
title: Developer Guide doesn't get updated once a day - Dev Guide update hook
broken
___
Python tracker
Barry A. Warsaw ba...@python.org added the comment:
First draft is complete, along with updates to the importlib abcs for the new
protocols. You'll see the language reference has a new importmachinery.rst
file which describes finding and loading modules. You'll see that the import
statement
Chris Jerdonek chris.jerdo...@gmail.com added the comment:
Updating patch to include documentation changes.
--
keywords: -patch
stage: needs patch - patch review
Added file: http://bugs.python.org/file26551/issue-15450-2.patch
___
Python tracker
Changes by Barry A. Warsaw ba...@python.org:
--
priority: deferred blocker - release blocker
stage: needs patch - patch review
title: Document PEP 420 namespace packages - Import machinery documentation
___
Python tracker rep...@bugs.python.org
Chris Jerdonek chris.jerdo...@gmail.com added the comment:
The idea also to include a romanization is a good one.
While working on issue 15437, it occurred to me that storing the names in a
structured form might come in handy. This would let us do things like list the
username(s) associated
Terry J. Reedy tjre...@udel.edu added the comment:
I think the current entry calling a generator function a generator is wrong, so
I appreciate your patch. Generator functions return instances of class
'generator'*. I personally refer to generators as generator-iterators about as
often as I
Terry J. Reedy tjre...@udel.edu added the comment:
If you have not, please check other ctypes bitfields issues, especially #15119
ctypes mixed-types bitfield layout nonsensical; doesn't match compiler. to
see if this is the same problem.
--
nosy: +terry.reedy
versions: -Python 2.6
1 - 100 of 108 matches
Mail list logo