[Python-Dev] Quick sum up about open() + BOM

2010-01-08 Thread Victor Stinner
uot;BOM") - tell() / seek(0) works as expected - BOM bytes are always skipped in read() / readlines() result Hum, I don't know if this email can be called a sum up ;-) -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Quick sum up about open() + BOM

2010-01-09 Thread Victor Stinner
ystem locale). With Guido choice, encoding="BOM": it raises an error, because BOM check is not supported when writing into a file. How could the BOM be checked when creating a new (empty) file!? -- Victor Stinner http://www.haypocalc.com/ __

Re: [Python-Dev] Quick sum up about open() + BOM

2010-01-09 Thread Victor Stinner
third choice for my point (1) :-) It's between Guido and Antoine choice, and I like it because we can fallback to UTF-8 instead of the dummy system locale: Windows users will be happy to be able to use UTF-8 :-) I prefer to fallback to a fixed encoding then depending on the system locale.

Re: [Python-Dev] Quick sum up about open() + BOM

2010-01-09 Thread Victor Stinner
gt; or is that taking it too far? Yes, you're taking it foo far :-) Checking BOM is reliable, whereas *guessing* the charset only using the byte stream can only be an heuristic. Guess a charset is a complex problem, they are 3rd party library to do that, like the chardet project.

Re: [Python-Dev] Improve open() to support reading file starting with an unicode BOM

2010-01-09 Thread Victor Stinner
s another solution to the point (2) (Check for a BOM while reading or detect it before?). Which encoding would be used if there is not BOM? UTF-8 sounds like a good choice. -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Python-

Re: [Python-Dev] Quick sum up about open() + BOM

2010-01-09 Thread Victor Stinner
t change the API. Eg. Antoine proposed to leave the API unchanged: open(file) => open(file) :-) I don't know if it's compatible with the moratorium or not. -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Python-Dev@pyth

Re: [Python-Dev] Fwd: [Python-checkins] r77402 - in python/trunk: Doc/library/warnings.rst Lib/test/test_ascii_formatd.py Lib/test/test_exceptions.py Lib/warnings.py Misc/NEWS Python/_warnings.c

2010-01-10 Thread Victor Stinner
ython-dev mailing list. What is the recommanded way to get the previous behaviour (print deprecation warnings once)? Is there a command line option? Is it "-W default"? -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Py

Re: [Python-Dev] Using code with a public domain like license

2010-01-25 Thread Victor Stinner
s web site, whether modified by you or not. You need not give attribution." Yes, you can change this "license" to the Python license, but keep the original copyright. -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mail

[Python-Dev] Summary of 2 years of Python fuzzing

2010-01-25 Thread Victor Stinner
lso be useful). I'm only working on Linux, but Fusil works on any UNIX/BSD OS. Don't use Fusil on Windows! It might work on Windows but without any protection for your files and processes! I hope that my fuzzing tests helped Python project, and may be someone else would help me t

Re: [Python-Dev] Summary of 2 years of Python fuzzing

2010-01-25 Thread Victor Stinner
Hi, Le mardi 26 janvier 2010 00:40:47, Christian Heimes a écrit : > Victor Stinner wrote: > > I'm running regulary my fuzzer (Fusil) on CPython since summer 2008: I > > tested Python 2.5, 2.6, 2.7, 3.0, 3.1 and 3.2. I'm only looking for > > "fatal errors&quo

Re: [Python-Dev] Summary of 2 years of Python fuzzing

2010-01-28 Thread Victor Stinner
l among > other things. including Fusil? Ok, I ordered the book :-) (anyway, the topic is interesting) -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev

[Python-Dev] pysandsox project

2010-02-15 Thread Victor Stinner
Hi, I'm working on a new sandbox project. The goal is to create an empty namespace and write strict rules for the interaction with the existing namespace (full featured Python namespace). By default, you cannot read a file, use print, import a module or exit Python. But you can enable some fun

Re: [Python-Dev] Add UTC to 2.7 (PyCon sprint idea)

2010-02-16 Thread Victor Stinner
Hi, Le Tuesday 16 February 2010 11:38:05 anatoly techtonik, vous avez écrit : > So far, Python timezone handling is far from "pythonic". There is no > function to get current UTC offset, (...) There is the time.timezone attribute: UTC offset in seconds. > One of the reasons I see is that date/ti

