[Python-Dev] Re: Is it possible to view tokenizer output?

2022-05-30 Thread Jack
Hi Pablo, could you clarify please? Is that on the main branch, or would you be willing to share the code? On 30/05/2022 16:23, Pablo Galindo Salgado wrote: There is no *public* one but there is a private one accesible from Python I added for testing purposes. On Mon, 30 May 2022, 15:17 Victo

[Python-Dev] Re: Is it possible to view tokenizer output?

2022-05-29 Thread Jack
Well, I just stuck a print statement in _PyTokenizer_Get() and it's done the job for me, right now. Thanks, Jack On 30/05/2022 00:36, Eric V. Smith wrote: python -m tokenize < file-to-parse.py See the comment at the top of tokenize.py. IIRC, it re-implements the tokenizer, it does

[Python-Dev] Re: Is it possible to view tokenizer output?

2022-05-29 Thread Jack
at my changes in tokenize.py to see them, right? But what I want to see is what tokenizer.c is producing when my newly built Python binary actually reads a file. On 30/05/2022 00:09, Jean Abou Samra wrote: Le 30/05/2022 à 00:59, Jack a écrit : Hi, I'm just getting into the CPython codebase

[Python-Dev] Is it possible to view tokenizer output?

2022-05-29 Thread Jack
Hi, I'm just getting into the CPython codebase just for fun, and I've just started messing around with the tokenizer and the grammar. I was wondering, is there a way to just print out the results of the tokenizer (as in just the stream of tokens it generates) in a human readable format? It woul

[Python-Dev] Re: Suggestion: a little language for type definitions

2022-01-08 Thread jack . jansen
retty understandable if you know C# (or apparently Kotlin), but it doesn’t solve all the other problems with readability. And I think you’ll quickly run out of constructs once you try to fix more problems if you don’t want to clash with existing Python syntax… -- Jack Jansen, , http://www.cwi.nl/~j

[Python-Dev] Re: Suggestion: a little language for type definitions

2022-01-08 Thread jack . jansen
all the packages and other stuff I maintain, but I _am_ contemplating doing it, eventually, maybe, if I find the time, procrastination willing, …. -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman

[Python-Dev] Re: Suggestion: a little language for type definitions

2022-01-08 Thread jack . jansen
T = TypeVar(’T’) Data = t’str : [(int, T)]’ Factory = t’(int, *str) -> ?[Data(T)]’ And note that I’m making up the syntax as I’m typing. Maybe it’s much better to use keywords (like optional, iterable) in stead of symbols). -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don&#

[Python-Dev] Suggestion: a little language for type definitions

