[issue46375] io.BytesIO does not have peek()

2022-01-22 Thread Marcel Martin
Marcel Martin added the comment: I opened a PR, but I now wonder whether the missing peek() is by design. First, I noticed that instead of using BytesIO directly, I can wrap the instance in an io.BufferedReader, which does have peek(). (It’s just a bit inconvenient.) The second thing

[issue46375] io.BytesIO does not have peek()

2022-01-22 Thread Marcel Martin
Change by Marcel Martin : -- keywords: +patch pull_requests: +28996 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30808 ___ Python tracker <https://bugs.python.org/issu

[issue46375] io.BytesIO does not have peek()

2022-01-14 Thread Marcel Martin
New submission from Marcel Martin : It would be great to be able to use peek() on BytesIO objects. I have a function that gets passed a file-like object and uses peek() on it. This works for nearly all types of files relevant in my library, except BytesIO instances (which I use during

[issue45387] GzipFile.write should be buffered

2021-10-06 Thread Marcel Martin
Change by Marcel Martin : -- nosy: +marcelm ___ Python tracker <https://bugs.python.org/issue45387> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42173] Drop Solaris support

2020-11-01 Thread Marcel Hofstetter
Change by Marcel Hofstetter : -- nosy: +jomasoftmarcel ___ Python tracker <https://bugs.python.org/issue42173> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39761] Python 3.9.0a4 fails to build when configured with --with-dtrace

2020-02-26 Thread Marcel Plch
New submission from Marcel Plch : Steps to reproduce: $ wget https://www.python.org/ftp/python/3.9.0/Python-3.9.0a4.tar.xz $ tar xvf Python-3.9.0a4.tar.xz $ cd Python-3.9.0a4 $ ./configure --with-dtrace $ make -j12 /usr/bin/ld: libpython3.9.a(ceval.o): in function `_PyEval_EvalFrameDefault

[issue39460] test_zipfile: test_add_file_after_2107() fails on s390x Fedora Rawhide 3.x

2020-01-28 Thread Marcel Plch
Marcel Plch added the comment: Is currently anybody actively working on this? Please, report what you have found out, if so. I'd like to start digging into this tomorrow and possibly avoid any duplicit work. -- ___ Python tracker <ht

[issue39462] DataClass typo-unsafe attribute creation & unexpected behaviour (dataclasses)

2020-01-27 Thread Marcel
Marcel added the comment: The demo-script also needs: "from dataclasses import dataclass" Sorry about this omission, I've attached the update -- Added file: https://bugs.python.org/file48866/bug_demo_dataclass_typo_unsafe.py ___ Pyth

[issue39462] DataClass typo-unsafe attribute creation & unexpected behaviour (dataclasses)

2020-01-27 Thread Marcel
New submission from Marcel : After instantiation of a variable of a DataClass, it is possible to assign new attributes (that were not defined in defining the DataClass): data.new_attribute = 3.0 # does NOT raise Error! This gives unexpected behaviour: if you print the variable

[issue38895] performance degradation creating a mock object (by factor 7-8)

2019-11-25 Thread Marcel Zięba
Marcel Zięba added the comment: "It seems creating the signature of NonCallableMock.__init__ per mock creation is expensive and since it doesn't change can we just create the signature once and set it as a module level attribute? There might still be room for some more optimisations

[issue38895] performance degradation creating a mock object (by factor 7-8)

2019-11-23 Thread Marcel Zięba
Marcel Zięba added the comment: This is the first commit I've observed slow down: 77b3b7701a34ecf6316469e05b79bb91de2addfa Especially this part looks suspicious https://github.com/python/cpython/commit/77b3b7701a34ecf6316469e05b79bb91de2addfa#diff-ff75b1b83c21770847ade91fa5bb2525R366

[issue38895] performance degradation creating a mock object (by factor 7-8)

2019-11-23 Thread Marcel Zięba
Marcel Zięba added the comment: I've also tested it and can confirm it. Master branch: raw times: 8.43 sec, 7.26 sec, 8.16 sec, 8.4 sec, 7.31 sec

[issue38787] PEP 573: Module State Access from C Extension Methods

2019-11-13 Thread Marcel Plch
Change by Marcel Plch : -- keywords: +patch pull_requests: +16655 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17145 ___ Python tracker <https://bugs.python.org/issu

[issue38787] PEP 573: Module State Access from C Extension Methods

2019-11-13 Thread Marcel Plch
New submission from Marcel Plch : Currently, there is not way to access per-module state from the methods of types defined in extension modules. This PEP provides a fix to this issue. PEP 573 - https://www.python.org/dev/peps/pep-0573/ Reference implementation - https://github.com

[issue37631] EXTRA_CFLAGS get overrided by CFLAGS_NODIST

2019-07-22 Thread Marcel Plch
Marcel Plch added the comment: I believe you mean this downstream issue: https://bugzilla.redhat.com/show_bug.cgi?id=1712977 That issue is but only a consequence of a bad flag handling. The bad flag handling affects not only test_gdb on that specific architecture, but the entire

[issue37631] EXTRA_CFLAGS get overrided by CFLAGS_NODIST

2019-07-19 Thread Marcel Plch
New submission from Marcel Plch : Problem: If you want to override CFLAGS by setting EXTRA_CFLAGS, they may have no effect if there are contrary flags in the CFLAGS_NODIST variable. How to reproduce: make CFLAGS_NODIST="-O2" EXTRA_CFLAGS="-Og" If you look at GCC arg

[issue34566] pipe read sometimes returns EOF but returncode is still None

2018-09-03 Thread Marcel Plch
Change by Marcel Plch : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue34566> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue34566] pipe read sometimes returns EOF but returncode is still None

