[issue28591] imghdr doesn't recognize some jpeg formats

2016-11-02 Thread Raul

New submission from Raul:

Some valid JPEG images are not detected by the imghdr lib.

--
components: Library (Lib)
files: 1.jpg
messages: 279940
nosy: 4simple-org, Claudiu.Popa, ezio.melotti, haypo, intgr, jcea, joril, 
kovid, mvignali, r.david.murray
priority: normal
severity: normal
status: open
title: imghdr doesn't recognize some jpeg formats
type: enhancement
versions: Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7
Added file: http://bugs.python.org/file45317/1.jpg

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



[issue28591] imghdr doesn't recognize some jpeg formats

2016-11-02 Thread Raul

Raul added the comment:

Other valid jpeg image not detected.

--
Added file: http://bugs.python.org/file45318/2.jpg

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



[issue28228] imghdr does not support pathlib

2016-11-02 Thread Raul

Raul added the comment:

patch for python 2.7

--
nosy: +4simple-org
Added file: http://bugs.python.org/file45320/imghdr27.patch

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



[issue28591] imghdr doesn't recognize some jpeg formats

2016-11-02 Thread Raul

Raul added the comment:

patch for python 2.7

--
keywords: +patch
Added file: http://bugs.python.org/file45321/imghdr27.patch

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



[issue28591] imghdr doesn't recognize some jpeg formats

2016-11-02 Thread Raul

Raul added the comment:

patch for python 3.X

--
Added file: http://bugs.python.org/file45322/imghdr35.py

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



[issue28228] imghdr does not support pathlib

2016-11-02 Thread Raul

Changes by Raul :


Removed file: http://bugs.python.org/file45320/imghdr27.patch

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



[issue28591] imghdr doesn't recognize some jpeg formats

2016-11-02 Thread Raul

Changes by Raul :


Removed file: http://bugs.python.org/file45322/imghdr35.py

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



[issue28591] imghdr doesn't recognize some jpeg formats

2016-11-02 Thread Raul

Raul added the comment:

patch for python 3.X

--
Added file: http://bugs.python.org/file45323/imghdr35.patch

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



[issue28591] imghdr doesn't recognize some jpeg formats

2016-11-02 Thread Raul

Raul added the comment:

Working imghdr lib for python 2.7.X

--
Added file: http://bugs.python.org/file45324/imghdr_py27.py

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



[issue28591] imghdr doesn't recognize some jpeg formats

2016-11-02 Thread Raul

Raul added the comment:

Working imghdr lib for python 3.X

--
Added file: http://bugs.python.org/file45325/imghdr_py3.py

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



[issue28591] imghdr doesn't recognize some jpeg formats

2016-11-10 Thread Raul

Raul added the comment:

New patch for imghdr bug, including unittets. This patch works on python 3.x

--
Added file: http://bugs.python.org/file45432/imghdr_py3.patch

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



[issue28591] imghdr doesn't recognize some jpeg formats

2016-11-10 Thread Raul

Raul added the comment:

Image used in the unit-tests of previous patch.
Add it under Lib/test/imghdrdata/python1.jpg

--
Added file: http://bugs.python.org/file45433/python1.jpg

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



[issue28591] imghdr doesn't recognize some jpeg formats

2016-11-10 Thread Raul

Raul added the comment:

The issue16512 don't solve the problem, note how the patch it provide fails to 
detect all the valid JPEG images attached in this issue.

--

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



[issue28591] imghdr doesn't recognize some jpeg formats

2016-11-10 Thread Raul

Raul added the comment:

New patch for imghdr bug, including unittets. This patch works on python 2.7

--
Added file: http://bugs.python.org/file45434/imghdr_py27.patch

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



[issue13516] Gzip old log files in rotating handlers

2011-12-01 Thread Raul Morales

New submission from Raul Morales :

Sometimes log files grow very quickly and consume too much disk space (e.g. 
DEBUG), so compress old log files saves disk space without losing the 
information from log files.

I propose to add a "gzip" or "compress" argument to RotatingFileHandler and 
TimedRotatingFileHandler to select the number of old files you want to compress.

For example, if you set the argument to 0 (default) no files are gzipped , but 
if you set it to 3 you get the following log files:
app.log
app.log.1
app.log.2
app.log.3.gz
app.log.4.gz
...
app.log.n.gz

For TimedRotatingFileHandler it works similar, gzipping from the n-th newer log 
file to the oldest log file:
app.log
app.log.2011-12-01
app.log.2011-11-30
app.log.2011-11-29.gz
app.log.2011-11-28.gz
...

A possible patch is attached

--
components: Library (Lib)
files: log.patch
keywords: patch
messages: 148732
nosy: ramhux, vinay.sajip
priority: normal
severity: normal
status: open
title: Gzip old log files in rotating handlers
type: feature request
versions: Python 3.3
Added file: http://bugs.python.org/file23830/log.patch

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



[issue13516] Gzip old log files in rotating handlers

2011-12-12 Thread Raul Morales

Raul Morales  added the comment:

I use a similar code in my scripts, but I thought it could be useful to have 
this feature built into python.

If you prefer subclassing for compression, what about a compressing subclass 
built into logging package?

If you think it is a good feature, I will be able to work on it next week, and 
to add support for other formats.

--

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



[issue13516] Gzip old log files in rotating handlers

2011-12-12 Thread Raul Morales

Raul Morales  added the comment:

Interesting, then I will wait your post. Thanks.

--

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



[issue13516] Gzip old log files in rotating handlers

2011-12-14 Thread Raul Morales

Raul Morales  added the comment:

I have just posted a comment, too.

http://plumberjack.blogspot.com/2011/12/improved-flexibility-for-log-file.html?showComment=1323891345946#c2875224484376643310

With this approach, anyone can implement support for any format easily. It is 
powerful. But IMHO, built-in support for Gzip and Zip formats would cover the 
basic needs of almost all platforms where python run.

Mix-in classes can be implemented in just a few lines of code, and it matches 
with your idea. Of course, IMHO.

--

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



[issue13516] Gzip old log files in rotating handlers

2011-12-14 Thread Raul Morales

Raul Morales  added the comment:

Ok, it is reasonable. It has no sense add support for compression since I am 
the only user who want it.

Maybe in the future ;)

--

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



[issue39652] sqlite3 bug handling column names that contain square braces

2020-02-16 Thread Raul Gallegos


Raul Gallegos  added the comment:

Thanks for reporting this issue, I have a PR here 
https://github.com/python/cpython/pull/18533 but that still needs some 
clarification, because there were some tests that were actually testing that we 
were stripping everything after the square brackets.

P.D. this is my first contribution :)

--
nosy: +elrull

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



[issue39652] sqlite3 bug handling column names that contain square braces

2020-03-11 Thread Raul Gallegos


Raul Gallegos  added the comment:

hi @serhiy.storchaka is this something that you think could be done by a new 
contributor? I'd really love to take care of this, I can improve on the PR I 
was preparing https://github.com/python/cpython/pull/18533

--

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