2022-01-07 Thread jack . jansen
vious expression could > also be specified, if you really wanted to, as t”{typing.Callable[[int, str], > bool}”. -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman ___ Pyt

[Python-Dev] Re: RFC on Callable Type Syntax

2021-10-11 Thread jack . jansen
ay t”(int, str) -> bool”. And we could even allow escapes (similar to f-strings) so that the previous expression could also be specified, if you really wanted to, as t”{typing.Callable[[int, str], bool}”. Jack > On 7 Oct 2021, at 18:41, S Pradeep Kumar wrote: > > Hello all, > &g

[Python-Dev] Re: Worried about Python release schedule and lack of stable C-API

2021-09-26 Thread jack . jansen
modules. Wheels have obviated the need for that. So now everything depends on extension modules (and on external packages that depend on extension modules, and so on). -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldm

[Python-Dev] Re: Worried about Python release schedule and lack of stable C-API

2021-09-26 Thread jack . jansen
t TensorFlow was stuck at 3.8. The TensorFlow codebase got ported in November 2020, then released early 2021. Then Open3D included the new Tensorflow (plus whatever else needed to be adapted) in their codebase in May. They’re now going through their release schedule, and their 0.14 release shoul

[Python-Dev] Worried about Python release schedule and lack of stable C-API

2021-09-25 Thread jack . jansen
extension packages become more long-lived than a single Python release... -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman ___ Python-Dev mailing list -- python-dev@pyt

[Python-Dev] Re: Should we try to get a complete draft of What's New by b1?

2021-08-12 Thread Jack DeVries
documentation on the head of the beta or alpha release branches is worth considering, maybe with a different label on docs.python.org like "cpython/3.10@latest" or similar. On Thu, Aug 12, 2021, 12:46 PM Brett Cannon wrote: > > > On Thu, Aug 12, 2021 at 6:04 AM Jack De

[Python-Dev] Re: Should we try to get a complete draft of What's New by b1?

2021-08-12 Thread Jack DeVries
On a broader note, how does the deployment pipeline for documentation work? It seems to me that for branches that are in pre-release (3.10) or active development (3.11), the documentation should be continuously deployed, while deployment of changes to earlier documentation should follow minor relea

[Python-Dev] Re: New __main__.rst

2021-08-10 Thread Jack DeVries
ou for the catch @MRAB. On Tue, Aug 10, 2021 at 05:14:10PM +0100, MRAB wrote: > On 2021-08-10 03:14, Jack DeVries wrote: > > There have been a series of requests to enhance the current __main__.rst > > document <https://docs.python.org/3/library/__main__.html>: > > >

[Python-Dev] New __main__.rst

2021-08-09 Thread Jack DeVries
There have been a series of requests to enhance the current __main__.rst document : bpo-17359 bpo-24632 bpo-39452 So, I rewrote it! I wen

[Python-Dev] Re: Heads up: `make` in Doc now creates a venv

2021-08-06 Thread Jack DeVries
What do you think about an environment variable? USE_VENV=false make html Maybe we can use a variable with a more explicit name so people can keep it in their environments if they wish? On Fri, Aug 6, 2021 at 7:19 AM Miro Hrončok wrote: > On 06. 08. 21 12:21, Łukasz Langa wrote: > > > >> O

Re: [Python-Dev] PEP 526 ready for review: Syntax for Variable and Attribute Annotations

2016-08-30 Thread Jack Diederich
On Tue, Aug 30, 2016 at 11:03 PM, Guido van Rossum wrote: > On Tue, Aug 30, 2016 at 7:44 PM, Jack Diederich > wrote: > > +0. We should try and be consistent even if this is a thing I don't want. > > And trust me, I don't! > > No problem. You won't have t

Re: [Python-Dev] PEP 526 ready for review: Syntax for Variable and Attribute Annotations

2016-08-30 Thread Jack Diederich
ython). So ideally I'm -1000 on all this stuff for cultural reasons -- if you let a C++ person add types they will for false comfort. But again, I'm +0 on this specific proposal because we have already gone down the garden path. -Jack On Tue, Aug 30, 2016 at 9:00 PM, Steven D'Aprano

Re: [Python-Dev] Type hints -- a mediocre programmer's reaction

2015-04-20 Thread Jack Diederich
it is Python4 hidden away inside a PEP. There are many fine languages that have sophisticated type systems. And many bondage & discipline languages that make you type things three times to make really really sure you meant to type that. If you find those other langua

Re: [Python-Dev] making python's c iterators picklable (http://bugs.python.org/issue14288)

2012-03-13 Thread Jack Diederich
on. +1, things that can be pickled should be pickleable. -Jack ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Status of the fix for the hash collision vulnerability

2012-01-13 Thread Jack Diederich
ike a way to disable it without > changing the code, e.g. a flag or environment variable. Agreed. Paranoid people can turn the behavior off and if it ever were to become a problem in practice we could point people to a solution. -Jack ___ Python

[Python-Dev] Failed to install PIL on windows, may have something to do with python implementaton

2011-07-13 Thread smith jack
I am a programmer with more than two years of python programming experience, often the debugging process may led me to the details of some details of python implementation, this is exciting : ) Now i face a problem, that is i want to install PIL on windows, but failed, the error messages tells tha

Re: [Python-Dev] [RELEASE] Python 2.7.2 release candidate 1

2011-05-29 Thread Jack Diederich
es many features that were first released in Python 3.1. It might not be clear to a casual reader that the features were released in 2.7.0 and not 2.7.2. We don't, but many projects do release new features with bugfix version numbers - I'm

Re: [Python-Dev] Vagaries of "their" in English (was Re: Support the /usr/bin/python2 symlink upstream)

