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
Changes by Gabriel Genellina :
--
keywords: +patch
Added file: http://bugs.python.org/file12736/json.diff
___
Python tracker
<http://bugs.python.org/issue4
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
Changes by Gabriel Genellina :
Added file: http://bugs.python.org/file12738/checkfile.c
___
Python tracker
<http://bugs.python.org/issue4944>
___
___
Python-bugs-list m
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
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
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
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
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
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
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'
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
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
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
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
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
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
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):
>
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
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
Changes by Gabriel Genellina :
--
nosy: +gagenellina
___
Python tracker
<http://bugs.python.org/issue4448>
___
___
Python-bugs-list mailing list
Unsubscribe:
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."
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
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
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
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
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
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
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
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.
Changes by Gabriel Genellina :
--
nosy: +gagenellina
___
Python tracker
<http://bugs.python.org/issue4999>
___
___
Python-bugs-list mailing list
Unsubscribe:
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?
Gabriel Genellina added the comment:
Simple and correct.
--
nosy: +gagenellina
___
Python tracker
<http://bugs.python.org/issue5069>
___
___
Python-bugs-list m
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
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
Changes by Gabriel Genellina :
--
keywords: +patch
Added file: http://bugs.python.org/file12871/json-messages.diff
___
Python tracker
<http://bugs.python.org/issue5
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 -
Gabriel Genellina added the comment:
#1529142 would fix this issue also, if it were accepted.
--
nosy: +gagenellina
___
Python tracker
<http://bugs.python.org/issue5
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
Changes by Gabriel Genellina :
--
nosy: +gagenellina
___
Python tracker
<http://bugs.python.org/issue5102>
___
___
Python-bugs-list mailing list
Unsubscribe:
Gabriel Genellina added the comment:
Seems perfectly reasonable to me.
--
nosy: +gagenellina
___
Python tracker
<http://bugs.python.org/issue5094>
___
___
Pytho
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/
Changes by Gabriel Genellina :
--
nosy: +gagenellina
___
Python tracker
<http://bugs.python.org/issue5015>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Gabriel Genellina :
--
nosy: +gagenellina
___
Python tracker
<http://bugs.python.org/issue1079>
___
___
Python-bugs-list mailing list
Unsubscribe:
Gabriel Genellina added the comment:
Arrays already support the buffer interface
--
nosy: +gagenellina
___
Python tracker
<http://bugs.python.org/issue5
Changes by Gabriel Genellina :
--
nosy: +gagenellina
___
Python tracker
<http://bugs.python.org/issue5125>
___
___
Python-bugs-list mailing list
Unsubscribe:
Gabriel Genellina added the comment:
I think this report is outdated and no more relevant.
--
nosy: +gagenellina
___
Python tracker
<http://bugs.python.org/issue1660
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
Changes by Gabriel Genellina :
--
nosy: +gagenellina
___
Python tracker
<http://bugs.python.org/issue1777134>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Gabriel Genellina :
--
nosy: +ggenellina
___
Python tracker
<http://bugs.python.org/issue18244>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Gabriel Genellina :
--
nosy: +ggenellina
___
Python tracker
<http://bugs.python.org/issue18318>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Gabriel Genellina :
--
nosy: +ggenellina
___
Python tracker
<http://bugs.python.org/issue13582>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Gabriel Genellina :
--
nosy: +gagenellina
___
Python tracker
<http://bugs.python.org/issue6562>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Changes by Gabriel Genellina :
--
nosy: +gagenellina
___
Python tracker
<http://bugs.python.org/issue6589>
___
___
Python-bugs-list mailing list
Unsubscribe:
Gabriel Genellina added the comment:
I'll try to rephrase the section.
--
nosy: +gagenellina
___
Python tracker
<http://bugs.python.org/issue6570>
___
___
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
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
Changes by Gabriel Genellina :
Added file: http://bugs.python.org/file14644/test_email.diff
___
Python tracker
<http://bugs.python.org/issue6598>
___
___
Python-bug
Changes by Gabriel Genellina :
--
versions: -3rd party, Python 2.4, Python 2.5, Python 3.0
___
Python tracker
<http://bugs.python.org/issue6598>
___
___
Pytho
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
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.
Changes by Gabriel Genellina :
--
nosy: +gagenellina
___
Python tracker
<http://bugs.python.org/issue6632>
___
___
Python-bugs-list mailing list
Unsubscribe:
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 :( )
--
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
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
Gabriel Genellina added the comment:
This is a duplicate of #1633941
--
nosy: +gagenellina
___
Python tracker
<http://bugs.python.org/issue5505>
___
___
Pytho
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
Gabriel Genellina added the comment:
The patch looks fine to me.
--
nosy: +gagenellina
___
Python tracker
<http://bugs.python.org/issue6635>
___
___
Python-bug
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
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
Changes by Gabriel Genellina :
Removed file: http://bugs.python.org/file14643/utils.diff
___
Python tracker
<http://bugs.python.org/issue6598>
___
___
Python-bugs-list m
Changes by Gabriel Genellina :
Added file: http://bugs.python.org/file14676/utils.diff
___
Python tracker
<http://bugs.python.org/issue6598>
___
___
Python-bugs-list m
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
Changes by Gabriel Genellina :
Added file: http://bugs.python.org/file14717/show_inspect_bug.py
___
Python tracker
<http://bugs.python.org/issue6700>
___
___
Python-bug
Changes by Gabriel Genellina :
--
nosy: +gagenellina
___
Python tracker
<http://bugs.python.org/issue4015>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Gabriel Genellina :
--
nosy: +gagenellina
___
Python tracker
<http://bugs.python.org/issue2576>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Gabriel Genellina :
--
nosy: +gagenellina
___
Python tracker
<http://bugs.python.org/issue6682>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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,
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
Changes by Gabriel Genellina :
--
nosy: +gagenellina
___
Python tracker
<http://bugs.python.org/issue6858>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Gabriel Genellina :
--
nosy: +gagenellina
___
Python tracker
<http://bugs.python.org/issue6412>
___
___
Python-bugs-list mailing list
Unsubscribe:
101 - 200 of 247 matches
Mail list logo