Éric Araujo mer...@netwok.org added the comment:
I think it’s good: optparse checks for a leading 0 and will use int(value, 8)
in that case.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11017
Hiroaki Kawai hiroaki.ka...@gmail.com added the comment:
twisted's code does not work good for \t, \r, \n, those characters must
encoded in modified base64 form according to RFC 3501.
--
nosy: +Hiroaki.Kawai
___
Python tracker rep...@bugs.python.org
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com:
This bug may be based on same problem as Issue 6203.
- My system locale is en_GB.UTF-8.
- Given a latin1 text file, open()+ will fail with
'UnicodeDecodeError: 'utf8' codec can't decode byte 0xf6...'
- Using
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11022
___
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
- Using locale.setlocale(..., ...)
- Re-open causes same error, I/O layer codec has not been changed!
Yes, this is the expected behaviour with the current code.
TextIOWrapper uses indirectly locale.getpreferredencoding() to
STINNER Victor victor.stin...@haypocalc.com added the comment:
This bug may be based on same problem as Issue 6203.
Nope, both issues are different. Here you want that TextIOWrapper reads your
current locale, and not your environment variables. Issue #6203 asks why
LC_CTYPE is not C by
STINNER Victor victor.stin...@haypocalc.com added the comment:
To add a little bit more analysis: posix.device_encoding requires that
the LC_CTYPE is set. Setting it just in this function would not be
possible, as setlocale is not thread-safe.
open() does indirectly
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
This also applies to Python 3.2 docs. I've made the changes - OK to checkin,
Georg? (For 3.2, I mean)
--
assignee: docs@python - vinay.sajip
nosy: +georg.brandl, vinay.sajip
versions: +Python 3.2
STINNER Victor victor.stin...@haypocalc.com added the comment:
Something is very wrong with our code too. I have dumped the text
that's cousing the freeze and run it using the test case scripts.
It worked slow, but worked.
I retried test_MIMEText.tar.bz2 on FreeBSD 8.0 with 640 MB of memory:
STINNER Victor victor.stin...@haypocalc.com added the comment:
It looks like there is nothing interesting to do here, so I close the issue
(which is not a bug :-)).
--
resolution: - invalid
status: open - closed
___
Python tracker
New submission from Alan Isaac alan.is...@gmail.com:
In PEP 227 missing text is marked with XXX. Most of this is just calls for
examples and elaboration. However under the Implementation section XXX marks a
substantive question about the documentation.
Fixing this may be low priority, but a
Giampaolo Rodola' g.rod...@gmail.com added the comment:
I documented this some months ago:
http://docs.python.org/library/asyncore.html#asyncore.dispatcher_with_send
Being asynchat's push() method more convenient for such kind of task I
expressively avoided to be too specific about
New submission from Sebastian Spaeth sebast...@sspaeth.de:
imaplib's Time2Internaldate returns invalid (as localized) INTERNALDATE
strings. Appending a message with such a time string leads to a:
19 BAD Command Argument Error. 11 (for MS Exchange IMAP servers)
it returned 26-led-2011 18:23:44
Sebastian Spaeth sebast...@sspaeth.de added the comment:
P.S. To replicate this in ipython:
import locale, imaplib
locale.setlocale(locale.LC_ALL,'de_CH.utf8')
imaplib.Time2Internaldate(220254431)
Out[1]: '24-Dez-1976 06:47:11 +0100'
(Note the German 'Dez' rather than 'Dec')
--
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
Anyway, I don't know understand why do you change your locale,
because you know that your file encoding is Latin1. Why don't you
use directly: open(filename, encoding='latin1')?
Fortunately Issue 9124 is being solved soon due
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
versions: +Python 3.3 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1191964
___
Sebastian Spaeth sebast...@sspaeth.de added the comment:
CC'ing lavajoe as he seemed to be busy with some of imaplib's Date stuff the
last couple of days.
--
nosy: +lavajoe
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11024
New submission from Boris FELD lothiral...@gmail.com:
Distutils2 install command don't display error if you try to launch it in a
directory without setup.py nor setup.cfg files. It install an
UNKNOWN-UNKNOWN.dist-info distribution in your site-package with all meta-data
file set to UNKNOWN.
Thorsten Simons t...@snomis.de added the comment:
Hi Éric, All,
thank you for the directions you gave me!
It's all about a call of os.path.basename() missing in sdist.py. Pls. see
attached diff.
Regards,
Thorsten
--
keywords: +patch
Added file:
New submission from Boris FELD lothiral...@gmail.com:
Distutils2 install command fail with both python 2.5 and python 2.7 while it
works with python 2.6.
$ python -V
python 2.5.4
$ python -m distutils2.run install
usage: run.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or:
Changes by Boris FELD lothiral...@gmail.com:
--
type: - crash
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11026
___
___
Python-bugs-list
New submission from Kunjesh Kaushik kunjesh.kaus...@gmail.com:
It is often desirable to be able to write a section with spaces around the
header, as in [ default ] instead of [default] for the sake of readability
of configuration file. I am not sure if this is the standard format of
Boris FELD lothiral...@gmail.com added the comment:
The new command for installation is install_dist, sorry.
--
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11026
Joe Peterson j...@skyrush.com added the comment:
Sebastian,
Yes, in fact Alexander Belopolsky (belopolsky) brought up the the locale issue
for this very function in one of the other issue comments.
The invert function, Internaldate2tuple(), actually does its own parsing using
a regex match
Boris FELD lothiral...@gmail.com added the comment:
It also fails with python 2.5 and python 2.7 with install_dist command.
--
versions: +Python 2.5, Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11025
New submission from alain tty alain...@gmail.com:
It shall be interesting to simplify the building of the setup.cfg from an
existing setup.py.
A distutils2.mkcfg.load_existing_setup_script function already exists but it
raises NotImplementedError.
Since taking into account setuptools could be
Martin von Gagern martin.vgag...@gmx.net added the comment:
I've added a unit test for this nested mutex scenario. The attached patch
includes the original fix as well, as for some reason the patch by loewis
wouldn't apply to my tree automatically.
--
nosy: +gagern
Added file:
Sebastian Spaeth sebast...@sspaeth.de added the comment:
I think I found the issue he mentioned, however it was about the functions
taking the local time (rather than UTC), which is fine.
The problem is that Time2Internaldate is used for every .append() operation
internally, producing invalid
Joe Peterson j...@skyrush.com added the comment:
Yes, that's serious, certainly.
A patch should be fairly straightforward, given that part of the formatting
logic is already there (for the TZ offset at the end). You just need to format
the 6 values, and do a lookup for the month name.
If
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6203
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11022
___
New submission from Scott M scott.m...@comcast.net:
Running on dual core Windows XP.
The function should draw a parabolicish shape for each click on launch. But if
you click Launch over and over, very fast, you get bizarre crashes instead:
Python.exe has encoutered a problem, yadda.
Changes by Brian Curtin cur...@acm.org:
--
nosy: +brian.curtin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11029
___
___
Python-bugs-list
Georg Brandl ge...@python.org added the comment:
Yes, please go ahead.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11008
___
___
Brett Cannon br...@python.org added the comment:
Turns out I was using pax wrong. =) Thought it automatically compressed new
files; turns out it doesn't. Using the zx compressor it shrank the 70 MB file
down, so ignore the Google Docs upload and just grab this.
--
Added file:
R. David Murray rdmur...@bitdance.com added the comment:
Well, it is certainly intentional, then. Whether it is good is a different
story, but also a moot question since optparse has been replaced by argparse.
--
___
Python tracker
Antoine Pitrou pit...@free.fr added the comment:
For the record, you don't have to use pax, recent GNU tar handles xz fine (use
the -J option).
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8914
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +r.david.murray
stage: - needs patch
versions: +Python 2.7, Python 3.1, Python 3.2 -3rd party
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11024
R. David Murray rdmur...@bitdance.com added the comment:
A feature request can only go in to 3.3 at this point. ConfigParser has had a
serious overhaul in 3.2, by the way.
--
assignee: - lukasz.langa
nosy: +lukasz.langa, r.david.murray
versions: +Python 3.3 -Python 2.7
New submission from Sandro Tosi sandro.t...@gmail.com:
Hi, following up msg127157 here's a patch to allow for relative path when using
--coverdir.
The current solution uses getcwd() but since CWD is replaced by a temporary
location before calling main(), then the resulting dir is in an
Geoge R. Goffe grgo...@yahoo.com added the comment:
Brett,
Here's the file you requested.
Thanks for your help.
George...
--
status: pending - open
Added file: http://bugs.python.org/file20552/readline.i.gz
___
Python tracker
Antoine Pitrou pit...@free.fr added the comment:
Both cases indicate the users desire to change a specific locale
setting and thus - of course - all the changes which that implies!
So why should there be a difference?
I don't think it's intentional. I would be +1 on changing to
Changes by Michal Nowikowski godf...@gmail.com:
--
nosy: +godfryd
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10999
___
___
Python-bugs-list
Uoti Urpala uoti.urp...@pp1.inet.fi added the comment:
This kind of formatting is needed quite often when working on network protocols
or file formats, and I think the replies here fail to address important issues.
In general you can't encode after formatting, as that doesn't work with binary
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
There's a case to be made that the current regex is buggy. It already accepts
whitespace around the header name but doesn't strip it. ISTM, this is
undesirable: [ section header ] -- ' section header ' instead of
Brett Cannon br...@python.org added the comment:
Martin actually asked for the file and deserves the thanks.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11013
___
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
Fix checked into py3k and release27-maint (r88214).
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11008
Martin v. Löwis mar...@v.loewis.de added the comment:
Both cases indicate the users desire to change a specific locale
setting and thus - of course - all the changes which that implies!
So why should there be a difference?
I don't think it's intentional. I would be +1 on changing to
Kunjesh Kaushik kunjesh.kaus...@gmail.com added the comment:
Mr. Raymond has raised a valid point. On second thought, I think the submitted
patch won't resolve the issue.
import re
r = re.compile(r'\[\s*(?Pheader[^]]+)\s*\]') # as in the patch
r.match('[ section header ]').group('header')
Martin v. Löwis mar...@v.loewis.de added the comment:
What is /usr/lsd/Linux? This seems broken. Please take a look at
/usr/lsd/Linux/include/readline/history.h - it appears to be an empty file.
Make sure you have a working copy of the readline header files installed, and
make sure the build
Geoge R. Goffe grgo...@yahoo.com added the comment:
Martin,
I'm looking at the file right now. history.h is a link to readline.h which has
6771 characters in it.
George...
goffe@goffeg bash-4.1 /usr/lsd };-) find . -name 'readline.h' -ls
205381   8 -r--r--r--  1 goffe   nonconf Â
R. David Murray rdmur...@bitdance.com added the comment:
Well, there's still a backward compatibility issue: if this is changed,
currently working code may break. Maybe Lukasz or Fred will have a guess as to
how likely that is, because I don't.
--
nosy: +fdrake
Martin v. Löwis mar...@v.loewis.de added the comment:
I'm looking at the file right now. history.h is a link to readline.h
Ah, that's wrong. It must be a separate file, entirely different from
readline.h.
--
___
Python tracker
Geoge R. Goffe grgo...@yahoo.com added the comment:
Martin,
I traced back to where that readline installation came from... It's the latest
version from ftp.gnu.org + patches.
George...
It's not what you know that hurts you, It's what you know that ain't so. Wil
Rogers
--- On Thu, 1/27/11,
Martin v. Löwis mar...@v.loewis.de added the comment:
I traced back to where that readline installation came from... It's
the latest version from ftp.gnu.org + patches.
Did you mean to imply that you have now fixed your installation, or that
you consider it correct?
--
Scott M scott.m...@comcast.net added the comment:
To make this more interesting, I'm trying to push for adoption of Python at a
scripting tool where I work, and I uncovered this crasher in example code I was
about to hand out, under the heading of look how easy Python is. For obvious
reasons
Fred L. Drake, Jr. fdr...@acm.org added the comment:
I doubt anyone is looking for section names with leading or trailing whitespace.
One approach to dealing with this is to provide and sectionxform similar to
optionxform. If we're wrong and someone really is expecting leading or
trailing
Michal Nowikowski godf...@gmail.com added the comment:
I have prepared a patch that:
- documents flags for os.chflags function in stat module
- adds links for these flags os module to stat module.
--
components: +None
keywords: +patch
Added file:
Joe Peterson j...@skyrush.com added the comment:
OK, I attached a patch that should work. Note that this patch works for Python
2 and Python 3.
As an aside, the str type is still returned as before (even in Python 3), and
the _month_names list uses str. As has been discussed, it may be more
Changes by Joe Peterson j...@skyrush.com:
Removed file:
http://bugs.python.org/file20556/imaplib_Time2Internaldate_locale_fix.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11024
___
Changes by Joe Peterson j...@skyrush.com:
Added file:
http://bugs.python.org/file20557/imaplib_Time2Internaldate_locale_fix.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11024
___
Geoge R. Goffe grgo...@yahoo.com added the comment:
Martin,
After the rebuild/reinstall of readline, readline.h is different than
history.h... AND NOT A LINK. NO OTHER CHANGES. Same build script...
I did NOT do svn up but this current build attempt succeeded. AND THE BEST
PART... command
New submission from Sandro Tosi sandro.t...@gmail.com:
from msg127153 + msg127157 + msg127172 I prepared this patch to introduce a new
cli option to regrtest.py, --testdir DIR, that allows to specify a different
location for the directory containing the test files.
along the way, I added a
Geoge R. Goffe grgo...@yahoo.com added the comment:
Martin,
command line editing with 3.2 (I just did a svn co) works now as well...
Regards and have a GREAT day,
George...
It's not what you know that hurts you, It's what you know that ain't so. Wil
Rogers
--- On Thu, 1/27/11, Martin v.
Changes by Sandro Tosi sandro.t...@gmail.com:
Removed file: http://bugs.python.org/file20541/issue10848-testdir-py3k.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10848
___
Changes by Brett Cannon br...@python.org:
--
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11013
___
Sandro Tosi sandro.t...@gmail.com added the comment:
I've created two new issues (David, I think I've lost why I'd need 3 :) )
* issue11030 - finally allows to specify a relative dir with --coverdir
* issue11031 - to expose --testdir in order to specify a different location of
the directory
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Could just expand the docs to show examples of customizing behavior through
monkey-patching or subclassing:
class MyConfigParser(ConfigParser):
SECTRE = re.compile(r'[\*(?Pheader[^]]+)\s*]'
or:
STINNER Victor victor.stin...@haypocalc.com added the comment:
Set version to 3.3, I think that it is too late to change such critical code in
Python 3.2.
--
versions: +Python 3.3 -Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
R. David Murray rdmur...@bitdance.com added the comment:
I would say so, otherwise how are you going to run the tests you write :)
As for the other issue...I hadn't counted one for --testdir, but making that a
new issue was a good idea. So the other two I had in mind was for STDTESTS and
STINNER Victor victor.stin...@haypocalc.com added the comment:
upon program startup, init LibC environment: setlocale(LC_ALL, );
Python 3 does something like that: Py_InitializeEx() calls setlocale(LC_CTYPE,
). But I (and others) consider that as a bug (see #6203 discussion): Python
should
Antoine Pitrou pit...@free.fr added the comment:
Both cases indicate the users desire to change a specific locale
setting and thus - of course - all the changes which that implies!
So why should there be a difference?
I don't think it's intentional. I would be +1 on changing to
Kristian Vlaardingerbroek kristian.vlaardingerbr...@gmail.com added the
comment:
Cleaned up patch file. Removed non-related diffs and redundant updates.
refcount_test decorator is still in there.
--
Added file: http://bugs.python.org/file20561/issue10990.diff
New submission from STINNER Victor victor.stin...@haypocalc.com:
$ ./python
Python 3.2rc1+ (unknown, Jan 18 2011, 00:55:20)
import _string
_string.formatter_field_name_split(1)
python: Objects/stringlib/string_format.h:1347: formatter_field_name_split:
Assertion
STINNER Victor victor.stin...@haypocalc.com added the comment:
Here is a patch including a test.
The test pass on regrtest with -R 3:3: (no reference leak).
--
keywords: +patch
Added file: http://bugs.python.org/file20563/ssl.patch
___
Python
Antoine Pitrou pit...@free.fr added the comment:
Looks good to me.
--
resolution: - accepted
stage: needs patch - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10989
___
New submission from Peter Cai newpt...@gmail.com:
xml.etree.ElementTree.fromstring doesn't work with Unicode string. See the
code below:
from xml.etree import ElementTree
t = ElementTree.fromstring(u'doc诗/doc')
Traceback (most recent call last):
File stdin, line 1, in module
File
Eric Smith e...@trueblade.com added the comment:
I'll review this tomorrow.
--
nosy: +eric.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11032
___
Glyph Lefkowitz gl...@twistedmatrix.com added the comment:
I agree with Michael Foord; my comment on issue 8404
http://bugs.python.org/issue8084#msg122935 may be of interest to anyone
looking at this as well.
--
___
Python tracker
Changes by Eli Bendersky eli...@gmail.com:
--
nosy: +eli.bendersky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11015
___
___
Python-bugs-list
Eli Bendersky eli...@gmail.com added the comment:
I don't know if it matters much, but there's a slight mismatch in the
description of test.support.verbose. The documentation says it's a boolean,
while it's 0 or 1 in reality.
Can it just be changed to True/False in the code of test.support
Christoph Gohlke cgoh...@uci.edu added the comment:
Tkinter is not thread safe. You are changing UI elements from a thread that is
not the main thread. Use a Queue as described at
http://effbot.org/zone/tkinter-threads.htm.
--
nosy: +cgohlke
___
Eli Bendersky eli...@gmail.com added the comment:
Here's a patch fixing the 0/1 to True/False in a couple of places in
test.support and test.regrtest
I ran the test suite and it passes.
A review is needed to commit. I'll keep working on the documentation itself in
the meantime.
--
R. David Murray rdmur...@bitdance.com added the comment:
Attached is a patch that builds on Victor's patch, but takes the approach I
discussed of maintaining backward compatibility (for the most part; see below).
The test suite in this version is substantially unchanged. The major changes
Brett Cannon br...@python.org added the comment:
Attached is a patch against test_gc that shows what I think should be done for
the tests failing because of refcounts. Basically I added a refcount_test
decorator to test.support that skips a decorated test if it is not being run
under CPython
Eli Bendersky eli...@gmail.com added the comment:
Here's a patch to Doc/library/test.rst with additional several exported
functions documented. These are the ones I found most important and clear.
fcmp() is currently not documented (pending discussion in pydev).
--
stage: needs patch
Brett Cannon br...@python.org added the comment:
Attached is a patch for test_descr. I suspect the __locals__ failures will all
be the same; simply skip the test when a trace function is set.
And thanks for identifying the cause of the failures, Kristian; helps me make
sure I am not
New submission from Eli Bendersky eli...@gmail.com:
On a clean checkout of py3k, I try to open PCBuild/pcbuild.sln with my MSVC++
Express 2008. When opening, a message box pops saying:
Solution folders are not supported in this version of the application.
Solution folder Solution Items
Eli Bendersky eli...@gmail.com added the comment:
I tried running make_buildinfo.exe manually from a VC command prompt, and I get
an error for invoking subwcrev.exe:
D:\eli\python-py3k-trunk\PCbuildmake_buildinfo.exe Debug Win32-temp-Debug
C:\Program Files\TortoiseSVN\bin\subwcrev.exe ..
Kunjesh Kaushik kunjesh.kaus...@gmail.com added the comment:
I think we are dealing with two separate issues: a feature request for
sectionxform kind of functionality desirable in a future release (3.3 maybe)
and a behaviour issue in current releases (2.x and 3.x both). I suggest we
split the
90 matches
Mail list logo