2011-03-04 Thread Jack Diederich
ee this post[1] (the ambiguous pronouns resulted in an ambiguous statute). English is highly mutable so I expect this will all shake out in a generation or two. Or maybe not - we still don't have a common word that means a positive answer to a negative question despite centuries of want. -Jack

Re: [Python-Dev] [Python-checkins] r88691 - python/branches/py3k/Lib/test/test_telnetlib.py

2011-02-28 Thread Jack Diederich
Much thanks. On Mon, Feb 28, 2011 at 7:41 PM, antoine.pitrou wrote: > Author: antoine.pitrou > Date: Tue Mar  1 01:41:10 2011 > New Revision: 88691 > > Log: > Endly, fix UnboundLocalError in telnetlib > > > > Modified: >   python/branches/py3k/Lib/test/test_telnetlib.py > > Modified: python/branc

Re: [Python-Dev] Is Demo directory removed from python3.2 ?

2011-02-21 Thread Jack Diederich
directory was largely out of date (some of it by a decade). Most of what was in it plain didn't work or was an outdated example of how you should do things. The good stuff was moved into the documentation or the standard library. -Jack ___ Python-D

Re: [Python-Dev] closing files and sockets in a timely manner in the stdlib

2010-10-30 Thread Jack Diederich
On Sat, Oct 30, 2010 at 3:06 PM, Glyph Lefkowitz wrote: > > On Oct 30, 2010, at 2:39 PM, Jack Diederich wrote: > > On Fri, Oct 29, 2010 at 8:35 PM, Brett Cannon wrote: > > For those of you who have not noticed, Antoine committed a patch that > > raises a ResourceWarning

Re: [Python-Dev] closing files and sockets in a timely manner in the stdlib

2010-10-30 Thread Jack Diederich
rd python imports (non-test) to leave some open handles and came up empty. -Jack ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archi

Re: [Python-Dev] API for binary operations on Sets

2010-09-29 Thread Jack Diederich
reasons. What people expect sets to do is what sets-alikes should do. -Jack ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Tracker BD Was:Goodbye

2010-09-22 Thread Jack Diederich
he Spring for PyCon. Likewise for mailing list subscriptions. Personally I've gone back and forth between subscribing to everything (-list -dev -commits -bugs -ideas, et al) and subscribing to almost nothing. -Jack ___ Python-Dev mailing list Pytho

Re: [Python-Dev] Goodbye

2010-09-21 Thread Jack Diederich
g. Umm, what? You mean http://bugs.python.org/issue2180 ? """ Mark, please stop closing these based on age. The needs to be a determination whether this is a valid bug. If so, then a patch is needed. If not, it can be closed.""" Am I missing something? -Jack _

Re: [Python-Dev] Thoughts fresh after EuroPython

2010-07-25 Thread Jack Diederich
n of the moratorium. So; in this > case I'd have to vote no, we knew going in it would do this. I was/am pro PEP 380 and pro Moratorium. We knew going in to the moratorium that PEP 380 wouldn't be included and talked about it extensively. We should honor that now for the same reasons

Re: [Python-Dev] Peculiar import code in pickle.py

2010-07-13 Thread Jack Diederich
Lib/distutils/core.py'> > > No! That's not recommended and a complete hack. The "dance" or > importlib.import_module is preferred. A complete hack with a long pedigree: module = __import__(modname, None, None, 'python2.4 is silly, revisit this line in

Re: [Python-Dev] Patch to telnetlib.py

2010-03-13 Thread Jack Diederich
dding unit tests to the module so I could be sure I wouldn't break anything but never finished the job. -Jack ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Rich Comparison recipe wrong?

2010-01-26 Thread Jack Diederich
> 2. which will mean that Python calls B.__ge__(A) > 3. Which B implements by doing A < B > 4. Start over at 1. A small correction; For the purposes of NotImplemented the opposite of __lt__ is __gt__ because if A < B then B > A. The pairs are ('==

Re: [Python-Dev] PEP 3146: Merge Unladen Swallow into CPython

2010-01-20 Thread Jack Diederich
ommit. As above, I don't think this will be a problem in practice -- how often do two people work on the same part of the core? So long as the current "firstest with with mostest" practice holds for public commits it doesn't matter what googlers do in private. I like it,

Re: [Python-Dev] E3 BEFEHLE

2010-01-16 Thread Jack Diederich
Good lord, did this make it past other people's spam filters too? I especially liked the reference to "REGION -2,0 ; Rlyeh". Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn to you too sir. -Jack 2010/1/16 Christian Heimes : > ERESSEA Lord "evzp2

Re: [Python-Dev] [RELEASED] Python 2.7 alpha 2

2010-01-11 Thread Jack Diederich
The 2to3 patch exists only because of the few other uses. 3) 100% of the module level assignments in public projects were the "__metaclass__ = type" variety which is why there isn't a fixer for that. Also, a fixer would have been really, really ugly (munge every

Re: [Python-Dev] PEP 3003 - Python Language Moratorium

2009-11-03 Thread Jack Diederich
ne of the three PEP authors so 3/3 is a no-brainer. -Jack ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Needing help to change the grammar

2009-04-10 Thread Jack diederich
code on the internet as examples they will need to know the few English keywords. Also - most python core developers are not native English speakers and do OK :) PyCon speakers are about 25% non-native English speakers and EuroPython speakers are about the r