2018-09-03 Thread Marcel Plch
Marcel Plch added the comment: original downstream issue - https://bugzilla.redhat.com/show_bug.cgi?id=1623070 -- title: pipe read sometimmes returns EOF but returncode is still None -> pipe read sometimes returns EOF but returncode is still N

[issue34566] pipe read sometimmes returns EOF but returncode is still None

2018-09-03 Thread Marcel Plch
New submission from Marcel Plch : TL;DR: For reproducer, please see attached file and the end of this description for a runner script. It seems that when pipe is being read it has a chance of returning EOF and not setting the return code. This bug affects all (or at least a broad set

[issue34097] ZIP does not support timestamps before 1980

2018-08-10 Thread Marcel Plch
Change by Marcel Plch : -- pull_requests: +8209 stage: resolved -> patch review ___ Python tracker <https://bugs.python.org/issue34097> ___ ___ Python-bugs-lis

[issue34325] test_zipfile gets OverflowError in multiple buildbots

2018-08-03 Thread Marcel Plch
Change by Marcel Plch : -- keywords: +patch pull_requests: +8151 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34325> ___ ___ Py

[issue34097] ZIP does not support timestamps before 1980

2018-08-02 Thread Marcel Plch
Marcel Plch added the comment: It seems reasonable, I'll have a look at it. -- ___ Python tracker <https://bugs.python.org/issue34097> ___ ___ Python-bugs-list m

[issue34097] ZIP does not support timestamps before 1980

2018-07-13 Thread Marcel Plch
Marcel Plch added the comment: I have created a PR for this: https://github.com/python/cpython/pull/8270 -- ___ Python tracker <https://bugs.python.org/issue34

[issue34097] ZIP does not support timestamps before 1980

2018-07-13 Thread Marcel Plch
Change by Marcel Plch : -- keywords: +patch pull_requests: +7805 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34097> ___ ___ Py

[issue34097] ZIP does not support timestamps before 1980

2018-07-11 Thread Marcel Plch
Marcel Plch added the comment: I'm going to have a closer look at this and try to add the option. -- nosy: +Dormouse759 ___ Python tracker <https://bugs.python.org/issue34

[issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0`

2018-06-19 Thread Marcel Plch
Marcel Plch added the comment: > It's already done, no? But the title issue is "-mcet -fcf-protection > -O0" and -O0 disables optimizations. Some of the simple tests are still run even with optimizations. Disabled optimizations is what we want, because then the function does

[issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0`

2018-06-18 Thread Marcel Plch
Marcel Plch added the comment: The problem is with this function: static PyObject * builtin_id(PyModuleDef *self, PyObject *v) /*[clinic end generated code: output=0aa640785f697f65 input=5a534136419631f4]*/ { return PyLong_FromVoidPtr(v); } It's a one-liner, so the compiler really likes

[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2018-06-15 Thread Marcel Plch
Change by Marcel Plch : -- nosy: +petr.viktorin ___ Python tracker <https://bugs.python.org/issue30345> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2018-06-15 Thread Marcel Plch
Marcel Plch added the comment: Those -g switches you see there are during compile-time. For this to work, you need to enable it also during link/time: ./configure --enable-optimizations --with-lto LDFLAGS="-g" Except for py-bt, you should also try bt. With this link flag enab

[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2018-06-15 Thread Marcel Plch
Marcel Plch added the comment: Yes, but that is not a fix really in this case. While it makes the test pass because it 'correctly' prints out unknown objects, it makes no real difference when actually debugging. The -g switch at link time makes the debug symbols readable and user is able

[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2018-06-15 Thread Marcel Plch
Marcel Plch added the comment: LTO may break the debug symbols and make GDB unusable. There is an option, that fixes the issue: to use a -g switch in link flags. Note that this slows loading of the debug symbols significantly. I suggest these options as possible approaches: 1) make

[issue32374] Document that m_traverse for multi-phase initialized modules can be called with m_state=NULL

2018-05-28 Thread Marcel Plch
Change by Marcel Plch <gmarcel.p...@gmail.com>: -- pull_requests: +6779 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32374> ___

[issue32962] test_gdb fails in debug build with `-mcet -fcf-protection -O0`

2018-05-10 Thread Marcel Plch
Change by Marcel Plch <gmarcel.p...@gmail.com>: -- keywords: +patch pull_requests: +6441 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue29673] Some gdb macros are broken in 3.6

2018-03-16 Thread Marcel Plch
Marcel Plch <gmarcel.p...@gmail.com> added the comment: I have created a PR here - https://github.com/python/cpython/pull/6126 The problem was, indeed, change in the code structure. The macro checked for presence inside of PyEval_EvalFrame() using address of a neighbouring function

[issue29673] Some gdb macros are broken in 3.6

2018-03-16 Thread Marcel Plch
Change by Marcel Plch <gmarcel.p...@gmail.com>: -- keywords: +patch pull_requests: +5888 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

RE: Are the critiques in "All the things I hate about Python" valid?

2018-02-20 Thread Wild, Marcel, Prof <mw...@sun.ac.za>
y is very well spent! Question: Apart from a few commands not available in Mathematica, such as expr2bdd, is there really any domain of computation where Mathematica is inferior to Python? Marcel -Original Message- From: Python-list [mailto:python-list-bounces+mwild=sun.ac...@python.org] On

[issue12706] timeout sentinel in ftplib and poplib documentation

2018-01-24 Thread Marcel Widjaja
Change by Marcel Widjaja <mw...@yahoo.com>: -- pull_requests: +5156 stage: needs patch -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue32374] Document that m_traverse for multi-phase initialized modules can be called with m_state=NULL

2018-01-09 Thread Marcel Plch
Marcel Plch <gmarcel.p...@gmail.com> added the comment: I have created a PR at https://github.com/python/cpython/pull/5140 It contains documentation, plus, in --with-pydebug mode, it calls m_traverse to catch easy cases of not handling the m_state==NULL case

[issue32374] Document that m_traverse for multi-phase initialized modules can be called with m_state=NULL

2018-01-09 Thread Marcel Plch
Change by Marcel Plch <gmarcel.p...@gmail.com>: -- pull_requests: +4999 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32374> ___

[issue29237] Create enum for pstats sorting options

2018-01-04 Thread Marcel Widjaja
Change by Marcel Widjaja <mw...@yahoo.com>: -- keywords: +patch pull_requests: +4972 stage: needs patch -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue29237] Create enum for pstats sorting options

2017-12-30 Thread Marcel Widjaja
Marcel Widjaja <mw...@yahoo.com> added the comment: I'd like to try to work on this one -- nosy: +mawidjaj ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue12706] timeout sentinel in ftplib and poplib documentation

2017-12-29 Thread Marcel Widjaja
Marcel Widjaja <mw...@yahoo.com> added the comment: Greg, I wonder if you are planning to submit a PR for your patch? If not, I'm plan to take your patch, make some minor adjustment and submit a PR. -- nosy: +mawidjaj ___ Python tracke

binary decision diagrams (BDD)

2017-12-20 Thread Wild, Marcel, Dr <mw...@sun.ac.za>
Hello every body, I'm new here and this is my first question. I really don't know anything about Python (I use Mathematica) but with the help of others learned that g=expr2bdd(f) makes the BDD g of a Boolean function f. But what is the easiest (fool-proof) way to print out the diagram of g

binary decision diagrams

2017-12-20 Thread Wild, Marcel, Dr <mw...@sun.ac.za>
, Marcel Wild The integrity and confidentiality of this email is governed by these terms / Die integriteit en vertroulikheid van hierdie e-pos word deur die volgende bepalings gere?l. http://www.sun.ac.za/emaildisclaimer -- https://mail.python.org/mailman/listinfo/python-list

[issue32374] Document that m_traverse for multi-phase initialized modules can be called with m_state=NULL

2017-12-19 Thread Marcel Plch
Change by Marcel Plch <gmarcel.p...@gmail.com>: -- keywords: +patch pull_requests: +4821 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue6531] atexit_callfuncs() crashing within Py_Finalize() when using multiple interpreters.

