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

2009-01-13 Thread Gabriel Genellina
New submission from Gabriel Genellina : 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 work as intend

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

2009-01-13 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- keywords: +patch Added file: http://bugs.python.org/file12736/json.diff ___ Python tracker <http://bugs.python.org/issue4

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

2009-01-13 Thread Gabriel Genellina
Gabriel Genellina added the comment: I tried to reproduce the issue, interpreting your description, but failed. It worked fine in my setup. Perhaps you can add more elements until it fails. -- nosy: +gagenellina Added file: http://bugs.python.org/file12737/test_file_flush.py

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

2009-01-13 Thread Gabriel Genellina
Changes by Gabriel Genellina : Added file: http://bugs.python.org/file12738/checkfile.c ___ Python tracker <http://bugs.python.org/issue4944> ___ ___ Python-bugs-list m

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

2009-01-14 Thread Gabriel Genellina
Gabriel Genellina 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. -- nos

[issue4929] smptlib.py can raise socket.error

2009-01-14 Thread Gabriel Genellina
Gabriel Genellina 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 as another process

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

2009-01-14 Thread Gabriel Genellina
Gabriel Genellina added the comment: I patiently waited for all those 150MB to download, modified Misc.py, run the specified commands and got this error: build.py... : error 7000: Failed to start command C:\Program Files\Microsoft Visual Studio 8\Vc\bin\nmake.exe / nologo -s t build

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

2009-01-14 Thread Gabriel Genellina
Gabriel Genellina 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 in fileobject.c, it

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

2009-01-14 Thread Gabriel Genellina
Gabriel Genellina 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 to your question, the

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

2009-01-15 Thread Gabriel Genellina
Gabriel Genellina 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 would be to an

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

2009-01-15 Thread Gabriel Genellina
Gabriel Genellina added the comment: Your example header is invalid. Excerpt from RFC2047 section 5: + An 'encoded-word' MUST NOT be used in parameter of a MIME Content-Type or Content-Disposition field, or in any structured field body except within a 'comment'

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

2009-01-16 Thread Gabriel Genellina
Gabriel Genellina 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 with multipart/f

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

2009-01-16 Thread Gabriel Genellina
Gabriel Genellina added the comment: If you start the new thread *after* the file is closed, no race condition should exist. I'm sorry but I'm unable to follow the code you use to create threads and write the makefile; but you should verify that your original assertion "Onc

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

2009-01-16 Thread Gabriel Genellina
Gabriel Genellina 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, but it works for me!&quo

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

2009-01-16 Thread Gabriel Genellina
Gabriel Genellina 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 : 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 is stored in the reg

[issue4973] calendar formatyearpage returns bytes, not str

2009-01-18 Thread Gabriel Genellina
Gabriel Genellina 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 be better e

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

2009-01-18 Thread Gabriel Genellina
Gabriel Genellina 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\idlelib>python idle.py > Traceback (most recent call last): >

[issue4979] random.uniform can return its upper limit

2009-01-18 Thread Gabriel Genellina
Gabriel Genellina added the comment: Doc update -- keywords: +patch nosy: +gagenellina Added file: http://bugs.python.org/file12784/random.diff ___ Python tracker <http://bugs.python.org/issue4

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

2009-01-19 Thread Gabriel Genellina
Gabriel Genellina added the comment: > I'm quite certain that the makefile is generated before > the "make" > program is launched in separated process. Follow is the > original code > where the makefile is created (line 14) and a task is put > in queue (line

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

2009-01-19 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/issue4448> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2009-01-20 Thread Gabriel Genellina
Gabriel Genellina 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."

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

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

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

2009-01-21 Thread Gabriel Genellina
Gabriel Genellina 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 tracker <h

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

2009-01-23 Thread Gabriel Genellina
Gabriel Genellina 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: +g

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

2009-01-23 Thread Gabriel Genellina
Gabriel Genellina 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: +Python

[issue5031] Thread.daemon docs

2009-01-23 Thread Gabriel Genellina
Gabriel Genellina 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 w

[issue5031] Thread.daemon docs

2009-01-23 Thread Gabriel Genellina
Gabriel Genellina 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 <http://bugs.python.org/issue5

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

2009-01-23 Thread Gabriel Genellina
Gabriel Genellina 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 this still fails with 2.6

[issue3677] importing from UNC roots doesn't work

2009-01-23 Thread Gabriel Genellina
Gabriel Genellina 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 <http://bugs.python.