Re: [Python-Dev] Google Summer of Code/core Python projects - RFC

2009-04-10 Thread Jack diederich
hose are goals for next year, because I'm not quite sure what the proposal is. -Jack ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] slightly inconsistent set/list pop behaviour

2009-04-08 Thread Jack diederich
hash collision in the CPython set implementation? I'm impressed. And by impressed I mean frightened. -Jack ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] decorator module in stdlib?

2009-04-07 Thread Jack diederich
rary a clever hack. Flipping Michele's commit bit (if he wants it) is overdue. A quick google doesn't show he refused it in the past, but the same search shows the things things he did do - including the explication of MRO in 2.3 (http://www.python.org/download/releases/2.3/mro/). P

[Python-Dev] Getting information out of the buildbots

2009-04-06 Thread Jack diederich
I committed some new telnetlib tests yesterday to the trunk and I can see they are failing on Neal's setup but not what the failures are. Ideally I like to get the information out of the buildbots but they all seem to be hanging on stdio tests and quiting out. Ideas? TIA,

Re: [Python-Dev] Tools

2009-04-05 Thread Jack diederich
ld be publicized so that people can pick up external > maintenance if desired. I liked Brett's (Georg's?) half joking idea at sprints. Just delete each subdirectory in a separate commit and then wait to see what people revert. -Jack ___ Python-D

Re: [Python-Dev] OSError.errno => exception hierarchy?

2009-04-02 Thread Jack diederich
power (this has been no ones itch). In order to have a hierarchy of OSError exceptions the underlying code would have to raise them. That means diving into all the C code that raises OSError and cleaning them up. I'm +1 on the idea but -1 on doing the work myself. -Jack

Re: [Python-Dev] Tracker cleanup report

2009-02-16 Thread Jack Jansen
ry look at these issues as they came by, and I didn't see any that struck me as still being relevant. -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman ___ Pytho

Re: [Python-Dev] [Python-3000] New proposition for Python3 bytes filename issue

2008-09-30 Thread Jack Jansen
ith ellipses versus dot-dot-dot and many other cases. Which means the only problem area left is unix filesystems (whether on Linux or mounted remotely on MacOS or whatever), where filenames are really byte strings with only / and nul illegal. -- Jack Jansen, <[EMAIL PROTECTED]>, htt

Re: [Python-Dev] [Python-3000] New proposition for Python3 bytes filename issue

2008-09-30 Thread Jack Jansen
side (i.e. can they both be returned from listdir() and passed to open())? CIf I compare these two filenames, do they compare differently? -- Jack Jansen, <[EMAIL PROTECTED]>, http://www.cwi.nl/~jack If I can't dance I don't want t

Re: [Python-Dev] Filename as byte string in python 2.6 or 3.0?

2008-09-29 Thread Jack Jansen
The fact that "incorrect" filenames can exist mean that the simple solution of converting NFC<->NFD in Python's open() and friends won't work (or, at least, it'll make some filenames inaccessible, and listdir() may return filenames that don't exist).

Re: [Python-Dev] [Pydotorg] Should we help pythonmac.org?

