Re: Line continuation and comments

2023-02-22 Thread Paul Bryan
Adding to this, there should be no reason now in recent versions of Python to ever use line continuation. Black goes so far as to state "backslashes are bad and should never be used": https://black.readthedocs.io/en/stable/the_black_code_style/future_style.html#using-backslashes-for-with-statement

Re: Typing Number, PyCharm

2023-02-06 Thread Paul Bryan
On Mon, 2023-02-06 at 12:11 +, Weatherby,Gerard wrote: > On the one hand, it is a well-known type, so it should be > recognizable to users of an API. On the other hand, Number is > entirely abstract, so it doesn’t provide useful type checking for the > implementation; I had to add # noinspecti

Re: Improvement to imports, what is a better way ?

2023-01-18 Thread Paul Bryan
On Thu, 2023-01-19 at 09:47 +1300, dn via Python-list wrote: > The longer an identifier, the more it 'pushes' code over to the right > or  > to expand over multiple screen-lines. Some thoughts on this are > behind > PEP-008 philosophies, eg line-limit. I sympathize with this issue. I've pushed t

Re: Improvement to imports, what is a better way ?

2023-01-18 Thread Paul Bryan
I would suggest allowing each module to define its own imports, don't import what a module doesn't consume, keep them simple, avoid devising a common namespace for each, and let tools like isort/black work out how to order/express them in source files. On Wed, 2023-01-18 at 10:43 -0800, Dan Kolis

Re: set.add() doesn't replace equal element

2022-12-30 Thread Paul Bryan
er durable immutable attribute, I would be inclined to make that the dictionary key, and store the DHCP object as the value. On Fri, Dec 30 2022 at 04:27:56 PM -0600, Ian Pilcher wrote: On 12/30/22 15:47, Paul Bryan wrote: What kind of elements are being added to the set? Can you show repr

Re: set.add() doesn't replace equal element

2022-12-30 Thread Paul Bryan
What kind of elements are being added to the set? Can you show reproducible sample code? On Fri, Dec 30 2022 at 03:41:19 PM -0600, Ian Pilcher wrote: I just discovered this behavior, which is problematic for my particular use. Is there a different set API (or operator) that can be used to a

Re: Are these good ideas?

2022-11-14 Thread Paul Bryan
Seems like this is a use case for context managers and/or context variables: https://docs.python.org/3/library/contextlib.html https://docs.python.org/3/library/contextvars.html On Mon, 2022-11-14 at 17:14 +, Stephen Tucker wrote: > Hi, > > I have two related issues I'd like comments on. >

Re: python 3.10 vs breakage

2022-08-26 Thread Paul Bryan
lity.  [1] https://github.com/kliment/Printrun/blob/master/README.md On Fri, 2022-08-26 at 17:36 -0400, gene heskett wrote: > On 8/26/22 16:54, Paul Bryan wrote: > > Why can't you build linuxcnc with it? Why has Octoprint quit > > talking to > > 3d printers? Why won'

Re: python 3.10 vs breakage

2022-08-26 Thread Paul Bryan
Why can't you build linuxcnc with it? Why has Octoprint quit talking to 3d printers? Why won't pronterface buy it? Why can't you find a 4.0.7 version of wxPython? Why is it sitting there staring at you? What is bookworm? What is bullseye? On Fri, 2022-08-26 at 16:37 -0400, gene heskett wrote: > Gr

Re: subprocess.popen how wait complete open process

2022-08-21 Thread Paul Bryan
Sometimes, launching subprocesses can seem like punishment. I don't think there is a standard cross-platform way to know when a launched asynchronous process is "fully open" (i.e. fully initialized, accepting user input). On Sun, 2022-08-21 at 02:11 -0700, simone zambonardi wrote: > Hi, I am runni

Re: Information about Dying kernel

2022-08-07 Thread Paul Bryan
Have you tried turning it off and back on again? On Sun, 2022-08-07 at 18:59 +0200, nhlanhlah198506 wrote: > Greetings What can I do if my computer said my kernels has died Thank > you Sent from my Galaxy -- https://mail.python.org/mailman/listinfo/python-list

Re: Which linux distro is more conducive for learning the Python programming language?

2022-08-03 Thread Paul Bryan
I wouldn't say any particular Linux distribution is appreciably better for Python development than another. I would suggest using a version of a Linux distribution that supports a recent Python release (e.g. 3.9 or 3.10). On Thu, 2022-08-04 at 10:22 +0800, Turritopsis Dohrnii Teo En Ming wrote: >

Re: Subtract n months from datetime