[issue4999] multiprocessing.Queue does not order objects

2009-01-23 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/issue4999> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2009-01-26 Thread Gabriel Genellina
Gabriel Genellina 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 added the comment: Simple and correct. -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/issue5069> ___ ___ Python-bugs-list m

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

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

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

2009-01-26 Thread Gabriel Genellina
Gabriel Genellina 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": 't

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

2009-01-26 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- keywords: +patch Added file: http://bugs.python.org/file12871/json-messages.diff ___ Python tracker <http://bugs.python.org/issue5

[issue5058] stop pgen.exe from generating CRLF-ended files and causing mayhem with win32-based patch submissions

2009-01-26 Thread Gabriel Genellina
Gabriel Genellina added the comment: I don't understand the issue. Those files *are* text files, and have CRLF on Windows as expected, like all other text files. I think you should fix your build process, or your environment, or your diff utility, or whatever is causing you a problem -

[issue5065] IDLE improve Subprocess Startup Error message

2009-01-26 Thread Gabriel Genellina
Gabriel Genellina added the comment: #1529142 would fix this issue also, if it were accepted. -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/issue5

[issue1529142] Allowing multiple instances of IDLE with sub-processes

2009-01-26 Thread Gabriel Genellina
Gabriel Genellina added the comment: If this patch were accepted, #5065 would be a non-issue then. -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/issue1529

[issue5062] Rlcompleter.Completer does not use __dir__ magic method

2009-01-26 Thread Gabriel Genellina
Gabriel Genellina added the comment: This is not a bug in rlcompleter; __dir__ is returning bogus items, and rlcompleter checks whether there exist actually an attribute with such name. Defining __getattr__ (or __getattribute__) and a matching __dir__ works fine: >>> class

[issue5051] test_update2 in test_os.py invalid due to os.environ.clear() followed by reliance on environ COMSPEC

2009-01-26 Thread Gabriel Genellina
Gabriel Genellina added the comment: I *did* have /bin/sh in a Windows box some time ago. Probably the test should check sys.platform in addition to /bin/sh existence. -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/issue5

[issue5062] Rlcompleter.Completer does not use __dir__ magic method

2009-01-26 Thread Gabriel Genellina
Gabriel Genellina added the comment: This is what rlcompleter does; it uses dir() to find out what names to return. Or do you mean that it should not iterate along __bases__ because this has already been done by dir()? ___ Python tracker <h

[issue5062] Rlcompleter.Completer does not use __dir__ magic method

2009-01-26 Thread Gabriel Genellina
Gabriel Genellina added the comment: The check is made to decide whether the attribute is a method or not (because methods get a "(" appended) -- for names that fail to exist, one could just omit the "(" and include the name anyway. rlcompleter does nothing special wit

[issue5074] python3 and ctypes, script causes crash

2009-01-26 Thread Gabriel Genellina
Gabriel Genellina added the comment: 3rd argument to GetEnvironmentVariableW is the buffer size in *characters*, not bytes. Your buffer has room for 20 characters only, not 40. You should use create_unicode_buffer instead. Probably the names create_unicode_buffer/create_string_buffer should

[issue5062] Rlcompleter.Completer does not use __dir__ magic method

2009-01-26 Thread Gabriel Genellina
Gabriel Genellina added the comment: The current behaviour is actually a requested feature: see #449227 I see your point, it may be annoying sometimes -- but calling a method is far more common than just getting a reference to it, so I think the current behaviour is fine (I'm talking

[issue5079] time.ctime docs refer to "time tuple" for default

2009-01-27 Thread Gabriel Genellina
Gabriel Genellina added the comment: It's already fixed in 2.6, 2.7 and 3.0 I'm unsure of 2.5 status regarding documentation updates. -- assignee: -> georg.brandl components: +Documentation -Library (Lib) nosy: +gagenellina, georg.brandl versions:

[issue5084] unpickling does not intern attribute names

2009-01-27 Thread Gabriel Genellina
Gabriel Genellina added the comment: Either my browser got crazy, or you uploaded the same patch (.py) twice. -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/issue5

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

