Petri Lehtinen pe...@digip.org added the comment:
If *locale* is specified, it may be a None, a string, or an iterable of two
strings, language code and encoding. String pairs are converted to a single
string using the locale aliasing engine.
What about the possible None value then? Do you
Terry J. Reedy tjre...@udel.edu added the comment:
Yes, parentheses would be better.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3067
___
___
Charles-François Natali neolo...@free.fr added the comment:
write() is a bit simpler, since BlockingIOError has
a characters_written attribute which is meant to inform you of the
partial success: we can just reuse that. That said, BlockingIOError
could grow a partial_read attribute
New submission from Kaleb702 ronneymiche...@gmail.com:
Python IDLE does not auto add the .py extension when saving a file.
--
components: IDLE
messages: 147072
nosy: Kaleb702
priority: normal
severity: normal
status: open
title: .py extension not auto added
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 5f27a9f67a34 by Petri Lehtinen in branch '3.2':
Fix Maildir initialization so that maildir contents are read correctly.
http://hg.python.org/cpython/rev/5f27a9f67a34
New changeset 91a0f6879173 by Petri Lehtinen in
Petri Lehtinen pe...@digip.org added the comment:
In the absence of any complaints, I went on and committed the fix. Thanks for
reporting the issue!
--
assignee: r.david.murray -
___
Python tracker rep...@bugs.python.org
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 34c9465f5023 by Petri Lehtinen in branch '2.7':
Issue #3067: Enhance the documentation and docstring of locale.setlocale()
http://hg.python.org/cpython/rev/34c9465f5023
New changeset 98806dd03506 by Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment:
I decided to restructure the documentation of setlocale() a bit and I think
it's better now overall. It includes Terry's suggestions.
I think this issue can now be closed. Thanks for the report and patches!
--
status: open - closed
Charles-François Natali neolo...@free.fr added the comment:
So, what do you think of the new patch?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue
___
Charles-François Natali neolo...@free.fr added the comment:
The patch looks good to me.
Note that the whole kill(pid, SIGKILL) looks overkill to me...
--
nosy: +neologix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12856
New submission from Florent Xicluna florent.xicl...@gmail.com:
I stopped on this error on buildbot x86 Tiger 3.2.
It looks strange.
test_single_files (test.test_unicode_file.TestUnicodeFiles) ... ERROR
==
ERROR:
Charles-François Natali neolo...@free.fr added the comment:
FYI, I have a pathlib experiment in
http://hg.python.org/features/pathlib/, with an optional openat-based
accessor.
Interesting: I used to think that the current API for dealing with paths was a
little too basic and terse.
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
It's not just Gentoo. I get this error repeatably on Ubuntu Oneiric 64- bit and
Linux Mint Katya 64-bit, though not on the 32-bit variants.
--
nosy: +vinay.sajip
___
Python tracker
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13348
___
___
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
I get the opposite failure to Nadeem as far as
InstallDataTestCase.test_resources: it works on Ubuntu 64-bit, but fails on
32-bit. Digging into it a bit further, I find that _generate_cache in
Lib/packaging/database.py returns prematurely
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
I added the packaging.database.clear_cache() at the end of setUp(); that works,
too.
Gotta love global variables - not! ;-)
--
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
Oops, sorry. I wonder if it would be possible to test the address returned by
recvfrom(). Same for the flags and ancillary data in recvmsg().
--
___
Python tracker rep...@bugs.python.org
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
I looked in packaging/test, and noticed that database.get_distribution is
called from test_depgraph, test_xmlrpc and test_database. These may also need
looking over to see if cache invalidation needs to happen.
--
Nadeem Vawda nadeem.va...@gmail.com added the comment:
I added the packaging.database.clear_cache() at the end of setUp(); that
works, too.
That fixes the InstallDataTestCase failure for me as well
(on both Ubuntu 11.10 64-bit and Windows 7 64-bit).
I get the opposite failure to Nadeem as
Martin v. Löwis mar...@v.loewis.de added the comment:
Most likely, you are using a 32-bit Python on a 64-bit Windows. 32-bit programs
can't access c:\windows\system32, as that will contain the 64-bit DLLs.
Instead, access is redirected to c:\windows\syswow64.
Please confirm whether or not
Roumen Petrov bugtr...@roumenpetrov.info added the comment:
Test test_install and test_command_install_data interference cache . Adding
clear_cache as clean up routine will resolve reported issue with Spamlib. The
patch is trivial. Also one of the test set clear_cache as cleanup.
Most
Éric Araujo mer...@netwok.org added the comment:
I’m not sure it is useful to fix this bug.
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13204
___
Éric Araujo mer...@netwok.org added the comment:
See also #13229.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13033
___
___
Python-bugs-list
Éric Araujo mer...@netwok.org added the comment:
Tigger: Could you provide a patch for Python 3.3? (more info at
http://docs.python.org/devguide/)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13033
Ezio Melotti ezio.melo...@gmail.com added the comment:
Why not?
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13204
___
___
Éric Araujo mer...@netwok.org added the comment:
During the discussion about adding a chowntree function to shutil
(http://mail.python.org/pipermail/python-dev/2011-May/111661.html and ), Victor
suggested this:
I don't like the idea of a recursive flag. I would prefer a map-like
function
Éric Araujo mer...@netwok.org added the comment:
s/and /and #13033/
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13229
___
___
Éric Araujo mer...@netwok.org added the comment:
The other bug is older and has more discussion, I’m closing this one as
duplicate.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13200
Changes by Éric Araujo mer...@netwok.org:
--
resolution: - duplicate
stage: patch review - committed/rejected
status: open - closed
superseder: - Introspectable range objects
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
I think this is ready for commit.
--
nosy: +smarnach
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9896
___
Éric Araujo mer...@netwok.org added the comment:
You should attach diffs (context diffs, I believe)
Nope, these are hard to read :) The universal diff format is the unified one.
That’s also what Mercurial uses (see the devguide for more info on
contributing).
--
nosy: +eric.araujo
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13290
___
___
Python-bugs-list
Changes by Éric Araujo mer...@netwok.org:
--
assignee: docs@python - eric.araujo
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13292
___
Éric Araujo mer...@netwok.org added the comment:
Thanks, I’ll add the disable_cache call.
Westley: I’ve installed Arch. Is there a command I can run to get zlib,
openssl, gcc, make and all that, similar to “aptitude build-dep python3.2”?
--
___
Éric Araujo mer...@netwok.org added the comment:
I’ll open another reports for the possible bug in _generate_cache and for
review of the other tests calling get_distribution.
Test test_install and test_command_install_data interference cache
I’ve added checks in regrtest to make sure that
Éric Araujo mer...@netwok.org added the comment:
Because the class of sys.flags is an implementation detail. Most people won’t
try to instantiate it, IMO.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13204
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 4eee9dd61147 by Éric Araujo in branch 'default':
Try to fix buildbot failures from #13193
http://hg.python.org/cpython/rev/4eee9dd61147
--
nosy: +python-dev
___
Python
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 8ea34a74f118 by Éric Araujo in branch '2.7':
Add missing versionadded (fixes #12392)
http://hg.python.org/cpython/rev/8ea34a74f118
--
___
Python tracker
Ezio Melotti ezio.melo...@gmail.com added the comment:
That's probably true, but IMHO it's not a valid reason to keep the buggy
behavior.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13204
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 4643be424293 by Benjamin Peterson in branch 'default':
add introspection to range objects (closes #9896)
http://hg.python.org/cpython/rev/4643be424293
--
nosy: +python-dev
resolution: - fixed
stage: patch
Changes by Petri Lehtinen pe...@digip.org:
--
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13338
___
___
Python-bugs-list
Changes by Petri Lehtinen pe...@digip.org:
--
nosy: +petri.lehtinen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13338
___
___
Python-bugs-list
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 41ab1dfaf1d4 by Petri Lehtinen in branch '3.2':
Remove __pycache__ directories correctly on OpenBSD
http://hg.python.org/cpython/rev/41ab1dfaf1d4
New changeset f853a2cbd68b by Petri Lehtinen in branch 'default':
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10977
___
___
Python-bugs-list
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Why would we want to prevent users from creating new instances of FlagsType?
--
nosy: +amaury.forgeotdarc
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13204
Petri Lehtinen pe...@digip.org added the comment:
This already seems fixed on 2.7, 3.2 and 3.3:
''.find('', None)
0
--
nosy: +petri.lehtinen
resolution: - out of date
status: open - closed
versions: -Python 3.1
___
Python tracker
Petri Lehtinen pe...@digip.org added the comment:
The same issue exists for tuples:
(1, 2, 3).index(2, None)
Traceback (most recent call last):
File stdin, line 1, in module
TypeError: slice indices must be integers or None or have an __index__ method
--
components: +Interpreter
Changes by Alex Gaynor alex.gay...@gmail.com:
--
nosy: +alex
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13340
___
___
Python-bugs-list mailing
New submission from Petri Lehtinen pe...@digip.org:
For example:
(1, 2, 3).index(4)
Traceback (most recent call last):
File stdin, line 1, in module
ValueError: tuple.index(x): x not in tuple
The x not in tuple error message should be replaced with 4 is not in tuple.
list.index() already
Changes by Petri Lehtinen pe...@digip.org:
--
components: +Extension Modules, Interpreter Core
type: - behavior
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13349
___
Zsolt Kendi kzsoltkzs...@freemail.hu added the comment:
I recognize the same problem problem at linux with 4 core 64 processor. The
python version is 2.6.5 . Looks like occured randomly but maybe this is depend
from thread sequence.
--
nosy: +kzsolt
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 0f0eda4daac7 by Petri Lehtinen in branch '2.7':
Accept None as start and stop parameters for list.index() and tuple.index()
http://hg.python.org/cpython/rev/0f0eda4daac7
New changeset 5c1fcaf3cf1c by Petri Lehtinen
New submission from Amaury Forgeot d'Arc amaur...@gmail.com:
A code simplification suggested by a comment in issue13349:
Replace most usages of PyUnicode_Format (a.k.a. str.__mod__) by
PyUnicode_FromFormat, which is easier to use from C:
no need to build a tuple, and the format accept both C
Petri Lehtinen pe...@digip.org added the comment:
Committed a fix for both list and tuple. I considered this a bug fix rather
than a new feature based on discussion in #11828, especially msg133532, and
applied the fix to 2.7 and 3.2, too.
--
___
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
The relevant code is in _PyEval_SliceIndex() in Python/ceval.c.
--
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13340
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
[citation needed]. First, mutable objects with a global name (let’s not use
variable for Python) are not unconditionally evil; see sys.path and
sys.modules for example. Second, how concretely would you change that
implementation? We
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
I think this fix was too hastily committed.
1) It was an API change.
2) It probably should have been done in _PyEval_SliceIndex().
Be careful. Don't rush to commit. Especially for backports.
--
status: closed - open
Petri Lehtinen pe...@digip.org added the comment:
2) It probably should have been done in _PyEval_SliceIndex().
I saw that other code used the same approach as I used in the fix.
The comment above _PyEval_SliceIndex() suggests it's used in other
contexts too. It seems that 2.7 uses it to
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
FTR, I haven't checked this on Ubuntu 32-bit. It's rather odd for the
failure to be architecture-dependent. Are these two machines running
different versions of Ubuntu, perhaps?
They are (Ubuntu Natty 32-bit failing, Ubuntu Oneiric
Nadeem Vawda nadeem.va...@gmail.com added the comment:
How strange. I've had no problem reproducing the failures; they've
occurred every time I've run test_packaging since the bug was opened
(on both Ubuntu and Windows). And the Windows buildbots seem to be
failing consistently as well...
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
The API in 2.7 shouldn't be changed.
The error message can be fixed though.
Also, it is not clear that the API should change even in 3.3. The list.index()
method is not required to accept None. It is not different than other
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
str.index does accept None, though
--
nosy: +amaury.forgeotdarc
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13340
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13316
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13317
___
Antoine Pitrou pit...@free.fr added the comment:
I also get this error on Mageia. If this can't be fixed, the test should be
skipped or removed.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13309
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 421c8e291221 by Antoine Pitrou in branch '3.2':
Issue #13342: input() used to ignore sys.stdin's and sys.stdout's unicode
http://hg.python.org/cpython/rev/421c8e291221
New changeset 992ba03d60a8 by Antoine Pitrou in
Antoine Pitrou pit...@free.fr added the comment:
Committed. I hope the test won't disturb the buildbots.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
How strange. I've had no problem reproducing the failures; they've
occurred every time I've run test_packaging since the bug was opened
(on both Ubuntu and Windows). And the Windows buildbots seem to be
failing consistently as well...
New submission from Jonas LM quak...@gmail.com:
Consider the following snippets:
def lists(n):
start_time = time.time()
lists = [None]*n
for i in xrange(n):
lists[i] = [None]*n
for j in xrange(n):
lists[i][j] = []
print time.time() -
R. David Murray rdmur...@bitdance.com added the comment:
In the case of 'lists' an object is being allocated each time through the inner
loop. In the case of simple_lists, no such allocation is being done. Your
timing issues are probably related to the memory allocation behavior of your
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
nosy: +flox
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9516
___
___
Python-bugs-list
Nick Coghlan ncogh...@gmail.com added the comment:
I should probably update that posted recipe to my latest version (which adds
excluded_files and excluded_dirs parameters).
However, since I've been dealing with remote filesystems where os.listdir() and
os.stat() calls from the local machine
Nick Coghlan ncogh...@gmail.com added the comment:
This needs more thought - pypi package coming soon :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13229
___
Antoine Pitrou pit...@free.fr added the comment:
It's because of the cyclic garbage collector. If you call gc.disable() at the
beginning of your benchmark, you'll see that runtimes get more similar in both
cases.
You can also use tuples instead of lists as much as possible, it will reduce
Antoine Pitrou pit...@free.fr added the comment:
Nick, perhaps you want to have a look at http://hg.python.org/features/pathlib/
(it doesn't have a filter_walk equivalent but it could grow one :-))
--
nosy: +pitrou
___
Python tracker
Nick Coghlan ncogh...@gmail.com added the comment:
That's one of the nicer attempts I've seen at an object-oriented path library,
but I have a core problem with OOP path APIs, and it relates to the Unicode
encoding/decoding problem: the ultimate purpose of path objects is almost
always to
Jonas LM quak...@gmail.com added the comment:
Confirmed that this was caused by the garbage collector, as pitrou suspected.
Thanks!
--
resolution: - works for me
status: open - closed
___
Python tracker rep...@bugs.python.org
Ned Deily n...@acm.org added the comment:
A request for this change in behavior is already being tracked by Issue10364.
--
nosy: +ned.deily
resolution: - duplicate
stage: - committed/rejected
status: open - closed
superseder: - IDLE: make .py default added extension on save
Changes by Ned Deily n...@acm.org:
--
nosy: +Kaleb702
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10364
___
___
Python-bugs-list mailing list
Nick Coghlan ncogh...@gmail.com added the comment:
Initial version available at: https://bitbucket.org/ncoghlan/iterwalk/src
I'll get it published to PyPI once the test suite is in a slightly better state
(no filesystem based tests as yet).
--
___
Changes by Meador Inge mead...@gmail.com:
--
nosy: +meador.inge
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10977
___
___
Python-bugs-list
Changes by Meador Inge mead...@gmail.com:
--
nosy: +meador.inge
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13328
___
___
Python-bugs-list
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment:
The entry in Misc/NEWS mentions the change in curses.tigetstr(), but actually
curses.tparm() has been changed. Please fix that entry to avoid confusion.
(curses.tigetstr() still expects a unicode string and returns a
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13309
___
New submission from Eli Bendersky eli...@gmail.com:
User report on the docs@ list:
-
http://docs.python.org/tutorial/classes.html#instance-objects
I think the counter attribute is mentioned for the first time in the
example code, not in Instance of MyClass created above, i.e. class
New submission from Eli Bendersky eli...@gmail.com:
User (Yoann Roman) report on docs@ maillist:
The docs for logging.handlers.TimedRotatingFileHandler in Python 2.7 say that
the utc keyword argument was added in 2.7:
Ori Livneh ori.liv...@gmail.com added the comment:
That's exactly the point: in Python, data attributes don't need to be declared
in the class definition.
--
nosy: +ori.livneh
___
Python tracker rep...@bugs.python.org
Eli Bendersky eli...@gmail.com added the comment:
Yep, I agree, Ori.
The paragraph immediately preceding the code sample says:
Data attributes need not be declared; like local variables, they spring
into existence when they are first assigned to [...] the following piece of
code will
Changes by Eli Bendersky eli...@gmail.com:
--
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13352
___
Nathan Clayton nathanclay...@gmail.com added the comment:
By always sending capabilities at connection, some servers immediately throw an
error. I've modified the class initialization to include an optional parameter
to indicate if this should be disabled.
--
keywords: +patch
nosy:
Oleg Oshmyan chor...@inbox.lv added the comment:
I just want to note that the code might be edited not only while it is running
it in the interactive interpreter but also while it is running as a standalone
script. In this case the script naturally would not know to reload its own code
nor
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset ce483d696c06 by Ned Deily in branch 'default':
Issue #13300: Fix IDLE Restart Shell command failure introduced by
http://hg.python.org/cpython/rev/ce483d696c06
--
nosy: +python-dev
Changes by Ned Deily n...@acm.org:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13300
___
93 matches
Mail list logo