Re: Pip installs to unexpected place

2025-04-15 Thread rbowman via Python-list
te.ps1 is in the Scripts subdirectory and you do run it directly. On Linux the python in bin is usually a symlink, although you can specify it to be copied with a parameter to venv. Symlinks on Windows are problematic but the process is more or less the same. -- https://mail.python.org/mailman/listinfo/python-list

Re: Pip installs to unexpected place

2025-04-15 Thread rbowman via Python-list
/lib/python3.10/site-packages' left over from earlier versions of Ubuntu. However on Fedora 42 with 3.13.2 Defaulting to user installation because normal site-packages is not writable. -- https://mail.python.org/mailman/listinfo/python-list

Re: Pip installs to unexpected place

2025-04-21 Thread songbird via Python-list
Peter J. Holzer wrote: > On 2025-04-18 13:08:36 -0400, Thomas Passin via Python-list wrote: ... >> When the system launches its application the PYTHONPATH will start with >> system site directories; local user site directories will be on the >> PYTHONPATH but since they come l

Re: Pip installs to unexpected place

2025-04-21 Thread rbowman via Python-list
5, in import matplotlib.pyplot as plt ModuleNotFoundError: No module named 'matplotlib' -- https://mail.python.org/mailman/listinfo/python-list

Re: "Getting 'This app can’t run on your PC' (Access Denied) error when running Python or checking version in CMD on Windows 11"

2025-03-08 Thread inhahe via Python-list
ly by accident? I don't know. On Sat, 8 Mar 2025 at 16:59, Praveen Kumar via Python-list < [email protected]> wrote: > Hi Python community and members, > > I hope this email finds you well, I want you to be assisted in resolving > this following issue. kindly look at t

Machine Learning Methods for Longitudinal Data with Python – Online Course (6-9 May)