2008-08-19 Thread Jack Jansen
ribution only to find that it somehow, behind my back, was linked against a dynamic library that I had installed locally through it. -- Jack Jansen, <[EMAIL PROTECTED]>, http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman __

[Python-Dev] Not backporting PEP 3115 (metaclass __prepare__)

2008-03-18 Thread Jack Diederich
I wish I had thought of that yesterday, -Jack ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

[Python-Dev] 2.5.2 schedule?

2007-07-06 Thread Jack Howarth
I was wondering if there is a schedule for the release of a python 2.5.2 update? I don't see anything like that on the www.python.org web site. Thanks in advance for any information. Jack ___ Python-Dev mailing list Python-Dev@pytho

Re: [Python-Dev] Need Survey Answers from Core Developers

2007-05-18 Thread Jack Diederich
On Fri, May 18, 2007 at 10:23:46AM -0500, Jeff Rush wrote: > Time is short and I'm still looking for answers to some questions about > cPython, so that it makes a good showing in the Forrester survey. > [snip] > > 4) How many committers to the cPython core are there? > >I don't have the nece

Re: [Python-Dev] Contents of test_bool

2007-03-21 Thread Jack Diederich
if __bool__ functions really return bools and that the proper exceptions are raised. Those should stay in test_bool.py -Jack ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

[Python-Dev] PEP 306 changes (How to Change Python's Grammar)

2007-02-28 Thread Jack Diederich
As I found when writing the class decorator patch PEP 306 hasn't been updated since the new AST was added. Here is a suggested replacement block for the Checklist section. AST hackers feel free to make suggestions. Checklist __ Grammar/Grammar: OK, you'd probably worked this one out :)

Re: [Python-Dev] New syntax for 'dynamic' attribute access

2007-02-12 Thread Jack Jansen
re doing here is more like dictionary lookup than calling functions. -- Jack Jansen, <[EMAIL PROTECTED]>, http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman ___ Python-Dev mailing

Re: [Python-Dev] file(file)

2007-01-12 Thread Jack Jansen
We should also consider the semantics in more detail. Should the seek position be shared between the two objects? What about buffering? That's definitely the hard part. But it's somewhat similar to "normal" mutable objects which are (I think always, right?) shallow copied wh

Re: [Python-Dev] [Python-3000] Warning for 2.6 and greater

2007-01-10 Thread Jack Diederich
serious has suggested it would be easy ;) > As far as "reassurance that it won't be that bad to migrate", screens full > of warnings may be less than reassuring. If folks want to put in the effort (and people heavier than me have offered) to support light-weight optiona

Re: [Python-Dev] Renaming Include/object.h

2007-01-03 Thread Jack Jansen
uicktime framework) and the case-insensitiveness of the Mac filesystem? Will #include "python/blabla.h" always find that file along the -I paths, and not somehow accidentally start looking for /Library/Framework/Python.framework/ Headers/blabla.h? -- Jack Jansen, <[EMAIL PRO

Re: [Python-Dev] Python and the Linux Standard Base (LSB)

2006-11-29 Thread Jack Jansen
ngs to PYTHONPATH) but it has one advantage: distutils and such could be taught about it and provide an option to install either systemwide or for the current user only. -- Jack Jansen, <[EMAIL PROTECTED]>, http://www.cwi.nl/~jack If I can't dance I don't want to be part of your

Re: [Python-Dev] PEP: Adding data-type objects to Python

2006-10-30 Thread Jack Jansen
would recognize the jillaudio format "msdos linear pcm" as being identical to its own "16-bit excess-32768".Hopefully eventually all audio module writers would get together and define a set of standard audio formats. -- Jack Jansen, <[EMAIL PROTECTED]>, http://www.cwi.n

Re: [Python-Dev] The "lazy strings" patch

2006-10-24 Thread Jack Jansen
t to get at the address of the string, to fill it into a structure, blush).Look at packages such as win32, PyObjC, ctypes, bridges between Python and other languages, etc. That's where implementors are tempted to bend the rules of Official APIs for the benefit of serious optimizations. --Jac

Re: [Python-Dev] Segfault in python 2.5