2017-12-11 Thread Marcel Plch
Marcel Plch <gmarcel.p...@gmail.com> added the comment: > At a guess, the problem is because in atexit_callfuncs(): > >module = PyState_FindModule(); >if (module == NULL) >return; In #31901, I solved this problem by getiing rid of PyState_FindModule in th

[issue31901] atexit callbacks should be run at subinterpreter shutdown

2017-12-04 Thread Marcel Plch
Marcel Plch <gmarcel.p...@gmail.com> added the comment: I created a PR with fix on this issue - https://github.com/python/cpython/pull/4611 This makes Py_EndInterpreter() call atexit callbacks for the subinterpreter it is destroying. It doesn't make Py_Finalize() end all subinterp

[issue31901] atexit callbacks should be run at subinterpreter shutdown

2017-11-28 Thread Marcel Plch
Change by Marcel Plch <gmarcel.p...@gmail.com>: -- keywords: +patch pull_requests: +4527 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue31901] atexit callbacks only called for current subinterpreter

2017-10-30 Thread Marcel Plch
New submission from Marcel Plch <gmarcel.p...@gmail.com>: `Py_FinalizeEx()` only executes callbacks from the subinterpreter from which Py_FinalizeEx is called. What is the expected behavior here? Should the callbacks be specific to individual subinterpreters? -- components: Ext