[Python-Dev] Challenge: escape from the pysandbox

2010-02-28 Thread Victor Stinner
pysandbox Python process, that's all. I tested it under Linux with Python 2.5 and 2.6. The portage to Python3 is not done yet (is someone motivated to write a patch? :-)). -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing li

[Python-Dev] Catch SIGINT at Python startup

2010-03-08 Thread Victor Stinner
ion is really fast (yeah really! or at least to fast for me ;-)). I'm using "valgrind --log- file=/dev/null ./python -v" to simulate a very slow computer :-) -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Pyth

Re: [Python-Dev] Catch SIGINT at Python startup

2010-03-08 Thread Victor Stinner
ed different tricks to test Python: add kill(getpid(), SIGINT), use "signal SIGINT" in gdb, add PyErr_SetNone(PyExc_KeyboardInterrupt), ... valgrind is a very good tool to slow down any process :-D -- Victor Stinner http://www.haypocalc.com/

Re: [Python-Dev] Catch SIGINT at Python startup

2010-03-08 Thread Victor Stinner
to run it to un-do the buggy operation, it would crash immediately. I don't think that modifying the site.py file is a good idea. Why not editing/generating the sitecustomize or usercustomize module? Anyway, if you write such tool: use a different language or use a failsafe

Re: [Python-Dev] Catch SIGINT at Python startup

2010-03-08 Thread Victor Stinner
use -v for traceback" -- Using these functions, even if sitecustomize fails, usercustomize is imported. Can it be a problem? Does usercustomize requires that sitecustomize has been initialized correctly? (The code can be changed to only import usercustomize if sitec

Re: [Python-Dev] Catch SIGINT at Python startup

2010-03-10 Thread Victor Stinner
issues #7774 and #7880 (problems with sys.executable and modified sys.argv[0]). I consider that it's a good point to detect the errors earlier, but it breaks code based on the errors :-) I will no backport the fix to 2.6 (or at least, not the fix about importing the site module) Shou

[Python-Dev] Bug tracker: no confirmation before deleting a message

2010-03-11 Thread Victor Stinner
es=100432 Could you at least add a Javascript confirmation dialog please? :-) -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.pyth

Re: [Python-Dev] Catch SIGINT at Python startup

2010-03-11 Thread Victor Stinner
ess. Some commits later, #7880 is fixed and part of #7774 is also fixed. So yes, it will be possible to port the fix to py3k. -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/l

Re: [Python-Dev] Decimal <-> float comparisons in py3k.

2010-03-16 Thread Victor Stinner
tr()"). I like this behaviour :-) If comparaison of Decimal and float can have "unpredictable" result, I would suggest the same behaviour (raise an error). -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Python-D

Re: [Python-Dev] Issue #7978, unexpected EINTR-related exceptions

2010-04-08 Thread Victor Stinner
ful code, already duplicated > at least in subprocess (_eintr_retry_call, subprocess.py), which can > probably be moved to another module and be shared from there. (...) +1 to share EINTR-related code, but I don't know the best place for such functions. Maybe the os

[Python-Dev] Use surrogates for Python import

2010-04-13 Thread Victor Stinner
s. It contains extra changes to fix many modules and tests if the current directory is not decodable. -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubs

[Python-Dev] Drop OS/2 support?

2010-04-16 Thread Victor Stinner
test my changes. And on IRC we told me that nobody knows/uses OS/2. If we support OS/2, we need a buildbot. My patch: http://bugs.python.org/issue8391 (os.execvpe() doesn't support surrogates in env). -- Victor Stinner http://www.haypocalc.com/ __

[Python-Dev] http://bugs.python.org/ is down

2010-04-17 Thread Victor Stinner
Hi, http://bugs.python.org/ displays "Service Temporarily Unavailable". Is it normal? -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscr

[Python-Dev] bbreport

2010-04-17 Thread Victor Stinner
es vs new failures. This tool becomes really useful to analyze buildbot results! http://code.google.com/p/bbreport/ bbreport requires Python trunk (2.7) and color output only works on UNIX/BSD OS (ie. not Windows). -- Victor Stinner http://www.haypocal

