Terry J. Reedy tjre...@udel.edu added the comment:
The short doc strings do not mention the issue either way. I think it ok to
leave them as they are. While the claim is how the functions *should* operate,
I verified that it is how they *do* operate in all three branches.
--
assignee:
Changes by Terry J. Reedy tjre...@udel.edu:
--
assignee: docs@python - terry.reedy
keywords: +easy, patch
nosy: +terry.reedy
versions: +Python 2.7, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13753
Georg Brandl ge...@python.org added the comment:
+1 for raw bytes, which reads much nicer to me than bytes raw.
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13748
___
Faheem Mitha fah...@faheem.info added the comment:
What is the status on this? It contains to be an
issue. See http://bugs.python.org/issue13751 and
http://bugs.python.org/issue13760
--
nosy: +fmitha
___
Python tracker rep...@bugs.python.org
Changes by Terry J. Reedy tjre...@udel.edu:
--
versions: -Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13753
___
___
Python-bugs-list
Ned Deily n...@acm.org added the comment:
Can you give the exact steps of what you did to demonstrate the problem? Also,
there are two OS X installers for Python 3.2.2. Which one did you install?
(The two lines of version information when starting Python is enough to
identify which one it
Changes by Georg Brandl ge...@python.org:
--
stage: - needs patch
title: add a casefold() method - add a unicode.casefold() method
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13752
___
New submission from Georg Brandl ge...@python.org:
Add a flush keyword argument to print(), defaulting to False. If true, output
will be flushed immediately.
See http://mail.python.org/pipermail/python-ideas/2012-January/013340.html
--
assignee: georg.brandl
components: Interpreter
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 3aed8787ce5c by Terry Jan Reedy in branch '2.7':
Closes #13754 String returned if less than *or equal to* x 3
http://hg.python.org/cpython/rev/3aed8787ce5c
New changeset 3f2e5fd17b76 by Terry Jan Reedy in branch
Terry J. Reedy tjre...@udel.edu added the comment:
See #13754 for commits (not here because 'close' != 'closes' or closed')
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13753
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13761
___
___
Atsushi Shibata shib...@webcore.co.jp added the comment:
The procedure is following.
1. type python in the terminal.app to launch interactive mode.
2. type 'あ' in it.
And I use Mac OS X 64-bit/32-bit Installer (3.2.2) for Mac OS X 10.6 and 10.7.
Here is the first 2 lines of initial message.
Terry J. Reedy tjre...@udel.edu added the comment:
The idea and design look good to me. I will test on Windows when I am able to
do so in development builds (unless someone beats me ;-).
--
nosy: +terry.reedy
versions: +Python 2.7, Python 3.3
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
title: IDLE no longer respects .Xdefaults insertOffTime - IDLE: add cursor
noblink option
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4630
Ned Deily n...@acm.org added the comment:
I am not familiar with the Japanese input methods available in OS X. But using
copy and paste with an US UTF-8 locale, it seems to work. Perhaps there is a
different locale in effect?
Python 3.2.2 (v3.2.2:137e45f15c0b, Sep 3 2011, 17:28:59)
[GCC
Marc-Andre Lemburg m...@egenix.com added the comment:
STINNER Victor wrote:
Patch version 5 fixes test_unicode for 64-bit system.
Victor, I don't think the randomization idea is going anywhere. The
code has many issues:
* it is exceedingly complex
* the method would need to be implemented
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
nosy: +tshepang
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13472
___
___
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
nosy: +tshepang
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13440
___
___
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
nosy: +tshepang
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12907
___
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
* it is exceedingly complex
Which part exactly? For hash(str), it just add two extra XOR.
* the method would need to be implemented for all hashable Python types
It was already discussed, and it was said that only hash(str)
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
nosy: +tshepang
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12296
___
___
New submission from Tshepang Lekhonkhobe tshep...@gmail.com:
I struggled to find how to contribute to the devguide. I even struggled to find
where the VCS is. I think it would be kool if there was a section for this info
(it's not always fun to search the intertubes).
--
components:
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
nosy: +tshepang
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13124
___
___
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
nosy: +tshepang
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12409
___
___
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
nosy: +tshepang
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13275
___
___
Tshepang Lekhonkhobe tshep...@gmail.com added the comment:
@Araujo bit offtopic, but which XML library have you found most elegant? Is it
available in the stdlib?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13275
New submission from Tshepang Lekhonkhobe tshep...@gmail.com:
this line:
commonly abbreviated svn, after the program name
was once changed to:
commonly abbreviated hg, after the program name
and it no longer makes sense
--
components: Devguide
files: rm-obsolete-reference.patch
New submission from Tshepang Lekhonkhobe tshep...@gmail.com:
I am wondering what else is outdated in that file. Is it still useful?
--
components: Build
messages: 151052
nosy: tshepang
priority: normal
severity: normal
status: open
title: Misc/build.sh is outdated... talks about svn
Atsushi Shibata shib...@webcore.co.jp added the comment:
Thank you for testing on your environment :-).
I'll make sure the difference that caused the issue.
I changed the status to pending. I'll come back to this issue when I find the
crue.
Thanks anyway !
--
status: open - pending
New submission from Almar Klein almar.kl...@gmail.com:
I found an easy to solve bug in distutils, which is causing problems with
compiling Cython code on Windows. I have reproduced this on Python 2.6 and
Python 3.2 (32 bit).
The problem occurs with the native msvc compiler. Using gcc (MinGW)
New submission from Tshepang Lekhonkhobe tshep...@gmail.com:
Lib/lib2to3/Grammar.txt seems like a modified copy of Grammar/Grammar. Can you
state so somewhere, maybe in the beginning of Lib/lib2to3/Grammar.txt (the Note
section).
One problem with the way it is now, is that there are changes
Sandro Tosi sandro.t...@gmail.com added the comment:
Hello Tshepang,
The current section is at:
http://docs.python.org/devguide/docquality.html#helping-with-the-developer-s-guide
reachable from the mainpage looking for helping with documentation.
it may be a little to condense but it is a
Tshepang Lekhonkhobe tshep...@gmail.com added the comment:
I guess I should have looked more carefully. Thanks and sorry for the noise.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13762
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
nosy: +tshepang
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2175
___
___
Python-bugs-list
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
nosy: +tshepang
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12779
___
___
Changes by Floris Bruynooghe floris.bruynoo...@gmail.com:
--
nosy: +flub
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1975
___
___
New submission from Zaheer Merali zaheermer...@gmail.com:
It would be nice to have a future import to be able to prevent people in code
doing:
try:
except Exception, e:
and make people do:
try:
except Exception as e:
--
components: Interpreter
Changes by Sandro Tosi sandro.t...@gmail.com:
--
resolution: - invalid
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13762
___
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
If you run python with the -3 flag you should get a warning about that. If you
combine it with -We you should be able to get an error instead of a warning.
Note however that both the flags are not specific for the except but also
Benjamin Peterson benja...@python.org added the comment:
Unfortunately, that would be a new feature, so it is not acceptable to Python
2.7.
--
nosy: +benjamin.peterson
resolution: - rejected
status: open - closed
___
Python tracker
Marc-Andre Lemburg m...@egenix.com added the comment:
STINNER Victor wrote:
STINNER Victor victor.stin...@haypocalc.com added the comment:
* it is exceedingly complex
Which part exactly? For hash(str), it just add two extra XOR.
I'm not talking specifically about your patch, but the
Antoine Pitrou pit...@free.fr added the comment:
OTOH, the collision counting patch is very simple, doesn't have
the performance issues and provides real protection against the
attack.
I don't know about real protection: you can still slow down dict
construction by 1000x (the number of
Mark Shannon m...@hotpy.org added the comment:
* the method would need to be implemented for all hashable Python types
It was already discussed, and it was said that only hash(str) need to
be modified.
Really ? What about the much simpler attack on integer hash values ?
You only have
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
nosy: tshepang
priority: normal
severity: normal
status: open
title: Doc/tools/dailybuild.py available only on 2.7 branch
versions: Python 2.6, Python 3.1, Python 3.2, Python 3.3
___
Python
Marc-Andre Lemburg m...@egenix.com added the comment:
Mark Shannon wrote:
Mark Shannon m...@hotpy.org added the comment:
* the method would need to be implemented for all hashable Python types
It was already discussed, and it was said that only hash(str) need to
be modified.
Really ?
Marc-Andre Lemburg m...@egenix.com added the comment:
Antoine Pitrou wrote:
Antoine Pitrou pit...@free.fr added the comment:
OTOH, the collision counting patch is very simple, doesn't have
the performance issues and provides real protection against the
attack.
I don't know about real
New submission from Марк Коренберг socketp...@gmail.com:
$ ipython
In [1]: type(json.dumps({'a':'b'}, ensure_ascii=False))
Out[1]: type 'str'
In [2]: type(json.dumps({'a':u'b'}, ensure_ascii=False))
Out[2]: type 'unicode'
---
Documentation:
If ensure_ascii is False, then the
New submission from Марк Коренберг socketp...@gmail.com:
Please fix documentation about ensure_ascii. Does it have any meaning in
python3?
--
assignee: docs@python
components: Documentation
messages: 151067
nosy: docs@python, mmarkk
priority: normal
severity: normal
status: open
title:
Changes by Марк Коренберг socketp...@gmail.com:
--
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13770
___
___
Tal Einat talei...@gmail.com added the comment:
I'd just like to weigh in and say that this is a major issue for me at the
moment. Not being able to indiscriminately pickle/unpickle exceptions is making
my parallel-processing work very painful, because of problematic stdlib
exceptions.
I'm
Antoine Pitrou pit...@free.fr added the comment:
On my slow dev machine 1000 collisions run in around 22ms:
python2.7 -m timeit -n 100 dict((x*(2**64 - 1), 1) for x in xrange(1, 1000))
100 loops, best of 3: 22.4 msec per loop
Using this for a DOS attack would be rather noisy, much unlike
Mark Dickinson dicki...@gmail.com added the comment:
[Antoine]
Also, how about false positives? Having legitimate programs break
because of legitimate data would be a disaster.
This worries me, too.
[MAL]
Yes, which is why the patch should be disabled by default (using
an env var) in
Marc-Andre Lemburg m...@egenix.com added the comment:
Mark Dickinson wrote:
Mark Dickinson dicki...@gmail.com added the comment:
[Antoine]
Also, how about false positives? Having legitimate programs break
because of legitimate data would be a disaster.
This worries me, too.
[MAL]
New submission from Michael Mulich michael.mul...@gmail.com:
While working on porting wsgi_intercept to Python 3 I came across a recursion
issue with http.client.HTTPSConnection. The following is an lesser extraction
of the traceback:
Traceback (most recent call last):
File
Changes by Antoine Pitrou pit...@free.fr:
--
components: +Library (Lib) -None
nosy: +orsenthil
versions: -Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13771
___
Marc-Andre Lemburg m...@egenix.com added the comment:
Antoine Pitrou wrote:
Antoine Pitrou pit...@free.fr added the comment:
On my slow dev machine 1000 collisions run in around 22ms:
python2.7 -m timeit -n 100 dict((x*(2**64 - 1), 1) for x in xrange(1,
1000))
100 loops, best of 3:
Antoine Pitrou pit...@free.fr added the comment:
[MAL]
Yes, which is why the patch should be disabled by default (using
an env var) in dot-releases.
Are you proposing having it enabled by default in Python 3.3?
I would personally prefer 3.3 and even 3.2 to have proper randomization
Guido van Rossum gu...@python.org added the comment:
In the python-ideas discussion people have argued that flush=False should or
could be interpreted as definitely do not flush which is unimplementable (the
buffer may be full, or the stream may be unbuffered, and there is no way to
tell a
Terry J. Reedy tjre...@udel.edu added the comment:
My supposition that compile() rejects some real file names appears correct:
from python-list
ME: Is this a filename that could be an actual, valid filename on your system?
OP: Yes it is. open works on that file.
--
Charles-François Natali neolo...@free.fr added the comment:
Here's an updated version.
Note that I'm not pushing towards changing the current behavior
pertaining to symlinks to directories, because if we change this, this
will break code.
For example to count the number of lines of all the
Antoine Pitrou pit...@free.fr added the comment:
I noticed that if bind() fails (in this case with EADDRINUSE), the
socket isn't closed (FD leak).
Well it would probably be closed when the connection object is
destroyed, but the patch looks ok anyway.
--
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset bc043cef94f2 by Terry Jan Reedy in branch '3.2':
Closes #11633 Clarify print buffering.
http://hg.python.org/cpython/rev/bc043cef94f2
New changeset fb0d61fd1753 by Terry Jan Reedy in branch 'default':
Merge with 3.2
Terry J. Reedy tjre...@udel.edu added the comment:
#13761 proposes to add flush=False param with option for True.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11633
___
Changes by Martin v. Löwis mar...@v.loewis.de:
--
versions: -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13769
___
___
Terry J. Reedy tjre...@udel.edu added the comment:
I added a couple of lines to the 3.2, 3.3 print doc in #11633. When a change is
made here, they could be updated to something like:
Output buffering is normally determined by *file*. Use flush=True to force
immediate output to a device such as
Georg Brandl ge...@python.org added the comment:
There is a reason: we don't usually check the type of flag arguments; just
their truth value is used.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13761
Georg Brandl ge...@python.org added the comment:
Here is a patch.
One open question is whether failure in flush() should be reraised (as
implemented in the patch), or ignored (as in input()).
--
keywords: +patch
Added file: http://bugs.python.org/file24203/flush.patch
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 10a5165103f9 by Terry Jan Reedy in branch '2.7':
Minor correction. Closes #11418
http://hg.python.org/cpython/rev/10a5165103f9
New changeset 32ea3675fba2 by Terry Jan Reedy in branch '3.2':
Minor correction. #11418
Sandro Tosi sandro.t...@gmail.com added the comment:
Hi,
i'm at last back with some work to show; I've integrated all the Documenting
python doc into devguide, and the commits are in this sandbox:
http://hg.python.org/sandbox/morph-devguide/shortlog/a92d431ef749
(`documenting` branch).
I
New submission from Antoine Pitrou pit...@free.fr:
Note how _getfinalpathname works and calling listdir on the final path name
also works:
os.symlink(.\\test, Lib\\bar)
os.listdir(Lib\\bar)[:4]
Traceback (most recent call last):
File stdin, line 1, in module
NotADirectoryError: [Error 267]
Benjamin Peterson benja...@python.org added the comment:
New patch with title casing mappings added.
--
Added file: http://bugs.python.org/file24204/full-casemapping.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12736
New submission from poq p...@gmx.com:
URIs are an extensible way to pass options to SQLite. See:
http://www.sqlite.org/uri.html
Patch adds a keyword argument uri to sqlite3.connect which causes the
filename to be parsed as a URI if set to True.
--
components: Extension Modules
files:
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Hi, I will let others discuss the feature itself, here are already some
comments about your patch:
- In module_connect(), the ability to pass factory as a positional argument
is broken, please restore the previous code; I'm afraid
Guido van Rossum gu...@python.org added the comment:
I'd ignore the failure. It could easily mask some other more interesting error.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13761
Charles-François Natali neolo...@free.fr added the comment:
I must be missing something, but how is raising an exception when a collision
threshold is reached a good thing?
Basically, we're just exchanging a DoS for another (just feed the server
process with ad-hoc data and he'll commit
Ronald Oussoren ronaldousso...@mac.com added the comment:
I've found a bug in the curses module that is causing problems:
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -2056,7 +2056,8 @@
{encoding,
Sandro Tosi sandro.t...@gmail.com added the comment:
Hi Oleg,
thanks for your interest in aifc module!
I think that if the fix for audioop has a reason for itself to exists, then
another issue (for that only) has to be filed and set the accordingly
dependency on this one.
--
nosy:
Sandro Tosi sandro.t...@gmail.com added the comment:
But we may explain what's behind: after the mercury chemical element symbol -
what do you think?
--
nosy: +sandro.tosi
stage: - patch review
___
Python tracker rep...@bugs.python.org
Ezio Melotti ezio.melo...@gmail.com added the comment:
If 'program' refers to the executable, the sentence is still valid.
--
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13763
poq p...@gmx.com added the comment:
Thanks for your comments. You're right, I didn't consider positional arguments.
Here's a patch that addresses your comments.
Should I also rewrap modified lines that were already much too long?
I also noticed fixed an unrelated typo in
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset f7e05d205a52 by Benjamin Peterson in branch 'default':
use full unicode mappings for upper/lower/title case (#12736)
http://hg.python.org/cpython/rev/f7e05d205a52
--
nosy: +python-dev
Changes by Benjamin Peterson benja...@python.org:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12736
___
Changes by Cameron Simpson c...@zip.com.au:
--
nosy: +cameron
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13761
___
___
Python-bugs-list mailing
Changes by Santoso Wijaya santoso.wij...@gmail.com:
--
nosy: +santa4nt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13772
___
___
Nam Nguyen bits...@gmail.com added the comment:
Ronald's patch does fix the segmentation fault with clang-compiled Python. But
this bug report seems to be about LLVM-GCC not compiling correctly.
--
___
Python tracker rep...@bugs.python.org
New submission from Julian Berman julian+python@grayvines.com:
import json
json.loads({}, [1, 2, 3])
Traceback (most recent call last):
File input, line 1, in module
File /usr/local/Cellar/python/2.7.2/lib/python2.7/json/__init__.py, line
339, in loads
return
New submission from Santoso Wijaya santoso.wij...@gmail.com:
Consider:
os.symlink('.\\test', 'Lib\\bar')
Traceback (most recent call last):
File stdin, line 1, in module
WindowsError: [Error 5] Access is denied: '.\\test'
Where Lib\\bar is previously created. The symlink creation is rightly
Santoso Wijaya santoso.wij...@gmail.com added the comment:
Simple patch.
--
keywords: +patch
Added file: http://bugs.python.org/file24208/issue13775_py33.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13775
Santoso Wijaya santoso.wij...@gmail.com added the comment:
I think this is because Lib\\bar is NOT being created as a directory symlink,
but rather as a regular one.
As such, the documentation for symlink where it states the optional
`target_is_directory=False` argument should be
Cameron Simpson c...@zip.com.au added the comment:
I'm against ignoring a flush failure. What happened to errors should never
pass silently? IMO, if we get as far as calling flush and having an exception
occur, a more interesting error hasn't yet occurred.
I really dislike things that fail
Santoso Wijaya santoso.wij...@gmail.com added the comment:
Confirmed (on latest py33 build):
os.listdir('Lib\\bar')[:4]
Traceback (most recent call last):
File stdin, line 1, in module
NotADirectoryError: [Error 267] The directory name is invalid: 'Lib\\bar\\*.*'
[61658 refs]
... after
Changes by Cameron Simpson c...@zip.com.au:
--
nosy: +cameron
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11633
___
___
Python-bugs-list mailing
Antoine Pitrou pit...@free.fr added the comment:
I think this is because Lib\\bar is NOT being created as a directory
symlink, but rather as a regular one.
Ha! I didn't even know about that option. Thanks for noticing.
As such, the documentation for symlink where it states the optional
Antoine Pitrou pit...@free.fr added the comment:
I think it should be re-raised (or rather, let pass through as in the patch).
If you are asking for a flush you want to know why it failed.
(it shouldn't ever fail on normal files, anyway)
--
nosy: +pitrou
Cameron Simpson c...@zip.com.au added the comment:
Flush can fail of disc full or any number of low level things that prevent the
OS getting the data into the on-disc file.
Speaking for myself, I certainly want to know if that happens.
--
___
Guido van Rossum gu...@python.org added the comment:
Ok, I'm fine with passing through the exception from flush().
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13761
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13761
___
Changes by Martin Panter vadmium...@gmail.com:
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4806
___
___
Python-bugs-list
Changes by Martin Panter vadmium...@gmail.com:
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11944
___
___
Python-bugs-list
Martin Panter vadmium...@gmail.com added the comment:
I haven’t tried to understand what the patches do, but Issue 5218 looks like a
very similar problem with a patch including a test case.
--
___
Python tracker rep...@bugs.python.org
1 - 100 of 113 matches
Mail list logo