[issue31862] Port the standard library to PEP 489 multiphase initialization

2017-10-24 Thread Marcel Plch
Change by Marcel Plch <gmarcel.p...@gmail.com>: -- keywords: +patch pull_requests: +4078 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue31862] Port the standard library to PEP 489 multiphase initialization

2017-10-24 Thread Marcel Plch
New submission from Marcel Plch <gmarcel.p...@gmail.com>: PEP 489 introduced multiphase initialization of extension and built-in modules. Now, almost no module in the standard library supports this feature. This should be improved to prepare Python for better testing of subinterpreters.

[issue30403] PEP 547: Running extension modules using -m switch

2017-09-08 Thread Marcel Plch
Marcel Plch added the comment: I have made a patch both for cython and cpython implementing a way to use Py_mod_create in cython. Basically module def that specifies a new "Py_mod_cython" slot are excluded from the rule of no module creation, so these modules can be executed dire

[issue30403] PEP 547: Running extension modules using -m switch

2017-09-01 Thread Marcel Plch
Marcel Plch added the comment: Sorry for not responding for so long, I didn't work on Python through the summer because of some other matters. Re-execution of the module is not possible, because there is a check on the C level, If you call exec_in_module() on an already initialized module

[issue30974] os.samefile / shutil._samefile: following symlinks

