[issue1045] Performance regression in 2.5

2007-08-31 Thread Gabriel Genellina
Gabriel Genellina added the comment: I've narrowed the problem to the usage of generator expressions. Generator expressions appear to be MUCH slower on 2.5 than on 2.4. python -m timeit tuple([1 for _ in xrange(3)]) 2.4 - 2.23us 2.5 - 2.31us (a bit slower, but not so much) python -m timeit

[issue1027] uudecoding (uu.py) does not supprt base64, patch attached

2007-08-31 Thread Gabriel Genellina
Gabriel Genellina added the comment: I think the 2.4 version is in maintenance mode, so no new features are added. You may target 2.5 or 2.6. But the patch is incorrect: the base64 name is undefined. You should include test cases and documentation changes also; please read http

[issue1139] PyFile_Encoding should be PyFile_SetEncoding

2007-09-09 Thread Gabriel Genellina
New submission from Gabriel Genellina: Describing the PyFile C API, there is a typo: PyFile_Encoding function does not exist, should say PyFile_SetEncoding instead. (This goes down to version 2.3 when the function was initially added). http://docs.python.org/dev/c-api/ concrete.html

[issue1168] complex arithmetic: strange results with imag

2007-09-16 Thread Gabriel Genellina
Gabriel Genellina added the comment: Note that there are no complex literals in Python, only imaginary literals. 1-4j is an expression, not a literal. So 1-4j.imag means 1-(4j.imag) = 1-4 = -3 See http://docs.python.org/ref/numbers.html#l2h-16 (I'd close this as not a bug) -- nosy

[issue1205] urllib fail to read URL contents, urllib2 crash Python

2007-09-26 Thread Gabriel Genellina
Gabriel Genellina added the comment: This is a server bug. Internet Explorer 6 can't show the page either. The response is malformed; it uses chunked transfer, and RFC2616 section 3.6.1 says The chunk-size field is a string of hex digits indicating the size of the chunk. The chunked encoding

[issue1346] Error using from OpenGL.GLUT import *

2007-10-27 Thread Gabriel Genellina
Gabriel Genellina added the comment: Looks like GLUT in special.py is None. You should ask the PyOpenGL author/community for help. This is not a Python bug. -- nosy: +gagenellina __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1346

[issue1328] feature request: force BOM option

2007-10-27 Thread Gabriel Genellina
Changes by Gabriel Genellina: -- nosy: +gagenellina __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1328 __ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1311] os.path.exists(os.devnull) regression on windows

2007-10-27 Thread Gabriel Genellina
Gabriel Genellina added the comment: All these tests on Windows XP SP4, executing os.stat(nul) Python 2.1 thru 2.4 raises: OSError: [Errno 22] Invalid argument: 'nul' Python 2.5 gives a different error: WindowsError: [Error 87] El parámetro no es correcto: 'nul' -- nosy

[issue1366] popen spawned process may not write to stdout under windows

