New submission from Beda Kosata:
While re.sub normally returns unicode strings when processing unicode,
it returns a normal string when dealing with an empty unicode string.
Example:
print type( re.sub( XX, , u))
type 'str'
print type( re.sub( XX, , uA))
type 'unicode'
This inconsistency
Vinay Sajip added the comment:
I'm not sure I agree with If fileConfig has no delay_fh option,
fileConfig() would create the FileHandlers with delay_fh as False.
fileConfig will create the FileHandlers using the args= section entry to
pass to the constructor. Hence, by specifying True for this
New submission from christen:
September 11, 2007 I downloaded py 3.k
The good news :
Under Windows, Python 3k properly reads files larger than 4 Go (in
contrast to python 2.5 that skips some lines, see below)
The bad news : py 3k is very slow compared to py 2.5; see the results below
the code
Martin v. Löwis added the comment:
If you would like to help resolving the issue with the missing lines,
please submit a separate report for that. It is very difficult to track
unrelated bugs in a single tracker issue. It would help if you could
determine which lines are missing, e.g. by writing
christen added the comment:
Hi Martin
I could certainly do that, but how you get my huge files ? 5 Go of data
is quite big...
If you want to compute runtimes, it is better to not convert them to
local time. Instead, use the pattern
start = time.time()
...
print time.time()-start #
Chris Leary added the comment:
Ah, I see what the miscommunication is now.
Yes, implementing the feature as you suggested would give the user the
ability to specify the delayed handle-opening /within/ the configuration
file. What I had intended was a way to load/inspect a file configuration
Martin v. Löwis added the comment:
I could certainly do that, but how you get my huge files ? 5 Go of data
is quite big...
[not sure what that is] I did not mean to suggest that you attach such
a large file. Instead, just report that as a separate bug report, and be
prepared to answer
Stefan Sonnenberg-Carstens added the comment:
Perhaps this is an issue of line separation ?
Could you provide the output of wc -l on a *NIX box ?
And, could you try with this code:
import sys
print(sys.version_info)
import time
print (time.localtime())
Stefan Sonnenberg-Carstens added the comment:
Sorry, this way:
import sys
print(sys.version_info)
import time
print (time.strftime('%Y-%m-%d %H:%M:%S'))
fichin=open(r'D:\pythons\16s\total_gb_161_16S.gb')
start = time.time()
for i,li in enumerate(fichin):
if i%100==0 and i0:
christen added the comment:
Hi Stefan
Calculations are underway
both read and write do not work well with p3k
you can try the code below on your own machine :
fichout.write(str(i)+' '*59+'\n') #generates a big file
fichout.write(str(i)+'\n') #generate file 4Go
the big file is not
New submission from christen:
Error in reading 4Go files under windows
try this:
import sys
print(sys.version_info)
import time
print (time.strftime('%Y-%m-%d %H:%M:%S'))
liste=[]
start = time.time()
fichout=open('test.txt','w')
for i in xrange(85014961):
if i%500==0 and i0:
christen added the comment:
made an error in copy paste
if you replace by
fichout.write(str(i)+' '*59+'\n')
should be
if you replace by
fichout.write(str(i)+'\n')
of course :-(
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1142
Guido van Rossum added the comment:
Committed revision 58093.
--
resolution: - accepted
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1125
__
Guido van Rossum added the comment:
I agree. I wonder if it should return Unicode as soon as *any* of the
arguments are unicode???
--
nosy: +gvanrossum
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1140
__
Guido van Rossum added the comment:
Actually, it already implements the best possible rules, *except* for
the special case of an empty 3rd argument. (When there are no
substitutions, it normally returns the input unchanged; but somehow an
empty input is handled with a shortcut even before that
Bill Janssen added the comment:
I think the example in Lib/test/test_ssl.py will have to suffice.
It would be nice to have an asyncore example server, too.
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue783188
Ali Gholami Rudi added the comment:
The same as issue1028. Fixed in r57450.
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1774736
_
___
Python-bugs-list mailing list
Changes by Martin v. Löwis:
--
assignee: - loewis
severity: normal - major
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1734346
_
___
Python-bugs-list mailing
Guido van Rossum added the comment:
Here's a patch.
--
assignee: - gvanrossum
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1140
__Index: Lib/test/test_re.py
Changes by Brett Cannon:
--
superseder: - re incompatibility in sre
title: Traceback error when compiling Regex - Traceback error when compiling
Regex
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1456280
Stefan Sonnenberg-Carstens added the comment:
Error confirmed for this python:
Python 3.0a1 (py3k, Sep 10 2007, 22:45:51)
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
See this:
[EMAIL PROTECTED]:~$ python2.4 large_io.py
(2, 4, 4, 'final', 0)
2007-09-10 21:41:52
(500,
Changes by Brett Cannon:
--
resolution: accepted -
type: - behavior
versions: +Python 2.6
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue214033
___
Changes by Stefan Sonnenberg-Carstens:
--
components: +Interpreter Core
title: code sample showing errors reading large files with py 2.5 - code
sample showing errors reading large files with py 2.5/3.0
versions: +Python 3.0
__
Tracker [EMAIL PROTECTED]
Changes by Brett Cannon:
--
priority: - urgent
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1096
__
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Martin v. Löwis:
--
resolution: - duplicate
status: open - closed
superseder: - Tkinter binding involving Control-spacebar raises unicode error
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1774736
Martin v. Löwis added the comment:
Marking as out-of-date
--
resolution: - out of date
status: open - closed
superseder: - server-side ssl support
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue783188
Brett Cannon added the comment:
Fixed in rev. 58096.
--
assignee: - brett.cannon
nosy: +brett.cannon
resolution: - fixed
status: open - closed
versions: +Python 2.6
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1096
Guido van Rossum added the comment:
Here's a better patch that also fixes a few related issues.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1140
__Index: Lib/test/test_re.py
Guido van Rossum added the comment:
Fredrik, thoughts?
--
assignee: gvanrossum - effbot
nosy: +effbot
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1140
__
___
Bill Janssen added the comment:
Fixed in rev 58097.
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1583946
_
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Bill Janssen:
--
resolution: - fixed
status: open - closed
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1583946
_
___
Python-bugs-list mailing list
Guido van Rossum added the comment:
PythonMeister, what do you mean, confirmed? Your read loop ends printing
('total lines read ', 85014960)
which is the expected output. (It's one less than the number of lines
written due to a bug in the program -- it prints the 0-based ordinal of
the last
Bill Janssen added the comment:
Fixed in rev 58097.
--
resolution: - fixed
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1065
__
___
Fredrik Lundh added the comment:
(is there a way to just add a comment in the new tracker, btw, or is
everything a change note, even if nothing has changed?)
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1140
__
Fredrik Lundh added the comment:
Well, I spent a minute hunting around for a comment field or an add
comment button. Guess this is a you only need to learn this once
thing...
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1140
Guido van Rossum added the comment:
Thanks, Fredrik.
Fixed in 2.6.
Committed revision 58098.
Someone else could backport to 2.5.
Shouldn't be merged into 3.0.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1140
__
Changes by Fredrik Lundh:
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1140
__
___
Python-bugs-list mailing list
Unsubscribe:
Fredrik Lundh added the comment:
Looks like a *documentation* bug to me; at the implementation level,
None just means no empty parts, treat runs of whitespace as separators.
--
nosy: +effbot
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1123
Nir Soffer added the comment:
I did not look into the source, but obviously there is striping of
leading and trailing whitespace.
When you specify a separator you get:
' '.split(' ')
['', '', '']
' a b '.split(' ')
['', 'a', 'b', '']
So one would expect to get this without striping:
Guido van Rossum added the comment:
Committed revision 58099.
(I had to backport test_typechecks.py myself, and fix one issue in abc.py.)
Are you going to backport _abcoll.py and its tests?
--
assignee: - gvanrossum
nosy: +gvanrossum
resolution: - accepted
status: open - closed
Fredrik Lundh added the comment:
But wasn't your complaint that the implementation didn't match the
documentation?
As I said, the *implementation* treats runs of whitespace as
separators, except for whitespace at the beginning or end (or in other
words, it never returns empty strings). That
Stefan Sonnenberg-Carstens added the comment:
I can confirm that under Linux (Linux nx6310 2.6.22-1-mepis-smp #1 SMP
PREEMPT Wed Sep 5 22:23:08 EDT 2007 i686 GNU/Linux, SimplyMepis 7.0b3)
1. using Python 3.0a1 is _very_ slow
2. it eats all your cpu (see my post)
I did not take the time to wait
42 matches
Mail list logo