Re: Fast full-text searching in Python (job for Whoosh?)

2023-03-08 Thread Dino
with it more generally. Thank you, David. Noted. -- https://mail.python.org/mailman/listinfo/python-list

[Python-announce] Python 3.12.0 alpha 6 released

2023-03-07 Thread Thomas Wouters
I'm pleased to announce the release of Python 3.12 alpha 6. https://www.python.org/downloads/release/python-3120a6/ *This is an early developer preview of Python 3.12.* Major new features of the 3.12 series, compared to 3.11 Python 3.12 is still in development. This release, 3.12.0a6

Re: Fast full-text searching in Python (job for Whoosh?)

2023-03-07 Thread Thomas Passin
, there should be no need to go back to the server. The possible responses would already have been sent to the client. They could be interned in an associative array keyed by the string the client had typed to get those responses. -- https://mail.python.org/mailman/listinfo/python-list

Python 3.12.0 alpha 6 released

2023-03-07 Thread Thomas Wouters
I'm pleased to announce the release of Python 3.12 alpha 6. https://www.python.org/downloads/release/python-3120a6/ *This is an early developer preview of Python 3.12.* Major new features of the 3.12 series, compared to 3.11 Python 3.12 is still in development. This release, 3.12.0a6

Re: Fast full-text searching in Python (job for Whoosh?)

2023-03-07 Thread rbowman
search they're using some more magic too. Try '123 ellekt'. They may be using a variation on soundex or something more sophisticated. -- https://mail.python.org/mailman/listinfo/python-list

Re: Fast full-text searching in Python (job for Whoosh?)

2023-03-07 Thread Dino
. The maps.google.com address search covers the world and they're also throwing in a geographical constraint so the suggestions are applicable to the area you're viewing. -- https://mail.python.org/mailman/listinfo/python-list

RE: Fast full-text searching in Python (job for Whoosh?)

2023-03-07 Thread avi.e.gross
. So was the web page a static file that the user runs, or is it dynamically created by something like a python program? How is the fact that a user has typed a letter in a textbox or drop down of sorts reflected in a request being sent to a python program to return possible choices? Is the same

Re: Fast full-text searching in Python (job for Whoosh?)