2025-02-28 Thread info--- via Python-list
7645230846 [ Bluesky ]( https://bsky.app/profile/physaliacourses.bsky.social ) [ Linkedin ]( https://www.linkedin.com/in/physalia-courses-a64418127/ ) -- https://mail.python.org/mailman/listinfo/python-list

magic-wormhole 0.18.0

2025-03-12 Thread meejah via Python-list
all contributors and users, meejah -- https://mail.python.org/mailman/listinfo/python-list

Re: Book recommendation? For getting up to date

2025-02-16 Thread rbowman via Python-list
er used. I also appreciated f strings when they were introduced, the walrus operator, and other enhancements. Another part of my renewed interest was the advent of many microcontrollers capable of running MicroPython, which is a subset of Python 3.x. -- https://mail.python.org/mailman/listinfo/python-list

Re: Book recommendation? For getting up to date

2025-02-16 Thread rbowman via Python-list
he basics but overall I enjoyed it. -- https://mail.python.org/mailman/listinfo/python-list

Re: Book recommendation? For getting up to date

2025-02-16 Thread dn via Python-list
On 17/02/25 01:50, Jan Erik Moström via Python-list wrote: I'm looking for a book that would teach me the lastest and greatest parts of Python, does anyone have any recommendations? I've looked at python.org and pythonbooks.org but I couldn't decide which one to get. I used to

Re: Book recommendation? For getting up to date

2025-02-16 Thread rbowman via Python-list
n Distilled'. The author doesn't enumerate Python 3 features specifically but as the title suggests hits the important concepts. https://www.dabeaz.com/python-distilled/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Book recommendation? For getting up to date

2025-02-19 Thread Mike via Python-list
On 16-02-2025 13:50, Jan Erik Moström via Python-list wrote: I'm looking for a book that would teach me the lastest and greatest parts of Python, does anyone have any recommendations? I've looked at python.org and pythonbooks.org but I couldn't decide which one to get. I us

Re: Book recommendation? For getting up to date (Posting On Python-List Prohibited)

2025-02-21 Thread rbowman via Python-list
s wonders. A good layout and talble of contents also helps. Decorators? Chapter 14, page 254, all you ever wanted to know about them. -- https://mail.python.org/mailman/listinfo/python-list

Re: Book recommendation? For getting up to date

2025-02-20 Thread songbird via Python-list
ul, but many programming books are outdated and are more historical artifacts at this point. songbird -- https://mail.python.org/mailman/listinfo/python-list

Re: Matplotlib "collections" module in recent Python, Matplotlib

2025-06-18 Thread jmhannon.ucdavis--- via Python-list
Thanks. That appears to be exactly the thing I was looking for (vis-a-vis collections). -- https://mail.python.org/mailman3//lists/python-list.python.org

Re: Matplotlib "collections" module in recent Python, Matplotlib

2025-06-18 Thread jmhannon.ucdavis--- via Python-list
Thanks, D'Arcy. I've done a fair amount of 2-to-3 migration in the past, but there was a lot of stuff in that article ("six", for instance) that I hadn't run across. -- https://mail.python.org/mailman3//lists/python-list.python.org

Matplotlib "collections" module in recent Python, Matplotlib

2025-06-16 Thread jmhannon.ucdavis--- via Python-list
Greetings. We (the group that I work with) have "inherited" some Python scripts that were written years ago, using Python 2. We're trying to upgrade the scripts so that they work in our current environment: OS: Ubuntu 24.04.2 LTS $ python --version Python 3.11.13 >>> ma

Re: Python tutor mailing list?

2025-05-27 Thread dn via Python-list
Message received! Hope you enjoyed your holiday... On 28/05/25 12:00, Alan Gauld via Python-list wrote: On 28/05/2025 00:32, Alan Gauld via Python-list wrote: The archives are still there and the sign-up page seems to work, but it doesn't recognise me. I tried signing up as a new m

concurrent.interpreters: why syntax errors in exec() cause a SyntaxError instead of an InterpreterError?

2025-09-25 Thread a.mux--- via Python-list
Hi, I am testing the [concurrent.interpreters](https://docs.python.org/3.14/library/concurrent.interpreters.html) feature from Python **3.14rc3** (the latest current rc). The subinterpreter seems to behave in a surprising way when encountering syntax errors. For example, in the following code:

Re: Slices by length

2025-09-06 Thread dn via Python-list
On 7/09/25 00:47, Rob Cliffe via Python-list wrote: I quite often find myself writing expressions of the form     someString[x : x+n] where n is often an int and x may be an int, a variable, or a (possibly complicated) expression. 0 A PEP 1 A helper-function eg slice_by_length

Environments and Version Control (if not packaging and PyPI)

2025-09-04 Thread dn via Python-list
How do you start (and thus run) a Python project? tldr; question in last paragraph Two articles appeared in my InTray: - Reuven Lerner (Python Trainer) saying "You’re probably using uv wrong" (https://lerner.co.il/2025/08/28/youre-probably-using-uv-wrong/), NB adapted from [his] “Better develo

Re: Test message. Posted a question several days ago and don't see it.

2025-09-10 Thread dn via Python-list
Hi Steve, ask away... On 11/09/25 16:15, Steve Jorgensen via Python-list wrote: I posted a question here several days ago and received a "Welcome to the "Python-list" mailing list!" email, but I still don't see my question in the list. I'm posting this mainly to

Re: Access to return / exception context in finally block

2025-09-01 Thread marius.spix--- via Python-list
>In your example when would isinstance(__exit_context__, ReturnContext) >be True and when would it be False? What would __exit_context__.value >be? I can't think of a sensible meaning for it. If no exception occurs, >is the value returned by f supposed to be 10/x or __exit_context__.value >+ 1

Image enhance

2025-09-02 Thread amrodi9999--- via Python-list
I'm new to Python. Operating System - Windows XP SP3 Python 2.7 installed. I got a script that tries to improve the image? I created a bat file using the command line. C:\python27\python.exe d:\temp\teste.py But even though it runs, it displays an error: "... no encoding declare..." Can anyone

Re: Image enhance

2025-09-02 Thread amrodi9999--- via Python-list
My code from PIL import Image, ImageEnhance import matplotlib.pyplot as plt import numpy as np import cv2 # Original image path image_path = "D:\temp\STC.jpg" # Altere se estiver em outro local original_image = Image.open(image_path) # Convert to OpenCV to apply enhancements cv_image = cv2.cvtC

Re: Access to return / exception context in finally block

2025-09-02 Thread marius.spix--- via Python-list
>def f(x): > try: > quot = 10 / x > except ZeroDivisionError as exc: > log_error(exc) > return 0 > else: > log_return(quot) > return quot + 1 > finally: > "Any cleanup processing needed before returning" This involves defining the new

Access to return / exception context in finally block

2025-08-30 Thread marius.spix--- via Python-list
Dear mailing list, there is currently no direct way to observe the current interpreter state in a finally block without tracing. My idea is introducing an immutable __exit_context__ magic variable, which would have one of three possible values: * ReturnContext(value), if a return statement is

PyPi mirrors

2025-08-24 Thread dn via Python-list
Hi, Do you use a mirror in front of the PyPi "Cheese Shop"? - perhaps a server like DevPi or Bandersnatch? - perhaps a personal interest or your enterprise? - is there public instance such as unis and others mirroring Linux distros? -- Regards, =dn -- https://mail.python.org/mailman3//lists/pyt

Re: can you improve this text-only beginner copy program?

2025-08-28 Thread dn via Python-list
PS Ethan: way-down the docs you'll find two very handy methods worth applying as a second-attempt at this challenge! On 28/08/25 03:41, Chris Angelico via Python-list wrote: On Thu, 28 Aug 2025 at 01:28, Ethan Carter wrote: def copy(s, d): """Copies text fil

Re: can you improve this text-only beginner copy program?

2025-08-28 Thread dn via Python-list
On 29/08/25 10:52, Grant Edwards via Python-list wrote: On 2025-08-28, Mark Bourne wrote: Ethan Carter wrote: PS. Is it just me or there's just us in this used-to-be-very-active group? Thanks for being my teacher here. Have a good day! Until a few months ago, there was a gateway

Re: Python documentary

2025-08-29 Thread dn via Python-list
To you (if apparently in-reply to the OP), On 30/08/25 07:19, Larry Martell via Python-list wrote: https://www.youtube.com/watch?v=GfH4QL4VqJ0 Watched this last night. Overall I enjoyed it (but my wife, who is not a programmer, fell asleep). My only quibble is that they spent too much time

Re: Slices by length

2025-10-08 Thread meowxiik via Python-list
> Which brings to mind a possible alternate syntax: s[x::n] This would AFAIK collide with the the x[a:b:c] syntax, which already means something, the c is the size of a step <https://docs.python.org/3/library/functions.html#slice> M On 8 October 2025 16:22:46 CEST, python-

Have do_nothing as default action for dictionary?

2017-09-03 Thread Christopher Reimer via Python-list
dictionary to return value on KeyError exception. What's the most pythonic and fastest? Thank you, Chris R. -- https://mail.python.org/mailman/listinfo/python-list

Looking for Python examples for querying, selecting items in N-Triples

2017-09-04 Thread David Shi via Python-list
I found this is very confusing. I will appreciate if simple examples are given. Regards, David -- https://mail.python.org/mailman/listinfo/python-list

How best to search and get values of label in N-Triples

2017-09-04 Thread David Shi via Python-list
bel? Regards, David -- https://mail.python.org/mailman/listinfo/python-list

Re: Have do_nothing as default action for dictionary?

2017-09-04 Thread Christopher Reimer via Python-list
ke my previous function, solved the problem that I had with the dictionary, the dictionary is created only once, a half dozen functions got moved into the new class, and the old class now has less clutter. Thanks everyone! Chris R. -- https://mail.python.org/mailman/listinfo/python-list

Can some one give examples of how to use graph.label to get data values while dealing with N-Triples files?

2017-09-04 Thread David Shi via Python-list
org/id/geography/administration/par/E04009816> <http://www.w3.org/2004/02/skos/core#note> "Live" .<http://opendatacommunities.org/id/geography/administration/par/E04009816> <http://www.w3.org/2004/02/skos/core#notation> "E04009816" . Regards, David -- https://mail.python.org/mailman/listinfo/python-list

How to get values for skos/note, skos/notation and label in N-Triples

2017-09-05 Thread David Shi via Python-list
n/par/E04009817> <http://www.w3.org/2004/02/skos/core#notation> "E04009817" . Are there any hello world examples? Regards, David -- https://mail.python.org/mailman/listinfo/python-list

Setting property for current class from property in an different class...

2017-09-06 Thread Christopher Reimer via Python-list
.     AttributeError: 'Scraper' object has no attribute 'requestor' That's either a bug or I'm doing it wrong. Or maybe both? Thank you, Chris R. -- https://mail.python.org/mailman/listinfo/python-list

Re: Setting property for current class from property in an different class...

2017-09-06 Thread Christopher Reimer via Python-list
r @property item? Thank you, Chris R. -- https://mail.python.org/mailman/listinfo/python-list

Re: Setting property for current class from property in an different class...

2017-09-07 Thread Christopher Reimer via Python-list
. It's probably FUBAR in some obscure way. I uninstalled Python 3.6.0 (32-bit) and Python 3.6.1 (64-bit), installed Python 3.6.2 (64-bit), and everything now works. Thanks, Chris R. -- https://mail.python.org/mailman/listinfo/python-list

My Issues

2017-09-08 Thread Carson McDaniel via Python-list
installing the program and I have once and tried repairing it a bunch of time but the message still appears. Do I need to download something else and where do I find it? Thanks for the help, Carson McDaniel Sent from my iPhone -- https://mail.python.org/mailman/listinfo/python-list

Re: [Tutor] beginning to code

2017-09-13 Thread Larry Hudson via Python-list
e and only check data types when it is absolutely necessary — which is rarely! Roger Christman -- -=- Larry -=- -- https://mail.python.org/mailman/listinfo/python-list

Re: "tkinter"

2017-09-13 Thread Larry Hudson via Python-list
hear it directly, or the WAV or AU formats to download the audio clips. -- -=- Larry -=- -- https://mail.python.org/mailman/listinfo/python-list

Re: The Incredible Growth of Python (stackoverflow.blog)

2017-09-14 Thread Mark Lawrence via Python-list
p://www.avg.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Easy way to get a list of tuples.

2017-09-21 Thread Mark Lawrence via Python-list
6, 1600), ('THE SHORTS', 7, 1100), ('KINGTON TOWN STAKES', 8, 2000), ('BM 84 HANDICAP', 9, 1200)] I get close creating a list of elements but each attempt I try to create the list of tuples fails. This is my closest code data = r.json() raceData = [] for item in data["RaceDay"]['Meetings'][0]['Races']: raceDetails = item['RacingFormGuide']['Event']['Race'] raceData += (raceDetails['Name'],raceDetails['Number'],raceDetails['Distance']) print(raceDetails) which returns ['CLASS 3 HANDICAP', 1, 1000, 'BM 90 HANDICAP', 2, 1600, 'HERITAGE STAKES', 3, 1100, 'BILL RITCHIE HANDICAP', 4, 1400, 'TEA ROSE STAKES', 5, 1400, 'GEORGE MAIN STAKES', 6, 1600, 'THE SHORTS', 7, 1100, 'KINGTON TOWN STAKES', 8, 2000, 'BM 84 HANDICAP', 9, 1200] How do I get the tuples? Cheers Sayth --- This email has been checked for viruses by AVG. http://www.avg.com After a quick glance and hence completely untested:- raceData.append((raceDetails['Name'],raceDetails['Number'],raceDetails['Distance'])) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: [Tutor] beginning to code

2017-09-22 Thread Mark Lawrence via Python-list
nistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email has been checked for viruses by AVG. http://www.avg.com -- https://mail.python.org/mailman/listinfo/python-list

Re: [Tutor] beginning to code

2017-09-22 Thread Mark Lawrence via Python-list
ww.avg.com -- https://mail.python.org/mailman/listinfo/python-list

Re: [Tutor] beginning to code

2017-09-23 Thread Mark Lawrence via Python-list
d ground? Is it completely impossible for people to step outside of their world of pass by value or pass by reference? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email has been checked for viruses by AVG. http://www.avg.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Beginners and experts (Batchelder blog post)

2017-09-27 Thread Larry Hudson via Python-list
#x27;t figure out sooner that he couldn't. -- -=- Larry -=- -- https://mail.python.org/mailman/listinfo/python-list

Re: Printing a Chunk Of Words

2017-09-28 Thread Mark Lawrence via Python-list
for our language. Mark Lawrence --- This email has been checked for viruses by AVG. http://www.avg.com -- https://mail.python.org/mailman/listinfo/python-list

Re: newb question about @property

2017-10-02 Thread Larry Hudson via Python-list
27;t expect run into any difficulties.  : ) Except perhaps for your sense of time... "I'll try" implies the future, "last night" is the past.:-) :-) (Couldn't resist...) -- -=- Larry -=- -- https://mail.python.org/mailman/listinfo/python-list

Re: The "loop and a half"

2017-10-03 Thread Larry Hudson via Python-list
x = get_num('Number ( to terminate: ', abrt=True) if x is None: break -- -=- Larry -=- -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 2 -> 3, urllib.urlOpen

2017-10-14 Thread Mark Lawrence via Python-list
ion for) onto the computers in the school. Therefore, I'm looking for something in the Python 3.6 Standard Library. Thanks in advance, Irv Hopefully this https://docs.python.org/3/howto/pyporting.html will help. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

