Changes by Gabriel Genellina :
--
nosy: +gagenellina
___
Python tracker
<http://bugs.python.org/issue4926>
___
___
Python-bugs-list mailing list
Unsubscribe:
Gabriel Genellina 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
in the specification. Proba
Gabriel Genellina 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, 1
Gabriel Genellina added the comment:
Yes, the unicode flag is irrelevant to the password. To successfuly
decrypt a file, one must know the password *and* the encoding in use
when it was written, so the only sensible thing to do is to accept
bytes only.
Your patch looks good to me with a few
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:
New submission from Gabriel C :
The following results in a segfault on 3.7.4 (running on macOS high sierra) and
3.5 (running on ubuntu 16.04). It does not happen in python 2.7.
The problem seems to involve two effects. The first is the creation of a class
with a dynamic type that inherits
Gabriel C added the comment:
Some further investigation suggests this may have nothing to do with pickle at
all.
Consider the following short example:
```
def CreateDynamicClass(basetype):
class DynamicClassImpl(basetype):
def __init__(self):
super(DynamicClassImpl
New submission from Gabriel Costa :
>>> datetime.now(timezone.utc).timestamp()
1626556067.054988
>>> datetime.utcnow().timestamp()
1626566875.174921
Should there be a difference between the two modes?
--
components: C API
messages: 397733
nosy: gabhcosta
priorit
New submission from Gabriel Tardif :
Hello
This bug is about the maxtasksperchild parameter in the Pool object constructor
of the multiprocessing module.
When you set processes = 1 in the Pool constructor
maxtasksperchild value is double by two for unknow raison whatever the
maxtaskperchild
Change by Gabriel Tardif :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue39458>
___
___
Python-bugs-list
Gabriel Tardif added the comment:
Be aware that maxtasksperchild work together with the chunksize parameter of
the map fonction when you use it and the default chunksize value is not 1, it's
calculated according to your inputs, process and other parameters.
--
resolution: -&g
New submission from Jose Gabriel :
I was doing a small serial communication system using pyserial. when I done the
script on a .py file, it not worked. but when I opened
the python console and writed line by line the same code of the .py file, it
worked.
the .py file:
import serial
ser
New submission from Gabriel Somlo:
C programs using PyMem_MALLOC in pymem.h generate a warning when
-Wint-in-bool-context is enabled (typically through -Wall). In places where
-Werror is enabled (such as RPM build), this causes the build to fail with an
error that looks like:
...
In file
Gabriel Somlo added the comment:
This attachment illustrates how the problem is triggered. The file is part of
the CORE network emulator (github.com/coreemu/core). Compile with "gcc -Wall
-I/usr/include/python2.7 -c netnsmodule.c".
--
Added file: http://bugs.python.org
Gabriel Somlo added the comment:
output of "gcc -E -Wall -I/usr/include/python2.7 -c netnsmodule.c > foo.c"
I think gcc7 is a bit more paranoid about whether some expression evaluating to
an int can/should in itself be used as a Boolean (i.e., without being compared
to 0).
---
Gabriel Corona added the comment:
Now that the default PRNG of the 'random' package is automatically reseeded at
fork, wouldn't it make sense to reseed the OpenSSL seed as well?
(At the same time the OpenSSL wiki states [1] that "The situation has changed
greatly, s
New submission from Gabriel Corona :
The CLI tools shipped in Debian python-rdflib-tools package can load modules
from the current directory [1]:
$ echo 'print("Something")' > cgi.py
$ rdf2dot
INFO:rdflib:RDFLib Version: 4.2.2
Something
Reading from
Gabriel POTTER added the comment:
To be precise, i cannot detect (only know if the file exist) any file located in
C:/Windows/... (in particulary System32)
contrary to Python 2.7 where it was possible.
--
___
Python tracker
<http://bugs.python.
New submission from Gabriel POTTER:
If python 3 is installed on another drive (for instance D:/), then it cannot
access any C:/ files, but can access D:/ files.
I use:
open("C:/path/")
The same function did work under python 2.7 but now doesn't anymore.
That means that
Gabriel POTTER added the comment:
Thanks for your answers. I'll try to be as precise as possible.
The problem i have is really specific:
I have a custom file, that i added in C:/Windows/System32/
I have a Windows 10 x64 computer, with 2 versions of python installed:
- Python 2.7,
Gabriel POTTER added the comment:
Thanks a lot, that resolved it.
--
resolution: -> works for me
stage: -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.or
New submission from Gabriel Hearot :
Traceback (most recent call last):
File "setup.py", line 45, in
classifiers=[]
File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.6/distutils/dist.py&qu
New submission from Gabriel Tremblay :
Types under the typing module used to behave like other python classes
regarding the __name__ attribute before Python 3.7. The behavior seems to have
changed to a non-standard way.
Py3.6
>>> from typing import List
>>> dir(List)
[
Gabriel McManus added the comment:
I don't know of any other OS that implements epoll, so this is issue is likely
no longer a problem. Although it is strange to convert -1 to -1000 (as though
from seconds to milliseconds), it may not be worth cha
Gabriel Marko added the comment:
@vstinner:
> For diversity reasons, it would be nice to try to avoid "master" and "slave"
> terminology which can be associated to slavery.
This is too vague. Define what "diversity reasons" are and elaborate your
point.
Gabriel Marko added the comment:
@mcepl: I completely agree with you that we shouldn't waste time with this. I
would be better not to dig into the discussion about "master-slave"
terminology. IMO we don't even need to go into that as the problem here is more
substan
Gabriel Marko added the comment:
@cheryl.sabella let me challenge some points in your arguments:
> Based on that, I don't think it's fair to blame Victor for bringing it up for
> discussion.
Ok, but where was the discussion? @vstinner didn't even make a point and
Gabriel Marko added the comment:
The discussion under GH PRs is now censored. What will be the next level?
--
___
Python tracker
<https://bugs.python.org/issue34
Gabriel Marko added the comment:
Come on guys. Stop this madness. :(
--
nosy: +suic
___
Python tracker
<https://bugs.python.org/issue34660>
___
___
Python-bug
Gabriel Marko added the comment:
@Mariatta:
> There will be no further discussion about this.
Repeating this over and over again won't solve the (any) issue. This madness
reached another level here: https://bugs.python.org/issue34660. That was
exactly my point here: https://bugs.py
Gabriel Marko added the comment:
@serhiy.storchaka: IMO, the problem isn't the master/slave terminology itself
but the way how the changes were introduced (no discussion) and the
justification ("diversity reasons"???).
IMO this is the next level: https://bugs.python.org/i
Gabriel Marko added the comment:
@terry.reedy: By madness I meant:
1. blank replacement of words without relevant justification. Collecting 5
links and labelling some words as pejorative or ist or do it for
“diversity reasons” etc. is no justification. I have no problem with changing
Gabriel Marko added the comment:
@terry.reedy
> Gabriel, I believe I addressed most your concerns in my previous post.
I don't think so (see below) but we don't have to agree in everything. :)
> Are you are suggesting that we judge proposals _by the proposer_, rather than
Change by Gabriel Marko :
--
nosy: -suic
___
Python tracker
<https://bugs.python.org/issue34694>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Gabriel Marko :
--
nosy: -suic
___
Python tracker
<https://bugs.python.org/issue34660>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Gabriel Marko :
--
nosy: -suic
___
Python tracker
<https://bugs.python.org/issue34605>
___
___
Python-bugs-list mailing list
Unsubscribe:
Gabriel Marko added the comment:
@terry.reed:
I politely ask you: Please use my proper first name if you refer to me and
please don't call me an extremist (like here
https://bugs.python.org/msg325802). Feel free to criticize my opinion but don't
put labels on me. We don't
101 - 200 of 323 matches
Mail list logo