2006-10-18 Thread Jack Jansen
module, not the heavy metal band:-) on Python? -- Jack Jansen, <[EMAIL PROTECTED]>, http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman ___ Python-Dev mailing list Python-Dev@python.org

[Python-Dev] OT: How many other people got this spam?

2006-10-01 Thread Jack Jansen
r link page to choose from several banner images > and text links. Once you have linked to our website, fill out the > form > and we will add your site to our directory. > > http://www.snaketracks.com/linktous.html > > I look forward to hearing from you in regards to this ema

Re: [Python-Dev] Python Doc problems

2006-09-29 Thread Jack Jansen
more globally (how this module relates to others, see also). A similar thing occurs one level higher in the library hierarchy: the section introductions are little more that a list of all the modules in the section. -- Jack Jansen, <[EMAIL PROTECTED]>, http://www.cwi.nl/~jack If I can

Re: [Python-Dev] test_itertools fails for trunk on x86 OS X machine

2006-09-21 Thread Jack Diederich
On Thu, Sep 21, 2006 at 10:23:54PM -0700, Neal Norwitz wrote: > On 9/21/06, Jack Diederich <[EMAIL PROTECTED]> wrote: > > > > I should leave the tounge-in-cheek bombast to Tim and Frederik, especially > > when dealing with what might be an OS & machine specific bu

Re: [Python-Dev] test_itertools fails for trunk on x86 OS X machine

2006-09-21 Thread Jack Diederich
On Fri, Sep 22, 2006 at 06:09:41AM +0200, "Martin v. L?wis" wrote: > Jack Diederich schrieb: > > Faced with the choice of believing in a really strange platform specific > > bug in a commonly used routine that resulted in exactly the failure caused > > by one of

Re: [Python-Dev] test_itertools fails for trunk on x86 OS X machine

2006-09-21 Thread Jack Diederich
On Thu, Sep 21, 2006 at 03:28:04PM -0700, Grig Gheorghiu wrote: > On 9/21/06, Jack Diederich <[EMAIL PROTECTED]> wrote: > > The python binary is out of step with the test_itertools.py version. > > You can generate this same error on your own box by reverting the > > chan

Re: [Python-Dev] test_itertools fails for trunk on x86 OS X machine

2006-09-21 Thread Jack Diederich
The python binary is out of step with the test_itertools.py version. You can generate this same error on your own box by reverting the change to itertoolsmodule.c but leaving the new test in test_itertools.py I don't know why this only happened on that OSX buildslave On Thu, Sep 21, 2006 at 02:34

Re: [Python-Dev] python, lipo and the future?

2006-09-17 Thread Jack Howarth
Martin, I believe if you use the Xcode project management the Universal binary creation is automated. Currently they support the i386/ppc binaries but once Leopard comes out you will see i386/x86_64/ppc/ppc64 binaries for shared libraries. Jack

Re: [Python-Dev] python, lipo and the future?

2006-09-17 Thread Jack Jansen
iscretion. For extension modules it's different, though: there it would be nice to be able to have a single module that could load into any Python (32/64 bit, Intel/PPC) on any applicable MacOSX version. -- Jack Jansen, <[EMAIL PROTECTED]>, http://www.cwi.nl/~jack If I can't d

[Python-Dev] python, lipo and the future?

2006-09-17 Thread Jack Howarth
approach to avoid the difficulty of maintaining separate lib directories for 32 and 64-bit libraries. Thanks in advance for any insights on this issue. Jack ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo

Re: [Python-Dev] gcc 4.2 exposes signed integer overflows

2006-08-27 Thread Jack Howarth
ct of this change in gcc was considered and the reasoning on their decision to follow the standard so closely. http://gcc.gnu.org/ml/gcc/2005-06/msg01238.html Just so other beside Guido see those. Jack ___ Python-Dev mailing list Pytho

Re: [Python-Dev] gcc 4.2 exposes signed integer overflows

2006-08-26 Thread Jack Howarth
n the python testsuite when python is built with gcc 4.2. Jack ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

[Python-Dev] gcc 4.2 exposes signed integer overflows

2006-08-26 Thread Jack Howarth
addressed BEFORE python 2.5 is released. The bug report is... [ 1545668 ] gcc trunk (4.2) exposes a signed integer overflows in the python sourceforge bug tracker. Thanks in advance for attempting to fix this before Python 2.5 is released. Jack