2007-11-07 Thread Gabriel Genellina
Gabriel Genellina added the comment: (I think the title you meant was popen spawned process may not write to stderr under windows) The child is dying with IOError: [Errno 22] Invalid argument at the sys.stderr.flush() call. Neither the docs for os.popen nor the Linux man page for popen(3

[issue1343] XMLGenerator: nice empty/ elements

2007-11-07 Thread Gabriel Genellina
Gabriel Genellina added the comment: Some (ugly) parsers insist on container/ container when the element is not declared to be empty, so this should be optional (the default being generate container/) -- nosy: +gagenellina __ Tracker [EMAIL PROTECTED

[issue1742669] %d format handling for long values

2007-11-07 Thread Gabriel Genellina
Gabriel Genellina added the comment: Yes, I can reformulate it. In fact my original version was quite different, but the resulting diff was hard to understand so I rewrote it trying to keep as much as the original code as possible. I'll submit a new patch next weekend

[issue1417] Weakref not working properly

2007-11-13 Thread Gabriel Genellina
Gabriel Genellina added the comment: I think this methodref function is simpler and much less intrusive -- nosy: +gagenellina Added file: http://bugs.python.org/file8744/methodref.py __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1417

[issue1431] pth files not loaded at startup

2007-11-13 Thread Gabriel Genellina
Changes by Gabriel Genellina: -- nosy: +gagenellina __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1431 __ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1459] Bugs lost on migration from Sourceforge

2007-11-18 Thread Gabriel Genellina
New submission from Gabriel Genellina: I can't find the issue this mail refers to: http:// mail.python.org/ pipermail/ python-bugs- list/2006- April/ 033139.html As it was labeled Bug item #1474680, I tried http:// bugs.python.org/ issue1474680 and got a 404 error. Using the Search

[issue1393] function comparing lacks NotImplemented error

2007-11-19 Thread Gabriel Genellina
Changes by Gabriel Genellina: -- nosy: +gagenellina __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1393 __ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1477] UnicodeDecodeError that cannot be caught in narrow unicode builds

2007-11-21 Thread Gabriel Genellina
Changes by Gabriel Genellina: -- nosy: +gagenellina __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1477 __ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1475] test_popen fails when the directory contains a space

2007-11-21 Thread Gabriel Genellina
Changes by Gabriel Genellina: -- nosy: +gagenellina __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1475 __ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1723] Respuesta automática de Yahoo!

2008-01-02 Thread Gabriel Genellina
New submission from Gabriel Genellina: Estoy de vacaciones hasta el 15 de enero! On holiday until Jan 15! -- messages: 59110 nosy: gagenellina severity: normal status: open title: Respuesta automática de Yahoo! __ Tracker [EMAIL PROTECTED] http

[issue1675] Race condition in os.makedirs

2008-01-20 Thread Gabriel Genellina
Changes by Gabriel Genellina: -- nosy: +gagenellina __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1675 __ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1927] raw_input behavior incorrect if readline not enabled

2008-01-24 Thread Gabriel Genellina
Gabriel Genellina added the comment: GNU readline is configured as to prompt the user using standard output, and read input from standard input; if this is the desired behavior it would be easy to provide a simple patch so input/raw_input behave that way even when readline is not used

[issue1742669] %d format handling for long values

2008-02-18 Thread Gabriel Genellina
Gabriel Genellina added the comment: An updated patch, along the lines given by Travis Oliphant. Added file: http://bugs.python.org/file9458/floatfmt.diff _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1742669

[issue1518] Fast globals/builtins access (patch)

2008-02-18 Thread Gabriel Genellina
Changes by Gabriel Genellina: -- nosy: +gagenellina __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1518 __ ___ Python-bugs-list mailing list Unsubscribe: http

[issue2304] subprocess under windows fails to quote properly when shell=True

2008-03-16 Thread Gabriel Genellina
Gabriel Genellina [EMAIL PROTECTED] added the comment: You aren't testing the modified code, the Popen call should say shell=True. I think that a more PEP8-compliant style would be nice (removing the spaces after open and read, and using consistent indentation) -- nosy: +gagenellina

[issue2483] int and float accept bytes, complex does not

2008-03-26 Thread Gabriel Genellina
Gabriel Genellina [EMAIL PROTECTED] added the comment: Are numbers so special to break the rules? why stopping here? what about other types that may want to accept ASCII bytes instead of characters? Isn't this like going back to the 2.x world? The protocol with embedded ASCII numbers

[issue3916] layout of build directories for Windows not current

2008-09-20 Thread Gabriel Genellina
New submission from Gabriel Genellina [EMAIL PROTECTED]: In the Using Python on Windows document, the various directories listed for building Python on Windows are not current. The attached patch fixes the documentation. Also included a small fix in the PBbuild/ readme.txt file

[issue3912] unittest. assertAlmostEqual() documentation incomplete