Re: [Python-Dev] bbreport

2010-04-18 Thread Victor Stinner
Le samedi 17 avril 2010 20:41:10, Victor Stinner a écrit : > Ezio and Florent are developing a tool called bbreport to collect buildbot > results and generate short reports to the command line. (...) I realized that most issues come from Windows and Mac. Can't we just turn off thes

[Python-Dev] Support byte string API of Windows in Python3?

2010-04-19 Thread Victor Stinner
e your opinion about that ;-) -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Support byte string API of Windows in Python3?

2010-04-19 Thread Victor Stinner
Le lundi 19 avril 2010 11:33:58, Victor Stinner a écrit : > I'm working on surrogates in filenames on Linux (...) Related issues: #8391: os.execvpe() doesn't support surrogates in env #8393: subprocess: support undecodable current working directory on POSIX OS #8394: ctypes.dlo

Re: [Python-Dev] Support byte string API of Windows in Python3?

2010-04-19 Thread Victor Stinner
On Windows, Python3 uses LoadLibraryW() to load a library, and the Python API rejects byte string. -- The question was: should we change python3 to accept byte strings on Windows? I think that I can re-close these two issues because it's a good thing to avoid the evil, locale dep

[Python-Dev] Reject bytearray filename in Python 3.2

2010-04-21 Thread Victor Stinner
of issues about surrogates and I would make my work more diffcult :-( -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.o

Re: [Python-Dev] Reject bytearray filename in Python 3.2

2010-04-21 Thread Victor Stinner
Le jeudi 22 avril 2010 00:21:02, vous avez écrit : > Victor Stinner wrote: > > I will be very sad if someone ask me to keep bytearray filename support > > in 3.2 because I opened a lot of issues about surrogates and I would make > > my work more diffcult :-( > > I don&#

[Python-Dev] PyTuple_Parse*() and discontigious buffer

2010-04-22 Thread Victor Stinner
#x27;s just a bug in getargs.c. Do someone have information about that? Should it be fixed (only accept contigious buffer)? -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman

Re: [Python-Dev] autoconf update to 2.65 and cleanup

2010-04-23 Thread Victor Stinner
idea to change the build process after the first beta. It would depend on the issue comments ;-) -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev

Re: [Python-Dev] code.python.org - random 403 errors

2010-04-23 Thread Victor Stinner
.6/xmlrpclib.py", line 1392, in _parse_response return u.close() File "/usr/lib/python2.6/xmlrpclib.py", line 838, in close raise Fault(**self._stack[0]) xmlrpclib.Fault: ---------- Did the buildbot configuration/version changed recently? -- Victor Stinner htt

Re: [Python-Dev] Drop OS/2 support?

2010-04-26 Thread Victor Stinner
yself don't > "need" it. Ah ok, Python3 doesn't work on OS/2 :-) -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Running Clang 2.7's static analyzer over the code base

2010-05-04 Thread Victor Stinner
do you want to only fix only py3k and not trunk? -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/pyth

Re: [Python-Dev] Running Clang 2.7's static analyzer ov er the code base

2010-05-04 Thread Victor Stinner
y insered the line, and it's not a refactoring patch. Refactoring can be about the indentation, but there are a lot of other minor changes: op->ob_size => Py_SIZE(op), (a) => a, { with a new line => { without newline, ... -- Victor Stinner http://www.haypocalc.com/ __

Re: [Python-Dev] Running Clang 2.7's static analyzer ov er the code base

2010-05-04 Thread Victor Stinner
gt; Would it be finally time to standardize all C files on a 4-spaces > indentation rule? Oh, if we decide to reindent all C files, would it be also possible to strip trailing spaces? -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev maili

Re: [Python-Dev] Running Clang 2.7's static analyzer over the code base

2010-05-04 Thread Victor Stinner
eplace("\t", " " * 4)), and then a visual pass is necessary > to fix vertical alignments and the like. We should also add pre-commit scripts to avoid the reintroduction of tabulations in C (and Python?) files. -- Victor Stinner http://www.haypocalc.com/ __