2017-07-20 Thread Marcel Partap
New submission from Marcel Partap: Don't know whether it should be considered a documentation or behavioral issue, but os.samefile calls os.stat() on given files, following symlinks. Does this really "test whether two pathnames reference the same actual file"? I'd consider os.ls

[issue19717] resolve() fails when the path doesn't exist

2017-05-28 Thread Marcel Plch
Changes by Marcel Plch <gmarcel.p...@gmail.com>: -- pull_requests: +1930 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19717> ___

[issue14156] argparse.FileType for '-' doesn't work for a mode of 'rb'

2017-05-26 Thread Marcel H
Marcel H added the comment: I want to see this fixed in python3.x as well, please :) the patch should be the same -- nosy: +Marcel H2 versions: +Python 3.6, Python 3.7 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue30403] Running extension modules using -m switch

2017-05-23 Thread Marcel Plch
Changes by Marcel Plch <gmarcel.p...@gmail.com>: -- pull_requests: +1845 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30403> ___

[issue30403] Running extension modules using -m switch

2017-05-19 Thread Marcel Plch
New submission from Marcel Plch: Currently the -m switch does not work with extension modules: $ python3 -m math /usr/bin/python3: No code object available for math In order to enable extension modules to behave like Python source modules, the -m switch should be supported

[issue30177] pathlib.resolve(strict=False) only includes first child

2017-05-18 Thread Marcel Plch
Changes by Marcel Plch <gmarcel.p...@gmail.com>: -- pull_requests: +1744 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30177> ___

[issue29589] test_asyncio & test_multiprocessing_forkserver failed

2017-02-21 Thread Marcel Widjaja
Marcel Widjaja added the comment: Both test_asyncio & test_multiprocessing_forkserver work for me. I'm on the latest 3.6 and Mac OS 10.11.6 -- nosy: +mawidjaj ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.o

[issue27308] Inconsistency in cgi.FieldStorage() causes unicode/byte TypeError.

2016-06-13 Thread Marcel Hellkamp
Marcel Hellkamp added the comment: Looks like this is a duplicate to #24764 and already fixed. Sorry for the noise. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue27308] Inconsistency in cgi.FieldStorage() causes unicode/byte TypeError.

2016-06-13 Thread Marcel Hellkamp
Marcel Hellkamp added the comment: This should fix the issue. -- keywords: +patch Added file: http://bugs.python.org/file43378/foo.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue27308] Inconsistency in cgi.FieldStorage() causes unicode/byte TypeError.

2016-06-13 Thread Marcel Hellkamp
Changes by Marcel Hellkamp <m...@gsites.de>: -- title: Inconsistency in cgi.FieldStorage() causes unicode/byte issue. -> Inconsistency in cgi.FieldStorage() causes unicode/byte TypeError. ___ Python tracker <rep...@bugs.pytho

[issue27308] Inconsistency in cgi.FieldStorage() causes unicode/byte issue.

2016-06-13 Thread Marcel Hellkamp
New submission from Marcel Hellkamp: Discovered here: https://github.com/bottlepy/bottle/issues/856 If a multipart section has a "Content-Length" header, but no "filename" attribute in the "Content-Disposition" header, cgi.FieldStorage tries to write binary d

[issue23122] python@93442 breaks build if system Python is 2.6

2014-12-27 Thread Marcel Hellkamp
New submission from Marcel Hellkamp: On CentOS 6.6 the system Python is 2.6. The use to set literals in Parser/adsl.py breaks the build process on these systems. The ./configure should ensure that a compatible version of python is available. -- components: Build messages: 233134 nosy