2009-01-27 Thread Gabriel Genellina
Gabriel Genellina added the comment: > > Do you have an HTTP proxy? running at the *same* port? > (!) > > I dont understand this since *I already said* that *I > accessed* my Trac > environment using my web browser (Opera 9.63, I dont know > whether this > is rel

[issue5090] import tkinter library Visual C++ Concepts:C Run-Time Error R6034 when embeded python in c++

2009-01-28 Thread Gabriel Genellina
Gabriel Genellina added the comment: os and sys are builtin modules. See if you can import any other pure Python module. Also, see #4566 -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/issue5

[issue5090] import tkinter library Visual C++ Concepts:C Run-Time Error R6034 when embeded python in c++

2009-01-28 Thread Gabriel Genellina
Gabriel Genellina added the comment: (In case the fix in #4566 works for you, please let us know) ___ Python tracker <http://bugs.python.org/issue5090> ___ ___ Python-bug

[issue5105] sqlite3.Row class, handling duplicate column names resulting from a SQL join

2009-01-30 Thread Gabriel Genellina
Gabriel Genellina added the comment: I think this is a sqlite issue, not a Python one. cursor.description should return unique column names. -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/issue5

[issue5105] sqlite3.Row class, handling duplicate column names resulting from a SQL join

2009-01-30 Thread Gabriel Genellina
Gabriel Genellina added the comment: See http://www.sqlite.org/cvstrac/tktview?tn=3221 Try upgrading to the latest sqlite release. Or set "pragma full_column_names=ON;" import sqlite3 conn = sqlite3.connect(':memory:') cursor = conn.cursor() cursor.execute(&quo

[issue5099] subprocess.POpen.__del__() AttributeError (os module == None!)

2009-01-30 Thread Gabriel Genellina
Gabriel Genellina added the comment: At interpreter shutdown, the module's global variables are set to None before the module itself is released. __del__ methods may be called in those precaries circumstances, and should not rely on any global state. A temporary fix would be to make

[issue5099] subprocess.POpen.__del__() AttributeError (os module == None!)

2009-01-30 Thread Gabriel Genellina
Gabriel Genellina added the comment: Patch and test case against trunk -- versions: +Python 2.7, Python 3.0, Python 3.1 Added file: http://bugs.python.org/file12902/test_subprocess.diff ___ Python tracker <http://bugs.python.org/issue5

[issue5102] urllib2.py timeouts do not propagate across redirects for 2.6.1 (and 3.x?)

2009-01-30 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/issue5102> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2009-01-30 Thread Gabriel Genellina
Gabriel Genellina added the comment: Seems perfectly reasonable to me. -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/issue5094> ___ ___ Pytho

[issue4753] Faster opcode dispatch on gcc

2009-02-04 Thread Gabriel Genellina
Gabriel Genellina added the comment: > Might I suggest that the TARGET and TARGET_WITH_IMPL macros not > include the trailing colon? Yes, please! -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/

[issue5015] The Py_SetPythonHome C API function is undocumented

2009-02-04 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/issue5015> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1079] decode_header does not follow RFC 2047

2009-02-04 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/issue1079> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5141] C API for appending to arrays

2009-02-04 Thread Gabriel Genellina
Gabriel Genellina added the comment: Arrays already support the buffer interface -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/issue5

[issue5125] Strange locale problem with Python 3

2009-02-04 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/issue5125> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1660009] continuing problem with httplib multiple set-cookie headers

2009-02-09 Thread Gabriel Genellina
Gabriel Genellina added the comment: I think this report is outdated and no more relevant. -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/issue1660

[issue1856] shutdown (exit) can hang or segfault with daemon threads running

2009-02-09 Thread Gabriel Genellina
Gabriel Genellina added the comment: I think applying Rhamphoryncus' patch in #1722344 fixes this too (that is, move WaitForThreadShutdown from the end of PyMain into Py_Finalize, so it is always called) But it should be tested on several platforms. -- nosy: +gagene

[issue1777134] minidom pretty xml output improvement

2009-02-09 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/issue1777134> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18244] singledispatch: When virtual-inheriting ABCs at distinct points in MRO, composed MRO is dependent on haystack ordering

2013-06-30 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- nosy: +ggenellina ___ Python tracker <http://bugs.python.org/issue18244> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18318] Idle: stop depending on console output

2013-06-30 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- nosy: +ggenellina ___ Python tracker <http://bugs.python.org/issue18318> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13582] IDLE and pythonw.exe stderr problem

2013-06-30 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- nosy: +ggenellina ___ Python tracker <http://bugs.python.org/issue13582> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6562] OverflowError in RLock.acquire()

2009-07-25 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/issue6562> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6591] add reference to fcntl.ioctl in the socket module

