[issue18912] Intendation issue in example code in itertools.count documentation

2013-09-03 Thread Jeroen Van Goey
Changes by Jeroen Van Goey : -- hgrepos: -207 ___ Python tracker <http://bugs.python.org/issue18912> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18912] Intendation issue in example code in itertools.count documentation

2013-09-03 Thread Jeroen Van Goey
Jeroen Van Goey added the comment: Patch for Python 2.7.4 attached -- keywords: +patch Added file: http://bugs.python.org/file31571/2.7itertoolsmodule.c.patch ___ Python tracker <http://bugs.python.org/issue18

[issue18912] Intendation issue in example code in itertools.count documentation

2013-09-03 Thread Jeroen Van Goey
Jeroen Van Goey added the comment: Patch for Python 3.4.0a1 attached -- Added file: http://bugs.python.org/file31572/3.4itertoolsmodule.c.patch ___ Python tracker <http://bugs.python.org/issue18

[issue21929] Rounding properly

2014-07-07 Thread Jeroen de Jong
New submission from Jeroen de Jong: I ma trying to find a way to round correctly. So far I get unexpected results for some values. -- components: Windows files: Rounding.py messages: 222444 nosy: jeroen1225 priority: normal severity: normal status: open title: Rounding properly type

[issue20018] Replace dead URL with link to mirror

2013-12-18 Thread Jeroen Van Goey
New submission from Jeroen Van Goey: The header of a cookie file generated by _MozillaCookieJar.py contains a link to the spec: http://www.netscape.com/newsref/std/cookie_spec.html This URL no longer exists (redirects to the AOL homepage). Attached patch replaces the link with a mirror where

[issue20018] Replace dead URL with link to mirror

2013-12-18 Thread Jeroen Van Goey
Jeroen Van Goey added the comment: Added patch file for Python 3.3 -- Added file: http://bugs.python.org/file33197/cookiejar.diff ___ Python tracker <http://bugs.python.org/issue20

[issue29307] ModuleNotFoundError when using literal string interpolation with invalid format specifier

2017-01-18 Thread Jeroen Van Goey
New submission from Jeroen Van Goey: I installed Python 3.6 from J Fernyhough's PPA by doing sudo add-apt-repository ppa:jonathonf/python-3.6 sudo apt-get update sudo apt-get install python3.6 I made a string, using the new literal string interpolation, but I supplied an invalid f

[issue29307] ModuleNotFoundError when using literal string interpolation with invalid format specifier

2017-01-18 Thread Jeroen Van Goey
Jeroen Van Goey added the comment: Thanks Barry for your extensive explanation! -- ___ Python tracker <http://bugs.python.org/issue29307> ___ ___ Python-bug

[issue2718] Logging.basicConfig ignores level=0

2008-04-29 Thread Jeroen van der Ham
New submission from Jeroen van der Ham <[EMAIL PROTECTED]>: logging.basicConfig seems to ignore level=0: >>> import logging >>> logging.basicConfig(level=0) >>> logging.getLogger().getEffectiveLevel() 30 >>> import logging >>>

[issue37247] swap distutils build_ext and build_py commands to allow proper SWIG extension installation

2019-06-12 Thread Jeroen van den Hout
New submission from Jeroen van den Hout : Currently when building an extension which lists a SWIG interface (.i) file as a source file, SWIG creates the files correctly in the build_ext command. Unfortunately this command is run after the build_py command, so the python files (.py) created

[issue37247] swap distutils build_ext and build_py commands to allow proper SWIG extension installation

2019-06-12 Thread Jeroen van den Hout
Jeroen van den Hout added the comment: Well, if I look at the source code build_ext explicitly calls for SWIG to handle interface files. Also, in case of commands like 'pip install ', the build sequence is predefined anyways, unless you explicitly define your own sequence i

[issue37247] swap distutils build_ext and build_py commands to allow proper SWIG extension installation

2019-06-12 Thread Jeroen van den Hout
Jeroen van den Hout added the comment: I'm sorry, I read your comment completely wrong, so please disregard my previous comment. I would argue the sequence doesn't really matter that much for non SWIG packages, since those will install correctly no matter if the extensions are

[issue37247] swap distutils build_ext and build_py commands to allow proper SWIG extension installation

2019-06-13 Thread Jeroen van den Hout
Jeroen van den Hout added the comment: > Adding a separate build step for SWIG (then the order would be build_swig, > build_py, build_ext) would be safer and IMHO also more logical. I like this suggestion and contemplated it. However SWIG interface files are defined in Extension ins

