[issue2005] posixmodule expects sizeof(pid_t/gid_t/uid_t) <= sizeof(long)

2012-10-29 Thread Petri Lehtinen
Petri Lehtinen added the comment: Serhiy Storchaka wrote: > This can be done in compile time. Something like: > > if ((uid_t)-1 > 0) ... Ah, neat. I would have expected that to issue a compiler warning, though, because the comparison is always true if the type is unsigned, but at least gcc do

[issue8913] Document that datetime.__format__ is datetime.strftime

2012-10-29 Thread Heikki Partanen
Heikki Partanen added the comment: Grammar fixed -- Added file: http://bugs.python.org/file27791/issue8913-3.patch ___ Python tracker ___ _

[issue15436] __sizeof__ is not documented

2012-10-29 Thread Michael Dorman
Changes by Michael Dorman : -- nosy: +mjdorma ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue15436] __sizeof__ is not documented

2012-10-29 Thread Stephen Tonkin
Changes by Stephen Tonkin : -- nosy: +sptonkin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16278] os.rename documentation slightly inaccurate

2012-10-29 Thread Todd Rovito
Todd Rovito added the comment: Over the weekend I verified the test cases are incomplete for Python 3.4. Inside of Lib/test/test_os.py is a class FileTests that contains a single function test_rename which seems to only check to make sure that the reference count for the first argument is not

[issue13266] Add inspect.unwrap(f) to easily unravel "__wrapped__" chains

2012-10-29 Thread Aaron Iles
Aaron Iles added the comment: I've updated the patch for the current default branch (to be Python 3.4) and added documentation to the inspect module for the new unwraps function. Functionally unwraps and it's tests are unchanged. -- Added file: http://bugs.python.org/file27790/p13266-2

[issue15478] UnicodeDecodeError on OSError on Windows with undecodable (bytes) filename

2012-10-29 Thread STINNER Victor
STINNER Victor added the comment: The commit is incomplete, there are some remaining functions that need to be patched: here is a new (untested) patch for more Windows functions. -- Added file: http://bugs.python.org/file27789/oserror_filename_windows.patch

[issue12890] cgitb displays tags when executed in text mode

2012-10-29 Thread Michael Dorman
Michael Dorman added the comment: Patch (p12890-2.diff) successfully tested on Windows 7 64. No regressions. -- nosy: +mjdorma ___ Python tracker ___

[issue16330] Use surrogate-related macros

2012-10-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 812f5c379188 by Victor Stinner in branch 'default': Issue #16330: Fix compilation on Windows http://hg.python.org/cpython/rev/812f5c379188 -- ___ Python tracker __

[issue15478] UnicodeDecodeError on OSError on Windows with undecodable (bytes) filename

2012-10-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 27a3b19ee792 by Victor Stinner in branch 'default': Issue #15478: Fix compilation on Windows http://hg.python.org/cpython/rev/27a3b19ee792 -- ___ Python tracker __

[issue12890] cgitb displays tags when executed in text mode

2012-10-29 Thread Aaron Iles
Aaron Iles added the comment: Patch successfully tested on Mac OSX 10.8. No regressions. -- nosy: +aliles ___ Python tracker ___ ___ P

[issue12890] cgitb displays tags when executed in text mode

2012-10-29 Thread Stephen Tonkin
Stephen Tonkin added the comment: Uploaded a patch which fixes the failing on Windows 7. It was essentially an issue with the Windows path returned by temp_dir() containing unescaped backslashes. A repr() fixed this. -- nosy: +sptonkin Added file: http://bugs.python.org/file27788/p1289

[issue15478] UnicodeDecodeError on OSError on Windows with undecodable (bytes) filename

2012-10-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 67d69f943b7f by Victor Stinner in branch 'default': Issue #15478: Raising an OSError doesn't decode or encode the filename anymore http://hg.python.org/cpython/rev/67d69f943b7f -- nosy: +python-dev ___ Py

[issue16311] Use _PyUnicodeWriter API in text decoders

