Changes by Lars Gustäbel l...@gustaebel.de:
--
assignee: - lars.gustaebel
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14810
___
___
Martin v. Löwis mar...@v.loewis.de added the comment:
Perhaps you know what revision that patch was against?
I wish people would stop using git-style diffs, then the patch would actually
say. However, it applied cleanly to tip at the time it was submitted, so you
should be able to go by
New submission from Robert Koziol rkozi...@gmail.com:
Hi all,
It seems a little weird for me but I can not find this bug created. So I create
one.
Invoking xml.sax.make_parser() returns an Exception - as in the following
example:
Python 2.7.3rc2 (default, Mar 21 2012, 06:59:11)
[GCC 4.6.3]
Nadeem Vawda nadeem.va...@gmail.com added the comment:
popitem()
Remove and return an arbitrary (key, value) pair from the dictionary. Raises
KeyError if the dict is empty. Use next(iter(d)) to return an arbitrary pair
without removing it.
Actually, next(iter(d)) on a dict returns an
Changes by Hynek Schlawack h...@ox.cx:
--
nosy: +hynek
stage: - patch review
versions: -Python 3.1, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14835
___
Changes by Hynek Schlawack h...@ox.cx:
--
nosy: +ned.deily
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14835
___
___
Python-bugs-list mailing
sorin sorin.sbar...@gmail.com added the comment:
Am I wrong or we should reopen this bug. Try `ulimit -n unlimited` and you'll
make python code that does popen practically blocking.
--
nosy: +sorin
type: - performance
___
Python tracker
poq p...@gmx.com added the comment:
Now with proper skipping.
--
Added file: http://bugs.python.org/file25622/sqlite3-test-hooks.v2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13934
Xavier de Gaye xdeg...@gmail.com added the comment:
Hi Petri
I have just sent the Contributor Agreement to PSF.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14798
___
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
Hi, I'll see what went wrong, I admit not trying 64 bit before creating the
patch.
Martin, I´m using MercurialHQ and exporting a patch. It is set up to use GIT
format diffs, which I think is recommended in the Python developer
Martin v. Löwis mar...@v.loewis.de added the comment:
Is this wrong? (I'm still a relative Hg newbie)
It's an ongoing discussion. Some people favor git diffs because
it supports renaming and binaries, I prefer Mercurial diffs, because
it includes the base revision number against the patch was
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
That sounds reasonable. So, can't we come up with a diff that does both? The
base revision sounds like a completely necessary piece of info.
--
___
Python tracker
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
I wish MS could come up with a property editor that could show you _only_ the
properties that are non-default:
1) view all properties
2) view set and inherited non-defaults
3) view properties set here only.
It would make debugging
Martin v. Löwis mar...@v.loewis.de added the comment:
That sounds reasonable. So, can't we come up with a diff that does
both? The base revision sounds like a completely necessary piece of
info.
I believe there is a bug report against Mercurial to include the base
revision even in
Anthony Kong anthony.hw.k...@gmail.com added the comment:
Which os? windows or linux or osx?
It actually sounds like a support question. You probably should take the
question to the python newsgroup
(https://groups.google.com/forum/?fromgroups#!forum/comp.lang.python).
--
nosy:
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
This is fun.
the reason why linking is failing for some projects in x64 mode is:
the SolutionDir (or maybe current dir) is implicitly part of the library search
path. Therefore, when looking for python33_d.lib, it will find the
Lennart Regebro rege...@gmail.com added the comment:
filecmp is still there in Python 3.3 Alpha 3. I can't find any reference to it
being deprecated.
--
nosy: +lregebro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12932
Daniel Holth dho...@fastmail.fm added the comment:
Fixed closure mistake in remote tip
--
hgrepos: +126
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11880
___
Changes by Daniel Holth dho...@fastmail.fm:
--
keywords: +patch
Added file: http://bugs.python.org/file25623/50a0da981b7e.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11880
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 6ab4128a by R David Murray in branch '3.2':
#14823: Simplify threading.Lock.acquire argument discussion.
http://hg.python.org/cpython/rev/6ab4128a
New changeset b5e95bb79ba3 by R David Murray in branch
R. David Murray rdmur...@bitdance.com added the comment:
Instead I decided to go ahead and document the argument as True/False. That
something else is accepted is a CPython implementation detail that shouldn't be
depended on.
By the way, I couldn't actually use your patch file, since it
Andrej A Antonov polymor...@gmail.com added the comment:
Jeff McNeil (mcjeff) I would think it might make more sense just to make the
change to the Transport object. Since there's an argument for a transport on
ServerProxy already, that seems more straightforward and keeps the network
layer
Sidney San Martín s...@sidneysm.com added the comment:
Thanks Jeff, I’m actually a relatively new Python developer and got the
impression that it was best practice to always use a tuple for string
formatting, for consistency.
Here’s an updated patch which drops the tuples for those cases.
Changes by Fyrn Jilot fyrn7...@yahoo.com:
Added file: http://bugs.python.org/file25625/1.html
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1757118
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
versions: +Python 3.3 -Python 2.7, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3931
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
versions: +Python 2.7, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3931
___
___
Brett Cannon br...@python.org added the comment:
sys.modules is tricky thanks to built-in modules not liking to be re-imported
(and why import_state in importlib.test didn't reset it).
If only one test fails because of my assumption, then I guess blanking them out
really isn't as important as
Éric Araujo mer...@netwok.org added the comment:
I suspect the patch was made against the source files served by Sphinx with a
txt extension.
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14823
Brett Cannon br...@python.org added the comment:
Realized that any decorator or context manager that is created for swapping
_frozen_importlib/importlib._bootstrap should also verify no module is left in
sys.modules with a bad loader and that sys.path_importer_cache doesn't have a
bad finder
Éric Araujo mer...@netwok.org added the comment:
Again, the stdlib docs do not document third-party projects. Use the pip doc
if you use pip.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1635217
Ezio Melotti ezio.melo...@gmail.com added the comment:
The attached patch adds support for keyword args to find, findtext, findall,
and iterfind. iter and itertext don't seem to accept a namespace argument.
The patch includes minimal tests.
The name I used for the kwargs are the same of the
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14817
___
Martin v. Löwis mar...@v.loewis.de added the comment:
Please run, from the command line, in the Python installation
python.exe Lib\idlelib\idle.py
and report any output you get.
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14715
___
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: - rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14815
___
___
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment:
Your Python is missing pyexpat.so module, which is built only when expat
library has been found. Check build log of Python to see why pyexpat.so is not
available. (Maybe expat headers are not installed.)
--
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
title: C implementation of ElementTree causes regressions - C implementation
of ElementTree: Some functions should support keyword arguments
___
Python tracker
Charles-François Natali neolo...@free.fr added the comment:
I guess this is the magic in mkdir -p:
mkdir(expert, 0755) = -1 EACCES (Permission denied)
chdir(expert) = 0
mkdir(tmp, 0755) = -1 EEXIST (File exists)
I'm not sure
Serhiy Storchaka storch...@gmail.com added the comment:
Looks like issue14738 fixes this bug for Python 3.3.
print(ascii(b\xc2\x41\x42.decode('utf8', 'replace')))
'\ufffdAB'
print(ascii(b\xf1ABCD.decode('utf8', 'replace')))
'\ufffdABCD'
--
nosy: +storchaka
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10530
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13849
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
The original bug should be fixed already in 3.3 and there should be tests
(unless they got removed/skipped after we changed unicode implementation).
The only issue left was about the number of U+FFFD generated with invalid
sequences in
New submission from Zachary Ware zachary.w...@gmail.com:
I was looking through the documentation source files for things I might be able
to fix, and stumbled across XXX Add a bit on the difference between tuples and
lists. in Doc\tutorial\datastructures.rst. So I took a stab at adding some
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset edb9ce3a6c2e by Antoine Pitrou in branch 'default':
Issue #9260: A finer-grained import lock.
http://hg.python.org/cpython/rev/edb9ce3a6c2e
--
nosy: +python-dev
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9548
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9260
___
Antoine Pitrou pit...@free.fr added the comment:
I have now pushed the patch.
--
resolution: - fixed
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9260
___
Changes by Antoine Pitrou pit...@free.fr:
--
stage: patch review - committed/rejected
status: pending - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9260
___
Changes by Antoine Pitrou pit...@free.fr:
--
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9260
___
___
Python-bugs-list
Ezio Melotti ezio.melo...@gmail.com added the comment:
I personally like your suggested text, but there have been some discussion on
the topic (on python-ideas iirc) and some people think that it's ok to use
tuples like immutable lists, rather than just structures with heterogeneous
elements
R. David Murray rdmur...@bitdance.com added the comment:
I don't think that the suggested text contradicts that. (Especially the
wording tends to.) So I think this might be a reasonable addition, but I can
see that some people might get upset :)
--
nosy: +r.david.murray
Zachary Ware zachary.w...@gmail.com added the comment:
Perhaps an added line at the end, something like 'Of course, should you need an
immutable list, tuples are quite handy for that, too.'?
--
___
Python tracker rep...@bugs.python.org
New submission from Arfrever Frehtes Taifersar Arahesis
arfrever@gmail.com:
$ stty size | cat
46 157
$ python3.3 -c 'import os; print(os.get_terminal_size())' | cat
Traceback (most recent call last):
File string, line 1, in module
OSError: [Errno 22] Invalid argument
Redirection to
Serhiy Storchaka storch...@gmail.com added the comment:
The only issue left was about the number of U+FFFD generated with invalid
sequences in some cases.
My last patch has extensive tests for this, so you could try to apply it (or
copy the tests) and see if they all pass.
Tests fails,
Saul Spatz saul.sp...@gmail.com added the comment:
b'\xe0\x80'.decode('utf-8', 'replace') returns one U+FFFD and not two. I
don't think that is right.
I think that one U+FFFD is correct. The on;y error is a premature end of
data.
On Thu, May 17, 2012 at 12:31 PM, Serhiy Storchaka
Ezio Melotti ezio.melo...@gmail.com added the comment:
Tests fails, but I'm not sure that the tests are correct.
b'\xe0\x00' raises 'unexpected end of data' and not 'invalid
continuation byte'. This is terminological issue.
This might be just because it first checks if there two more bytes
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset c62fa6892424 by Ross Lagerwall in branch 'default':
Issue #13031: Small speed-up for tarfile when unzipping tarfiles.
http://hg.python.org/cpython/rev/c62fa6892424
--
nosy: +python-dev
Ezio Melotti ezio.melo...@gmail.com added the comment:
Changing from 'unexpected end of data' to 'invalid continuation byte' for
b'\xe0\x00' is fine with me, but this will be a (minor) deviation from 2.7,
3.1, 3.2, and pypy (it could still be changed on all these except 3.1 though).
If you
Ross Lagerwall rosslagerw...@gmail.com added the comment:
Nice work, thanks!
--
assignee: lars.gustaebel - rosslagerwall
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Hynek Schlawack h...@ox.cx added the comment:
I agree, closing.
Thank you for your valuable assistance Andrew!
--
resolution: - wont fix
stage: needs patch -
status: open - closed
___
Python tracker rep...@bugs.python.org
Hynek Schlawack h...@ox.cx added the comment:
It appears that os.stat did not check for embedded nulls but just passed the
string to Windows.
JFTR, we have fixed it for open() because it's a potential security problem. I
have implemented a helper function for checking for NUL chars:
Andrew McNabb amcn...@mcnabbs.org added the comment:
This isn't fixed. All of the examples I've given were with a 3.3.0 kernel.
Doing a stat would be a fix.
--
status: closed - open
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka storch...@gmail.com added the comment:
I think that one U+FFFD is correct. The on;y error is a premature end of
data.
I poorly expressed. I also think that there is only one decoding error,
and not two. I think the test is wrong.
--
Ezio Melotti ezio.melo...@gmail.com added the comment:
Link to the discussion:
https://groups.google.com/d/msg/python-ideas/P3lEYU9u0DU/H0gcuAAJvEgJ
The actual discussion about tuples starts on
https://groups.google.com/d/msg/python-ideas/P3lEYU9u0DU/JW2Lq3KYA4QJ and
continues with the
Serhiy Storchaka storch...@gmail.com added the comment:
This might be just because it first checks if there two more bytes before
checking if they are valid, but 'invalid continuation byte' works too.
Yes, this implementation detail. It is much easier and faster. Whether
it is necessary to
Serhiy Storchaka storch...@gmail.com added the comment:
Changing from 'unexpected end of data' to 'invalid continuation byte' for
b'\xe0\x00' is fine with me, but this will be a (minor) deviation from 2.7,
3.1, 3.2, and pypy (it could still be changed on all these except 3.1 though).
I
Ezio Melotti ezio.melo...@gmail.com added the comment:
\xe0\x80 is not maximal subpart. Therefore, there must be two U+FFFD.
OK, now I get what you mean. The valid range for continuation bytes that can
follow E0 is A0-BF, not 80-BF as usual, so \x80 is not a valid continuation
byte here.
Hynek Schlawack h...@ox.cx added the comment:
If I read it correctly, we _do_ a stat:
stat(/net/prodigy, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
mkdir(/net/prodigy/tmp, 0777) = -1 EACCES (Permission denied)
ISTM that this is a different problem altogether, or am I missing
Ezio Melotti ezio.melo...@gmail.com added the comment:
I probably poorly said. Past and current implementations raise
'unexpected end of data' and not 'invalid continuation byte'. Test
expects 'invalid continuation byte'.
I don't think it matters much either way.
--
Serhiy Storchaka storch...@gmail.com added the comment:
I don't remember all the details right now, but it that test was passing with
my patch there must be something wrong somewhere (either in the patch, in the
test, or in our understanding of the standard).
No, test correctly expects two
Hynek Schlawack h...@ox.cx added the comment:
My suspicion re the race condition is that a chdir waits for autofs to mount
but mkdir doesn't. You could check that yourself if a chdir/sleep would help.
--
___
Python tracker rep...@bugs.python.org
Andrew McNabb amcn...@mcnabbs.org added the comment:
Hmm. Maybe there's a difference between doing stat('/net/prodigy') vs.
stat('/net/prodigy/tmp'). Just a guess, but maybe the former can succeed before
the mount completes, but the latter has to wait for the mount to complete.
--
Andrew McNabb amcn...@mcnabbs.org added the comment:
By the way, if my hunch about the difference in stat of '/net/prodigy' vs.
'/net/prodigy/tmp' is correct, then this would explain why makedirs on deeper
directories work. Specifically, one of the shallower stat calls would force the
mount
anatoly techtonik techto...@gmail.com added the comment:
I am trying to get what's the proposed standard for users right now? How are
you going to define dependencies in distutils2?
--
___
Python tracker rep...@bugs.python.org
New submission from Petri Lehtinen pe...@digip.org:
The link currently points to the time module. It should point to the
time.time() function.
--
assignee: docs@python
components: Documentation
keywords: easy
messages: 161010
nosy: docs@python, petri.lehtinen
priority: normal
severity:
Éric Araujo mer...@netwok.org added the comment:
Right now the standard (i.e. official) way is Requires, which is unusable; the
de facto standard (but not blessed by any PEP) is setuptools’ install_requires.
The new standard is documented in d2 docs and there will be examples
Dave Malcolm dmalc...@redhat.com added the comment:
Thanks. I too am wondering where the documentation should go. We currently
have several locations for documentation:
(1) the man page
(2) the Doc subdirectory aka docs.python.org
(3) various text files in the source tree, such as
Antoine Pitrou pit...@free.fr added the comment:
I think it could go into python setup and usage
(http://docs.python.org/dev/using/index.html), but that seems target at
first-time users; or perhaps a HOWTO
(http://docs.python.org/dev/howto/index.html), but it might make it less
visible. Or a
Changes by Daniel Holth dho...@fastmail.fm:
--
assignee: eric.araujo
components: Distutils2
nosy: alexis, dholth, eric.araujo, tarek
priority: normal
severity: normal
status: open
title: support define_macros / undef_macros in setup.cfg
type: enhancement
versions: Python 3.3
New submission from Daniel Holth dho...@fastmail.fm:
from build_ext.py:
# XXX not honouring 'define_macros' or 'undef_macros' -- the
# CCompiler API needs to change to accommodate this, and I
# want to do one thing at a time!
--
Jeff McNeil j...@jmcneil.net added the comment:
Yeah, that's a good point too. I still personally favor the transport
encapsulation and related unit testing, but I think that's a call for someone
with a snake icon next to their tracker name.
Your English is just fine. =)
--
New submission from Raphaël Droz raphael.droz+fl...@gmail.com:
Accentuated characters are not accepted in password.
While it (unicode) was quickly talked about in issue557704 it appears that
issue1170 aimed to solve this by making shlex unicode-compatible but it does
not seem to be the case
Eric V. Smith e...@trueblade.com added the comment:
I understand about sys.modules. Maybe I'll create another context manager (say,
sys_modules_state) that does the same for sys.modules. I can always stack them
together.
When loading pure-Python namespace packages, I want to make sure they
Charles-François Natali neolo...@free.fr added the comment:
Yes, creating the directories in a bottom-up way (i.e. '/net', '/net/prodigy',
'/net/prodigy/foo') could maybe avoid this problem.
But this is definietely an autofs bug, and there are probably many other places
where such code might
Antoine Pitrou pit...@free.fr added the comment:
Should we go forward on this?
--
assignee: gregory.p.smith -
stage: test needed - patch review
type: behavior - enhancement
versions: -Python 2.7, Python 3.2
___
Python tracker rep...@bugs.python.org
poq p...@gmx.com added the comment:
Just to confirm: curses SIGWINCH handling is still (2.7/3.2) broken after
importing readline.
Readline seems to set the LINES/COLUMNS environment vars, and this confuses
curses, even if curses is imported after readline.
Clearing the LINES/COLUMNS vars
poq p...@gmx.com added the comment:
Issue 3948 is almost certainly a duplicate.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2675
___
___
Terry J. Reedy tjre...@udel.edu added the comment:
Zachary, you are brave/foolhardy to take this on;)
I agree that the XXX comment should be removed. One possible resolution is to
do just that, replacing it with nothing.
I would note that the fuss over tuples versus lists comes from a time
New submission from Peter Norvig pnor...@google.com:
PEP 289 says the semantic definition of a list comprehension in Python 3.0
will be equivalent to list(generator expression). Here is a counterexample
where they differ (tested in 3.2):
def five(x):
Generator yields the object x five
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
components: +Interpreter Core -None
nosy: +ezio.melotti
stage: - needs patch
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14845
Hynek Schlawack h...@ox.cx added the comment:
I sense a very easy fix: just do a stat() on the final path before we do
anything (and quickly return if present). Moving current makedirs into a
private _makedirs that gets called if the stat fails.
I'm still feeling uneasy about that though. It
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
stage: - needs patch
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14842
___
New submission from Thomas Kluyver tak...@gmail.com:
I've come across a difference from 3.2 to 3.3 while running the IPython test
suite. It occurs when a directory on sys.path has been used for an import, then
deleted without being removed from sys.path. Previous versions of Python ignore
the
Eric Snow ericsnowcurren...@gmail.com added the comment:
...rather, the error caused by your example. :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14846
___
Eric Snow ericsnowcurren...@gmail.com added the comment:
The caching mechanism is going to check for changes in the directory. So the
recommendation is to clear the cache manually:
quote
The default finders used by import now utilize a cache of what is contained
within a specific
Martin v. Löwis mar...@v.loewis.de added the comment:
I agree that the proposed solutions are hacks, and still propose to close this
as won't fix.
I think this is a bug in Linux. mkdir(/net/prodigy/tmp) ought to trigger the
mount, then fail with EEXIST.
--
nosy: +loewis
Gregory P. Smith g...@krypto.org added the comment:
going forward with reinit_locks.diff makes sense.
I've added comments to it in the code review link. It is Patch Set 3
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6721
Changes by Eric V. Smith e...@trueblade.com:
--
nosy: +eric.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14846
___
___
Python-bugs-list
Changes by Roger Serwy roger.se...@gmail.com:
--
nosy: +serwy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14838
___
___
Python-bugs-list mailing
R. David Murray rdmur...@bitdance.com added the comment:
I think the behavior is correct. next(x) is outside the for expression in the
list comprehension, but 'list(x)' is an implicit 'for x in exp'. So I believe
it is the doc that needs amplification. The PEP discussion is referring
1 - 100 of 105 matches
Mail list logo