Re: [Python-Dev] Standardising C file indentation (was Re: Running Clang 2.7's static analyzer over the code base)

2010-05-04 Thread Victor Stinner
hanges need to be accounted for. If we wait for Hg to solve all of our problems, the migration from svn to hg will be harder and longer. -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Python-Dev@python.org http://mail.p

Re: [Python-Dev] Running Clang 2.7's static analyzer over the code base

2010-05-05 Thread Victor Stinner
mit. I think that we should fix the whitespaces of the whole project in one unique commit. Well, or least don't fix whitespaces file by file... -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Python-Dev@python.org http://ma

Re: [Python-Dev] Did I miss the decision to untabify all of the C code?

2010-05-06 Thread Victor Stinner
very important for this last release, more important than "improving it". I prefer to work on new features on 3.x and keep 2.7 as stable as we can. -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Python-Dev@python.org

Re: [Python-Dev] Running Clang 2.7's static analyzer over the code base

2010-05-06 Thread Victor Stinner
Le mardi 04 mai 2010 07:12:32, Martin v. Löwis a écrit : > > Will changing the indentation of source files to 4 space indents break > > patches on the bug tracker? > > Plain patch will choke, but "patch -l" might accept them. Tested on posixmodule.c: it works

Re: [Python-Dev] Did I miss the decision to untabify all of the C code?

2010-05-06 Thread Victor Stinner
t in a global variable e.g. 'errno' nor are they congruent with posix error numbers. */ -static PyObject * os2_error(int code) +static PyObject * +os2_error(int code) { char text[1024]; PyObject *v; --- -- Victor Stinner http://www.haypocal

[Python-Dev] Issue #8610: Set default file system encoding to ascii on error?

2010-05-07 Thread Victor Stinner
X because the encoding is hardcoded (mbcs, utf-8). On Unix, I don't know in which case nl_langinfo() can fail. Empty environment is not an error: nl_langinfo(CODESET) returns "ascii". I think that few (or no) user would notice this change. -- Victor Stinner

Re: [Python-Dev] Issue #8610: Set default file system e ncoding to ascii on error?

2010-05-07 Thread Victor Stinner
's better to raise an error than creating utf8 filenames on a latin1 file system. -- I forgot to mention Marc Lemburg propositing of creating a PYTHONFSENCODING environment variable: #8622. -- Victor Stinner http://www.haypocalc.com/ ___ Python-

Re: [Python-Dev] Parallel test execution on buildbot

2010-05-09 Thread Victor Stinner
: 4 tests are really running at the same time, and I only get only one spurious failure: test_ioctl. It should be easy to fix this test. Or we can maybe write a blacklist of tests not compatible with multiprocessing mode (or the opposite, a whitelist of compatible tests). -- Victor Sti

Re: [Python-Dev] Fixing the GIL (with a BFS scheduler)

2010-05-16 Thread Victor Stinner
heduler? The OS has useful informations to help scheduling that Python doesn't have. Linux and FreeBSD schedulers are faster each year since... 5 years?, especially with multiple CPU/cores. -- Victor Stinner http://www.haypocalc.com/ ___ Pyt

[Python-Dev] Reintroduce or drop completly hex, bz2, rot13, ... codecs

2010-06-08 Thread Victor Stinner
TypeError. -- In my opinion, we should not mix codecs of different kinds (compression, cipher, etc.) because the input and output types are different. It would have more sense to create a standard API for each kind of codec. Existing examples of standard APIs in Python: hashlib, shutil.make_a

Re: [Python-Dev] Reintroduce or drop completly hex, bz2, rot13, ... codecs

2010-06-09 Thread Victor Stinner
type. What about buffer compatible objects like array.array(), memoryview(), etc.? Should we use codecs.encode() / codecs.decode() for these types? -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Python-Dev@python.org http://mai

Re: [Python-Dev] Reintroduce or drop completly hex, bz2, rot13, ... codecs

2010-06-09 Thread Victor Stinner
uot;abc é".encode("rot13") 'nop \xe9' >>> u"abc \u2c01".encode("rot13") Traceback (most recent call last): ... UnicodeEncodeError: 'charmap' codec can't encode character u'\u2c01' in position 4: character maps to -- Vic

Re: [Python-Dev] Reintroduce or drop completly hex, bz2, rot13, ... codecs

2010-06-10 Thread Victor Stinner
rm(). (**kw would be something really ugly.) > (In 2.6 it raises an assertion error, because errors *must* be strict) hex, bz2, rot13, ... codecs should also raise an error if errors is not "strict" (or None which means "strict") in Python3. -- Victor Stinner http://www.haypoc

Re: [Python-Dev] blocking 2.7

2010-07-03 Thread Victor Stinner
d data. If I have to choose, I prefer to reject valid data than a security vulnerability. But audioop has tests and I don't think that my patch breaks anything :-) -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list P

Re: [Python-Dev] blocking 2.7

2010-07-03 Thread Victor Stinner
Le samedi 03 juillet 2010 14:26:53, Victor Stinner a écrit : > In the worst case, a function rejects valid data. If I have to choose, I > prefer to reject valid data than a security vulnerability. But audioop has > tests and I don't think that my patch breaks anything :-) I checked

[Python-Dev] Full unicode support for the import machinery

2010-07-08 Thread Victor Stinner
rrors if file system encoding is None (-> create initfsencoding() in pythonrun.c) #8715: Create PyUnicode_EncodeFSDefault() function ... -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Python-Dev@python.org h

Re: [Python-Dev] Full unicode support for the import machinery

2010-07-29 Thread Victor Stinner
Le vendredi 09 juillet 2010 02:11:35, Victor Stinner a écrit : > I'm trying to fix Python to support undecodable bytes in the Python path > (...) My work is mostly done. I posted a patch on Rietveld and opened an issue. http://bugs.python.org/issue9425 http://codereview.appspot.

Re: [Python-Dev] [RELEASED] Python 3.2 alpha 1

2010-08-12 Thread Victor Stinner
e support > * improvements to pdb, the Python debugger Hey, Python 3(.2) becomes more sexy than Python 2(.7)! -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/li

Re: [Python-Dev] [Python-checkins] r84190 - python/branches/release31-maint/Doc/library/stdtypes.rst

2010-08-19 Thread Victor Stinner
nch is dead, py3k is the new main branch ;-) -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] [Python-checkins] r84209 - python/branches/py3k/Python/ast.c

