[issue2508] When you create a file using file(path, "w") if the filename is illegal it throws an irrelevant error message

2008-03-29 Thread kobi

Changes by kobi <[EMAIL PROTECTED]>:


--
nosy: kobipe3
severity: normal
status: open
title: When you create a file using file(path, "w") if the filename is illegal 
it throws an irrelevant error message
type: resource usage
versions: Python 2.5

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2508>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2508] When you create a file using file(path, "w") if the filename is illegal it throws an irrelevant error message

2008-03-29 Thread kobi

New submission from kobi <[EMAIL PROTECTED]>:

It throws an IOError: ... No such file or directory: %path% instead of 
IOError: Invalid file name.

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2508>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20116] urlparse.parse_qs should take argument for query separator

2019-02-17 Thread Kobi Gana


Kobi Gana  added the comment:

Hi all,

Please take the next case:
The url - 
http://hostname.domain/mypage.asp?fields=id&query=%22((release%3D{id%3D1004});(sprint%3D{id%3D1040});(team%3D{id%3D1004});(severity%3D{id%3D%27list_node.severity.urgent%27});!phase%3D{id+IN+%27phase.defect.closed%27,%27phase.defect.duplicate%27,%27phase.defect.rejected%27})%22

The Query as string - 
fields=id&query=%22((release%3D{id%3D1004});(sprint%3D{id%3D1040});(team%3D{id%3D1004});(severity%3D{id%3D%27list_node.severity.urgent%27});!phase%3D{id+IN+%27phase.defect.closed%27,%27phase.defect.duplicate%27,%27phase.defect.rejected%27})%22

The expected pairs - 
1. fields=id
2. 
query=%22((release%3D{id%3D1004});(sprint%3D{id%3D1040});(team%3D{id%3D1004});(severity%3D{id%3D%27list_node.severity.urgent%27});!phase%3D{id+IN+%27phase.defect.closed%27,%27phase.defect.duplicate%27,%27phase.defect.rejected%27})%22

The actual output -
1. ('fields', 'id')
2. ('query', '"((release={id=1004})')
3. ('(sprint={id=1040})', '')
4. ('(team={id=1004})', '')
5. ("(severity={id='list_node.severity.urgent'})", '')
6. ('!phase={id IN 
\'phase.defect.closed\',\'phase.defect.duplicate\',\'phase.defect.rejected\'})"',
 '')

--
nosy: +Kobi Gana
Added file: https://bugs.python.org/file48146/parse_querystring.py

___
Python tracker 
<https://bugs.python.org/issue20116>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20116] urlparse.parse_qs should take argument for query separator

2019-02-18 Thread Kobi Gana


Kobi Gana  added the comment:

We are on the same page and we should also consider marked this as defect.

Thanks

On Sun, Feb 17, 2019 at 7:44 PM nr  wrote:

>
> nr  added the comment:
>
> W3C allows both constructs, ampersand and semicolon.
> https://www.w3.org/TR/html401/appendix/notes.html#h-B.2.2
>
> Especially servlet containers and servers running CGI programs often use
> semicolons as a separator.
>
> I would say to parse either ampersands OR semicolons and keep a priority
> to ampersands.
>
> For example the query strings:
>
>
> ?fields=id&query=%22((release%3D{id%3D1004});(sprint%3D{id%3D1040});(team%3D{id%3D1004});(severity%3D{id%3D%27list_node.severity.urgent%27});!phase%3D{id+IN+%27phase.defect.closed%27,%27phase.defect.duplicate%27,%27phase.defect.rejected%27})%22
>
> ?fruits=lemon;lime&family=citrus
>
> should be parsed with & separators only.
>
> The modified example without & character:
> ?fruits=lemon;family=citrus
>
> can be parsed with semicolon as a separator because it contains both '='
> and ';' but no '&' characters.
>
> --
> nosy: +nr
>
> ___
> Python tracker 
> <https://bugs.python.org/issue20116>
> ___
>

--

___
Python tracker 
<https://bugs.python.org/issue20116>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com