why del is not a function or method?

2017-10-16 Thread Xue Feng via Python-list
illar with? -- https://mail.python.org/mailman/listinfo/python-list

Re: why del is not a function or method?

2017-10-16 Thread Ben Finney via Python-list
nction clear – the operation of ‘del’ is easier to understand. -- \ “The shortest distance between two points is under | `\ construction.” —Noelie Alito | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

ANN: distlib 0.2.6 released on PyPI

2017-10-28 Thread Vinay Sajip via Python-list
https://mail.python.org/mailman/listinfo/python-list

pythonw.exe error

2017-10-30 Thread George Kalamaras via Python-list
When I am running IDLE return to me Missing python36.dll error Στάλθηκε από την Αλληλογραφία για Windows 10 -- https://mail.python.org/mailman/listinfo/python-list

Any good explanations on pd.merge(df,df2, on=['Code', 'Region'])

2017-11-08 Thread David Shi via Python-list
I am trying to gain a clear understanding on pd.merge(df,df2, on=['Code', 'Region']). Can anyone assist? Regards, David -- https://mail.python.org/mailman/listinfo/python-list

Re: can't get python to run

2017-11-12 Thread Mary Ann via Python-list
st have no idea what the issue is other than maybe an old computer regards, Mary Ann -- https://mail.python.org/mailman/listinfo/python-list

Round to 2 decimal places

2017-12-06 Thread nick martinez via Python-list
ea,) else: print("No negatives allowed, try again.") -- https://mail.python.org/mailman/listinfo/python-list

Re: Round to 2 decimal places

2017-12-06 Thread nick martinez via Python-list
, > round(surfacearea,2), ) > else: > print("No negatives allowed, try again.") Tried this but it doesn't seem to work. It still prints out all of the decimals -- https://mail.python.org/mailman/listinfo/python-list

Re: Round to 2 decimal places

2017-12-06 Thread nick martinez via Python-list
it doesn't seem to work. It still prints out all of the > > decimals > > This is the output from the code above (Working): > > What is the radius in feet? (no negatives): >? 2 > What is the height in feet? (no negatives): >? 4 > Your Answer is: > A cone with radius 2.0 > and height of 4.0 > has a volume of : 16.76 > and surface area of : 40.67 interesting, what version of python are you using? Tried it multiple times and it still isn't working. -- https://mail.python.org/mailman/listinfo/python-list

Re: Round to 2 decimal places

2017-12-06 Thread nick martinez via Python-list
> > > decimals > > > > This is the output from the code above (Working): > > > > What is the radius in feet? (no negatives): >? 2 > > What is the height in feet? (no negatives): >? 4 > > Your Answer is: > > A cone with radius 2.0 > > and height of 4.0 > > has a volume of : 16.76 > > and surface area of : 40.67 > > interesting, what version of python are you using? Tried it multiple times > and it still isn't working. Never mind its working now, just had to change something up real quick, thank you. -- https://mail.python.org/mailman/listinfo/python-list

Python homework

2017-12-08 Thread nick martinez2 via Python-list
f __name__ == "__main__": result = rollDie(50) print (result) print(max(result)) -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Templating Language

2017-12-18 Thread Brian Oney via Python-list
you may consider checking out a more general approach. Noweb was the first to my knowledge and lead the way for Sweave (R or S), and pyweave, as mentioned. https://en.wikipedia.org/wiki/Noweb Cheers -- https://mail.python.org/mailman/listinfo/python-list

Re: Native object exposing buffer protocol

2018-01-05 Thread Ben Finney via Python-list
an be told in a few words. Debunking that lie can take | `\ pages. That is why my book… is five hundred pages long.” —Chris | _o__)Rodda, 2011-05-05 | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Why does __ne__ exist?