2010-08-19 Thread Victor Stinner
sages or even crashes, > in admittedly convoluted cases that are normally syntax errors, like: > def f(*xx, __debug__): pass Would it be possible to write tests for this change? -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing

Re: [Python-Dev] Summary of Python tracker Issues

2010-08-20 Thread Victor Stinner
BSD 7.2 3.x|x86 Windows7 3.1|.* 2.7) 8429: test_subprocess:hung: 8431: :hung:(ARM|.* debian parallel) --- -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/lis

Re: [Python-Dev] Released: Python 2.6.6

2010-08-24 Thread Victor Stinner
. If you compare 2.5 and 2.7 doc, the 2.5 is just ugly :-) 2.5 has no table of content at the left and it uses subpages which is less pratical (to search something using the browser) that a whole module on the same page. So I just don't care of 2.6 doc :-) -- Victor St

Re: [Python-Dev] r84430 - in python/branches/py3k: Include/unicodeobject.h Objects/unicodeobject.c

2010-09-02 Thread Victor Stinner
dd them to the public API? For my work, it doesn't matter if it's public or not. This function uses PyMem_xxx API, I don't know if a third part library would like to rely on PyMem_xxx. -- Victor Stinner http://www.haypocalc.com/ ___ P

Re: [Python-Dev] r84430 - in python/branches/py3k: Include/unicodeobject.h Objects/unicodeobject.c

2010-09-02 Thread Victor Stinner
minimal collection > of Py_UNICODE interfaces. Are you talking about Py_UNICODE_strcat() or Py_UNICODE_strdup() (called PyUnicode_strdup in py3k branch)? -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Python-Dev@python.

Re: [Python-Dev] r84430 - in python/branches/py3k: Include/unicodeobject.h Objects/unicodeobject.c

2010-09-03 Thread Victor Stinner
programmers don't like writing documentation :-) -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/optio

Re: [Python-Dev] r84430 - in python/branches/py3k: Include/unicodeobject.h Objects/unicodeobject.c

