[Python-Dev] deque alternative (was: Linked lists)

2005-12-25 Thread Christian Tismer
thing, if lists are used in a dequeue-style manner. Or is this maybe too much magic happening? merry christmas -- chris -- Christian Tismer :^) <mailto:[EMAIL PROTECTED]> tismerysoft GmbH : Have a break! Take a ride on Python's Johannes-Niemeyer-Weg 9A

Re: [Python-Dev] deque alternative

2005-12-26 Thread Christian Tismer
Martin Blais wrote: > On 12/25/05, Christian Tismer <[EMAIL PROTECTED]> wrote: [is auto-dequeue too much magic?] > IMO it's a little bit too much magic. Plus, if you pass these > instances around e.g. between libraries, how could you determine with > certainty the

Re: [Python-Dev] deque alternative (was: Linked lists)

2005-12-26 Thread Christian Tismer
Hi all, not addressing anybody directly here, but this thread is about my dequeue question. It would just be nice if you could use the original thread topic or a different one to discuss the original question. -- Christian Tismer :^) <mailto:[EMAIL PROTECTED]> tismerysof

Re: [Python-Dev] deque alternative

2005-12-27 Thread Christian Tismer
27;t worry. Don't worry, I'm not expecting anything positive from python-dev, and the only thing that makes me still unhappy is unreflected abuses of my changed topic, but that's a minor matter of taste :-)) all the best -- chris -- Christian Tismer :^) <ma

[Python-Dev] os.path.getmtime on Windows

2006-01-14 Thread Christian Tismer
the win32 documentation seems to have no hints about this. I assumend the value would be in UTC, but it is obviously not. Is there a way to circumvent this problem, or am I missing something? If this is not the expected behavior, then it might make sense to find a patch. thanks -- chris -- Christ

Re: [Python-Dev] os.path.getmtime on Windows

2006-01-15 Thread Christian Tismer
se Unicode file names on one system, and > ANSI file names on the other. Correcting it just for NT/XP would make the majority of people happy, IMHO. cheers - chris -- Christian Tismer :^) <mailto:[EMAIL PROTECTED]> tismerysoft GmbH : Have a break! Take a

Re: [Python-Dev] os.path.getmtime on Windows

2006-01-16 Thread Christian Tismer
Martin v. Löwis wrote: > Christian Tismer wrote: >> 1. create a file >> 2. get it's os.path.getmtime() >> 3. change your time zone >> 4. get os.path.getmtime again >> >> compare - the time stamps are different. >> Change the time zone back,

Re: [Python-Dev] yield back-and-forth?

2006-01-20 Thread Christian Tanzer
) > > I'm not keen on that particular keyword, but I do believe a syntactic > solution is needed, if the problem is important enough to be solved. How about: def main_generator(): ... yield * sub_generator() Ducking-ly yrs, -- Christian Tanzer

Re: [Python-Dev] any support for a methodcaller HOF?

2006-02-03 Thread Christian Tismer
mbda does support local scope, like here: >>> def locallambda(x, y): ... func = lambda: x+y ... return func ... >>> f=locallambda(2, 3) >>> f() 5 >>> ciao - chris -- Christian Tismer :^) <mailto:[EMAIL PROTECTED]> tismerysoft

[Python-Dev] Re: Deprecate Py_TRASHCAN_SAFE_BEGIN/END in 3.10?

2021-08-19 Thread Christian Tismer-Sperling
), can't we think of replacing it somehow by functions in the case of the Limited API? The API is so often used that it would make sense to _always_ don't crash deeply nested structures. Or do you think it makes no sense at all? Then let's turn it into a no-op. But the current mixed

[Python-Dev] PyPy on PySide6 is there: PyPy with a Gui

2022-02-03 Thread Christian Tismer-Sperling
think to send an official announce when this is available on pip. This effort marks the completion of my PyPy support, which began in 2003 and ended involuntarily in 2006 due to a stroke. All the best -- Chris -- Christian Tismer-Sperling:^) tis...@stackless.com Software Consulting

[Python-Dev] Re: PyPy on PySide6 is there: PyPy with a Gui

2022-02-04 Thread Christian Tismer-Sperling
PyPy might create much interest for both projects. Cheers - Chris -- Christian Tismer-Sperling:^) tis...@stackless.com Software Consulting : http://www.stackless.com/ Strandstraße 37 : https://github.com/PySide 24217 Schönberg : GPG key -> 0xF

[Python-Dev] Some pattern annoyance

2023-08-02 Thread Christian Tismer-Sperling
return 4 * 1000, r So what is missing seems to be a notion of const-ness, which could be dynamically deduced. Am I missing something? -- Christian Tismer-Sperling:^) tis...@stackless.com Software Consulting : http://www.stackless.com/ Strandstraße 37

[Python-Dev] Re: Some pattern annoyance

2023-08-02 Thread Christian Tismer-Sperling
On 02.08.23 13:23, Barry wrote: On 2 Aug 2023, at 12:03, Christian Tismer-Sperling wrote: Hi folks, I just used Structural Pattern Matching quite intensively and I'm pretty amazed of the new possibilities. But see this code, trying to implement Mark Pilgrim's regex algorithm

[Python-Dev] Re: Some pattern annoyance

2023-08-02 Thread Christian Tismer-Sperling
;s sad (I am, after all, a GNU Mailman developer), but it's reality. Personally, I'm sad because some people whose contributions I enjoy (you being one of them :-)) didn't move to Discourse. But like you say, it's how things are. Christian - you can make named consta

[Python-Dev] Re: Some pattern annoyance

2023-08-03 Thread Christian Tismer-Sperling
ieve it's accidental that match-case sequence patterns won't match str, bytes or bytearrray objects - regexen are the tool already optimised for that purpose, so it's quite impressive that you are managing to approach the same level of performance! Kind regards, Steve On Wed,

Re: [Python-Dev] More tracker demos online

2006-07-25 Thread Christian Robottom Reis
ore the official announcement. -- Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 3376 0125 ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/opti

[Python-Dev] Difflib modifications [reposted]

2004-12-01 Thread Christian Robottom Reis
eqi, eqj = None, None # 1st indices of equal lines (if any) @@ -981,7 +1026,11 @@ cruncher.set_seqs(aelt, belt) for tag, ai1, ai2, bj1, bj2 in cruncher.get_opcodes(): la, lb = ai2 - ai1, bj2 - bj1 - if tag == 'replace'

[Python-Dev] Building with VS 2003 .NET

2006-05-15 Thread R. Christian Call
I recently checked out the 2006-02-04 python trunk, but I can't get it to build in Visual Studio 2003 .NET. When I open up the PCbuild\pcbuild.sln file in VS2003 .NET and then try to build the solution, I get the following errors: fatal error C1083: Cannot open include file: 'bzlib.h': No such

[Python-Dev] Deprecating builtin id (and moving it to sys())

2005-08-17 Thread Christian Robottom Reis
I've done some searching through my code and id() isn't the most-used builtin, so from my perspective the impact would be limited, but of course others might think otherwise. Is it worth writing a PEP for this, or is it crack? Take care, -- Christian Robottom Reis | http://async.com.br/~k

<    8   9   10   11   12   13