priority: normal
severity: normal
status: open
title: HTTPS and sending a big file size hangs.
type: behavior
versions: Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17948
Antoine Pitrou added the comment:
Hello Jesus, this report is far too vague to make anything about it. You should
try to diagnose the issue further, here are some ideas:
- check whether it happens with another server than IIS
- try if you can reproduce without Mercurial being involved (simply
James O'Cull added the comment:
We have more information on this bug here. It's SSL v2 related when pushing to
IIS.
http://stackoverflow.com/a/16486104/97964
Here's a paste from the StackOverflow answer:
I found a few ways of dealing with this issue:
To fix this server-side
Antoine Pitrou added the comment:
Thank you for pointing this out. I am frankly shocked that IIS would defaut to
SSLv2 (an obsolete and insecure version of the protocol), while Python's (and
certainly Mercurial's) default settings allow for higher protocol versions.
If you are interested in
Antoine Pitrou added the comment:
Closing as won't fix. I hope you'll find a reasonable to deal with this, sorry
:-/
--
resolution: - wont fix
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17948
James O'Cull added the comment:
I appreciate the response all the same. Thanks for taking the time to look at
it, Antoine.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17948
___
Jesús Vidal Panalés added the comment:
Thank you. I will modify IIS security to disable SSL older verions.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17948
___
I am new to Python but have used many other (mostly dead) languages in the
past. I want to be able to process *.txt and *.csv files. I can now read that
and then change them as needed – mostly just take a column and do some if-then
to create a new variable. My problem is sorting these files:
John Filben wrote:
I am new to Python but have used many other (mostly dead) languages in
the past. I want to be able to process *.txt and *.csv files. I can
now read that and then change them as needed – mostly just take a column
and do some if-then to create a new variable. My problem is
mk wrote:
John Filben wrote:
I am new to Python but have used many other (mostly dead) languages in
the past. I want to be able to process *.txt and *.csv files. I can
now read that and then change them as needed – mostly just take a
column and do some if-then to create a new variable. My
MRAB pyt...@mrabarnett.plus.com writes:
mk wrote:
John Filben wrote:
I am new to Python but have used many other (mostly dead) languages
in the past. I want to be able to process *.txt and *.csv files.
I can now read that and then change them as needed – mostly just
take a column and do
John, there's an error in my program, I forgot that list.sort() method
doesn't return the list (it sorts in place). So it should look like:
#!/usr/bin/python
def sortit(fname):
fo = open(fname)
linedict = {}
for line in fo:
key = line[:3]
linedict[key] = line
MRAB wrote:
[snip]
Simpler would be:
lines = f.readlines()
lines.sort(key=lambda line: line[ : 3])
or even:
lines = sorted(f.readlines(), key=lambda line: line[ : 3]))
Sure, but a complete newbie (I have this impression about OP) doesn't
have to know about lambda.
I expected
On Wed, Mar 3, 2010 at 8:19 AM, John Filben johnfil...@yahoo.com wrote:
I am new to Python but have used many other (mostly dead) languages in the
past. I want to be able to process *.txt and *.csv files. I can now read
that and then change them as needed – mostly just take a column and do
On Mar 12, 10:50 pm, Andrew Rekdal [EMAIL PROTECTED] wrote:
Well, I can see how this could get real messy but within defining a GUI
there are many elements and so the block of elements such as a wx.notebook
for instance I would hope I could place all the code for this in another
file and
I am working in the class constructor defining elements of an application. The
problem is the file is getting unmanageble and I am wanting to extend the
contructor __init__ to another file.
Is it possible to import directly into the contructor the contents of another
module file?
If so how
On Mar 12, 5:42 pm, Andrew Rekdal [EMAIL PROTECTED] wrote:
I am working in the class constructor defining elements of an application.
The problem is the file is getting unmanageble and I am wanting to extend the
contructor __init__ to another file.
Is it possible to import directly into the
On Wed, 12 Mar 2008 19:42:44 -0500, Andrew Rekdal wrote:
I am working in the class constructor defining elements of an
application. The problem is the file is getting unmanageble and I am
wanting to extend the contructor __init__ to another file.
Is it possible to import directly into the
On Mar 12, 9:42 pm, Andrew Rekdal [EMAIL PROTECTED] wrote:
I am working in the class constructor defining elements of an application.
The problem is the file is getting unmanageble and I am wanting to extend the
contructor __init__ to another file.
Is it possible to import directly into the
Well, I can see how this could get real messy but within defining a GUI
there are many elements and so the block of elements such as a wx.notebook
for instance I would hope I could place all the code for this in another
file and somehow include it into place. This way I can work on layered
Jp Calderone wrote:
fileIter = iter(big_file)
for line in fileIter:
line_after = fileIter.next()
Don't mix iterating with any other file methods, since it will confuse the
buffering scheme.
Isn't a file an iterable already?
[GCC 3.3.3 20040412 (Red Hat Linux 3.3.3-7)] on
sorry lost the first line in pasting:
Python 2.4.1 (#1, Jun 21 2005, 12:38:55)
:/
--
http://mail.python.org/mailman/listinfo/python-list
it returns things other than files. Like a StringIO object,
which can be quite handy. True, it won't be a big file, but it'd
be nice if the same code would tolerate it. I've used this with
e.g. PIL quite a bit when working with Zope, because it isn't
really desireable to have to write the file out
Hi,
I've a couple of questions regarding the processing of a big text file
(16MB).
1) how does python handle:
for line in big_file:
is big_file all read into memory or one line is read at a time or a buffer
is used or ...?
2) is it possible to advance lines within the loop? The following
martian [EMAIL PROTECTED] wrote:
1) how does python handle:
for line in big_file:
is big_file all read into memory or one line is read at a time or a buffer
is used or ...?
The right way to do this is:
for line in file (filename):
whatever
The file object returned by file() acts as
On Sun, 3 Jul 2005 23:52:12 +0200, martian [EMAIL PROTECTED] wrote:
Hi,
I've a couple of questions regarding the processing of a big text file
(16MB).
1) how does python handle:
for line in big_file:
is big_file all read into memory or one line is read at a time or a buffer
is used or ...?
Jp Calderone [EMAIL PROTECTED] wrote:
Yes, but you need to do it like this:
fileIter = iter(big_file)
for line in fileIter:
line_after = fileIter.next()
That's better than the solution I posted.
--
http://mail.python.org/mailman/listinfo/python-list
Roy Smith [EMAIL PROTECTED] writes:
The right way to do this is:
for line in file (filename):
whatever
The file object returned by file() acts as an iterator. Each time through
the loop, another line is read and returned (I'm sure there is some
block-level buffering going on at a low
Mike Meyer wrote:
Roy Smith [EMAIL PROTECTED] writes:
The right way to do this is:
for line in file (filename):
whatever
The file object returned by file() acts as an iterator. Each time through
the loop, another line is read and returned (I'm sure there is some
block-level buffering
Michael Hoffman wrote:
Mike Meyer wrote:
Guido has made a pronouncement on open vs. file. I think he prefers
open for opening files, and file for type testing, but may well be
wrong. I don't think it's critical.
He has said that open() may be used for things other than files in the
30 matches
Mail list logo