2010-09-03 Thread Victor Stinner
a nul character. Return *NULL* and raise a :exc:`MemoryError` exception on memory allocation failure, otherwise return a new allocated buffer (use :cfunc:`PyMem_Free` to free the buffer). -- Thanks all for your review and advices ;-) -- Victor Stinner http://www.haypocalc.com/

Re: [Python-Dev] Summary of Python tracker Issues

2010-09-03 Thread Victor Stinner
device" on "x86 XP-5 *" build slaves. -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options

Re: [Python-Dev] r84456 - python/branches/py3k/Doc/c-api/unicode.rst

2010-09-03 Thread Victor Stinner
Le vendredi 03 septembre 2010 20:07:54, Georg Brandl a écrit : > Please add a "versionadded" tag. Oh no, I always forget this one. Done in r84475. -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Python-Dev@py

Re: [Python-Dev] r84430 - in python/branches/py3k: Include/unicodeobject.h Objects/unicodeobject.c

2010-09-03 Thread Victor Stinner
Le samedi 04 septembre 2010 00:02:59, Georg Brandl a écrit : > What about Py_UNICODE_strcat? If it remains, it needs to be documented as > well. There is already an issue for that: http://bugs.python.org/issue8649 -- Victor Stinner http://www.haypoca

Re: [Python-Dev] 3.2 "What's New"

2010-09-03 Thread Victor Stinner
uments - mbcs encoding (default Windows encoding) is not more strict, eg. don't encode Ł as L in codepage 1252 I have a list of the related issues, do you need it? -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Python-

Re: [Python-Dev] Python 2.7 Won't Build

2010-09-16 Thread Victor Stinner
Le jeudi 16 septembre 2010 23:10:22, Tom Browder a écrit : > I'm attempting to file a bug but keep getting: File another bug about this bug! -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Python-Dev@python.

Re: [Python-Dev] Python 2.7 Won't Build

2010-09-17 Thread Victor Stinner
> the original bug (and reported it on the "tracker bug"). http://bugs.python.org/issue9880 Ah, yes, you have to add nicknames, not emails. Barry nickname is "barry", and he's already on the nosy list (because he answered to your issue

[Python-Dev] Some news from my sandbox project

2010-09-17 Thread Victor Stinner
e the existing else statement). I'm not sure that this hack is safe, and so I didn't commited it yet. -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-d

Re: [Python-Dev] Some news from my sandbox project

2010-09-18 Thread Victor Stinner
Le samedi 18 septembre 2010 10:24:49, Greg Ewing a écrit : > Victor Stinner wrote: > > I'm still developing irregulary my sandbox project since last june. > > > > Today, the biggest problem is the creation of a read only view of the > > __builtins__ dictionary. &

Re: [Python-Dev] Some news from my sandbox project

2010-09-18 Thread Victor Stinner
s'] TypeError: Unable to proxy a value of type sandbox>>> modules['sys']=1 SandboxError: Read only object Builtin module type is blocked because it is unsafe. -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Py

Re: [Python-Dev] [Python-checkins] r84877 - python/branches/release27-maint/Lib/posixpath.py