2012-10-29 Thread STINNER Victor
STINNER Victor added the comment: "Soon I'll post a patch, which speeds up unicode-escape and raw-unicode-escape decoders to 1.5-3x. Also there are not yet reviewed patches for UTF-32 (issue14625) and charmap (issue14850) decoders. Will be merge conflicts." codecs_writer.patch doesn't change t

[issue14625] Faster utf-32 decoder

2012-10-29 Thread STINNER Victor
STINNER Victor added the comment: > I suggest apply patch A to 3.3 as it fixes performance > regression (2x) and is very simple. ASCII and UTF-8 are the two most common codecs in the world, so it's justified to have heavily optimized encoders and decoders. I don't know any application using UT

[issue16335] Integer overflow in unicode-escape decoder

2012-10-29 Thread STINNER Victor
STINNER Victor added the comment: If I understood correctly, (b'\\N{' + b'x' * (INT_MAX+1)) + '}').decode('unicode-decode') may crash? Did you try such string? -- ___ Python tracker ___

[issue16330] Use surrogate-related macros

2012-10-29 Thread STINNER Victor
STINNER Victor added the comment: "But not all surrogate-related code uses this macros. I suppose this is done inadvertently, somewhere the macro and naked code used in neighboring lines." Yeah, I forgot to use the new macros in these files. Thanks for your patch, I applied it. I also fixed *

[issue16330] Use surrogate-related macros

2012-10-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 13dd8199c112 by Victor Stinner in branch 'default': Issue #16330: Use surrogate-related macros http://hg.python.org/cpython/rev/13dd8199c112 -- nosy: +python-dev ___ Python tracker

[issue16310] zipfile: allow surrogates in filenames

2012-10-29 Thread STINNER Victor
STINNER Victor added the comment: > The use-case is building Python distributions containing > non-ASCII filenames. It's possible to distribute Python packages with non-ASCII filenames. > So yes, I have Latin-1 bytes on the filesystem, > even though my locale is UTF-8. You system is not config

[issue16322] time.tzname on Python 3.3.0 for Windows is decoded by wrong encoding

2012-10-29 Thread STINNER Victor
STINNER Victor added the comment: "Instead of trying to bet what is the correct encoding, it would be simpler (and safer) to read the Unicode version of the tzname array: StandardName and DaylightName of GetTimeZoneInformation()." GetTimeZoneInformation() formats correctly timezone names, but

[issue16322] time.tzname on Python 3.3.0 for Windows is decoded by wrong encoding

2012-10-29 Thread STINNER Victor
STINNER Victor added the comment: According to CRT source code: - tzset() uses WideCharToMultiByte(lc_cp, 0, tzinfo.StandardName, -1, tzname[0], _TZ_STRINGS_SIZE - 1, NULL, &defused) with lc_cp = ___lc_codepage_func(). - wcsftime("%z") and wcsftime("%Z") use _mbstowcs_s_l() to decode the time

[issue12021] mmap.read requires an argument

2012-10-29 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue16358] Enhancement for mmap_read: Consistency with standard file read

2012-10-29 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue16197] Several small errors in winreg documentation

2012-10-29 Thread Brian Curtin
Brian Curtin added the comment: Pushed fixes for 3.2+ Thanks for the patch! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue16197] Several small errors in winreg documentation

2012-10-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset b9e14b89199b by Brian Curtin in branch '3.2': Fix #16197. Update docstrings and documentation to match winreg code. http://hg.python.org/cpython/rev/b9e14b89199b -- nosy: +python-dev ___ Python tracker <

[issue16322] time.tzname on Python 3.3.0 for Windows is decoded by wrong encoding

2012-10-29 Thread STINNER Victor
STINNER Victor added the comment: See also the issue #836035. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16345] dict.fromkeys() assumes 'self' is empty

2012-10-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: That's still inconsistent, though, since we wouldn't complain if __new__ returns a user defined object. -- ___ Python tracker ___ __