[issue25554] memory leak (reference cycles) using re

2015-11-05 Thread Jeroen van der Heijden
New submission from Jeroen van der Heijden: When compiling a regular expression with groups (subpatterns), circular references are created. Here is an example to illustrate the problem: >>> import gc >>> import re >>> gc.disable() # disable garbage collector >

[issue25554] memory leak (reference cycles) using re

2015-11-05 Thread Jeroen van der Heijden
Jeroen van der Heijden added the comment: Thanks Serhiy, I totally agree with your solution. Using a list with subpattern widths is definitely better compared to using weakref. -- ___ Python tracker <http://bugs.python.org/issue25

[issue25566] asyncio reference cycles after ConnectionResetError

2015-11-06 Thread Jeroen van der Heijden
New submission from Jeroen van der Heijden: When a ConnectionResetError occurs, reference cycles are created due to __traceback__. As far as I can see there's no way to prevent this to happen since the event loop exception handler is not called for the following events: BrokenPipe

[issue2876] Write UserDict fixer for 2to3

2010-04-08 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: What's the consensus on this? I ask since I actually ran into code today that uses DictMixin and as such wasn't converted by the 2to3 tool. -- nosy: +asmodai ___ Python trac

[issue8374] Some locales are unsupported

2010-04-12 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: That nl_AW is an interesting one. Aruba is part of the Kingdom of the Netherlands, so in essence it should follow nl_NL. From what I can see that locale seems to be limited to (certain) Linux systems. I'll raise the issue with the CLDR gu

[issue7384] curses crash on FreeBSD

2010-04-15 Thread Jeroen Ruigrok van der Werven
Changes by Jeroen Ruigrok van der Werven : -- nosy: +asmodai ___ Python tracker <http://bugs.python.org/issue7384> ___ ___ Python-bugs-list mailing list Unsub

[issue7384] curses crash on FreeBSD

2010-04-15 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: For the record, this happens on FreeBSD 8 as well. It seems it is still the same bug as what I reported back in March 2009 on the Python-dev list. If you run the test stand-alone with ./python Lib/test/regrtest.py -uall test_curses it passes

[issue7384] curses crash on FreeBSD

2010-04-18 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Just to state the obvious: ncursesw is needed for wide character support (i.e. Unicode). Also, have you tried asking Thomas Dickey (dic...@invisible-island.net) about this? He might be able to give some clue about it since he's the main c

[issue7384] curses crash on FreeBSD

