[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly
Greg Brockman g...@ksplice.com added the comment: You can't have a sensible default timeout, because the worker may be processing something important... In my case, the jobs are either functional or idempotent anyway, so aborting halfway through isn't a problem. In general though, I'm not sure what kinds of use cases would tolerate silently-dropped jobs. And for example, if an OOM kill has just occurred, then you're already in a state where a job was unexpectedly terminated... you wouldn't be violating any more contracts by aborting. In general, I can't help but feel that the approach of ignore errors and keep going leads to rather unexpected bugs (and in this case, it leads to infinite hangs). But even in languages where errors are ignored by default (e.g. sh), there are mechanisms for turning on abort-on-error handlers (e.g. set -e). So my response is yes, you're right that there's no great default here. However, I think it'd be worth (at least) letting the user specify if something goes wrong, then abort. Keep in mind that this will only happen in very exceptional circumstances anyway. Not everything can be simple. Sure, but given the choice between a simple solution and a complex one, all else being equal the simple one is desirable. And in this case, the more complicated mechanism seems to introduce subtle race conditions and failures modes. Anyway, Jesse, it's been a while since we've heard anything from you... do you have thoughts on these issues? It would probably be useful to get a fresh opinion :). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9205 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)
Steven Bethard steven.beth...@gmail.com added the comment: It *would* be a backwards incompatible change. Currently, if I have a parser with both a --foo and a --bar option, and my user types --foo --bar, they get an error saying that they were missing the argument to --foo. Under your proposal, the --foo option will now silently consume the --bar option without an error. I know this is good from your perspective, but it would definitely break some of my scripts, and I imagine it would break other people's scripts as well. As I keep saying, I'm happy to add your alternative parsing as an option (assuming you provide a patch), but I really don't think it's the right thing to do by default. Most command line programs don't have options that take other option-like things as arguments (which is the source of your problem), so in most command line programs, people want an error when they get an option they don't recognize or an option that's missing its argument. Under your proposal, more such errors will pass silently and will have to be caught by additional code in the script. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9334 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9387] Make python -m tkinter run tkinter demo
Éric Araujo mer...@netwok.org added the comment: The note seems fine to me. I’d used a semicolon, not a period, but that’s just me. You want to use `` to mark up code, not `. Aside: I’ve been told before not to do wrapping or whitespace changes unrelated to the object of my patch, to ease review. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9387 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1682942] ConfigParser support for alt delimiters
Changes by Łukasz Langa luk...@langa.pl: Removed file: http://bugs.python.org/file18216/issue1682942.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1682942 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1682942] ConfigParser support for alt delimiters
Łukasz Langa luk...@langa.pl added the comment: Updated the patch after review by Brian Curtin and Alexander Belopolsky. All remarks addressed, I think it's ready for inclusion. -- Added file: http://bugs.python.org/file18219/issue1682942.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1682942 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7198] csv.writer
Andreas Balogh balo...@gmail.com added the comment: I encountered the same problem. It is unclear that using binary mode for the file is solving the problem. I suggest to add a hint to the documentation. -- nosy: +baloan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7198 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9390] Error in sys.excepthook on windows when redirecting output of the script
New submission from sorin sorin.sbar...@gmail.com: create a test.py with this content: print(test) run this file from command line by redirecting the output: test.py out.log You get: close failed in file object destructor: Error in sys.excepthook: Original exception was: This does not happen if you call the script by using python test.py out.log Also this does not reproduce with Python 3.1 but it does reproduce with latest Python 2.6 and 2.7 under windows. You can switch the registered python interpreter via registry key: [HKEY_CLASSES_ROOT\Python.File\shell\open\command] @=\C:\\lib\\Python27\\python.exe\ \%1\ %* -- components: Windows messages: 111695 nosy: sorin priority: normal severity: normal status: open title: Error in sys.excepthook on windows when redirecting output of the script type: crash versions: Python 2.6, Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9390 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly
Jesse Noller jnol...@gmail.com added the comment: You two are bigger users of this then I currently am (the curse/blessing of switching jobs), which is why I've let you hash it out. Let me point out: my goal is to deal with errors in a way which does not cause a total crash, a lockup, or hanging processes. Whether or not we lose jobs is another thing entirely, and something I'm torn on. I also need to mention - I think we can add fixes to the behavior to 2.7 - we can not, however, change the API. If we change the API, this fix will be only on Python 3.2 which is not what I suspect either of you want. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9205 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9387] Make python -m tkinter run tkinter demo
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Committed with changes suggested by Éric in r83177. -- resolution: accepted - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9387 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9384] Tkinter windows pop under the terminal in OSX
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Tue, Jul 27, 2010 at 1:54 AM, Ronald Oussoren rep...@bugs.python.org wrote: .. Does pydoc -k also crash? Yes, it does: $ ./python.exe -m pydoc -k xyz lib2to3.fixes.fix_repr - Fixer that transforms `xyzzy` into repr(xyzzy). Segmentation fault but this is not an OSX specific issue. I believe this is the same as issue9319. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9384 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9387] Make python -m tkinter run tkinter demo
Éric Araujo mer...@netwok.org added the comment: BTW, why is the sys.argv hackery necessary? Does import or runpy or something force us to jump through hoops? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9387 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7962] Demo and Tools need to be tested and pruned
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Tue, Jul 27, 2010 at 1:49 AM, Ronald Oussoren rep...@bugs.python.org wrote: .. What Apple does and doesn't ship is not important for this discussion. I agree. I used Apple as an example because I happened to post from an Apple laptop. I am sure it is similarly hard to find demo programs on every other OS and there is no consistency between different distributions. However they do ship Lib/test. This tells me that they don't try to prune Lib and I think most distributions similarly ship Lib as is. Our OSX installer does install most of these, on the assumption that anything that is part of the source distribution might be of interest for users. Installing some of the tools (and I don't think any demos are installed that way) next to python executable presents a namespace problem. Since tools are not consistently prefixed with 'py', they may conflict with system or user tools that happen to be in the path. Support for multiple python versions is also somewhat ad hoc. For example, on my system I have 2to3, 2to32.6 and 2to3-3.1. I do agree that 2to3-3.1 is an improvement over 2to32.6, but how can I guess that idle2.6 gets upgraded to idle3.1 rather than idle-3.1? With -m approach, all I need to know is how to start python of the desired version: python, python2.6, or even ./python.exe from the root of the development tree. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7962 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9387] Make python -m tkinter run tkinter demo
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Tue, Jul 27, 2010 at 10:44 AM, Éric Araujo rep...@bugs.python.org wrote: Éric Araujo mer...@netwok.org added the comment: BTW, why is the sys.argv hackery necessary? Does import or runpy or something force us to jump through hoops? I guess we need to ask benjamin.peterson or michael.foord. I just copied the hack from unittest/__main__.py. I believe this is done in order to convince optparse to print python -m modname rather than modname.py in the python -m modname -h output. Of course, tkinter does not support -h (yet?), but I thought it would be better to maintain consistency in how __main__.py is written. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9387 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9387] Make python -m tkinter run tkinter demo
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- nosy: +benjamin.peterson, michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9387 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1886] Permit to easily use distutils --formats=tar, gztar, bztar on all systems
Changes by Éric Araujo mer...@netwok.org: -- assignee: - tarek nosy: +merwok, tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1886 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5544] test_fileio fails on windows MSVC Assertion
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5544 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9299] os.makedirs(): Add a keyword argument to suppress File exists exception
Terry J. Reedy tjre...@udel.edu added the comment: If I understand, this makes the change minimal: exist_ok means that if *name* already exists as a directory with the specified permissions, then do not raise an error. OK with me. Make sure doc and doc string say something like that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9299 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9299] os.makedirs(): Add a keyword argument to suppress File exists exception
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: if *name* already exists as a directory with the specified permissions, then do not raise an error. AFAICT, the code in the patch does not check permissions of the existing path(s) or even whether it is a directory or not. -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9299 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9299] os.makedirs(): Add a keyword argument to suppress File exists exception
Terry J. Reedy tjre...@udel.edu added the comment: Yes, Arfrever brought that up and the question now is whether and how to revise it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9299 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9299] os.makedirs(): Add a keyword argument to suppress File exists exception
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: 'mkdir -p' prints error when target exists and is non-directory: $ cd /tmp $ touch file $ mkdir -p file mkdir: cannot create directory `file': File exists -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9299 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly
Greg Brockman g...@ksplice.com added the comment: Thanks for the comment. It's good to know what constraints we have to deal with. we can not, however, change the API. Does this include adding optional arguments? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9205 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3874] documentation bug: HTMLParser needs to document unknown_decl
jeff frey...@gmail.com added the comment: On Thu, Jun 17, 2010 at 3:30 PM, Terry J. Reedy rep...@bugs.python.org wrote: In order for the doc maintainers to add an entry, someone knowledgeable must write it. Your paragraph of explanation is a start, but more editing is needed. Looking at dir(html.parser.HTMLParser) and help(...), I see that there are several public internal methods. Some have doc strings that show up with help(), some do not. I thing all should. Some are defined on HTMLParser and some inherited from the undocumented (I believe) _markupbase.ParserBase. I see that there are also several (completely undocumented except fir dir()) private ('_xyz') internal methods. This implies to me that the public internal methods were made public rather than private because there might be reason to override them. If so, perhaps there should be a new subsection on public internal methods to explain what is what with them. What do you think? Document just one, some, or all? Terry, I'm looking at the HTMLParser code, and I only see unknown_decl as a method in there that is: a) not marked as internal or doing a lot, b) not documented. There are a number of methods which should probably be refactored to be _methodname rather than methodname, but that's beyond the scope of this report. HTMLParser.unknown_decl(data)¶ Method called when an unrecognized SGML declaration is read by the parser. The data parameter will be the entire contents of the declaration inside the !... markup. It is sometimes useful to be be overridden by a derived class; the base class implementation throws an HTMLParseError. There may be other undocumented methods showing up, but if so they're part of a parent class. Thanks, Jeff -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3874 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5109] array.array constructor very slow when passed an array object.
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I am replacing issue5109.diff with an updated version (white space only changes). Does anyone object to this change or need more time to review? -- components: +Extension Modules -Library (Lib) resolution: - accepted stage: patch review - commit review versions: +Python 3.2 Added file: http://bugs.python.org/file18220/issue5109.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5109 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5109] array.array constructor very slow when passed an array object.
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: Removed file: http://bugs.python.org/file17157/issue5109.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5109 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1170] shlex have problems with parsing unicode
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Fernando, Is this 2.7 only problem? In 3.2 list(shlex.shlex('ab')) ['ab'] and bytes are not supported. list(shlex.shlex(b'ab')) Traceback (most recent call last): .. AttributeError: 'bytes' object has no attribute 'read' It is debatable whether either is a bug. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1170 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1170] shlex have problems with parsing unicode
Fernando Perez fdo.pe...@gmail.com added the comment: Yes, sorry that I failed to mention the example I gave applies only to 2.x, not to 3.x. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1170 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9391] Allow docstrings on dicts and named tuples outside of functions or classes.
New submission from Anthony Long antl...@gmail.com: I would like to add docstrings to dicts and named tuples. Dicts can be used to hold many different kinds of information, and docstrings would help to shed light on what the dict does to others. Named tuples also should have docstrings, since they can also include information which can be explained it great detail within docstrings. -- components: Interpreter Core messages: 111711 nosy: antlong priority: normal severity: normal status: open title: Allow docstrings on dicts and named tuples outside of functions or classes. type: feature request versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9391 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9391] Allow docstrings on dicts and named tuples outside of functions or classes.
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: -1 on dicts You can simply subclass from dict to add docs. I think you can add docs to named tuples even without subclassing, but I need to check. -- nosy: +belopolsky versions: -Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9391 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9391] Allow docstrings on dicts and named tuples outside of functions or classes.
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Indeed, namedtuple auto-generates a doc-string and does not provide a way to customize it. It sounds reasonable to add a doc argument to namedtuple() function that would control __doc__ of the result. I am +0 on that. -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9391 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3874] documentation bug: HTMLParser needs to document unknown_decl
Terry J. Reedy tjre...@udel.edu added the comment: OK, your recommendation is to add one entry with the text suggested in the message. Given the name, the text seems reasonable. I will leave it to a doc person to format and apply. -- keywords: +patch stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3874 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7330] PyUnicode_FromFormat segfault
Changes by Ron Adam ron_a...@users.sourceforge.net: -- nosy: +ron_adam title: PyUnicode_FromFormat segfault when using widths. - PyUnicode_FromFormat segfault ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7330 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9391] Allow docstrings on dicts and named tuples outside of functions or classes.
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: I'm also -1 on dicts -- just use a second dict to hold docstings. Can you elaborate on your proposal for named tuples? Keep in mind that the API is already somewhat complex and should not be expanded lightly. Also, the whole point of named tuples is to allow you to assign attribute names that are self-documenting (otherwise, you would just use t[0], t[1], etc). So, I'm not sure what the benefit would be for overriding the existing, auto-generated docstring which already gives some useful information (i.e. the position index of the attribute). -- assignee: - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9391 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1170] shlex have problems with parsing unicode
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Tue, Jul 27, 2010 at 2:26 PM, Fernando Perez rep...@bugs.python.org wrote: .. Yes, sorry that I failed to mention the example I gave applies only to 2.x, not to 3.x. Why do you expect shlex to work with unicode in 2.x? The documentation clearly says that the argument should be a string. Supporting unicode is not an unreasonable RFE, but won't be considered for 2.x anymore. What's your take on accepting bytes in 3.x? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1170 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1170] shlex have problems with parsing unicode
Fernando Perez fdo.pe...@gmail.com added the comment: On Tue, Jul 27, 2010 at 11:52, Alexander Belopolsky rep...@bugs.python.org wrote: Why do you expect shlex to work with unicode in 2.x? =A0The documentation clearly says that the argument should be a string. Supporting unicode is not an unreasonable RFE, but won't be considered for 2.x anymore. Well, I didn't make the original report, just provided a short, illustrative example :) It's easy enough to work around the issue for 2.x that I don't care too much about it, so I have no problem with 2.x staying as it is. What's your take on accepting bytes in 3.x? Mmh... Not too sure. I'd think about it from the perspective of what possible sources of input could produce raw bytes, that would be reasonable use cases for shlex. Is it common in 3.x to read a file in bytes mode? If so, then it might be a good reason to have shlex parse bytes as well, since I can imagine reading inputs from files to be parsed via shlex. But take my opinion on 3.x with a big grain of salt, I have very little experience with it as of yet. Cheers, f -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1170 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1170] shlex have problems with parsing unicode
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: +1 on get shlex to work better with Unicode. The core concepts of this module are general purpose and applicable to all kinds of text. -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1170 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1170] shlex have problems with parsing unicode
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Tue, Jul 27, 2010 at 3:04 PM, Raymond Hettinger rep...@bugs.python.org wrote: Raymond Hettinger rhettin...@users.sourceforge.net added the comment: +1 on get shlex to work better with Unicode. In 2.7.x? It more or less works in 3.x already. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1170 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9391] Allow docstrings on dicts and named tuples outside of functions or classes.
Anthony Foglia afog...@gmail.com added the comment: I could see adding a doc parameter to the collections.namedtuple. So that --- Point = collections.namedtuple(Point, (x, y), doc=My point class) Point.__doc__ My point class --- (Or it could keep the currently created docstring and append the new doc after an empty line.) --- Point = collections.namedtuple(Point, (x, y), doc=My point class) Point.__doc__ Point(x, y) My point class --- That being said, I can't think of a strong use case. If you care enough to add a docstring, you're probably making a type used repeatedly in the code. In that case, you can just use the verbose parameter and paste the definition into your code. I'm still in favor of it, simply because it would be a nice parameter to have, but I don't think it's important. -- nosy: +afoglia ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9391 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9392] 2.7 framework install doesn't create 2to3-2.7
New submission from Ronald Oussoren ronaldousso...@mac.com: Framework installs ensure that all tools and scripts are installed using versioned names (as well as the regular names) to make it easier to use multiple versions of python side by side. The 2.7 tree fails to create a versioned name of the 2to3 tool (while 2.6, 3.1 and 3.2 do) I have a patch and will commit that once I've tested it. -- assignee: ronaldoussoren components: Macintosh messages: 111721 nosy: ronaldoussoren priority: normal severity: normal status: open title: 2.7 framework install doesn't create 2to3-2.7 versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9392 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9391] Allow docstrings on dicts and named tuples outside of functions or classes.
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Thanks for the idea and quick reply. In view of the discussion, I'm going to reject the feature request. The trade-off in added API complexity isn't worth the benefit especially given that subclassing already provides an option: class Point(namedtuple('Point', 'x y z')): Planet location with Sun as center point and x-axis passing through Alpha Centauri and distance measured in light seconds -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9391 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5136] Deprecating (and removing) globalcall, merge and globaleval
Mark Lawrence breamore...@yahoo.co.uk added the comment: Is it still possible to get this into 3.2 and have them remove in 3.3? -- type: - feature request versions: +Python 3.2 -Python 2.7, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5136 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4849] instantiating and populating xml.dom.minidom.Element is cumbersome
Mark Lawrence breamore...@yahoo.co.uk added the comment: I think this could be sneaked into 3.2 if needed, but is it more work than the benefits actually deliver in the real world? -- stage: - needs patch type: behavior - feature request versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4849 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1479626] Uninstall does not clean registry
Mark Lawrence breamore...@yahoo.co.uk added the comment: Could one of our windows gurus coment on this please. -- nosy: +brian.curtin, tim.golden versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1479626 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1778410] removeTest() method patch for unittest.TestSuite
Mark Lawrence breamore...@yahoo.co.uk added the comment: As nobody has responded to msg53044 or msg108206 I'll close this unless there are any objections. -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1778410 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1776674] glob.glob inconsistent
Mark Lawrence breamore...@yahoo.co.uk added the comment: As no response to msg108627 I'll close this unless there are any objections. -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1776674 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1776674] glob.glob inconsistent
Éric Araujo mer...@netwok.org added the comment: Some bugs take a long time to get fixed. I agree that three years is not a good score, but this really needs a test in order to get closed or fixed, so I’m reopening. Maybe the OP or you could add a test? :) -- nosy: +merwok status: pending - open versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1776674 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7825] test_threadsignals leaks references
Florent Xicluna florent.xicl...@gmail.com added the comment: I did not commit the patch because I'm not sure it is the right approach. I need someone else to comment on this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7825 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3966] Win32ErrorTests from test_os.py
Mark Lawrence breamore...@yahoo.co.uk added the comment: Already fixed in 2.7, 3.1 and 3.2. -- resolution: - out of date stage: - committed/rejected status: open - closed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3966 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3966] Win32ErrorTests from test_os.py
Éric Araujo mer...@netwok.org added the comment: Nice catch Roumen. Mark, can you tell which revisions the bug was fixed in? (writing “rNNN” or “rev NNN” will generate appropriate links) Thanks. -- nosy: +merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3966 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1778410] removeTest() method patch for unittest.TestSuite
Éric Araujo mer...@netwok.org added the comment: Michael, can you say if the feature request is accepted or rejected? -- nosy: +merwok stage: unit test needed - status: pending - open versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1778410 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4770] binascii module, inconsistent behavior: some functions accept unicode string input
Florent Xicluna florent.xicl...@gmail.com added the comment: Fixed with r83182. -- assignee: - flox resolution: - fixed stage: patch review - committed/rejected status: open - closed versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4770 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8966] ctypes: remove implicit conversion between unicode and bytes
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8966 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9294] Dead code in Objects/object.c
Antoine Pitrou pit...@free.fr added the comment: Thank you! The patch was committed in r83184 (py3k) and r83185 (3.1). -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9294 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9378] Make python -m pickle do something useful
Antoine Pitrou pit...@free.fr added the comment: I haven't tested, but it looks good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9378 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9301] urllib.quote(None) returns None in 2.7 (raised TypeError before)
Florent Xicluna florent.xicl...@gmail.com added the comment: For 3.2, there's some other corner cases which are not covered by the patch. Example: unquote(()) unquote({}) See attached patch. -- keywords: +patch stage: committed/rejected - commit review status: closed - open versions: +Python 3.2 -Python 2.7 Added file: http://bugs.python.org/file18221/issue9301_unquote.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9301 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9246] os.getcwd() hardcodes max path len
Antoine Pitrou pit...@free.fr added the comment: It's not ok to call PyMem_* functions when the GIL is released. You should only release the GIL around the call to the system getcwd(). I suppose that Python has a faster memory allocator, or that it has better checks when compiled with pydebug? In this case it doesn't really make a difference, since all allocations larger than 256 bytes are delegated to the system allocator. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9246 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3966] Win32ErrorTests from test_os.py
Mark Lawrence breamore...@yahoo.co.uk added the comment: Éric please see R69364. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3966 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3966] Win32ErrorTests from test_os.py
Éric Araujo mer...@netwok.org added the comment: Thanks. I trust you that the other branches are fixed too; in future messages on other bugs reports, kindly include all revisions involved. I’ve learned that Roundup does not recognize an upper-case R (have I already said I hate implicit markup?). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3966 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9354] file_wrapper fails to provide getsockopt()
Changes by Łukasz Langa luk...@langa.pl: Removed file: http://bugs.python.org/file18149/issue9354.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9354 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1778410] removeTest() method patch for unittest.TestSuite
Michael Foord mich...@voidspace.org.uk added the comment: I'm sympathetic to the feature request. I think that the way tests identify themselves will change (improve) to accommodate the new extension machinery. I would like to leave this feature request open for the moment and revisit it again once the extension machinery is in place. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1778410 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9354] file_wrapper fails to provide getsockopt()
Łukasz Langa luk...@langa.pl added the comment: Patch updated to conform with the new test layout by Ezio Melotti. Implementation now also doesn't use assertions but regular exceptions. -- Added file: http://bugs.python.org/file18222/issue9354.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9354 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9354] file_wrapper fails to provide getsockopt()
Éric Araujo mer...@netwok.org added the comment: Looks good to me. -- nosy: +merwok stage: - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9354 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9172] zipfile.extractall always raises an OSError after successfully unzipping all files
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +amaury.forgeotdarc, ezio.melotti versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9172 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7447] Sum() doc and behavior mismatch
Leonhard Vogt leonhard.v...@gmx.ch added the comment: another patch: - moved string case to first position, i think it's the most important. - reworded (shortened) list case. - wrapped for 80 caracter lines. still using itertools.itertools.chain.from_iterable as mentioned in previous message. I missed georgs use of ~ in the link, but i think its clearer to mention the full name of the function anyway. -- Added file: http://bugs.python.org/file18223/functions.rst.patch4.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7447 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7825] test_threadsignals leaks references
Antoine Pitrou pit...@free.fr added the comment: I haven't seen test_threadsignals leaking, either on 3.1 or 3.2. Was it a transient problem? Note that if you want for test-specific threads to end, you can use the reap_threads() utility from the test.support module. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7825 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6213] Incremental encoder incompatibility between 2.x and py3k
Antoine Pitrou pit...@free.fr added the comment: The patch looks ok to me (I suppose you have tested it). -- versions: -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6213 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7825] test_threadsignals leaks references
Florent Xicluna florent.xicl...@gmail.com added the comment: Now it's fixed for 2.7 with r83187. (thanks for the hint, Antoine) No issue on 3.x, AFAICT. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7825 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9378] Make python -m pickle do something useful
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- resolution: - accepted stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9378 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9378] Make python -m pickle do something useful
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Committed in r83188. -- stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9378 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7447] Sum() doc and behavior mismatch
Ezio Melotti ezio.melo...@gmail.com added the comment: You could also use start=0 in the signature. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7447 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7962] Demo and Tools need to be tested and pruned
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: It looks like turtle was not the best example for msg111682 because it is already in Lib and python -m turtle runs demo. I am not sure what the relationship between Demo/turtle and the turtle module is. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7962 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8966] ctypes: remove implicit conversion between unicode and bytes
STINNER Victor victor.stin...@haypocalc.com added the comment: I commited both patches to 3.2, but I splitted them in a different way: - r83191 fixes tests (remove implicit conversion) - r83195 removes the implicit conversion in ctypes So it's easier to review the commits and revert the second commit. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8966 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1170] shlex have problems with parsing unicode
R. David Murray rdmur...@bitdance.com added the comment: Alexander: the more or less is on the less side when dealing with non-ASCII letters, I think. See my msg109292 and your own followups. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1170 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9389] Traceback: Exception Shows Code that's On-Disk (Not in memory)
R. David Murray rdmur...@bitdance.com added the comment: Yes, this is the way it works. There is no copy of the lines kept in memory, the only lines that can be displayed in the traceback are the ones currently on disk. Although your speaking about a script is a bit confusing: if you are running a script from the command line, then the update to the source file should be noticed and the code reinterpreted. I'm guessing you aren't running a standalone script, but are running and editing something out of an interpreter session that doesn't restart. If this is correct then my statement above applies. If not, you can give more details, but I doubt that there is a real python bug here so I'm closing the issue. It can always be reopened if it turns out I'm wrong. -- nosy: +r.david.murray resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9389 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8991] PyArg_Parse*() functions: reject discontinious buffers
STINNER Victor victor.stin...@haypocalc.com added the comment: Commited to 3.2 (r83197). -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8991 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8776] Bytes version of sys.argv
STINNER Victor victor.stin...@haypocalc.com added the comment: no byte-oriented representation of the command line is readily available. Why not using the following recipe? encoding = locale.getpreferredencoding() sys.argvb = [arg.decode(encoding, 'surrogateescape') for arg in argv] -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8776 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1170] shlex have problems with parsing unicode
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: David, What do you think about attached patch? Would that be a change in the more direction? -- Added file: http://bugs.python.org/file18224/issue1170.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1170 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1170] shlex have problems with parsing unicode
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I am adding MvL to nosy. Martin, I believe you are the ultimate authority on how to tokenize a unicode stream. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1170 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8776] Bytes version of sys.argv
STINNER Victor victor.stin...@haypocalc.com added the comment: You should read .encode(), not .decode() :-/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8776 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8725] Python3: use ASCII for the file system encoding on initfsencoding() failure
STINNER Victor victor.stin...@haypocalc.com added the comment: I tried the patch on my import_unicode branch and it doesn't work if the locale encoding is not ASCII (as the current code doesn't work if the locale encoding is not UTF-8, #8611). If Py_FileSystemUnicodeEncoding is NULL: PyUnicode_EncodeFSDefault() should use mbcstowcs() and PyUnicode_DecodeFSDefault() should use wcstombcs(). They may reuse _Py_wchar2char() and _Py_char2wchar(). ascii should be used in initfsencoding(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8725 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3299] Direct calls to PyObject_Del/PyObject_DEL are broken for --with-pydebug
STINNER Victor victor.stin...@haypocalc.com added the comment: I will open new issues for the two remaining patches. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3299 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6213] Incremental encoder incompatibility between 2.x and py3k
STINNER Victor victor.stin...@haypocalc.com added the comment: The patch looks ok to me Ok, commited to 2.7 (r83198). (I suppose you have tested it) I ran test_io which does test the incremental encoders. -- I'm not brave enough to commit it to 2.6 (test_io in 2.6 doesn't use incremental encoders). -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6213 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9389] Traceback: Exception Shows Code that's On-Disk (Not in memory)
Guy g...@openmail.cc added the comment: I was running a script that I was editing, and, after making changes, the code wasn't reinterpreted, but listed the line that the error occured on (I had corrected the error on the file that was on disk, but yet, Python didn't reinterpret the code). I'm guessing you aren't running a standalone script, but are running and editing something out of an interpreter session that doesn't restart - do you mean that it's assumed I will restart the session after a change to the code? Judging by the data the traceback shows, wouldn't the results of the traceback/exception be misleading, citing a line of Python code on disk that was interpreted differently in memory? -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9389 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6213] Incremental encoder incompatibility between 2.x and py3k
STINNER Victor victor.stin...@haypocalc.com added the comment: I'm not brave enough to commit it to 2.6 (test_io in 2.6 doesn't use incremental encoders) Oh, I just remembered that I choosed to fix this issue to be able to backport #5006 to 2.6 :-) So r83199 is the incremental encoder fix for 2.6, and r83200 is the BOM fix for the io library. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6213 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5006] Duplicate UTF-16 BOM if a file is open in append mode
STINNER Victor victor.stin...@haypocalc.com added the comment: I fixed #6213 in 2.6 and 2.7, and so it's now possible to backport this fix to 2.6 = r83200 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5006 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9246] os.getcwd() hardcodes max path len
STINNER Victor victor.stin...@haypocalc.com added the comment: New version of the patch avoiding PyMem_*() functions to avoid a possible race condition (issue with the GIL). -- Added file: http://bugs.python.org/file18225/os_getcwd_buffer-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9246 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9246] os.getcwd() hardcodes max path len
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file18169/os_getcwd_buffer.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9246 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1813] Codec lookup failing under turkish locale
STINNER Victor victor.stin...@haypocalc.com added the comment: There is also a locale normalization function in unicodeobject.c: normalize_encoding(). This function uses if (ISUPPER(*e)) *l++ = TOLOWER(*e++); which uses the Python, *locale-independent*, implementation of ctype. We should maybe use the ISUPPER / TOLOWER in codecs.c. Anyway, a function should be fixed, but I don't know which one :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1813 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names
STINNER Victor victor.stin...@haypocalc.com added the comment: I like the idea of using the PEP 383 for hostnames, but I don't understand the relation with IDNA (maybe because I don't know this encoding). +this leaves IDNA ASCII-compatible encodings in ASCII +form, but converts any non-ASCII bytes in the hostname to the Unicode +lone surrogate codes U+DC80...U+DCFF. What is an IDNA ASCII-compatible encoding? -- ascii-surrogateescape.diff: - I don't like unicode_from_hostname() name: decode_hostname() would be better. - It doesn't patch the doc and so cannot be applied alone. It doesn't matter, it's better to apply both patches at the same time. But thanks to have splitted them, it's easier to review them :-) try-surrogateescape-first.diff: - hostname_to_bytes() should be called encode_hostname() - if (!PyErr_ExceptionMatches(PyExc_UnicodeError)): you should catch UnicodeEncodeError here - if this is not possible, :exc:`UnicodeError` is raised.: is it an UnicodeEncodeError? - use PyUnicode_AsEncodedString() instead of PyUnicode_AsEncodedObject(): it's faster for ASCII and ensure that the result is a bytes object (so you don't need to re-check the type) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9377 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9315] The trace module lacks unit tests
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I am attaching a patch, issue9315-trace-fix.diff, that fixes a py3k bug exposed by issue9315.1-py3k.patch tests. One of the 3.x changes that caused the failure was that frames now have a __doc__ attribute and cannot be distinguished from functions. I replaced the hasattr(f, __doc__) with hasattr(f, __annotations__), but I wonder if it would be better to use something like isinstance(f, types.FunctionType) there. Eli, in order to test the trace module more thoroughly, you need to add generators, list and set comprehensions and instance, class, and static methods to your fake module and test tracing of their execution. -- Added file: http://bugs.python.org/file18226/issue9315-trace-fix.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9315 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9389] Traceback: Exception Shows Code that's On-Disk (Not in memory)
R. David Murray rdmur...@bitdance.com added the comment: Yes, when you change the code on disk, you must restart the Python interpreter in order for it to see those changes. And as I said, the source code is never held in memory, so the only source code the traceback can show is what is on disk. This is just how Python works, it is not a bug. To learn more about this, you should ask questions on the python-list mailing list. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9389 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8776] Bytes version of sys.argv
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8776 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9301] urllib.quote(None) returns None in 2.7 (raised TypeError before)
Ezio Melotti ezio.melo...@gmail.com added the comment: There are a couple of things that I don't like in the patch: 1) raising a TypeError with a proper message seems better than raising an AttributeError (maybe check if not isinstance(string, (str, bytes)): raise TypeError(...)?); 2) from the snippet I see in the patch, ISTM that unquote_to_bytes accepts both bytes and strings and returns always bytes but unquote might return both bytes and strings (I'm not aware of the design decisions behind these API, but this looks at least inconsistent and maybe wrong (shouldn't it only accept one type?)). -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9301 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7330] PyUnicode_FromFormat segfault
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7330 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8776] Bytes version of sys.argv
Martin v. Löwis mar...@v.loewis.de added the comment: Using that approach would work on POSIX systems. Another problem I see is synchronizing the two. If some function strips arguments from sys.argv (because it has completed processing), sys.argvb would still keep the arguments. Of course, this could be fixed by having sys.argvb be a dynamic list (i.e. a sequence object) instead. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8776 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com