[issue16361] HTTPS/TLS Problem in Python 3.3

2012-10-29 Thread Phil
Phil added the comment: You will notice that in the Python 3.3.0 version after packet 54 (Client Hello), there seems to be no response from the server. Today, I was able to verify that the code worked under Python 3.2.3. -- ___ Python tracker

[issue16361] HTTPS/TLS Problem in Python 3.3

2012-10-29 Thread Phil
Changes by Phil : Added file: http://bugs.python.org/file27787/py3-filtered.pcapng ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue16361] HTTPS/TLS Problem in Python 3.3

2012-10-29 Thread Phil
Changes by Phil : Added file: http://bugs.python.org/file27786/py2-filtered.pcapng ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue16361] HTTPS/TLS Problem in Python 3.3

2012-10-29 Thread Phil
New submission from Phil: I had converted some code for a scraper from 2.7.3 to 3.3.0 on Windows 7 and suddenly the code stopped working. Now the https fetch results in: Traceback (most recent call last): File "D:\Users\Phil\Desktop\demo.py", line 67, in page=getWebData() File "D:\User

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2012-10-29 Thread Václav Šmilauer
Václav Šmilauer added the comment: I would like to second Ralf here. I am having the same issue with mingw's gcc 4.7 and -std=c++11. -- nosy: +eudoxos ___ Python tracker ___ ___

[issue16357] SSLSocket created from SSLContext.wrap_socket doesn't include cert/keyfile

2012-10-29 Thread Jeff McNeil
Jeff McNeil added the comment: Updated to pass in the parent context only actually, as it doesn't look like all of the attributes on SSLSocket will be set if a context was initially passed in. -- Added file: http://bugs.python.org/file27784/ssl_context_2.patch

[issue16357] SSLSocket created from SSLContext.wrap_socket doesn't include cert/keyfile

2012-10-29 Thread Jeff McNeil
Jeff McNeil added the comment: Ak! Yes, cut and paste error. Python 3.4.0a0 (default:57a33af85407, Oct 27 2012, 21:26:30) [GCC 4.4.3] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import ssl >>> c = ssl.SSLContext(ssl.PROTOCOL_SSLv23) >>> c.load_c

[issue2005] posixmodule expects sizeof(pid_t/gid_t/uid_t) <= sizeof(long)

2012-10-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Checking whether a type is unsigned in configure.ac might be cumbersome... This can be done in compile time. Something like: if ((uid_t)-1 > 0) ... -- ___ Python tracker ___

[issue16268] dir(closure) does not find __dir__

2012-10-29 Thread Bradley Froehle
Bradley Froehle added the comment: Note that we fail to initialize PyCell_Type in all versions of Python, even if there aren't any visible ramifications in earlier versions. -- ___ Python tracker _

[issue16268] dir(closure) does not find __dir__