2018-01-07 Thread Ben Finney via Python-list
nd I speech | _o__) nothing, for I no verbs.” —Peter Ellis | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

Re: Very strange issues with collections.Mapping

2018-01-19 Thread John Krukoff via Python-list
I ask > here is because I'm wondering if anybody has encountered this before and > managed to hunt down which of these libraries is doing something naughty? > > Thanks! > Jason > > -- > Jason M. Swails > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list

error message by installation

2018-01-19 Thread ‪Ibrahim Nasr‬ ‪ via Python-list
kindly inform me what to do. -- https://mail.python.org/mailman/listinfo/python-list

Help: 64bit python call c and got OSError: exception: access violation writing 0xFFFFFFFF99222A60

2018-01-22 Thread Jason Qian via Python-list
object): def init(self): self.obj = lib.loadInstance() def create_services(self,servicename): result=lib.createService(self.obj,servicename) return result driver=myDriver() driver.create_services(b"myExample") Thanks for the help Jason -- https://mail.python.org/mailman/listinfo/python-list

Re: Help: 64bit python call c and got OSError: exception: access violation writing 0xFFFFFFFF99222A60

2018-01-22 Thread Jason Qian via Python-list
Thanks you very much, fixed the problem :) On Mon, Jan 22, 2018 at 4:28 PM, Random832 wrote: > On Mon, Jan 22, 2018, at 16:00, Jason Qian via Python-list wrote: > > Hello! > > > > I am using ctypes on Windows to interface with a dll and it works fine > > on Linu

