[ python-Bugs-1479099 ] 'compile' built-in function failures when missing EOL

2006-04-29 Thread SourceForge.net
Bugs item #1479099, was opened at 2006-04-30 01:00
Message generated for change (Comment added) made by oripel
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1479099&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Parser/Compiler
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Ori Peleg (oripel)
Assigned to: Nobody/Anonymous (nobody)
Summary: 'compile' built-in function failures when missing EOL

Initial Comment:
The 'compile' built-in function sometimes fails when
given a source string that doesn't end in an EOL.

The following example crashes Python 2.3, 2.4, and 2.5a1:

prompt> ./python2.5 -c "compile('def foo(x):\n
pass\n#abc', 'blah.py', 'exec')"
Traceback (most recent call last):
  File "", line 1, in 
  File "blah.py", line 3
#abc
  ^
SyntaxError: invalid syntax

Attached is a patch to Lib/test/test_compile.py with a
test for this.

--

>Comment By: Ori Peleg (oripel)
Date: 2006-04-30 01:07

Message:
Logged In: YES 
user_id=1131251

The case that led me to this was calling
'trace.find_executable_linenos' on source files with this
condition.

See also
https://opensvn.csie.org/traccgi/testoob/trac.cgi/ticket/206

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1479099&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1473560 ] urllib2.Request constructor to urllib.quote the url given

2006-04-29 Thread SourceForge.net
Bugs item #1473560, was opened at 2006-04-20 17:02
Message generated for change (Comment added) made by nkour
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1473560&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: None
Status: Closed
Resolution: Works For Me
Priority: 5
Submitted By: Nikos Kouremenos (nkour)
Assigned to: Nobody/Anonymous (nobody)
Summary: urllib2.Request constructor to urllib.quote the url given

Initial Comment:
urllib2.Request('http://www.google.com/search?client=firefox&q=foo
bar', None)


this fails. it shouldn't

--

>Comment By: Nikos Kouremenos (nkour)
Date: 2006-04-29 14:34

Message:
Logged In: YES 
user_id=865368

it's foo bar not foobar. and space should be automatcally
become %20 (urllib.quote()) but it doesn't. please reopen

--

Comment By: Georg Brandl (gbrandl)
Date: 2006-04-28 22:19

Message:
Logged In: YES 
user_id=849994

I don't know what your problem is. This works perfectly for me:

>>> r =
urllib2.Request("http://www.google.com/search?client=firefox&q=foobar";,
None)
>>> o = urllib2.HTTPHandler()
>>> u = o.http_open(r)
>>> u.read()
"..."

Closing as "Works for me". If you have another problem,
please reopen

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1473560&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1478529 ] size limit exceeded for read() from network drive

2006-04-29 Thread SourceForge.net
Bugs item #1478529, was opened at 2006-04-28 16:46
Message generated for change (Comment added) made by gbrandl
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1478529&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Windows
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Mark Sheppard (markshep)
Assigned to: Nobody/Anonymous (nobody)
Summary: size limit exceeded for read() from network drive

Initial Comment:
If you've got a network share mounted as a local drive
then Windows has a limit of 67,076,095 (0x03ff7fff)
bytes for a read from an open file on that drive.

Running the python read() method on an open file larger
than this size throws an "IOError: [Errno 22] Invalid
argument" exception.

A fix would be for python to internally use multiple
reads so as to not exceed this limit.


--

>Comment By: Georg Brandl (gbrandl)
Date: 2006-04-29 13:23

Message:
Logged In: YES 
user_id=849994

How can it be determined whether exactly this restriction
caused the "invalid argument" error? If it can't, there's
nothing that can be done -- restricting all reads just
because of a Windows limitation doesn't seem right.

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1478529&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1474677 ] non-keyword argument following keyword

2006-04-29 Thread SourceForge.net
Bugs item #1474677, was opened at 2006-04-22 16:11
Message generated for change (Comment added) made by gbrandl
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1474677&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Parser/Compiler
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: George Yoshida (quiver)
Assigned to: Jeremy Hylton (jhylton)
Summary: non-keyword argument following keyword

Initial Comment:
  def foo(a,b=None):pass
  foo(b=1,2)

With Python 2.5(compiled as of 2006-04-23), this code
runs without any error.

In older Python(although I didn't check every version
of it), I get
  File "foo.py", line 2
foo(b=1,2)
SyntaxError: non-keyword arg after keyword arg


--

>Comment By: Georg Brandl (gbrandl)
Date: 2006-04-29 13:51

Message:
Logged In: YES 
user_id=849994

Patch attached.

--

Comment By: Neal Norwitz (nnorwitz)
Date: 2006-04-25 05:48

Message:
Logged In: YES 
user_id=33168

Confirmed 2.5 behaviour and regression from 2.[34].

--

Comment By: Neal Norwitz (nnorwitz)
Date: 2006-04-25 05:47

Message:
Logged In: YES 
user_id=33168

Jeremy, could you look at this?

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1474677&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1479099 ] 'compile' built-in function failures when missing EOL

2006-04-29 Thread SourceForge.net
Bugs item #1479099, was opened at 2006-04-30 01:00
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1479099&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Parser/Compiler
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Ori Peleg (oripel)
Assigned to: Nobody/Anonymous (nobody)
Summary: 'compile' built-in function failures when missing EOL

Initial Comment:
The 'compile' built-in function sometimes fails when
given a source string that doesn't end in an EOL.

The following example crashes Python 2.3, 2.4, and 2.5a1:

prompt> ./python2.5 -c "compile('def foo(x):\n
pass\n#abc', 'blah.py', 'exec')"
Traceback (most recent call last):
  File "", line 1, in 
  File "blah.py", line 3
#abc
  ^
SyntaxError: invalid syntax

Attached is a patch to Lib/test/test_compile.py with a
test for this.

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1479099&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com