2022-06-20 Thread Paul Bryan
Here's how my code does it: import calendar def add_months(value: date, n: int):   """Return a date value with n months added (or subtracted if negative)."""   year = value.year + (value.month - 1 + n) // 12   month = (value.month - 1 + n) % 12 + 1   day = min(value.day, calendar.monthrange(year

Re: F-string usage in a print()

2022-05-24 Thread Paul Bryan
Try something like: print(f"Year = {years}, Future value = {future_value}") On Tue, 2022-05-24 at 21:14 +, Kevin M. Wilson via Python-list wrote: > future_value = 0 > for i in range(years): > # for i in range(months): >    future_value += monthly_investment >    future_value = round(future_va

Re: Non-deterministic set ordering

2022-05-15 Thread Paul Bryan
This may explain it: https://stackoverflow.com/questions/27522626/hash-function-in-python-3-3-returns-different-results-between-sessions On Mon, 2022-05-16 at 04:20 +0100, Rob Cliffe via Python-list wrote: > > > On 16/05/2022 04:13, Dan Stromberg wrote: > > > > On Sun, May 15, 2022 at 8:01 PM R

Re: .0 in name

2022-05-13 Thread Paul Bryan
On Fri, 2022-05-13 at 22:02 +, Avi Gross via Python-list wrote: > So why you wonder where it is documented that variables cannot be > what you feel like is a bit puzzling!  I had just assumed on good faith that the request to the documentation would be so that the OP could determine what is v

Re: .0 in name

2022-05-13 Thread Paul Bryan
On Sat, 2022-05-14 at 00:47 +0800, bryangan41 wrote: > May I know (1) why can the name start with a number? The name of an attribute must be an identifier. An identifier cannot begin with a decimal number. > (2) where in the doc is it?! https://docs.python.org/3/reference/lexical_analysis.html#

Re: Why does datetime.timedelta only have the attributes 'days' and 'seconds'?

2022-04-14 Thread Paul Bryan
I think because minutes and hours can easily be composed by multiplying seconds. days is separate because you cannot compose days from seconds; leap seconds are applied to days at various times, due to irregularities in the Earth's rotation. On Thu, 2022-04-14 at 15:38 +0200, Loris Bennett wrote:

Re: for convenience

2022-03-21 Thread Paul Bryan
gt; > > > > On 21 Mar 2022, at 22:24, Paul Bryan wrote: > > > > Assuming `bpy` is a module, you're creating a new attribute in your > > module, `context`, that contains a reference to the same object > > that is referenced in the `context` attribute in th

Re: for convenience

2022-03-21 Thread Paul Bryan
Assuming `bpy` is a module, you're creating a new attribute in your module, `context`, that contains a reference to the same object that is referenced in the `context` attribute in the `bpy` module. On Mon, 2022-03-21 at 22:12 +0100, Paul St George wrote: > > When I am writing code, I often do th

Re: A Newspaper for Python Mailing Lists

2022-01-11 Thread Paul Bryan
Subscribed. 🙂️ On Wed, 2022-01-12 at 00:35 +0400, Abdur-Rahmaan Janhangeer wrote: > Added RSS: > > 2.0 unless later versions have some advantages: > > https://pyherald.com/rss.xml > > Kind Regards, > > Abdur-Rahmaan Janhangeer > about | blog  > github > Mauritius > -- https://mail.python.or

Re: A Newspaper for Python Mailing Lists

2022-01-08 Thread Paul Bryan
+1 to RSS. On Sun, 2022-01-09 at 10:28 +0400, Abdur-Rahmaan Janhangeer wrote: > Well yes XD though LWN covers Py topics well when it wants > > > 1. Yes sure, did not expect RSS interest > 2. Excuse my blunder, will do! > > On Sun, 9 Jan 2022, 01:15 Peter J. Holzer, wrote: > > > On 2021-12-26

Re: Custom designed alarm clock

2021-12-18 Thread Paul Bryan
Suggested reading: https://pypi.org/project/python-for-android/ https://play.google.com/store/apps/details?id=org.qpython.qpy3 https://www.androidauthority.com/an-introduction-to-python-on-android-759685/ https://data-flair.training/blogs/android-app-using-python/ On Sat, 2021-12-18 at 18:36 -050

Re: Isn't TypeError built in?

2021-12-12 Thread Paul Bryan
Yes, TypeError is built in. The only thing I can think of is that something has deleted `TypeError` from `__builtins__`? It would be interesting to see what's in `__builtins__` when `__del__` is called. On Mon, 2021-12-13 at 12:22 +1100, Mike Dewhirst via Python-list wrote: > Obviously something i

