On 12/9/24 12:19 PM, marc nicole via Python-list wrote:
> Hello,
>
> The fatal error exits the program with a code -1 while referencing the
> memory address involved and nothing else.
>
> How to catch it in Python 2.7?
Does the problem occur with Python 3.x? At this date,
Hello,
The fatal error exits the program with a code -1 while referencing the
memory address involved and nothing else.
How to catch it in Python 2.7?
PS: please not I am not talking about exceptions but an error resulting
from the disconnection of my bluetooth microphone abruptly and leading
I am using the below class1 code to detect some event through the method
check_for_the_event()
# Some class1def check_for_the_event(self):
thread1 = threading.Timer(2, self.check_for_the_event)
thread1.start()# some processingif event is detected:
self.event_ok = Trueelse:
self.event_o
Thank you for the hint !
On Fri, Oct 04, 2024 at 09:17:19AM GMT, Cameron Simpson wrote:
On 03Oct2024 22:12, Dan Ciprus (dciprus) wrote:
I'd be interested too :-).
Untested sketch:
def make_thread(target, *a, E=None, **kw):
'''
Make a new Event E and Thread T, pass `[E,*a]`
On 03Oct2024 22:12, Dan Ciprus (dciprus) wrote:
I'd be interested too :-).
Untested sketch:
def make_thread(target, *a, E=None, **kw):
'''
Make a new Event E and Thread T, pass `[E,*a]` as the target
positional arguments.
A shared preexisting Event may be
I'd be interested too :-).
On Thu, Sep 26, 2024 at 03:34:05AM GMT, marc nicole via Python-list wrote:
Could you show a python code example of this?
On Thu, 26 Sept 2024, 03:08 Cameron Simpson, wrote:
On 25Sep2024 22:56, marc nicole wrote:
>How to create a per-thread event in Py
That's one of the "disadvantages" of threads: you cannot safely stop a
thread. Of course you could try, but that's never a good idea. The
reason for this is that threads share memory. They might be holding
locks that, if killed, will never be unlocked. They might (partially)
modify the shared state
Could you show a python code example of this?
On Thu, 26 Sept 2024, 03:08 Cameron Simpson, wrote:
> On 25Sep2024 22:56, marc nicole wrote:
> >How to create a per-thread event in Python 2.7?
>
> Every time you make a Thread, make an Event. Pass it to the thread
> worker funct
On 25Sep2024 22:56, marc nicole wrote:
How to create a per-thread event in Python 2.7?
Every time you make a Thread, make an Event. Pass it to the thread
worker function and keep it to hand for your use outside the thread.
--
https://mail.python.org/mailman/listinfo/python-list
How to create a per-thread event in Python 2.7?
On Wed, 25 Sept 2024, 22:47 Cameron Simpson via Python-list, <
python-list@python.org> wrote:
> On 25Sep2024 19:24, marc nicole wrote:
> >I want to know how to kill a specific running thread (say by its id)
> >
> >for
On 25Sep2024 19:24, marc nicole wrote:
I want to know how to kill a specific running thread (say by its id)
for now I run and kill a thread like the following:
# start thread
thread1 = threading.Thread(target= self.some_func(), args=( ...,), )
thread1.start()
# kill the thread
event_thread1 = t
Hello guys,
I want to know how to kill a specific running thread (say by its id)
for now I run and kill a thread like the following:
# start thread
thread1 = threading.Thread(target= self.some_func(), args=( ...,), )
thread1.start()
# kill the thread
event_thread1 = threading.Event()
event_thread
as __builtin__.module with
Python 2.7
On 02/09/2024 15:00, marc nicole via Python-list wrote:
> Hello,
>
> I am using Python 2.7 on Windows 10
Others have pointed out that 2.7 is unsupported and has
been for many years now. Its also inferior in most
respects including its error reporting
On 9/2/24 11:36, Barry Scott wrote:
On 2 Sep 2024, at 15:00, marc nicole via Python-list
wrote:
I am using Python 2.7 on Windows 10
Why? Install Python 3.12 and it will be easier to get help and support.
If you have legacy that still needs porting then you can install 3.12 along side
the
reading the console DID display the messages correctly!
Thanks.
Le mar. 3 sept. 2024 à 10:48, Alan Gauld via Tutor a
écrit :
> On 02/09/2024 15:00, marc nicole via Python-list wrote:
> > Hello,
> >
> > I am using Python 2.7 on Windows 10
>
> Others have pointed out th
> On 2 Sep 2024, at 15:00, marc nicole via Python-list
> wrote:
>
> I am using Python 2.7 on Windows 10
Why? Install Python 3.12 and it will be easier to get help and support.
If you have legacy that still needs porting then you can install 3.12 along side
the unsupported 3
Hello,
I am using Python 2.7 on Windows 10 and I want to launch a process
independently of the rest of the code so that the execution continues while
the started process proceeds. I am using Process().start() from Python 2.7
as follows:
from multiprocessing import Process
def do_something(text
On 6/26/24 09:29, marc nicole wrote:
Browsing the available version of tensorflow for the dates before January
2021 (date when Python 2.7 stopped being supported) I can't find a
tensorflow version for Python 2.7 that works under Windows.
The reference site I use is https://pypi.org/pr
Browsing the available version of tensorflow for the dates before January
2021 (date when Python 2.7 stopped being supported) I can't find a
tensorflow version for Python 2.7 that works under Windows.
The reference site I use is https://pypi.org/project/tensorflow/
Anybody can point
Hey, everyone!
I believe the original question has been answered, and tempers seem to be flaring in sub-threads, so let's call this
thread done and move on to other interesting topics.
Thank you for your support!
--
~Ethan~
Moderator
--
https://mail.python.org/mailman/listinfo/python-list
Chris Angelico wrote:
> On Thu, 13 Jun 2024 at 10:58, wrote:
> >
> > Chris,
> >
> > You seem to have perceived an insult that I remain unaware of.
>
> If you're not aware that you're saying this, then don't say it.
>
Er, um, that really makes no sense! :-)
How can one not say something that on
On Thu, 13 Jun 2024 at 10:58, wrote:
>
> Chris,
>
> You seem to have perceived an insult that I remain unaware of.
If you're not aware that you're saying this, then don't say it.
> I looked up FUD and sharply disagree with suggestions I am trying to somehow
> cause Fear, Uncertainty or Doubt. I
Subject: Re: Couldn't install numpy on Python 2.7
On Thu, 13 Jun 2024 at 09:20, wrote:
> My point was that version 4 COULD HAPPEN one day and I meant INCOMPATIBLE
> version not 4. Obviously we can make a version 4 that is not incompatible
> too.
This is still FUD. Back your words
On Thu, 13 Jun 2024 at 09:20, wrote:
> My point was that version 4 COULD HAPPEN one day and I meant INCOMPATIBLE
> version not 4. Obviously we can make a version 4 that is not incompatible
> too.
This is still FUD. Back your words with something, or stop trying to
imply that there's another incom
anyone interested in keeping them
up to date. You as a user, take your chances.
-Original Message-
From: Python-list On
Behalf Of Chris Angelico via Python-list
Sent: Wednesday, June 12, 2024 5:52 PM
To: python-list@python.org
Subject: Re: Couldn't install numpy on Python 2.7
On Thu, 13
On Wed, 12 Jun 2024 at 23:52, Greg Ewing via Python-list
wrote:
> On 13/06/24 10:09 am, Chris Angelico wrote:
> > So if anyone
> > actually does need to use pip with Python 2.7, they probably need to
> > set up a local server
>
> You should also be able to download
t; happened like a new version of pip running on an old version of Python
> or old Python on new OS (or old PyCharm...).
>
> There is no problem using Python 2.7 with pip and PyPI on this Linux
> machine but I guess it has a newer SSL library provided by the OS:
Sadly, I would NOT be sur
have done with Windows in
recent times is change it in ways that nobody wants, so there is
understandable resistance to upgrading even if it's possible.
On 13/06/24 10:09 am, Chris Angelico wrote:
> So if anyone
> actually does need to use pip with Python 2.7, they probably need to
>
t; download packages safely from the current pypi server. So if anyone
> actually does need to use pip with Python 2.7, they probably need to
> set up a local server, using older encryption protocols (which should
> therefore NOT be made accessible to the internet). Since pip can't
&g
ions of numpy
> but with the available information so far that seems like the first
> thing to consider.
I think it is; AIUI, with an ancient SSL library, pip is unable to
download packages safely from the current pypi server. So if anyone
actually does need to use pip with Python 2.7, they p
e OP has not replied with any explanation as to why they are using
Python 2.7 and has not said whether they have any existing code that
only works with Python 2.7. It is unclear at this point whether there
is any reason that they shouldn't just install a newer version of
Python.
They are seei
On Thu, 13 Jun 2024 at 07:36, wrote:
> But if the goal was to deprecate python 2 and in some sense phase it out, it
> is perhaps not working well for some. Frankly, issuing so many updates like
> 2.7 and including backporting of new features has helped make it possible to
> delay any upgrade.
The
: Couldn't install numpy on Python 2.7
On Thu, 13 Jun 2024 at 03:41, AVI GROSS via Python-list
wrote:
>
> Change is hard even when it may be necessary.
>
> The argument often is about whether some things are necessary or not.
>
> Python made a decision but clearly not a unanim
On Thu, 13 Jun 2024 at 06:55, Thomas Passin via Python-list
wrote:
> The project cannot move to a Python-3 compatible version because Jython
> 3.xx doesn't exist and may never exist. The saving grace is that my
> project doesn't have to use packages like numpy, scipy, and so forth.
Exactly. If y
one.
What decision? To not release any new versions of Python 2? That isn't
actually the OP's problem here - the Python interpreter runs just
fine. But there's no numpy build for the OP's hardware and Python 2.7.
So if you want to complain about Python 2.7 being dead, all
ny new versions of Python 2? That isn't
actually the OP's problem here - the Python interpreter runs just
fine. But there's no numpy build for the OP's hardware and Python 2.7.
So if you want to complain about Python 2.7 being dead, all you have
to do is go through all of the p
lf Of MRAB via Python-list
Sent: Wednesday, June 12, 2024 12:56 PM
To: python-list@python.org
Subject: Re: Couldn't install numpy on Python 2.7
On 2024-06-12 17:31, AVI GROSS via Python-list wrote:
> I am sure there is inertia to move from an older product and some people
> need a reason
ars should ...
Indeed...
-Original Message-
From: Python-list On
Behalf Of Gordinator via Python-list
Sent: Wednesday, June 12, 2024 10:19 AM
To: python-list@python.org
Subject: Re: Couldn't install numpy on Python 2.7
On 12/06/2024 12:30, marc nicole wrote:
I am trying to install n
...
-Original Message-
From: Python-list On
Behalf Of Gordinator via Python-list
Sent: Wednesday, June 12, 2024 10:19 AM
To: python-list@python.org
Subject: Re: Couldn't install numpy on Python 2.7
On 12/06/2024 12:30, marc nicole wrote:
> I am trying to install numpy library o
On 12/06/2024 12:30, marc nicole wrote:
I am trying to install numpy library on Python 2.7.15 in PyCharm but the
error message I get is:
ERROR: Could not find a version that satisfies the requirement numpy (from
versions: none)
ERROR: No matching distribution found for numpy
c:\python27\lib\sit
On Wed, 12 Jun 2024 at 21:32, marc nicole via Python-list
wrote:
>
> I am trying to install numpy library on Python 2.7.15 in PyCharm but the
> error message I get is:
>
> You can upgrade to a newer version of Python to solve this.
The answer is right there in the error message.
ChrisA
--
https
I am trying to install numpy library on Python 2.7.15 in PyCharm but the
error message I get is:
ERROR: Could not find a version that satisfies the requirement numpy (from
> versions: none)
> ERROR: No matching distribution found for numpy
> c:\python27\lib\site-packages\pip\_vendor\urllib3\util\s
at. Depending on the code you
may even be able to make it work with both Python 2.7 and 3.x. Often
the biggest change is to print statements:
Python 2:
print a, b, c
Python3:
print(a, b, c)
If you are very unlucky, your code will depend on some package that has
never been ported to P
On Wednesday, 27 September 2023 at 23:33:02 UTC+2, Chris Angelico wrote:
> On Thu, 28 Sept 2023 at 07:27, Mats Wichmann via Python-list
> wrote:
> >
> > Upgrading to Python 3 is the best answer... except when it isn't. If
> > you want to convert a small project it's usually not too hard; and us
On Thu, 28 Sept 2023 at 07:27, Mats Wichmann via Python-list
wrote:
>
> Upgrading to Python 3 is the best answer... except when it isn't. If
> you want to convert a small project it's usually not too hard; and using
> a conversion tool can work well.
Just remember that Python 2.7.18, the very la
work well.
If you have libraries "not under your control" expect a lot more work.
You can upgrade pip to the latest available version for Python 2.7 -
will take some research, I don't know what that version might be.
Or you could try this:
https://bootstrap.pypa.io/pip/2.
On Wednesday, 27 September 2023 at 21:32:53 UTC+2, Mats Wichmann wrote:
> On 9/27/23 05:17, Zuri Shaddai Kuchipudi via Python-list wrote:
> > hello everyone this the error that im getting while trying to install and
> > upgrade pip on what is the solution for it?
> >
> > C:\repository\pst-utils
On 9/27/23 05:17, Zuri Shaddai Kuchipudi via Python-list wrote:
hello everyone this the error that im getting while trying to install and
upgrade pip on what is the solution for it?
C:\repository\pst-utils-pc-davinci-simulator>pip install
You are using pip version 7.0.1, however version 23.2.1
On Thu, 28 Sept 2023 at 01:16, Zuri Shaddai Kuchipudi via Python-list
wrote:
>
> hello everyone this the error that im getting while trying to install and
> upgrade pip on what is the solution for it?
>
The solution is to upgrade to Python 3.
https://pip.pypa.io/en/latest/development/release-pr
On 9/27/2023 7:17 AM, Zuri Shaddai Kuchipudi via Python-list wrote:
hello everyone this the error that im getting while trying to install and
upgrade pip on what is the solution for it?
C:\repository\pst-utils-pc-davinci-simulator>pip install
You are using pip version 7.0.1, however version 23.
hello everyone this the error that im getting while trying to install and
upgrade pip on what is the solution for it?
C:\repository\pst-utils-pc-davinci-simulator>pip install
You are using pip version 7.0.1, however version 23.2.1 is available.
You should consider upgrading via the 'pip install -
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.
That's because Py2 has two diff
Jon Ribbens via Python-list <
python-list@python.org> wrote:
> 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.
> >
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
>
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 function produ
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 produces a lis
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
Ethan Furman writes:
> On 2/16/21 12:09 PM, Kevin M. Wilson via Python-list wrote:
>
>> My employer has hundreds of scripts in 2.7, but I'm writing new
>> scripts in 3.9! I'm running into 'invalid syntax' errors.I have to
>> maintain the 'Legacy' stuff, and I need to mod the path et al., to
>> ex
The best would be to upgrade the scripts, did you try them with 2to3 ? It
should do most of the work, if not all.
https://docs.python.org/3/library/2to3.html
--
https://mail.python.org/mailman/listinfo/python-list
#x27;python' is python 2.7, and 'py'
calls python 3.x. Have a look at the docs to figure about what other
options py.exe gives you (such as shebang lines)
Docs:
https://docs.python.org/3/using/windows.html#python-launcher-for-windows
PEP: https://www.python.org/dev/peps/pep-039
er is always installed with
recent versions of Python on Windows.
You could set up the PATH such that 'python' is python 2.7, and 'py'
calls python 3.x. Have a look at the docs to figure about what other
options py.exe gives you (such as shebang lines)
Docs:
https:
On 2/16/21 4:16 PM, Ethan Furman wrote:
> Kevin, please reply to the list (preferably Reply-to-list, or
> Reply-all), that way others can chime in with help.
>
> On 2/16/21 12:55 PM, Kevin M. Wilson wrote:
>
>> Windows 7 OS, and typically run in conjunction with testing SSD', as
>> for stand alone
Kevin, please reply to the list (preferably Reply-to-list, or
Reply-all), that way others can chime in with help.
On 2/16/21 12:55 PM, Kevin M. Wilson wrote:
Windows 7 OS, and typically run in conjunction with testing SSD', as for
stand alone scripts.
Those require: python BogusFile.py. I too
On 2/16/21 12:09 PM, Kevin M. Wilson via Python-list wrote:
My employer has hundreds of scripts in 2.7, but I'm writing new scripts in 3.9!
I'm running into 'invalid syntax' errors.I have to maintain the 'Legacy' stuff,
and I need to mod the path et al., to execute 3.7 w/o doing damage to the
My employer has hundreds of scripts in 2.7, but I'm writing new scripts in 3.9!
I'm running into 'invalid syntax' errors.I have to maintain the 'Legacy' stuff,
and I need to mod the path et al., to execute 3.7 w/o doing damage to the
'Legacy' stuff...IDEA' are Welcome!
KMW
John 1:4 "In him was
Mirko wrote:
> On 22.12.2020 at 20:24 Chris Green wrote:
>
> > Yes, I do have the Python source. The only thing I don't have the
> > source for is a .so file and that's why I can't simply migrate the
> > program(s) from Python 2 to Python 3.
> >
>
> If it's just one .so and that library is com
On 22.12.2020 at 20:24 Chris Green wrote:
> Yes, I do have the Python source. The only thing I don't have the
> source for is a .so file and that's why I can't simply migrate the
> program(s) from Python 2 to Python 3.
>
If it's just one .so and that library is compatible with basic libs
such a
On 2020-12-22, Chris Green wrote:
> Grant Edwards wrote:
>
>> I should have mentioned that bundlers like cx_freeze require that you
>> have the Python source for the main app. I don't remember if you
>> mentioned source or not...
>
> Yes, I do have the Python source. The only thing I don't have
Grant Edwards wrote:
> On 2020-12-22, Chris Green wrote:
> > Grant Edwards wrote:
> >> On 2020-12-22, Chris Green wrote:
> >> > [...]
> >> >
> >> > How realistic/possible would it be to run the utility in a separate
> >> > environment with its own copies of Python2 and any modules and
> >> > li
On 2020-12-22, Chris Green wrote:
> Grant Edwards wrote:
>> On 2020-12-22, Chris Green wrote:
>> > [...]
>> >
>> > How realistic/possible would it be to run the utility in a separate
>> > environment with its own copies of Python2 and any modules and
>> > libraries needed? I would install these
Grant Edwards wrote:
> On 2020-12-22, Chris Green wrote:
> > [...]
> >
> > How realistic/possible would it be to run the utility in a separate
> > environment with its own copies of Python2 and any modules and
> > libraries needed? I would install these 'by hand', i.e. not using
> > 'apt' so the
for converting it to Python 3 so now I'm looking at how to keep it
> working on my [x]ubuntu Linux systems as Python 2.7 becomes unsupported.
>
> How realistic/possible would it be to run the utility in a separate
> environment with its own copies of Python2 and any modules and
>
On 2020-12-22, Chris Green wrote:
> [...]
>
> How realistic/possible would it be to run the utility in a separate
> environment with its own copies of Python2 and any modules and
> libraries needed? I would install these 'by hand', i.e. not using
> 'apt' so they would stay as installed even as my
On 12/22/20 9:44 AM, Chris Green wrote:
> I have it running on 20.04 (with a couple of compatibility packages
> from a PPA) but I know I start hitting problems as soon as I move to
> 20.10. So that does sound like an excellent idea. Where can I find
> information about building container type thi
the possibilities
> > for converting it to Python 3 so now I'm looking at how to keep it
> > working on my [x]ubuntu Linux systems as Python 2.7 becomes unsupported.
> >
> > How realistic/possible would it be to run the utility in a separate
> > environment wit
thon 3 so now I'm looking at how to keep it
> working on my [x]ubuntu Linux systems as Python 2.7 becomes unsupported.
>
> How realistic/possible would it be to run the utility in a separate
> environment with its own copies of Python2 and any modules and
> libraries needed?
That
o Python 3 so now I'm looking at how to keep it
> working on my [x]ubuntu Linux systems as Python 2.7 becomes unsupported.
>
> How realistic/possible would it be to run the utility in a separate
> environment with its own copies of Python2 and any modules and
> libraries needed?
g on my [x]ubuntu Linux systems as Python 2.7 becomes unsupported.
How realistic/possible would it be to run the utility in a separate
environment with its own copies of Python2 and any modules and
libraries needed? I would install these 'by hand', i.e. not using
'apt' so they w
On 10/21/20 3:24 PM, Shaozhong SHI wrote:
> Is there another way to do this?
>
> def greet(name: str) -> str:
> return "Hello, " + name
> greet
>
> File "", line 1 def greet(name: str) -> str:
> ^ SyntaxError: invalid syntax
>
The hinting pep PEP (484) has an alternate syntax that doesn't b
On Thu, Oct 22, 2020 at 8:26 AM Shaozhong SHI wrote:
>
> Is there another way to do this?
>
> def greet(name: str) -> str:
> return "Hello, " + name
> greet
>
> File "", line 1 def greet(name: str) -> str:
> ^ SyntaxError: invalid syntax
If you need to support Python 2, don't use annotations.
Is there another way to do this?
def greet(name: str) -> str:
return "Hello, " + name
greet
File "", line 1 def greet(name: str) -> str:
^ SyntaxError: invalid syntax
--
https://mail.python.org/mailman/listinfo/python-list
On 29/07/2019 12:33, Chris Angelico wrote:
.
Should I always be using self build python versions?
If you want to maintain your own Python, then by all means, go ahead.
I don't maintain my own Python 2.7, but I have a number of Python 3.x
builds, since Debian Stretch doesn't
lf build python versions?
If you want to maintain your own Python, then by all means, go ahead.
I don't maintain my own Python 2.7, but I have a number of Python 3.x
builds, since Debian Stretch doesn't ship with anything newer than
3.5.
> It seems that ubuntu feels able to provide pa
I help maintain apps on a number of machines and recently a bug surfaced which
affected some of them using the preppy template module; the bug ended up being
the way tokenize worked as in the following
#
from StringIO import StringIO
import tokenize, token
L = []
s='
lready had 2.7, particularly Registry settings that wound up being wrong. The
problems seemed to occur erratically, so YMMV. After some trial and error, we
chose to leave Python 2.7 installed and install Python launcher for Windows
(PyLauncher), to allow for easy fallback (which we never had
On 2019-01-22 19:20, Grant Edwards wrote:
> > For anyone who has moved a substantial bunch of Python 2 to Python
> > 3, can you please reply with your experience?
>
> If you used bytes (or raw binary strings) at all (e.g. for doing
> things like network or serial protocols) you're in for a lot o
Robin Becker writes:
> On 22/01/2019 19:00, Schachner, Joseph wrote:
> ..
>> For anyone who has moved a substantial bunch of Python 2 to Python 3,
>> can you please reply with your experience? Did you run into any
>> issues? Did 2to3 do its job well, or did you have to review its
>> outpu
On 23/01/2019 21:51, Ian Kelly wrote:
On Wed, Jan 23, 2019 at 1:36 PM Stefan Behnel wrote:
.
All right, but apart from absolute imports, the print function, and true
division, what has Python 3.x ever done for us?
*ducks*
headaches :)
--
Robin Becker
--
https://mail.python.org/m
On 22/01/2019 19:00, Schachner, Joseph wrote:
..
For anyone who has moved a substantial bunch of Python 2 to Python 3, can you
please reply with your experience? Did you run into any issues? Did 2to3 do
its job well, or did you have to review its output to eliminate some working
b
On Wed, Jan 23, 2019 at 1:36 PM Stefan Behnel wrote:
>
> Cameron Simpson schrieb am 23.01.19 um 00:21:
> > from __future__ import absolute_imports, print_function
> >
> > gets you a long way.
>
> ... and: division.
All right, but apart from absolute imports, the print function, and true
division
Cameron Simpson schrieb am 23.01.19 um 00:21:
> from __future__ import absolute_imports, print_function
>
> gets you a long way.
... and: division.
Stefan
--
https://mail.python.org/mailman/listinfo/python-list
On 23Jan2019 14:15, Grant Edwards wrote:
On 2019-01-22, Cameron Simpson wrote:
On 22Jan2019 19:20, Grant Edwards wrote:
On 2019-01-22, Schachner, Joseph wrote:
For anyone who has moved a substantial bunch of Python 2 to Python
3, can you please reply with your experience?
If you used byt
On 2019-01-22, Cameron Simpson wrote:
> On 22Jan2019 19:20, Grant Edwards wrote:
>>On 2019-01-22, Schachner, Joseph wrote:
>>> For anyone who has moved a substantial bunch of Python 2 to Python
>>> 3, can you please reply with your experience?
>>
>>If you used bytes (or raw binary strings) at al
On Wed, Jan 23, 2019 at 6:10 PM dieter wrote:
> > Did 2to3 do its job well
>
> I have not used "2to3" -- because I doubt, that it can handle
> important cases, i.e. when a Python 2 "str" must become a Python 3 bytes
> or when a "dict.{keys, values, items}" must be listified.
Have you tried? It e
"Schachner, Joseph" writes:
> ...
> For anyone who has moved a substantial bunch of Python 2 to Python 3, can
> you please reply with your experience?
It can be simple and it can be difficult.
I have found "http://python-future.org/compatible_idioms.html";
especially useful.
> Did you run in
On 22Jan2019 19:20, Grant Edwards wrote:
On 2019-01-22, Schachner, Joseph wrote:
For anyone who has moved a substantial bunch of Python 2 to Python
3, can you please reply with your experience?
If you used bytes (or raw binary strings) at all (e.g. for doing
things like network or serial pro
On Wed, Jan 23, 2019 at 9:43 AM Akkana Peck wrote:
>
> Grant Edwards writes:
> > On 2019-01-22, Schachner, Joseph wrote:
> >
> > > For anyone who has moved a substantial bunch of Python 2 to Python
> > > 3, can you please reply with your experience?
> >
> > If you used bytes (or raw binary string
Grant Edwards writes:
> On 2019-01-22, Schachner, Joseph wrote:
>
> > For anyone who has moved a substantial bunch of Python 2 to Python
> > 3, can you please reply with your experience?
>
> If you used bytes (or raw binary strings) at all (e.g. for doing
> things like network or serial protocol
On 2019-01-22, Schachner, Joseph wrote:
> For anyone who has moved a substantial bunch of Python 2 to Python
> 3, can you please reply with your experience?
If you used bytes (or raw binary strings) at all (e.g. for doing
things like network or serial protocols) you're in for a lot of pain.
Eve
In the company I work for we have a program (free) that runs scripts (that we
sell) to test according to particular standards. The program embeds a Python
interpreter, and the scripts are Python (which uses functions revealed to
Python from within the program).
Well, this year must be time ...
1 - 100 of 819 matches
Mail list logo