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
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
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
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
If I can make a wild suggestion: why not create a little language for type
specifications?
If you look at other programming languages you’ll see that the “type definition
sub-language” is often completely different from the “execution sub-language”,
with only some symbols in common and used in
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
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
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
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
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
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
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).
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 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
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
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
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
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
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
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
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
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
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
};
> ...
> 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
_
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
___
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
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
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
; bgenVariable.py scantools.py
> Log Message:
> Normalize whitespace to avoid offending Bug Day volunteers.
Argh, sorry... I thought I had all my machines educated to do tab
expansion for Python, but apparently not...
--
Jack Jansen, <[EMAIL PROTECTED]>, http://www.cwi.nl/~jack
If
C) stored 32 bit
integers in middle-endian (high-order word first, but low-order byte
first).
But note that neither of the PDP-11 FPUs were IEEE, that was a much
later invention. At least, I didn't come across it until much later:-)
--
Jack Jansen, <[EMAIL PROTECTED]>, http://www.cwi.nl
d,
thus, potentially non-posix-compliant) code...
This problem is currently stopping Python 2.4.1 to compile on this
platform, so if anyone can provide any insight that would be very
helpful...
--
Jack Jansen, <[EMAIL PROTECTED]>, http://www.cwi.nl/~jack
If I can't dance I don't w
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
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
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
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
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, <
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
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
/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
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
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
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
__
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
__
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
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
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
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
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
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
__
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
50 matches
Mail list logo