Re: Urllib.request vs. Requests.get

2021-12-07 Thread Paul Bryan
Cloudflare, for whatever reason, appears to be rejecting the `User- Agent` header that urllib is providing:`Python-urllib/3.9`. Using a different `User-Agent` seems to get around the issue: import urllib.request req = urllib.request.Request( url="https://juno.sh/direct-connection-to-jupyter-s

Re: Advantages of Default Factory in Dataclasses

2021-11-21 Thread Paul Bryan
On Sun, 2021-11-21 at 21:51 +0400, Abdur-Rahmaan Janhangeer wrote: > > On Tue, Nov 16, 2021 at 7:17 PM Paul Bryan wrote: > > On Tue, 2021-11-16 at 17:04 +0400, Abdur-Rahmaan Janhangeer wrote: > > > > > A simple question: why do we need field(default_fac

Re: Advantages of Default Factory in Dataclasses

2021-11-16 Thread Paul Bryan
On Tue, 2021-11-16 at 17:04 +0400, Abdur-Rahmaan Janhangeer wrote: > A simple question: why do we need field(default_factory ) in > dataclasses? To initialize a default value when a new instance of the dataclass is created. For example, if you want a field to default to a dict. A new dict is crea

Re: Python script seems to stop running when handling very large dataset

2021-10-29 Thread Paul Bryan
With so little information provided, not much light will be shed. When it stops running, are there any errors? How is the dataset being processed? How large is the dataset? How large a dataset can be successfully processed? What libraries are being used? What version of Python are you using? On wha

Re: Request for argmax(list) and argmin(list)

2021-08-31 Thread Paul Bryan
Why not: >>> l = [1, 3, 5, 9, 2, 7] >>> l.index(max(l)) 3 >>> l.index(min(l)) 0 On Tue, 2021-08-31 at 21:25 -0700, ABCCDE921 wrote: > I dont want to import numpy > > argmax(list) >    returns index of (left most) max element > >  argmin(list) >    returns index of (left most) min element --

Re: src layout for projects seems not so popular

2021-08-31 Thread Paul Bryan
An interesting thread in PyPA (with links to other threads) discussing src layout: https://github.com/pypa/packaging.python.org/issues/320 On Tue, 2021-08-31 at 10:53 +0400, Abdur-Rahmaan Janhangeer wrote: > Greetings list, > > Just an observation. Out of Github's trending repos for > Python for

Re: a simple question

2021-07-26 Thread Paul Bryan
It would help to know the error message you get every time. On Mon, 2021-07-26 at 22:19 +, Glenn Wilson via Python-list wrote: > I recently downloaded the latest version of python, 3.9.6. Everything > works except, the turtle module. I get an error message every time , > I use basic commands l

Re: Where to keep local Python modules?

2021-07-23 Thread Paul Bryan
On my Arch Linux box, slightly different path, but still in .local/bin: pbryan@dynamo:~$ python3 Python 3.9.6 (default, Jun 30 2021, 10:22:16) [GCC 11.1.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> sys.path ['', '/usr/lib/python39.zip', '/u

Re: Replacement for Mailman

2021-06-08 Thread Paul Bryan
How about Mailman 3.x on Python 3.x? On Tue, 2021-06-08 at 15:08 -0400, D'Arcy Cain wrote: > Given that mailman still runs under 2.7 and that's being deprecated, > does > anyone have a suggestion for a replacement? > -- https://mail.python.org/mailman/listinfo/python-list

Re: Proposal: Disconnect comp.lang.python from python-list

2021-05-06 Thread Paul Bryan
I do not believe my proposal has reached—or will reach—consensus. It seems there are some who still value the linkage between the two, and the S/N ratio is indeed low enough it doesn't warrant changing from the status quo. Thanks everyone for the consideration and discussion.  Paul On Thu, 2021-0

Re: Proposal: Disconnect comp.lang.python from python-list

2021-05-06 Thread Paul Bryan
I will also add that it can get confusing when someone replies to a newsgroup posting that was originally suppressed to the mailing list. This has happened as recently as today. On Thu, 2021-05-06 at 14:36 +, Grant Edwards wrote: > On 2021-05-06, Chris Angelico wrote: > > On Thu, May 6, 2021

Re: Proposal: Disconnect comp.lang.python from python-list

2021-05-05 Thread Paul Bryan
What's involved in moderating c.l.p? Would there be volunteers willing to do so? On Thu, 2021-05-06 at 00:43 +, Jon Ribbens via Python-list wrote: > On 2021-05-06, Chris Angelico wrote: > > On Thu, May 6, 2021 at 10:32 AM Paul Bryan wrote: > > > > > > G

Proposal: Disconnect comp.lang.python from python-list

2021-05-05 Thread Paul Bryan
Given the ease of spoofing sender addresses, and its propensity for use in anonymous spamming and trolling (thanks python-list-owner for staying on top of that!), I propose to disconnect comp.lang.python from the python-list mailing list. Both would then operate independently. Paul -- https://ma

Re: Not found in the documentation

2021-04-26 Thread Paul Bryan
I agree. I would be useful for it to be documented elsewhere, especially in docstrings. I wonder if this is/was a conscious decision to keep Python runtime smaller? Paul On Mon, 2021-04-26 at 18:24 -0700, elas tica wrote: > Le mardi 27 avril 2021 à 01:44:04 UTC+2, Paul Bryan a écrit : >

Re: Not found in the documentation

2021-04-26 Thread Paul Bryan
From  https://docs.python.org/3/reference/datamodel.html#the-standard-type-hierarchy : > The string representations of the numeric classes, computed > by__repr__() and __str__(), have the following properties: > * They are valid numeric literals which, when passed to their >class constructor,

Re: Current thinking on required options

2021-04-19 Thread Paul Bryan
Calling them options—when they're required—seems like a problem. 🙂 On Mon, 2021-04-19 at 09:04 -0700, Dan Stromberg wrote: > On Mon, Apr 19, 2021 at 2:55 AM Loris Bennett > > wrote: > > > However, the options -o, -u, and -g are required, not optional. > > > > The documentation > > > >   https:

Re: Website

2021-04-14 Thread Paul Bryan
Yes. On Wed, 2021-04-14 at 15:41 +0200, Rainyis wrote: > Hello, > I am Sergio Llorente, and I want to create a web about python. I > will publish apps, scripts.. made by python. I will like to put > python in > the domain. The domain will be like all-about-python.com but in > Spanish( > todosobrep

Re: question about basics of creating a PROXY to MONITOR network activity

2021-04-10 Thread Paul Bryan
Cloudflare operates as a reverse proxy in front of your service(s); clients of your services access them through an endpoint that Cloudflare stands up. DNS records point to Cloudflare, and TLS certificates must be provisioned in Cloudflare to match. For all intents and purposes, you would be outsou

Re: question about basics of creating a PROXY to MONITOR network activity

2021-04-10 Thread Paul Bryan
There is absolutely nothing wrong with building your own reverse proxy in front of your own service, as long as you control both. This constitutes a tiered network/application architecture, and it's a common practice. There's no man in the middle; there's no imposter; its all "you".  If your proxy

Re: Problem in uninstalling python

2021-04-09 Thread Paul Bryan
Please describe your problem in detail. Paul On Fri, 2021-04-09 at 11:03 +0530, arishmallick...@gmail.com wrote: >    I am encountering problem in uninstalling python. Please help me > in this. > > > >    Sent from [1]Mail for Windows 10 > > > > References > >    Visible links >    1. htt

Re: Code Formatter Questions

2021-03-28 Thread Paul Bryan
On Sun, 2021-03-28 at 15:42 +, Travis Griggs wrote: > I've been looking into using a code formatter as a code base size has > grown as well as contributing developers. I've found and played with > autopep, black, and yapf. As well as whatever pycharm has (which may > just be gui preferences aro

Re: .title() - annoying mistake

2021-03-21 Thread Paul Bryan
The topic of titles is complex, and would be significant undertaking to automate. It's not only highly language-dependent, it's also based on the subject work itself, and subject to guidelines of those charged with indexing such works. MusicBrainz guidelines: https://wiki.musicbrainz.org/Style/Tit

Re: .title() - annoying mistake

2021-03-19 Thread Paul Bryan
From https://docs.python.org/3.9/library/stdtypes.html#str.title: > The algorithm uses a simple language-independent definition of a word > as groups of consecutive letters. The definition works in many > contexts but it means that apostrophes in contractions and > possessives form word boundaries

Re: SSL certificate issue

2021-03-18 Thread Paul Bryan
In order for us to help, we'll need to know the details of your problem. On Thu, 2021-03-18 at 10:58 +, Sagar, Neha wrote: > Hi, > > I am facing SSL certificate issue working with python. Can you help > me on this. > > Thanks, > Neha > > DXC Technology India Private Limited - Unit 13, Block

Re: Apriori Algorithm

2021-03-06 Thread Paul Bryan
Google tells me this: https://github.com/tommyod/Efficient-Apriori On Sat, 2021-03-06 at 18:46 -0800, sarang shah wrote: > I want to make apriori algorithm from start. Anybody have any > reference file? -- https://mail.python.org/mailman/listinfo/python-list

Re: program python

2021-03-04 Thread Paul Bryan
I don't see a Python program in that link. Are you asking how to extract data from a CSV? A good start will be to look into the csv.reader function and csv.DictReader class. Paul On Thu, 2021-03-04 at 12:36 -0800, alberto wrote: > Hi I'm tring to write a program with python to evaluate data of c

Re: Fw: Scipy installation

2021-02-18 Thread Paul Bryan
Can you describe what you tried, and how it failed? Pasting error messages and such would be helpful. On Thu, 2021-02-18 at 17:53 +, Mustafa Althabit via Python-list wrote: >   > >    Hi,I am trying to install Scipy but it failed, I have python > 3.9. I need your assistance with that.  > Than

Re: New Python implementation

2021-02-11 Thread Paul Bryan
On Thu, 2021-02-11 at 17:56 +, Mr Flibble wrote: > Actually it is a relatively small task due to the neos universal > compiler's architectural design.  If it was a large task I wouldn't > be doing it. When do you estimate this task will be completed? > I am not particularly interested in any

Re: Mutable defaults

2021-02-10 Thread Paul Bryan
Also -1 on changing the existing default behavior. +1 to an opt-in late-bound solution. On Thu, 2021-02-11 at 10:29 +1100, Chris Angelico wrote: > On Thu, Feb 11, 2021 at 10:17 AM J. Pic wrote: > > > > > Most of us know of the perils of mutable default values. > > > > And those who don't pay th

Re: Python cannot count apparently

2021-02-07 Thread Paul Bryan
That's not the only problem with the code. There's a missing close- paren and a reference to "string" which I presume was meant to be "myString". Suggest OP create a reproducible case, and paste the code and output verbatim. On Sun, 2021-02-07 at 20:40 +0100, Karsten Hilbert wrote: > Am Sun, Feb

Re: IDE tools to debug in Python?

2021-01-27 Thread Paul Bryan via Python-list
My experience with IntelliJ (related to PyCharm): it scans all source files in the project, compiles them, graphs all dependencies, compiles those (if necessary) or inspects their class bytecode, and so on to build a full graph in memory to support showing errors in real time (highlighting in sourc

Re: dict.get(key, default) evaluates default even if key exists

2020-12-16 Thread Paul Bryan
Maybe this will help: >>> def get(key, default): ... print("entering get") ... print(f"{key=} {default=}") ... print("exiting get") ... >>> def generate_default(): ... print("entering generate_default") ... print("exiting generate_default") ... return 1 ... >>> get("a", generate_defa

Re: dict.get(key, default) evaluates default even if key exists

2020-12-16 Thread Paul Bryan
On Wed, 2020-12-16 at 10:01 +0100, Loris Bennett wrote: > OK, I get the point about when the default value is generated and > that > potentially being surprising, but in the example originally given, > the > key 'a' exists and has a value of '1', so the default value is not > needed. But the func

Re: dict.get(key, default) evaluates default even if key exists

2020-12-16 Thread Paul Bryan
On Wed, 2020-12-16 at 08:59 +0100, Loris Bennett wrote: > Isn't the second argument to D.get() the value to be return if the > first > argument is not a valid key?  In that case, why does it make any > difference here what the second argument of D.get() is since the key > 'a' > does exist? > > Th

Re: Function returns old value

2020-12-11 Thread Paul Bryan
Sorry, actually, if you do not answer yes, will always return None, not the first answer as I suggested. On Fri, 2020-12-11 at 18:55 -0700, Joe Pfeiffer wrote: > Bischoop writes: > > > I've function asking question and comparing it, if is not matching > > 'yes' > > it does call itself to ask que

Re: Function returns old value

2020-12-11 Thread Paul Bryan
It won't return until the inner call to question (and it's not using the return value on inner call). Eventually, (and not until you answer yes) it will return the first answer. On Fri, 2020-12-11 at 18:55 -0700, Joe Pfeiffer wrote: > Bischoop writes: > > > I've function asking question and comp

Re: Property type hints?

2020-12-09 Thread Paul Bryan
Thanks for the comprehensive response, dn! I guess I'm influenced by data classes here, where the object's attribute type hints are represented by class variable annotations. On Thu, 2020-12-10 at 07:49 +1300, dn via Python-list wrote: > On 09/12/2020 13:17, Paul Bryan wrote: >

Property type hints?

2020-12-08 Thread Paul Bryan
Would this be a reasonably correct way to annotate a property with a type hint? >>> class Foo: ... bar: int ... @property ... def bar(self): ... return 1 ... >>> foo = Foo() >>> import typing >>> typing.get_type_hints(foo) {'bar': } I could also decorate the property method r

Re: help(list[int]) → TypeError

2020-12-04 Thread Paul Bryan
Thanks, will bring it to the dev list. On Fri, 2020-12-04 at 07:07 -0800, Julio Di Egidio wrote: > On Thursday, 3 December 2020 at 19:28:19 UTC+1, Paul Bryan wrote: > > Is this the correct behavior? > > > > Python 3.9.0 (default, Oct 7 2020, 23:09:01) > > [GCC 10.2.

Re: list[type, type, ...] ?!

2020-12-03 Thread Paul Bryan
Thanks, Greg. Would it make sense for list's __class_getitem__ (GenericAlias?) to perform similar checking as typing._SpecialGenericAlias (nparams)? On Fri, 2020-12-04 at 12:15 +1300, Greg Ewing wrote: > On 3/12/20 7:37 pm, Paul Bryan wrote: > > > > > list[int, int] > &g

help(list[int]) → TypeError

2020-12-03 Thread Paul Bryan
Is this the correct behavior? Python 3.9.0 (default, Oct 7 2020, 23:09:01) [GCC 10.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> help(list[int]) Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.9/_sitebuiltins.py", line

list[type, type, ...] ?!

2020-12-03 Thread Paul Bryan
Using the typing.List generic alias, I can only specify a single type. Example: >>> typing.List[int] typing.List[int] When I try to specify additional types, it fails. Example: >>> typing.List[int, int] Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.9/typing.p

Re: How explain why Python is easier/nicer than Lisp which has a simpler grammar/syntax?

2020-08-11 Thread bryan . gene . olson
Christian Seberino wrote: > A beginner I think could learn Lisp much faster than Python. For talented beginners, Lisp rocks much like Python, in that easy assignments are easy enough to implement. On the high end, Lisp rocks again: Lisp masters are astonishingly productive. In between, beyond pe

RV: CodecRegistryError problem for an IDE.

2020-05-15 Thread Bryan Cabrera Ramírez
    Best regards,   Thank you,   Bryan Cabrera Ramirez     -- https://mail.python.org/mailman/listinfo/python-list

Re: How to detect if a file is executable on Windows?

2019-02-19 Thread bryan rasmussen
ethod to find out if an individual file was an executable. Hope it helps, because that means I still have some usable knowledge in that area! Best Regards, Bryan Rasmussen On Tue, Feb 19, 2019 at 2:49 PM Stephane Wirtel wrote: > And based on a determinist solution? > > Yes, you

pip failed installs

2017-12-16 Thread Bryan Zimmer
Wait! Cancel my last post! In exploring the virtual environment, I was struck by the existence of an executable *pip *in the virtual environment's "bin" directory. So I tried again to install BeautifulSoup, but this time I got a very different error message. This pip couldn't find BeautifulSoup, u

pip failed installs

2017-12-16 Thread Bryan Zimmer
I believe it's because you're installing that into a directory that the current user has no write privileges for. Try installing those into a virtual environment (if you don't know what that is, let us know!). -Jorge On Sat, Dec 16, 2017 at 1:27 PM, Bryan Zimmer wrote: I have h

pip failed installs

2017-12-16 Thread Bryan Zimmer
I have had only partial success with pip. Some things seem to install OK. But I've tried a couple of packages, specifically "BeautifulSoup" and "WxPython", and they fail with the same message, e.g.: *Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ku98d6jd/BeautifulSo

Module _socket not found in python3.6 "No module named _socket"

2017-12-06 Thread Bryan Zimmer
I have been getting this message, "No module named '_socket'", since I installed python 3.6, about two months ago. My platform is Slackware Linux (14.2). I compiled python3.6 from source, because binary python packages aren't distributed by python.org for Linux. I have the same experience on multi

Traversal help

2017-04-02 Thread R. Bryan Smith
Hello, I am working with Python 3.6. I’ve been trying to figure out a solution to my question for about 40 hrs with no success and hundreds of failed attempts. Essentially, I have bitten off way more than I can chew with processing this file. Most of what follows, is my attempt to inform as

Re: Modify Setup

2017-02-06 Thread Bryan Carey
ue? On Sat, Feb 4, 2017 at 3:25 PM, Bryan Carey wrote: > Good evening! I just installed both python 3.4 & the PyCharm IDE this > evening. While trying to run a simple "Hello World" program, I keep getting > "Modify Setup" pop up windows. In addition to that, the o

Re: Need explanation of this error

2016-03-19 Thread Bryan Bateman
Having the same error with python 3.5 windows 64 bit and scipy for same on Windows 10. I did dependency walker and it came up with a large number of DLL's. Do you want the source of the scipy binary and the DLL list? https://mail.python.org/pipermail/python-list/2013-July/651190.html -- h

Re: Accessible tools

2015-02-21 Thread Bryan Duarte
included in some accessibility Q&A or to bounce some ideas off of? > On Feb 19, 2015, at 11:43 AM, Tim Chase wrote: > > While not blind, I have an interest in accessibility and answer a > number of questions on the Blinux (Blind Linux Users) mailing list. > > On 2015-02-

Re: Accessible tools

2015-02-21 Thread Bryan Duarte
27;s closet..." > > - Original Message - From: "Eric S. Johansson" > To: > Sent: Friday, February 20, 2015 7:22 PM > Subject: Re: Accessible tools > > >> >> On 2/19/2015 10:33 AM, Bryan Duarte wrote: >>> Thank you jwi, and Jacob, >

Re: Accessible tools

2015-02-19 Thread Bryan Duarte
re history with extra code and all. How do you typically handle that issue? Thank you both. Oh and before I forget does anyone know how to contact Eric who was developing that accessible speech driven IDE? Thanks > On Feb 19, 2015, at 3:08 AM, Jonas Wielicki wrote: > > Dear Bryan, >

Accessible tools

2015-02-19 Thread Bryan Duarte
Hello all, I have been posting to another group which directed me to this group. I am a blind software engineering student at Arizona State University. I am currently doing research and have decided to use Python as my developing language. I am in search of an accessible IDE or other tool set w

Re: Can post a code but afraid of plagiarism

2014-01-20 Thread bryan rasmussen
>When you take a course, you should be learning, not just passing. That >means that getting someone else to do your work for you is completely >wrong, so I won't help you. I have decided to become an MBA. On Mon, Jan 20, 2014 at 9:48 AM, Chris Angelico wrote: > On Mon, Jan 20, 2014 at 6:55 PM

Input Error issues - Windows 7

2014-01-10 Thread bryan . kardisco
I'm new to python and am trying to just get some basic stuff up and going. I have a very basic module called foo It's in the following directory on my machine C:\workspace\PyFoo\src\foo In that folder is __init__.py (created automatically) and foo.py foo.py looks like this class foo(): de

Re: One liners

2013-12-07 Thread bryan rasmussen
Someone was thinking in ruby there. On Sat, Dec 7, 2013 at 1:14 AM, Dan Stromberg wrote: > > On Fri, Dec 6, 2013 at 4:10 PM, Michael Torrie wrote: > >> On 12/06/2013 04:54 PM, Dan Stromberg wrote: >> > Does anyone else feel like Python is being dragged too far in the >> direction >> > of long

python 2.7 SSL to fetch servers notAfter date

2013-09-19 Thread Bryan Irvine
I'm trying to connect to an SSL application using client certs to grab the remote certs notAfter time. When I connect using 'openssl s_client' and pass my client cert/key I can see it in the cert chain, but when I attempt to use get_peer_certificate() in python (2.7) I only get a blank dict and

Re: *.csv to *.txt after adding columns

2013-09-18 Thread Bryan Britten
Peter nailed it. Adding in the two lines of code to ensure I was just working with *.csv files fixed the problem. Thanks to everyone for the help and suggestions on best practices. -- https://mail.python.org/mailman/listinfo/python-list

Re: *.csv to *.txt after adding columns

2013-09-17 Thread Bryan Britten
an example(non-redacted code): INPUT: import csv fileHandle = 'C:/Users/Bryan/Data Analysis/Crime Analysis/Data/' varNames = 'ID\tCaseNum\tDate\tTime\tBlock\tIUCR\tPrimaryType\tDescription\tLocDesc\tArrest\tDomestic\tBeat\tDistrict\tWard\tCommArea\tFBICode\tXCoord\tYCoord\tYea

Re: How do I calculate a mean with python?

2013-09-17 Thread Bryan Britten
William - I'm also self-teaching myself Python and get stuck quite often, so I understand both the thrill of programming and the frustration. Given your young age and presumably very little exposure to other programming languages, I would highly recommend you check out http://www.Codecademy.com

*.csv to *.txt after adding columns

2013-09-17 Thread Bryan Britten
Hey, gang, I've got a problem here that I'm sure a handful of you will know how to solve. I've got about 6 *.csv files that I am trying to open; change the header names (to get rid of spaces); add two new columns, which are just the results of a string.split() command; drop the column I just spl

Re: Limit Lines of Output

2013-06-25 Thread Bryan Britten
Joel - I don't want to send it to a text file because it's just meant to serve as a reference for the user to get an idea of what words are mentioned. The words being analyzed are responses to a survey questions and the primary function of this script is to serve as a text analytics program. Ex

Re: Limit Lines of Output

2013-06-25 Thread Bryan Britten
Ah, I always forget to mention my OS on these forums. I'm running Windows. -- http://mail.python.org/mailman/listinfo/python-list

Limit Lines of Output

2013-06-25 Thread Bryan Britten
Hey, group, quick (I hope) question: I've got a simple script that counts the number of words in a data set (it's more complicated than that, but that's one of the functions), but there are so many words that the output is too much to see in the command prompt window. What I'd like to be able t

Re: Reading *.json from URL - json.loads() versus urllib.urlopen.readlines()

2013-05-28 Thread Bryan Britten
Thanks to everyone for the help and insight. I think for now I'll just back away from this file and go back to something much easier to practice with. -- http://mail.python.org/mailman/listinfo/python-list

Re: Reading *.json from URL - json.loads() versus urllib.urlopen.readlines()

2013-05-27 Thread Bryan Britten
On Monday, May 27, 2013 7:58:05 PM UTC-4, Dave Angel wrote: > On 05/27/2013 04:47 PM, Bryan Britten wrote: > > > Hey, everyone! > > > > > > I'm very new to Python and have only been using it for a couple of days, > > but have some experience

Re: Reading *.json from URL - json.loads() versus urllib.urlopen.readlines()

2013-05-27 Thread Bryan Britten
Try to not sigh audibly as I ask what I'm sure are two asinine questions. 1) How is this approach different from twtrDict = [json.loads(line) for line in urllib.urlopen(urlStr)]? 2) How do I tell how many JSON objects are on each line? -- http://mail.python.org/mailman/listinfo/python-list

Reading *.json from URL - json.loads() versus urllib.urlopen.readlines()

2013-05-27 Thread Bryan Britten
Hey, everyone! I'm very new to Python and have only been using it for a couple of days, but have some experience in programming (albeit mostly statistical programming in SAS or R) so I'm hoping someone can answer this question in a technical way, but without using an abundant amount of jargon.

Re: Set x to to None and del x doesn't release memory in python 2.7.1 (HPUX 11.23, ia64)

2013-03-06 Thread Bryan Devaney
On Wednesday, March 6, 2013 10:11:12 AM UTC, Wong Wah Meng-R32813 wrote: > Hello there, > > > > I am using python 2.7.1 built on HP-11.23 a Itanium 64 bit box. > > > > I discovered following behavior whereby the python process doesn't seem to > release memory utilized even after a variable

Re: sync databse table based on current directory data without losign previous values

2013-03-06 Thread Bryan Devaney
On Wednesday, March 6, 2013 9:43:34 AM UTC, Νίκος Γκρ33κ wrote: > Perhaps because my filenames is in greek letters that thsi error is presented > but i'am not sure. > > > > Maybe we can join root+files and store it to the set() someway differenyl well, the error refers to the line "if

Re: book advice

2013-03-05 Thread Bryan Devaney
On Friday, March 1, 2013 8:59:12 PM UTC, leonardo selmi wrote: > hi > > > > is there anyone can suggest me a good book to learn python? i read many but > there is always something unclear or examples which give me errors. > > how can I start building a sound educational background > > > > t

Re: Question on for loop

2013-03-05 Thread Bryan Devaney
On Monday, March 4, 2013 4:37:11 PM UTC, Ian wrote: > On Mon, Mar 4, 2013 at 7:34 AM, Bryan Devaney wrote: > > >> if character not in lettersGuessed: > > >> > > >> return True > > >> > > >> return False > &

Re: i need help

2013-03-04 Thread Bryan Devaney
On Sunday, March 3, 2013 6:45:26 PM UTC, Kwpolska wrote: > On Sun, Mar 3, 2013 at 7:46 AM, Michael Torrie wrote: > > > On 02/21/2013 03:18 AM, leonardo wrote: > > >> thanks, problem solved > > > > > > Apparently not. The shift key on your keyboard still seems to be > > > non-functional. ;) >

  1   2   3   4   5   6   7   8   >