What I want to say is, MySQLdb -> PyMySQL conversion is not required
for porting from Python 2 to Python 3.
mysqlclient is straight upgrade path from MySQLdb.
On Sat, Mar 14, 2015 at 8:01 AM, John Nagle wrote:
> On 3/13/2015 3:27 PM, INADA Naoki wrote:
>> Hi, John. I'm main
ever, and Python 3 should
> have been PyPy-based, letting PyPy drive its design, so that it could
> have introduced bigger changes with bigger benefits. As we're seeing,
> even small incompatibilities and breakage cause big resistance, so if
> you're going to break stuff at all, you mig
On Tue, Mar 17, 2015 at 2:47 AM, Terry Reedy wrote:
> On 3/16/2015 5:13 AM, INADA Naoki wrote:
>
>> Another experience is porting Flask application in my company from
>> Python 2 to Python 3.
>> It has 26k lines of code and 7.6k lines of tests.
>>
>> Since we d
's assertion that "nobody uses this stuff," in both cases I think
> it's far more about FastCGI vs WSGI than it's about Python 2 vs 3.
>
> Carl
>
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
INADA Naoki
--
https://mail.python.org/mailman/listinfo/python-list
t was already installed.
>
> Can someone elaborate on where I should be able to find or install this?
>
> (I tried asking this on the #python IRC channel, but I guess I couldn't
> yell loud enough.)
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
INADA Naoki
--
https://mail.python.org/mailman/listinfo/python-list
h leading zeros.
> Sometimes these numbers represent codeblocks of a fixed
> number of digits. Always writing those numbers with this
> number of digits helps being aware of this. It is also
> easier for when you need to know how many leading zero's
> such a number has.
>
>
> retcode = call(*popenargs, **kwargs)
>
> File "/usr/local/lib/python3.4/subprocess.py", line 537, in call
>
> with Popen(*popenargs, **kwargs) as p:
>
> File "/usr/local/lib/python3.4/subprocess.py", line 767, in __init__
>
> raise TypeError("bufsize must be an integer")
>
> TypeError: bufsize must be an integer
>
>
>
> Can anyone help me with this please?
>
>
>
> Best regards
>
>
>
> David
>
>
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
>
--
INADA Naoki
--
https://mail.python.org/mailman/listinfo/python-list
7 output:
>
> 0.01
> 0.02
> 0.03
> 0.04
> 0.05
> 0.06
> 0.07
> 0.08
> 0.09
> 0.1
> 0.11
> 0.12
> 0.13
> 0.14
> 0.15
> 0.16
> 0.17
> 0.18
> 0.19
>
>
> I'm not hugely accustomed to Python, but this seems crazy to me.
> --
> https://mail.python.org/mailman/listinfo/python-list
--
INADA Naoki
--
https://mail.python.org/mailman/listinfo/python-list
7139392436/webscalesql-a-collaboration-to-build-upon-the-mysql-upstream/
>
> http://www.percona.com/live/mysql-conference-2014/sessions/asynchronous-mysql-how-facebook-queries-databases
>
> --
> https://mail.python.org/mailman/listinfo/python-list
--
INADA Naoki
--
https://mail.python.org/mailman/listinfo/python-list
i want the road how
> to do it???Please help me !
> --
> https://mail.python.org/mailman/listinfo/python-list
--
INADA Naoki
--
https://mail.python.org/mailman/listinfo/python-list
ble to do
> this task.
>
>
>
> BR,
>
> Arulnambi
>
>
>
> R&D engineer
>
> Traxens SAS
>
> France
>
>
>
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
INADA Naoki
--
https://mail.python.org/mailman/listinfo/python-list
? Which will serve me better in the future?
>
> Thanks in advance.
> Noble
>
> --
> https://mail.python.org/mailman/listinfo/python-list
--
INADA Naoki
--
https://mail.python.org/mailman/listinfo/python-list
nes are
> mixed in together, something like this:
>
> spam spaeggs eggs m seggspams
>
>
> Does print perform its own locking to prevent this?
>
>
>
> --
> Steven
> --
> https://mail.python.org/mailman/listinfo/python-list
--
INADA Naoki
--
https://mail.python.org/mailman/listinfo/python-list
On Ubuntu 10.10 amd64 and dual-core CPU, following code deadlocks.
What's wrong on this code?
#http://codepad.org/GkoXHbik
#!/usr/bin/env python
from subprocess import *
from threading import *
THREAD_COUNT=50
def worker():
p = Popen(["cat"], stdin=PIPE, stdout=PIPE, stderr=STDOUT)
out
On Oct 12, 5:33 am, Jed Smith wrote:
> On Mon, Oct 11, 2010 at 4:19 PM, INADA Naoki wrote:
> > def worker():
> > p = Popen(["cat"], stdin=PIPE, stdout=PIPE, stderr=STDOUT)
> > out = p.communicate("hoge")[0]
> > print "%s %s" %
I've found the bug http://bugs.python.org/issue1731717.
It seems wating subprocess can be multithreaded but creating
subprocess cannot.
On Oct 12, 9:57 am, INADA Naoki wrote:
> On Oct 12, 5:33 am, Jed Smith wrote:
>
> > On Mon, Oct 11, 2010 at 4:19 PM, INADA Naoki wrote:
If you can use third party library, I think you can use Aho-Corasick algorithm.
https://en.wikipedia.org/wiki/Aho%E2%80%93Corasick_algorithm
https://pypi.python.org/pypi/pyahocorasick/
On Sat, Feb 25, 2017 at 3:54 AM, wrote:
> I have a task to search for multiple patterns in incoming string an
I can't reproduce it on Linux.
Maybe, it's windows specific bug?
On Wed, Mar 1, 2017 at 11:25 PM, Frank Millman wrote:
> "Frank Millman" wrote in message news:o93vs2$smi$1...@blaine.gmane.org...
>>
>>
>> I use asyncio in my project, so most of my functions start with 'async'
>> and
>
> most of m
Could you use 3.6.0 instead of b4?
I added 1/0 at:
...
async def main():
1/0
await aenum()
...
then:
$ pyenv/versions/3.6.0/bin/python3 -VV
Python 3.6.0 (default, Jan 16 2017, 19:41:10)
[GCC 6.2.0 20161005]
$ pyenv/versions/3.6.0/bin/python3 a.py
Traceback (most recent call last):
File
> For completeness, if I place '1/0' in aenum(), I get exactly the same
> traceback as the first one above.
>
I can't reproduce it too.
Did you 3.6.0 this time? Or did you used 3.6b4 again?
Please don't use beta when asking question or reporting bug.
--
https://mail.python.org/mailman/listinfo/p
FYI, you can easily find this changelog of Python 3.6rc1:
- bpo-28843: Fix asyncio C Task to handle exceptions __traceback__.
See also: https://bugs.python.org/issue28843
On Fri, Mar 3, 2017 at 1:11 AM, INADA Naoki wrote:
>> For completeness, if I place '1/0' in aenum(), I get
On Sun, Mar 26, 2017 at 10:34 PM, Νίκος Βέργος wrote:
> with import cgitb; cgitb.enable()
>
> ProgrammingError(1064, "You have an error in your SQL syntax; check the
> manual that corresponds to your MariaDB server version for the right syntax
> to use near '(pagesID, host, ref, location, useros
> I MEAN HOW TO DIFFERENTIATE '%S' FROM LITERAL '%' character.
>
>>> '%% %s %%s' % (42,)
'% 42 %s'
Use %%
--
https://mail.python.org/mailman/listinfo/python-list
ich wont work
> within like
>
> How would you type it without space as in "%%s%" ?
>
> Στις Κυρ, 26 Μαρ 2017 στις 5:32 μ.μ., ο/η INADA Naoki
> έγραψε:
>>
>> > I MEAN HOW TO DIFFERENTIATE '%S' FROM LITERAL '%' character.
>> &
Read my mail again.
> This error came from MySQL. If there are no logs in error_log, it's
> your configuration issue.
> See https://dev.mysql.com/doc/refman/5.7/en/update.html for Update
> statement syntax.
--
https://mail.python.org/mailman/listinfo/python-list
> i dont have to update table set column1 = this value, column2=that value and
> so on
Why do you think so? Did you really read the manual?
mysql> create table test_update (a int primary key, b int, c int);
Query OK, 0 rows affected (0.02 sec)
mysql> insert into test_update values (1, 2, 3);
Qu
I can't reproduce it.
I managed to install pyopencl and run the script. It takes more than
2 hours, and uses only 7GB RAM.
Maybe, some faster backend for OpenCL is required?
I used Microsoft Azure Compute, Standard_A4m_v2 (4 cores, 32 GB
memory) instance.
More easy way to reproduce is needed...
On Wed, Mar 29, 2017 at 12:29 AM, Jan Gosmann wrote:
> On 28 Mar 2017, at 6:11, INADA Naoki wrote:
>
>> I managed to install pyopencl and run the script. It takes more than
>> 2 hours, and uses only 7GB RAM.
>> Maybe, some faster backend for OpenCL is required?
>
>
> Running further trials indicate that the problem actually is related to
> swapping. If I reduce the model size in the benchmark slightly so that
> everything fits into the main memory, the problem disappears. Only when the
> memory usage exceeds the 32GB that I have, Python 3.6 will acquire way
I reproduced the issue.
This is very usual, memory usage issue. Slashing is just a result of
large memory usage.
After 1st pass of optimization, RAM usage is 20GB+ on Python 3.5 and
30GB on Python 3.6.
And Python 3.6 starts slashing in 2nd optimization pass.
I enabled tracemalloc while 1st pass.
ange(10))
>>> sys.getsizeof(frozenset(s))
736
>>>
$ python3
Python 3.6.0 (default, Dec 30 2016, 20:49:54)
[GCC 6.2.0 20161005] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> s
Filed an issue: https://bugs.python.org/issue29949
Thanks for your report, Jan.
On Fri, Mar 31, 2017 at 3:04 AM, INADA Naoki wrote:
> Maybe, this commit make this regression.
>
> https://github.com/python/cpython/commit/4897300276d870f99459c82b937f0ac22450f0b6
>
> Old:
> m
FYI, this small patch may fix your issue:
https://gist.github.com/methane/8faf12621cdb2166019bbcee65987e99
--
https://mail.python.org/mailman/listinfo/python-list
You can reuse connection, instead of creating for each request. (HTTP
keep-alive).
On Tue, Apr 4, 2017 at 1:11 AM, Prathamesh wrote:
> Hello World
>
> The following script is an extract from
>
> https://github.com/RittmanMead/obi-metrics-agent/blob/master/obi-metrics-agent.py
>
> <>
>
> import ca
On Sat, Apr 22, 2017 at 3:08 AM, Albert-Jan Roskam
wrote:
> For regular dicts I like to use the dict() function because the code is
> easier to write and read. But OrderedDict() is not equivalent to dict():
> In the docstring of collections.OrderedDict it says "keyword arguments are
> not recomm
On Sat, Apr 22, 2017 at 10:41 PM, Ben Finney wrote:
> INADA Naoki writes:
>
>> From Python 3.6, keyword arguments are ordered. So the docstring is
>> outdated.
>
> (Thank you, Inada-san, for the implementation!)
>
> The announcement of the change specifies that w
I recommend tracemalloc.
Start with PYTHONTRACEMALLOC=3, and increase depth only when stack trace is
too short.
2017/05/03 午後0:50 "Larry Martell" :
> On Tue, May 2, 2017 at 7:01 PM, Erik wrote:
> > On 02/05/17 23:28, Larry Martell wrote:
>
> Anyone have any thoughts on how I can monit
> Killed: 9
It looks like not segmentation fault.
Maybe, RAM shortage?
INADA Naoki
On Mon, Jul 10, 2017 at 10:24 PM, Nigel Palmer wrote:
> Hi
>
> I am trying to compile Python 3.6.1 on macOS 10.12.5 with xcode 8.8.3 using
> the instructions at
> https://docs.p
es\_io\_iomodule.h" but wont find "..\Modules\..."
>
> Since Git enables Windows NTFS case sensitivity while checking out
> sources ... is it a bug or a "feature"? And: is there a simple
> workaround available besides disabling case sensitivity (which will
> break others)?
> --
> Thomas
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
Inada Naoki
--
https://mail.python.org/mailman/listinfo/python-list
doesn't support building on case sensitive directory.
But I think it is a nice improvement if next Python supports it.
Regards,
--
Inada Naoki
--
https://mail.python.org/mailman/listinfo/python-list
stream.flush() doesn't mean final output.
Try stream.close()
2023年6月20日(火) 1:40 Jon Ribbens via Python-list :
> io.TextIOWrapper() wraps a binary stream so you can write text to it.
> It takes an 'encoding' parameter, which it uses to look up the codec
> in the codecs registry, and then it uses t
You can use file instead of BytesIO
2023年6月20日(火) 3:05 Peter J. Holzer via Python-list :
> On 2023-06-20 02:15:00 +0900, Inada Naoki via Python-list wrote:
> > stream.flush() doesn't mean final output.
> > Try stream.close()
>
> After close() the value isn't availa
I checked TextIOWrapper source code and confirmed that it doesn't call
encoder.write(text, finish=True) on close.
Since TextIOWrapper allows random access, it is difficult to call it
automatically. So please think it as just limitation rather than bug.
Please use codec and binary file manually for
> but does this mean that even with PEP 649 that forward references will
> still be needed?
Yes. Both of PEP 563 and PEP 649 solves not all forward reference issues.
--
Inada Naoki
--
https://mail.python.org/mailman/listinfo/python-list
Try PYTHONUTF8=1 envver.
2024年11月2日(土) 0:36 Loris Bennett via Python-list :
> Left Right writes:
>
> > There's quite a lot of misuse of terminology around terminal / console
> > / shell. Please, correct me if I'm wrong, but it looks like you are
> > printing that on MS Windows, right? MS Windo
;>> detector
> >>> into the yellow zone.
> >>>
> >>> Secondly, the link to a critique of JavaScript that dates from 2015,
> >>> from
> >>> before the language acquired its async/await constructs, should be
> >>> another
> >>> warning sign.
> >>>
> >>> Looking at that Java spec, a “virtual thread” is just another name for
> >>> “stackful coroutine”. Because that’s what you get when you take away
> >>> implicit thread preemption and substitute explicit preemption instead.
> >>>
> >>> The continuation concept is useful in its own right. Why not concentrate
> >>> on implementing that as a new primitive instead?
> >>>
> >>
> >
> --
> https://mail.python.org/mailman3//lists/python-list.python.org
--
Inada Naoki
--
https://mail.python.org/mailman3//lists/python-list.python.org
101 - 146 of 146 matches
Mail list logo