[issue10900] bz2 module fails to uncompress large files

2011-01-13 Thread wrobell
New submission from wrobell wrob...@pld-linux.org: There is problem to uncompress large files with bz2 module. For example, please download 13GB OpenStreetMap file using following torrent http://osm-torrent.torres.voyager.hr/files/planet-latest.osm.bz2.torrent Try to count lines

[issue10900] bz2 module fails to uncompress large files

2011-01-13 Thread wrobell
wrobell wrob...@pld-linux.org added the comment: Forgot the mention the real amount of lines! bzip2 -dc planet-110105.osm.bz2 | wc -l 2783595867 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10900

[issue5863] bz2.BZ2File should accept other file-like objects.

2011-01-13 Thread wrobell
wrobell wrob...@pld-linux.org added the comment: A use case wget -O http://planet.openstreetmap.org/planet-110112.osm.bz2 | tee planet.bz2 | osm2sql | psql osm planet-*osm.bz2 files are 14GB at the moment. it would be great to read them from stdin while downloading from a server

[issue5863] bz2.BZ2File should accept other file-like objects.

2011-01-13 Thread wrobell
wrobell wrob...@pld-linux.org added the comment: OK! :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5863 ___ ___ Python-bugs-list mailing

[issue4681] mmap offset should be off_t instead of ssize_t, and size calculation needs corrected

2011-02-09 Thread wrobell
wrobell wrob...@pld-linux.org added the comment: will this patch support off_t for mmap.resize as well? ftruncate uses off_t for the length of a file as well. -- nosy: +wrobell ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue4681] mmap offset should be off_t instead of ssize_t, and size calculation needs corrected

2011-02-10 Thread wrobell
wrobell wrob...@pld-linux.org added the comment: will this patch support off_t for mmap.resize as well? ftruncate uses off_t for the length of a file as well. No, it doesn't because resize() resizes the amount mmapped in memory which can't be more than ssize_t anyway. However, resizing

[issue4681] mmap offset should be off_t instead of ssize_t, and size calculation needs corrected

2011-02-10 Thread wrobell
wrobell wrob...@pld-linux.org added the comment: Ross, you are completely right. thanks for the tips! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4681

[issue10130] Create epub format docs and offer them on the download page

2011-02-16 Thread wrobell
wrobell wrob...@pld-linux.org added the comment: it would be nice to have some short TOC at the beginning. at the moment, one has to scroll through several pages of what's new in python [23].[0-9] table of contents until he/she gets into tutorial. -- nosy: +wrobell

[issue2157] sqlite numeric type conversion problems