Re: [Python-Dev] ctypes and win64

2006-08-19 Thread Jack Diederich
p", "copyright", "credits" or "license" for more information. >>> import sys >>> sys.maxint 9223372036854775807 Thanks to the Alphas for making AMD64 on *nix a no-brainer, -Jack ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] os.spawnlp() missing on Windows in 2.4?

2006-08-19 Thread Jack Diederich
vailability: Unix; Windows PARTIAL (spawnlp(), spawnlpe(), spawnvp() > and spawnvpe() are not implemented). New in version 1.6" > Or *Availability: Unix: All, Windows: spawnl(), spawnle(), spawnv(), spawnve() only. New in version 1.6 Might as well positively list the half that is the

Re: [Python-Dev] [Python-checkins] TRUNK IS UNFROZEN, available for 2.6 work if you are so inclined

2006-08-17 Thread Jack Diederich
On Thu, Aug 17, 2006 at 09:07:53PM +0200, Georg Brandl wrote: > Jack Diederich wrote: > > > Looks good to me. While you are on that page do you want to change > > > > l = PyList_New(3); > > x = PyInt_FromLong(1L); > > PySequence_SetItem(l, 0, x); Py_

Re: [Python-Dev] Proposal to eliminate PySet_Fini

2006-07-02 Thread Jack Diederich
for things that have some extra setup involved (tuples have a free list for each length). -Jack ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Let's stop eating exceptions in dict lookup

2006-06-01 Thread Jack Diederich
. The CCP Games CEO said they have trouble retaining talent from more moderate latitudes for this reason. 18 hours of daylight makes them a bit goofy and when the Winter Solstice rolls around they are apt to go quite mad. -Jack ___ Python-Dev mailing

Re: [Python-Dev] Class decorators

2006-03-29 Thread Jack Diederich
[promted by Phillip Eby's post, but not in response so content snipped] I think we both want class decorators as a more fine grained substitute for __metaclass__ (fine grained as in declared per-class-instance instead of this-class-and-all-its-children). I can think of three ways class decorators

Re: [Python-Dev] Class decorators

2006-03-29 Thread Jack Diederich
On Wed, Mar 29, 2006 at 07:23:03PM -0500, Phillip J. Eby wrote: > At 11:07 AM 3/29/2006 -0800, Guido van Rossum wrote: > >On 3/28/06, Phillip J. Eby <[EMAIL PROTECTED]> wrote: > > > If we're using Zope 3 as an example, I personally find that: > > > > > > class Foo: > > > """Docstring

Re: [Python-Dev] Class decorators

2006-03-29 Thread Jack Diederich
On Wed, Mar 29, 2006 at 01:11:06AM -0500, Fred L. Drake, Jr. wrote: > On Wednesday 29 March 2006 00:48, Fred L. Drake, Jr. wrote: > > I think the existing usage for classes is perfectly readable. The > > @-syntax works well for functions as well. > > On re-reading what I wrote, I don't think I

Re: [Python-Dev] Class decorators

2006-03-28 Thread Jack Diederich
to push this > > into 2.5 though; how about 2.6? > > Wasn't there already a (pretty small) patch? I guess it would be > different now with the AST though. > I submitted one a couple years ago. The AST makes it obsolete though. I'd be happ

Re: [Python-Dev] collections.idset and collections.iddict?

2006-03-06 Thread Jack Diederich
bject equivalent to the one I am checking for. >>> a = set([1,2,3,4]) >>> b = set([1,2,3,4]) >>> a == b True >>> a is b False >>> container = [a] >>> b in container True >>> container = [id(a)] >>> id(b) in container False &g

Re: [Python-Dev] Webstats for www.python.org et al.

2006-03-01 Thread Jack Diederich
's that "Java/1.4.2_03" user agent doing? (it's responsible for > > 10% of all hits in january/february, and 20% of the hits today...) > > Most likely a crawler. > Youch, if I'm reading it right it consumed fully half of the bandwidth for today on python.org

Re: [Python-Dev] Counter proposal: multidict (was: Proposal: defaultdict)

