Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10320
___
___
Phillip M. Feldman phillip.m.feld...@gmail.com added the comment:
I'm beginning to understand the reasoning. This is quite a bit more complex
than I initially thought, and I appreciate the explanations.
Phillip
On Sun, Oct 16, 2011 at 10:53 PM, Raymond Hettinger
rep...@bugs.python.orgwrote:
New submission from R Blackmore squan...@yahoo.com:
Using Python 3.2.2 on Windows 7
See attached file
Was having problem with a program I was doing... couldn't get around issue
unless I changed from while loop to for loop... WTF???
So restarted computer and then Python Shell and IDLE I wrote
R Blackmore squan...@yahoo.com added the comment:
for loop works correctly
prints
divisor 1
divisor 2
divisor 5 (original post incorrectly listed divisor 3,)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13206
Mark Dickinson dicki...@gmail.com added the comment:
Your 'i = i + 1' is at the wrong indentation level.
--
nosy: +mark.dickinson
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13206
Martin v. Löwis mar...@v.loewis.de added the comment:
I'm -1 on using wcswidth, though.
When you write text into a console on Linux (e.g. displayed by
gnome-terminal or konsole), I suppose that wcswidth() can be used to
compute the width of a line. It would help to fix #2382.
Or do you
R Blackmore squan...@yahoo.com added the comment:
I knew it was late...
Should have slept on it
Thanks
--- On Tue, 10/18/11, Mark Dickinson rep...@bugs.python.org wrote:
From: Mark Dickinson rep...@bugs.python.org
Subject: [issue13206] while loop vs for loop test
To: squan...@yahoo.com
Petri Lehtinen pe...@digip.org added the comment:
Should there be another issue opened to do something about the extra logging
levels?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12174
Sébastien Sablé sa...@users.sourceforge.net added the comment:
I need Python compiled with Visual Studio 2010 because I use it embedded in an
application compiled with Visual Studio 2010.
I am pretty sure there are quite a lot of people who would like to compile
Python with this compiler.
I
Petri Lehtinen pe...@digip.org added the comment:
Ping? I wonder whether closing an issue from 2004 would result in Achievement
unlocked: archaeological issue management
--
keywords: +patch
nosy: +petri.lehtinen
___
Python tracker
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
If I can provide the patch to support Visual Studio 2010 and setup a
builtbot that will pass most of the tests, could we get Python
supported on this platform?
Yes. Even if VS2008 remains the preferred compiler to build Python, and
Boštjan Mejak bostjan.me...@gmail.com added the comment:
Yes, Eric, please fix this already. :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12277
___
Jyrki Pulliainen jy...@dywypi.org added the comment:
Updated the existing patch with the new wording
--
nosy: +Jyrki.Pulliainen
Added file: http://bugs.python.org/file23437/clarify-bwcompat-devguide_v2.diff
___
Python tracker rep...@bugs.python.org
Petri Lehtinen pe...@digip.org added the comment:
Raymond: Would you also like to commit the patch? :)
--
keywords: -needs review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12448
___
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
nosy: +flox
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10197
___
___
Python-bugs-list
Ronald Oussoren ronaldousso...@mac.com added the comment:
On 11 Oct, 2011, at 22:28, Ned Deily wrote:
Ned Deily n...@acm.org added the comment:
I forgot to mention that one advantage of using another framework and root
location, say, under your home directory somewhere, is that it is
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
nosy: +flox
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1757072
___
___
Jyrki Pulliainen jy...@dywypi.org added the comment:
Added a patch that implements two things:
setlocale now raises locale.Error('Locale must be None, a string, or an
iterable of two strings -- language code, encoding.'). I decided to remove the
proposed .format(locale), as it wasa a bit
Ezio Melotti ezio.melo...@gmail.com added the comment:
Done.
--
assignee: eric.araujo - ezio.melotti
nosy: +ezio.melotti
resolution: accepted - fixed
stage: commit review - committed/rejected
status: open - closed
___
Python tracker
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset b41def1851b6 by Ezio Melotti in branch '3.2':
#12277: add missing comma.
http://hg.python.org/cpython/rev/b41def1851b6
New changeset 7e57c95898d3 by Ezio Melotti in branch 'default':
#12277: merge with 3.2.
Mark Hammond skippy.hamm...@gmail.com added the comment:
I don't think a buildbot will be necessary - like the earlier compilers, they
may have basic support but they don't all get buildbot support. The problem
isn't the lack of ability/will to get things working with VS2010 - it is more
the
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 2c50343d0500 by Ezio Melotti in branch '3.2':
#12448: smtplib now flushes stdout while running ``python -m smtplib``
http://hg.python.org/cpython/rev/2c50343d0500
New changeset e08397a5537a by Ezio Melotti in branch
Ezio Melotti ezio.melo...@gmail.com added the comment:
Fixed, thanks for the patch!
--
assignee: rhettinger - ezio.melotti
nosy: +ezio.melotti
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
versions: +Python 3.3
Mikhail Novikov freikse...@gmail.com added the comment:
I modified the tests so that they don't do prints to stdout. For that I
replaced print with warnings in the ParseError exception except and replaced
os.system with subprocess.getoutput.
--
keywords: +patch
nosy: +freiksenet
Added
Sven Marnach s...@marnach.net added the comment:
Mark, thanks again for your comments. (I never looked at the Python source
code before, so tey are highly appreciated.) I uploaded a new version of the
patch hopefully.
--
Added file:
Antoine Pitrou pit...@free.fr added the comment:
I made the
decision to raise a ValueError decision because __contains__ of both
bytes and bytearray raise a ValueError when passed an integer not in
range(0, 256).
That sounds reasonable. OverflowError would have been another choice, but I
New submission from Manuel de la Pena man...@canonical.com:
During our development we have experience the following:
If you have a user in your Windows machine with a name hat uses Japanese
characters like “雄鳥お人好し” you will have the following in your system:
* The Windows Shell will show the
Antoine Pitrou pit...@free.fr added the comment:
Doc/library/stdtypes.rst needs a versionadded tag for the additional
semantics.
Also, the patch doesn't compile fine on current default:
In file included from Objects/unicodeobject.c:487:0:
Objects/stringlib/find.h: In function
New submission from STINNER Victor victor.stin...@haypocalc.com:
It's difficult to use unicode_encode_call_errorhandler() because the caller has
to:
- resize the output buffer (and check for integer overflow on the new size)
- handle bytes and str for the replacement string:
New submission from Deepak Dodo deepakd...@gmail.com:
When I try to read the contents of the webpage:
http://www.ai-class.com/course/json/filter/QuizQuestion
using urllib.read, it doesn't read the entire content.
This behavior is only seen on windows and the same operation works fine on
linux
Ezio Melotti ezio.melo...@gmail.com added the comment:
+1
--
nosy: +ezio.melotti
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13209
___
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
nosy: +flox
title: os.path.expanduser brakes when using unicode character in the username
- os.path.expanduser breaks when using unicode character in the username
___
Python tracker
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
nosy: +flox
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12170
___
___
Python-bugs-list
New submission from Sébastien Sablé sa...@users.sourceforge.net:
Python for Windows is currently compiled with Visual Studio 2008.
It is not possible to use Visual Studio 2010.
It would be great to be able to compile Python with Visual Studio 2010:
* some people may only have access to this
Sébastien Sablé sa...@users.sourceforge.net added the comment:
Amaury:
Great! I have opened issue 13210 to achieve that.
Mark:
Mixing the 2 CRTs results in plenty of crashes in our application. The
application also uses a lot of Qt. It is not an option to use a prebuilt Python
binary
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13210
___
___
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +brian.curtin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13210
___
___
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13210
___
___
New submission from Jason R. Coombs jar...@jaraco.com:
The urllib2 docs indicate that HTTPError is a subclass of URLError and that
URLError has an attribute of 'reason', but HTTPError does not have this
attribute. The docs should be updated to reflect this deviance.
It appears the Python 3.2
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
nosy: +flox
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11085
___
___
Python-bugs-list
Petri Lehtinen pe...@digip.org added the comment:
Attached a patch that fixes this. The test case is a bit ugly, as it only
checks that the traceback's depth is correct.
--
keywords: +patch
nosy: +ezio.melotti, petri.lehtinen
stage: - patch review
Added file:
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
nosy: +flox
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12737
___
___
Python-bugs-list
Jyrki Pulliainen jy...@dywypi.org added the comment:
Changed the code so that the content length is set as size if reporthook is not
set and wrote two tests for it.
Note: I moved fakehttp behavior to a mixin, so that it's more reusable.
--
keywords: +patch
nosy: +nailor
Added file:
Antoine Pitrou pit...@free.fr added the comment:
Thank you! There is a memory leak somewhere:
$ ./python -m test -R 3:2 test_generators
[1/1] test_generators
beginning 5 repetitions
12345
.
test_generators leaked [1945, 1945] references, sum=3890
1 test failed:
test_generators
Also,
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
nosy: +flox
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12458
___
___
Python-bugs-list
Andreas Stührk andy-pyt...@hammerhartes.de added the comment:
It leaks because `PyException_GetTraceback()` already returns a new reference,
hence the Py_XINCREF(tb) is wrong.
--
nosy: +Trundle
___
Python tracker rep...@bugs.python.org
Brian Curtin br...@python.org added the comment:
We can make Python compile with Visual Studio 2010, but it will not be the
platform Python is released on, it would be optional while 2008 stays the
release target, at least through Python 3.3. In Python 3.4, we may re-evaluate
this, and it's
Petri Lehtinen pe...@digip.org added the comment:
Attached an updated patch.
I incref'd the return value of PyErr_GetTraceback() because PyErr_Restore()
steals the reference. The documentation of PyErr_GetTraceback() doesn't tell
whether it returns a new or borrowed reference, but apparently
Sébastien Sablé sa...@users.sourceforge.net added the comment:
Here is a quick and dirty draft of the modifications I had to do in order to
get Python 2.7.2 to compile with VS2010 on the wiki:
http://wiki.python.org/moin/VS2010
I will improve/complete it as I progress.
I will also do a 64
Antoine Pitrou pit...@free.fr added the comment:
Actually, it is documented:
“Return the traceback associated with the exception as a new reference (...)”
http://docs.python.org/dev/c-api/exceptions.html#PyException_GetTraceback
Thanks for the patch, will apply!
--
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset dcf5cc88d5c9 by Antoine Pitrou in branch '3.2':
Issue #13188: When called without an explicit traceback argument,
http://hg.python.org/cpython/rev/dcf5cc88d5c9
New changeset f4e3db1194e4 by Antoine Pitrou in branch
Changes by Antoine Pitrou pit...@free.fr:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13188
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12568
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset a3e48273dce3 by Łukasz Langa in branch '2.7':
Fixes #10860: Handle empty port after port delimiter in httplib
http://hg.python.org/cpython/rev/a3e48273dce3
--
nosy: +python-dev
Éric Araujo mer...@netwok.org added the comment:
[Vinay]
I think you mean Only the paste/util directory is recorded.
Obviously :)
How about if you record all directories that you would create if they didn't
exist, as well
as those actually created? That way, you would record the paste
Éric Araujo mer...@netwok.org added the comment:
Original report:
Samuele Pedroni points out in python-dev that the ... style reprs of Python
objects are
not documented, standardized or even consistent (e.g. compare old-style and
new-style
classes).
Yet there is plenty of code out there
Éric Araujo mer...@netwok.org added the comment:
Thanks for the patch. Exception messages are considered implementation
details, so I would not test them. Testing that an exception is raised is good
enough IMO.
--
nosy: +eric.araujo
___
Python
Éric Araujo mer...@netwok.org added the comment:
On POSIX, Python 3 works correctly if my home dir is /tmp/éric, and Python 2.7
returns a UTF-8-encoded (not locale-encoded!) bytes string.
For Windows, a patch would probably need to add a private function to the _nt
module (in C): ctypes is
Changes by Santoso Wijaya santoso.wij...@gmail.com:
--
nosy: +santa4nt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13210
___
___
Éric Araujo mer...@netwok.org added the comment:
The wiki page contains change to distutils, which I believe would not be
allowed by the feature freeze. New features (such as support for a new
compiler) need to target packaging.
--
___
Python
Éric Araujo mer...@netwok.org added the comment:
Sorry, I was too busy with real bugs to fix this minor one.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12277
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 70160b53117f by Antoine Pitrou in branch 'default':
Issue #13150: sysconfig no longer parses the Makefile and config.h files
http://hg.python.org/cpython/rev/70160b53117f
--
Antoine Pitrou pit...@free.fr added the comment:
Done! If someone wants to give life to the C approach, they are welcome :)
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
If Windows shell syntax is similar to POSIX one, then () will run in a
sub-shell, which would be a different behavior than using {} (which merely
group statements and their streams).
--
versions: -Python 3.1
Éric Araujo mer...@netwok.org added the comment:
I like it. Terry, objections?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12296
___
___
Éric Araujo mer...@netwok.org added the comment:
Thanks. I’ll add more tests and commit. (I also prefer to create modules in
test methods instead of using another file, so that I can see right here what
the module contains.)
--
___
Python tracker
Guido van Rossum gu...@python.org added the comment:
I think there's nothing to be done for a bug this general.
If you find a specific object whose repr() is awkward, go ahead and file a
specific bug.
In most cases I think people who parse repr() output know they are on thin ice,
and would
Jyrki Pulliainen jy...@dywypi.org added the comment:
I had a bad patch, containing changes to locale.py, so I've uploaded a new
patch for this.
--
Added file: http://bugs.python.org/file23446/issue10817.patch
___
Python tracker
Ezio Melotti ezio.melo...@gmail.com added the comment:
LGTM.
(Actually you can still break someone's code by introducing new
functions/classes, in case they get imported with 'from mod import *' and
override some local function/class with the same name -- but this is such an
obscure case
Jyrki Pulliainen jy...@dywypi.org added the comment:
I modified the patch not to contain the tests against exception messages
--
Added file: http://bugs.python.org/file23447/issue3067_v2.patch
___
Python tracker rep...@bugs.python.org
Changes by Jyrki Pulliainen jy...@dywypi.org:
Removed file: http://bugs.python.org/file23444/issue10817.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10817
___
Éric Araujo mer...@netwok.org added the comment:
David:
I don’t think packaging and pysetup generate-setup have anything to do with
this bug. You can create a setup.py file manually and see the error with
distutils in 2.7.
As I said before, I agree this is a bug. I’m working on many things
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 5d858149df06 by Éric Araujo in branch 'default':
Synchronize config with packaging (fixes #13170)
http://hg.python.org/distutils2/rev/5d858149df06
--
nosy: +python-dev
Éric Araujo mer...@netwok.org added the comment:
Thanks! I haven’t tested generate-setup for some time. It would be great to
add a regression test for this. Would you like to do it? To mock user input,
just copy the Inputs class from test_command_register. If not, I will do it.
Antoine Pitrou pit...@free.fr added the comment:
Similar test failure under x86 OpenIndiana:
==
ERROR: test_resources
(packaging.tests.test_command_install_data.InstallDataTestCase)
Changes by Éric Araujo mer...@netwok.org:
--
dependencies: +Automatically regenerate platform-specific modules
stage: test needed - needs patch
versions: +Python 2.7, Python 3.2, Python 3.3 -Python 2.6
___
Python tracker rep...@bugs.python.org
Changes by Éric Araujo mer...@netwok.org:
--
versions: +Python 3.2, Python 3.3 -Python 2.6, Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3990
___
bpoaugust sebbaz+...@gmail.com added the comment:
I got the () syntax from:
http://technet.microsoft.com/en-us/library/cc737438%28WS.10%29.aspx
which refers to grouping, not subshell.
--
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
If we keep the plat-* directories, I think too that introducing new
sys.platform values seems a bit heavy-handed.
--
dependencies: +Automatically regenerate platform-specific modules
nosy: +eric.araujo
David Barnett davidbarne...@gmail.com added the comment:
Sure, I can give it a go. I'll probably have a chance sometime today.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13205
___
Éric Araujo mer...@netwok.org added the comment:
BTW, distutils2 backports the sysconfig module and cfg file from 3.3, so now
the two versions will diverge.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13150
Éric Araujo mer...@netwok.org added the comment:
I sometimes wish that the str() of a class would return the class name
rather than its repr(); that way print(str) would print str
instead of class 'str'. (Use case: printing an exception and its
message: I wish I could print(%s: %s %
Éric Araujo mer...@netwok.org added the comment:
Doc patch to fix a reST error and tweak a few things.
--
Added file: http://bugs.python.org/file23448/urllib.request-doc.diff
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
The existing traceback doesn't even mention _msi.
Looks like #12703, which I’m going to fix shortly.
--
dependencies: +Improve error reporting for packaging.util.resolve_name
___
Python tracker
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13150
___
Terry J. Reedy tjre...@udel.edu added the comment:
To be more exact, optional arguments should be more extended to optional
arguments whose default maintains the existing behavior
--
___
Python tracker rep...@bugs.python.org
Petri Lehtinen pe...@digip.org added the comment:
Antoine Pitrou wrote:
Actually, it is documented:
“Return the traceback associated with the exception as a new reference (...)”
Ah, you're right. It just doesn't have the green Return value: New
reference note.
Thanks for committing!
Martin v. Löwis mar...@v.loewis.de added the comment:
Can you please provide a test case? What exact source code you are using, and
what exact result are you getting? Attach those pieces as files.
--
nosy: +loewis
___
Python tracker
Martin v. Löwis mar...@v.loewis.de added the comment:
I think this issue urgently needs a scope defined. What *exactly* is it that
you want to achieve? If it's merely being able to compile Python with VS 2010,
many of the proposed changes are unnecessary.
If you propose that the patch should
Petri Lehtinen pe...@digip.org added the comment:
BTW, shouldn't this be applied to 2.7 too?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13188
___
New submission from Tomasz Buchert thin...@gmail.com:
Hi there!
According to http://www.ietf.org/rfc/rfc4627.txt . The JSON object is either a
list or a dictionary with other elements in it. However Python's implementation
took liberty to parse also basic types, like integers, strings, floats,
New submission from Petri Lehtinen pe...@digip.org:
The documentation of generator.throw() gives this signature:
generator.throw(type[, value[, traceback]])
Looking at the code, it accepts the following arguments:
g.throw(ExcType) -- raise ExcType()
g.throw(ExcType, None) -- raise
Ross Lagerwall rosslagerw...@gmail.com added the comment:
I guess that would make it more general...
I'll play around with it for a bit. It mustn't become too hard to use though
since the original point was to simplify the opening of files :-)
--
Carl Meyer c...@dirtcircle.com added the comment:
This is what I proposed earlier: we’d need to record all directories that
would have been created, but I’m not sure if it will be possible. For
example, if one uses --prefix /tmp/usr and pysetup install creates /tmp/usr,
/tmp/usr/lib,
Roger Serwy roger.se...@gmail.com added the comment:
This is related to http://bugs.python.org/issue989712
--
nosy: +serwy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1053687
___
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
nosy: +flox
stage: - needs patch
type: - behavior
versions: -Python 2.6, Python 3.1, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13212
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
nosy: +flox
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13213
___
___
Python-bugs-list
Martin v. Löwis mar...@v.loewis.de added the comment:
I think the reported exception type is incorrect. Given that the error message
is 'Locale must be None, a string, or an iterable of two strings -- language
code, encoding.', it very much sounds like a TypeError is being reported here.
So I
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
I don't see any way of changing this without breaking lots of code that
currently works fine. It may be possible to add a strict-mode (off by default)
or to add warnings.
--
nosy: +rhettinger
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7723
___
___
1 - 100 of 136 matches
Mail list logo