2023-03-07 Thread David Lowry-Duda
of community and support (https://groups.google.com/g/whoosh/c/QM_P8cGi4v4 ) and 2) Whoosh seems to be a Python only thing, which is great for now, but I wouldn't want this to become an obstacle should I need port it to a different language at some point. As others have noted, it sounds like

Re: Fast full-text searching in Python (job for Whoosh?)

2023-03-07 Thread Peter J. Holzer
| | | h...@hjp.at |-- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" signature.asc Description: PGP signature -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 2.7 range Function provokes a Memory Error

2023-03-06 Thread Chris Angelico
On Tue, 7 Mar 2023 at 16:53, Stephen Tucker wrote: > > Hi again, > > I tried xrange, but I got an error telling me that my integer was too big > for a C long. > > Clearly, xrange in Py2 is not capable of dealing with Python (that is, > possibly very long) integers. Th

Re: Python 2.7 range Function provokes a Memory Error

2023-03-06 Thread Stephen Tucker
Hi again, I tried xrange, but I got an error telling me that my integer was too big for a C long. Clearly, xrange in Py2 is not capable of dealing with Python (that is, possibly very long) integers. I am raising this because, (a) IF xrange in Py3 is a simple "port" from Py2, the

[Python-announce] SCons 4.5.1 Released

2023-03-06 Thread Bill Deegan
. == .. code-block:: text git shortlog --no-merges -ns 4.5.0..HEAD 3 William Deegan 1 Mats Wichmann ___ Python-announce-list mailing list -- python-announce-list@python.org To unsubscribe

Re: Fast full-text searching in Python (job for Whoosh?)

2023-03-06 Thread rbowman
ng. It must be nice to have a server or two... -- https://mail.python.org/mailman/listinfo/python-list

Re: Fast full-text searching in Python (job for Whoosh?)

2023-03-06 Thread Dino
infringing material must have conveyed the wrong impression to me. Thank you. Dino -- https://mail.python.org/mailman/listinfo/python-list

Re: Fast full-text searching in Python (job for Whoosh?)

2023-03-06 Thread Greg Ewing via Python-list
o be a lot of overlap between entries containing "V" and entries containing "6", so you end up searching the same data multiple times. -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: Fast full-text searching in Python (job for Whoosh?)

2023-03-06 Thread Greg Ewing via Python-list
/python-list

Re: Fast full-text searching in Python (job for Whoosh?)

2023-03-06 Thread Thomas Passin
ot used it. But for populating dropdown lists in web forms, most likely the design of the form will provide a structure for the various searches. -Original Message- From: Python-list On Behalf Of Thomas Passin Sent: Monday, March 6, 2023 11:03 AM To: python-list@python.org Subject:

RE: Fast full-text searching in Python (job for Whoosh?)

2023-03-06 Thread avi.e.gross
? And as they type, it may shrink? And as soon as they select one, it is replaced in the text field and done? If your form has an attached function written in JavaScript, some might load your data into the browser and do all that work from within. No python needed. Now if your scenario is similar

Re: Fast full-text searching in Python (job for Whoosh?)

2023-03-06 Thread Thomas Passin
used it? I know nothing about it, sorry. But anything beyond python dictionaries and possibly some lists strikes me as overkill for what you have described. IOW, do the bulk of the work once at startup. Sound advice Thank you -- https://mail.python.org/mailman/listinfo/python-list

RE: Fast full-text searching in Python (job for Whoosh?)

2023-03-06 Thread avi.e.gross
hat would work as you would now need to search 26 dictionaries completely. -Original Message- From: Python-list On Behalf Of Thomas Passin Sent: Monday, March 6, 2023 11:03 AM To: python-list@python.org Subject: Re: Fast full-text searching in Python (job for Whoosh?) On 3/6

RE: Fast full-text searching in Python (job for Whoosh?)

2023-03-06 Thread avi.e.gross
columns and for the purposes of my question here, perhaps a hundred representative rows. Should I share everything, or maybe save the subset and only share that? This is not about python as a language but about expressing ideas and opinions on a public forum with limited resources. Yes, over

Re: Fast full-text searching in Python (job for Whoosh?)

2023-03-06 Thread Dino
of the work once at startup. Sound advice Thank you -- https://mail.python.org/mailman/listinfo/python-list

Re: Fast full-text searching in Python (job for Whoosh?)

2023-03-06 Thread rbowman
rver for the next set of suggestions swamp out the actual lookups. Use the developer console in your browser to look at the network traffic and you'll see it's busy. -- https://mail.python.org/mailman/listinfo/python-list

Re: Fast full-text searching in Python (job for Whoosh?)

2023-03-06 Thread rbowman
https://mail.python.org/mailman/listinfo/python-list

Re: RE: Fast full-text searching in Python (job for Whoosh?)

2023-03-06 Thread Dino
could use grep specifications to say that. But once inside python, you would need to make choices depending on what kind of searches you want to allow but also things like do you want all matching lines shown if you search for say "a" ... -- https://mail.python.org/mailman/listinfo/python-list

Re: Fast full-text searching in Python (job for Whoosh?)

2023-03-06 Thread Dino
/python-list

Re: Fast full-text searching in Python (job for Whoosh?)

2023-03-06 Thread Thomas Passin
are it would only be seconds at most to build the data cache, and then subsequent queries would respond very quickly. From: Python-list on behalf of Thomas Passin Date: Sunday, March 5, 2023 at 9:07 PM To: python-list@python.org Subject: Re: Fast full-text searching in Python (job for Whoosh

Re: Fast full-text searching in Python (job for Whoosh?)

2023-03-06 Thread Weatherby,Gerard
by keeping our replies short and to the point. -- https://mail.python.org/mailman/listinfo/python-list

Re: Fast full-text searching in Python (job for Whoosh?)

2023-03-06 Thread Weatherby,Gerard
with. Increased performance may be achieved by building dictionaries “aa”,”ab” ... “zz. And so on. Of course, it’s trading CPU for memory usage, and there’s likely a point at which the cost of building dictionaries exceeds the savings in searching. From: Python-list on behalf of Thomas Passin Date

RE: Fast full-text searching in Python (job for Whoosh?)

2023-03-05 Thread avi.e.gross
is matching anything on any line. If you wanted only a complete field, such as all text after a comma to the end of the line, you could use grep specifications to say that. But once inside python, you would need to make choices depending on what kind of searches you want to allow but also things like do

Re: Fast full-text searching in Python (job for Whoosh?)

2023-03-05 Thread Thomas Passin
; print(len(res), res[:10]) 926900 2 ['134676021', '313467021'] >>> I can do a substring search in a list of 30k elements in less than 2ms with Python. Is my reasoning sound? I would probably ingest the data at startup into a dictionary - or perhaps several depending on your acce

Re: Fast full-text searching in Python (job for Whoosh?)

2023-03-05 Thread Dino
XC90 smart,fortwo smart,fortwo EQ cabrio smart,fortwo EQ coupe smart,fortwo cabrio smart,fortwo electric drive smart,fortwo electric drive cabrio -- https://mail.python.org/mailman/listinfo/python-list

Fast full-text searching in Python (job for Whoosh?)

2023-03-05 Thread Dino
types "v60" and a REST point will offer: [ {"model":"GV60", "manufacturer":"Genesis"}, {"model":"V60", "manufacturer":"Volvo"} ] i.e. a JSON response that I can use to generate the autof

Re: Fast full-text searching in Python (job for Whoosh?)

2023-03-05 Thread Dino
>> s = time.process_time_ns(); res = [el for el in lis if "1" in el]; print(time.process_time_ns() -s); 1511100 >>> s = time.process_time_ns(); res = [el for el in lis if "13467" in el]; print(time.process_time_ns() -s); print(len(res), res[:10]) 926900 2 ['1346

[Python-announce] SCons 4.5.0 Released

2023-03-05 Thread Bill Deegan
A new SCons release, 4.5.0, is now available on the SCons download page: https://scons.org/pages/download.html Here is a summary of the changes since 4.4.0: NOTE: If you build with Python 3.10.0 and then rebuild with 3.10.1 (or higher), you may see unexpected rebuilds. This is due

[Python-announce] Leo 6.7.2 released

2023-03-05 Thread Edward K. Ream
. Ream: edream...@gmail.com Leo Editor: https://leo-editor.github.io/leo-editor/ <http://leoeditor.com/> --------- ___ Python-announce-list mailing list -- python-announce-list@python.org To unsubscribe send an email to python-announce-list-le...@python.org https://mail.python.org/mailman3/lists/python-announce-list.python.org/ Member address: arch...@mail-archive.com

Re: Fast full-text searching in Python (job for Whoosh?)

2023-03-04 Thread Greg Ewing via Python-list
On 5/03/23 5:12 pm, Dino wrote: I can do a substring search in a list of 30k elements in less than 2ms with Python. Is my reasoning sound? I just did a similar test with your actual data and got about the same result. If that's fast enough for you, then you don't need to do anything fancy

Re: Python list insert iterators

2023-03-04 Thread Weatherby,Gerard
Python lists are arrays in other languages. You’ll have to roll your own or find something in https://pypi.org, etc. I think this incomplete implementation does the trick. # # MIT licensed # from dataclasses import dataclass from typing import TypeVar, Generic T = TypeVar("T")

Re: Python list insert iterators

2023-03-03 Thread Alan Bawden
Guenther Sohler writes: Hi Python community, I have a got an example list like 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 T T and i eventually want to insert items in the given locations (A shall go between 2 and 3, B shall go between 6 and 7) Right now i just use

Re: Python list insert iterators

2023-03-03 Thread dn via Python-list
On 03/03/2023 21.22, Guenther Sohler wrote: Hi Python community, I have a got an example list like 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 T T and i eventually want to insert items in the given locations (A shall go between 2 and 3, B shall go between 6 and 7) Right now i

[Python-announce] pytest 7.2.2

2023-03-03 Thread Bruno Oliveira
Oliveira * Garvit Shubham * Mahesh Vashishtha * Ramsey * Ronny Pfannschmidt * Teejay * q0w * vin01 Happy testing, The pytest Development Team ___ Python-announce-list mailing list -- python-announce-list@python.org To unsubscribe send an email to python

RE: Python list insert iterators

2023-03-03 Thread avi.e.gross
Thomas is correct that this is a bit of an odd request unless explained better. There are a number of implicit assumptions that need to be revisited here. Python Lists are what they are. They are not in any way tagged. They are not linked lists or binary trees or dictionaries or whatever you

Re: Python list insert iterators

2023-03-03 Thread Thomas Passin
On 3/3/2023 3:22 AM, Guenther Sohler wrote: Hi Python community, I have a got an example list like 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 T T and i eventually want to insert items in the given locations (A shall go between 2 and 3, B shall go between 6 and 7) Right now i

Python list insert iterators

2023-03-03 Thread Guenther Sohler
Hi Python community, I have a got an example list like 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 T T and i eventually want to insert items in the given locations (A shall go between 2 and 3, B shall go between 6 and 7) Right now i just use index numbers to define the place

Re: Python 3.10 Fizzbuzz

2023-03-02 Thread Keith Thompson
ightness". I offer no opinion on whether that's accurate. -- Keith Thompson (The_Other_Keith) keith.s.thompso...@gmail.com Working, but not speaking, for XCOM Labs void Void(void) { Void(); } /* The recursive call of the void */ -- https://mail.python.org/mailman/listinfo/python-list

[Python-announce] PyCA cryptography 39.0.2 released

2023-03-02 Thread Paul Kehrer
PyCA cryptography 39.0.2 has been released to PyPI. cryptography includes both high level recipes and low level interfaces to common cryptographic algorithms such as symmetric ciphers, asymmetric algorithms, message digests, X509, key derivation functions, and much more. We support Python 3.6

Re: Python 2.7 range Function provokes a Memory Error

2023-03-02 Thread Jon Ribbens via Python-list
On 2023-03-02, Stephen Tucker wrote: > The range function in Python 2.7 (and yes, I know that it is now > superseded), provokes a Memory Error when asked to deiliver a very long > list of values. > > I assume that this is because the function produces a list which it then >

Re: Python 2.7 range Function provokes a Memory Error

2023-03-02 Thread Chris Angelico
On Thu, 2 Mar 2023 at 22:27, Stephen Tucker wrote: > > Hi, > > The range function in Python 2.7 (and yes, I know that it is now > superseded), provokes a Memory Error when asked to deiliver a very long > list of values. > > I assume that this is because the functi

Re: Python 2.7 range Function provokes a Memory Error

2023-03-02 Thread 2QdxY4RzWzUUiLuE
On 2023-03-02 at 11:25:49 +, Stephen Tucker wrote: > The range function in Python 2.7 (and yes, I know that it is now > superseded), provokes a Memory Error when asked to deiliver a very long > list of values. > > I assume that this is because the function produc

Python 2.7 range Function provokes a Memory Error

2023-03-02 Thread Stephen Tucker
Hi, The range function in Python 2.7 (and yes, I know that it is now superseded), provokes a Memory Error when asked to deiliver a very long list of values. I assume that this is because the function produces a list which it then iterates through. 1. Does the range function in Python 3.x

Re: Python 3.10 Fizzbuzz

2023-03-01 Thread gene heskett
On 3/1/23 20:28, Greg Ewing via Python-list wrote: On 2/03/23 10:59 am, gene heskett wrote: Human skin always has the same color Um... no? Yes, only the intensity of the color changes, the vector angle remains the same within a degree or so. Cheers, Gene Heskett. -- "There are four

Re: Python 3.10 Fizzbuzz

2023-03-01 Thread Greg Ewing via Python-list
On 2/03/23 10:59 am, gene heskett wrote: Human skin always has the same color Um... no? -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.10 Fizzbuzz

2023-03-01 Thread Cameron Simpson
the other quote character. Cheers, Cameron Simpson -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.10 Fizzbuzz

2023-03-01 Thread Cameron Simpson
://mail.python.org/mailman/listinfo/python-list

Re: Python 3.10 Fizzbuzz

2023-03-01 Thread gene heskett
xbox.net:6309/> -- https://mail.python.org/mailman/listinfo/python-list

RE: Python 3.10 Fizzbuzz

2023-03-01 Thread avi.e.gross
This discussion has veered a bit, as it often does, but does raise interesting points about programming in general and also in python. We seem to be able to easily cite examples where a group of things is lumped for convenience and people end up using them but then tweaking them. S an example

Re: Python 3.10 Fizzbuzz

2023-03-01 Thread rbowman
s. Probably a good thing. In the early days of color TV the color values were user adjustable. A generation grew up thinking Lorne Greene (Bonanza) had a slightly green complexion to match his name. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.10 Fizzbuzz

2023-03-01 Thread Jon Ribbens via Python-list
ns. The mysterious bit is that two of the above projects do nothing except change the default of the one configuration option that *does* exist (line length). I mean, "black"'s line-length choice of 88 is insane, but I don't see the point of creating new pypi projects that do nothing except run another project with a single option set! -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.10 Fizzbuzz

2023-03-01 Thread Simon Ward
fering opinions just results in forks or wrappers that modify the behaviours that might otherwise have been configuration options. Simon -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.10 Fizzbuzz

2023-02-28 Thread Oscar Benjamin
at the point when it does that the option of reformatting is not really the thing that needs doing. Instead the right option is something like introducing a new variable to split one statement into two but Black just goes ahead and reformats without considering that option. I'm fine with not arguing about what kinds of quotes to use but that doesn't mean that I'll accept any output from Black without arguing about the code being improved. -- Oscar -- https://mail.python.org/mailman/listinfo/python-list

RE: Re: Python 3.10 Fizzbuzz

2023-02-28 Thread avi.e.gross
ality is humans vary tremendously and one may appreciate feedback as a way to improve and get out of the red and the other will assume it is a put down that leaves them black and blue, even when the words are the same. -Original Message- From: Python-list On Behalf Of Karsten Hilbert Sent: Tuesday, Fe

RE: Python 3.10 Fizzbuzz

2023-02-28 Thread avi.e.gross
xample, like certain features in many languages where if I am only doing one short line of code, I prefer to skip the fanfare. Consider an (non-python) If (condition) { print(5) } Who needs that nonsense? If the language allows it: If (condition) print(5) Or in python: If condition: p

Re: Python 3.10 Fizzbuzz

2023-02-28 Thread Mats Wichmann
erent code style, and make sure it's captured in the rules for one of the several more flexible formatting tools (for example, I *used* to use yapf pretty regularly, and had that tuned as I wanted) -- https://mail.python.org/mailman/listinfo/python-list

Aw: Re: Python 3.10 Fizzbuzz

2023-02-28 Thread Karsten Hilbert
re Of A Man. Karsten -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.10 Fizzbuzz

2023-02-28 Thread Chris Angelico
On Wed, 1 Mar 2023 at 06:25, dn via Python-list wrote: > > On 28/02/2023 12.55, Rob Cliffe via Python-list wrote: > > > > > > On 27/02/2023 21:04, Ethan Furman wrote: > >> On 2/27/23 12:20, rbowman wrote: > >> > >> > "By u

Re: Python 3.10 Fizzbuzz

2023-02-28 Thread dn via Python-list
On 28/02/2023 12.55, Rob Cliffe via Python-list wrote: On 27/02/2023 21:04, Ethan Furman wrote: On 2/27/23 12:20, rbowman wrote: > "By using Black, you agree to cede control over minutiae of hand- > formatting. In return, Black gives you speed, determinism, and freedom > fr

Re: Python 3.10 Fizzbuzz

2023-02-27 Thread Rob Cliffe via Python-list
the choice I make. -- ~Ethan~ I've never tried Black or any other code formatter, but I'm sure we wouldn't get on. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.10 Fizzbuzz

2023-02-27 Thread Greg Ewing via Python-list
/mailman/listinfo/python-list

Re: Python 3.10 Fizzbuzz

2023-02-27 Thread Oscar Benjamin
ng the rewrites that it offers for bad code does not. -- Oscar -- https://mail.python.org/mailman/listinfo/python-list

[Python-announce] REMINDER - Call for Proposals for SciPy 2023!

2023-02-27 Thread Arliss Collins
[image: image.png] Hello Folks, [image: :mega:] *Call for Proposals for SciPy 2023 closes March 1st* [image: :mega:] *Call for Proposals* <https://www.scipy2023.scipy.org/present> for the 22nd annual Scientific Computing with Python Conference — also known as SciPy 2023

Re: Python 3.10 Fizzbuzz

2023-02-27 Thread Ethan Furman
ail.python.org/mailman/listinfo/python-list

Re: Python 3.10 Fizzbuzz

2023-02-27 Thread rbowman
On Mon, 27 Feb 2023 11:08:22 -0500, Thomas Passin wrote: > I prefer single quotes because they are easier to type. There is that. JavaScript makes me lazy and C# slaps my knuckles with a steel edged ruler. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.10 Fizzbuzz

2023-02-27 Thread rbowman
for more important matters." Somehow I don't think we would get along very well. I'm a little on the opinionated side myself. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python type system

2023-02-27 Thread Chris Angelico
On Tue, 28 Feb 2023 at 03:29, Weatherby,Gerard wrote: > Beyond Python, I’ve also found duck typing useful in real life. If it walks > like a troll, quacks like a troll … > ... regenerates limbs like a troll... ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Python type system

2023-02-27 Thread Weatherby,Gerard
When I first started transitioning to Python as a Perl replacement, with my Java/C++ baggage, I thought Pythnon had some loosey-goosey type system. I thought int() and str() were casts, not constructors. I now realize Python has a great strong type system. Duck typing. If it walks like a duck

Re: Python 3.10 Fizzbuzz

2023-02-27 Thread Thomas Passin
uotes because they are easier to type. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.10 Fizzbuzz

2023-02-27 Thread Mats Wichmann
efer double quotes, because it's going to convert single to double (or: don't learn, and set your IDE to "convert on save" and don't think about it...) As has already been mentioned, syntactically there is no difference. -- https://mail.python.org/mailman/listinfo/python-list

RE: Python 3.10 Fizzbuzz

2023-02-26 Thread avi.e.gross
Only sometimes. Is it an insult to suggest the question about what quotes to use is quite basic? Python has a wide variety of ways to make a string and if you have text that contains one kind of quote, you can nest it in the other kind. Otherwise, it really does not matter. And, yes

[Python-announce] ANN: Austin -- CPython frame stack sampler v3.5 is now available

2023-02-26 Thread Gabriele Tornetta
I am delighted to announce the 3.5 release of Austin. If you haven't heard of Austin before, it is an open-source frame stack sampler for CPython, distributed under the GPLv3 license. It can be used to obtain statistical profiling data out of a running Python application without a single line

Re: Python 3.10 Fizzbuzz

2023-02-26 Thread Skip Montanaro
irks me > a bit to see repr() still use single quotes in all cases, which requires > display of single quotes to be escaped. (In similar fashion, it would be a > minor improvement in my mind if the repr() code used raw strings where they > would simplify the display.) > > Skip > >> -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.10 Fizzbuzz

2023-02-26 Thread Skip Montanaro
raw strings where they would simplify the display.) Skip > -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.10 Fizzbuzz

2023-02-26 Thread Hen Hanna
; > case 15: return "FizzBuzz" > case _: return str(n) > > for i in range(1,101): > print(fizz(i)) is there any reason to prefer"over' ? -- https://mail.python.org/mailman/listinfo/python-list

Re-indenting Python code in Vim

2023-02-26 Thread Hen Hanna
Re-indenting Lisp code is =% and it works really well ! (define (foo x) (dotimes (i 100) (bar bar x))) --- it doesn't work as well for Python code. (doing 5

[Python-announce] Cython 3.0 beta 1 is released

2023-02-26 Thread Stefan Behnel
3.0 is better than any other Cython release before, in all aspects. It's much more Python, integrates better with C++, supports more Python implementations and configurations, provides many great new language features – it's faster, safer and easier to use. It's simply better. https

Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-25 Thread Weatherby,Gerard
“So the case where the assumption fails may not be easily reproducable and the more information you can get post-mortem the better” That’s true for rare corner cases or esoteric race conditions. Usually, when I see asserts it's just because I was just plain stupid. From: Python-list on behalf

Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-25 Thread Peter J. Holzer
ve writing __/ | http://www.hjp.at/ | challenge!" signature.asc Description: PGP signature -- https://mail.python.org/mailman/listinfo/python-list

Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-25 Thread Weatherby,Gerard
. For that use, the default behavior –telling me which line the assert is on, is more than sufficient. Depending on the circumstance, I’ll re-run the code with a breakpoint or replace the assert with an informative f-string Exception. From: Python-list on behalf of Peter J. Holzer Date: Saturday

Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-25 Thread Peter J. Holzer
error in the expression triggers an exception (as in this case) the explanatory string will never be displayed. hp -- _ | Peter J. Holzer| Story must make more sense than reality. |_|_) || | | | h...@hjp.at |-- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" signature.asc Description: PGP signature -- https://mail.python.org/mailman/listinfo/python-list

Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-25 Thread Thomas Passin
On 2/25/2023 1:13 AM, Peter J. Holzer wrote: On 2023-02-24 18:19:52 -0500, Thomas Passin wrote: On 2/24/2023 2:47 PM, dn via Python-list wrote: On 25/02/2023 08.12, Peter J. Holzer wrote: On 2023-02-24 16:12:10 +1300, dn via Python-list wrote: In some ways, providing this information seems

Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-24 Thread Peter J. Holzer
On 2023-02-24 18:19:52 -0500, Thomas Passin wrote: > On 2/24/2023 2:47 PM, dn via Python-list wrote: > > On 25/02/2023 08.12, Peter J. Holzer wrote: > > > On 2023-02-24 16:12:10 +1300, dn via Python-list wrote: > > > > In some ways, providing this information seems

Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-24 Thread Thomas Passin
On 2/24/2023 2:47 PM, dn via Python-list wrote: On 25/02/2023 08.12, Peter J. Holzer wrote: On 2023-02-24 16:12:10 +1300, dn via Python-list wrote: In some ways, providing this information seems appropriate. Curiously, this does not even occur during an assert exception - despite the value

Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-24 Thread Peter J. Holzer
On 2023-02-25 08:47:00 +1300, dn via Python-list wrote: > That said, have observed coders 'graduating' from other languages, making > wider use of assert - assumed to be more data (value) sanity-checks than > typing, but ... > > Do you use assert frequently? Not very ofte

Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-24 Thread dn via Python-list
On 25/02/2023 08.12, Peter J. Holzer wrote: On 2023-02-24 16:12:10 +1300, dn via Python-list wrote: In some ways, providing this information seems appropriate. Curiously, this does not even occur during an assert exception - despite the value/relationship being the whole point of using

Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-24 Thread Peter J. Holzer
On 2023-02-24 16:12:10 +1300, dn via Python-list wrote: > In some ways, providing this information seems appropriate. Curiously, this > does not even occur during an assert exception - despite the > value/relationship being the whole point of using the command! > > x = 1 >

Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-24 Thread Peter J. Holzer
On 2023-02-23 20:32:26 -0700, Michael Torrie wrote: > On 2/23/23 01:08, Hen Hanna wrote: > > Python VM is seeing an "int" object (123) (and telling me that) > > ... so it should be easy to print that "int" object What does > > Python VMknow

Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-24 Thread Peter J. Holzer
r: can only concatenate str (not "int") to str > > > > > > Why doesn't Python (error msg) do the obvious thing and tell me > > WHAT the actual (offending, arg) values are ? > > > > In many cases, it'd help to know what string the var A had , when t

[Python-announce] ANN: A new version (0.14.0) of sparse has been released.

2023-02-24 Thread Hameer Abbasi
/ signature.asc Description: Message signed with OpenPGP ___ Python-announce-list mailing list -- python-announce-list@python.org To unsubscribe send an email to python-announce-list-le...@python.org https://mail.python.org/mailman3/lists/python-announce

Re: lxml with python-3.12.0a5

2023-02-24 Thread Robin Becker
into python-3.12.0a5 I used latest lxml source and python setup.py bdist_wheel --with-cython which built without error. The installed lxml seems fine (at least for reportlab tests). -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

RE: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-23 Thread avi.e.gross
We have been supplying many possible reasons or consequences for why the implementation of python does not do what the OP wants and even DEMANDS. I am satisfied with knowing it was because they CHOSE NOT TO in some places and maybe not in others. It is nice to see some possible reasons

Re: Why doesn't Python (error msg) tell me WHAT the actual (arg) values are ?

2023-02-23 Thread Michael Torrie
On 2/23/23 01:08, Hen Hanna wrote: > Python VM is seeing an "int" object (123) (and telling me that) ... > so it should be easy to print that "int" object > What does Python VMknow ? and when does it know it ? It knows there is an object and its name

<    4   5   6   7   8   9   10   11   12   13   >