2006-02-17 Thread Jack Diederich
y many user defined objects. By assigning the default value in __getitem__ the returned value can be manipulated via its methods. -Jack ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: htt

Re: [Python-Dev] Proposal: defaultdict

2006-02-17 Thread Jack Diederich
On Thu, Feb 16, 2006 at 01:11:49PM -0800, Guido van Rossum wrote: [snip] > Google has an internal data type called a DefaultDict which gets > passed a default value upon construction. Its __getitem__ method, > instead of raising KeyError, inserts a shallow copy (!) of the given > default value into

Re: [Python-Dev] bytes type discussion

2006-02-16 Thread Jack Diederich
nk that back when the gas price was just below 10 SEK/L, > but they found a way... > Of course they found a way. The alternative was cutting taxes. whish-I-was-winking, -Jack ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.or

Re: [Python-Dev] Baffled by PyArg_ParseTupleAndKeywords modification

2006-02-14 Thread Jack Jansen
}; > ... > if (!PyArg_ParseTupleAndKeywords(args,kws,format,kwslist,&a1)) > goto onError; At least this appears to work... -- Jack Jansen, <[EMAIL PROTECTED]>, http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman _

[Python-Dev] Baffled by PyArg_ParseTupleAndKeywords modification

2006-02-10 Thread Jack Jansen
e the C compiler rightly complains that I'm passing a const object through a non-const parameter). Can anyone enlighten me? -- Jack Jansen, <[EMAIL PROTECTED]>, http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman ___

Re: [Python-Dev] _length_cue()

2006-02-09 Thread Jack Diederich
[Raymond Hettinger] > [Armin Rigo] > > BTW the reason I'm looking at this is that I'm considering adding > > another undocumented internal-use-only method, maybe __getitem_cue__(), > > that would try to guess what the nth item to be returned will be. This > > would allow the repr of some iterators

Re: [Python-Dev] str with base

2006-01-17 Thread Jack Diederich
On Tue, Jan 17, 2006 at 06:11:36PM -0800, Bob Ippolito wrote: > > On Jan 17, 2006, at 5:01 PM, Jack Diederich wrote: > > >On Tue, Jan 17, 2006 at 04:02:43PM -0800, Guido van Rossum wrote: > >>On 1/17/06, Adam Olsen <[EMAIL PROTECTED]> wrote: > >>>>

Re: [Python-Dev] str with base

2006-01-17 Thread Jack Diederich
x27;%b'). The suggestion is to add 'b' as a sprintf-like format string %[][.]b Where the optional is the base to print in and is the optional minimum length of chars to print (as I recall). Default is base 2. Me? I like it. -Jack ___

Re: [Python-Dev] mac memory leaks

2006-01-03 Thread Jack Jansen
There don't seem to be any mac-specific modules involved... > Leak: 0x0118ad10 size=80 > Call stack: call_function | AE_AECreateDesc | AECreateDesc | operator > new(unsigned long) Hmm, the first candidates here would be test_aepack and test_scriptpackages, but neither one has an obvi

Re: [Python-Dev] Proposal: can we have a python-dev-announce mailing list?

2005-11-03 Thread Jack Jansen
On 3-nov-2005, at 22:36, Oleg Broytmann wrote: > On Thu, Nov 03, 2005 at 10:29:37PM +0100, Jack Jansen wrote: > >> I know I would be much helped with a moderated python-dev-announce >> mailing list, which would be only low-volume >> > >http://www.google.com/se

[Python-Dev] Proposal: can we have a python-dev-announce mailing list?

2005-11-03 Thread Jack Jansen
ople developing Python. Even during times when I am actively following python-dev it would be handy to have important announcements coming in in a separate mailbox in stead of buried under design discussions and such... -- Jack Jansen, <[EMAIL PROTECTED]>, http://www.cwi.nl/~jack If I can

Re: [Python-Dev] __doc__ behavior in class definitions

2005-10-07 Thread Jack Diederich
On Fri, Oct 07, 2005 at 12:15:04PM -0700, Martin Maly wrote: > Hello Python-Dev, > > My name is Martin Maly and I am a developer at Microsoft, working on the > IronPython project with Jim Hugunin. I am spending lot of time making > IronPython compatible with Python to the extent possible. > > I

  1   2   >