2008-09-20 Thread Gabriel Genellina
Gabriel Genellina [EMAIL PROTECTED] added the comment: This patch documents the missing default value. -- keywords: +patch nosy: +gagenellina Added file: http://bugs.python.org/file11535/unittest.diff ___ Python tracker [EMAIL PROTECTED] http

[issue3852] kqueue.control requires 2 params while docs say max_events (the second) defaults to 0

2008-09-20 Thread Gabriel Genellina
Gabriel Genellina [EMAIL PROTECTED] added the comment: Attached a documentation patch, including the kqueue.control function docstring. But I wonder if the code was incorrect instead - both the documentation and the function docstring specified a default value for max_events=0

[issue3826] Self-reference in BaseHTTPRequestHandler descendants causes stuck connections

2008-09-20 Thread Gabriel Genellina
Gabriel Genellina [EMAIL PROTECTED] added the comment: 3.0rc1 still fails. The diagnostic is correct, the connection should be closed after sending the response, but isn't. The attached unittest reproduces the error without requiring a browser. -- nosy: +gagenellina

[issue4267] sqlite3 documentation

2008-11-05 Thread Gabriel Genellina
New submission from Gabriel Genellina [EMAIL PROTECTED]: Three small changes to sqlite3 documentation: 1) (mostly cosmetic) In the second example, changed what was a tuple of tuples to a list of tuples to follow common practice. 2) DEFERRED, IMMEDIATE and EXLUSIVE (possible values

[issue4268] functions in email package listed under wrong module

2008-11-06 Thread Gabriel Genellina
New submission from Gabriel Genellina [EMAIL PROTECTED]: Functions message_from_string and message_from_file are documented as belonging to the email.parser module, but in fact they live at the top of the email package. The .rst source looks fine, but the rendered html says

[issue1755388] Problem with socket.gethostbyaddr() and KeyboardInterrupt

2008-11-24 Thread Gabriel Genellina
Gabriel Genellina [EMAIL PROTECTED] added the comment: I think that closing it as wontfix is not the proper thing to do. It is a real bug; closing it will hide it from anybody that could potentially fix it. Also it won't appear on bug listings unless you explicitely ask for closed ones

[issue1755388] Problem with socket.gethostbyaddr() and KeyboardInterrupt

2008-11-24 Thread Gabriel Genellina
Changes by Gabriel Genellina [EMAIL PROTECTED]: -- components: +Library (Lib) -Interpreter Core ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1755388

[issue1755388] Problem with socket.gethostbyaddr() and KeyboardInterrupt

2008-11-26 Thread Gabriel Genellina
Gabriel Genellina [EMAIL PROTECTED] added the comment: Yes, I know it's a bug, and certainly closing this report won't help solve it. I can't reopen this. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1755388

[issue4309] ctypes documentation

2008-11-27 Thread Gabriel Genellina
Changes by Gabriel Genellina [EMAIL PROTECTED]: -- nosy: +gagenellina ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4309 ___ ___ Python-bugs-list

[issue4022] 2.6 dependent on c:\python26\ on windows

2008-11-27 Thread Gabriel Genellina
Changes by Gabriel Genellina [EMAIL PROTECTED]: -- nosy: +gagenellina ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4022 ___ ___ Python-bugs-list

[issue4315] On some Python builds, exec in a function can't create shadows of variables if these are declared global in another function of the same module

2008-11-27 Thread Gabriel Genellina
Changes by Gabriel Genellina [EMAIL PROTECTED]: -- nosy: +gagenellina ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4315 ___ ___ Python-bugs-list

[issue3826] BaseHTTPRequestHandler depends on GC to close connections

2008-11-29 Thread Gabriel Genellina
Gabriel Genellina [EMAIL PROTECTED] added the comment: --- El vie 28-nov-08, Gregory P. Smith [EMAIL PROTECTED] escribió: P.S. Gabriel Genellina (gagenellina) - Your comment sounded like you had a unit test for this but it never got attached. Still have it? I've found it; it uses

[issue4335] inspect.getsourcelines ignores last line in module

2008-12-05 Thread Gabriel Genellina
Changes by Gabriel Genellina [EMAIL PROTECTED]: -- nosy: +gagenellina ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4335 ___ ___ Python-bugs-list

[issue4426] UTF7 decoding is far too strict

2008-12-05 Thread Gabriel Genellina
Changes by Gabriel Genellina [EMAIL PROTECTED]: -- nosy: +gagenellina ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4426 ___ ___ Python-bugs-list

[issue3166] Make conversions from long to float correctly rounded.

2008-12-09 Thread Gabriel Genellina
Changes by Gabriel Genellina [EMAIL PROTECTED]: -- nosy: +gagenellina ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3166 ___ ___ Python-bugs-list

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2008-12-09 Thread Gabriel Genellina
Changes by Gabriel Genellina [EMAIL PROTECTED]: -- nosy: +gagenellina ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4566 ___ ___ Python-bugs-list

[issue4622] SequenceMatcher bug with long sequences

2008-12-10 Thread Gabriel Genellina
Gabriel Genellina [EMAIL PROTECTED] added the comment: Python 2.3.4 and later have this bug. But release 2.1.3 doesn't: Python 2.1.3 (#35, Apr 8 2002, 17:47:50) [MSC 32 bit (Intel)] on win32 Type copyright, credits or license for more information. import difflib difflib.SequenceMatcher(None

[issue4622] SequenceMatcher bug with long sequences

2008-12-10 Thread Gabriel Genellina
Gabriel Genellina [EMAIL PROTECTED] added the comment: #2986 may be a duplicate of this; #1528074 is relevant too. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4622

[issue3999] Real segmentation fault handler

2008-12-10 Thread Gabriel Genellina
Changes by Gabriel Genellina [EMAIL PROTECTED]: -- nosy: +gagenellina ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3999 ___ ___ Python-bugs-list

[issue4620] Memory leak with datetime used with time.strptime

2008-12-10 Thread Gabriel Genellina
Gabriel Genellina [EMAIL PROTECTED] added the comment: After running for more than 2 hours, I could not see any memory growth with 2.5.2 on WinXP. -- nosy: +gagenellina ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4620

[issue4216] subprocess.Popen hangs at communicate() when child exits

2008-12-15 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: I think communicate() works as documented now: reads stdout/stderr until EOF, *and* waits for subprocess to terminate. You're asking for a different method, or perhaps an optional parameter return_when_died to communicate, so

[issue4640] optparse - dosn't distinguish between '--option' and '-option'

2008-12-15 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: could you provide a test case / code fragment showing the bug? -- components: +Library (Lib) -Extension Modules nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http

[issue4643] cgitb.html fails if getattr call raises exception

2008-12-15 Thread Gabriel Genellina
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar: -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4643 ___ ___ Python-bugs

[issue4708] os.pipe should return inheritable descriptors (Windows)

2008-12-21 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: From the thread in c.l.p: Pros (of changing os.pipe() to return inheritable pipes): - as it isn't explicitely documented whether os.pipe() returns inheritable pipes or not, both versions are right according to the documentation

[issue4746] Misguiding wording 3.0 c-api reference

2008-12-25 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: Also, it isn't clear that the returned string must not be modified, and that the pointer lifetime is of the original string object itself. (This applies to all string and unicode formats). -- nosy: +gagenellina

[issue4722] _winreg.QueryValue fault while reading mangled registry values

2008-12-26 Thread Gabriel Genellina
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar: -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4722 ___ ___ Python-bugs

[issue4726] doctest gets line numbers wrong due to quotes in comments

2008-12-26 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: I could not reproduce the behaviour you describe. Could you provide a test case? That fails with the current code and is fixed after applying your patch. (BTW, the r.e. should be a raw string literal, even the original one

[issue4716] Python 3.0 halts on shutdown when settrace is set

2008-12-26 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: Yes, this is exactly the problem. The execution never goes beyond print ('here'); if you print frame.f_lineno you'll see it blocks at io.py line 1036, waiting for a Lock for the second time. So the trace function cannot use print

[issue4708] os.pipe should return inheritable descriptors (Windows)

2008-12-26 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: Patch to posixmodule.c including test case and documentation updates. Note: I've only run the tests on Windows. -- keywords: +patch Added file: http://bugs.python.org/file12460/inheritable_pipes.diff

[issue4710] [PATCH] zipfile.ZipFile does not extract directories properly

2008-12-26 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: Your usage of os.sep is incorrect, both when reading and writing directories. Zip files are (more-or-less) platform independent. The specification *requires* forward slashes in paths [1], and the zipfile module already writes them

[issue4756] zipfile.is_zipfile: added support for file-like objects

2008-12-26 Thread Gabriel Genellina
New submission from Gabriel Genellina gagsl-...@yahoo.com.ar: Patch to zipfile.is_zipfile, adding support for file and file-like objects. Includes test cases and documentation updates. This fixes issue4241 too. -- components: Library (Lib) files: is_zipfile_filelike.diff keywords

[issue4241] zipfile.py - is_zipfile leaves file open when error

2008-12-26 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: The patch for issue4756 fixes this too. -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4241

[issue3618] possible deadlock in IO library (Lib/io.py)

2008-12-26 Thread Gabriel Genellina
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar: -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3618 ___ ___ Python-bugs

[issue4643] cgitb.html fails if getattr call raises exception

2008-12-29 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: I believe a patch against the trunk would be enough, but should include a test case. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4643

[issue3023] Problem with invalidly-encoded command-line arguments (Unix)

2008-12-31 Thread Gabriel Genellina
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar: -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3023 ___ ___ Python-bugs

[issue4781] The function, Threading.Timer.run(), may be Inappropriate

2008-12-31 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: Note that doing this would change the class semantics. Timer [...] represents an action that should be run only after a certain amount of time has passed — a timer. and the example clearly shows that the action is run *once*. Timer

[issue4811] invalid reST markup in several documents

2009-01-02 Thread Gabriel Genellina
New submission from Gabriel Genellina gagsl-...@yahoo.com.ar: Several documents contain invalid reST markup that leaks into the html output (missing ``, incorrect indentation, etc.) This patch fixes the obvious ones. -- assignee: georg.brandl components: Documentation files: invalid

[issue4811] invalid reST markup in several documents

2009-01-02 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: I did a search on the .html files using a regular expression, and manually filtered out the false positives. The expression used was this ::[^=]|:[a-zA-Z][a-zA-Z0-9]+|`|\.\.\s*\w +: I'll try to come up with a useable tool

[issue4811] invalid reST markup in several documents

2009-01-04 Thread Gabriel Genellina
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar: Added file: http://bugs.python.org/file12579/suspicious.rar ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4811

[issue4905] Use INVALID_FILE_ATTRIBUTES instead of magic numbers

2009-01-12 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: The patch looks fine to me -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4905

[issue4903] binascii.crc32() - document signed vs unsigned results

2009-01-12 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: Just a small note on the wording: will have and will always be look too strong to me. I'd just use is, are. Present tense seems to be --in general-- the preferred style in the documentation. -- nosy: +gagenellina

[issue4926] putenv() accepts names containing '=', return value of unsetenv() not checked

2009-01-12 Thread Gabriel Genellina
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar: -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4926 ___ ___ Python-bugs

[issue4871] zipfile can't decrypt

2009-01-12 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: Lukas Lueg The default encoding is UTF8 What do you mean? Not inside a zip file. The default encoding is CP437 (the original IBM PC US character set). A zipfile password is a sequence of bytes, not characters, as defined

[issue4889] difflib

2009-01-12 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: You (as a human) most likely parse these lines: hostname vaijain123 hostname CAVANC1001CR1 as two words, the first one is the same, the second word changed. But difflib sees them more or less as: 21 letters, 8 of them are the same

[issue4945] json checks True/False by identity, not boolean value

2009-01-13 Thread Gabriel Genellina
New submission from Gabriel Genellina gagsl-...@yahoo.com.ar: json compares arguments against True/False by identity, not by boolean value; by example: if (skipkeys is False and ensure_ascii is True and check_circular is True and allow_nan is True ... Using `ensure_ascii=1` won't

[issue4945] json checks True/False by identity, not boolean value

2009-01-13 Thread Gabriel Genellina
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar: -- keywords: +patch Added file: http://bugs.python.org/file12736/json.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4945

[issue4944] os.fsync() doesn't work as expect in Windows

2009-01-13 Thread Gabriel Genellina
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar: Added file: http://bugs.python.org/file12738/checkfile.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4944

[issue4946] Lib/test/test__locale uses is to compare strings

2009-01-14 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: Yes, checking object identity is wrong in this case. Your patch looks fine to me. I've found several other is comparisons that should not be there -- working on a patch right now. -- nosy: +gagenellina

[issue4929] smptlib.py can raise socket.error

2009-01-14 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: On Windows, if you exit a process abnormally (using e.g. os._exit() in Python) while it still has open connections, the other side receives a WSAECONNRESET (error 10054). So, you could write a test case using a dumb server (running

[issue4947] sys.stdout fails to use default encoding as advertised

2009-01-14 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: It probably uses sys.getdefaultencoding() instead. That would be wrong too, according to the cited documentation. file.encoding is a read only attribute; it can be set in C code using PyFile_SetEncoding. Apart from its definition

[issue4952] Running Python Script to Run a C++ Code

2009-01-14 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: Please post your question to the Python users mailing list: python- l...@python.org -- mirrored as the comp.lang.python newsgroup too. Also, gmane.org provides a web interfase: http://dir.gmane.org/ gmane.comp.python.general Back

[issue4956] Py_Initialize needs to be done before file load (on msys+wine)

2009-01-15 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: what is WEIRD_DEBUG? why do you remove a test from string_tests.py? why do you modify a command in setup.py? What do you mean the file contents cannot be read under msys+wine? What specific error you have? The right thing to do

[issue4958] email/header.py ecre regular expression issue

2009-01-15 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: Your example header is invalid. Excerpt from RFC2047 http:// www.ietf.org/rfc/rfc2047.txt section 5: + An 'encoded-word' MUST NOT be used in parameter of a MIME Content-Type or Content-Disposition field, or in any structured

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2009-01-16 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: An attempt to more accurately describe the issue, to attract more knowledgeable people, I hope... -- components: +Library (Lib) nosy: +gagenellina title: Cannot upload binary file from form ? - cgi module cannot handle POST

[issue4956] Py_Initialize needs to be done before file load (on msys+wine)

2009-01-16 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: Ok, imagine for a moment that your patch is accepted and applied. Python runs in a wide variety of systems. Now imagine that, in a few of them, it stops running. What would you say to defend your changes? I have no idea why

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2009-01-16 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: You should stick to Python 2.6 (or even 2.5) for web programming - 3.0 is not mature enough. I thought this was a feasibility study on porting an existing application to Python 3.0 -- not your first steps in the language

[issue4969] mimetypes on Windows should read MIME database from registry (w/patch)

2009-01-17 Thread Gabriel Genellina
New submission from Gabriel Genellina gagsl-...@yahoo.com.ar: The mimetypes module has a built-in default database, and, in addition, reads mime.types files from a list of standard places (/etc/mime.types by example) On Windows, those files usually don't even present; MIME information

[issue4973] calendar formatyearpage returns bytes, not str

2009-01-18 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: This is the expected behavior; that's why the function takes an encoding argument. As it returns a complete XML document, it must be already encoded. Other methods return just document pieces, so str is fine. Probably should

[issue3881] IDLE won't start in custom directory.

2009-01-18 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: I installed Python to C:\Program Files\Python\2.6\ and when I try to run idle from the start menu, it doesn't work. C:\Program Files\Python\2.6\Lib\idlelibpython idle.py Traceback (most recent call last): File idle.py, line 21

[issue4979] random.uniform can return its upper limit

2009-01-18 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: Doc update -- keywords: +patch nosy: +gagenellina Added file: http://bugs.python.org/file12784/random.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4979

[issue4448] should socket readline() use default_bufsize instead of _rbufsize?

2009-01-19 Thread Gabriel Genellina
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar: -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4448 ___ ___ Python-bugs

[issue4944] os.fsync() doesn't work as expect in Windows

2009-01-20 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: Thanks for adapting the smaller example. I think I figured out what's the problem. The error reported by checkfile.c is 0x20 = ERROR_SHARING_VIOLATION The process cannot access the file because it is being used by another process. I

[issue5022] doctest should allow running tests with python -m doctest

2009-01-21 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: Already implemented in Python 2.6; please upgrade. 2.5 only gets security fixes at this time. -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5022

[issue5021] doctest.testfile should set __name__, can't use namedtuple

2009-01-21 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: After updating the import line, it still fails in 2.6, 3.0 and the current trunk. -- nosy: +gagenellina versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 -Python 2.5 ___ Python

[issue5038] urrlib2/httplib doesn't reset file position between requests

2009-01-23 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: This happens in other implementations too, not just urllib2. If the server supports it, the best way is to send an 'Expect: 100- Continue' header field before attempting to send the actual file. -- nosy: +gagenellina

[issue5037] unicode(x) for weakref.proxy objects invokes __str__ instead of __unicode__

2009-01-23 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: Same results on trunk. -- components: +Interpreter Core -None nosy: +gagenellina title: unexpected unicode behavior for proxy objects - unicode(x) for weakref.proxy objects invokes __str__ instead of __unicode__ versions

[issue5031] Thread.daemon docs

2009-01-23 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: This is a boolean value, and is False by default. Not true; the next sentence in the description explains where the default value comes from. I'd join both paragraphs to make it more clear: A boolean value indicating whether

[issue5031] Thread.daemon docs

2009-01-23 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: Looks fine to me. Bah, perhaps purists would write `daemon` = ``False`` , but I think the meaning is perfectly clear now. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5031

[issue5036] xml.parsers.expat make a dictionary which keys are broken if buffer_text is False.

2009-01-23 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: If the xml file is small enough, could you attach it to the issue? Or provide a download location? I could not find it myself (without downloading the whole package) (Note that Python 2.5 only gets security fixes now, so unless

[issue3677] importing from UNC roots doesn't work

2009-01-23 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: The path variable should be PyMem_Free'd (in both trunk and py3k) (also, I don't see any specific test - is there any?) -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http

[issue4999] multiprocessing.Queue does not order objects

2009-01-23 Thread Gabriel Genellina
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar: -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4999 ___ ___ Python-bugs

[issue5072] urllib.open sends full URL after GET command instead of local path

2009-01-26 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: I could not reproduce this issue neither with Python 2.6 nor 2.5.2 If I print host and selector near line 313, I get 'localhost:8000' and '/trac-dev', the expected results. Do you have an HTTP proxy? running at the *same* port

[issue5069] Use sets instead of list in posixpath._resolve_link

2009-01-26 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: Simple and correct. -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5069

[issue5053] http.client.HTTPMessage.getallmatchingheaders() always returns []

2009-01-26 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: I think unified diffs are preferred. Isn't there an existing test for this method? -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5053

[issue5067] Error msg from using wrong quotes in JSON is unhelpful

2009-01-26 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: This patch provides a better error message for this case:: json.loads({'test': test}) but still doesn't help in this one:: json.loads({test: 'test'}) 'test' looks like garbage to JSON (it *is* garbage!), exactly the same

  1   2   3   >