2010-09-18 Thread Victor Stinner
7-maint/Lib/posixpath.py > === > === --- python/branches/release27-maint/Lib/posixpath.py (original) > +++ python/branches/release27-maint/Lib/posixpath.py Sat Sep 18 07:40:44 > 2010 @@ -11,6 +11,7 @@ > """ > > import

Re: [Python-Dev] Some news from my sandbox project

2010-09-19 Thread Victor Stinner
I suppose that it will make Python slower. The frame mechanism is already slow (create a new frame to call a Python function is much slower than calling a function in C). pysandbox creates a new separated namespace for untrusted functions, but __builtins__ "namespace" (dict) is sha

Re: [Python-Dev] Atlassian and bitbucket merge

2010-09-29 Thread Victor Stinner
rrectly their Mercurial, but it allows to keep the name of the contributor on a contribution. Is it possible with Mercurial to add a tag on a commit to specify who commited a contribution? Like the Signed-By tag with git on the Linux kernel. --

Re: [Python-Dev] socket.fromfd() documentation problem

2010-10-06 Thread Victor Stinner
Le mercredi 06 octobre 2010 09:34:05, Kálmán Gergely a écrit : > Nevertheless what are your thoughts on this? Should I file a bug report > for it? It will be fixed faster if you open an issue and attach a patch ;-) -- Victor Stinner http://www.haypoca

[Python-Dev] Inconsistencies if locale and filesystem encodings are different

2010-10-07 Thread Victor Stinner
s encodes environment variables to the filesystem encoding => issue #9988 -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.

Re: [Python-Dev] Inconsistencies if locale and filesys tem encodings are different

2010-10-07 Thread Victor Stinner
locale (=ASCII) while working on a UTF-8 > > file system. > >My filesystems are always koi8-r, but sometimes I work with programs in > utf-8 locale. Just an example... Are programs able to display correctly non-ascii filenames if your locale encoding is different than your file

Re: [Python-Dev] Inconsistencies if locale and filesys tem encodings are different

2010-10-07 Thread Victor Stinner
Le jeudi 07 octobre 2010 18:35:09, M.-A. Lemburg a écrit : > Victor Stinner wrote: > > Hi, > > > > A PYTHONFSENCODING environment variable was added to Python 3.2: issue > > #8622. This variable introduces an inconstency because the filesystem > > and the loca

Re: [Python-Dev] Issue 10094

2010-10-15 Thread Victor Stinner
U_MENUPROXY to the default > environment and that's what's killing it. I'll bet those Ubuntu buildbots > are not running Maverick. Why does urllib test unset this variable? Is it related to an HTTP proxy? -- Victor Stinner http://www.haypocalc.com/ ___

Re: [Python-Dev] r85569 - in python/branches/py3k: Misc/NEWS Parser/tokenizer.h Python/ast.c Python/bltinmodule.c Python/compile.c Python/pythonrun.c Python/traceback.c

2010-10-16 Thread Victor Stinner
ython.org/dev/buildbot/builders/AMD64%20Gentoo%20Wide%203.x > http://www.python.org/dev/buildbot/builders/sparc%20solaris10%20gcc%203.x Yeah, I already noticed that. I added comments to #10114, and then opened issue #10123. #10123 should be fixed by r85578. -- Victor Stinner http://www.hayp

[Python-Dev] My work on Python3 and non-ascii paths is done

2010-10-18 Thread Victor Stinner
to drop PYTHONFSENCODING variable, use the locale encoding as the filesystem encoding, and always use utf-8 as the filesystem encoding on Mac OS X. -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Python-Dev@python.org htt

Re: [Python-Dev] My work on Python3 and non-ascii paths is done

2010-10-19 Thread Victor Stinner
. This lack of documentation was a big problem for me, because I had to follow the function calls to get the encoding. -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/

Re: [Python-Dev] My work on Python3 and non-ascii paths is done

2010-10-22 Thread Victor Stinner
rallel functions for bytes and str better than a single > polymorphic function? If you cannot decide the output type depending on the inputs, it's better to have two functions. Examples: - 2 functions; os.getcwd() / os.getcwdb(). - polymorphic: os.path.*() But you should never accept

Re: [Python-Dev] r85838 - python/branches/py3k/.gitignore

2010-10-26 Thread Victor Stinner
hree commits about gitignore using git rebase -i, and I kept the wrong changelog. If it doesn't "hurt", keep it, otherwise you can delete it. As you want. But each time that I create a git-svn repository, I have to recreate this file. -- Victor Stinner http://www.haypocalc.com/ _

Re: [Python-Dev] Continuing 2.x

2010-10-28 Thread Victor Stinner
atch to a Python2 patch (eg. a "3to2" tool, for patches). I don't want to spend 3 hours or more on a "dead project". But when I find a bug in Python3, I immediatly check if it does also exist in Python2. And if both version are affected, I try to fix all ver

Re: [Python-Dev] [Python-checkins] r85902 - in python/branches/py3k/Lib: os.py test/test_os.py

2010-11-02 Thread Victor Stinner
I don't know how to ignore the BytesWarning without importing warning. How can I do that? Victor Le vendredi 29 octobre 2010 04:31:42, Benjamin Peterson a écrit : > 2010/10/28 victor.stinner : > > Author: victor.stinner > > Date: Fri Oct 29 02:38:58 2010 > > New Revision: 85902 > > > > Log: > >

Re: [Python-Dev] [Python-checkins] r85902 - in python/branches/py3k/Lib: os.py test/test_os.py

2010-11-03 Thread Victor Stinner
Le mardi 02 novembre 2010 23:38:12, vous avez écrit : > On Tue, Nov 2, 2010 at 10:55 PM, Victor Stinner > > wrote: > > I don't know how to ignore the BytesWarning without importing warning. > > How can I do that? > > I was suggesting trying to fix the bootstra

Re: [Python-Dev] [Python-checkins] r85902 - in python/branches/py3k/Lib: os.py test/test_os.py

2010-11-04 Thread Victor Stinner
On Wednesday 03 November 2010 23:12:01 Nick Coghlan wrote: > On Thu, Nov 4, 2010 at 1:01 AM, Benjamin Peterson wrote: > > 2010/11/3 Nick Coghlan : > >> On Wed, Nov 3, 2010 at 10:19 PM, Benjamin Peterson wrote: > >>> Warnings is loaded every time anyway. > >> > >> I would have agreed with you,

[Python-Dev] "Too many open files" errors on "x86 FreeBSD 7.2 3.x" buildbot

2010-11-06 Thread Victor Stinner
Hi, I noticed "OSError: [Errno 23] Too many open files in system" errors on your FreeBSD buildbot. I would like to know if you configured a limit on the open files or maybe of child processes on this buildbot or not, or if it is a failure in Python? The first error always occurs in the first t

Re: [Python-Dev] "Too many open files" errors on "x86 FreeBSD 7.2 3.x" buildbot

2010-11-06 Thread Victor Stinner
On Saturday 06 November 2010 22:36:44 you wrote: > I couldn't find the matching failures that you're talking about, but > then I figured out you mean the FreeBSD7 (7.2) buildbot, not the > FreeBSD (6.4) buildbot Search "test_concurrent_futures" in: http://www.python.org/dev/buildbot/builders/

Re: [Python-Dev] "Too many open files" errors on "x86 FreeBSD 7.2 3.x" buildbot

2010-11-07 Thread Victor Stinner
On Monday 08 November 2010 00:34:36 David Bolen wrote: > Victor Stinner writes: > > You wrote that the "POSIX" semaphore are very limited. Do it mean that > > there is another kind of semaphore will an higher limit? > > Well, I think the SYSV semaphores are either

Re: [Python-Dev] "Too many open files" errors on "x86 FreeBSD 7.2 3.x" buildbot

2010-11-08 Thread Victor Stinner
On Monday 08 November 2010 13:23:33 Jeroen Ruigrok van der Werven wrote: > >The POSIX semaphore support is not enabled by default in FreeBSD 7, so > >I added loader.conf stuff to load them (as part of issue7272). > > It is enabled by default on FreeBSD 8 at least. Ok, but I suppose that many user

Re: [Python-Dev] [Python-checkins] r86355 - python/branches/py3k/Modules/_pickle.c

2010-11-10 Thread Victor Stinner
On Tuesday 09 November 2010 17:23:23 Alexander Belopolsky wrote: > On Tue, Nov 9, 2010 at 4:39 AM, victor.stinner > wrote: > .. > > > Log: > > Issue #10359: Remove useless comma, invalid in ISO C > > C99 allows it. Which compiler is giving you trouble? I don't know, but the commit is trivial a

Re: [Python-Dev] Removal of Win32 ANSI API

2010-11-11 Thread Victor Stinner
On Thursday 11 November 2010 17:07:28 Hirokazu Yamamoto wrote: > Hello. Is it possible to remove Win32 ANSI API (ie: GetFileAttributesA) > and only use Win32 WIDE API (ie: GetFileAttributesW)? > Mainly in posixmodule.c. Even if I hate the MBCS encoding, because it replaces undecodable characters

Re: [Python-Dev] Removal of Win32 ANSI API

2010-11-12 Thread Victor Stinner
On Thursday 11 November 2010 23:01:32 you wrote: > > Sure, it will divide the number of lines, of the code specific to > > Windows, by two. > > Can we get most of the code cleanup benefit without the backwards > compatibility risk by doing the decode from 'mbcs' on our side of the > fence? I crea

<    19   20   21   22   23   24   25   26   27   28   >