[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: 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] 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-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

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

[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

[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: 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] 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: 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] 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: 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] 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

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] 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

[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] 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: 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] 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
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

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] 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] 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

[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] 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

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] 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] 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] 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] [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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] [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] 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] 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

[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] 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

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

[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] 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

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] 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] 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
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 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] 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

[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] 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

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] 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] 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] 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-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] 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] 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

[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] 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

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] 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] [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] 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] [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

[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

[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

[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

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 __

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] [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] [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] 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

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

[Python-Dev] Re: [Python-checkins] python/dist/src setup.py, 1.208, 1.209

2004-12-27 Thread Jack Jansen
Wl,-x This has suddenly started failing with a very mysterious error message. When the make tries to build the extension modules I get running build running build_ext usage: setup.py [options] setup.py: error: no such option: -W Could this somehow be caused by your fix? -- Jack Jansen, &l

Re: [Python-Dev] Re: [Python-checkins] python/dist/src/Mac/OSX fixapplepython23.py, 1.1, 1.2

2004-12-29 Thread Jack Jansen
pilation fixed? Also, could you point me to a readily available extension package that uses c++? -- 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] Re: [Python-checkins] python/dist/src/Mac/OSX fixapplepython23.py, 1.2, 1.3

2005-01-02 Thread Jack Jansen
And setting MACOSX_DEPLOYMENT_TARGET to anything other than 10.3 (be it lower or higher) while compiling an extension for Apple's 2.3 is going to produce disappointing results anyway. But, if I've missed a use case, please enlighten me. -- Jack Jansen, <[EMAIL PROTECTED]>, http://w

Re: [Python-Dev] Re: [Python-checkins] python/dist/src/Mac/OSX fixapplepython23.py, 1.2, 1.3

2005-01-02 Thread Jack Jansen
le-installed Python 2.3 (if applicable, i.e. if you're installing 2.4.1 on 10.3), but for its own use it will have the newer distutils, which understands that it needs to pick up MACOSX_DEPLOYMENT_TARGET from the Makefile, so it'll never see these scripts. -- Jack Jansen, <[EMAIL PROTECTED

Re: [Python-Dev] Darwin's realloc(...) implementation never shrinks allocations

2005-01-04 Thread Jack Jansen
erent algorithm than FreeBSD or Linux. I wouldn't be surprised if the bittorrent problem report in this thread was due to being low on diskspace. And that could also be true for the original error report that sparked this discussion. -- Jack Jansen, <[EMAIL PROTECTED]>, http://www.cwi.n

Re: [Python-Dev] Mac questions

2005-01-04 Thread Jack Jansen
en you could use FSPathMakeRef() to turn the filename into an FSRef, and then FSGetCatalogInfo() to get the true filename. -- 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] Let's get rid of unbound methods

2005-01-04 Thread Jack Diederich
like the idea, it means I can get rid of this[1] func = getattr(cls, 'do_command', None) setattr(cls, 'do_command', staticmethod(func.im_func)) # don't let anyone on c.l.py see this .. or at least change the comment *grin*, -Jack [1] http://cvs.sou

Re: [Python-Dev] Let's get rid of unbound methods

2005-01-04 Thread Jack Jansen
method, specifically im_class. I would guess that info is useful to class browsers and such, or are there other ways to get at that? -- Jack Jansen, <[EMAIL PROTECTED]>, http://www.cwi.nl/~jack If I can't dance I don't want to be part

[Python-Dev] 2.3.5 schedule, and something I'd like to get in

2005-01-04 Thread Jack Jansen
I'm a bit reluctant to fiddle with the build procedure for a micro-release, so that's why I'm asking. -- 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] 2.3.5 schedule, and something I'd like to get in

2005-01-04 Thread Jack Jansen
I'm a bit reluctant to fiddle with the build procedure for a micro-release, so that's why I'm asking. -- 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] 2.3.5 schedule, and something I'd like to get in

2005-01-05 Thread Jack Jansen
k it against nothing and sort things out at runtime. Not my personal preference, but at least we know that loading an extension into one Python won't bring in a fresh copy of a different interpreter or anything horrible like that. -- Jack Jansen, <[EMAIL PROTECTED]>, http://www

Re: [Python-Dev] 2.3.5 schedule, and something I'd like to get in

2005-01-06 Thread Jack Jansen
ause you've set MACOSX_DEPLOYMENT_TARGET to a value of 10.2 or less) we use the old behaviour of linking with "-framework 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

Re: [Python-Dev] 2.3.5 schedule, and something I'd like to get in

2005-01-07 Thread Jack Jansen
/1097739 Looks good, I'll incorporate it. And as I haven't heard of any showstoppers for the -undefined dynamic_lookup (and Anthony seems to be offline this week) I'll put that in too. -- Jack Jansen, <[EMAIL PROTECTED]>, http://www.cwi.nl/~jack If I can't dance I don&#x

Re: [Python-Dev] Re: [Csv] csv module and universal newlines

2005-01-12 Thread Jack Jansen
ode", "b")): raise IOError, ("%s not opened in binary mode" % getattr(f, "name", "???")) On MacOSX you really want universal newlines. CSV files produced by older software (such as AppleWorks) will have \r line terminators, but

Re: [Python-Dev] Updated Monkey Typing pre-PEP

2005-01-21 Thread Jack Jansen
On 20 Jan 2005, at 12:07, Guido van Rossum wrote: The first problem is what I'd call incomplete duck typing. Confit de canard-typing? -- Jack Jansen, <[EMAIL PROTECTED]>, http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolu

Re: [Python-Dev] Unix line endings required for PyRun* breaking embedded Python

2005-01-21 Thread Jack Jansen
line-endings but embeds \r or \r\n in string data. But this is rather theoretical, I don't think I'd have a problem with fixing this. The real problem is: who will fix it, because the fix isn't going to be as trivial as the Python code posted here, I'm afraid... -- Jack Jansen, <

Re: [Python-Dev] Unix line endings required for PyRun* breaking embedded Python

2005-01-22 Thread Jack Jansen
On 21-jan-05, at 14:07, Bob Ippolito wrote: On Jan 21, 2005, at 7:44, Jack Jansen wrote: On 21 Jan 2005, at 08:18, Stuart Bishop wrote: Just van Rossum wrote: Skip Montanaro wrote: Just re.sub("[\r\n]+", "\n", s) and I think you're good to go. I don't think th

Re: [Python-Dev] Is msvcr71.dll re-redistributable?

2005-02-03 Thread Jack Jansen
unless they're part of the OS. What we've done in that project is link with msvcr71.dll, but not include it in the installer. I think that we could (theoretically) still be dragged into court by the FSF, but at least not by Microsoft. -- Jack Jansen, <[EMAIL PROTECTED]>, http://www.cw

Re: [Python-Dev] Re: [Python-checkins] python/dist/src/Misc NEWS, 1.1237, 1.1238

2005-02-04 Thread Jack Jansen
past conditional tense and such. It's probably having shall been in book 2). -- 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 ma

Re: [Python-Dev] Re: [Python-checkins] python/dist/src/Doc/lib libimp.tex, 1.36, 1.36.2.1 libsite.tex, 1.26, 1.26.4.1 libtempfile.tex, 1.22, 1.22.4.1 libos.tex, 1.146.2.1, 1.146.2.2

2005-02-17 Thread Jack Jansen
best to document 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 mailing list Python-Dev@python.org http://mail.python.org/mai

  1   2   >