Re: Help: 64bit python call c and got OSError: exception: access violation writing 0xFFFFFFFF99222A60

2018-01-22 Thread Jason Qian via Python-list
Thanks for the help, Jason On Mon, Jan 22, 2018 at 5:41 PM, eryk sun wrote: > On Mon, Jan 22, 2018 at 9:00 PM, Jason Qian via Python-list > wrote: > > > > I am using ctypes on Windows to interface with a dll and it works fine > > on Linux and windows 32-bit python.

Re: Help: 64bit python call c and got OSError: exception: access violation writing 0xFFFFFFFF99222A60

2018-01-24 Thread Jason Qian via Python-list
s you very much, fixed the problem :) > > On Mon, Jan 22, 2018 at 4:28 PM, Random832 wrote: > >> On Mon, Jan 22, 2018, at 16:00, Jason Qian via Python-list wrote: >> > Hello! >> > >> > I am using ctypes on Windows to interface with a dll and it works &

Python call c pass a callback function on Linux

2018-01-24 Thread Jason Qian via Python-list
ponse ---') print(message) print(code) class GSPythonDriver(object): def submif(self,methodname) invm_fn = InvocationCB(handleResponse) lib.submit(self.obj,methodname,invm_fn) How can I do this on the Linux ? Thanks for the help Jason -- https://mail.python.org/mailman/listinfo/python-list