2010-04-23 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: I did some digging on my side, the fact you see ncurses referenced from readline is due to the build linking readline to libtermcap: cc -fstack-protector -shared -Wl,-x -o libreadline.so.8 -Wl,-soname,libreadline.so.8 `lorder readline.So

[issue7384] curses crash on FreeBSD

2010-04-27 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Stefan, I was emailing with Rong-En Fan, a FreeBSD committer, about this issue and he asked: "Basically, this is caused by a) our readline.so is linked against ncurses.so (via -ltermcap which is the same lib) b) wide-character en

[issue1821] configure.ac change for FreeBSD

2008-01-14 Thread Jeroen Ruigrok van der Werven
New submission from Jeroen Ruigrok van der Werven: FreeBSD has in its ports currently a change for Modules/_ctypes/libffi/ configure.ac that adds amd64-*-freebsd* next to x86_64. I have attached said patch (but updated to be a diff to trunk) and I hope it can be changed in trunk to minimize

[issue602245] os.popen() negative error code IOError

2008-01-19 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Current output on XP with 2.5.1: D:\>test.py Traceback (most recent call last): File "D:\test.py", line 12, in r.close() IOError: [Errno 0] Error Traceback (most recent call last): File "D:\test.py", line 20, in

[issue602245] os.popen() negative error code IOError

2008-01-19 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Using Facundo's attachment: D:\>using_subprocess.py D:\> Tracker <[EMAIL PROTECTED]> <http://bugs.py

[issue2079] UserDict documentation typo

2008-02-21 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Patch for against 2.6 trunk @ r60910. -- nosy: +asmodai Added file: http://bugs.python.org/file9476/userdict.rst.diff __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue2079] UserDict documentation typo

2008-02-21 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Patch against 2.5 trunk @ r60911. Added file: http://bugs.python.org/file9477/libuserdict.tex.diff __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue896199] Some Carbon modules missing

2008-02-22 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Is this not solved with the new documentation interface? It groups all Carbon modules under a collapsable tree element. See http://docs.python.org/dev/modindex.html under Carbon -- nosy: +asmodai, georg.brandl

[issue1569] Add VS CRT redist to the MSI installer

2008-02-25 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: As taken from http://blogs.msdn.com/astebner/ archive/2006/08/23/715755.aspx "Hi Didier - You should not try to install this vcredist package using a nested install. Performing nested installs causes problems with installing hotfixes fo

[issue1569] Add VS CRT redist to the MSI installer

2008-02-25 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: The hints that the vcredist cannot/should not be installed nested, but should be chained. The details on the full flags used/supported by the vcredist files. And the last one how to do the merge modules (and some other scenario's) way of a

[issue1569] Add VS CRT redist to the MSI installer

2008-02-28 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: OK, I played around a bit and created a setup project (.vdproj file). The relevant part for the merge modules is: "MergeModule" { "{CEE29DC0-9FBA-4B99-8D47-5BC643D9B626}:_8968169979C7478FA

[issue1569] Add VS CRT redist to the MSI installer

2008-02-29 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Hi Martin, yes, that's exactly what I am saying actually. :) This is the resulting file I created: Python26.msi Right now it only installs into C:\Python26 and puts python.exe, pythonw.exe and python26.dll there, but it is a start

[issue2246] itertools.groupby() leaks memory with circular reference

2008-03-06 Thread Jeroen Ruigrok van der Werven
New submission from Jeroen Ruigrok van der Werven: Quoting from my email to Raymond: In the Trac/Genshi community we've been tracking a bit obscure memory leak that causes us a lot of problems. Please see http://trac.edgewall.org/ticket/6614 and then http://genshi.edgewall.org/ticket/19

[issue2510] Bazaar ignore file

2008-03-29 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven <[EMAIL PROTECTED]> added the comment: Given how Bazaar is not an official choice for the repository adding this kind of thing will lead to a road to add such information for Hg and other VCSes as well in order to be fair to all. -- nosy: +a

[issue2510] Bazaar ignore file

2008-03-29 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven <[EMAIL PROTECTED]> added the comment: But isn't that Bazaar thing totally stand-alone from the SVN repository? What experimental branches are you talking about? __ Tracker <[EMAIL PROTECTED]> <http://bugs.

[issue2510] Bazaar ignore file

2008-04-01 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven <[EMAIL PROTECTED]> added the comment: Go ahead. I'm not a committer, merely a person on the side. __ Tracker <[EMAIL PROTECTED]> <http://bugs.

[issue2615] xml.dom.minidom documentation consistency and update

2008-04-11 Thread Jeroen Ruigrok van der Werven
New submission from Jeroen Ruigrok van der Werven <[EMAIL PROTECTED]>: xml.dom.minidom details three methods: writexml(), toxml(), toprettyxml(). Only one, toxml(), showed the optional encoding argument. In the documentation for writexml() the encoding argument is explained, but topre

[issue20570] Bundle pip 1.5.3 in Python 3.4rc2

2014-02-09 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Nick et al, currently trying b3 and using the bundled pip (1.5.2) to update the bundled setuptools from 2.1 to 2.2 on Windows 7 and I get the following. Any idea if this is still an issue with the newer versions (and thus might be relevant to

[issue20570] Bundle pip 1.5.3 in Python 3.4rc2

2014-02-09 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Yes, looks like it is just the email module: F:\Python33>Scripts\pip3.3.exe install -U setuptools Downloading/unpacking setuptools from https://pypi.python.org/packages/3.4/s/setuptools/setuptools-2.2-py2.py3-none-any.whl#

[issue20570] Bundle pip 1.5.3 in Python 3.4rc2

2014-02-16 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Just to confirm that I, indeed, did not run into problems any more with RC1 trying to upgrade setuptools. -- ___ Python tracker <http://bugs.python.org/issue20

[issue20757] 3.4rc2 Traceback on Windows compilation script

2014-02-23 Thread Jeroen Ruigrok van der Werven
New submission from Jeroen Ruigrok van der Werven: Just tried the rc2 MSI on Windows 7 x64. Go through the normal setup I always pick the Advanced option of compiling the .py files. In rc1 the script it spawns works as it should, with rc2 I see it pop up, have a Traceback before it quickly

[issue20757] 3.4rc2 Traceback on Windows compilation script

2014-02-23 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: This is, by the way, an upgrade install over rc1. Need to test a clean install at some point as well. Running the MSI with /L* gives me: Action 8:13:22: RemovePip. Action start 8:13:22: RemovePip. CustomAction RemovePip returned actual error

[issue20757] 3.4rc2 Traceback on Windows pip uninstall

2014-02-23 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Ah, this might be something we need to fix in the process of the installer. If you have a pip installed that got updated, the install will now fail due version mismatch. Updated the title. Traceback (most recent call last): File "F:\Pyt

[issue20757] 3.4rc2 Traceback on Windows pip uninstall

2014-02-24 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Nick, this resolves the installation issues for me at least. +1 -- ___ Python tracker <http://bugs.python.org/issue20

[issue1729742] Document effects of PY_SSIZE_T_CLEAN on argument parsing

2009-04-25 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: This seems to be present in c-api/arg.rst in trunk already. Candidate for closure after verifying it's been merged appropriately? -- nosy: +asmodai ___ Python tracker <http://bugs.py

[issue4385] Py_Object_HEAD_INIT in Py3k

2009-04-25 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: I added initial documentation for both PyObject_HEAD_INIT and PyVarObject_HEAD_INIT in r71874. The text currently reads: PyObject_HEAD_INIT(type)ΒΆ This is a macro which expands to initialization values for a new PyObject type. This macro

[issue2127] sqlite3 docs should mention utf8 requirement

2009-04-25 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: What do we want to do with this one, because it is now seems out of scope for documentation given the changes Gerhard implemented. -- nosy: +asmodai ___ Python tracker <http://bugs.python.

[issue1095821] The doc for DictProxy is missing

2009-04-25 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Currently in trunk the types implementation only defines: DictProxyType = type(TypeType.__dict__) This is also documented in library/types.rst as: types.DictProxyType The type of dict proxies, such as TypeType.__dict__. It's the

[issue1379804] HP-UX thread stack size needs to be increased

2009-04-25 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: There has been no patch forthcoming in 3-4 years. Should the possibility of a stack size increase for HP-UX be documented somewhere in the installation/build documentation so that this issue can finally be closed or do we want to fix configure

[issue2572] 3.0 pickle docs -- what about old-style classes?

2009-04-25 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: We want to document that old-style classes get converted into new-style classes and that in general this goes without problems, except for some corner cases such as containing a __slots__ directive? Or did I miss anything else? -- nosy

[issue4239] Email example should use SMTP.quit() rather than SMTP.close()

2009-04-25 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Thanks, committed in r71882. Georg, I guess this needs to be backported to 2.6 at least and we need to check what 3.x has. -- nosy: +asmodai ___ Python tracker <http://bugs.python.org/issue4

[issue4239] Email example should use SMTP.quit() rather than SMTP.close()

2009-04-25 Thread Jeroen Ruigrok van der Werven
Changes by Jeroen Ruigrok van der Werven : -- priority: -> low stage: -> committed/rejected ___ Python tracker <http://bugs.python.org/issue4239> ___ ___

[issue4385] Py_Object_HEAD_INIT in Py3k

2009-04-25 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Just to make it clear: I committed this to trunk, since it is relevant to that as well. We can always move the documentation over with minor tweaks. -- stage: needs patch -> commit review ___ Pyt

[issue4013] Python 2.6 Doc/tools folder bigger than in 2.6rc2

2009-04-25 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: I am not entirely sure, but I think part of the reason was that if the documentation needed to be built, it would need the snapshot at that time. Georg? Was it intentional? I consider this a low priority issue, but needs to be looked at whether

[issue5840] "Thread State and the Global Interpreter Lock" section of the docs doesn't cover TLS APIs

2009-04-25 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: This is at least relevant to 2.7, reflect this in the issue. Patch to remove the notion we don't support TLS yet. We will need to see where to add the current functions in the overall scheme of threading documentation. -- key

[issue4385] Py_Object_HEAD_INIT in Py3k

2009-04-25 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Mmm, depends on the case, I guess. The current implementation of the macros is hardcoded for the most part. Where it is variable I left the arguments in. I was following the example from the other macros and I guess that since this is the

[issue4129] C/API documentation: request for documentation of change to Py_ssize_t* arguments.

2009-04-25 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: How does this look as an initial idea? -- keywords: +patch nosy: +asmodai Added file: http://bugs.python.org/file13772/py_ssize_t-note.diff ___ Python tracker <http://bugs.python.org/issue4

[issue4129] C/API documentation: request for documentation of change to Py_ssize_t* arguments.

2009-04-25 Thread Jeroen Ruigrok van der Werven
Changes by Jeroen Ruigrok van der Werven : Removed file: http://bugs.python.org/file13772/py_ssize_t-note.diff ___ Python tracker <http://bugs.python.org/issue4

[issue4129] C/API documentation: request for documentation of change to Py_ssize_t* arguments.

2009-04-25 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Pure ignore. Let me adjust the patch. Do we prefer versionchanged before or after versionadded? I am guessing after versionadded so we get a better chronological view. Although there's something to be said for a reverse chronological vie

[issue4129] C/API documentation: request for documentation of change to Py_ssize_t* arguments.

2009-04-25 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Committed a first batch in r71910. -- ___ Python tracker <http://bugs.python.org/issue4129> ___ ___ Python-bug

[issue4129] C/API documentation: request for documentation of change to Py_ssize_t* arguments.

2009-04-25 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Fixed the slice stuff in r71915. -- ___ Python tracker <http://bugs.python.org/issue4129> ___ ___ Python-bug

[issue4129] C/API documentation: request for documentation of change to Py_ssize_t* arguments.

2009-04-25 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: OK, I went through the entire C API documentation and marked up every part that changed from int to Py_ssize_t in our documentation. -- resolution: -> accepted stage: -> committed/rejected status: open -&g

[issue3143] development docs waste a lot of horizontal space on left nav bar

2009-04-25 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: I assume this is relative to the resolution of a user's monitor. For me, using the current documentation it only takes about 1/8th - 1/9th of my width. -- nosy: +asmodai ___ Python tracker

[issue4239] Email example should use SMTP.quit() rather than SMTP.close()

2009-04-29 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Not that I saw. Merged to py3k and 2.6. -- resolution: -> accepted status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue4129] C/API documentation: request for documentation of change to Py_ssize_t* arguments.

2009-04-29 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Merged 2.6 and py3k what was appropriate. -- ___ Python tracker <http://bugs.python.org/issue4129> ___ ___ Pytho

[issue5738] multiprocessing example wrong

2009-04-29 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Garrett, I use FreeBSD myself too, so feel free to bounce anything my way. -- nosy: +asmodai ___ Python tracker <http://bugs.python.org/issue5

[issue3292] Position index limit; s.insert(i,x) not same as s[i:i]=[x]

2009-04-29 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Had this actually been brought up? -- nosy: +asmodai ___ Python tracker <http://bugs.python.org/issue3

[issue5337] Scanner class in re module undocumented

2009-04-29 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: So far effbot hasn't said anything about this. So Frederik, was it intended to be exposed or not? -- nosy: +asmodai ___ Python tracker <http://bugs.python.org/i

[issue5337] Scanner class in re module undocumented

2009-04-29 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: OK, clear, then I'll see what I can do. -- ___ Python tracker <http://bugs.python.org/issue5337> ___ ___

[issue1443504] locale.getpreferredencoding() dies when setlocale fails

2009-04-30 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Shouldn't the fallback be to setlocale(LC_CTYPE, "C") instead of silently passing, though? -- nosy: +asmodai ___ Python tracker <http://bugs.pytho

[issue1443504] locale.getpreferredencoding() dies when setlocale fails

2009-04-30 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: You don't want to completely nix the setlocale(LC_CTYPE, "") call though. The "" denotes to grab the native environment, in other words, to grab whatever the current user's LC_CTYPE environment variable is set to

[issue5894] Lookup of localised language name by ISO 639 language code and reverse look up

2009-05-01 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Babel already provides (almost all of) this. It uses the Unicode CLDR data to present the information you need. See http://babel.edgewall.org/ -- nosy: +asmodai ___ Python tracker <h

[issue1443504] locale.getpreferredencoding() dies when setlocale fails

2009-05-01 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: OK, then I'll apply it. But I am curious about your thoughts about the _parse_localename() method being called from setlocale() raising a ValueError, whereas a setlocale(LC_CTYPE, "") should not fail at all, which it currently doe

[issue1443504] locale.getpreferredencoding() dies when setlocale fails

2009-05-01 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Sorry, I was actually off by a method last night. It turns out the problem lies in _localemodule.c. Let me start with the basic question: is our setlocale() supposed to mirror POSIX' operations/sema

[issue3061] time.strftime() always decodes result with UTF-8

2009-05-02 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: As C99 section 7.23.3.5 states: "Each conversion specifier is replaced by appropriate characters as described in the following list. The appropriate characters are determined using the LC_TIME category of the current locale and by the valu

[issue1443504] locale.getpreferredencoding() dies when setlocale fails

2009-05-02 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: I will first point out where our current implementation is broken, in my opinion of course, after which I propose a small patch. Both C90 (7.4.1.1) and C99 (7.11.1.1) state: "A value of "C" for locale specifies the minimal en

[issue1443504] locale.getpreferredencoding() dies when setlocale fails

2009-05-03 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: On the subject whether or not returning a null pointer should be considered he said: -> On the subject whether or not returning a null pointer should be considered an error he said: -- ___ Pyt

[issue1443504] locale.getpreferredencoding() dies when setlocale fails

2009-05-03 Thread Jeroen Ruigrok van der Werven
Changes by Jeroen Ruigrok van der Werven : Removed file: http://bugs.python.org/file13843/locale.diff ___ Python tracker <http://bugs.python.org/issue1443504> ___ ___

[issue1443504] locale.getpreferredencoding() dies when setlocale fails

2009-05-03 Thread Jeroen Ruigrok van der Werven
Changes by Jeroen Ruigrok van der Werven : Removed file: http://bugs.python.org/file13849/locale.diff ___ Python tracker <http://bugs.python.org/issue1443504> ___ ___

[issue1443504] locale.getpreferredencoding() dies when setlocale fails

2009-05-03 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Really correct this time. -- Added file: http://bugs.python.org/file13850/locale.diff ___ Python tracker <http://bugs.python.org/issue1443

[issue1443504] locale.getpreferredencoding() dies when setlocale fails

2009-05-03 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Georg pointed out a mistake I introduced in my patch, updated now. -- Added file: http://bugs.python.org/file13849/locale.diff ___ Python tracker <http://bugs.python.org/issue1443

[issue1443504] locale.getpreferredencoding() dies when setlocale fails

2009-05-03 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: I asked that as well on the POSIX/SUS list and Don Cragun responded with: "If you make the last argument to setlocale() be a pointer to unallocated memory, implementations would be allowed to set errno to EFAULT and terminate the process w

[issue1443504] locale.getpreferredencoding() dies when setlocale fails

2009-05-05 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Committed the initial patch in r72375 for trunk and r72376 for py3k. Any other branches that would need the merge? 3.0? -- resolution: -> accepted stage: test needed -> committed/rejected status: open ->

[issue1443504] locale.getpreferredencoding() dies when setlocale fails

2009-05-06 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Committed in r72381 and r72395. -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue1

[issue5948] setlocale regression

2009-05-06 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: I can verify this on Vista. 2.5 gives: >>> from locale import setlocale, LC_ALL >>> setlocale(LC_ALL, "fr") 'French_France.1252' Whereas 2.6 fails. There is no difference between 2.5's and 2.6&#x

[issue5948] setlocale regression

2009-05-06 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: My tests were with official distributions. Yamamoto-san, thank you for your testing. I was thinking it might have been something to do with changed semantics, but I am happy you saved me the time from having to compile. Looking at the

[issue2178] Problems with Belarusian Latin locale

2009-05-08 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Interesting. I'll see if I can dig into this. -- nosy: +asmodai ___ Python tracker <http://bugs.python.org/i

[issue4787] Curses Unicode Support

2009-05-08 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: On FreeBSD there's no need for the ncurses package in most case. Since somewhere along 6.x and 7.x line Rong-En Fan switched FreeBSD to do what I did for DragonFly BSD a long time: to have both normal and wide curses available. As far as P

[issue2178] Problems with Belarusian Latin locale

2010-08-04 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Not sure, never got around to dig into it. But we did have some locale fixes, including better picking up default encodings and whatnot. -- ___ Python tracker <http://bugs.python.org/issue2

[issue18233] SSLSocket.getpeercertchain()

2015-05-28 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: Given that cryptography.io is fast becoming the solution for dealing with X.509 certificates on Python, I would like to add my vote to add my vote for this feature. Right now, getting the full chain in DER is what I am missing to complete a

<    2   3   4   5   6   7