[issue23122] python@93442 breaks build if system Python is 2.6

2014-12-27 Thread Marcel Hellkamp
Marcel Hellkamp added the comment: make touch solved the problem. A clear case of RTFM :) Sorry for the noise. -- resolution: - not a bug status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23122

Re: How to clear all content in a Tk()

2014-03-25 Thread Marcel Rodrigues
What about this: Put a Frame() inside the root: `frame = Frame(root)`. This frame will be the only immediate child of root. Everything else will be put inside the frame. When you need to clear the root, call `frame.destroy()`. This will destroy `frame` and all its children. You will need to

Re: What is the recommended python module for SQL database access?

2014-02-09 Thread Marcel Rodrigues
As Chris said, if your needs are simple, use SQLite back-end. It's probably already installed on your computer and Python has a nice interface to it in its standard library. [1] If you decide to use MySQL back-end instead, consider using PyMySQL [2]. It's compatible with both Python 2 and Python

Re: Why use _mysql module and not use MySQLdb directly?

2014-02-09 Thread Marcel Rodrigues
Another option is PyMySQL [1]. It's developed in the open at GitHub [2]. It's pure Python, compatible with both Python 2 and Python 3. It's DB-API 2 compliant. It also implements some non-standard bits that are present in MySQLdb, in order to be compatible with legacy code, notably Django

Re: What is the recommended python module for SQL database access?

2014-02-09 Thread Marcel Rodrigues
9, 2014 at 9:20 PM, Marcel Rodrigues marcel...@gmail.com wrote: As Chris said, if your needs are simple, use SQLite back-end. It's probably already installed on your computer and Python has a nice interface to it in its standard library. Already installed? I thought the point of SQLite3

[issue18394] cgi.FieldStorage triggers ResourceWarning sometimes

2014-01-12 Thread Marcel Hellkamp
Marcel Hellkamp added the comment: This change breaks existing applications. The cgi.FieldStorage.file attribute is public and mentioned in the documentation. It even states You can then read the data at leisure from the file attribute. Consider this example:: form = cgi.FieldStorage

Re: Nested virtual environments

2013-08-15 Thread Marcel Rodrigues
I don't know how to completely solve this problem, but here is something that can alleviate it considerably. If you have a recent version of pip, you can use wheels [1] to save built packages locally. First create a new virtualenv and install the common packages. Then put these packages in a

Re: weird behavior. bug perhaps?

2013-06-18 Thread Marcel Rodrigues
Note that print [shape(m)[1],1] just prints a list with two elements where the first element is shape(m)[1] and the second is the number 1 (regardless of the value of m). I'm pretty sure that's not what you want. 2013/6/18 zoom z...@yahoo.com Hi, I have a strange problem here. Perhaps

Re: Fatal Python error

2013-05-29 Thread Marcel Rodrigues
I just tried your code with similar results: it does nothing on PyPy 2.0.0-beta2 and Python 2.7.4. But on Python 3.3.1 it caused core dump. It's a little weird but so is the code. You have defined a function that calls itself unconditionally. This will cause a stack overflow, which is a

Re: Fatal Python error

2013-05-29 Thread Marcel Rodrigues
behavior here a bug, that code is unreliable by design. It's an infinite loop at the best. 2013/5/29 Joshua Landau joshua.landau...@gmail.com On 29 May 2013 13:30, Marcel Rodrigues marcel...@gmail.com wrote: I just tried your code with similar results: it does nothing on PyPy 2.0.0-beta2

Python 3.3, gettext and Unicode problems

2012-12-30 Thread Marcel Rodrigues
, it tries to encode the translated message with the system's preferred encoding, which happens to be ASCII. Anyone know why this happens? Is this a bug on my code? Maybe I have misunderstood gettext... Thanks, Marcel -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3.3, gettext and Unicode problems

2012-12-30 Thread Marcel Rodrigues
Thank you Terry! I was trying to follow the documentation but somehow didn't payed attention to the lgettext/gettext distinction until I read your first response. Changing lgettext to gettext solved the problem. It prints correctly to my console because I have to environmental variable