2009-07-28 Thread Gabriel Genellina
New submission from Gabriel Genellina : socket.ioctl says it is Windows specific, and people may think there is no way to use ioctl with sockets in non-Windows platforms (see http://groups.google.com/group/comp.lang.python/browse_thread/ thread/246f4522ad215d74 ) This doc patch adds a

[issue6589] smtpd.SMTPServer can cause asyncore.loop to enter infinite event loop

2009-08-03 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/issue6589> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6570] Tutorial clarity: section 4.7.2, parameters and arguments

2009-08-03 Thread Gabriel Genellina
Gabriel Genellina added the comment: I'll try to rephrase the section. -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/issue6570> ___ ___

[issue6609] zipfile: WindowsError [267] The directory name is invalid

2009-08-03 Thread Gabriel Genellina
Gabriel Genellina added the comment: You're right, "aux" is a reserved name on Windows (like prn, con, and a few others). There is a way to force the OS to actually create such files, but not every tool can handle them correctly. If the zip file is intended to be Windows

[issue6598] calling email.utils.make_msgid frequently has a non-trivial probability of generating colliding ids

2009-08-03 Thread Gabriel Genellina
Gabriel Genellina added the comment: This patch replaces the random part with an increasing sequence (in a thread safe way). Also, added a test case for make_msgid (there was none previously) -- keywords: +patch nosy: +gagenellina Added file: http://bugs.python.org/file14643

[issue6598] calling email.utils.make_msgid frequently has a non-trivial probability of generating colliding ids

2009-08-03 Thread Gabriel Genellina
Changes by Gabriel Genellina : Added file: http://bugs.python.org/file14644/test_email.diff ___ Python tracker <http://bugs.python.org/issue6598> ___ ___ Python-bug

[issue6598] calling email.utils.make_msgid frequently has a non-trivial probability of generating colliding ids

2009-08-03 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- versions: -3rd party, Python 2.4, Python 2.5, Python 3.0 ___ Python tracker <http://bugs.python.org/issue6598> ___ ___ Pytho

[issue6636] Non-existant directory in sys.path prevents further imports

2009-08-04 Thread Gabriel Genellina
Gabriel Genellina added the comment: Looks like an optimization for the common case when directories aren't created "on the fly". Your proposal would slow down all imports (a typical sys.path actually contains a few nonexisting directories). Quoting PEP302: The resul

[issue6634] sys.exit() called from threads other than the main one: undocumented behaviour

2009-08-04 Thread Gabriel Genellina
Gabriel Genellina added the comment: I agree with you; the docs should be improved, and I see no reason for sys.exit("msg") NOT to write to stderr inside a child thread. -- nosy: +gagenellina ___ Python tracker <http://bugs.python.

[issue6632] Include more fullwidth chars in the decimal codec