Re: Python call c pass a callback function on Linux

2018-01-24 Thread Jason Qian via Python-list
HI Dennis, Thanks for the help, After changing WINFUNCTYPE to CFUNCTYPE, the call back function works on the Linux :) Thanks again, Jason On Wed, Jan 24, 2018 at 6:15 PM, Dennis Lee Bieber wrote: > On Wed, 24 Jan 2018 17:16:22 -0500, Jason Qian via Python-list > declaim

Re: Help: 64bit python call c and got OSError: exception: access violation writing 0xFFFFFFFF99222A60

2018-01-24 Thread Jason Qian via Python-list
58 PM, Jason Qian wrote: > >> Thanks you very much, fixed the problem :) >> >> On Mon, Jan 22, 2018 at 4:28 PM, Random832 >> wrote: >> >>> On Mon, Jan 22, 2018, at 16:00, Jason Qian via Python-list wrote: >>> > Hello! >>> > >&g

Please help on print string that contains 'tab' and 'newline'

2018-01-27 Thread Jason Qian via Python-list
HI I am a string that contains \r\n\t [Ljava.lang.Object; does not exist*\r\n\t*at com.livecluster.core.tasklet I would like it print as : [Ljava.lang.Object; does not exist tat com.livecluster.core.tasklet -- https://mail.python.org/mailman/listinfo/python-list

Re: Please help on print string that contains 'tab' and 'newline'

2018-01-27 Thread Jason Qian via Python-list
cluster.core.tasklet > > > -- https://mail.python.org/mailman/listinfo/python-list

Re: Please help on print string that contains 'tab' and 'newline'

2018-01-27 Thread Jason Qian via Python-list
st*\r\n\t*at com Thanks On Sat, Jan 27, 2018 at 4:20 PM, Ned Batchelder wrote: > On 1/27/18 3:15 PM, Jason Qian via Python-list wrote: > >> HI >> >> I am a string that contains \r\n\t >> >> [Ljava.lang.Object; does not exist*\r\n\t*at >>

Re: Please help on print string that contains 'tab' and 'newline'

2018-01-27 Thread Jason Qian via Python-list
Reedy wrote: > On 1/27/2018 3:15 PM, Jason Qian via Python-list wrote: > >> HI >> >> I am a string that contains \r\n\t >> >> [Ljava.lang.Object; does not exist*\r\n\t*at >> com.livecluster.core.tasklet >> >> >> I would like it p

Re: Please help on print string that contains 'tab' and 'newline'

2018-01-27 Thread Jason Qian via Python-list
there are 0D 0A 09 %c %d 116 *%c %d 13%c %d 10%c %d 9* %c %d 97 On Sat, Jan 27, 2018 at 9:05 PM, Dennis Lee Bieber wrote: > On Sat, 27 Jan 2018 20:33:58 -0500, Jason Qian via Python-list > declaimed the following: > > > Ljava.lang.Object; does not exis

Re: How to embed a native JIT compiler to a django app?

2018-01-28 Thread Stephane Wirtel via Python-list
, you could try to create a wheel file with your django project and try that, but it is really complex. Why do you want to package a Django app into a C file with a compiler? -- Stéphane Wirtel - http://wirtel.be - @matrixise -- https://mail.python.org/mailman/listinfo/python-list

Re: Please help on print string that contains 'tab' and 'newline'

2018-01-28 Thread Jason Qian via Python-list
99 c %d %c 111 o %d %c 109 m On Sun, Jan 28, 2018 at 9:50 AM, Steven D'Aprano < [email protected]> wrote: > On Sat, 27 Jan 2018 21:23:02 -0500, Jason Qian via Python-list wrote: > > > there are 0D 0A 09 > > If your string actually contains CARRIAGE

Re: Please help on print string that contains 'tab' and 'newline'

2018-01-28 Thread Jason Qian via Python-list
Thanks a lot :) os.write(1, message) works ! On Sun, Jan 28, 2018 at 8:04 PM, Dan Stromberg wrote: > How about: > >>> os.write(1, message) > > On Sun, Jan 28, 2018 at 4:51 PM, Jason Qian via Python-list > wrote: > > print(repr(message)) out : >

Re: Please help on print string that contains 'tab' and 'newline'

2018-01-28 Thread Jason Qian via Python-list
Thanks Peter, replace print with os.write fixed the problem. On Sun, Jan 28, 2018 at 3:57 AM, Peter Otten <[email protected]> wrote: > Jason Qian via Python-list wrote: > > > HI > > > >I have a string that contains \r\n\t > > > >[L

Re: Please help on print string that contains 'tab' and 'newline'

2018-01-28 Thread Jason Qian via Python-list
The message type is bytes, this may make different ? print(type(message)) On Sun, Jan 28, 2018 at 8:41 PM, Steven D'Aprano < [email protected]> wrote: > On Sun, 28 Jan 2018 20:31:39 -0500, Jason Qian via Python-list wrote: > > > Thanks a lot :) >

Re: IoT automation

2018-01-28 Thread Dale Marvin via Python-list
On 1/28/18 7:39 AM, Prahallad Achar wrote: Hello team, Could you please help me out in automation of IoT product end to end Regards Prahallad <https://micropython.org/> ? --Dale -- https://mail.python.org/mailman/listinfo/python-list

Re: IoT automation

2018-01-29 Thread Prahallad Achar via Python-list
Thank you Mr. Marvin On 29 Jan 2018 12:02 pm, "Dale Marvin via Python-list" < [email protected]> wrote: > On 1/28/18 7:39 AM, Prahallad Achar wrote: > >> Hello team, >> Could you please help me out in automation of IoT product end to end >>

Help on convert PyObject to string (c) Python 3.6

2018-02-04 Thread Jason Qian via Python-list
, "s", &sp)) { } and got "SystemError: new style getargs format but argument is not a tuple" Thanks for the help -- https://mail.python.org/mailman/listinfo/python-list

Re: Help on convert PyObject to string (c) Python 3.6

2018-02-04 Thread Jason Qian via Python-list
Hi Chris, Thanks a lot ! Using PyUnicode_DecodeUTF8 fix the problem. On Sun, Feb 4, 2018 at 12:02 PM, Chris Angelico wrote: > On Mon, Feb 5, 2018 at 3:52 AM, Jason Qian via Python-list > wrote: > > Hi, > > > >This is the case of calling python from c and th

Help on PyImport_Import(pNAme)

2018-02-04 Thread Jason Qian via Python-list
Hi, This only works when loading modules from the current directory. Is there a way I can load from somewhere else ? Thanks for help, -- https://mail.python.org/mailman/listinfo/python-list

Re: $srcdir and $datadir

2018-02-10 Thread Ben Finney via Python-list
ve.” —John | _o__) F. Woods | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

"Programs" folder not found.

2018-02-15 Thread Enerel Amgalan via Python-list
Hello! So I downloaded “Python” program in C:>Users>(my name)>AppData>Local>Programs>Python.And then in “Local” folder I can’t find “Programs” folder,but it says it downloaded in “Programs”.So can you help me. -- https://mail.python.org/mailman/listinfo/python-list

Re: Help on convert PyObject to string (c) Python 3.6

2018-02-19 Thread Jason Qian via Python-list
Thanks a lot and I will take a look Cython, On Mon, Feb 19, 2018 at 3:23 PM, Stefan Behnel wrote: > Jason Qian via Python-list schrieb am 04.02.2018 um 17:52: > >This is the case of calling python from c and the python function > will > > return a string. > > Hi J

How to link to python 3.6.4 library on linux ?

2018-02-19 Thread Jason Qian via Python-list
https://mail.python.org/mailman/listinfo/python-list

Re: How to link to python 3.6.4 library on linux ?

2018-02-19 Thread Jason Qian via Python-list
Thanks Chris, I think I figured it out that when build python on Linux, we need to enable-shared. Thanks again, On Mon, Feb 19, 2018 at 5:04 PM, Chris Angelico wrote: > On Tue, Feb 20, 2018 at 8:07 AM, Jason Qian via Python-list > wrote: > > Hi, > > > > I am

APPLICATION NOT RUNNING.

2018-03-02 Thread Faruq Bashir via Python-list
I try to run an application with the latest version of python that is python 3.6.4 (32-bit) ., instead of running the application it only shows feel free to mail [email protected] if you continue to encounter issues,Please help me out thanks. -- https://mail.python.org/mailman/listinfo

Bypassing firewall

2018-03-05 Thread Faruq Bashir via Python-list
    How will i bypass web application firewall -- https://mail.python.org/mailman/listinfo/python-list

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

2022-04-16 Thread Jon Ribbens via Python-list
ded", it's straight-up broken. > The only thing that is most noticeable about UTC is the incorporation > of leap-seconds. I've never yet managed to find an application where leap-seconds matter ;-) -- https://mail.python.org/mailman/listinfo/python-list

<    11   12   13   14   15   16   17   18   19   20   >