andrej added the comment:
Is there a reason why this patch has not been implemented in the
official release (2.5.4)? I am having plenty of troubles using it in a
similar program.
--
nosy: +andrej
___
Python tracker
<http://bugs.python.org/issue1
New submission from Andrej Klychin :
I saw that pablogsal welcomed improvments to the parser's suggestions, so here
are the messages for parameters and arguments lists I think should be written
instead of the current generic "invalid syntax".
>>> def foo(*arg,
Andrej Klychin added the comment:
I also sometimes write def foo(pos_only, /*, kwarg): pass. Perhaps this can be
special cased with
SyntaxError: expected comma between / and *
--
___
Python tracker
<https://bugs.python.org/issue46
Andrej Klychin added the comment:
@terry.reedy, I based that error message on current >>> foo(**{}, *())
SyntaxError: iterable argument unpacking follows keyword argument unpacking
and >>> foo(__debug__=True)
SyntaxError: cannot assign to __debug__
but the final erro
Changes by Andrej Krpic :
--
nosy: +akrpic77
___
Python tracker
<http://bugs.python.org/issue9067>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Andrej Krpic :
--
nosy: +akrpic77
___
Python tracker
<http://bugs.python.org/issue10966>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Andrej Krpic :
Windows doesn't accept negative timestamps (stated in the comment), yet checks
is made against os.name instead of sys.platform.
patch fixes that, and also enables windows ce to pass on this test.
I think this is better than having os.name in (&quo
Changes by Andrej Krpic :
--
components: +Windows
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue7879>
___
___
Python-bugs-list mai
New submission from Andrej Klychin :
I'm not sure is it a bug or a fecature of comprehensions or eval, but
intuitively it seems like it should work.
def foo(baz):
return eval("[baz for _ in range(10)]")
foo(3)
Traceback (most recent call last):
File "", line
New submission from Andrej Krpic :
Patch provides consistency with include guards already present in core.
This issue is somehow next step to #1495999 and #1492356.
These headers are missing from MSVC when targeting MS Windows CE .
HAVE_PROCESS_H already used in:
Modules/posixmodule.c, Python
Changes by Andrej Krpic :
--
nosy: +akrpic77
status: pending -> open
___
Python tracker
<http://bugs.python.org/issue8142>
___
___
Python-bugs-list mai
New submission from Andrej Krpic:
Function shutil.copy opens source file with open('rb') and destination file
with open('wb') and then proceeds to copy the content.
If you create child process from the same python process during that time, that
process will inherit open
Andrej Antonov added the comment:
$ python
Python 3.5.1 (default, Dec 7 2015, 12:58:09)
[GCC 5.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>>
>>>
Changes by Andrej Antonov :
--
nosy: +polymorphm
___
Python tracker
<http://bugs.python.org/issue26460>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Andrej A Antonov :
good day!
"xmlrpc.client.ServerProxy()" -- not has "timeout"-parameter
"xmlrpc.client.Transport()" and "xmlrpc.client.SafeTransport()" -- not has
"timeout"-parameter too
but "http.client.HTT
Andrej A Antonov added the comment:
in this subject -- I think about like this changes (see file
"example-of-changes.patch")
--
keywords: +patch
Added file: http://bugs.python.org/file24675/example-of-changes.patch
___
Python trac
Andrej A Antonov added the comment:
Jeff McNeil (mcjeff)> I would think it might make more sense just to make the
change to the Transport object. Since there's an argument for a transport on
ServerProxy already, that seems more straightforward and keeps the network
layer isola
Changes by Andrej A Antonov :
--
nosy: +polymorphm
___
Python tracker
<http://bugs.python.org/issue21356>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andrej A Antonov added the comment:
@demian.brecht , your example code-fragment is too big. :-)
too many lines -- just only for adding "timeout". it is uncomfortably.
most people will not using that: most likely they just will forget about
"timeout" (but in *MOST*
Andrej A Antonov added the comment:
@demian.brecht , socket.setdefaulttimeout([timeout]) -- it is bad practice,
because setting this global varible we may spoil other cases. example "TCP
keepalive" [ s.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, true) ]
and global variab
Andrej A Antonov added the comment:
ok, let's go to other side of this problem:
question: why default transport (xmlrpc.client.Transport()) is not setting
value of timeout?``
answer: because *unknown* which value need to using by default.
in various cases programmer need various ti
Andrej A Antonov added the comment:
>> if you NOT point timeout in "RPC-client" -- you program will freeze or will
>> maked resource leak (with small probability).
> Assuming a lack of concurrency, your program will indeed freeze until the
> system timeout has been
Andrej A Antonov added the comment:
I just will write next code-fragment:
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM, socket.IPPROTO_TCP)
s.connect(('python.org', 80))
print(
'is my operation system using (by default) "tcp
Andrej A Antonov added the comment:
>> in GNU/Linux "system timeout has been reached" -- means that system timeout
>> will *never* reached.
> That's quite likely because the system limits may be very large.
I tested system-timeout GNU/Linux (on various computer
Andrej A Antonov added the comment:
@demian.brecht , for high probably to catch *infinite_freeze* (at GNU/Linux) --
if we may will run requests of "xmlrpc.client.ServerProxy" -- parallely:
(when running next code -- need to make some network-disconnections on
"network-
Andrej A Antonov added the comment:
good patch (issue14134.patch) ! thanks!
--
___
Python tracker
<http://bugs.python.org/issue14134>
___
___
Python-bugs-list m
Changes by Andrej A Antonov :
--
nosy: +polymorphm
___
Python tracker
<http://bugs.python.org/issue24755>
___
___
Python-bugs-list mailing list
Unsubscribe:
27 matches
Mail list logo