Re: TkTable and Python 3.1

2011-03-02 Thread Marcel Jakobs
one row: /usr/lib/Tktable2.10 This is the directory where my Tktable-module is stored. .pth-files are working as pointer to modules. I don't know how your directories are built, but I think the structure is equal. Marcel On Tuesday, February 16, 2010 12:00 AM Charles McKnight wrote: HI All

Re: Re: TkTable and Python 3.1

2011-03-02 Thread Marcel Jakobs
... I built a file named 'tkTable.pth' in the directory /usr/lib/python3.1/dist-packages ... Submitted via EggHeadCafe Pass Values Between Windows Forms http://www.eggheadcafe.com/tutorials/aspnet/a3e1e170-21d9-4a59-a659-3ead05bb36f2/pass-values-between-windows-forms.aspx --

Re: Re: Re: TkTable and Python 3.1

2011-03-02 Thread Marcel Jakobs
I don't know why, but every time when I have sent the directories name, it's not to see in the site. = '/usr/lib/python3.1/dist-packages' = Got to the home-directory of python and then save the file in the subdirectory dist-packages. Marcel Submitted via EggHeadCafe Excel Generate High

[issue9019] wsgiref.headers.Header() does not update headers list it was created with.

2010-06-17 Thread Marcel Hellkamp
New submission from Marcel Hellkamp defn...@gmail.com: The current (3.x) implementation of wsgiref.headers.Headers() does not match the documentation. Documented behaviour: Any changes made to the new Headers object will directly update the headers list it was created with. (/Doc/library

[issue8096] locale.format_string fails on mapping keys

2010-03-09 Thread Marcel Tschopp
New submission from Marcel Tschopp m...@polynorm.ch: locale.format_string doesn't return same result as a normal string % format directive, but raises a TypeError. locale.format_string('%(key)s', {'key': 'Test'}) Traceback (most recent call last): File stdin, line 1, in module File /usr

Python AppStore / Marketplace

2009-02-22 Thread Marcel Luethi
to go... What do you think??? Is this crazy??? Or simply stupid? Or is this the way to world domination...? ;-) Unfortunately I'm not expert enough to build such a system - but if there is enough interest in the community I gladly would like to help. Marcel PS: Naming is important! Python

Python AppStore / Marketplace

2009-02-22 Thread Marcel Luethi
have to go... What do you think??? Is this crazy??? Or simply stupid? Or is this the way to world domination...? ;-) Unfortunately I'm not expert enough to build such a system - but if there is enough interest in the community I gladly would like to help. Marcel PS: Naming is important! Python

Re: Python AppStore / Marketplace

2009-02-22 Thread Marcel Luethi
directly. Is my nirvana really that far away? ;-) Best regards, Marcel PS A Souq is an Arab market (similar to a bazaar): http://en.wikipedia.org/wiki/Souq I got to know one visiting one last year in Oman - and I really liked it. But now I can see that soundex('souq') == soundex('suck'). You're

Re: Am I missing something with Python not having interfaces?

2008-05-09 Thread Daniel Marcel Eichler
Am Freitag 09 Mai 2008 10:19:45 schrieb Bruno Desthuilliers: very often sees do-nothing catch-all try/catch blocks in Java - which is way worse than just letting the exception propagate. I find all this totally pointless, because there's just no way for a compiler to check if your code is

Re: Am I missing something with Python not having interfaces?

2008-05-08 Thread Daniel Marcel Eichler
Am Mittwoch 07 Mai 2008 22:39:30 schrieb Luis Zarrabeitia: There you have it, interfaces are not enough to ensure that the implementors actually implement the methods. They are useful for warning at compile time if there is a missing method, but nothing more. It's not the fault of the

Re: Am I missing something with Python not having interfaces?