2012-10-29 Thread Bradley Froehle
Bradley Froehle added the comment: This rather obscure bug seems to be caused by a failure to properly initialize PyCell_Type. Running with GDB, we see that _PyType_Lookup(, "__dir__") fails in: /* Look in tp_dict of types in MRO */ mro = type->tp_mro; /* If mro is NULL, the typ

[issue16357] SSLSocket created from SSLContext.wrap_socket doesn't include cert/keyfile

2012-10-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't understand your code snippet: you don't seem to wrap the socket anywhere (paste error?). As for the patch, it would be nice to add a corresponding test in Lib/test/test_ssl.py. -- nosy: +pitrou stage: -> patch review type: -> behavior version

[issue16354] Remember python version choice on docs.python.org

2012-10-29 Thread Chris Jerdonek
Chris Jerdonek added the comment: Or set a bookmark. :) -- nosy: +chris.jerdonek ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue8913] Document that datetime.__format__ is datetime.strftime

2012-10-29 Thread Heikki Partanen
Heikki Partanen added the comment: Thanks for the comments, Eric! I reworded the docs and improved the examples too (being stuck in 2.6 I didn't even know about the cool autonumbering :) -- Added file: http://bugs.python.org/file27782/issue8913-2.patch

[issue2005] posixmodule expects sizeof(pid_t/gid_t/uid_t) <= sizeof(long)

2012-10-29 Thread Petri Lehtinen
Petri Lehtinen added the comment: Checking whether a type is unsigned in configure.ac might be cumbersome... -- ___ Python tracker ___

[issue15916] change doctest DocTestSuite not to raise ValueError if no docstrings

2012-10-29 Thread Petri Lehtinen
Petri Lehtinen added the comment: +for key in vars(subnamespace): +setattr(namespace, key, getattr(subnamespace, key)) There might be even more clever ways to achieve this, but what about at least saying "for key, value in vars(subnamespace).items()", and then using the valu

[issue9351] argparse set_defaults on subcommands should override top level set_defaults

2012-10-29 Thread Petri Lehtinen
Petri Lehtinen added the comment: +for key in vars(subnamespace): +setattr(namespace, key, getattr(subnamespace, key)) There might be even more clever ways to achieve this, but what about at least saying "for key, value in vars(subnamespace).items()", and then using the valu

[issue15916] change doctest DocTestSuite not to raise ValueError if no docstrings

2012-10-29 Thread Petri Lehtinen
Petri Lehtinen added the comment: And that comment was meant for totally separate issue, sorry. -- ___ Python tracker ___ ___ Python-b

[issue14897] struct.pack raises unexpected error message

2012-10-29 Thread Petri Lehtinen
Petri Lehtinen added the comment: Applied, thanks! -- nosy: +petri.lehtinen resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue16336] Check input in surrogatepass error handler

2012-10-29 Thread Philip Jenvey
Philip Jenvey added the comment: Thanks for picking this and the warning/slowdown up, Serhiy. The patch LGTM, for whatever that's worth =] -- ___ Python tracker ___

[issue14897] struct.pack raises unexpected error message

2012-10-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 626ed0e06fd6 by Petri Lehtinen in branch '2.7': #14897: Enhance error messages of struct.pack and struct.pack_into http://hg.python.org/cpython/rev/626ed0e06fd6 New changeset a555bd4026b0 by Petri Lehtinen in branch '3.2': #14897: Enhance error mess

[issue16262] srcdir != builddir builds fail, if hg is not installed

2012-10-29 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- assignee: -> rosslagerwall nosy: +rosslagerwall resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.2, Python 3.4 ___ Python tracker __

[issue16345] dict.fromkeys() assumes 'self' is empty

2012-10-29 Thread Armin Rigo
Armin Rigo added the comment: Joke apart, you could check and complain if the object returned is an instance of 'dict' and is not empty. Otherwise just accept it. I think complaining is better than picking either of the two behaviors in this case. --

[issue16345] dict.fromkeys() assumes 'self' is empty

2012-10-29 Thread Armin Rigo
Armin Rigo added the comment: In case of doubt, see the source code of PyPy :-) w_dict = space.call_function(w_type) for w_key in space.listview(w_keys): space.setitem(w_dict, w_key, w_fill) (Seriously more compact.) No clear there... -- __

[issue16327] subprocess.Popen leaks file descriptors on os.fork() failure

2012-10-29 Thread Mark Gius
Mark Gius added the comment: I've also submitted the contributor form requested. -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue16327] subprocess.Popen leaks file descriptors on os.fork() failure

2012-10-29 Thread Mark Gius
Mark Gius added the comment: Here's more or less the same fix and test on 2.7. I jumped through the hoop to preserve the original exception and traceback even if os.close() raises an exception. This follows the 3.3 branch's cleanup behavior of silently suppressing errors in the cleanup code.

[issue16327] subprocess.Popen leaks file descriptors on os.fork() failure

2012-10-29 Thread Mark Gius
Mark Gius added the comment: Patch fixes and tests fd leak on Python 3.3. Test fails without fix, passes with fix. I found an existing test looking for fd leaks for another bug. Borrowed the verification bits from it. There were some other test failures when I ran the subprocess suite on my

[issue16354] Remember python version choice on docs.python.org

2012-10-29 Thread Georg Brandl
Georg Brandl added the comment: If you always want to end up on Python 2 docs, why don't you go to docs.python.org/2 in the first place? -- nosy: +georg.brandl ___ Python tracker __

[issue16262] srcdir != builddir builds fail, if hg is not installed

2012-10-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset c6787a4c544e by Ross Lagerwall in branch '3.2': Fix regression from issue #16262 http://hg.python.org/cpython/rev/c6787a4c544e New changeset b82a4f8a4c67 by Ross Lagerwall in branch '3.3': Merge with 3.2 for issue #16262 http://hg.python.org/cpython

[issue16355] inspect.getcomments() does not work in the interactive shell

2012-10-29 Thread R. David Murray
R. David Murray added the comment: Not a specific package, but a specific use case (assuming getcomments is in use at all :) Consider a program that uses getcomments to look for a pragma-like comment before a function, but one that is not critical to the program's function (perhaps it has to

[issue16355] inspect.getcomments() does not work in the interactive shell

2012-10-29 Thread Ezio Melotti
Ezio Melotti added the comment: Not sure if they can be considered "working" programs if the function fails silently. Do you have some specific example in mind? -- ___ Python tracker _

[issue8401] Strange behavior of bytearray slice assignment

2012-10-29 Thread Ezio Melotti
Ezio Melotti added the comment: The new patch further improve tests and error message, checking for both numbers and strings: >>> b = bytearray(b'fooo') >>> b[3:4] = 'foo' TypeError: can assign only bytes, buffers, or iterables of ints in range(0, 256) >>> b[3:4] = 5 TypeError: can assign o

[issue16350] zlib.Decompress.decompress() after EOF discards existing value of unused_data

2012-10-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is yet one memory management bug (with unconsumed_tail). flush() does not update unconsumed_tail and unused_data. >>> import zlib >>> x = zlib.compress(b'abcdefghijklmnopqrstuvwxyz') + b'0123456789' >>> dco = zlib.decompressobj() >>> dco.decompress(x, 1

[issue16360] argparse: comma in metavar causes assertion failure when formatting long usage message

2012-10-29 Thread Ben Gamari
New submission from Ben Gamari: argparse suffers from a failing assertion when formatting a long usage message with an option whose metavar contains a comma. This can be seen in the attached testcase, which fails with, Traceback (most recent call last): File "/home/ben/hi.py", line 24, in

[issue16345] dict.fromkeys() assumes 'self' is empty

2012-10-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: I wonder what the semantics should be. I would like to just clear the dictionary that is returned from __new__ but you're also allowed to return custom classes from __new__ which we might not know how to clear. -- __

[issue16348] Decimal.remainder_near documentation incorrect.

2012-10-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: LGTM -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue10782] Not possible to cross-compile due to poor detection of %lld support in printf

2012-10-29 Thread Ben Gamari
Changes by Ben Gamari : -- status: open -> languishing ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue16359] can't print figures 08 and 09

2012-10-29 Thread Ezio Melotti
Ezio Melotti added the comment: Those are invalid octal literals, since the digits 8 and 9 don't exist in octal. See http://docs.python.org/2/reference/lexical_analysis.html#grammar-token-octinteger -- nosy: +ezio.melotti resolution: -> invalid stage: -> committed/rejected status: ope

[issue16358] Enhancement for mmap_read: Consistency with standard file read

2012-10-29 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> mmap.read requires an argument ___ Python tracker _

[issue16359] can't print figures 08 and 09

2012-10-29 Thread jose gregorio fernandez trincado
New submission from jose gregorio fernandez trincado: In [2]: 09 File "", line 1 09 ^ SyntaxError: invalid token Using str() produce SyntaxError too. The same for 08. Figures like 01 and 02 produce the appropriate output. Hardware: Lenovo 3000 N200, 80Gb of HD, 4Gb of RAM, Core-Duo

[issue8401] Strange behavior of bytearray slice assignment

2012-10-29 Thread Ezio Melotti
Changes by Ezio Melotti : Added file: http://bugs.python.org/file2/issue8401-2.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue16355] inspect.getcomments() does not work in the interactive shell

2012-10-29 Thread R. David Murray
R. David Murray added the comment: If similar functions already raise, then changing it for 3.4 would be OK. But to change it for earlier versions would risk breaking working programs. -- ___ Python tracker _

[issue16338] pysnmp/asyncore - timeout ineffective?

2012-10-29 Thread Trenton Craig
Trenton Craig added the comment: So, in testing, we reset retries to 1 instead of 0, and on our ubuntu environment this allows it to function. So issue is not with timeout, but with the retries variable. -- ___ Python tracker

[issue16358] Enhancement for mmap_read: Consistency with standard file read

2012-10-29 Thread Elwyn Davies
New submission from Elwyn Davies: Enhancement requested for module mmap: Alter the interface of mmap.read from mmap.read(num) to mmap.read([num]) reading the whole file if no argument provided. The read function in the mmap module (Modules/mmapmodule.c) *requires* an argument whereas for the st

[issue16355] inspect.getcomments() does not work in the interactive shell

2012-10-29 Thread Ezio Melotti
Ezio Melotti added the comment: > After I thought about it some more I realized that changing > the behavior to raise an error would not be a good idea. Can you elaborate more? Failing silently doesn't seem much better than raising an error, especially if similar functions already raise. -

[issue16357] SSLSocket created from SSLContext.wrap_socket doesn't include cert/keyfile

2012-10-29 Thread Jeff McNeil
New submission from Jeff McNeil: mcjeff@martian:~/cpython$ ./python -V Python 3.4.0a0 When an SSLSocket is created via SSLContext.wrap_socket, it is passed a _context parameter directly. SSLSocket.__init__ sets self.context at this point, but it does not set self.keyfile or self.certfile. Ho

[issue16355] inspect.getcomments() does not work in the interactive shell

2012-10-29 Thread Marco Buttu
Marco Buttu added the comment: I saw there is the same lack of clarity in the doc of `inspect.getsource()`: >>> import inspect >>> print(inspect.getsource.__doc__) Return the text of the source code for an object. The argument may be a module, class, method, function, traceback, frame,

[issue16355] inspect.getcomments() does not work in the interactive shell

2012-10-29 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy nosy: +ezio.melotti stage: committed/rejected -> needs patch type: behavior -> enhancement versions: +Python 3.2 ___ Python tracker _

[issue16355] inspect.getcomments() does not work in the interactive shell

2012-10-29 Thread R. David Murray
R. David Murray added the comment: Yeah, this should be a doc bug. After I thought about it some more I realized that changing the behavior to raise an error would not be a good idea. -- assignee: -> docs@python components: +Documentation -Library (Lib) nosy: +docs@python ___

[issue15869] IDLE: Include .desktop file and icon

2012-10-29 Thread Dale E. Moore
Dale E. Moore added the comment: On Ubuntu 12.10 with Unity the task icon is a question mark. And when locked to launcher the button does not start idle. -- nosy: +DaleEMoore ___ Python tracker ___

[issue16356] cjson dose not decode \/ properly

2012-10-29 Thread Ezio Melotti
Ezio Melotti added the comment: This works fine with the standard json module. >>> json.loads(json.dumps('/')) '/' FWIW 'json' also has C accelerations. -- nosy: +ezio.melotti stage: -> committed/rejected ___ Python tracker

[issue16344] Traceback Internationalization Proposal

2012-10-29 Thread Ezio Melotti
Ezio Melotti added the comment: > "serious" developers? sorry but I think that is a unfortunate phrase > that goes against the Python Diversity Statement With "serious" I just mean anyone that wants to continue programming, as opposed as someone doing e.g. a one-off course at university (hence

[issue16356] cjson dose not decode \/ properly

2012-10-29 Thread Christian Heimes
Christian Heimes added the comment: cjson is a third party module and not part of Python's standard library. Please report the error to the author of the cjson package. Python 2.7 has a builtin json encoder and decoder. The package is called 'json'. http://docs.python.org/2.7/library/json.htm

[issue16356] cjson dose not decode \/ properly

2012-10-29 Thread Richard Delorenzi
New submission from Richard Delorenzi: This code produces the wrong result import cjson cjson.decode(cjson.encode('/')) It produces '\\/', it should produce '/' using /usr/lib/pymodules/python2.7/cjson.so cjson version 1.0.5-4build1 -- components: None messages: 174114 nosy: Richard.D

[issue16345] dict.fromkeys() assumes 'self' is empty

2012-10-29 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue16355] inspect.getcomments() does not work in the interactive shell

2012-10-29 Thread Marco Buttu
Marco Buttu added the comment: If inspect.getcomments() requires a source file to inspect, I think it would be better to indicate it in the doc. -- ___ Python tracker ___ __

[issue16355] inspect.getcomments() does not work in the interactive shell

2012-10-29 Thread R. David Murray
R. David Murray added the comment: Hmm. Reopening in case someone wants to see if we can generate an appropriate error message when there is no source file to inspect. -- status: closed -> open versions: +Python 2.7, Python 3.4 ___ Python tracker <

[issue16355] inspect.getcomments() does not work in the interactive shell

2012-10-29 Thread R. David Murray
R. David Murray added the comment: That's because inspecting source code requires that there be a source file to inspect. -- nosy: +r.david.murray resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue16312] New command line option supported by unittest.main() for running initialization code before tests

2012-10-29 Thread Vinay Sajip
Vinay Sajip added the comment: Not an actual problem (for me), and although the issue was opened for more general functionality, logging is the only specific use case that was actually cited. -- ___ Python tracker

[issue16350] zlib.Decompress.decompress() after EOF discards existing value of unused_data

2012-10-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: >From Nadeem Vawda's mail: > I wasn't suggesting that you try to resize the existing unused_data > object; I agree that this would be a bad idea. What I was thinking of > was something like this: > > size_t old_unused_size = PyBytes_GET_SIZE(self->unused_

[issue16355] inspect.getcomments() does not work in the interactive shell

2012-10-29 Thread Marco Buttu
New submission from Marco Buttu: The documentation for `inspect.getcomments()` says that it returns the "lines of comments immediately preceding an object's source code". It works fine for the comments that immediately preceded an object defined in a module: $ more foo.py import inspect # A d

[issue16312] New command line option supported by unittest.main() for running initialization code before tests

2012-10-29 Thread Michael Foord
Michael Foord added the comment: Is this logging specific issue an actual problem or a theoretical problem? It's not a problem I've ever seen (myself), nor the one the issue was opened for. -- ___ Python tracker _

[issue16354] Remember python version choice on docs.python.org

2012-10-29 Thread Wichert Akkerman
New submission from Wichert Akkerman: docs.python.org was recently change to redirect http://docs.python.org/ to http://docs.python.org/3/ , with an option to switch to documentation for a different version using both (why two ways?) a dropdown and links in the left column. Would it be possibl

[issue15650] PEP 3121, 384 refactoring applied to dbm module

2012-10-29 Thread Andrew Svetlov
Changes by Andrew Svetlov : Added file: http://bugs.python.org/file27774/Issue15650_v2.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue16290] PyComplex_AsCComplex should allow __complex__ to return float.

2012-10-29 Thread Mark Dickinson
Mark Dickinson added the comment: Jesús: see the first message. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue8604] Adding an atomic FS write API

2012-10-29 Thread Nick Coghlan
Nick Coghlan added the comment: Since it may not be clear from the rest of the thread, the os.replace() cross-platform atomic renaming building block was added in 3.3 (in #8828, which Victor linked above) Another stdlib use case now also exists in importlib (see http://hg.python.org/cpython/f