2008-02-21 Thread wrobell
New submission from wrobell: Numeric type conversion does not always work when using SQLite module. Let's assume schema: create table test_num(no numeric); Fetching a `test_num.no` table gives float by default. Now, let's register some converter sqlite3.register_converter('numeric

[issue2157] sqlite numeric type conversion problems

2008-02-27 Thread wrobell
wrobell added the comment: fair enough, but... 1. i really do not see that behaviour documented, i.e. http://docs.python.org/lib/node347.html says nothing about types being broken on space character. 2. i am bit missing the point about backward compability. when looking

[issue1006238] cross compile patch

2011-05-19 Thread wrobell
wrobell wrob...@pld-linux.org added the comment: What is the current status of this patch? What is missing to apply it upstream? -- nosy: +wrobell ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1006238

[issue1006238] cross compile patch

2011-05-20 Thread wrobell
wrobell wrob...@pld-linux.org added the comment: Senthil, I would be more than happy to do that but for Python 3.2 (or there is no chance to backport it?). Python 3.3 is too far in time at the moment. -- ___ Python tracker rep...@bugs.python.org

[issue1597850] Cross compiling patches for MINGW

2011-05-20 Thread wrobell
Changes by wrobell wrob...@pld-linux.org: -- nosy: +wrobell ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1597850 ___ ___ Python-bugs-list mailing

[issue3754] cross-compilation support for python build

2011-05-20 Thread wrobell
Changes by wrobell wrob...@pld-linux.org: -- nosy: +wrobell ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3754 ___ ___ Python-bugs-list mailing

[issue1006238] cross compile patch

2011-05-20 Thread wrobell
wrobell wrob...@pld-linux.org added the comment: Hi Eric, Good point. I was just about ask, which bug and patch are the primary ones? :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1006238

[issue3754] cross-compilation support for python build

2011-05-25 Thread wrobell
wrobell wrob...@pld-linux.org added the comment: Would it be possible to get list of steps required to test this patch? 1. hg clone 2. copy config.sub and config.guess? 3. autoreconf 4. configure... 5. make What else? -- ___ Python tracker rep

[issue3754] cross-compilation support for python build

2011-05-25 Thread wrobell
wrobell wrob...@pld-linux.org added the comment: well, looking at the first comment, there is required more than simple read of the manual (i.e. missing config.guess/config.sub). is anything else missing or required? -- ___ Python tracker rep

[issue3754] cross-compilation support for python build

2011-05-26 Thread wrobell
wrobell wrob...@pld-linux.org added the comment: as well, by default one experiences checking for /dev/ptmx... not set configure: error: set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling the workaround: 1. create config.site file with the following lines

[issue3754] cross-compilation support for python build

2011-05-26 Thread wrobell
wrobell wrob...@pld-linux.org added the comment: next question. when starting compilation i am getting In file included from Include/Python.h:50, from ./Modules/python.c:3: Include/pyport.h:257:13: error: #error This platform's pyconfig.h needs to define PY_FORMAT_LONG_LONG

[issue3754] cross-compilation support for python build

2011-05-26 Thread wrobell
wrobell wrob...@pld-linux.org added the comment: looking into configure.in the above fails due to following check AC_MSG_CHECKING(for %lld and %llu printf() format support) the check compiles and tries to _run_ a bit of software to determine lld/llu support. that of course fails (we

[issue13282] the table of contents in epub file is too long

2011-10-28 Thread wrobell
New submission from wrobell wrob...@pld-linux.org: the table of contents in python documentation epub file is very very long. it takes several long minutes to jump from first page to a part containing language reference toc. imho it would be great if first page of epub file contained pointers

[issue9338] argparse optionals with nargs='+' can't be followed by positionals

2011-08-04 Thread wrobell
wrobell wrob...@pld-linux.org added the comment: is there a chance to fix this issue? -- nosy: +wrobell ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9338

[issue15062] argparse: option for a positional argument

2012-06-13 Thread wrobell
New submission from wrobell wrob...@pld-linux.org: it would be great if argparse allowed to specify options for multiple positional arguments, i.e. usage: ascript [-h] [-k value] input [[-k value] input ...] output then $ ascript pos1 pos2 -k 1 pos3 -k 2 pos4 pos5 pos6 out would give

[issue15062] argparse: option for a positional argument

2012-06-13 Thread wrobell
wrobell wrob...@pld-linux.org added the comment: an example would be a pdf merger accepting multiple files and allowing to specify list of pages for each input. at the moment, you can do the following with argparse pdfmerge [pages] input [[pages] input ...] output of course, above

[issue5364] documentation in epub format

2009-02-25 Thread wrobell
New submission from wrobell wrob...@pld-linux.org: python documentation can be downloaded in pdf format (a4, us letter), html and text plain. they are useful for printing and computer based viewing, but not so good to read on ebook hardware/software (i.e. sony prs-{505,700} or stanza ebook

[issue5364] documentation in epub format

2009-02-25 Thread wrobell
wrobell wrob...@pld-linux.org added the comment: probably sphinx/docutils deserve their own tickets, but appropriate tools support will not guarantee, that documentation in epub format is going to be published on http://docs.python.org/download.html if documentation won't be published

[issue34498] Python 3.7+ break on singledispatch_function.register(pseudo_type), which Python 3.6 accepted

2021-12-30 Thread wrobell
wrobell added the comment: To add bit more context, there is a discussion about Python types and annotation types, where suggestion of closing this bug has been raised https://github.com/python/mypy/issues/9773 The discussion is about the need of distinction between Python types

[issue46014] functools.singledispatch does not support Union types

2021-12-30 Thread wrobell
wrobell added the comment: Will it support Optional as well? According to PEP-604, these two shall be equivalent (using Python 3.10 below)? ``` type(int | None) types.UnionType type(tp.Optional[int]) typing._UnionGenericAlias ``` Also, IMHO, the documentation of singledispatch should