2009-08-04 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/issue6632> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2009-08-04 Thread Gabriel Genellina
Gabriel Genellina added the comment: With 2.6.2 on Windows, I get filenames surrounded by {}, all in a single unicode string. The change may be related to the new Tk library used, not directly the tkFileDialog module. (BTW, I don't see *any* unit tests for tkinter :( ) --

[issue2710] error: (10035, 'The socket operation could not complete without blocking')

2009-08-04 Thread Gabriel Genellina
Gabriel Genellina added the comment: AFAIK, WSAEWOULDBLOCK means that the socket is in nonblocking mode and the attempted operation could wait indefinitely to complete. But I don't understand how that could happen since a previous select() confirmed the socket is writeable... Probabl

[issue6625] UnicodeEncodeError on pydoc's CLI

2009-08-04 Thread Gabriel Genellina
Gabriel Genellina added the comment: After applying your patch, are string (not unicode) docstrings still being handled properly? Adding a test case (in Lib/test/test_pydoc.py) would be nice too. -- nosy: +gagenellina ___ Python tracker <h

[issue5505] sys.stdin.read() doesn't return after first EOF on Windows

2009-08-04 Thread Gabriel Genellina
Gabriel Genellina added the comment: This is a duplicate of #1633941 -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/issue5505> ___ ___ Pytho

[issue6647] warnings.catch_warnings is not thread-safe

2009-08-04 Thread Gabriel Genellina
New submission from Gabriel Genellina : warnings.catch_warnings is a context manager supposed to save and restore warnings filters, and optionally record all warnings issued. But it does so in a completely thread-unsafe way, by replacing the module's "showwarning" and "fi

[issue6635] Profiler doesn't print usage (indexError instead)

2009-08-04 Thread Gabriel Genellina
Gabriel Genellina added the comment: The patch looks fine to me. -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/issue6635> ___ ___ Python-bug

[issue2710] error: (10035, 'The socket operation could not complete without blocking')

2009-08-04 Thread Gabriel Genellina
Gabriel Genellina added the comment: So this patch should fix it. But I cannot fire the bug using the posted example, and there are no test cases for this module yet, so I could not test it. -- keywords: +patch Added file: http://bugs.python.org/file14655/rpc.diff

[issue6598] calling email.utils.make_msgid frequently has a non-trivial probability of generating colliding ids

2009-08-07 Thread Gabriel Genellina
Gabriel Genellina added the comment: --- El jue 6-ago-09, Antoine Pitrou escribió: > Antoine Pitrou > added the comment: > > Is it ok if the message id is predictable? I don't know of any use of message ids apart from uniquely identifying the message, but we could still k

[issue6598] calling email.utils.make_msgid frequently has a non-trivial probability of generating colliding ids

2009-08-07 Thread Gabriel Genellina
Changes by Gabriel Genellina : Removed file: http://bugs.python.org/file14643/utils.diff ___ Python tracker <http://bugs.python.org/issue6598> ___ ___ Python-bugs-list m

[issue6598] calling email.utils.make_msgid frequently has a non-trivial probability of generating colliding ids

2009-08-07 Thread Gabriel Genellina
Changes by Gabriel Genellina : Added file: http://bugs.python.org/file14676/utils.diff ___ Python tracker <http://bugs.python.org/issue6598> ___ ___ Python-bugs-list m

[issue6700] inspect.getsource() returns incorrect source lines

2009-08-13 Thread Gabriel Genellina
New submission from Gabriel Genellina : inspect.getsource(obj) returns incorrect results when obj is a traceback or frame object outside any function (that is, at the module level). This demo script shows the problem. The correct output should contain all source lines in the module, but it

[issue6700] inspect.getsource() returns incorrect source lines

2009-08-13 Thread Gabriel Genellina
Changes by Gabriel Genellina : Added file: http://bugs.python.org/file14717/show_inspect_bug.py ___ Python tracker <http://bugs.python.org/issue6700> ___ ___ Python-bug

[issue4015] [patch] make installed scripts executable on windows

2009-08-14 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/issue4015> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2576] httplib read() very slow due to lack of socket buffer

2009-08-14 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/issue2576> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6682] Default traceback does not handle PEP302 loaded modules

2009-08-14 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/issue6682> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6556] "HOME" is not a standard environment variable on Windows

2009-08-14 Thread Gabriel Genellina
Gabriel Genellina added the comment: %HOME% isn't set by Windows. %HOMEDRIVE%%HOMEPATH% points to the user's home directory. %USERPROFILE% is where the user's profile is stored, and may or may not be the same as his home directory. %HOMEDRIVE%%HOMEPATH% should be used then

[issue6666] List of dirs to ignore in trace.py is applied only for the first file

2009-08-14 Thread Gabriel Genellina
Gabriel Genellina added the comment: That's exactly the change 2to3 would suggest for that line. The guy doing the conversion must have missed it. -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/i

[issue6804] IDLE: Detect Python files even if name doesn't end in .py

2009-08-29 Thread Gabriel Genellina
New submission from Gabriel Genellina : A Python source file name doesn't necesarily end in .py/.pyw; on Linux, scripts usually have no extension but are recognized by its shebang line. Windows uses file type associations: .py files are of type Python.File, and .pyc file

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2009-08-29 Thread Gabriel Genellina
Gabriel Genellina added the comment: Note that this is also a documentation issue: "The pickle serialization format is guaranteed to be backwards compatible across Python releases." -- assignee: -> georg.brandl components: +Documentation nosy: +gagenellina,

[issue6828] wrongly highlighted blocks in the Tutorial

2009-09-02 Thread Gabriel Genellina
New submission from Gabriel Genellina : In the tutorial, some blocks were wrongly highlighted as being Python code when they were actually just program output. This patch adds the missing ``highlightlang:: none`` declarations. See http://permalink.gmane.org/gmane.comp.python.general/636597

[issue6858] This is a python file, apply syntax highlighting

2009-09-07 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/issue6858> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6412] Titlecase as defined in Unicode Case Mappings not followed

2009-09-16 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/issue6412> ___ ___ Python-bugs-list mailing list Unsubscribe:

<    1   2   3   >