2008-05-08 Thread Daniel Marcel Eichler
Am Donnerstag 08 Mai 2008 00:12:26 schrieb [EMAIL PROTECTED]: very often sees do-nothing catch-all try/catch blocks in Java - which is way worse than just letting the exception propagate. I find all this totally pointless, because there's just no way for a compiler to check if your code is

Re: Am I missing something with Python not having interfaces?

2008-05-07 Thread Daniel Marcel Eichler
Am Dienstag 06 Mai 2008 16:07:01 schrieb Mike Driscoll: If so, then it looks like an Interface is a generic class with method stubs. You can do that with Python just as easily by creating empty methods with just the pass keyword. Well, no. It's a litte different. Interfaces force to

Re: Scripting Visio using Python

2007-02-13 Thread Marcel
IronPython? Don't know how to do that, but I suggest you post your question on the IronPython list: http://groups.google.com/group/ironpy?lnk=li Python is not a .NET language, IronPython is. HTH, -- Marcel -- http://mail.python.org/mailman/listinfo/python-list

Checking dependencies with distutils

2006-10-03 Thread Etienne Marcel
Hello, I would like to know if there is something in distutils (or in Python stdlib) which allow me to check for dependencies (shared libraries, headers or any other progs) before building/installing ? I am aware of this nice utility : http://trentm.com/projects/which/ which is useful (and

Re: Looking for a text file based wiki system written in Python

2006-08-14 Thread Marcel
that's written in Python? I found pwyky but it's functionality is a bit too simple. A TiddlyWiki with a python backend. http://www.cs.utexas.edu/~joeraii/pytw/ -- Marcel -- http://mail.python.org/mailman/listinfo/python-list

Re: getting the line just before or after a pattern searched

2006-02-17 Thread Daniel Marcel Eichler
[EMAIL PROTECTED] wrote: i have a file something like this abcdefgh ijklmnopq 12345678 rstuvwxyz . . . 12345678 . whenever i search the file and reach 12345678, how do i get the line just above and below ( or more than 1 line above/below) the pattern 12345678 and save to

Re: How to check...

2006-02-11 Thread Daniel Marcel Eichler
Lad wrote: How can I check that a string does NOT contain NON English characters? try: foobar.encode('ascii') except: bla or use string.ascii_letters and enhance it. mfg Daniel -- http://mail.python.org/mailman/listinfo/python-list

LDAPUserFolder mapping roles

2006-01-30 Thread Marcel Hartmann
I'm using LDAPUserFolder for Zope 2.7.6 and it works fine. Is it possible to do the mapping to zope roles by the _value_ of the group and not the group name? We defined in LDAP many groups to define access to different applications - one is named zope. I want to map the values of this group

DCOracle2/python/zope

2005-12-01 Thread Marcel Hartmann
Hi, I have problems to get ZOracleDA run in Zope - I cannot found a solution wheter in Zope Groups nor searching google and I think it's a python problem. The connection in python - without zope - functions without problems and the missing library (see errors later) is obviously found. Is

Re: Slicing an IXMLDOMNodeList

2005-06-13 Thread marcel . vandendungen
For future reference: The solution to this problem is a simple one. rgelem = list(xmldoc.selectNodes('/root/elem')) returns a real list of IXMLDOMElements that can be sliced. -- Marcel -- http://mail.python.org/mailman/listinfo/python-list

Slicing an IXMLDOMNodeList

2005-06-12 Thread marcel . vandendungen
at 0x26395112' object has no attribute '__len__' Anybody know how to make this work? TIA, -- Marcel -- http://mail.python.org/mailman/listinfo/python-list

Re: Basic file operation questions

2005-02-02 Thread Marcel van den Dungen
at this: http://www.devshed.com/c/a/Python/File-Management-in-Python/ HTH, -- Marcel -- http://mail.python.org/mailman/listinfo/python-list

Re: Index server

2005-01-14 Thread Marcel van den Dungen
a look at the following URLs: http://www.methods.co.nz/docindexer/ http://www.divmod.org/Home/Projects/Lupy/index.html http://www.divmod.org/Home/Projects/Pyndex/index.html HTH, -- Marcel -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >